diff --git a/api_names_out.yaml b/api_names_out.yaml index f54f6da2b..9585b2ddb 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -67218,6 +67218,8 @@ "/pubsub:v1/Binding/members/member": member "/pubsub:v1/Binding/role": role "/pubsub:v1/CreateSnapshotRequest": create_snapshot_request +"/pubsub:v1/CreateSnapshotRequest/labels": labels +"/pubsub:v1/CreateSnapshotRequest/labels/label": label "/pubsub:v1/CreateSnapshotRequest/subscription": subscription "/pubsub:v1/Empty": empty "/pubsub:v1/ListSnapshotsResponse": list_snapshots_response @@ -67284,10 +67286,14 @@ "/pubsub:v1/SetIamPolicyRequest/policy": policy "/pubsub:v1/Snapshot": snapshot "/pubsub:v1/Snapshot/expireTime": expire_time +"/pubsub:v1/Snapshot/labels": labels +"/pubsub:v1/Snapshot/labels/label": label "/pubsub:v1/Snapshot/name": name "/pubsub:v1/Snapshot/topic": topic "/pubsub:v1/Subscription": subscription "/pubsub:v1/Subscription/ackDeadlineSeconds": ack_deadline_seconds +"/pubsub:v1/Subscription/labels": labels +"/pubsub:v1/Subscription/labels/label": label "/pubsub:v1/Subscription/messageRetentionDuration": message_retention_duration "/pubsub:v1/Subscription/name": name "/pubsub:v1/Subscription/pushConfig": push_config @@ -67300,6 +67306,8 @@ "/pubsub:v1/TestIamPermissionsResponse/permissions": permissions "/pubsub:v1/TestIamPermissionsResponse/permissions/permission": permission "/pubsub:v1/Topic": topic +"/pubsub:v1/Topic/labels": labels +"/pubsub:v1/Topic/labels/label": label "/pubsub:v1/Topic/name": name "/pubsub:v1/UpdateSnapshotRequest": update_snapshot_request "/pubsub:v1/UpdateSnapshotRequest/snapshot": snapshot @@ -67307,6 +67315,9 @@ "/pubsub:v1/UpdateSubscriptionRequest": update_subscription_request "/pubsub:v1/UpdateSubscriptionRequest/subscription": subscription "/pubsub:v1/UpdateSubscriptionRequest/updateMask": update_mask +"/pubsub:v1/UpdateTopicRequest": update_topic_request +"/pubsub:v1/UpdateTopicRequest/topic": topic +"/pubsub:v1/UpdateTopicRequest/updateMask": update_mask "/pubsub:v1/fields": fields "/pubsub:v1/key": key "/pubsub:v1/pubsub.projects.snapshots.create": create_snapshot @@ -67367,6 +67378,8 @@ "/pubsub:v1/pubsub.projects.topics.list/pageSize": page_size "/pubsub:v1/pubsub.projects.topics.list/pageToken": page_token "/pubsub:v1/pubsub.projects.topics.list/project": project +"/pubsub:v1/pubsub.projects.topics.patch": patch_project_topic +"/pubsub:v1/pubsub.projects.topics.patch/name": name "/pubsub:v1/pubsub.projects.topics.publish": publish_topic "/pubsub:v1/pubsub.projects.topics.publish/topic": topic "/pubsub:v1/pubsub.projects.topics.setIamPolicy": set_topic_iam_policy diff --git a/generated/google/apis/bigquerydatatransfer_v1.rb b/generated/google/apis/bigquerydatatransfer_v1.rb index 40444606a..045d11eb7 100644 --- a/generated/google/apis/bigquerydatatransfer_v1.rb +++ b/generated/google/apis/bigquerydatatransfer_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigquerydatatransferV1 VERSION = 'V1' - REVISION = '20180602' + REVISION = '20180630' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigquerydatatransfer_v1/classes.rb b/generated/google/apis/bigquerydatatransfer_v1/classes.rb index c20e253f4..8a19e33f7 100644 --- a/generated/google/apis/bigquerydatatransfer_v1/classes.rb +++ b/generated/google/apis/bigquerydatatransfer_v1/classes.rb @@ -71,7 +71,6 @@ module Google attr_accessor :authorization_type # Data source client id which should be used to receive refresh token. - # When not supplied, no offline credentials are populated for data transfer. # Corresponds to the JSON property `clientId` # @return [String] attr_accessor :client_id @@ -141,10 +140,9 @@ module Google # @return [Array] attr_accessor :parameters - # Api auth scopes for which refresh token needs to be obtained. Only valid - # when `client_id` is specified. Ignored otherwise. These are scopes needed - # by a data source to prepare data and ingest them into BigQuery, - # e.g., https://www.googleapis.com/auth/bigquery + # Api auth scopes for which refresh token needs to be obtained. These are + # scopes needed by a data source to prepare data and ingest them into + # BigQuery, e.g., https://www.googleapis.com/auth/bigquery # Corresponds to the JSON property `scopes` # @return [Array] attr_accessor :scopes diff --git a/generated/google/apis/cloudkms_v1.rb b/generated/google/apis/cloudkms_v1.rb index e04e3c909..a28d47e1a 100644 --- a/generated/google/apis/cloudkms_v1.rb +++ b/generated/google/apis/cloudkms_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/kms/ module CloudkmsV1 VERSION = 'V1' - REVISION = '20180622' + REVISION = '20180702' # 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/cloudkms_v1/classes.rb b/generated/google/apis/cloudkms_v1/classes.rb index 9715a0105..a2cb0c8ab 100644 --- a/generated/google/apis/cloudkms_v1/classes.rb +++ b/generated/google/apis/cloudkms_v1/classes.rb @@ -162,7 +162,6 @@ module Google # Role that is assigned to `members`. # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - # Required # Corresponds to the JSON property `role` # @return [String] attr_accessor :role diff --git a/generated/google/apis/genomics_v1.rb b/generated/google/apis/genomics_v1.rb index bf92a6925..46ba88874 100644 --- a/generated/google/apis/genomics_v1.rb +++ b/generated/google/apis/genomics_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/genomics module GenomicsV1 VERSION = 'V1' - REVISION = '20180607' + REVISION = '20180702' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/genomics_v1/classes.rb b/generated/google/apis/genomics_v1/classes.rb index 2a28b6cd2..42f4a7ac9 100644 --- a/generated/google/apis/genomics_v1/classes.rb +++ b/generated/google/apis/genomics_v1/classes.rb @@ -258,7 +258,6 @@ module Google # Role that is assigned to `members`. # For example, `roles/viewer`, `roles/editor`, or `roles/owner`. - # Required # Corresponds to the JSON property `role` # @return [String] attr_accessor :role diff --git a/generated/google/apis/pubsub_v1.rb b/generated/google/apis/pubsub_v1.rb index 1ca192d58..82b004f41 100644 --- a/generated/google/apis/pubsub_v1.rb +++ b/generated/google/apis/pubsub_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/pubsub/docs module PubsubV1 VERSION = 'V1' - REVISION = '20180604' + REVISION = '20180626' # 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/pubsub_v1/classes.rb b/generated/google/apis/pubsub_v1/classes.rb index 73d1969d0..be7abf561 100644 --- a/generated/google/apis/pubsub_v1/classes.rb +++ b/generated/google/apis/pubsub_v1/classes.rb @@ -90,6 +90,11 @@ module Google class CreateSnapshotRequest include Google::Apis::Core::Hashable + # User labels. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + # The subscription whose backlog the snapshot retains. # Specifically, the created snapshot is guaranteed to retain: # (a) The existing backlog on the subscription. More precisely, this is @@ -109,6 +114,7 @@ module Google # Update properties of this object def update!(**args) + @labels = args[:labels] if args.key?(:labels) @subscription = args[:subscription] if args.key?(:subscription) end end @@ -518,10 +524,10 @@ module Google class PullResponse include Google::Apis::Core::Hashable - # Received Pub/Sub messages. The Pub/Sub system will return zero messages if - # there are no more available in the backlog. The Pub/Sub system may return - # fewer than the `maxMessages` requested even if there are more messages - # available in the backlog. + # Received Pub/Sub messages. The list will be empty if there are no more + # messages available in the backlog. For JSON, the response can be entirely + # empty. The Pub/Sub system may return fewer than the `maxMessages` requested + # even if there are more messages available in the backlog. # Corresponds to the JSON property `receivedMessages` # @return [Array] attr_accessor :received_messages @@ -732,6 +738,11 @@ module Google # @return [String] attr_accessor :expire_time + # User labels. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + # The name of the snapshot. # Corresponds to the JSON property `name` # @return [String] @@ -749,6 +760,7 @@ module Google # Update properties of this object def update!(**args) @expire_time = args[:expire_time] if args.key?(:expire_time) + @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) @topic = args[:topic] if args.key?(:topic) end @@ -779,6 +791,11 @@ module Google # @return [Fixnum] attr_accessor :ack_deadline_seconds + # User labels. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + # How long to retain unacknowledged messages in the subscription's backlog, # from the moment a message is published. # If `retain_acked_messages` is true, then this also configures the retention @@ -834,6 +851,7 @@ module Google # Update properties of this object def update!(**args) @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds) + @labels = args[:labels] if args.key?(:labels) @message_retention_duration = args[:message_retention_duration] if args.key?(:message_retention_duration) @name = args[:name] if args.key?(:name) @push_config = args[:push_config] if args.key?(:push_config) @@ -888,6 +906,11 @@ module Google class Topic include Google::Apis::Core::Hashable + # User labels. + # Corresponds to the JSON property `labels` + # @return [Hash] + attr_accessor :labels + # The name of the topic. It must have the format # `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter, # and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), @@ -904,6 +927,7 @@ module Google # Update properties of this object def update!(**args) + @labels = args[:labels] if args.key?(:labels) @name = args[:name] if args.key?(:name) end end @@ -965,6 +989,35 @@ module Google @update_mask = args[:update_mask] if args.key?(:update_mask) end end + + # Request for the UpdateTopic method. + class UpdateTopicRequest + include Google::Apis::Core::Hashable + + # A topic resource. + # Corresponds to the JSON property `topic` + # @return [Google::Apis::PubsubV1::Topic] + attr_accessor :topic + + # Indicates which fields in the provided topic to update. Must be specified + # and non-empty. Note that if `update_mask` contains + # "message_storage_policy" then the new value will be determined based on the + # policy configured at the project or organization level. The + # `message_storage_policy` must not be set in the `topic` provided above. + # Corresponds to the JSON property `updateMask` + # @return [String] + attr_accessor :update_mask + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @topic = args[:topic] if args.key?(:topic) + @update_mask = args[:update_mask] if args.key?(:update_mask) + end + end end end end diff --git a/generated/google/apis/pubsub_v1/representations.rb b/generated/google/apis/pubsub_v1/representations.rb index fd8f10675..71108f278 100644 --- a/generated/google/apis/pubsub_v1/representations.rb +++ b/generated/google/apis/pubsub_v1/representations.rb @@ -196,6 +196,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class UpdateTopicRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class AcknowledgeRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -214,6 +220,7 @@ module Google class CreateSnapshotRequest # @private class Representation < Google::Apis::Core::JsonRepresentation + hash :labels, as: 'labels' property :subscription, as: 'subscription' end end @@ -377,6 +384,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :expire_time, as: 'expireTime' + hash :labels, as: 'labels' property :name, as: 'name' property :topic, as: 'topic' end @@ -386,6 +394,7 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :ack_deadline_seconds, as: 'ackDeadlineSeconds' + hash :labels, as: 'labels' property :message_retention_duration, as: 'messageRetentionDuration' property :name, as: 'name' property :push_config, as: 'pushConfig', class: Google::Apis::PubsubV1::PushConfig, decorator: Google::Apis::PubsubV1::PushConfig::Representation @@ -412,6 +421,7 @@ module Google class Topic # @private class Representation < Google::Apis::Core::JsonRepresentation + hash :labels, as: 'labels' property :name, as: 'name' end end @@ -433,6 +443,15 @@ module Google property :update_mask, as: 'updateMask' end end + + class UpdateTopicRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :topic, as: 'topic', class: Google::Apis::PubsubV1::Topic, decorator: Google::Apis::PubsubV1::Topic::Representation + + property :update_mask, as: 'updateMask' + end + end end end end diff --git a/generated/google/apis/pubsub_v1/service.rb b/generated/google/apis/pubsub_v1/service.rb index 93127c49e..a7166a0e0 100644 --- a/generated/google/apis/pubsub_v1/service.rb +++ b/generated/google/apis/pubsub_v1/service.rb @@ -696,8 +696,7 @@ module Google execute_or_queue_command(command, &block) end - # Pulls messages from the server. Returns an empty list if there are no - # messages available in the backlog. The server may return `UNAVAILABLE` if + # Pulls messages from the server. The server may return `UNAVAILABLE` if # there are too many concurrent pull requests pending for the given # subscription. # @param [String] subscription @@ -1021,6 +1020,45 @@ module Google execute_or_queue_command(command, &block) end + # Updates an existing topic. Note that certain properties of a + # topic are not modifiable. + # @param [String] name + # The name of the topic. It must have the format + # `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter, + # and contain only letters (`[A-Za-z]`), numbers (`[0-9]`), dashes (`-`), + # underscores (`_`), periods (`.`), tildes (`~`), plus (`+`) or percent + # signs (`%`). It must be between 3 and 255 characters in length, and it + # must not start with `"goog"`. + # @param [Google::Apis::PubsubV1::UpdateTopicRequest] update_topic_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::PubsubV1::Topic] parsed result object + # @yieldparam err [StandardError] error object if request failed + # + # @return [Google::Apis::PubsubV1::Topic] + # + # @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 patch_project_topic(name, update_topic_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'v1/{+name}', options) + command.request_representation = Google::Apis::PubsubV1::UpdateTopicRequest::Representation + command.request_object = update_topic_request_object + command.response_representation = Google::Apis::PubsubV1::Topic::Representation + command.response_class = Google::Apis::PubsubV1::Topic + 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 + # Adds one or more messages to the topic. Returns `NOT_FOUND` if the topic # does not exist. The message payload must not be empty; it must contain # either a non-empty data field, or at least one attribute. diff --git a/generated/google/apis/speech_v1beta1.rb b/generated/google/apis/speech_v1beta1.rb index 230e549a2..9499684ba 100644 --- a/generated/google/apis/speech_v1beta1.rb +++ b/generated/google/apis/speech_v1beta1.rb @@ -22,10 +22,10 @@ module Google # # Converts audio to text by applying powerful neural network models. # - # @see https://cloud.google.com/speech/ + # @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol module SpeechV1beta1 VERSION = 'V1beta1' - REVISION = '20180614' + REVISION = '20180629' # 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/speech_v1beta1/service.rb b/generated/google/apis/speech_v1beta1/service.rb index 68b5fbde1..0626ef87f 100644 --- a/generated/google/apis/speech_v1beta1/service.rb +++ b/generated/google/apis/speech_v1beta1/service.rb @@ -30,7 +30,7 @@ module Google # Speech = Google::Apis::SpeechV1beta1 # Alias the module # service = Speech::SpeechService.new # - # @see https://cloud.google.com/speech/ + # @see https://cloud.google.com/speech-to-text/docs/quickstart-protocol class SpeechService < Google::Apis::Core::BaseService # @return [String] # API key. Your API key identifies your project and provides you with API access,