From 584c0104808854f2fa6341bd178815f0a7619e48 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Sun, 11 Nov 2018 00:36:53 +0000 Subject: [PATCH] Autogenerated update (2018-11-11) Update: - cloudkms_v1 - dialogflow_v2 - pubsub_v1 --- api_names_out.yaml | 3 + generated/google/apis/cloudkms_v1.rb | 2 +- generated/google/apis/dialogflow_v2.rb | 2 +- .../google/apis/dialogflow_v2/classes.rb | 11 ++-- .../google/apis/dialogflow_v2/service.rb | 2 + generated/google/apis/pubsub_v1.rb | 2 +- generated/google/apis/pubsub_v1/classes.rb | 57 ++++++++++++++++--- .../google/apis/pubsub_v1/representations.rb | 15 +++++ generated/google/apis/pubsub_v1/service.rb | 44 ++++++++------ 9 files changed, 106 insertions(+), 32 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index 37959b381..749027c82 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -76386,6 +76386,8 @@ "/pubsub:v1/CreateSnapshotRequest/labels/label": label "/pubsub:v1/CreateSnapshotRequest/subscription": subscription "/pubsub:v1/Empty": empty +"/pubsub:v1/ExpirationPolicy": expiration_policy +"/pubsub:v1/ExpirationPolicy/ttl": ttl "/pubsub:v1/Expr": expr "/pubsub:v1/Expr/description": description "/pubsub:v1/Expr/expression": expression @@ -76461,6 +76463,7 @@ "/pubsub:v1/Snapshot/topic": topic "/pubsub:v1/Subscription": subscription "/pubsub:v1/Subscription/ackDeadlineSeconds": ack_deadline_seconds +"/pubsub:v1/Subscription/expirationPolicy": expiration_policy "/pubsub:v1/Subscription/labels": labels "/pubsub:v1/Subscription/labels/label": label "/pubsub:v1/Subscription/messageRetentionDuration": message_retention_duration diff --git a/generated/google/apis/cloudkms_v1.rb b/generated/google/apis/cloudkms_v1.rb index 8a4527404..57c47ab99 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 = '20181005' + REVISION = '20181107' # 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/dialogflow_v2.rb b/generated/google/apis/dialogflow_v2.rb index 098afc268..28fbfe946 100644 --- a/generated/google/apis/dialogflow_v2.rb +++ b/generated/google/apis/dialogflow_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow-enterprise/ module DialogflowV2 VERSION = 'V2' - REVISION = '20181022' + REVISION = '20181109' # 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/dialogflow_v2/classes.rb b/generated/google/apis/dialogflow_v2/classes.rb index 171a0811d..735db53cb 100644 --- a/generated/google/apis/dialogflow_v2/classes.rb +++ b/generated/google/apis/dialogflow_v2/classes.rb @@ -392,6 +392,8 @@ module Google # Required. The unique identifier of the context. Format: # `projects//agent/sessions//contexts/`. + # The `Context ID` is always converted to lowercase, may only contain + # characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -2462,10 +2464,11 @@ module Google # Required. The unique identifier of the context. Format: # `projects//agent/sessions//contexts/`, # or `projects//agent/environments//users//sessions//contexts/`. The `Context ID` is - # always converted to lowercase. If `Environment ID` is not specified, we - # assume default 'draft' environment. If `User ID` is not specified, we - # assume default '-' user. + # ID>/sessions//contexts/`. + # The `Context ID` is always converted to lowercase, may only contain + # characters in a-zA-Z0-9_-% and may be at most 250 bytes long. + # If `Environment ID` is not specified, we assume default 'draft' + # environment. If `User ID` is not specified, we assume default '-' user. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name diff --git a/generated/google/apis/dialogflow_v2/service.rb b/generated/google/apis/dialogflow_v2/service.rb index 710c2d6a2..e81133526 100644 --- a/generated/google/apis/dialogflow_v2/service.rb +++ b/generated/google/apis/dialogflow_v2/service.rb @@ -1148,6 +1148,8 @@ module Google # @param [String] name # Required. The unique identifier of the context. Format: # `projects//agent/sessions//contexts/`. + # The `Context ID` is always converted to lowercase, may only contain + # characters in [a-zA-Z0-9_-%] and may be at most 250 bytes long. # @param [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context] google_cloud_dialogflow_v2_context_object # @param [String] update_mask # Optional. The mask to control which fields get updated. diff --git a/generated/google/apis/pubsub_v1.rb b/generated/google/apis/pubsub_v1.rb index 6e3e6e1ac..a36b64e24 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 = '20180828' + REVISION = '20181105' # 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 05957ba09..b607247cd 100644 --- a/generated/google/apis/pubsub_v1/classes.rb +++ b/generated/google/apis/pubsub_v1/classes.rb @@ -98,7 +98,8 @@ module Google class CreateSnapshotRequest include Google::Apis::Core::Hashable - # See Creating and managing labels. + # See Creating and + # managing labels. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -146,6 +147,31 @@ module Google end end + # A policy that specifies the conditions for resource expiration (i.e., + # automatic resource deletion). + class ExpirationPolicy + include Google::Apis::Core::Hashable + + # Specifies the "time-to-live" duration for an associated resource. The + # resource expires if it is not active for a period of `ttl`. The definition + # of "activity" depends on the type of the associated resource. The minimum + # and maximum allowed values for `ttl` depend on the type of the associated + # resource, as well. If `ttl` is not set, the associated resource never + # expires. + # Corresponds to the JSON property `ttl` + # @return [String] + attr_accessor :ttl + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @ttl = args[:ttl] if args.key?(:ttl) + end + end + # Represents an expression text. Example: # title: "User account presence" # description: "Determines whether the request has a user account" @@ -501,6 +527,8 @@ module Google # A message that is published by publishers and consumed by subscribers. The # message must contain either a non-empty data field or at least one attribute. + # See Quotas and limits + # for more information about message limits. class Message include Google::Apis::Core::Hashable @@ -648,6 +676,8 @@ module Google # A message that is published by publishers and consumed by subscribers. The # message must contain either a non-empty data field or at least one attribute. + # See Quotas and limits + # for more information about message limits. # Corresponds to the JSON property `message` # @return [Google::Apis::PubsubV1::Message] attr_accessor :message @@ -772,7 +802,8 @@ module Google end # A snapshot resource. Snapshots are used in - # Seek operations, which allow + # Seek + # operations, which allow # you to manage message acknowledgments in bulk. That is, you can set the # acknowledgment state of messages in an existing subscription to the state # captured by a snapshot.

