Autogenerated update (2018-11-10)

Update:
- alertcenter_v1beta1
- bigquery_v2
- firebasedynamiclinks_v1
- monitoring_v3
- streetviewpublish_v1
This commit is contained in:
Google APIs 2018-11-10 00:36:29 +00:00
parent ddcba569d3
commit 8bca081d2b
14 changed files with 61 additions and 377 deletions

View File

@ -4483,6 +4483,7 @@
"/alertcenter:v1beta1/alertcenter.alerts.feedback.list": list_alert_feedbacks
"/alertcenter:v1beta1/alertcenter.alerts.feedback.list/alertId": alert_id
"/alertcenter:v1beta1/alertcenter.alerts.feedback.list/customerId": customer_id
"/alertcenter:v1beta1/alertcenter.alerts.feedback.list/filter": filter
"/alertcenter:v1beta1/alertcenter.alerts.get": get_alert
"/alertcenter:v1beta1/alertcenter.alerts.get/alertId": alert_id
"/alertcenter:v1beta1/alertcenter.alerts.get/customerId": customer_id
@ -10798,6 +10799,7 @@
"/bigquery:v2/JobConfigurationLoad/projectionFields": projection_fields
"/bigquery:v2/JobConfigurationLoad/projectionFields/projection_field": projection_field
"/bigquery:v2/JobConfigurationLoad/quote": quote
"/bigquery:v2/JobConfigurationLoad/rangePartitioning": range_partitioning
"/bigquery:v2/JobConfigurationLoad/schema": schema
"/bigquery:v2/JobConfigurationLoad/schemaInline": schema_inline
"/bigquery:v2/JobConfigurationLoad/schemaInlineFormat": schema_inline_format
@ -10826,6 +10828,7 @@
"/bigquery:v2/JobConfigurationQuery/query": query
"/bigquery:v2/JobConfigurationQuery/queryParameters": query_parameters
"/bigquery:v2/JobConfigurationQuery/queryParameters/query_parameter": query_parameter
"/bigquery:v2/JobConfigurationQuery/rangePartitioning": range_partitioning
"/bigquery:v2/JobConfigurationQuery/schemaUpdateOptions": schema_update_options
"/bigquery:v2/JobConfigurationQuery/schemaUpdateOptions/schema_update_option": schema_update_option
"/bigquery:v2/JobConfigurationQuery/tableDefinitions": table_definitions
@ -64295,6 +64298,7 @@
"/firebasedynamiclinks:v1/IosInfo/iosFallbackLink": ios_fallback_link
"/firebasedynamiclinks:v1/IosInfo/iosIpadBundleId": ios_ipad_bundle_id
"/firebasedynamiclinks:v1/IosInfo/iosIpadFallbackLink": ios_ipad_fallback_link
"/firebasedynamiclinks:v1/IosInfo/iosMinimumVersion": ios_minimum_version
"/firebasedynamiclinks:v1/ManagedShortLink": managed_short_link
"/firebasedynamiclinks:v1/ManagedShortLink/creationTime": creation_time
"/firebasedynamiclinks:v1/ManagedShortLink/flaggedAttribute": flagged_attribute
@ -86840,12 +86844,14 @@
"/streetviewpublish:v1/Photo/connections": connections
"/streetviewpublish:v1/Photo/connections/connection": connection
"/streetviewpublish:v1/Photo/downloadUrl": download_url
"/streetviewpublish:v1/Photo/mapsPublishStatus": maps_publish_status
"/streetviewpublish:v1/Photo/photoId": photo_id
"/streetviewpublish:v1/Photo/places": places
"/streetviewpublish:v1/Photo/places/place": place
"/streetviewpublish:v1/Photo/pose": pose
"/streetviewpublish:v1/Photo/shareLink": share_link
"/streetviewpublish:v1/Photo/thumbnailUrl": thumbnail_url
"/streetviewpublish:v1/Photo/transferStatus": transfer_status
"/streetviewpublish:v1/Photo/uploadReference": upload_reference
"/streetviewpublish:v1/Photo/viewCount": view_count
"/streetviewpublish:v1/PhotoId": photo_id

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/admin-sdk/alertcenter/
module AlertcenterV1beta1
VERSION = 'V1beta1'
REVISION = '20181103'
REVISION = '20181107'
end
end
end

View File

