Autogenerated update (2019-06-27)
Update: - containeranalysis_v1alpha1 - dialogflow_v2 - dialogflow_v2beta1 - dns_v1 - dns_v1beta2 - dns_v2beta1 - drive_v2 - drive_v3 - genomics_v2alpha1 - run_v1alpha1 - sourcerepo_v1
This commit is contained in:
parent
99b76788c5
commit
44cf32aff9
|
@ -604,7 +604,7 @@ module Google
|
|||
attr_accessor :id
|
||||
|
||||
# Identifies this as a notification channel used to watch for changes to a
|
||||
# resource, which is "api#channel".
|
||||
# resource. Value: the fixed string "api#channel".
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
|
|
@ -340,7 +340,7 @@ module Google
|
|||
attr_accessor :id
|
||||
|
||||
# Identifies this as a notification channel used to watch for changes to a
|
||||
# resource, which is "api#channel".
|
||||
# resource. Value: the fixed string "api#channel".
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/container-analysis/api/reference/rest/
|
||||
module ContaineranalysisV1alpha1
|
||||
VERSION = 'V1alpha1'
|
||||
REVISION = '20190604'
|
||||
REVISION = '20190625'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/dialogflow/
|
||||
module DialogflowV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20190616'
|
||||
REVISION = '20190626'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -827,6 +827,21 @@ module Google
|
|||
# @return [Fixnum]
|
||||
attr_accessor :sample_rate_hertz
|
||||
|
||||
# Optional. If `false` (default), recognition does not cease until the
|
||||
# client closes the stream.
|
||||
# If `true`, the recognizer will detect a single spoken utterance in input
|
||||
# audio. Recognition ceases when it detects the audio's voice has
|
||||
# stopped or paused. In this case, once a detected intent is received, the
|
||||
# client should close the stream and start a new request with a new stream as
|
||||
# needed.
|
||||
# Note: This setting is relevant only for streaming methods.
|
||||
# Note: When specified, InputAudioConfig.single_utterance takes precedence
|
||||
# over StreamingDetectIntentRequest.single_utterance.
|
||||
# Corresponds to the JSON property `singleUtterance`
|
||||
# @return [Boolean]
|
||||
attr_accessor :single_utterance
|
||||
alias_method :single_utterance?, :single_utterance
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -838,6 +853,7 @@ module Google
|
|||
@model_variant = args[:model_variant] if args.key?(:model_variant)
|
||||
@phrase_hints = args[:phrase_hints] if args.key?(:phrase_hints)
|
||||
@sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
|
||||
@single_utterance = args[:single_utterance] if args.key?(:single_utterance)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -909,6 +909,7 @@ module Google
|
|||
property :model_variant, as: 'modelVariant'
|
||||
collection :phrase_hints, as: 'phraseHints'
|
||||
property :sample_rate_hertz, as: 'sampleRateHertz'
|
||||
property :single_utterance, as: 'singleUtterance'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/dialogflow/
|
||||
module DialogflowV2beta1
|
||||
VERSION = 'V2beta1'
|
||||
REVISION = '20190616'
|
||||
REVISION = '20190626'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -2472,6 +2472,21 @@ module Google
|
|||
# @return [Fixnum]
|
||||
attr_accessor :sample_rate_hertz
|
||||
|
||||
# Optional. If `false` (default), recognition does not cease until the
|
||||
# client closes the stream.
|
||||
# If `true`, the recognizer will detect a single spoken utterance in input
|
||||
# audio. Recognition ceases when it detects the audio's voice has
|
||||
# stopped or paused. In this case, once a detected intent is received, the
|
||||
# client should close the stream and start a new request with a new stream as
|
||||
# needed.
|
||||
# Note: This setting is relevant only for streaming methods.
|
||||
# Note: When specified, InputAudioConfig.single_utterance takes precedence
|
||||
# over StreamingDetectIntentRequest.single_utterance.
|
||||
# Corresponds to the JSON property `singleUtterance`
|
||||
# @return [Boolean]
|
||||
attr_accessor :single_utterance
|
||||
alias_method :single_utterance?, :single_utterance
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
@ -2485,6 +2500,7 @@ module Google
|
|||
@model_variant = args[:model_variant] if args.key?(:model_variant)
|
||||
@phrase_hints = args[:phrase_hints] if args.key?(:phrase_hints)
|
||||
@sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz)
|
||||
@single_utterance = args[:single_utterance] if args.key?(:single_utterance)
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -1355,6 +1355,7 @@ module Google
|
|||
property :model_variant, as: 'modelVariant'
|
||||
collection :phrase_hints, as: 'phraseHints'
|
||||
property :sample_rate_hertz, as: 'sampleRateHertz'
|
||||
property :single_utterance, as: 'singleUtterance'
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -763,7 +763,7 @@ module Google
|
|||
# ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
|
||||
# default 'draft' environment. If `User ID` is not specified, we are using
|
||||
# "-". It's up to the API caller to choose an appropriate `Session ID` and
|
||||
# `User Id`. They can be a random numbers or some type of user and session
|
||||
# `User Id`. They can be a random number or some type of user and session
|
||||
# identifiers (preferably hashed). The length of the `Session ID` and
|
||||
# `User ID` must not exceed 36 characters.
|
||||
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentRequest] google_cloud_dialogflow_v2beta1_detect_intent_request_object
|
||||
|
@ -1942,7 +1942,7 @@ module Google
|
|||
# ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
|
||||
# default 'draft' environment. If `User ID` is not specified, we are using
|
||||
# "-". It's up to the API caller to choose an appropriate `Session ID` and
|
||||
# `User Id`. They can be a random numbers or some type of user and session
|
||||
# `User Id`. They can be a random number or some type of user and session
|
||||
# identifiers (preferably hashed). The length of the `Session ID` and
|
||||
# `User ID` must not exceed 36 characters.
|
||||
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentRequest] google_cloud_dialogflow_v2beta1_detect_intent_request_object
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/cloud-dns
|
||||
module DnsV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190418'
|
||||
REVISION = '20190625'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -443,7 +443,7 @@ module Google
|
|||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Specifies parameters that will be used for generating initial DnsKeys for this
|
||||
# ManagedZone. Output only while state is not OFF.
|
||||
# ManagedZone. Can only be changed while state is OFF.
|
||||
# Corresponds to the JSON property `defaultKeySpecs`
|
||||
# @return [Array<Google::Apis::DnsV1::DnsKeySpec>]
|
||||
attr_accessor :default_key_specs
|
||||
|
@ -455,7 +455,7 @@ module Google
|
|||
attr_accessor :kind
|
||||
|
||||
# Specifies the mechanism used to provide authenticated denial-of-existence
|
||||
# responses. Output only while state is not OFF.
|
||||
# responses. Can only be changed while state is OFF.
|
||||
# Corresponds to the JSON property `nonExistence`
|
||||
# @return [String]
|
||||
attr_accessor :non_existence
|
||||
|
|
|
@ -47,7 +47,7 @@ module Google
|
|||
attr_accessor :user_ip
|
||||
|
||||
def initialize
|
||||
super('https://www.googleapis.com/', 'dns/v1/projects/')
|
||||
super('https://dns.googleapis.com/', 'dns/v1/projects/')
|
||||
@batch_path = 'batch/dns/v1'
|
||||
end
|
||||
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/cloud-dns
|
||||
module DnsV1beta2
|
||||
VERSION = 'V1beta2'
|
||||
REVISION = '20190611'
|
||||
REVISION = '20190625'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -458,7 +458,7 @@ module Google
|
|||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Specifies parameters that will be used for generating initial DnsKeys for this
|
||||
# ManagedZone. Output only while state is not OFF.
|
||||
# ManagedZone. Can only be changed while state is OFF.
|
||||
# Corresponds to the JSON property `defaultKeySpecs`
|
||||
# @return [Array<Google::Apis::DnsV1beta2::DnsKeySpec>]
|
||||
attr_accessor :default_key_specs
|
||||
|
@ -470,7 +470,7 @@ module Google
|
|||
attr_accessor :kind
|
||||
|
||||
# Specifies the mechanism used to provide authenticated denial-of-existence
|
||||
# responses. Output only while state is not OFF.
|
||||
# responses. Can only be changed while state is OFF.
|
||||
# Corresponds to the JSON property `nonExistence`
|
||||
# @return [String]
|
||||
attr_accessor :non_existence
|
||||
|
@ -621,11 +621,10 @@ module Google
|
|||
class ManagedZonePeeringConfigTargetNetwork
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# If this zone has been deactivated due to a problem with the network it
|
||||
# targeted, the time at which it was deactivated. The zone can be deactivated if,
|
||||
# for instance, the network it targeted was deleted. If the targeted network is
|
||||
# still present, this will be the empty string. This is in RFC3339 text format.
|
||||
# Output only.
|
||||
# If this zone has been deactivated (possibly because the producer network it
|
||||
# targeted was deleted), the time at which it was deactivated. If the peering
|
||||
# connection is still active, this will be the empty string. This is in RFC3339
|
||||
# text format. Output only.
|
||||
# Corresponds to the JSON property `deactivateTime`
|
||||
# @return [String]
|
||||
attr_accessor :deactivate_time
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://developers.google.com/cloud-dns
|
||||
module DnsV2beta1
|
||||
VERSION = 'V2beta1'
|
||||
REVISION = '20190425'
|
||||
REVISION = '20190625'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -443,7 +443,7 @@ module Google
|
|||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Specifies parameters that will be used for generating initial DnsKeys for this
|
||||
# ManagedZone. Output only while state is not OFF.
|
||||
# ManagedZone. Can only be changed while state is OFF.
|
||||
# Corresponds to the JSON property `defaultKeySpecs`
|
||||
# @return [Array<Google::Apis::DnsV2beta1::DnsKeySpec>]
|
||||
attr_accessor :default_key_specs
|
||||
|
@ -455,7 +455,7 @@ module Google
|
|||
attr_accessor :kind
|
||||
|
||||
# Specifies the mechanism used to provide authenticated denial-of-existence
|
||||
# responses. Output only while state is not OFF.
|
||||
# responses. Can only be changed while state is OFF.
|
||||
# Corresponds to the JSON property `nonExistence`
|
||||
# @return [String]
|
||||
attr_accessor :non_existence
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/drive/
|
||||
module DriveV2
|
||||
VERSION = 'V2'
|
||||
REVISION = '20190613'
|
||||
REVISION = '20190620'
|
||||
|
||||
# See, edit, create, and delete all of your Google Drive files
|
||||
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
||||
|
|
|
@ -885,7 +885,7 @@ module Google
|
|||
attr_accessor :id
|
||||
|
||||
# Identifies this as a notification channel used to watch for changes to a
|
||||
# resource, which is "api#channel".
|
||||
# resource. Value: the fixed string "api#channel".
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
|
|
@ -1310,7 +1310,7 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Generates a set of file IDs which can be provided in insert requests.
|
||||
# Generates a set of file IDs which can be provided in insert or copy requests.
|
||||
# @param [Fixnum] max_results
|
||||
# Maximum number of IDs to return.
|
||||
# @param [String] space
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://developers.google.com/drive/
|
||||
module DriveV3
|
||||
VERSION = 'V3'
|
||||
REVISION = '20190613'
|
||||
REVISION = '20190620'
|
||||
|
||||
# See, edit, create, and delete all of your Google Drive files
|
||||
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'
|
||||
|
|
|
@ -363,7 +363,7 @@ module Google
|
|||
attr_accessor :id
|
||||
|
||||
# Identifies this as a notification channel used to watch for changes to a
|
||||
# resource, which is "api#channel".
|
||||
# resource. Value: the fixed string "api#channel".
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
|
|
@ -1017,7 +1017,7 @@ module Google
|
|||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Generates a set of file IDs which can be provided in create requests.
|
||||
# Generates a set of file IDs which can be provided in create or copy requests.
|
||||
# @param [Fixnum] count
|
||||
# The number of IDs to return.
|
||||
# @param [String] space
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/genomics
|
||||
module GenomicsV2alpha1
|
||||
VERSION = 'V2alpha1'
|
||||
REVISION = '20190606'
|
||||
REVISION = '20190626'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -1267,6 +1267,7 @@ module Google
|
|||
# Optional set of labels to apply to the VM and any attached disk resources.
|
||||
# These labels must adhere to the name and value restrictions on VM labels
|
||||
# imposed by Compute Engine.
|
||||
# Labels keys with the prefix 'google-' are reserved for use by Google.
|
||||
# Labels applied at creation time to the VM. Applied on a best-effort basis
|
||||
# to attached disk resources shortly after VM creation.
|
||||
# Corresponds to the JSON property `labels`
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
# @see https://cloud.google.com/run/
|
||||
module RunV1alpha1
|
||||
VERSION = 'V1alpha1'
|
||||
REVISION = '20190614'
|
||||
REVISION = '20190620'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -26,7 +26,7 @@ module Google
|
|||
class Addressable
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Deprecated - use url instead.
|
||||
# Corresponds to the JSON property `hostname`
|
||||
# @return [String]
|
||||
attr_accessor :hostname
|
||||
|
@ -2740,6 +2740,7 @@ module Google
|
|||
# Containers holds the single container that defines the unit of execution
|
||||
# for this Revision. In the context of a Revision, we disallow a number of
|
||||
# fields on this Container, including: name and lifecycle.
|
||||
# In Cloud Run, only a single container may be provided.
|
||||
# Corresponds to the JSON property `containers`
|
||||
# @return [Array<Google::Apis::RunV1alpha1::Container>]
|
||||
attr_accessor :containers
|
||||
|
@ -3043,13 +3044,14 @@ module Google
|
|||
# @return [Array<Google::Apis::RunV1alpha1::RouteCondition>]
|
||||
attr_accessor :conditions
|
||||
|
||||
# Deprecated - use url instead.
|
||||
# Domain holds the top-level domain that will distribute traffic over the
|
||||
# provided targets. It generally has the form
|
||||
# https://`route-hash`-`project-hash`-`cluster-level-suffix`.a.run.app
|
||||
# provided targets.
|
||||
# Corresponds to the JSON property `domain`
|
||||
# @return [String]
|
||||
attr_accessor :domain
|
||||
|
||||
# Deprecated - use address instead.
|
||||
# For Cloud Run, identifical to domain.
|
||||
# Corresponds to the JSON property `domainInternal`
|
||||
# @return [String]
|
||||
|
|
|
@ -25,7 +25,7 @@ module Google
|
|||
# @see https://cloud.google.com/source-repositories/docs/apis
|
||||
module SourcerepoV1
|
||||
VERSION = 'V1'
|
||||
REVISION = '20190419'
|
||||
REVISION = '20190611'
|
||||
|
||||
# View and manage your data across Google Cloud Platform services
|
||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||
|
|
|
@ -331,43 +331,10 @@ module Google
|
|||
|
||||
# The `Status` type defines a logical error model that is suitable for
|
||||
# different programming environments, including REST APIs and RPC APIs. It is
|
||||
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||
# - Simple to use and understand for most users
|
||||
# - Flexible enough to meet unexpected needs
|
||||
# # Overview
|
||||
# The `Status` message contains three pieces of data: error code, error
|
||||
# message, and error details. The error code should be an enum value of
|
||||
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||
# error message should be a developer-facing English message that helps
|
||||
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||
# error message is needed, put the localized message in the error details or
|
||||
# localize it in the client. The optional error details may contain arbitrary
|
||||
# information about the error. There is a predefined set of error detail types
|
||||
# in the package `google.rpc` that can be used for common error conditions.
|
||||
# # Language mapping
|
||||
# The `Status` message is the logical representation of the error model, but it
|
||||
# is not necessarily the actual wire format. When the `Status` message is
|
||||
# exposed in different client libraries and different wire protocols, it can be
|
||||
# mapped differently. For example, it will likely be mapped to some exceptions
|
||||
# in Java, but more likely mapped to some error codes in C.
|
||||
# # Other uses
|
||||
# The error model and the `Status` message can be used in a variety of
|
||||
# environments, either with or without APIs, to provide a
|
||||
# consistent developer experience across different environments.
|
||||
# Example uses of this error model include:
|
||||
# - Partial errors. If a service needs to return partial errors to the client,
|
||||
# it may embed the `Status` in the normal response to indicate the partial
|
||||
# errors.
|
||||
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
||||
# have a `Status` message for error reporting.
|
||||
# - Batch operations. If a client uses batch request and batch response, the
|
||||
# `Status` message should be used directly inside batch response, one for
|
||||
# each error sub-response.
|
||||
# - Asynchronous operations. If an API call embeds asynchronous operation
|
||||
# results in its response, the status of those operations should be
|
||||
# represented directly using the `Status` message.
|
||||
# - Logging. If some API errors are stored in logs, the message `Status` could
|
||||
# be used directly after any stripping needed for security/privacy reasons.
|
||||
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||
# three pieces of data: error code, error message, and error details.
|
||||
# You can find out more about this error model and how to work with it in the
|
||||
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||
# Corresponds to the JSON property `error`
|
||||
# @return [Google::Apis::SourcerepoV1::Status]
|
||||
attr_accessor :error
|
||||
|
@ -382,7 +349,7 @@ module Google
|
|||
|
||||
# The server-assigned name, which is only unique within the same service that
|
||||
# originally returns it. If you use the default HTTP mapping, the
|
||||
# `name` should have the format of `operations/some/unique/name`.
|
||||
# `name` should be a resource name ending with `operations/`unique_id``.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
@ -682,43 +649,10 @@ module Google
|
|||
|
||||
# The `Status` type defines a logical error model that is suitable for
|
||||
# different programming environments, including REST APIs and RPC APIs. It is
|
||||
# used by [gRPC](https://github.com/grpc). The error model is designed to be:
|
||||
# - Simple to use and understand for most users
|
||||
# - Flexible enough to meet unexpected needs
|
||||
# # Overview
|
||||
# The `Status` message contains three pieces of data: error code, error
|
||||
# message, and error details. The error code should be an enum value of
|
||||
# google.rpc.Code, but it may accept additional error codes if needed. The
|
||||
# error message should be a developer-facing English message that helps
|
||||
# developers *understand* and *resolve* the error. If a localized user-facing
|
||||
# error message is needed, put the localized message in the error details or
|
||||
# localize it in the client. The optional error details may contain arbitrary
|
||||
# information about the error. There is a predefined set of error detail types
|
||||
# in the package `google.rpc` that can be used for common error conditions.
|
||||
# # Language mapping
|
||||
# The `Status` message is the logical representation of the error model, but it
|
||||
# is not necessarily the actual wire format. When the `Status` message is
|
||||
# exposed in different client libraries and different wire protocols, it can be
|
||||
# mapped differently. For example, it will likely be mapped to some exceptions
|
||||
# in Java, but more likely mapped to some error codes in C.
|
||||
# # Other uses
|
||||
# The error model and the `Status` message can be used in a variety of
|
||||
# environments, either with or without APIs, to provide a
|
||||
# consistent developer experience across different environments.
|
||||
# Example uses of this error model include:
|
||||
# - Partial errors. If a service needs to return partial errors to the client,
|
||||
# it may embed the `Status` in the normal response to indicate the partial
|
||||
# errors.
|
||||
# - Workflow errors. A typical workflow has multiple steps. Each step may
|
||||
# have a `Status` message for error reporting.
|
||||
# - Batch operations. If a client uses batch request and batch response, the
|
||||
# `Status` message should be used directly inside batch response, one for
|
||||
# each error sub-response.
|
||||
# - Asynchronous operations. If an API call embeds asynchronous operation
|
||||
# results in its response, the status of those operations should be
|
||||
# represented directly using the `Status` message.
|
||||
# - Logging. If some API errors are stored in logs, the message `Status` could
|
||||
# be used directly after any stripping needed for security/privacy reasons.
|
||||
# used by [gRPC](https://github.com/grpc). Each `Status` message contains
|
||||
# three pieces of data: error code, error message, and error details.
|
||||
# You can find out more about this error model and how to work with it in the
|
||||
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
||||
class Status
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
|
@ -752,6 +686,45 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
# Metadata of SyncRepo.
|
||||
# This message is in the metadata field of Operation.
|
||||
class SyncRepoMetadata
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The name of the repo being synchronized. Values are of the form
|
||||
# `projects/<project>/repos/<repo>`.
|
||||
# Corresponds to the JSON property `name`
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# The time this operation is started.
|
||||
# Corresponds to the JSON property `startTime`
|
||||
# @return [String]
|
||||
attr_accessor :start_time
|
||||
|
||||
# The latest status message on syncing the repository.
|
||||
# Corresponds to the JSON property `statusMessage`
|
||||
# @return [String]
|
||||
attr_accessor :status_message
|
||||
|
||||
# The time this operation's status message is updated.
|
||||
# Corresponds to the JSON property `updateTime`
|
||||
# @return [String]
|
||||
attr_accessor :update_time
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@start_time = args[:start_time] if args.key?(:start_time)
|
||||
@status_message = args[:status_message] if args.key?(:status_message)
|
||||
@update_time = args[:update_time] if args.key?(:update_time)
|
||||
end
|
||||
end
|
||||
|
||||
# Request for SyncRepo.
|
||||
class SyncRepoRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
|
|
@ -106,6 +106,12 @@ module Google
|
|||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SyncRepoMetadata
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class SyncRepoRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
|
@ -271,6 +277,16 @@ module Google
|
|||
end
|
||||
end
|
||||
|
||||
class SyncRepoMetadata
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :name, as: 'name'
|
||||
property :start_time, as: 'startTime'
|
||||
property :status_message, as: 'statusMessage'
|
||||
property :update_time, as: 'updateTime'
|
||||
end
|
||||
end
|
||||
|
||||
class SyncRepoRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
|
|
|
@ -828,7 +828,7 @@ module Google
|
|||
attr_accessor :id
|
||||
|
||||
# Identifies this as a notification channel used to watch for changes to a
|
||||
# resource, which is "api#channel".
|
||||
# resource. Value: the fixed string "api#channel".
|
||||
# Corresponds to the JSON property `kind`
|
||||
# @return [String]
|
||||
attr_accessor :kind
|
||||
|
|
Loading…
Reference in New Issue