@@ -796,7 +827,8 @@ module Google # @return [String] attr_accessor :expire_time - # See Creating and managing labels. + # See Creating and + # managing labels. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -849,7 +881,14 @@ module Google # @return [Fixnum] attr_accessor :ack_deadline_seconds - # See Creating and managing labels. + # A policy that specifies the conditions for resource expiration (i.e., + # automatic resource deletion). + # Corresponds to the JSON property `expirationPolicy` + # @return [Google::Apis::PubsubV1::ExpirationPolicy] + attr_accessor :expiration_policy + + # See Creating and + # managing labels. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -886,7 +925,8 @@ module Google # messages are not expunged from the subscription's backlog, even if they are # acknowledged, until they fall out of the `message_retention_duration` # window. This must be true if you would like to - # Seek to a timestamp. + # + # Seek to a timestamp. #

# BETA: This feature is part of a beta release. This API might be # changed in backward-incompatible ways and is not recommended for production @@ -911,6 +951,7 @@ module Google # Update properties of this object def update!(**args) @ack_deadline_seconds = args[:ack_deadline_seconds] if args.key?(:ack_deadline_seconds) + @expiration_policy = args[:expiration_policy] if args.key?(:expiration_policy) @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) @@ -966,7 +1007,8 @@ module Google class Topic include Google::Apis::Core::Hashable - # See Creating and managing labels. + # See Creating and + # managing labels. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels @@ -1000,7 +1042,8 @@ module Google include Google::Apis::Core::Hashable # A snapshot resource. Snapshots are used in - # Seek operations, which allow + # Seek + # operations, which allow # you to manage message acknowledgments in bulk. That is, you can set the # acknowledgment state of messages in an existing subscription to the state # captured by a snapshot.