@ -225,6 +225,7 @@ module Google
# Optional. The unique identifier of the G Suite organization account of the
# customer the alert feedback are associated with.
# Inferred from the caller identity if not provided.
# @param [String] filter
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@ -242,12 +243,13 @@ module Google
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_alert_feedbacks(alert_id, customer_id: nil, fields: nil, quota_user: nil, options: nil, &block)
def list_alert_feedbacks(alert_id, customer_id: nil, filter: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v1beta1/alerts/{alertId}/feedback', options)
command.response_representation = Google::Apis::AlertcenterV1beta1::ListAlertFeedbackResponse::Representation
command.response_class = Google::Apis::AlertcenterV1beta1::ListAlertFeedbackResponse
command.params['alertId'] = alert_id unless alert_id.nil?
command.query['customerId'] = customer_id unless customer_id.nil?
command.query['filter'] = filter unless filter.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/bigquery/
module BigqueryV2
VERSION = 'V2'
REVISION = '20181025'
REVISION = '20181104'
# View and manage your data in Google BigQuery
AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery'

View File

@ -1601,6 +1601,12 @@ module Google
# @return [String]
attr_accessor :quote
# [Experimental] Range partitioning specification for this table. Only one of
# timePartitioning and rangePartitioning should be specified.
# Corresponds to the JSON property `rangePartitioning`
# @return [Google::Apis::BigqueryV2::RangePartitioning]
attr_accessor :range_partitioning
# [Optional] The schema for the destination table. The schema can be omitted if
# the destination table already exists, or if you're loading data from Google
# Cloud Datastore.
@ -1658,15 +1664,15 @@ module Google
# @return [Array<String>]
attr_accessor :source_uris
# Time-based partitioning specification for the destination table.
# Time-based partitioning specification for the destination table. Only one of
# timePartitioning and rangePartitioning should be specified.
# Corresponds to the JSON property `timePartitioning`
# @return [Google::Apis::BigqueryV2::TimePartitioning]
attr_accessor :time_partitioning
# If sourceFormat is set to "AVRO", indicates whether to enable interpreting
# logical types into their corresponding types (ie. TIMESTAMP), instead of only
# using their raw types (ie. INTEGER). The default value will be true once this
# feature launches, but can be set now in preparation.
# [Optional] If sourceFormat is set to "AVRO", indicates whether to enable
# interpreting logical types into their corresponding types (ie. TIMESTAMP),
# instead of only using their raw types (ie. INTEGER).
# Corresponds to the JSON property `useAvroLogicalTypes`
# @return [Boolean]
attr_accessor :use_avro_logical_types
@ -1705,6 +1711,7 @@ module Google
@null_marker = args[:null_marker] if args.key?(:null_marker)
@projection_fields = args[:projection_fields] if args.key?(:projection_fields)
@quote = args[:quote] if args.key?(:quote)
@range_partitioning = args[:range_partitioning] if args.key?(:range_partitioning)
@schema = args[:schema] if args.key?(:schema)
@schema_inline = args[:schema_inline] if args.key?(:schema_inline)
@schema_inline_format = args[:schema_inline_format] if args.key?(:schema_inline_format)
@ -1819,6 +1826,12 @@ module Google
# @return [Array<Google::Apis::BigqueryV2::QueryParameter>]
attr_accessor :query_parameters
# [Experimental] Range partitioning specification for this table. Only one of
# timePartitioning and rangePartitioning should be specified.
# Corresponds to the JSON property `rangePartitioning`
# @return [Google::Apis::BigqueryV2::RangePartitioning]
attr_accessor :range_partitioning
# Allows the schema of the destination table to be updated as a side effect of
# the query job. Schema update options are supported in two cases: when
# writeDisposition is WRITE_APPEND; when writeDisposition is WRITE_TRUNCATE and
@ -1839,7 +1852,8 @@ module Google
# @return [Hash<String,Google::Apis::BigqueryV2::ExternalDataConfiguration>]
attr_accessor :table_definitions
# Time-based partitioning specification for the destination table.
# Time-based partitioning specification for the destination table. Only one of
# timePartitioning and rangePartitioning should be specified.
# Corresponds to the JSON property `timePartitioning`
# @return [Google::Apis::BigqueryV2::TimePartitioning]
attr_accessor :time_partitioning
@ -1901,6 +1915,7 @@ module Google
@priority = args[:priority] if args.key?(:priority)
@query = args[:query] if args.key?(:query)
@query_parameters = args[:query_parameters] if args.key?(:query_parameters)
@range_partitioning = args[:range_partitioning] if args.key?(:range_partitioning)
@schema_update_options = args[:schema_update_options] if args.key?(:schema_update_options)
@table_definitions = args[:table_definitions] if args.key?(:table_definitions)
@time_partitioning = args[:time_partitioning] if args.key?(:time_partitioning)

View File

@ -796,6 +796,8 @@ module Google
property :null_marker, as: 'nullMarker'
collection :projection_fields, as: 'projectionFields'
property :quote, as: 'quote'
property :range_partitioning, as: 'rangePartitioning', class: Google::Apis::BigqueryV2::RangePartitioning, decorator: Google::Apis::BigqueryV2::RangePartitioning::Representation
property :schema, as: 'schema', class: Google::Apis::BigqueryV2::TableSchema, decorator: Google::Apis::BigqueryV2::TableSchema::Representation
property :schema_inline, as: 'schemaInline'
@ -833,6 +835,8 @@ module Google
property :query, as: 'query'
collection :query_parameters, as: 'queryParameters', class: Google::Apis::BigqueryV2::QueryParameter, decorator: Google::Apis::BigqueryV2::QueryParameter::Representation
property :range_partitioning, as: 'rangePartitioning', class: Google::Apis::BigqueryV2::RangePartitioning, decorator: Google::Apis::BigqueryV2::RangePartitioning::Representation
collection :schema_update_options, as: 'schemaUpdateOptions'
hash :table_definitions, as: 'tableDefinitions', class: Google::Apis::BigqueryV2::ExternalDataConfiguration, decorator: Google::Apis::BigqueryV2::ExternalDataConfiguration::Representation

View File

@ -25,7 +25,7 @@ module Google
# @see https://firebase.google.com/docs/dynamic-links/
module FirebasedynamiclinksV1
VERSION = 'V1'
REVISION = '20181002'
REVISION = '20181109'
# View and administer all your Firebase data and settings
AUTH_FIREBASE = 'https://www.googleapis.com/auth/firebase'

View File

@ -887,6 +887,11 @@ module Google
# @return [String]
attr_accessor :ios_ipad_fallback_link
# iOS minimum version.
# Corresponds to the JSON property `iosMinimumVersion`
# @return [String]
attr_accessor :ios_minimum_version
def initialize(**args)
update!(**args)
end
@ -899,6 +904,7 @@ module Google
@ios_fallback_link = args[:ios_fallback_link] if args.key?(:ios_fallback_link)
@ios_ipad_bundle_id = args[:ios_ipad_bundle_id] if args.key?(:ios_ipad_bundle_id)
@ios_ipad_fallback_link = args[:ios_ipad_fallback_link] if args.key?(:ios_ipad_fallback_link)
@ios_minimum_version = args[:ios_minimum_version] if args.key?(:ios_minimum_version)
end
end

View File

@ -380,6 +380,7 @@ module Google
property :ios_fallback_link, as: 'iosFallbackLink'
property :ios_ipad_bundle_id, as: 'iosIpadBundleId'
property :ios_ipad_fallback_link, as: 'iosIpadFallbackLink'
property :ios_minimum_version, as: 'iosMinimumVersion'
end
end

View File

@ -27,7 +27,7 @@ module Google
# @see https://cloud.google.com/monitoring/api/
module MonitoringV3
VERSION = 'V3'
REVISION = '20181027'
REVISION = '20181107'
# View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -49,231 +49,6 @@ module Google
@batch_path = 'batch'
end
# Creates a new metric descriptor. User-created metric descriptors define custom
# metrics.
# @param [String] name
# The project on which to execute the request. The format is "projects/`
# project_id_or_number`".
# @param [Google::Apis::MonitoringV3::MetricDescriptor] metric_descriptor_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::MonitoringV3::MetricDescriptor] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MonitoringV3::MetricDescriptor]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_metric_descriptor(name, metric_descriptor_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v3/{+name}/metricDescriptors', options)
command.request_representation = Google::Apis::MonitoringV3::MetricDescriptor::Representation
command.request_object = metric_descriptor_object
command.response_representation = Google::Apis::MonitoringV3::MetricDescriptor::Representation
command.response_class = Google::Apis::MonitoringV3::MetricDescriptor
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Deletes a metric descriptor. Only user-created custom metrics can be deleted.
# @param [String] name
# The metric descriptor on which to execute the request. The format is "projects/
# `project_id_or_number`/metricDescriptors/`metric_id`". An example of `
# metric_id` is: "custom.googleapis.com/my_test_metric".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::MonitoringV3::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MonitoringV3::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def delete_metric_descriptor(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:delete, 'v3/{+name}', options)
command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
command.response_class = Google::Apis::MonitoringV3::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets a single metric descriptor. This method does not require a Stackdriver
# account.
# @param [String] name
# The metric descriptor on which to execute the request. The format is "projects/
# `project_id_or_number`/metricDescriptors/`metric_id`". An example value of `
# metric_id` is "compute.googleapis.com/instance/disk/read_bytes_count".
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::MonitoringV3::MetricDescriptor] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MonitoringV3::MetricDescriptor]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_metric_descriptor(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v3/{+name}', options)
command.response_representation = Google::Apis::MonitoringV3::MetricDescriptor::Representation
command.response_class = Google::Apis::MonitoringV3::MetricDescriptor
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists metric descriptors that match a filter. This method does not require a
# Stackdriver account.
# @param [String] name
# The project on which to execute the request. The format is "projects/`
# project_id_or_number`".
# @param [String] filter
# If this field is empty, all custom and system-defined metric descriptors are
# returned. Otherwise, the filter specifies which metric descriptors are to be
# returned. For example, the following filter matches all custom metrics:
# metric.type = starts_with("custom.googleapis.com/")
# @param [Fixnum] page_size
# A positive number that is the maximum number of results to return.
# @param [String] page_token
# If this field is not empty then it must contain the nextPageToken value
# returned by a previous call to this method. Using this field causes the method
# to return additional results from the previous method call.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::MonitoringV3::ListMetricDescriptorsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MonitoringV3::ListMetricDescriptorsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_metric_descriptors(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v3/{+name}/metricDescriptors', options)
command.response_representation = Google::Apis::MonitoringV3::ListMetricDescriptorsResponse::Representation
command.response_class = Google::Apis::MonitoringV3::ListMetricDescriptorsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Gets a single monitored resource descriptor. This method does not require a
# Stackdriver account.
# @param [String] name
# The monitored resource descriptor to get. The format is "projects/`
# project_id_or_number`/monitoredResourceDescriptors/`resource_type`". The `
# resource_type` is a predefined type, such as cloudsql_database.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::MonitoringV3::MonitoredResourceDescriptor] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MonitoringV3::MonitoredResourceDescriptor]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def get_monitored_resource_descriptor(name, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v3/{+name}', options)
command.response_representation = Google::Apis::MonitoringV3::MonitoredResourceDescriptor::Representation
command.response_class = Google::Apis::MonitoringV3::MonitoredResourceDescriptor
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists monitored resource descriptors that match a filter. This method does not
# require a Stackdriver account.
# @param [String] name
# The project on which to execute the request. The format is "projects/`
# project_id_or_number`".
# @param [String] filter
# An optional filter describing the descriptors to be returned. The filter can
# reference the descriptor's type and labels. For example, the following filter
# returns only Google Compute Engine descriptors that have an id label:
# resource.type = starts_with("gce_") AND resource.label:id
# @param [Fixnum] page_size
# A positive number that is the maximum number of results to return.
# @param [String] page_token
# If this field is not empty then it must contain the nextPageToken value
# returned by a previous call to this method. Using this field causes the method
# to return additional results from the previous method call.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::MonitoringV3::ListMonitoredResourceDescriptorsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MonitoringV3::ListMonitoredResourceDescriptorsResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_monitored_resource_descriptors(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v3/{+name}/monitoredResourceDescriptors', options)
command.response_representation = Google::Apis::MonitoringV3::ListMonitoredResourceDescriptorsResponse::Representation
command.response_class = Google::Apis::MonitoringV3::ListMonitoredResourceDescriptorsResponse
command.params['name'] = name unless name.nil?
command.query['filter'] = filter unless filter.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Creates a new alerting policy.
# @param [String] name
# The project in which to create the alerting policy. The format is projects/[
@ -1720,146 +1495,6 @@ module Google
execute_or_queue_command(command, &block)
end
# Creates or adds data to one or more time series. The response is empty if all
# time series in the request were written. If any time series could not be
# written, a corresponding failure message is included in the error response.
# @param [String] name
# The project on which to execute the request. The format is "projects/`
# project_id_or_number`".
# @param [Google::Apis::MonitoringV3::CreateTimeSeriesRequest] create_time_series_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::MonitoringV3::Empty] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MonitoringV3::Empty]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def create_time_series(name, create_time_series_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:post, 'v3/{+name}/timeSeries', options)
command.request_representation = Google::Apis::MonitoringV3::CreateTimeSeriesRequest::Representation
command.request_object = create_time_series_request_object
command.response_representation = Google::Apis::MonitoringV3::Empty::Representation
command.response_class = Google::Apis::MonitoringV3::Empty
command.params['name'] = name unless name.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Lists time series that match a filter. This method does not require a
# Stackdriver account.
# @param [String] name
# The project on which to execute the request. The format is "projects/`
# project_id_or_number`".
# @param [String] aggregation_alignment_period
# The alignment period for per-time series alignment. If present,
# alignmentPeriod must be at least 60 seconds. After per-time series alignment,
# each time series will contain data points only on the period boundaries. If
# perSeriesAligner is not specified or equals ALIGN_NONE, then this field is
# ignored. If perSeriesAligner is specified and does not equal ALIGN_NONE, then
# this field must be defined; otherwise an error is returned.
# @param [String] aggregation_cross_series_reducer
# The approach to be used to combine time series. Not all reducer functions may
# be applied to all time series, depending on the metric type and the value type
# of the original time series. Reduction may change the metric type of value
# type of the time series.Time series data must be aligned in order to perform
# cross-time series reduction. If crossSeriesReducer is specified, then
# perSeriesAligner must be specified and not equal ALIGN_NONE and
# alignmentPeriod must be specified; otherwise, an error is returned.
# @param [Array<String>, String] aggregation_group_by_fields
# The set of fields to preserve when crossSeriesReducer is specified. The
# groupByFields determine how the time series are partitioned into subsets prior
# to applying the aggregation function. Each subset contains time series that
# have the same value for each of the grouping fields. Each individual time
# series is a member of exactly one subset. The crossSeriesReducer is applied to
# each subset of time series. It is not possible to reduce across different
# resource types, so this field implicitly contains resource.type. Fields not
# specified in groupByFields are aggregated away. If groupByFields is not
# specified and all the time series have the same resource type, then the time
# series are aggregated into a single output time series. If crossSeriesReducer
# is not defined, this field is ignored.
# @param [String] aggregation_per_series_aligner
# The approach to be used to align individual time series. Not all alignment
# functions may be applied to all time series, depending on the metric type and
# value type of the original time series. Alignment may change the metric type
# or the value type of the time series.Time series data must be aligned in order
# to perform cross-time series reduction. If crossSeriesReducer is specified,
# then perSeriesAligner must be specified and not equal ALIGN_NONE and
# alignmentPeriod must be specified; otherwise, an error is returned.
# @param [String] filter
# A monitoring filter that specifies which time series should be returned. The
# filter must specify a single metric type, and can additionally specify metric
# labels and other information. For example:
# metric.type = "compute.googleapis.com/instance/cpu/usage_time" AND
# metric.label.instance_name = "my-instance-name"
# @param [String] interval_end_time
# Required. The end of the time interval.
# @param [String] interval_start_time
# Optional. The beginning of the time interval. The default value for the start
# time is the end time. The start time must not be later than the end time.
# @param [String] order_by
# Unsupported: must be left blank. The points in each time series are returned
# in reverse time order.
# @param [Fixnum] page_size
# A positive number that is the maximum number of results to return. If
# page_size is empty or more than 100,000 results, the effective page_size is
# 100,000 results. If view is set to FULL, this is the maximum number of Points
# returned. If view is set to HEADERS, this is the maximum number of TimeSeries
# returned.
# @param [String] page_token
# If this field is not empty then it must contain the nextPageToken value
# returned by a previous call to this method. Using this field causes the method
# to return additional results from the previous method call.
# @param [String] view
# Specifies which information is returned about the time series.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# Available to use for quota purposes for server-side applications. Can be any
# arbitrary string assigned to a user, but should not exceed 40 characters.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::MonitoringV3::ListTimeSeriesResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::MonitoringV3::ListTimeSeriesResponse]
#
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
# @raise [Google::Apis::AuthorizationError] Authorization is required
def list_time_series(name, aggregation_alignment_period: nil, aggregation_cross_series_reducer: nil, aggregation_group_by_fields: nil, aggregation_per_series_aligner: nil, filter: nil, interval_end_time: nil, interval_start_time: nil, order_by: nil, page_size: nil, page_token: nil, view: nil, fields: nil, quota_user: nil, options: nil, &block)
command = make_simple_command(:get, 'v3/{+name}/timeSeries', options)
command.response_representation = Google::Apis::MonitoringV3::ListTimeSeriesResponse::Representation
command.response_class = Google::Apis::MonitoringV3::ListTimeSeriesResponse
command.params['name'] = name unless name.nil?
command.query['aggregation.alignmentPeriod'] = aggregation_alignment_period unless aggregation_alignment_period.nil?
command.query['aggregation.crossSeriesReducer'] = aggregation_cross_series_reducer unless aggregation_cross_series_reducer.nil?
command.query['aggregation.groupByFields'] = aggregation_group_by_fields unless aggregation_group_by_fields.nil?
command.query['aggregation.perSeriesAligner'] = aggregation_per_series_aligner unless aggregation_per_series_aligner.nil?
command.query['filter'] = filter unless filter.nil?
command.query['interval.endTime'] = interval_end_time unless interval_end_time.nil?
command.query['interval.startTime'] = interval_start_time unless interval_start_time.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['pageSize'] = page_size unless page_size.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['view'] = view unless view.nil?
command.query['fields'] = fields unless fields.nil?
command.query['quotaUser'] = quota_user unless quota_user.nil?
execute_or_queue_command(command, &block)
end
# Returns the list of IPs that checkers run from
# @param [Fixnum] page_size
# The maximum number of results to return in a single response. The server may

View File

@ -27,7 +27,7 @@ module Google
# @see https://developers.google.com/streetview/publish/
module StreetviewpublishV1
VERSION = 'V1'
REVISION = '20181106'
REVISION = '20181108'
# Publish and manage your 360 photos on Google Street View
AUTH_STREETVIEWPUBLISH = 'https://www.googleapis.com/auth/streetviewpublish'

View File

@ -376,6 +376,12 @@ module Google
# @return [String]
attr_accessor :download_url
# Output only. Status in Google Maps, whether this photo was published, or
# rejected for a possibly specified reason.
# Corresponds to the JSON property `mapsPublishStatus`
# @return [String]
attr_accessor :maps_publish_status
# Identifier for a Photo.
# Corresponds to the JSON property `photoId`
# @return [Google::Apis::StreetviewpublishV1::PhotoId]
@ -401,6 +407,11 @@ module Google
# @return [String]
attr_accessor :thumbnail_url
# Output only. Status of rights transfer on this photo.
# Corresponds to the JSON property `transferStatus`
# @return [String]
attr_accessor :transfer_status
# Upload reference for media files.
# Corresponds to the JSON property `uploadReference`
# @return [Google::Apis::StreetviewpublishV1::UploadRef]
@ -420,11 +431,13 @@ module Google
@capture_time = args[:capture_time] if args.key?(:capture_time)
@connections = args[:connections] if args.key?(:connections)
@download_url = args[:download_url] if args.key?(:download_url)
@maps_publish_status = args[:maps_publish_status] if args.key?(:maps_publish_status)
@photo_id = args[:photo_id] if args.key?(:photo_id)
@places = args[:places] if args.key?(:places)
@pose = args[:pose] if args.key?(:pose)
@share_link = args[:share_link] if args.key?(:share_link)
@thumbnail_url = args[:thumbnail_url] if args.key?(:thumbnail_url)
@transfer_status = args[:transfer_status] if args.key?(:transfer_status)
@upload_reference = args[:upload_reference] if args.key?(:upload_reference)
@view_count = args[:view_count] if args.key?(:view_count)
end

View File

@ -233,6 +233,7 @@ module Google
collection :connections, as: 'connections', class: Google::Apis::StreetviewpublishV1::Connection, decorator: Google::Apis::StreetviewpublishV1::Connection::Representation
property :download_url, as: 'downloadUrl'
property :maps_publish_status, as: 'mapsPublishStatus'
property :photo_id, as: 'photoId', class: Google::Apis::StreetviewpublishV1::PhotoId, decorator: Google::Apis::StreetviewpublishV1::PhotoId::Representation
collection :places, as: 'places', class: Google::Apis::StreetviewpublishV1::Place, decorator: Google::Apis::StreetviewpublishV1::Place::Representation
@ -241,6 +242,7 @@ module Google
property :share_link, as: 'shareLink'
property :thumbnail_url, as: 'thumbnailUrl'
property :transfer_status, as: 'transferStatus'
property :upload_reference, as: 'uploadReference', class: Google::Apis::StreetviewpublishV1::UploadRef, decorator: Google::Apis::StreetviewpublishV1::UploadRef::Representation
property :view_count, :numeric_string => true, as: 'viewCount'