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:
Google APIs 2019-06-27 00:36:51 +00:00
parent 99b76788c5
commit 44cf32aff9
31 changed files with 135 additions and 110 deletions

View File

@ -604,7 +604,7 @@ module Google
attr_accessor :id attr_accessor :id
# Identifies this as a notification channel used to watch for changes to a # 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` # Corresponds to the JSON property `kind`
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind

View File

@ -340,7 +340,7 @@ module Google
attr_accessor :id attr_accessor :id
# Identifies this as a notification channel used to watch for changes to a # 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` # Corresponds to the JSON property `kind`
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/container-analysis/api/reference/rest/ # @see https://cloud.google.com/container-analysis/api/reference/rest/
module ContaineranalysisV1alpha1 module ContaineranalysisV1alpha1
VERSION = 'V1alpha1' VERSION = 'V1alpha1'
REVISION = '20190604' REVISION = '20190625'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow/ # @see https://cloud.google.com/dialogflow/
module DialogflowV2 module DialogflowV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20190616' REVISION = '20190626'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -827,6 +827,21 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :sample_rate_hertz 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) def initialize(**args)
update!(**args) update!(**args)
end end
@ -838,6 +853,7 @@ module Google
@model_variant = args[:model_variant] if args.key?(:model_variant) @model_variant = args[:model_variant] if args.key?(:model_variant)
@phrase_hints = args[:phrase_hints] if args.key?(:phrase_hints) @phrase_hints = args[:phrase_hints] if args.key?(:phrase_hints)
@sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz) @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
end end

View File

@ -909,6 +909,7 @@ module Google
property :model_variant, as: 'modelVariant' property :model_variant, as: 'modelVariant'
collection :phrase_hints, as: 'phraseHints' collection :phrase_hints, as: 'phraseHints'
property :sample_rate_hertz, as: 'sampleRateHertz' property :sample_rate_hertz, as: 'sampleRateHertz'
property :single_utterance, as: 'singleUtterance'
end end
end end

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/dialogflow/ # @see https://cloud.google.com/dialogflow/
module DialogflowV2beta1 module DialogflowV2beta1
VERSION = 'V2beta1' VERSION = 'V2beta1'
REVISION = '20190616' REVISION = '20190626'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -2472,6 +2472,21 @@ module Google
# @return [Fixnum] # @return [Fixnum]
attr_accessor :sample_rate_hertz 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) def initialize(**args)
update!(**args) update!(**args)
end end
@ -2485,6 +2500,7 @@ module Google
@model_variant = args[:model_variant] if args.key?(:model_variant) @model_variant = args[:model_variant] if args.key?(:model_variant)
@phrase_hints = args[:phrase_hints] if args.key?(:phrase_hints) @phrase_hints = args[:phrase_hints] if args.key?(:phrase_hints)
@sample_rate_hertz = args[:sample_rate_hertz] if args.key?(:sample_rate_hertz) @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
end end

View File

@ -1355,6 +1355,7 @@ module Google
property :model_variant, as: 'modelVariant' property :model_variant, as: 'modelVariant'
collection :phrase_hints, as: 'phraseHints' collection :phrase_hints, as: 'phraseHints'
property :sample_rate_hertz, as: 'sampleRateHertz' property :sample_rate_hertz, as: 'sampleRateHertz'
property :single_utterance, as: 'singleUtterance'
end end
end end

View File

