From 44cf32aff9735bdd1eab8ddbf1f4552cb4471807 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Thu, 27 Jun 2019 00:36:51 +0000 Subject: [PATCH] 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 --- .../google/apis/admin_directory_v1/classes.rb | 2 +- .../google/apis/admin_reports_v1/classes.rb | 2 +- .../google/apis/containeranalysis_v1alpha1.rb | 2 +- generated/google/apis/dialogflow_v2.rb | 2 +- .../google/apis/dialogflow_v2/classes.rb | 16 +++ .../apis/dialogflow_v2/representations.rb | 1 + generated/google/apis/dialogflow_v2beta1.rb | 2 +- .../google/apis/dialogflow_v2beta1/classes.rb | 16 +++ .../dialogflow_v2beta1/representations.rb | 1 + .../google/apis/dialogflow_v2beta1/service.rb | 4 +- generated/google/apis/dns_v1.rb | 2 +- generated/google/apis/dns_v1/classes.rb | 4 +- generated/google/apis/dns_v1/service.rb | 2 +- generated/google/apis/dns_v1beta2.rb | 2 +- generated/google/apis/dns_v1beta2/classes.rb | 13 +- generated/google/apis/dns_v2beta1.rb | 2 +- generated/google/apis/dns_v2beta1/classes.rb | 4 +- generated/google/apis/drive_v2.rb | 2 +- generated/google/apis/drive_v2/classes.rb | 2 +- generated/google/apis/drive_v2/service.rb | 2 +- generated/google/apis/drive_v3.rb | 2 +- generated/google/apis/drive_v3/classes.rb | 2 +- generated/google/apis/drive_v3/service.rb | 2 +- generated/google/apis/genomics_v2alpha1.rb | 2 +- .../google/apis/genomics_v2alpha1/classes.rb | 1 + generated/google/apis/run_v1alpha1.rb | 2 +- generated/google/apis/run_v1alpha1/classes.rb | 8 +- generated/google/apis/sourcerepo_v1.rb | 2 +- .../google/apis/sourcerepo_v1/classes.rb | 123 +++++++----------- .../apis/sourcerepo_v1/representations.rb | 16 +++ generated/google/apis/storage_v1/classes.rb | 2 +- 31 files changed, 135 insertions(+), 110 deletions(-) diff --git a/generated/google/apis/admin_directory_v1/classes.rb b/generated/google/apis/admin_directory_v1/classes.rb index 5a906232b..bda174af2 100644 --- a/generated/google/apis/admin_directory_v1/classes.rb +++ b/generated/google/apis/admin_directory_v1/classes.rb @@ -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 diff --git a/generated/google/apis/admin_reports_v1/classes.rb b/generated/google/apis/admin_reports_v1/classes.rb index 61490b44b..ec407b073 100644 --- a/generated/google/apis/admin_reports_v1/classes.rb +++ b/generated/google/apis/admin_reports_v1/classes.rb @@ -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 diff --git a/generated/google/apis/containeranalysis_v1alpha1.rb b/generated/google/apis/containeranalysis_v1alpha1.rb index 54f3cf3ec..58ed5fa10 100644 --- a/generated/google/apis/containeranalysis_v1alpha1.rb +++ b/generated/google/apis/containeranalysis_v1alpha1.rb @@ -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' diff --git a/generated/google/apis/dialogflow_v2.rb b/generated/google/apis/dialogflow_v2.rb index cc0d7003d..370ea28a3 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/ 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' diff --git a/generated/google/apis/dialogflow_v2/classes.rb b/generated/google/apis/dialogflow_v2/classes.rb index e79a43240..603c83850 100644 --- a/generated/google/apis/dialogflow_v2/classes.rb +++ b/generated/google/apis/dialogflow_v2/classes.rb @@ -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 diff --git a/generated/google/apis/dialogflow_v2/representations.rb b/generated/google/apis/dialogflow_v2/representations.rb index 798744614..d0d93aa1e 100644 --- a/generated/google/apis/dialogflow_v2/representations.rb +++ b/generated/google/apis/dialogflow_v2/representations.rb @@ -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 diff --git a/generated/google/apis/dialogflow_v2beta1.rb b/generated/google/apis/dialogflow_v2beta1.rb index be7896205..b05fcab76 100644 --- a/generated/google/apis/dialogflow_v2beta1.rb +++ b/generated/google/apis/dialogflow_v2beta1.rb @@ -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' diff --git a/generated/google/apis/dialogflow_v2beta1/classes.rb b/generated/google/apis/dialogflow_v2beta1/classes.rb index 2c2beed76..968a0a5be 100644 --- a/generated/google/apis/dialogflow_v2beta1/classes.rb +++ b/generated/google/apis/dialogflow_v2beta1/classes.rb @@ -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 diff --git a/generated/google/apis/dialogflow_v2beta1/representations.rb b/generated/google/apis/dialogflow_v2beta1/representations.rb index e14b55f25..8ff0f48cb 100644 --- a/generated/google/apis/dialogflow_v2beta1/representations.rb +++ b/generated/google/apis/dialogflow_v2beta1/representations.rb @@ -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 diff --git a/generated/google/apis/dialogflow_v2beta1/service.rb b/generated/google/apis/dialogflow_v2beta1/service.rb index 5c8a95815..eb3a6f172 100644 --- a/generated/google/apis/dialogflow_v2beta1/service.rb +++ b/generated/google/apis/dialogflow_v2beta1/service.rb @@ -763,7 +763,7 @@ module Google # ID>/sessions/`. 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/`. 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 diff --git a/generated/google/apis/dns_v1.rb b/generated/google/apis/dns_v1.rb index b6c63d90e..9ee3323b1 100644 --- a/generated/google/apis/dns_v1.rb +++ b/generated/google/apis/dns_v1.rb @@ -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' diff --git a/generated/google/apis/dns_v1/classes.rb b/generated/google/apis/dns_v1/classes.rb index 6226bb888..938ad5deb 100644 --- a/generated/google/apis/dns_v1/classes.rb +++ b/generated/google/apis/dns_v1/classes.rb @@ -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] 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 diff --git a/generated/google/apis/dns_v1/service.rb b/generated/google/apis/dns_v1/service.rb index 0c74fdc6a..3558e2b0d 100644 --- a/generated/google/apis/dns_v1/service.rb +++ b/generated/google/apis/dns_v1/service.rb @@ -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 diff --git a/generated/google/apis/dns_v1beta2.rb b/generated/google/apis/dns_v1beta2.rb index a6ea0d79d..440dd838f 100644 --- a/generated/google/apis/dns_v1beta2.rb +++ b/generated/google/apis/dns_v1beta2.rb @@ -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' diff --git a/generated/google/apis/dns_v1beta2/classes.rb b/generated/google/apis/dns_v1beta2/classes.rb index b0ce0f32d..c736744ea 100644 --- a/generated/google/apis/dns_v1beta2/classes.rb +++ b/generated/google/apis/dns_v1beta2/classes.rb @@ -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] 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 diff --git a/generated/google/apis/dns_v2beta1.rb b/generated/google/apis/dns_v2beta1.rb index adce91442..6fc62e52d 100644 --- a/generated/google/apis/dns_v2beta1.rb +++ b/generated/google/apis/dns_v2beta1.rb @@ -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' diff --git a/generated/google/apis/dns_v2beta1/classes.rb b/generated/google/apis/dns_v2beta1/classes.rb index 3ffd7728b..e67207142 100644 --- a/generated/google/apis/dns_v2beta1/classes.rb +++ b/generated/google/apis/dns_v2beta1/classes.rb @@ -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] 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 diff --git a/generated/google/apis/drive_v2.rb b/generated/google/apis/drive_v2.rb index 3f5a04c6c..03ef23dd0 100644 --- a/generated/google/apis/drive_v2.rb +++ b/generated/google/apis/drive_v2.rb @@ -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' diff --git a/generated/google/apis/drive_v2/classes.rb b/generated/google/apis/drive_v2/classes.rb index d0561cc23..635384df3 100644 --- a/generated/google/apis/drive_v2/classes.rb +++ b/generated/google/apis/drive_v2/classes.rb @@ -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 diff --git a/generated/google/apis/drive_v2/service.rb b/generated/google/apis/drive_v2/service.rb index dc9e2d5de..0366541b4 100644 --- a/generated/google/apis/drive_v2/service.rb +++ b/generated/google/apis/drive_v2/service.rb @@ -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 diff --git a/generated/google/apis/drive_v3.rb b/generated/google/apis/drive_v3.rb index a741af13e..34b2ed474 100644 --- a/generated/google/apis/drive_v3.rb +++ b/generated/google/apis/drive_v3.rb @@ -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' diff --git a/generated/google/apis/drive_v3/classes.rb b/generated/google/apis/drive_v3/classes.rb index ecf65d1d4..33e5e0a3d 100644 --- a/generated/google/apis/drive_v3/classes.rb +++ b/generated/google/apis/drive_v3/classes.rb @@ -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 diff --git a/generated/google/apis/drive_v3/service.rb b/generated/google/apis/drive_v3/service.rb index e101e852a..89d676215 100644 --- a/generated/google/apis/drive_v3/service.rb +++ b/generated/google/apis/drive_v3/service.rb @@ -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 diff --git a/generated/google/apis/genomics_v2alpha1.rb b/generated/google/apis/genomics_v2alpha1.rb index c4083e50d..197e61a5a 100644 --- a/generated/google/apis/genomics_v2alpha1.rb +++ b/generated/google/apis/genomics_v2alpha1.rb @@ -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' diff --git a/generated/google/apis/genomics_v2alpha1/classes.rb b/generated/google/apis/genomics_v2alpha1/classes.rb index bbd90f5a4..5e7803098 100644 --- a/generated/google/apis/genomics_v2alpha1/classes.rb +++ b/generated/google/apis/genomics_v2alpha1/classes.rb @@ -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` diff --git a/generated/google/apis/run_v1alpha1.rb b/generated/google/apis/run_v1alpha1.rb index d948e6d96..e5bee922b 100644 --- a/generated/google/apis/run_v1alpha1.rb +++ b/generated/google/apis/run_v1alpha1.rb @@ -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' diff --git a/generated/google/apis/run_v1alpha1/classes.rb b/generated/google/apis/run_v1alpha1/classes.rb index 50768c884..c04c28086 100644 --- a/generated/google/apis/run_v1alpha1/classes.rb +++ b/generated/google/apis/run_v1alpha1/classes.rb @@ -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] attr_accessor :containers @@ -3043,13 +3044,14 @@ module Google # @return [Array] 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] diff --git a/generated/google/apis/sourcerepo_v1.rb b/generated/google/apis/sourcerepo_v1.rb index 84364b0f8..a6a4f5478 100644 --- a/generated/google/apis/sourcerepo_v1.rb +++ b/generated/google/apis/sourcerepo_v1.rb @@ -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' diff --git a/generated/google/apis/sourcerepo_v1/classes.rb b/generated/google/apis/sourcerepo_v1/classes.rb index 6e435e2c6..69ed4c505 100644 --- a/generated/google/apis/sourcerepo_v1/classes.rb +++ b/generated/google/apis/sourcerepo_v1/classes.rb @@ -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//repos/`. + # 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 diff --git a/generated/google/apis/sourcerepo_v1/representations.rb b/generated/google/apis/sourcerepo_v1/representations.rb index c740fd47f..56642b024 100644 --- a/generated/google/apis/sourcerepo_v1/representations.rb +++ b/generated/google/apis/sourcerepo_v1/representations.rb @@ -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 diff --git a/generated/google/apis/storage_v1/classes.rb b/generated/google/apis/storage_v1/classes.rb index 0eb365443..d441c660b 100644 --- a/generated/google/apis/storage_v1/classes.rb +++ b/generated/google/apis/storage_v1/classes.rb @@ -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