From 7302a0d9564ec1a86ca4cdad7a11e2e961e220ac Mon Sep 17 00:00:00 2001 From: Google APIs Date: Tue, 20 Feb 2018 00:35:44 +0000 Subject: [PATCH] Autogenerated update (2018-02-20) Update: - dataflow_v1b3 - manufacturers_v1 --- api_names_out.yaml | 5 +++ generated/google/apis/dataflow_v1b3.rb | 2 +- .../google/apis/dataflow_v1b3/classes.rb | 42 +++++++++++++++++++ .../apis/dataflow_v1b3/representations.rb | 16 +++++++ generated/google/apis/manufacturers_v1.rb | 2 +- .../google/apis/manufacturers_v1/service.rb | 23 +++++----- 6 files changed, 78 insertions(+), 12 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 9e15eab3e..ddb4c74f9 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -33117,11 +33117,16 @@ "/dataflow:v1b3/WorkerHealthReport/vmStartupTime": vm_startup_time "/dataflow:v1b3/WorkerHealthReportResponse": worker_health_report_response "/dataflow:v1b3/WorkerHealthReportResponse/reportInterval": report_interval +"/dataflow:v1b3/WorkerLifecycleEvent": worker_lifecycle_event +"/dataflow:v1b3/WorkerLifecycleEvent/event": event +"/dataflow:v1b3/WorkerLifecycleEvent/metadata": metadata +"/dataflow:v1b3/WorkerLifecycleEvent/metadata/metadatum": metadatum "/dataflow:v1b3/WorkerMessage": worker_message "/dataflow:v1b3/WorkerMessage/labels": labels "/dataflow:v1b3/WorkerMessage/labels/label": label "/dataflow:v1b3/WorkerMessage/time": time "/dataflow:v1b3/WorkerMessage/workerHealthReport": worker_health_report +"/dataflow:v1b3/WorkerMessage/workerLifecycleEvent": worker_lifecycle_event "/dataflow:v1b3/WorkerMessage/workerMessageCode": worker_message_code "/dataflow:v1b3/WorkerMessage/workerMetrics": worker_metrics "/dataflow:v1b3/WorkerMessage/workerShutdownNotice": worker_shutdown_notice diff --git a/generated/google/apis/dataflow_v1b3.rb b/generated/google/apis/dataflow_v1b3.rb index 9e1ed9661..2661eeb51 100644 --- a/generated/google/apis/dataflow_v1b3.rb +++ b/generated/google/apis/dataflow_v1b3.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataflow module DataflowV1b3 VERSION = 'V1b3' - REVISION = '20171222' + REVISION = '20180208' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dataflow_v1b3/classes.rb b/generated/google/apis/dataflow_v1b3/classes.rb index 3f431831a..ba8e7b378 100644 --- a/generated/google/apis/dataflow_v1b3/classes.rb +++ b/generated/google/apis/dataflow_v1b3/classes.rb @@ -4821,6 +4821,37 @@ module Google end end + # A report of an event in a worker's lifecycle. + # The proto contains one event, because the worker is expected to + # asynchronously send each message immediately after the event. + # Due to this asynchrony, messages may arrive out of order (or missing), and it + # is up to the consumer to interpret. + # The timestamp of the event is in the enclosing WorkerMessage proto. + class WorkerLifecycleEvent + include Google::Apis::Core::Hashable + + # The event being reported. + # Corresponds to the JSON property `event` + # @return [String] + attr_accessor :event + + # Other stats that can accompany an event. E.g. + # ` "downloaded_bytes" : "123456" ` + # Corresponds to the JSON property `metadata` + # @return [Hash] + attr_accessor :metadata + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @event = args[:event] if args.key?(:event) + @metadata = args[:metadata] if args.key?(:metadata) + end + end + # WorkerMessage provides information to the backend about a worker. class WorkerMessage include Google::Apis::Core::Hashable @@ -4851,6 +4882,16 @@ module Google # @return [Google::Apis::DataflowV1b3::WorkerHealthReport] attr_accessor :worker_health_report + # A report of an event in a worker's lifecycle. + # The proto contains one event, because the worker is expected to + # asynchronously send each message immediately after the event. + # Due to this asynchrony, messages may arrive out of order (or missing), and it + # is up to the consumer to interpret. + # The timestamp of the event is in the enclosing WorkerMessage proto. + # Corresponds to the JSON property `workerLifecycleEvent` + # @return [Google::Apis::DataflowV1b3::WorkerLifecycleEvent] + attr_accessor :worker_lifecycle_event + # A message code is used to report status and error messages to the service. # The message codes are intended to be machine readable. The service will # take care of translating these into user understandable messages if @@ -4886,6 +4927,7 @@ module Google @labels = args[:labels] if args.key?(:labels) @time = args[:time] if args.key?(:time) @worker_health_report = args[:worker_health_report] if args.key?(:worker_health_report) + @worker_lifecycle_event = args[:worker_lifecycle_event] if args.key?(:worker_lifecycle_event) @worker_message_code = args[:worker_message_code] if args.key?(:worker_message_code) @worker_metrics = args[:worker_metrics] if args.key?(:worker_metrics) @worker_shutdown_notice = args[:worker_shutdown_notice] if args.key?(:worker_shutdown_notice) diff --git a/generated/google/apis/dataflow_v1b3/representations.rb b/generated/google/apis/dataflow_v1b3/representations.rb index 1ae55bd20..d72627670 100644 --- a/generated/google/apis/dataflow_v1b3/representations.rb +++ b/generated/google/apis/dataflow_v1b3/representations.rb @@ -724,6 +724,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class WorkerLifecycleEvent + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class WorkerMessage class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2057,6 +2063,14 @@ module Google end end + class WorkerLifecycleEvent + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :event, as: 'event' + hash :metadata, as: 'metadata' + end + end + class WorkerMessage # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2064,6 +2078,8 @@ module Google property :time, as: 'time' property :worker_health_report, as: 'workerHealthReport', class: Google::Apis::DataflowV1b3::WorkerHealthReport, decorator: Google::Apis::DataflowV1b3::WorkerHealthReport::Representation + property :worker_lifecycle_event, as: 'workerLifecycleEvent', class: Google::Apis::DataflowV1b3::WorkerLifecycleEvent, decorator: Google::Apis::DataflowV1b3::WorkerLifecycleEvent::Representation + property :worker_message_code, as: 'workerMessageCode', class: Google::Apis::DataflowV1b3::WorkerMessageCode, decorator: Google::Apis::DataflowV1b3::WorkerMessageCode::Representation property :worker_metrics, as: 'workerMetrics', class: Google::Apis::DataflowV1b3::ResourceUtilizationReport, decorator: Google::Apis::DataflowV1b3::ResourceUtilizationReport::Representation diff --git a/generated/google/apis/manufacturers_v1.rb b/generated/google/apis/manufacturers_v1.rb index 63a07fdc6..8ab32edd7 100644 --- a/generated/google/apis/manufacturers_v1.rb +++ b/generated/google/apis/manufacturers_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/manufacturers/ module ManufacturersV1 VERSION = 'V1' - REVISION = '20180215' + REVISION = '20180219' # Manage your product listings for Google Manufacturer Center AUTH_MANUFACTURERCENTER = 'https://www.googleapis.com/auth/manufacturercenter' diff --git a/generated/google/apis/manufacturers_v1/service.rb b/generated/google/apis/manufacturers_v1/service.rb index f76153486..01915369d 100644 --- a/generated/google/apis/manufacturers_v1/service.rb +++ b/generated/google/apis/manufacturers_v1/service.rb @@ -172,16 +172,19 @@ module Google execute_or_queue_command(command, &block) end - # Uploads the product in a Manufacturer Center account. - # The checks at upload time are minimal. All required attributes need to be - # present for a product to be valid. Issues may show up later - # after the API has accepted a new upload for a product and it is possible to - # overwrite an existing valid product with an invalid product. To detect - # this, you should retrieve the product and check it for issues once the - # new version is available. - # Uploaded products first need to be processed before they can be + # Inserts or updates the attributes of the product in a Manufacturer Center + # account. + # Creates a product with the provided attributes. If the product already + # exists, then all attributes are replaced with the new ones. The checks at + # upload time are minimal. All required attributes need to be present for a + # product to be valid. Issues may show up later after the API has accepted a + # new upload for a product and it is possible to overwrite an existing valid + # product with an invalid product. To detect this, you should retrieve the + # product and check it for issues once the new version is available. + # Uploaded attributes first need to be processed before they can be # retrieved. Until then, new products will be unavailable, and retrieval - # of uploaded products will return the original state of the product. + # of previously uploaded products will return the original state of the + # product. # @param [String] parent # Parent ID in the format `accounts/`account_id``. # `account_id` - The ID of the Manufacturer Center account. @@ -212,7 +215,7 @@ 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 upload_account_product_product(parent, name, attributes_object = nil, fields: nil, quota_user: nil, options: nil, &block) + def update_account_product(parent, name, attributes_object = nil, fields: nil, quota_user: nil, options: nil, &block) command = make_simple_command(:put, 'v1/{+parent}/products/{+name}', options) command.request_representation = Google::Apis::ManufacturersV1::Attributes::Representation command.request_object = attributes_object