@ -763,7 +763,7 @@ module Google
# ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume # ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
# default 'draft' environment. If `User ID` is not specified, we are using # 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 # "-". 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 # identifiers (preferably hashed). The length of the `Session ID` and
# `User ID` must not exceed 36 characters. # `User ID` must not exceed 36 characters.
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentRequest] google_cloud_dialogflow_v2beta1_detect_intent_request_object # @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 # ID>/sessions/<Session ID>`. If `Environment ID` is not specified, we assume
# default 'draft' environment. If `User ID` is not specified, we are using # 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 # "-". 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 # identifiers (preferably hashed). The length of the `Session ID` and
# `User ID` must not exceed 36 characters. # `User ID` must not exceed 36 characters.
# @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentRequest] google_cloud_dialogflow_v2beta1_detect_intent_request_object # @param [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1DetectIntentRequest] google_cloud_dialogflow_v2beta1_detect_intent_request_object

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/cloud-dns # @see https://developers.google.com/cloud-dns
module DnsV1 module DnsV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20190418' REVISION = '20190625'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -443,7 +443,7 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Specifies parameters that will be used for generating initial DnsKeys for this # 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` # Corresponds to the JSON property `defaultKeySpecs`
# @return [Array<Google::Apis::DnsV1::DnsKeySpec>] # @return [Array<Google::Apis::DnsV1::DnsKeySpec>]
attr_accessor :default_key_specs attr_accessor :default_key_specs
@ -455,7 +455,7 @@ module Google
attr_accessor :kind attr_accessor :kind
# Specifies the mechanism used to provide authenticated denial-of-existence # 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` # Corresponds to the JSON property `nonExistence`
# @return [String] # @return [String]
attr_accessor :non_existence attr_accessor :non_existence

View File

@ -47,7 +47,7 @@ module Google
attr_accessor :user_ip attr_accessor :user_ip
def initialize def initialize
super('https://www.googleapis.com/', 'dns/v1/projects/') super('https://dns.googleapis.com/', 'dns/v1/projects/')
@batch_path = 'batch/dns/v1' @batch_path = 'batch/dns/v1'
end end

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/cloud-dns # @see https://developers.google.com/cloud-dns
module DnsV1beta2 module DnsV1beta2
VERSION = 'V1beta2' VERSION = 'V1beta2'
REVISION = '20190611' REVISION = '20190625'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -458,7 +458,7 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Specifies parameters that will be used for generating initial DnsKeys for this # 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` # Corresponds to the JSON property `defaultKeySpecs`
# @return [Array<Google::Apis::DnsV1beta2::DnsKeySpec>] # @return [Array<Google::Apis::DnsV1beta2::DnsKeySpec>]
attr_accessor :default_key_specs attr_accessor :default_key_specs
@ -470,7 +470,7 @@ module Google
attr_accessor :kind attr_accessor :kind
# Specifies the mechanism used to provide authenticated denial-of-existence # 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` # Corresponds to the JSON property `nonExistence`
# @return [String] # @return [String]
attr_accessor :non_existence attr_accessor :non_existence
@ -621,11 +621,10 @@ module Google
class ManagedZonePeeringConfigTargetNetwork class ManagedZonePeeringConfigTargetNetwork
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# If this zone has been deactivated due to a problem with the network it # If this zone has been deactivated (possibly because the producer network it
# targeted, the time at which it was deactivated. The zone can be deactivated if, # targeted was deleted), the time at which it was deactivated. If the peering
# for instance, the network it targeted was deleted. If the targeted network is # connection is still active, this will be the empty string. This is in RFC3339
# still present, this will be the empty string. This is in RFC3339 text format. # text format. Output only.
# Output only.
# Corresponds to the JSON property `deactivateTime` # Corresponds to the JSON property `deactivateTime`
# @return [String] # @return [String]
attr_accessor :deactivate_time attr_accessor :deactivate_time

View File