diff --git a/generated/google/apis/pubsub_v1/representations.rb b/generated/google/apis/pubsub_v1/representations.rb index ba8b0b05b..a60cca732 100644 --- a/generated/google/apis/pubsub_v1/representations.rb +++ b/generated/google/apis/pubsub_v1/representations.rb @@ -46,6 +46,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ExpirationPolicy + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class Expr class Representation < Google::Apis::Core::JsonRepresentation; end @@ -239,6 +245,13 @@ module Google end end + class ExpirationPolicy + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :ttl, as: 'ttl' + end + end + class Expr # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -412,6 +425,8 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :ack_deadline_seconds, as: 'ackDeadlineSeconds' + property :expiration_policy, as: 'expirationPolicy', class: Google::Apis::PubsubV1::ExpirationPolicy, decorator: Google::Apis::PubsubV1::ExpirationPolicy::Representation + hash :labels, as: 'labels' property :message_retention_duration, as: 'messageRetentionDuration' property :name, as: 'name' diff --git a/generated/google/apis/pubsub_v1/service.rb b/generated/google/apis/pubsub_v1/service.rb index 8c5f1a3be..51c1e462d 100644 --- a/generated/google/apis/pubsub_v1/service.rb +++ b/generated/google/apis/pubsub_v1/service.rb @@ -48,7 +48,8 @@ module Google end # Creates a snapshot from the requested subscription. Snapshots are used in - # Seek operations, which allow + # Seek + # operations, which allow # you to manage message acknowledgments in bulk. That is, you can set the # acknowledgment state of messages in an existing subscription to the state # captured by a snapshot. @@ -63,17 +64,17 @@ module Google # See also the `Snapshot.expire_time` field. If the name is not provided in # the request, the server will assign a random # name for this snapshot on the same project as the subscription, conforming - # to the [resource name format](https://cloud.google.com/pubsub/docs/overview# - # names). - # The generated - # name is populated in the returned Snapshot object. Note that for REST API - # requests, you must specify a name in the request. + # to the + # [resource name format](https://cloud.google.com/pubsub/docs/overview#names). + # The generated name is populated in the returned Snapshot object. Note that + # for REST API requests, you must specify a name in the request. # @param [String] name # Optional user-provided name for this snapshot. # If the name is not provided in the request, the server will assign a random # name for this snapshot on the same project as the subscription. # Note that for REST API requests, you must specify a name. See the - # resource name rules. + # + # resource name rules. # Format is `projects/`project`/snapshots/`snap``. # @param [Google::Apis::PubsubV1::CreateSnapshotRequest] create_snapshot_request_object # @param [String] fields @@ -106,7 +107,8 @@ module Google end # Removes an existing snapshot. Snapshots are used in - # Seek operations, which allow + # Seek + # operations, which allow # you to manage message acknowledgments in bulk. That is, you can set the # acknowledgment state of messages in an existing subscription to the state # captured by a snapshot.

@@ -148,10 +150,10 @@ module Google end # Gets the configuration details of a snapshot. Snapshots are used in - # Seek operations, which allow - # you to manage message acknowledgments in bulk. That is, you can set the - # acknowledgment state of messages in an existing subscription to the state - # captured by a snapshot.

+ # Seek + # operations, which allow you to manage message acknowledgments in bulk. That + # is, you can set the acknowledgment state of messages in an existing + # subscription to the state captured by a snapshot.

# BETA: This feature is part of a beta release. This API might be # changed in backward-incompatible ways and is not recommended for production # use. It is not subject to any SLA or deprecation policy. @@ -219,7 +221,8 @@ module Google end # Lists the existing snapshots. Snapshots are used in - # Seek operations, which allow + # Seek + # operations, which allow # you to manage message acknowledgments in bulk. That is, you can set the # acknowledgment state of messages in an existing subscription to the state # captured by a snapshot.

@@ -265,7 +268,8 @@ module Google end # Updates an existing snapshot. Snapshots are used in - # Seek operations, which allow + # Seek + # operations, which allow # you to manage message acknowledgments in bulk. That is, you can set the # acknowledgment state of messages in an existing subscription to the state # captured by a snapshot.

@@ -419,7 +423,8 @@ module Google end # Creates a subscription to a given topic. See the - # resource name rules. + # + # resource name rules. # If the subscription already exists, returns `ALREADY_EXISTS`. # If the corresponding topic doesn't exist, returns `NOT_FOUND`. # If the name is not provided in the request, the server will assign a random @@ -756,7 +761,8 @@ module Google # Seeks an existing subscription to a point in time or to a given snapshot, # whichever is provided in the request. Snapshots are used in - # Seek operations, which allow + # Seek + # operations, which allow # you to manage message acknowledgments in bulk. That is, you can set the # acknowledgment state of messages in an existing subscription to the state # captured by a snapshot. Note that both the subscription and the snapshot @@ -871,7 +877,8 @@ module Google end # Creates the given topic with the given name. See the - # resource name rules. + # + # resource name rules. # @param [String] name # The name of the topic. It must have the format # `"projects/`project`/topics/`topic`"`. ``topic`` must start with a letter, @@ -1196,7 +1203,8 @@ module Google end # Lists the names of the snapshots on this topic. Snapshots are used in - # Seek operations, which allow + # Seek + # operations, which allow # you to manage message acknowledgments in bulk. That is, you can set the # acknowledgment state of messages in an existing subscription to the state # captured by a snapshot.