Autogenerated update (2018-11-11)

Update:
- cloudkms_v1
- dialogflow_v2
- pubsub_v1
This commit is contained in:
Google APIs 2018-11-11 00:36:53 +00:00
parent 8bca081d2b
commit 584c010480
9 changed files with 106 additions and 32 deletions

View File

@ -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

View File

@ -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'

View File

@ -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'

View File

@ -392,6 +392,8 @@ module Google
# Required. The unique identifier of the context. Format:
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
# 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/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`,
# or `projects/<Project ID>/agent/environments/<Environment ID>/users/<User
# ID>/sessions/<Session ID>/contexts/<Context ID>`. 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/<Session ID>/contexts/<Context ID>`.
# 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

View File

@ -1148,6 +1148,8 @@ module Google
# @param [String] name
# Required. The unique identifier of the context. Format:
# `projects/<Project ID>/agent/sessions/<Session ID>/contexts/<Context ID>`.
# 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.

View File

@ -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'

View File

@ -98,7 +98,8 @@ module Google
class CreateSnapshotRequest
include Google::Apis::Core::Hashable
# See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
# See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
# managing labels</a>.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
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 <a href="https://cloud.google.com/pubsub/quotas">Quotas and limits</a>
# 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 <a href="https://cloud.google.com/pubsub/quotas">Quotas and limits</a>
# 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
# <a href="/pubsub/docs/replay-overview">Seek</a> operations, which allow
# <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
# 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.<br><br>
@ -796,7 +827,8 @@ module Google
# @return [String]
attr_accessor :expire_time
# See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
# See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
# managing labels</a>.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
@ -849,7 +881,14 @@ module Google
# @return [Fixnum]
attr_accessor :ack_deadline_seconds
# See <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
# 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 <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
# managing labels</a>.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
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
# <a href="/pubsub/docs/replay-overview#seek_to_a_time">Seek to a timestamp</a>.
# <a href="https://cloud.google.com/pubsub/docs/replay-overview#seek_to_a_time">
# Seek to a timestamp</a>.
# <br><br>
# <b>BETA:</b> 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 <a href="/pubsub/docs/labels"> Creating and managing labels</a>.
# See <a href="https://cloud.google.com/pubsub/docs/labels"> Creating and
# managing labels</a>.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
@ -1000,7 +1042,8 @@ module Google
include Google::Apis::Core::Hashable
# A snapshot resource. Snapshots are used in
# <a href="/pubsub/docs/replay-overview">Seek</a> operations, which allow
# <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
# 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.<br><br>

View File

@ -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'

View File

@ -48,7 +48,8 @@ module Google
end
# Creates a snapshot from the requested subscription. Snapshots are used in
# <a href="/pubsub/docs/replay-overview">Seek</a> operations, which allow
# <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
# 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
# <a href="/pubsub/docs/admin#resource_names">resource name rules</a>.
# <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
# resource name rules</a>.
# 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
# <a href="/pubsub/docs/replay-overview">Seek</a> operations, which allow
# <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
# 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.<br><br>
@ -148,10 +150,10 @@ module Google
end
# Gets the configuration details of a snapshot. Snapshots are used in
# <a href="/pubsub/docs/replay-overview">Seek</a> 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.<br><br>
# <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
# 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.<br><br>
# <b>BETA:</b> 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
# <a href="/pubsub/docs/replay-overview">Seek</a> operations, which allow
# <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
# 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.<br><br>
@ -265,7 +268,8 @@ module Google
end
# Updates an existing snapshot. Snapshots are used in
# <a href="/pubsub/docs/replay-overview">Seek</a> operations, which allow
# <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
# 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.<br><br>
@ -419,7 +423,8 @@ module Google
end
# Creates a subscription to a given topic. See the
# <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
# <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
# resource name rules</a>.
# 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
# <a href="/pubsub/docs/replay-overview">Seek</a> operations, which allow
# <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
# 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
# <a href="/pubsub/docs/admin#resource_names"> resource name rules</a>.
# <a href="https://cloud.google.com/pubsub/docs/admin#resource_names">
# resource name rules</a>.
# @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
# <a href="/pubsub/docs/replay-overview">Seek</a> operations, which allow
# <a href="https://cloud.google.com/pubsub/docs/replay-overview">Seek</a>
# 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.<br><br>