@ -25,7 +25,7 @@ module Google
# @see https://developers.google.com/cloud-dns # @see https://developers.google.com/cloud-dns
module DnsV2beta1 module DnsV2beta1
VERSION = 'V2beta1' VERSION = 'V2beta1'
REVISION = '20190425' REVISION = '20190625'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -443,7 +443,7 @@ module Google
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# Specifies parameters that will be used for generating initial DnsKeys for this # 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` # Corresponds to the JSON property `defaultKeySpecs`
# @return [Array<Google::Apis::DnsV2beta1::DnsKeySpec>] # @return [Array<Google::Apis::DnsV2beta1::DnsKeySpec>]
attr_accessor :default_key_specs attr_accessor :default_key_specs
@ -455,7 +455,7 @@ module Google
attr_accessor :kind attr_accessor :kind
# Specifies the mechanism used to provide authenticated denial-of-existence # 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` # Corresponds to the JSON property `nonExistence`
# @return [String] # @return [String]
attr_accessor :non_existence attr_accessor :non_existence

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/drive/ # @see https://developers.google.com/drive/
module DriveV2 module DriveV2
VERSION = 'V2' VERSION = 'V2'
REVISION = '20190613' REVISION = '20190620'
# See, edit, create, and delete all of your Google Drive files # See, edit, create, and delete all of your Google Drive files
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -885,7 +885,7 @@ module Google
attr_accessor :id attr_accessor :id
# Identifies this as a notification channel used to watch for changes to a # 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` # Corresponds to the JSON property `kind`
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind

View File

@ -1310,7 +1310,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end 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 # @param [Fixnum] max_results
# Maximum number of IDs to return. # Maximum number of IDs to return.
# @param [String] space # @param [String] space

View File

@ -26,7 +26,7 @@ module Google
# @see https://developers.google.com/drive/ # @see https://developers.google.com/drive/
module DriveV3 module DriveV3
VERSION = 'V3' VERSION = 'V3'
REVISION = '20190613' REVISION = '20190620'
# See, edit, create, and delete all of your Google Drive files # See, edit, create, and delete all of your Google Drive files
AUTH_DRIVE = 'https://www.googleapis.com/auth/drive' AUTH_DRIVE = 'https://www.googleapis.com/auth/drive'

View File

@ -363,7 +363,7 @@ module Google
attr_accessor :id attr_accessor :id
# Identifies this as a notification channel used to watch for changes to a # 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` # Corresponds to the JSON property `kind`
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind

View File

@ -1017,7 +1017,7 @@ module Google
execute_or_queue_command(command, &block) execute_or_queue_command(command, &block)
end 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 # @param [Fixnum] count
# The number of IDs to return. # The number of IDs to return.
# @param [String] space # @param [String] space

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/genomics # @see https://cloud.google.com/genomics
module GenomicsV2alpha1 module GenomicsV2alpha1
VERSION = 'V2alpha1' VERSION = 'V2alpha1'
REVISION = '20190606' REVISION = '20190626'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -1267,6 +1267,7 @@ module Google
# Optional set of labels to apply to the VM and any attached disk resources. # 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 # These labels must adhere to the name and value restrictions on VM labels
# imposed by Compute Engine. # 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 # Labels applied at creation time to the VM. Applied on a best-effort basis
# to attached disk resources shortly after VM creation. # to attached disk resources shortly after VM creation.
# Corresponds to the JSON property `labels` # Corresponds to the JSON property `labels`

View File

@ -26,7 +26,7 @@ module Google
# @see https://cloud.google.com/run/ # @see https://cloud.google.com/run/
module RunV1alpha1 module RunV1alpha1
VERSION = 'V1alpha1' VERSION = 'V1alpha1'
REVISION = '20190614' REVISION = '20190620'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -26,7 +26,7 @@ module Google
class Addressable class Addressable
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
# # Deprecated - use url instead.
# Corresponds to the JSON property `hostname` # Corresponds to the JSON property `hostname`
# @return [String] # @return [String]
attr_accessor :hostname attr_accessor :hostname
@ -2740,6 +2740,7 @@ module Google
# Containers holds the single container that defines the unit of execution # 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 # for this Revision. In the context of a Revision, we disallow a number of
# fields on this Container, including: name and lifecycle. # fields on this Container, including: name and lifecycle.
# In Cloud Run, only a single container may be provided.
# Corresponds to the JSON property `containers` # Corresponds to the JSON property `containers`
# @return [Array<Google::Apis::RunV1alpha1::Container>] # @return [Array<Google::Apis::RunV1alpha1::Container>]
attr_accessor :containers attr_accessor :containers
@ -3043,13 +3044,14 @@ module Google
# @return [Array<Google::Apis::RunV1alpha1::RouteCondition>] # @return [Array<Google::Apis::RunV1alpha1::RouteCondition>]
attr_accessor :conditions attr_accessor :conditions
# Deprecated - use url instead.
# Domain holds the top-level domain that will distribute traffic over the # Domain holds the top-level domain that will distribute traffic over the
# provided targets. It generally has the form # provided targets.
# https://`route-hash`-`project-hash`-`cluster-level-suffix`.a.run.app
# Corresponds to the JSON property `domain` # Corresponds to the JSON property `domain`
# @return [String] # @return [String]
attr_accessor :domain attr_accessor :domain
# Deprecated - use address instead.
# For Cloud Run, identifical to domain. # For Cloud Run, identifical to domain.
# Corresponds to the JSON property `domainInternal` # Corresponds to the JSON property `domainInternal`
# @return [String] # @return [String]

View File

@ -25,7 +25,7 @@ module Google
# @see https://cloud.google.com/source-repositories/docs/apis # @see https://cloud.google.com/source-repositories/docs/apis
module SourcerepoV1 module SourcerepoV1
VERSION = 'V1' VERSION = 'V1'
REVISION = '20190419' REVISION = '20190611'
# View and manage your data across Google Cloud Platform services # View and manage your data across Google Cloud Platform services
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'

View File

@ -331,43 +331,10 @@ module Google
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is # 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: # used by [gRPC](https://github.com/grpc). Each `Status` message contains
# - Simple to use and understand for most users # three pieces of data: error code, error message, and error details.
# - Flexible enough to meet unexpected needs # You can find out more about this error model and how to work with it in the
# # Overview # [API Design Guide](https://cloud.google.com/apis/design/errors).
# 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.
# Corresponds to the JSON property `error` # Corresponds to the JSON property `error`
# @return [Google::Apis::SourcerepoV1::Status] # @return [Google::Apis::SourcerepoV1::Status]
attr_accessor :error attr_accessor :error
@ -382,7 +349,7 @@ module Google
# The server-assigned name, which is only unique within the same service that # The server-assigned name, which is only unique within the same service that
# originally returns it. If you use the default HTTP mapping, the # 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` # Corresponds to the JSON property `name`
# @return [String] # @return [String]
attr_accessor :name attr_accessor :name
@ -682,43 +649,10 @@ module Google
# The `Status` type defines a logical error model that is suitable for # The `Status` type defines a logical error model that is suitable for
# different programming environments, including REST APIs and RPC APIs. It is # 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: # used by [gRPC](https://github.com/grpc). Each `Status` message contains
# - Simple to use and understand for most users # three pieces of data: error code, error message, and error details.
# - Flexible enough to meet unexpected needs # You can find out more about this error model and how to work with it in the
# # Overview # [API Design Guide](https://cloud.google.com/apis/design/errors).
# 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.
class Status class Status
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable
@ -752,6 +686,45 @@ module Google
end end
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. # Request for SyncRepo.
class SyncRepoRequest class SyncRepoRequest
include Google::Apis::Core::Hashable include Google::Apis::Core::Hashable

View File

@ -106,6 +106,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport include Google::Apis::Core::JsonObjectSupport
end end
class SyncRepoMetadata
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class SyncRepoRequest class SyncRepoRequest
class Representation < Google::Apis::Core::JsonRepresentation; end class Representation < Google::Apis::Core::JsonRepresentation; end
@ -271,6 +277,16 @@ module Google
end end
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 class SyncRepoRequest
# @private # @private
class Representation < Google::Apis::Core::JsonRepresentation class Representation < Google::Apis::Core::JsonRepresentation

View File

@ -828,7 +828,7 @@ module Google
attr_accessor :id attr_accessor :id
# Identifies this as a notification channel used to watch for changes to a # 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` # Corresponds to the JSON property `kind`
# @return [String] # @return [String]
attr_accessor :kind attr_accessor :kind