From d6557dee8e6cf9a16f87af9dad9c8ef317195291 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Tue, 1 Oct 2019 00:37:57 +0000 Subject: [PATCH] Autogenerated update (2019-10-01) Update: - bigquery_v2 - bigqueryconnection_v1beta1 - cloudkms_v1 - content_v2 - dataproc_v1 - dataproc_v1beta2 - dialogflow_v2 - dialogflow_v2beta1 - iap_v1 - vision_v1 - youtube_partner_v1 --- generated/google/apis/bigquery_v2.rb | 2 +- generated/google/apis/bigquery_v2/classes.rb | 159 ++++++++++++ .../apis/bigquery_v2/representations.rb | 80 +++++++ .../google/apis/bigqueryconnection_v1beta1.rb | 2 +- .../bigqueryconnection_v1beta1/classes.rb | 91 ++++--- generated/google/apis/cloudkms_v1.rb | 2 +- generated/google/apis/cloudkms_v1/classes.rb | 111 ++++++--- generated/google/apis/cloudkms_v1/service.rb | 36 +-- generated/google/apis/content_v2.rb | 2 +- generated/google/apis/content_v2/service.rb | 226 ------------------ generated/google/apis/dataproc_v1.rb | 2 +- generated/google/apis/dataproc_v1/classes.rb | 111 +++++---- generated/google/apis/dataproc_v1/service.rb | 4 +- generated/google/apis/dataproc_v1beta2.rb | 2 +- .../google/apis/dataproc_v1beta2/classes.rb | 148 ++++++++---- .../google/apis/dataproc_v1beta2/service.rb | 2 +- generated/google/apis/dialogflow_v2.rb | 2 +- .../google/apis/dialogflow_v2/classes.rb | 119 +++++---- .../apis/dialogflow_v2/representations.rb | 20 ++ generated/google/apis/dialogflow_v2beta1.rb | 2 +- .../google/apis/dialogflow_v2beta1/classes.rb | 115 +++++---- .../dialogflow_v2beta1/representations.rb | 20 ++ generated/google/apis/iap_v1.rb | 2 +- generated/google/apis/iap_v1/classes.rb | 91 ++++--- generated/google/apis/vision_v1.rb | 2 +- generated/google/apis/vision_v1/classes.rb | 150 ------------ .../google/apis/vision_v1/representations.rb | 44 ---- generated/google/apis/youtube_partner_v1.rb | 2 +- .../google/apis/youtube_partner_v1/classes.rb | 83 ------- .../youtube_partner_v1/representations.rb | 35 --- .../google/apis/youtube_partner_v1/service.rb | 100 -------- 31 files changed, 810 insertions(+), 957 deletions(-) diff --git a/generated/google/apis/bigquery_v2.rb b/generated/google/apis/bigquery_v2.rb index 92604d779..566b732c0 100644 --- a/generated/google/apis/bigquery_v2.rb +++ b/generated/google/apis/bigquery_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigqueryV2 VERSION = 'V2' - REVISION = '20190917' + REVISION = '20190923' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigquery_v2/classes.rb b/generated/google/apis/bigquery_v2/classes.rb index 1fec66d44..ff193241a 100644 --- a/generated/google/apis/bigquery_v2/classes.rb +++ b/generated/google/apis/bigquery_v2/classes.rb @@ -139,6 +139,158 @@ module Google end end + # Arima coefficients. + class ArimaCoefficients + include Google::Apis::Core::Hashable + + # Auto-regressive coefficients, an array of double. + # Corresponds to the JSON property `autoRegressiveCoefficients` + # @return [Array] + attr_accessor :auto_regressive_coefficients + + # Intercept coefficient, just a double not an array. + # Corresponds to the JSON property `interceptCoefficient` + # @return [Float] + attr_accessor :intercept_coefficient + + # Moving-average coefficients, an array of double. + # Corresponds to the JSON property `movingAverageCoefficients` + # @return [Array] + attr_accessor :moving_average_coefficients + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @auto_regressive_coefficients = args[:auto_regressive_coefficients] if args.key?(:auto_regressive_coefficients) + @intercept_coefficient = args[:intercept_coefficient] if args.key?(:intercept_coefficient) + @moving_average_coefficients = args[:moving_average_coefficients] if args.key?(:moving_average_coefficients) + end + end + + # ARIMA model fitting metrics. + class ArimaFittingMetrics + include Google::Apis::Core::Hashable + + # AIC + # Corresponds to the JSON property `aic` + # @return [Float] + attr_accessor :aic + + # log-likelihood + # Corresponds to the JSON property `logLikelihood` + # @return [Float] + attr_accessor :log_likelihood + + # variance. + # Corresponds to the JSON property `variance` + # @return [Float] + attr_accessor :variance + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @aic = args[:aic] if args.key?(:aic) + @log_likelihood = args[:log_likelihood] if args.key?(:log_likelihood) + @variance = args[:variance] if args.key?(:variance) + end + end + + # Arima model information. + class ArimaModelInfo + include Google::Apis::Core::Hashable + + # Arima coefficients. + # Corresponds to the JSON property `arimaCoefficients` + # @return [Google::Apis::BigqueryV2::ArimaCoefficients] + attr_accessor :arima_coefficients + + # ARIMA model fitting metrics. + # Corresponds to the JSON property `arimaFittingMetrics` + # @return [Google::Apis::BigqueryV2::ArimaFittingMetrics] + attr_accessor :arima_fitting_metrics + + # Arima order, can be used for both non-seasonal and seasonal parts. + # Corresponds to the JSON property `nonSeasonalOrder` + # @return [Google::Apis::BigqueryV2::ArimaOrder] + attr_accessor :non_seasonal_order + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @arima_coefficients = args[:arima_coefficients] if args.key?(:arima_coefficients) + @arima_fitting_metrics = args[:arima_fitting_metrics] if args.key?(:arima_fitting_metrics) + @non_seasonal_order = args[:non_seasonal_order] if args.key?(:non_seasonal_order) + end + end + + # Arima order, can be used for both non-seasonal and seasonal parts. + class ArimaOrder + include Google::Apis::Core::Hashable + + # Order of the differencing part. + # Corresponds to the JSON property `d` + # @return [Fixnum] + attr_accessor :d + + # Order of the autoregressive part. + # Corresponds to the JSON property `p` + # @return [Fixnum] + attr_accessor :p + + # Order of the moving-average part. + # Corresponds to the JSON property `q` + # @return [Fixnum] + attr_accessor :q + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @d = args[:d] if args.key?(:d) + @p = args[:p] if args.key?(:p) + @q = args[:q] if args.key?(:q) + end + end + + # (Auto-)arima fitting result. Wrap everything in ArimaResult for easier + # refactoring if we want to use model-specific iteration results. + class ArimaResult + include Google::Apis::Core::Hashable + + # This message is repeated because there are multiple arima models + # fitted in auto-arima. For non-auto-arima model, its size is one. + # Corresponds to the JSON property `arimaModelInfo` + # @return [Array] + attr_accessor :arima_model_info + + # Seasonal periods. Repeated because multiple periods are supported for + # one time series. + # Corresponds to the JSON property `seasonalPeriods` + # @return [Array] + attr_accessor :seasonal_periods + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @arima_model_info = args[:arima_model_info] if args.key?(:arima_model_info) + @seasonal_periods = args[:seasonal_periods] if args.key?(:seasonal_periods) + end + end + # class BigQueryModelTraining include Google::Apis::Core::Hashable @@ -1945,6 +2097,12 @@ module Google class IterationResult include Google::Apis::Core::Hashable + # (Auto-)arima fitting result. Wrap everything in ArimaResult for easier + # refactoring if we want to use model-specific iteration results. + # Corresponds to the JSON property `arimaResult` + # @return [Google::Apis::BigqueryV2::ArimaResult] + attr_accessor :arima_result + # Information about top clusters for clustering models. # Corresponds to the JSON property `clusterInfos` # @return [Array] @@ -1981,6 +2139,7 @@ module Google # Update properties of this object def update!(**args) + @arima_result = args[:arima_result] if args.key?(:arima_result) @cluster_infos = args[:cluster_infos] if args.key?(:cluster_infos) @duration_ms = args[:duration_ms] if args.key?(:duration_ms) @eval_loss = args[:eval_loss] if args.key?(:eval_loss) diff --git a/generated/google/apis/bigquery_v2/representations.rb b/generated/google/apis/bigquery_v2/representations.rb index c4ba47f19..05a8b2018 100644 --- a/generated/google/apis/bigquery_v2/representations.rb +++ b/generated/google/apis/bigquery_v2/representations.rb @@ -34,6 +34,36 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class ArimaCoefficients + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ArimaFittingMetrics + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ArimaModelInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ArimaOrder + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class ArimaResult + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class BigQueryModelTraining class Representation < Google::Apis::Core::JsonRepresentation; end @@ -682,6 +712,54 @@ module Google end end + class ArimaCoefficients + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :auto_regressive_coefficients, as: 'autoRegressiveCoefficients' + property :intercept_coefficient, as: 'interceptCoefficient' + collection :moving_average_coefficients, as: 'movingAverageCoefficients' + end + end + + class ArimaFittingMetrics + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :aic, as: 'aic' + property :log_likelihood, as: 'logLikelihood' + property :variance, as: 'variance' + end + end + + class ArimaModelInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :arima_coefficients, as: 'arimaCoefficients', class: Google::Apis::BigqueryV2::ArimaCoefficients, decorator: Google::Apis::BigqueryV2::ArimaCoefficients::Representation + + property :arima_fitting_metrics, as: 'arimaFittingMetrics', class: Google::Apis::BigqueryV2::ArimaFittingMetrics, decorator: Google::Apis::BigqueryV2::ArimaFittingMetrics::Representation + + property :non_seasonal_order, as: 'nonSeasonalOrder', class: Google::Apis::BigqueryV2::ArimaOrder, decorator: Google::Apis::BigqueryV2::ArimaOrder::Representation + + end + end + + class ArimaOrder + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :d, :numeric_string => true, as: 'd' + property :p, :numeric_string => true, as: 'p' + property :q, :numeric_string => true, as: 'q' + end + end + + class ArimaResult + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :arima_model_info, as: 'arimaModelInfo', class: Google::Apis::BigqueryV2::ArimaModelInfo, decorator: Google::Apis::BigqueryV2::ArimaModelInfo::Representation + + collection :seasonal_periods, as: 'seasonalPeriods' + end + end + class BigQueryModelTraining # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1107,6 +1185,8 @@ module Google class IterationResult # @private class Representation < Google::Apis::Core::JsonRepresentation + property :arima_result, as: 'arimaResult', class: Google::Apis::BigqueryV2::ArimaResult, decorator: Google::Apis::BigqueryV2::ArimaResult::Representation + collection :cluster_infos, as: 'clusterInfos', class: Google::Apis::BigqueryV2::ClusterInfo, decorator: Google::Apis::BigqueryV2::ClusterInfo::Representation property :duration_ms, :numeric_string => true, as: 'durationMs' diff --git a/generated/google/apis/bigqueryconnection_v1beta1.rb b/generated/google/apis/bigqueryconnection_v1beta1.rb index 862ddc125..a243b4681 100644 --- a/generated/google/apis/bigqueryconnection_v1beta1.rb +++ b/generated/google/apis/bigqueryconnection_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/bigquery/ module BigqueryconnectionV1beta1 VERSION = 'V1beta1' - REVISION = '20190907' + REVISION = '20190923' # View and manage your data in Google BigQuery AUTH_BIGQUERY = 'https://www.googleapis.com/auth/bigquery' diff --git a/generated/google/apis/bigqueryconnection_v1beta1/classes.rb b/generated/google/apis/bigqueryconnection_v1beta1/classes.rb index 8731eca4f..6e52294b1 100644 --- a/generated/google/apis/bigqueryconnection_v1beta1/classes.rb +++ b/generated/google/apis/bigqueryconnection_v1beta1/classes.rb @@ -455,25 +455,34 @@ module Google # Defines an Identity and Access Management (IAM) policy. It is used to # specify access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `binding` binds a list of - # `members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. + # A `Policy` is a collection of `bindings`. A `binding` binds one or more + # `members` to a single `role`. Members can be user accounts, service accounts, + # Google groups, and domains (such as G Suite). A `role` is a named list of + # permissions (defined by IAM or configured by users). A `binding` can + # optionally specify a `condition`, which is a logic expression that further + # constrains the role binding based on attributes about the request and/or + # target resource. # **JSON Example** # ` # "bindings": [ # ` - # "role": "roles/owner", + # "role": "roles/resourcemanager.organizationAdmin", # "members": [ # "user:mike@example.com", # "group:admins@example.com", # "domain:google.com", - # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # "serviceAccount:my-project-id@appspot.gserviceaccount.com" # ] # `, # ` - # "role": "roles/viewer", - # "members": ["user:sean@example.com"] + # "role": "roles/resourcemanager.organizationViewer", + # "members": ["user:eve@example.com"], + # "condition": ` + # "title": "expirable access", + # "description": "Does not grant access after Sep 2020", + # "expression": "request.time < + # timestamp('2020-10-01T00:00:00.000Z')", + # ` # ` # ] # ` @@ -483,11 +492,15 @@ module Google # - user:mike@example.com # - group:admins@example.com # - domain:google.com - # - serviceAccount:my-other-app@appspot.gserviceaccount.com - # role: roles/owner + # - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin # - members: - # - user:sean@example.com - # role: roles/viewer + # - user:eve@example.com + # role: roles/resourcemanager.organizationViewer + # condition: + # title: expirable access + # description: Does not grant access after Sep 2020 + # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') # For a description of IAM and its features, see the # [IAM developer's guide](https://cloud.google.com/iam/docs). class Policy @@ -498,7 +511,8 @@ module Google # @return [Array] attr_accessor :audit_configs - # Associates a list of `members` to a `role`. + # Associates a list of `members` to a `role`. Optionally may specify a + # `condition` that determines when binding is in effect. # `bindings` with no members will result in an error. # Corresponds to the JSON property `bindings` # @return [Array] @@ -512,7 +526,9 @@ module Google # systems are expected to put that etag in the request to `setIamPolicy` to # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing - # policy is overwritten. + # policy is overwritten. Due to blind-set semantics of an etag-less policy, + # 'setIamPolicy' will not fail even if either of incoming or stored policy + # does not meet the version requirements. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -521,9 +537,13 @@ module Google # Specifies the format of the policy. # Valid values are 0, 1, and 3. Requests specifying an invalid value will be # rejected. - # Policies with any conditional bindings must specify version 3. Policies - # without any conditional bindings may specify any valid value or leave the - # field unset. + # Operations affecting conditional bindings must specify version 3. This can + # be either setting a conditional policy, modifying a conditional binding, + # or removing a conditional binding from the stored conditional policy. + # Operations on non-conditional policies may specify any valid value or + # leave the field unset. + # If no etag is provided in the call to `setIamPolicy`, any version + # compliance checks on the incoming and/or stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -547,25 +567,34 @@ module Google # Defines an Identity and Access Management (IAM) policy. It is used to # specify access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `binding` binds a list of - # `members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. + # A `Policy` is a collection of `bindings`. A `binding` binds one or more + # `members` to a single `role`. Members can be user accounts, service accounts, + # Google groups, and domains (such as G Suite). A `role` is a named list of + # permissions (defined by IAM or configured by users). A `binding` can + # optionally specify a `condition`, which is a logic expression that further + # constrains the role binding based on attributes about the request and/or + # target resource. # **JSON Example** # ` # "bindings": [ # ` - # "role": "roles/owner", + # "role": "roles/resourcemanager.organizationAdmin", # "members": [ # "user:mike@example.com", # "group:admins@example.com", # "domain:google.com", - # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # "serviceAccount:my-project-id@appspot.gserviceaccount.com" # ] # `, # ` - # "role": "roles/viewer", - # "members": ["user:sean@example.com"] + # "role": "roles/resourcemanager.organizationViewer", + # "members": ["user:eve@example.com"], + # "condition": ` + # "title": "expirable access", + # "description": "Does not grant access after Sep 2020", + # "expression": "request.time < + # timestamp('2020-10-01T00:00:00.000Z')", + # ` # ` # ] # ` @@ -575,11 +604,15 @@ module Google # - user:mike@example.com # - group:admins@example.com # - domain:google.com - # - serviceAccount:my-other-app@appspot.gserviceaccount.com - # role: roles/owner + # - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin # - members: - # - user:sean@example.com - # role: roles/viewer + # - user:eve@example.com + # role: roles/resourcemanager.organizationViewer + # condition: + # title: expirable access + # description: Does not grant access after Sep 2020 + # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') # For a description of IAM and its features, see the # [IAM developer's guide](https://cloud.google.com/iam/docs). # Corresponds to the JSON property `policy` diff --git a/generated/google/apis/cloudkms_v1.rb b/generated/google/apis/cloudkms_v1.rb index 1d3426cb1..bec0f6638 100644 --- a/generated/google/apis/cloudkms_v1.rb +++ b/generated/google/apis/cloudkms_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/kms/ module CloudkmsV1 VERSION = 'V1' - REVISION = '20190906' + REVISION = '20190926' # 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/cloudkms_v1/classes.rb b/generated/google/apis/cloudkms_v1/classes.rb index 886ecbdc7..3ba8769e2 100644 --- a/generated/google/apis/cloudkms_v1/classes.rb +++ b/generated/google/apis/cloudkms_v1/classes.rb @@ -316,7 +316,7 @@ module Google # @return [Google::Apis::CloudkmsV1::CryptoKeyVersion] attr_accessor :primary - # The immutable purpose of this CryptoKey. + # Immutable. The immutable purpose of this CryptoKey. # Corresponds to the JSON property `purpose` # @return [String] attr_accessor :purpose @@ -501,7 +501,7 @@ module Google class DecryptRequest include Google::Apis::Core::Hashable - # Optional data that must match the data originally supplied in + # Optional. Optional data that must match the data originally supplied in # EncryptRequest.additional_authenticated_data. # Corresponds to the JSON property `additionalAuthenticatedData` # NOTE: Values are automatically base64 encoded/decoded in the client library. @@ -597,7 +597,8 @@ module Google class EncryptRequest include Google::Apis::Core::Hashable - # Optional data that, if specified, must also be provided during decryption + # Optional. Optional data that, if specified, must also be provided during + # decryption # through DecryptRequest.additional_authenticated_data. # The maximum size depends on the key version's # protection_level. For @@ -739,6 +740,10 @@ module Google # using AES-KWP (RFC 5649). # # + # If importing symmetric key material, it is expected that the unwrapped + # key contains plain bytes. If importing asymmetric key material, it is + # expected that the unwrapped key is in PKCS#8-encoded DER format (the + # PrivateKeyInfo structure from RFC 5208). # This format is the same as the format produced by PKCS#11 mechanism # CKM_RSA_AES_KEY_WRAP. # Corresponds to the JSON property `rsaAesWrappedKey` @@ -813,8 +818,7 @@ module Google # @return [String] attr_accessor :generate_time - # Required and immutable. The wrapping method to be used for incoming - # key material. + # Required. Immutable. The wrapping method to be used for incoming key material. # Corresponds to the JSON property `importMethod` # @return [String] attr_accessor :import_method @@ -825,8 +829,8 @@ module Google # @return [String] attr_accessor :name - # Required and immutable. The protection level of the ImportJob. This - # must match the + # Required. Immutable. The protection level of the ImportJob. This must match + # the # protection_level of the # version_template on the CryptoKey you # attempt to import into. @@ -1146,25 +1150,34 @@ module Google # Defines an Identity and Access Management (IAM) policy. It is used to # specify access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `binding` binds a list of - # `members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. + # A `Policy` is a collection of `bindings`. A `binding` binds one or more + # `members` to a single `role`. Members can be user accounts, service accounts, + # Google groups, and domains (such as G Suite). A `role` is a named list of + # permissions (defined by IAM or configured by users). A `binding` can + # optionally specify a `condition`, which is a logic expression that further + # constrains the role binding based on attributes about the request and/or + # target resource. # **JSON Example** # ` # "bindings": [ # ` - # "role": "roles/owner", + # "role": "roles/resourcemanager.organizationAdmin", # "members": [ # "user:mike@example.com", # "group:admins@example.com", # "domain:google.com", - # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # "serviceAccount:my-project-id@appspot.gserviceaccount.com" # ] # `, # ` - # "role": "roles/viewer", - # "members": ["user:sean@example.com"] + # "role": "roles/resourcemanager.organizationViewer", + # "members": ["user:eve@example.com"], + # "condition": ` + # "title": "expirable access", + # "description": "Does not grant access after Sep 2020", + # "expression": "request.time < + # timestamp('2020-10-01T00:00:00.000Z')", + # ` # ` # ] # ` @@ -1174,11 +1187,15 @@ module Google # - user:mike@example.com # - group:admins@example.com # - domain:google.com - # - serviceAccount:my-other-app@appspot.gserviceaccount.com - # role: roles/owner + # - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin # - members: - # - user:sean@example.com - # role: roles/viewer + # - user:eve@example.com + # role: roles/resourcemanager.organizationViewer + # condition: + # title: expirable access + # description: Does not grant access after Sep 2020 + # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') # For a description of IAM and its features, see the # [IAM developer's guide](https://cloud.google.com/iam/docs). class Policy @@ -1189,7 +1206,8 @@ module Google # @return [Array] attr_accessor :audit_configs - # Associates a list of `members` to a `role`. + # Associates a list of `members` to a `role`. Optionally may specify a + # `condition` that determines when binding is in effect. # `bindings` with no members will result in an error. # Corresponds to the JSON property `bindings` # @return [Array] @@ -1203,7 +1221,9 @@ module Google # systems are expected to put that etag in the request to `setIamPolicy` to # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing - # policy is overwritten. + # policy is overwritten. Due to blind-set semantics of an etag-less policy, + # 'setIamPolicy' will not fail even if either of incoming or stored policy + # does not meet the version requirements. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -1212,9 +1232,13 @@ module Google # Specifies the format of the policy. # Valid values are 0, 1, and 3. Requests specifying an invalid value will be # rejected. - # Policies with any conditional bindings must specify version 3. Policies - # without any conditional bindings may specify any valid value or leave the - # field unset. + # Operations affecting conditional bindings must specify version 3. This can + # be either setting a conditional policy, modifying a conditional binding, + # or removing a conditional binding from the stored conditional policy. + # Operations on non-conditional policies may specify any valid value or + # leave the field unset. + # If no etag is provided in the call to `setIamPolicy`, any version + # compliance checks on the incoming and/or stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -1282,25 +1306,34 @@ module Google # Defines an Identity and Access Management (IAM) policy. It is used to # specify access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `binding` binds a list of - # `members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. + # A `Policy` is a collection of `bindings`. A `binding` binds one or more + # `members` to a single `role`. Members can be user accounts, service accounts, + # Google groups, and domains (such as G Suite). A `role` is a named list of + # permissions (defined by IAM or configured by users). A `binding` can + # optionally specify a `condition`, which is a logic expression that further + # constrains the role binding based on attributes about the request and/or + # target resource. # **JSON Example** # ` # "bindings": [ # ` - # "role": "roles/owner", + # "role": "roles/resourcemanager.organizationAdmin", # "members": [ # "user:mike@example.com", # "group:admins@example.com", # "domain:google.com", - # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # "serviceAccount:my-project-id@appspot.gserviceaccount.com" # ] # `, # ` - # "role": "roles/viewer", - # "members": ["user:sean@example.com"] + # "role": "roles/resourcemanager.organizationViewer", + # "members": ["user:eve@example.com"], + # "condition": ` + # "title": "expirable access", + # "description": "Does not grant access after Sep 2020", + # "expression": "request.time < + # timestamp('2020-10-01T00:00:00.000Z')", + # ` # ` # ] # ` @@ -1310,11 +1343,15 @@ module Google # - user:mike@example.com # - group:admins@example.com # - domain:google.com - # - serviceAccount:my-other-app@appspot.gserviceaccount.com - # role: roles/owner + # - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin # - members: - # - user:sean@example.com - # role: roles/viewer + # - user:eve@example.com + # role: roles/resourcemanager.organizationViewer + # condition: + # title: expirable access + # description: Does not grant access after Sep 2020 + # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') # For a description of IAM and its features, see the # [IAM developer's guide](https://cloud.google.com/iam/docs). # Corresponds to the JSON property `policy` @@ -1387,7 +1424,7 @@ module Google class UpdateCryptoKeyPrimaryVersionRequest include Google::Apis::Core::Hashable - # The id of the child CryptoKeyVersion to use as primary. + # Required. The id of the child CryptoKeyVersion to use as primary. # Corresponds to the JSON property `cryptoKeyVersionId` # @return [String] attr_accessor :crypto_key_version_id diff --git a/generated/google/apis/cloudkms_v1/service.rb b/generated/google/apis/cloudkms_v1/service.rb index 3e2e220cc..6d23ef200 100644 --- a/generated/google/apis/cloudkms_v1/service.rb +++ b/generated/google/apis/cloudkms_v1/service.rb @@ -157,7 +157,7 @@ module Google # Returns metadata for a given KeyRing. # @param [String] name - # The name of the KeyRing to get. + # Required. The name of the KeyRing to get. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -241,12 +241,12 @@ module Google # [Sorting and filtering list # results](https://cloud.google.com/kms/docs/sorting-and-filtering). # @param [Fixnum] page_size - # Optional limit on the number of KeyRings to include in the + # Optional. Optional limit on the number of KeyRings to include in the # response. Further KeyRings can subsequently be obtained by # including the ListKeyRingsResponse.next_page_token in a subsequent # request. If unspecified, the server will pick an appropriate default. # @param [String] page_token - # Optional pagination token, returned earlier via + # Optional. Optional pagination token, returned earlier via # ListKeyRingsResponse.next_page_token. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -477,7 +477,7 @@ module Google # Returns metadata for a given CryptoKey, as well as its # primary CryptoKeyVersion. # @param [String] name - # The name of the CryptoKey to get. + # Required. The name of the CryptoKey to get. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -561,12 +561,12 @@ module Google # [Sorting and filtering list # results](https://cloud.google.com/kms/docs/sorting-and-filtering). # @param [Fixnum] page_size - # Optional limit on the number of CryptoKeys to include in the + # Optional. Optional limit on the number of CryptoKeys to include in the # response. Further CryptoKeys can subsequently be obtained by # including the ListCryptoKeysResponse.next_page_token in a subsequent # request. If unspecified, the server will pick an appropriate default. # @param [String] page_token - # Optional pagination token, returned earlier via + # Optional. Optional pagination token, returned earlier via # ListCryptoKeysResponse.next_page_token. # @param [String] version_view # The fields of the primary version to include in the response. @@ -608,7 +608,7 @@ module Google # `projects/*/locations/*/keyRings/*/cryptoKeys/*`. # @param [Google::Apis::CloudkmsV1::CryptoKey] crypto_key_object # @param [String] update_mask - # Required list of fields to be updated in this request. + # Required. List of fields to be updated in this request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -716,7 +716,7 @@ module Google # Update the version of a CryptoKey that will be used in Encrypt. # Returns an error if called on an asymmetric key. # @param [String] name - # The resource name of the CryptoKey to update. + # Required. The resource name of the CryptoKey to update. # @param [Google::Apis::CloudkmsV1::UpdateCryptoKeyPrimaryVersionRequest] update_crypto_key_primary_version_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -866,7 +866,7 @@ module Google # Before the destroy_time is reached, # RestoreCryptoKeyVersion may be called to reverse the process. # @param [String] name - # The resource name of the CryptoKeyVersion to destroy. + # Required. The resource name of the CryptoKeyVersion to destroy. # @param [Google::Apis::CloudkmsV1::DestroyCryptoKeyVersionRequest] destroy_crypto_key_version_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -899,7 +899,7 @@ module Google # Returns metadata for a given CryptoKeyVersion. # @param [String] name - # The name of the CryptoKeyVersion to get. + # Required. The name of the CryptoKeyVersion to get. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -932,7 +932,7 @@ module Google # ASYMMETRIC_SIGN or # ASYMMETRIC_DECRYPT. # @param [String] name - # The name of the CryptoKeyVersion public key to + # Required. The name of the CryptoKeyVersion public key to # get. # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1013,13 +1013,13 @@ module Google # [Sorting and filtering list # results](https://cloud.google.com/kms/docs/sorting-and-filtering). # @param [Fixnum] page_size - # Optional limit on the number of CryptoKeyVersions to + # Optional. Optional limit on the number of CryptoKeyVersions to # include in the response. Further CryptoKeyVersions can # subsequently be obtained by including the # ListCryptoKeyVersionsResponse.next_page_token in a subsequent request. # If unspecified, the server will pick an appropriate default. # @param [String] page_token - # Optional pagination token, returned earlier via + # Optional. Optional pagination token, returned earlier via # ListCryptoKeyVersionsResponse.next_page_token. # @param [String] view # The fields to include in the response. @@ -1066,7 +1066,7 @@ module Google # `projects/*/locations/*/keyRings/*/cryptoKeys/*/cryptoKeyVersions/*`. # @param [Google::Apis::CloudkmsV1::CryptoKeyVersion] crypto_key_version_object # @param [String] update_mask - # Required list of fields to be updated in this request. + # Required. List of fields to be updated in this request. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1104,7 +1104,7 @@ module Google # will be set to DISABLED, # and destroy_time will be cleared. # @param [String] name - # The resource name of the CryptoKeyVersion to restore. + # Required. The resource name of the CryptoKeyVersion to restore. # @param [Google::Apis::CloudkmsV1::RestoreCryptoKeyVersionRequest] restore_crypto_key_version_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1176,7 +1176,7 @@ module Google # Returns metadata for a given ImportJob. # @param [String] name - # The name of the ImportJob to get. + # Required. The name of the ImportJob to get. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1260,12 +1260,12 @@ module Google # [Sorting and filtering list # results](https://cloud.google.com/kms/docs/sorting-and-filtering). # @param [Fixnum] page_size - # Optional limit on the number of ImportJobs to include in the + # Optional. Optional limit on the number of ImportJobs to include in the # response. Further ImportJobs can subsequently be obtained by # including the ListImportJobsResponse.next_page_token in a subsequent # request. If unspecified, the server will pick an appropriate default. # @param [String] page_token - # Optional pagination token, returned earlier via + # Optional. Optional pagination token, returned earlier via # ListImportJobsResponse.next_page_token. # @param [String] fields # Selector specifying which fields to include in a partial response. diff --git a/generated/google/apis/content_v2.rb b/generated/google/apis/content_v2.rb index 27da9ca69..b9365f521 100644 --- a/generated/google/apis/content_v2.rb +++ b/generated/google/apis/content_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/shopping-content module ContentV2 VERSION = 'V2' - REVISION = '20190905' + REVISION = '20190930' # Manage your product listings and accounts for Google Shopping AUTH_CONTENT = 'https://www.googleapis.com/auth/content' diff --git a/generated/google/apis/content_v2/service.rb b/generated/google/apis/content_v2/service.rb index b096f29ae..a90230f96 100644 --- a/generated/google/apis/content_v2/service.rb +++ b/generated/google/apis/content_v2/service.rb @@ -364,51 +364,6 @@ module Google execute_or_queue_command(command, &block) end - # Updates a Merchant Center account. This method supports patch semantics. - # @param [Fixnum] merchant_id - # The ID of the managing account. If this parameter is not the same as accountId, - # then this account must be a multi-client account and accountId must be the ID - # of a sub-account of this account. - # @param [Fixnum] account_id - # The ID of the account. - # @param [Google::Apis::ContentV2::Account] account_object - # @param [Boolean] dry_run - # Flag to simulate a request like in a live environment. If set to true, dry-run - # mode checks the validity of the request and returns errors (if any). - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ContentV2::Account] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ContentV2::Account] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_account(merchant_id, account_id, account_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{merchantId}/accounts/{accountId}', options) - command.request_representation = Google::Apis::ContentV2::Account::Representation - command.request_object = account_object - command.response_representation = Google::Apis::ContentV2::Account::Representation - command.response_class = Google::Apis::ContentV2::Account - command.params['merchantId'] = merchant_id unless merchant_id.nil? - command.params['accountId'] = account_id unless account_id.nil? - command.query['dryRun'] = dry_run unless dry_run.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - # Updates a Merchant Center account. # @param [Fixnum] merchant_id # The ID of the managing account. If this parameter is not the same as accountId, @@ -688,51 +643,6 @@ module Google execute_or_queue_command(command, &block) end - # Updates the tax settings of the account. This method supports patch semantics. - # @param [Fixnum] merchant_id - # The ID of the managing account. If this parameter is not the same as accountId, - # then this account must be a multi-client account and accountId must be the ID - # of a sub-account of this account. - # @param [Fixnum] account_id - # The ID of the account for which to get/update account tax settings. - # @param [Google::Apis::ContentV2::AccountTax] account_tax_object - # @param [Boolean] dry_run - # Flag to simulate a request like in a live environment. If set to true, dry-run - # mode checks the validity of the request and returns errors (if any). - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ContentV2::AccountTax] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ContentV2::AccountTax] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_account_tax(merchant_id, account_id, account_tax_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{merchantId}/accounttax/{accountId}', options) - command.request_representation = Google::Apis::ContentV2::AccountTax::Representation - command.request_object = account_tax_object - command.response_representation = Google::Apis::ContentV2::AccountTax::Representation - command.response_class = Google::Apis::ContentV2::AccountTax - command.params['merchantId'] = merchant_id unless merchant_id.nil? - command.params['accountId'] = account_id unless account_id.nil? - command.query['dryRun'] = dry_run unless dry_run.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - # Updates the tax settings of the account. # @param [Fixnum] merchant_id # The ID of the managing account. If this parameter is not the same as accountId, @@ -1014,51 +924,6 @@ module Google execute_or_queue_command(command, &block) end - # Updates a datafeed configuration of your Merchant Center account. This method - # supports patch semantics. - # @param [Fixnum] merchant_id - # The ID of the account that manages the datafeed. This account cannot be a - # multi-client account. - # @param [Fixnum] datafeed_id - # The ID of the datafeed. - # @param [Google::Apis::ContentV2::Datafeed] datafeed_object - # @param [Boolean] dry_run - # Flag to simulate a request like in a live environment. If set to true, dry-run - # mode checks the validity of the request and returns errors (if any). - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ContentV2::Datafeed] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ContentV2::Datafeed] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_datafeed(merchant_id, datafeed_id, datafeed_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{merchantId}/datafeeds/{datafeedId}', options) - command.request_representation = Google::Apis::ContentV2::Datafeed::Representation - command.request_object = datafeed_object - command.response_representation = Google::Apis::ContentV2::Datafeed::Representation - command.response_class = Google::Apis::ContentV2::Datafeed - command.params['merchantId'] = merchant_id unless merchant_id.nil? - command.params['datafeedId'] = datafeed_id unless datafeed_id.nil? - command.query['dryRun'] = dry_run unless dry_run.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - # Updates a datafeed configuration of your Merchant Center account. # @param [Fixnum] merchant_id # The ID of the account that manages the datafeed. This account cannot be a @@ -1496,51 +1361,6 @@ module Google execute_or_queue_command(command, &block) end - # Updates the LIA settings of the account. This method supports patch semantics. - # @param [Fixnum] merchant_id - # The ID of the managing account. If this parameter is not the same as accountId, - # then this account must be a multi-client account and accountId must be the ID - # of a sub-account of this account. - # @param [Fixnum] account_id - # The ID of the account for which to get or update LIA settings. - # @param [Google::Apis::ContentV2::LiaSettings] lia_settings_object - # @param [Boolean] dry_run - # Flag to simulate a request like in a live environment. If set to true, dry-run - # mode checks the validity of the request and returns errors (if any). - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ContentV2::LiaSettings] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ContentV2::LiaSettings] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_liasetting(merchant_id, account_id, lia_settings_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{merchantId}/liasettings/{accountId}', options) - command.request_representation = Google::Apis::ContentV2::LiaSettings::Representation - command.request_object = lia_settings_object - command.response_representation = Google::Apis::ContentV2::LiaSettings::Representation - command.response_class = Google::Apis::ContentV2::LiaSettings - command.params['merchantId'] = merchant_id unless merchant_id.nil? - command.params['accountId'] = account_id unless account_id.nil? - command.query['dryRun'] = dry_run unless dry_run.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - # Requests access to a specified Google My Business account. # @param [Fixnum] merchant_id # The ID of the managing account. If this parameter is not the same as accountId, @@ -3903,52 +3723,6 @@ module Google execute_or_queue_command(command, &block) end - # Updates the shipping settings of the account. This method supports patch - # semantics. - # @param [Fixnum] merchant_id - # The ID of the managing account. If this parameter is not the same as accountId, - # then this account must be a multi-client account and accountId must be the ID - # of a sub-account of this account. - # @param [Fixnum] account_id - # The ID of the account for which to get/update shipping settings. - # @param [Google::Apis::ContentV2::ShippingSettings] shipping_settings_object - # @param [Boolean] dry_run - # Flag to simulate a request like in a live environment. If set to true, dry-run - # mode checks the validity of the request and returns errors (if any). - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ContentV2::ShippingSettings] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ContentV2::ShippingSettings] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_shippingsetting(merchant_id, account_id, shipping_settings_object = nil, dry_run: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{merchantId}/shippingsettings/{accountId}', options) - command.request_representation = Google::Apis::ContentV2::ShippingSettings::Representation - command.request_object = shipping_settings_object - command.response_representation = Google::Apis::ContentV2::ShippingSettings::Representation - command.response_class = Google::Apis::ContentV2::ShippingSettings - command.params['merchantId'] = merchant_id unless merchant_id.nil? - command.params['accountId'] = account_id unless account_id.nil? - command.query['dryRun'] = dry_run unless dry_run.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - # Updates the shipping settings of the account. # @param [Fixnum] merchant_id # The ID of the managing account. If this parameter is not the same as accountId, diff --git a/generated/google/apis/dataproc_v1.rb b/generated/google/apis/dataproc_v1.rb index a7d21c5bd..8c1f6014a 100644 --- a/generated/google/apis/dataproc_v1.rb +++ b/generated/google/apis/dataproc_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataproc/ module DataprocV1 VERSION = 'V1' - REVISION = '20190905' + REVISION = '20190920' # 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/dataproc_v1/classes.rb b/generated/google/apis/dataproc_v1/classes.rb index 19ad1aaa2..bab2afafe 100644 --- a/generated/google/apis/dataproc_v1/classes.rb +++ b/generated/google/apis/dataproc_v1/classes.rb @@ -640,7 +640,7 @@ module Google class ClusterStatus include Google::Apis::Core::Hashable - # Output only. Optional details of cluster's state. + # Optional. Output only. Details of cluster's state. # Corresponds to the JSON property `detail` # @return [String] attr_accessor :detail @@ -1116,11 +1116,11 @@ module Google class InstanceGroupAutoscalingPolicyConfig include Google::Apis::Core::Hashable - # Optional. Maximum number of instances for this group. Required for primary + # Required. Maximum number of instances for this group. Required for primary # workers. Note that by default, clusters will not use secondary workers. # Required for secondary workers if the minimum secondary instances is set. - # Primary workers - Bounds: [min_instances, ). Required. Secondary workers - - # Bounds: [min_instances, ). Default: 0. + # Primary workers - Bounds: [min_instances, ). Secondary workers - Bounds: [ + # min_instances, ). Default: 0. # Corresponds to the JSON property `maxInstances` # @return [Fixnum] attr_accessor :max_instances @@ -1485,7 +1485,7 @@ module Google class JobStatus include Google::Apis::Core::Hashable - # Output only. Optional job state details, such as an error description if the + # Optional. Output only. Job state details, such as an error description if the # state is ERROR. # Corresponds to the JSON property `details` # @return [String] @@ -2173,24 +2173,33 @@ module Google end # Defines an Identity and Access Management (IAM) policy. It is used to specify - # access control policies for Cloud Platform resources.A Policy consists of a - # list of bindings. A binding binds a list of members to a role, where the - # members can be user accounts, Google groups, Google domains, and service - # accounts. A role is a named list of permissions defined by IAM.JSON Example + # access control policies for Cloud Platform resources.A Policy is a collection + # of bindings. A binding binds one or more members to a single role. Members can + # be user accounts, service accounts, Google groups, and domains (such as G + # Suite). A role is a named list of permissions (defined by IAM or configured by + # users). A binding can optionally specify a condition, which is a logic + # expression that further constrains the role binding based on attributes about + # the request and/or target resource.JSON Example # ` # "bindings": [ # ` - # "role": "roles/owner", + # "role": "role/resourcemanager.organizationAdmin", # "members": [ # "user:mike@example.com", # "group:admins@example.com", # "domain:google.com", - # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # "serviceAccount:my-project-id@appspot.gserviceaccount.com" # ] # `, # ` - # "role": "roles/viewer", - # "members": ["user:sean@example.com"] + # "role": "roles/resourcemanager.organizationViewer", + # "members": ["user:eve@example.com"], + # "condition": ` + # "title": "expirable access", + # "description": "Does not grant access after Sep 2020", + # "expression": "request.time < + # timestamp('2020-10-01T00:00:00.000Z')", + # ` # ` # ] # ` @@ -2200,18 +2209,23 @@ module Google # - user:mike@example.com # - group:admins@example.com # - domain:google.com - # - serviceAccount:my-other-app@appspot.gserviceaccount.com - # role: roles/owner + # - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin # - members: - # - user:sean@example.com - # role: roles/viewer + # - user:eve@example.com + # role: roles/resourcemanager.organizationViewer + # condition: + # title: expirable access + # description: Does not grant access after Sep 2020 + # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') # For a description of IAM and its features, see the IAM developer's guide ( # https://cloud.google.com/iam/docs). class Policy include Google::Apis::Core::Hashable - # Associates a list of members to a role. bindings with no members will result - # in an error. + # Associates a list of members to a role. Optionally may specify a condition + # that determines when binding is in effect. bindings with no members will + # result in an error. # Corresponds to the JSON property `bindings` # @return [Array] attr_accessor :bindings @@ -2223,16 +2237,22 @@ module Google # in the response to getIamPolicy, and systems are expected to put that etag in # the request to setIamPolicy to ensure that their change will be applied to the # same version of the policy.If no etag is provided in the call to setIamPolicy, - # then the existing policy is overwritten. + # then the existing policy is overwritten. Due to blind-set semantics of an etag- + # less policy, 'setIamPolicy' will not fail even if either of incoming or stored + # policy does not meet the version requirements. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag # Specifies the format of the policy.Valid values are 0, 1, and 3. Requests - # specifying an invalid value will be rejected.Policies with any conditional - # bindings must specify version 3. Policies without any conditional bindings may - # specify any valid value or leave the field unset. + # specifying an invalid value will be rejected.Operations affecting conditional + # bindings must specify version 3. This can be either setting a conditional + # policy, modifying a conditional binding, or removing a conditional binding + # from the stored conditional policy. Operations on non-conditional policies may + # specify any valid value or leave the field unset.If no etag is provided in the + # call to setIamPolicy, any version compliance checks on the incoming and/or + # stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -2397,24 +2417,33 @@ module Google include Google::Apis::Core::Hashable # Defines an Identity and Access Management (IAM) policy. It is used to specify - # access control policies for Cloud Platform resources.A Policy consists of a - # list of bindings. A binding binds a list of members to a role, where the - # members can be user accounts, Google groups, Google domains, and service - # accounts. A role is a named list of permissions defined by IAM.JSON Example + # access control policies for Cloud Platform resources.A Policy is a collection + # of bindings. A binding binds one or more members to a single role. Members can + # be user accounts, service accounts, Google groups, and domains (such as G + # Suite). A role is a named list of permissions (defined by IAM or configured by + # users). A binding can optionally specify a condition, which is a logic + # expression that further constrains the role binding based on attributes about + # the request and/or target resource.JSON Example # ` # "bindings": [ # ` - # "role": "roles/owner", + # "role": "role/resourcemanager.organizationAdmin", # "members": [ # "user:mike@example.com", # "group:admins@example.com", # "domain:google.com", - # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # "serviceAccount:my-project-id@appspot.gserviceaccount.com" # ] # `, # ` - # "role": "roles/viewer", - # "members": ["user:sean@example.com"] + # "role": "roles/resourcemanager.organizationViewer", + # "members": ["user:eve@example.com"], + # "condition": ` + # "title": "expirable access", + # "description": "Does not grant access after Sep 2020", + # "expression": "request.time < + # timestamp('2020-10-01T00:00:00.000Z')", + # ` # ` # ] # ` @@ -2424,11 +2453,15 @@ module Google # - user:mike@example.com # - group:admins@example.com # - domain:google.com - # - serviceAccount:my-other-app@appspot.gserviceaccount.com - # role: roles/owner + # - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin # - members: - # - user:sean@example.com - # role: roles/viewer + # - user:eve@example.com + # role: roles/resourcemanager.organizationViewer + # condition: + # title: expirable access + # description: Does not grant access after Sep 2020 + # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') # For a description of IAM and its features, see the IAM developer's guide ( # https://cloud.google.com/iam/docs). # Corresponds to the JSON property `policy` @@ -2457,7 +2490,7 @@ module Google # @return [String] attr_accessor :image_version - # The set of optional components to activate on the cluster. + # Optional. The set of components to activate on the cluster. # Corresponds to the JSON property `optionalComponents` # @return [Array] attr_accessor :optional_components @@ -2977,9 +3010,7 @@ module Google # @return [String] attr_accessor :create_time - # Required. The template id.The id must contain only letters (a-z, A-Z), numbers - # (0-9), underscores (_), and hyphens (-). Cannot begin or end with underscore - # or hyphen. Must consist of between 3 and 50 characters. + # # Corresponds to the JSON property `id` # @return [String] attr_accessor :id @@ -3011,7 +3042,7 @@ module Google # @return [String] attr_accessor :name - # Optional. Template parameters whose values are substituted into the template. + # Optional. emplate parameters whose values are substituted into the template. # Values for parameters must be provided when the template is instantiated. # Corresponds to the JSON property `parameters` # @return [Array] diff --git a/generated/google/apis/dataproc_v1/service.rb b/generated/google/apis/dataproc_v1/service.rb index dcdf72015..9fdd68309 100644 --- a/generated/google/apis/dataproc_v1/service.rb +++ b/generated/google/apis/dataproc_v1/service.rb @@ -1387,7 +1387,9 @@ module Google # Update labels config.worker_config. # num_instances Resize primary worker group # config.secondary_worker_config.num_instances Resize secondary worker group + # strong> Resize secondary worker group config. + # autoscaling_config.policy_uriUse, stop using, or change autoscaling + # policies # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/dataproc_v1beta2.rb b/generated/google/apis/dataproc_v1beta2.rb index 08b9a275e..05b6528dd 100644 --- a/generated/google/apis/dataproc_v1beta2.rb +++ b/generated/google/apis/dataproc_v1beta2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/dataproc/ module DataprocV1beta2 VERSION = 'V1beta2' - REVISION = '20190905' + REVISION = '20190920' # 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/dataproc_v1beta2/classes.rb b/generated/google/apis/dataproc_v1beta2/classes.rb index c4b8d4353..bd035197d 100644 --- a/generated/google/apis/dataproc_v1beta2/classes.rb +++ b/generated/google/apis/dataproc_v1beta2/classes.rb @@ -408,14 +408,14 @@ module Google # @return [Google::Apis::DataprocV1beta2::LifecycleConfig] attr_accessor :lifecycle_config - # Optional. The config settings for Compute Engine resources in an instance - # group, such as a master or worker group. + # The config settings for Compute Engine resources in an instance group, such as + # a master or worker group. # Corresponds to the JSON property `masterConfig` # @return [Google::Apis::DataprocV1beta2::InstanceGroupConfig] attr_accessor :master_config - # Optional. The config settings for Compute Engine resources in an instance - # group, such as a master or worker group. + # The config settings for Compute Engine resources in an instance group, such as + # a master or worker group. # Corresponds to the JSON property `secondaryWorkerConfig` # @return [Google::Apis::DataprocV1beta2::InstanceGroupConfig] attr_accessor :secondary_worker_config @@ -430,8 +430,8 @@ module Google # @return [Google::Apis::DataprocV1beta2::SoftwareConfig] attr_accessor :software_config - # Optional. The config settings for Compute Engine resources in an instance - # group, such as a master or worker group. + # The config settings for Compute Engine resources in an instance group, such as + # a master or worker group. # Corresponds to the JSON property `workerConfig` # @return [Google::Apis::DataprocV1beta2::InstanceGroupConfig] attr_accessor :worker_config @@ -728,11 +728,11 @@ module Google # @return [String] attr_accessor :boot_disk_type - # Optional. Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not - # attached, the boot disk is used to store runtime logs and HDFS (https://hadoop. - # apache.org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are - # attached, this runtime bulk data is spread across them, and the boot disk - # contains only basic config and installed binaries. + # Number of attached SSDs, from 0 to 4 (default is 0). If SSDs are not attached, + # the boot disk is used to store runtime logs and HDFS (https://hadoop.apache. + # org/docs/r1.2.1/hdfs_user_guide.html) data. If one or more SSDs are attached, + # this runtime bulk data is spread across them, and the boot disk contains only + # basic config and installed binaries. # Corresponds to the JSON property `numLocalSsds` # @return [Fixnum] attr_accessor :num_local_ssds @@ -1201,8 +1201,8 @@ module Google end end - # Optional. The config settings for Compute Engine resources in an instance - # group, such as a master or worker group. + # The config settings for Compute Engine resources in an instance group, such as + # a master or worker group. class InstanceGroupConfig include Google::Apis::Core::Hashable @@ -1253,8 +1253,8 @@ module Google # @return [Google::Apis::DataprocV1beta2::ManagedGroupConfig] attr_accessor :managed_group_config - # Optional. Specifies the minimum cpu platform for the Instance Group. See Cloud - # Dataproc→Minimum CPU Platform. + # Specifies the minimum cpu platform for the Instance Group. See Cloud Dataproc& + # rarr;Minimum CPU Platform. # Corresponds to the JSON property `minCpuPlatform` # @return [String] attr_accessor :min_cpu_platform @@ -1409,7 +1409,10 @@ module Google attr_accessor :scheduling # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/) - # applications on YARN. + # applications on YARN. The specification of the main method to call to drive + # the job. Specify either the jar file that contains the main class or the main + # class name. To pass both a main jar and a main class in that jar, add the jar + # to CommonJob.jar_file_uris, and then specify the main class name in main_class. # Corresponds to the JSON property `sparkJob` # @return [Google::Apis::DataprocV1beta2::SparkJob] attr_accessor :spark_job @@ -2115,7 +2118,10 @@ module Google attr_accessor :scheduling # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/) - # applications on YARN. + # applications on YARN. The specification of the main method to call to drive + # the job. Specify either the jar file that contains the main class or the main + # class name. To pass both a main jar and a main class in that jar, add the jar + # to CommonJob.jar_file_uris, and then specify the main class name in main_class. # Corresponds to the JSON property `sparkJob` # @return [Google::Apis::DataprocV1beta2::SparkJob] attr_accessor :spark_job @@ -2245,24 +2251,33 @@ module Google end # Defines an Identity and Access Management (IAM) policy. It is used to specify - # access control policies for Cloud Platform resources.A Policy consists of a - # list of bindings. A binding binds a list of members to a role, where the - # members can be user accounts, Google groups, Google domains, and service - # accounts. A role is a named list of permissions defined by IAM.JSON Example + # access control policies for Cloud Platform resources.A Policy is a collection + # of bindings. A binding binds one or more members to a single role. Members can + # be user accounts, service accounts, Google groups, and domains (such as G + # Suite). A role is a named list of permissions (defined by IAM or configured by + # users). A binding can optionally specify a condition, which is a logic + # expression that further constrains the role binding based on attributes about + # the request and/or target resource.JSON Example # ` # "bindings": [ # ` - # "role": "roles/owner", + # "role": "role/resourcemanager.organizationAdmin", # "members": [ # "user:mike@example.com", # "group:admins@example.com", # "domain:google.com", - # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # "serviceAccount:my-project-id@appspot.gserviceaccount.com" # ] # `, # ` - # "role": "roles/viewer", - # "members": ["user:sean@example.com"] + # "role": "roles/resourcemanager.organizationViewer", + # "members": ["user:eve@example.com"], + # "condition": ` + # "title": "expirable access", + # "description": "Does not grant access after Sep 2020", + # "expression": "request.time < + # timestamp('2020-10-01T00:00:00.000Z')", + # ` # ` # ] # ` @@ -2272,18 +2287,23 @@ module Google # - user:mike@example.com # - group:admins@example.com # - domain:google.com - # - serviceAccount:my-other-app@appspot.gserviceaccount.com - # role: roles/owner + # - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin # - members: - # - user:sean@example.com - # role: roles/viewer + # - user:eve@example.com + # role: roles/resourcemanager.organizationViewer + # condition: + # title: expirable access + # description: Does not grant access after Sep 2020 + # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') # For a description of IAM and its features, see the IAM developer's guide ( # https://cloud.google.com/iam/docs). class Policy include Google::Apis::Core::Hashable - # Associates a list of members to a role. bindings with no members will result - # in an error. + # Associates a list of members to a role. Optionally may specify a condition + # that determines when binding is in effect. bindings with no members will + # result in an error. # Corresponds to the JSON property `bindings` # @return [Array] attr_accessor :bindings @@ -2295,16 +2315,22 @@ module Google # in the response to getIamPolicy, and systems are expected to put that etag in # the request to setIamPolicy to ensure that their change will be applied to the # same version of the policy.If no etag is provided in the call to setIamPolicy, - # then the existing policy is overwritten. + # then the existing policy is overwritten. Due to blind-set semantics of an etag- + # less policy, 'setIamPolicy' will not fail even if either of incoming or stored + # policy does not meet the version requirements. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag # Specifies the format of the policy.Valid values are 0, 1, and 3. Requests - # specifying an invalid value will be rejected.Policies with any conditional - # bindings must specify version 3. Policies without any conditional bindings may - # specify any valid value or leave the field unset. + # specifying an invalid value will be rejected.Operations affecting conditional + # bindings must specify version 3. This can be either setting a conditional + # policy, modifying a conditional binding, or removing a conditional binding + # from the stored conditional policy. Operations on non-conditional policies may + # specify any valid value or leave the field unset.If no etag is provided in the + # call to setIamPolicy, any version compliance checks on the incoming and/or + # stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -2561,24 +2587,33 @@ module Google include Google::Apis::Core::Hashable # Defines an Identity and Access Management (IAM) policy. It is used to specify - # access control policies for Cloud Platform resources.A Policy consists of a - # list of bindings. A binding binds a list of members to a role, where the - # members can be user accounts, Google groups, Google domains, and service - # accounts. A role is a named list of permissions defined by IAM.JSON Example + # access control policies for Cloud Platform resources.A Policy is a collection + # of bindings. A binding binds one or more members to a single role. Members can + # be user accounts, service accounts, Google groups, and domains (such as G + # Suite). A role is a named list of permissions (defined by IAM or configured by + # users). A binding can optionally specify a condition, which is a logic + # expression that further constrains the role binding based on attributes about + # the request and/or target resource.JSON Example # ` # "bindings": [ # ` - # "role": "roles/owner", + # "role": "role/resourcemanager.organizationAdmin", # "members": [ # "user:mike@example.com", # "group:admins@example.com", # "domain:google.com", - # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # "serviceAccount:my-project-id@appspot.gserviceaccount.com" # ] # `, # ` - # "role": "roles/viewer", - # "members": ["user:sean@example.com"] + # "role": "roles/resourcemanager.organizationViewer", + # "members": ["user:eve@example.com"], + # "condition": ` + # "title": "expirable access", + # "description": "Does not grant access after Sep 2020", + # "expression": "request.time < + # timestamp('2020-10-01T00:00:00.000Z')", + # ` # ` # ] # ` @@ -2588,11 +2623,15 @@ module Google # - user:mike@example.com # - group:admins@example.com # - domain:google.com - # - serviceAccount:my-other-app@appspot.gserviceaccount.com - # role: roles/owner + # - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin # - members: - # - user:sean@example.com - # role: roles/viewer + # - user:eve@example.com + # role: roles/resourcemanager.organizationViewer + # condition: + # title: expirable access + # description: Does not grant access after Sep 2020 + # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') # For a description of IAM and its features, see the IAM developer's guide ( # https://cloud.google.com/iam/docs). # Corresponds to the JSON property `policy` @@ -2655,7 +2694,10 @@ module Google end # A Cloud Dataproc job for running Apache Spark (http://spark.apache.org/) - # applications on YARN. + # applications on YARN. The specification of the main method to call to drive + # the job. Specify either the jar file that contains the main class or the main + # class name. To pass both a main jar and a main class in that jar, add the jar + # to CommonJob.jar_file_uris, and then specify the main class name in main_class. class SparkJob include Google::Apis::Core::Hashable @@ -3314,23 +3356,23 @@ module Google class YarnApplication include Google::Apis::Core::Hashable - # Required. The application name. + # Output only. The application name. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Required. The numerical progress of the application, from 1 to 100. + # Output only. The numerical progress of the application, from 1 to 100. # Corresponds to the JSON property `progress` # @return [Float] attr_accessor :progress - # Required. The application state. + # Output only. The application state. # Corresponds to the JSON property `state` # @return [String] attr_accessor :state - # Optional. The HTTP URL of the ApplicationMaster, HistoryServer, or - # TimelineServer that provides application-specific information. The URL uses + # Optional. Output only. The HTTP URL of the ApplicationMaster, HistoryServer, + # or TimelineServer that provides application-specific information. The URL uses # the internal hostname, and requires a proxy server for resolution and, # possibly, access. # Corresponds to the JSON property `trackingUrl` diff --git a/generated/google/apis/dataproc_v1beta2/service.rb b/generated/google/apis/dataproc_v1beta2/service.rb index 255dd564d..95a815c63 100644 --- a/generated/google/apis/dataproc_v1beta2/service.rb +++ b/generated/google/apis/dataproc_v1beta2/service.rb @@ -1182,7 +1182,7 @@ module Google # Gets cluster diagnostic information. The returned Operation.metadata will be # ClusterOperationMetadata. After the operation completes, Operation.response - # contains DiagnoseClusterResults. + # contains Empty. # @param [String] project_id # Required. The ID of the Google Cloud Platform project that the cluster belongs # to. diff --git a/generated/google/apis/dialogflow_v2.rb b/generated/google/apis/dialogflow_v2.rb index 65fa33136..24f13d7fc 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 = '20190914' + REVISION = '20190924' # 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 5821494bf..83d0a48c3 100644 --- a/generated/google/apis/dialogflow_v2/classes.rb +++ b/generated/google/apis/dialogflow_v2/classes.rb @@ -715,18 +715,7 @@ module Google class GoogleCloudDialogflowV2ExportAgentResponse include Google::Apis::Core::Hashable - # The exported agent. - # Example for how to export an agent to a zip file via a command line: - #
curl \
-        # 'https://dialogflow.googleapis.com/v2/projects/<project_id>/agent:
-        # export'\
-        # -X POST \
-        # -H 'Authorization: Bearer' \
-        # $(gcloud auth application-default print-access-token) \
-        # -H 'Accept: application/json'
-        # --compressed \
-        # | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
-        # | base64 --decode > <agent zip file>
+ # Zip compressed raw byte content for agent. # Corresponds to the JSON property `agentContent` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -753,19 +742,7 @@ module Google class GoogleCloudDialogflowV2ImportAgentRequest include Google::Apis::Core::Hashable - # The agent to import. - # Example for how to import an agent via the command line: - #
curl \
-        # 'https://dialogflow.googleapis.com/v2/projects/<project_id>/agent:
-        # import'\
-        # -X POST \
-        # -H 'Authorization: Bearer'\
-        # $(gcloud auth application-default print-access-token) \
-        # -H 'Accept: application/json' \
-        # -H 'Content-Type: application/json' \
-        # --data-binary "`
-        # 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
-        # `"
+ # Zip compressed raw byte content for agent. # Corresponds to the JSON property `agentContent` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -2258,19 +2235,7 @@ module Google class GoogleCloudDialogflowV2RestoreAgentRequest include Google::Apis::Core::Hashable - # The agent to restore. - # Example for how to restore an agent via the command line: - #
curl \
-        # 'https://dialogflow.googleapis.com/v2/projects/<project_id>/agent:
-        # restore'\
-        # -X POST \
-        # -H 'Authorization: Bearer' \
-        # $(gcloud auth application-default print-access-token) \
-        # -H 'Accept: application/json' \
-        # -H 'Content-Type: application/json' \
-        # --data-binary "`
-        # 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
-        # `"
+ # Zip compressed raw byte content for agent. # Corresponds to the JSON property `agentContent` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -2661,6 +2626,15 @@ module Google # @return [Hash] attr_accessor :payload + # Optional. Additional session entity types to replace or extend developer + # entity types with. The entity synonyms apply to all languages and persist + # for the session of this query. Setting the session entity types inside + # webhook overwrites the session entity types that have been set through + # `DetectIntentRequest.query_params.session_entity_types`. + # Corresponds to the JSON property `sessionEntityTypes` + # @return [Array] + attr_accessor :session_entity_types + # Optional. This value is passed directly to `QueryResult.webhook_source`. # Corresponds to the JSON property `source` # @return [String] @@ -2677,6 +2651,7 @@ module Google @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text) @output_contexts = args[:output_contexts] if args.key?(:output_contexts) @payload = args[:payload] if args.key?(:payload) + @session_entity_types = args[:session_entity_types] if args.key?(:session_entity_types) @source = args[:source] if args.key?(:source) end end @@ -2964,18 +2939,7 @@ module Google class GoogleCloudDialogflowV2beta1ExportAgentResponse include Google::Apis::Core::Hashable - # The exported agent. - # Example for how to export an agent to a zip file via a command line: - #
curl \
-        # 'https://dialogflow.googleapis.com/v2beta1/projects/<project_id>/agent:
-        # export'\
-        # -X POST \
-        # -H 'Authorization: Bearer' \
-        # $(gcloud auth application-default print-access-token) \
-        # -H 'Accept: application/json'
-        # --compressed \
-        # | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
-        # | base64 --decode > <agent zip file>
+ # Zip compressed raw byte content for agent. # Corresponds to the JSON property `agentContent` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -5134,6 +5098,51 @@ module Google end end + # Represents a session entity type. + # Extends or replaces a developer entity type at the user session level (we + # refer to the entity types defined at the agent level as "developer entity + # types"). + # Note: session entity types apply to all queries, regardless of the language. + class GoogleCloudDialogflowV2beta1SessionEntityType + include Google::Apis::Core::Hashable + + # Required. The collection of entities associated with this session entity + # type. + # Corresponds to the JSON property `entities` + # @return [Array] + attr_accessor :entities + + # Required. Indicates whether the additional data should override or + # supplement the developer entity type definition. + # Corresponds to the JSON property `entityOverrideMode` + # @return [String] + attr_accessor :entity_override_mode + + # Required. The unique identifier of this session entity type. Format: + # `projects//agent/sessions//entityTypes/`, or + # `projects//agent/environments//users//sessions//entityTypes/`. + # If `Environment ID` is not specified, we assume default 'draft' + # environment. If `User ID` is not specified, we assume default '-' user. + # `` must be the display name of an existing entity + # type in the same agent that will be overridden or supplemented. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entities = args[:entities] if args.key?(:entities) + @entity_override_mode = args[:entity_override_mode] if args.key?(:entity_override_mode) + @name = args[:name] if args.key?(:name) + end + end + # The request message for a webhook call. class GoogleCloudDialogflowV2beta1WebhookRequest include Google::Apis::Core::Hashable @@ -5248,6 +5257,15 @@ module Google # @return [Hash] attr_accessor :payload + # Optional. Additional session entity types to replace or extend developer + # entity types with. The entity synonyms apply to all languages and persist + # for the session of this query. Setting the session entity types inside + # webhook overwrites the session entity types that have been set through + # `DetectIntentRequest.query_params.session_entity_types`. + # Corresponds to the JSON property `sessionEntityTypes` + # @return [Array] + attr_accessor :session_entity_types + # Optional. This value is passed directly to `QueryResult.webhook_source`. # Corresponds to the JSON property `source` # @return [String] @@ -5265,6 +5283,7 @@ module Google @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text) @output_contexts = args[:output_contexts] if args.key?(:output_contexts) @payload = args[:payload] if args.key?(:payload) + @session_entity_types = args[:session_entity_types] if args.key?(:session_entity_types) @source = args[:source] if args.key?(:source) end end diff --git a/generated/google/apis/dialogflow_v2/representations.rb b/generated/google/apis/dialogflow_v2/representations.rb index 39884a69d..1043d8b6b 100644 --- a/generated/google/apis/dialogflow_v2/representations.rb +++ b/generated/google/apis/dialogflow_v2/representations.rb @@ -802,6 +802,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1SessionEntityType + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1WebhookRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1536,6 +1542,8 @@ module Google collection :output_contexts, as: 'outputContexts', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2Context::Representation hash :payload, as: 'payload' + collection :session_entity_types, as: 'sessionEntityTypes', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2SessionEntityType::Representation + property :source, as: 'source' end end @@ -2197,6 +2205,16 @@ module Google end end + class GoogleCloudDialogflowV2beta1SessionEntityType + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entities, as: 'entities', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1EntityTypeEntity, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1EntityTypeEntity::Representation + + property :entity_override_mode, as: 'entityOverrideMode' + property :name, as: 'name' + end + end + class GoogleCloudDialogflowV2beta1WebhookRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2223,6 +2241,8 @@ module Google collection :output_contexts, as: 'outputContexts', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Context, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1Context::Representation hash :payload, as: 'payload' + collection :session_entity_types, as: 'sessionEntityTypes', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SessionEntityType, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SessionEntityType::Representation + property :source, as: 'source' end end diff --git a/generated/google/apis/dialogflow_v2beta1.rb b/generated/google/apis/dialogflow_v2beta1.rb index 88196147a..0a5fc281b 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 = '20190914' + REVISION = '20190924' # 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 b0315f2c2..91480c4e0 100644 --- a/generated/google/apis/dialogflow_v2beta1/classes.rb +++ b/generated/google/apis/dialogflow_v2beta1/classes.rb @@ -234,18 +234,7 @@ module Google class GoogleCloudDialogflowV2ExportAgentResponse include Google::Apis::Core::Hashable - # The exported agent. - # Example for how to export an agent to a zip file via a command line: - #
curl \
-        # 'https://dialogflow.googleapis.com/v2/projects/<project_id>/agent:
-        # export'\
-        # -X POST \
-        # -H 'Authorization: Bearer' \
-        # $(gcloud auth application-default print-access-token) \
-        # -H 'Accept: application/json'
-        # --compressed \
-        # | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
-        # | base64 --decode > <agent zip file>
+ # Zip compressed raw byte content for agent. # Corresponds to the JSON property `agentContent` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -1442,6 +1431,47 @@ module Google end end + # Represents a session entity type. + # Extends or replaces a developer entity type at the user session level (we + # refer to the entity types defined at the agent level as "developer entity + # types"). + # Note: session entity types apply to all queries, regardless of the language. + class GoogleCloudDialogflowV2SessionEntityType + include Google::Apis::Core::Hashable + + # Required. The collection of entities associated with this session entity + # type. + # Corresponds to the JSON property `entities` + # @return [Array] + attr_accessor :entities + + # Required. Indicates whether the additional data should override or + # supplement the developer entity type definition. + # Corresponds to the JSON property `entityOverrideMode` + # @return [String] + attr_accessor :entity_override_mode + + # Required. The unique identifier of this session entity type. Format: + # `projects//agent/sessions//entityTypes/`. + # `` must be the display name of an existing entity + # type in the same agent that will be overridden or supplemented. + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @entities = args[:entities] if args.key?(:entities) + @entity_override_mode = args[:entity_override_mode] if args.key?(:entity_override_mode) + @name = args[:name] if args.key?(:name) + end + end + # The request message for a webhook call. class GoogleCloudDialogflowV2WebhookRequest include Google::Apis::Core::Hashable @@ -1542,6 +1572,15 @@ module Google # @return [Hash] attr_accessor :payload + # Optional. Additional session entity types to replace or extend developer + # entity types with. The entity synonyms apply to all languages and persist + # for the session of this query. Setting the session entity types inside + # webhook overwrites the session entity types that have been set through + # `DetectIntentRequest.query_params.session_entity_types`. + # Corresponds to the JSON property `sessionEntityTypes` + # @return [Array] + attr_accessor :session_entity_types + # Optional. This value is passed directly to `QueryResult.webhook_source`. # Corresponds to the JSON property `source` # @return [String] @@ -1558,6 +1597,7 @@ module Google @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text) @output_contexts = args[:output_contexts] if args.key?(:output_contexts) @payload = args[:payload] if args.key?(:payload) + @session_entity_types = args[:session_entity_types] if args.key?(:session_entity_types) @source = args[:source] if args.key?(:source) end end @@ -2412,18 +2452,7 @@ module Google class GoogleCloudDialogflowV2beta1ExportAgentResponse include Google::Apis::Core::Hashable - # The exported agent. - # Example for how to export an agent to a zip file via a command line: - #
curl \
-        # 'https://dialogflow.googleapis.com/v2beta1/projects/<project_id>/agent:
-        # export'\
-        # -X POST \
-        # -H 'Authorization: Bearer' \
-        # $(gcloud auth application-default print-access-token) \
-        # -H 'Accept: application/json'
-        # --compressed \
-        # | grep agentContent | sed -e 's/.*"agentContent": "\([^"]*\)".*/\1/' \
-        # | base64 --decode > <agent zip file>
+ # Zip compressed raw byte content for agent. # Corresponds to the JSON property `agentContent` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -2472,19 +2501,7 @@ module Google class GoogleCloudDialogflowV2beta1ImportAgentRequest include Google::Apis::Core::Hashable - # The agent to import. - # Example for how to import an agent via the command line: - #
curl \
-        # 'https://dialogflow.googleapis.com/v2beta1/projects/<project_id>/agent:
-        # import'\
-        # -X POST \
-        # -H 'Authorization: Bearer'\
-        # $(gcloud auth application-default print-access-token) \
-        # -H 'Accept: application/json' \
-        # -H 'Content-Type: application/json' \
-        # --data-binary "`
-        # 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
-        # `"
+ # Zip compressed raw byte content for agent. # Corresponds to the JSON property `agentContent` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -5085,19 +5102,7 @@ module Google class GoogleCloudDialogflowV2beta1RestoreAgentRequest include Google::Apis::Core::Hashable - # The agent to restore. - # Example for how to restore an agent via the command line: - #
curl \
-        # 'https://dialogflow.googleapis.com/v2beta1/projects/<project_id>/agent:
-        # restore'\
-        # -X POST \
-        # -H 'Authorization: Bearer' \
-        # $(gcloud auth application-default print-access-token) \
-        # -H 'Accept: application/json' \
-        # -H 'Content-Type: application/json' \
-        # --data-binary "`
-        # 'agentContent': '$(cat <agent zip file> | base64 -w 0)'
-        # `"
+ # Zip compressed raw byte content for agent. # Corresponds to the JSON property `agentContent` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -5609,6 +5614,15 @@ module Google # @return [Hash] attr_accessor :payload + # Optional. Additional session entity types to replace or extend developer + # entity types with. The entity synonyms apply to all languages and persist + # for the session of this query. Setting the session entity types inside + # webhook overwrites the session entity types that have been set through + # `DetectIntentRequest.query_params.session_entity_types`. + # Corresponds to the JSON property `sessionEntityTypes` + # @return [Array] + attr_accessor :session_entity_types + # Optional. This value is passed directly to `QueryResult.webhook_source`. # Corresponds to the JSON property `source` # @return [String] @@ -5626,6 +5640,7 @@ module Google @fulfillment_text = args[:fulfillment_text] if args.key?(:fulfillment_text) @output_contexts = args[:output_contexts] if args.key?(:output_contexts) @payload = args[:payload] if args.key?(:payload) + @session_entity_types = args[:session_entity_types] if args.key?(:session_entity_types) @source = args[:source] if args.key?(:source) end end diff --git a/generated/google/apis/dialogflow_v2beta1/representations.rb b/generated/google/apis/dialogflow_v2beta1/representations.rb index 209ebfa7e..32168e235 100644 --- a/generated/google/apis/dialogflow_v2beta1/representations.rb +++ b/generated/google/apis/dialogflow_v2beta1/representations.rb @@ -232,6 +232,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2SessionEntityType + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2WebhookRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1271,6 +1277,16 @@ module Google end end + class GoogleCloudDialogflowV2SessionEntityType + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :entities, as: 'entities', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2EntityTypeEntity, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2EntityTypeEntity::Representation + + property :entity_override_mode, as: 'entityOverrideMode' + property :name, as: 'name' + end + end + class GoogleCloudDialogflowV2WebhookRequest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1294,6 +1310,8 @@ module Google collection :output_contexts, as: 'outputContexts', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2Context, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2Context::Representation hash :payload, as: 'payload' + collection :session_entity_types, as: 'sessionEntityTypes', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SessionEntityType, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2SessionEntityType::Representation + property :source, as: 'source' end end @@ -2363,6 +2381,8 @@ module Google collection :output_contexts, as: 'outputContexts', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1Context::Representation hash :payload, as: 'payload' + collection :session_entity_types, as: 'sessionEntityTypes', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SessionEntityType::Representation + property :source, as: 'source' end end diff --git a/generated/google/apis/iap_v1.rb b/generated/google/apis/iap_v1.rb index d07ac30a3..a55a6cad3 100644 --- a/generated/google/apis/iap_v1.rb +++ b/generated/google/apis/iap_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/iap module IapV1 VERSION = 'V1' - REVISION = '20190906' + REVISION = '20190920' # 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/iap_v1/classes.rb b/generated/google/apis/iap_v1/classes.rb index f95d645d5..e606706dc 100644 --- a/generated/google/apis/iap_v1/classes.rb +++ b/generated/google/apis/iap_v1/classes.rb @@ -162,25 +162,34 @@ module Google # Defines an Identity and Access Management (IAM) policy. It is used to # specify access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `binding` binds a list of - # `members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. + # A `Policy` is a collection of `bindings`. A `binding` binds one or more + # `members` to a single `role`. Members can be user accounts, service accounts, + # Google groups, and domains (such as G Suite). A `role` is a named list of + # permissions (defined by IAM or configured by users). A `binding` can + # optionally specify a `condition`, which is a logic expression that further + # constrains the role binding based on attributes about the request and/or + # target resource. # **JSON Example** # ` # "bindings": [ # ` - # "role": "roles/owner", + # "role": "role/resourcemanager.organizationAdmin", # "members": [ # "user:mike@example.com", # "group:admins@example.com", # "domain:google.com", - # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # "serviceAccount:my-project-id@appspot.gserviceaccount.com" # ] # `, # ` - # "role": "roles/viewer", - # "members": ["user:sean@example.com"] + # "role": "roles/resourcemanager.organizationViewer", + # "members": ["user:eve@example.com"], + # "condition": ` + # "title": "expirable access", + # "description": "Does not grant access after Sep 2020", + # "expression": "request.time < + # timestamp('2020-10-01T00:00:00.000Z')", + # ` # ` # ] # ` @@ -190,17 +199,22 @@ module Google # - user:mike@example.com # - group:admins@example.com # - domain:google.com - # - serviceAccount:my-other-app@appspot.gserviceaccount.com - # role: roles/owner + # - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin # - members: - # - user:sean@example.com - # role: roles/viewer + # - user:eve@example.com + # role: roles/resourcemanager.organizationViewer + # condition: + # title: expirable access + # description: Does not grant access after Sep 2020 + # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') # For a description of IAM and its features, see the # [IAM developer's guide](https://cloud.google.com/iam/docs). class Policy include Google::Apis::Core::Hashable - # Associates a list of `members` to a `role`. + # Associates a list of `members` to a `role`. Optionally may specify a + # `condition` that determines when binding is in effect. # `bindings` with no members will result in an error. # Corresponds to the JSON property `bindings` # @return [Array] @@ -214,7 +228,9 @@ module Google # systems are expected to put that etag in the request to `setIamPolicy` to # ensure that their change will be applied to the same version of the policy. # If no `etag` is provided in the call to `setIamPolicy`, then the existing - # policy is overwritten. + # policy is overwritten. Due to blind-set semantics of an etag-less policy, + # 'setIamPolicy' will not fail even if either of incoming or stored policy + # does not meet the version requirements. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -223,9 +239,13 @@ module Google # Specifies the format of the policy. # Valid values are 0, 1, and 3. Requests specifying an invalid value will be # rejected. - # Policies with any conditional bindings must specify version 3. Policies - # without any conditional bindings may specify any valid value or leave the - # field unset. + # Operations affecting conditional bindings must specify version 3. This can + # be either setting a conditional policy, modifying a conditional binding, + # or removing a conditional binding from the stored conditional policy. + # Operations on non-conditional policies may specify any valid value or + # leave the field unset. + # If no etag is provided in the call to `setIamPolicy`, any version + # compliance checks on the incoming and/or stored policy is skipped. # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -248,25 +268,34 @@ module Google # Defines an Identity and Access Management (IAM) policy. It is used to # specify access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `binding` binds a list of - # `members` to a `role`, where the members can be user accounts, Google groups, - # Google domains, and service accounts. A `role` is a named list of permissions - # defined by IAM. + # A `Policy` is a collection of `bindings`. A `binding` binds one or more + # `members` to a single `role`. Members can be user accounts, service accounts, + # Google groups, and domains (such as G Suite). A `role` is a named list of + # permissions (defined by IAM or configured by users). A `binding` can + # optionally specify a `condition`, which is a logic expression that further + # constrains the role binding based on attributes about the request and/or + # target resource. # **JSON Example** # ` # "bindings": [ # ` - # "role": "roles/owner", + # "role": "role/resourcemanager.organizationAdmin", # "members": [ # "user:mike@example.com", # "group:admins@example.com", # "domain:google.com", - # "serviceAccount:my-other-app@appspot.gserviceaccount.com" + # "serviceAccount:my-project-id@appspot.gserviceaccount.com" # ] # `, # ` - # "role": "roles/viewer", - # "members": ["user:sean@example.com"] + # "role": "roles/resourcemanager.organizationViewer", + # "members": ["user:eve@example.com"], + # "condition": ` + # "title": "expirable access", + # "description": "Does not grant access after Sep 2020", + # "expression": "request.time < + # timestamp('2020-10-01T00:00:00.000Z')", + # ` # ` # ] # ` @@ -276,11 +305,15 @@ module Google # - user:mike@example.com # - group:admins@example.com # - domain:google.com - # - serviceAccount:my-other-app@appspot.gserviceaccount.com - # role: roles/owner + # - serviceAccount:my-project-id@appspot.gserviceaccount.com + # role: roles/resourcemanager.organizationAdmin # - members: - # - user:sean@example.com - # role: roles/viewer + # - user:eve@example.com + # role: roles/resourcemanager.organizationViewer + # condition: + # title: expirable access + # description: Does not grant access after Sep 2020 + # expression: request.time < timestamp('2020-10-01T00:00:00.000Z') # For a description of IAM and its features, see the # [IAM developer's guide](https://cloud.google.com/iam/docs). # Corresponds to the JSON property `policy` diff --git a/generated/google/apis/vision_v1.rb b/generated/google/apis/vision_v1.rb index 6249dd57c..7c0fb2b96 100644 --- a/generated/google/apis/vision_v1.rb +++ b/generated/google/apis/vision_v1.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/vision/ module VisionV1 VERSION = 'V1' - REVISION = '20190913' + REVISION = '20190927' # 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/vision_v1/classes.rb b/generated/google/apis/vision_v1/classes.rb index 581f60729..f69267666 100644 --- a/generated/google/apis/vision_v1/classes.rb +++ b/generated/google/apis/vision_v1/classes.rb @@ -7005,11 +7005,6 @@ module Google # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ImageProperties] attr_accessor :image_properties_annotation - # Stores image quality scores, could be aesthetic quality or technical quality. - # Corresponds to the JSON property `imageQualityAnnotation` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ImageQuality] - attr_accessor :image_quality_annotation - # If present, label detection has completed successfully. # Corresponds to the JSON property `labelAnnotations` # @return [Array] @@ -7036,11 +7031,6 @@ module Google # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResults] attr_accessor :product_search_results - # Stores enhanced image bytes. - # Corresponds to the JSON property `qualityOptimizationResult` - # @return [Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1QualityOptimizationResult] - attr_accessor :quality_optimization_result - # Set of features pertaining to the image, computed by computer vision # methods over safe-search verticals (for example, adult, spoof, medical, # violence). @@ -7070,13 +7060,11 @@ module Google @face_annotations = args[:face_annotations] if args.key?(:face_annotations) @full_text_annotation = args[:full_text_annotation] if args.key?(:full_text_annotation) @image_properties_annotation = args[:image_properties_annotation] if args.key?(:image_properties_annotation) - @image_quality_annotation = args[:image_quality_annotation] if args.key?(:image_quality_annotation) @label_annotations = args[:label_annotations] if args.key?(:label_annotations) @landmark_annotations = args[:landmark_annotations] if args.key?(:landmark_annotations) @localized_object_annotations = args[:localized_object_annotations] if args.key?(:localized_object_annotations) @logo_annotations = args[:logo_annotations] if args.key?(:logo_annotations) @product_search_results = args[:product_search_results] if args.key?(:product_search_results) - @quality_optimization_result = args[:quality_optimization_result] if args.key?(:quality_optimization_result) @safe_search_annotation = args[:safe_search_annotation] if args.key?(:safe_search_annotation) @text_annotations = args[:text_annotations] if args.key?(:text_annotations) @web_detection = args[:web_detection] if args.key?(:web_detection) @@ -7788,28 +7776,6 @@ module Google end end - # Stores image quality scores, could be aesthetic quality or technical quality. - class GoogleCloudVisionV1p4beta1ImageQuality - include Google::Apis::Core::Hashable - - # A score representing the aesthetic/technical quality of the image. The - # score is in range [0, 1]. Higher value corresponds to more professional - # looking photos. 0 means the image looks very bad, 1 means the image with - # very high quality. - # Corresponds to the JSON property `qualityScore` - # @return [Float] - attr_accessor :quality_score - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @quality_score = args[:quality_score] if args.key?(:quality_score) - end - end - # Response message for the `ImportProductSets` method. # This message is returned by the # google.longrunning.Operations.GetOperation method in the returned @@ -8412,38 +8378,6 @@ module Google end end - # Stores enhanced image bytes. - class GoogleCloudVisionV1p4beta1QualityOptimizationResult - include Google::Apis::Core::Hashable - - # Optimized image bytes. - # Corresponds to the JSON property `image` - # NOTE: Values are automatically base64 encoded/decoded in the client library. - # @return [String] - attr_accessor :image - - # Mime type of the output image. - # Corresponds to the JSON property `mimeType` - # @return [String] - attr_accessor :mime_type - - # Required optimization type. - # Corresponds to the JSON property `qualityOptimizationType` - # @return [String] - attr_accessor :quality_optimization_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @image = args[:image] if args.key?(:image) - @mime_type = args[:mime_type] if args.key?(:mime_type) - @quality_optimization_type = args[:quality_optimization_type] if args.key?(:quality_optimization_type) - end - end - # A `ReferenceImage` represents a product image and its associated metadata, # such as bounding boxes. class GoogleCloudVisionV1p4beta1ReferenceImage @@ -8501,29 +8435,11 @@ module Google # @return [String] attr_accessor :adult - # Confidence of adult_score. Range [0, 1]. 0 means not confident, 1 means - # very confident. - # Corresponds to the JSON property `adultConfidence` - # @return [Float] - attr_accessor :adult_confidence - # Likelihood that this is a medical image. # Corresponds to the JSON property `medical` # @return [String] attr_accessor :medical - # Confidence of medical_score. Range [0, 1]. 0 means not confident, 1 means - # very confident. - # Corresponds to the JSON property `medicalConfidence` - # @return [Float] - attr_accessor :medical_confidence - - # Confidence of nsfw_score. Range [0, 1]. 0 means not confident, 1 means very - # confident. - # Corresponds to the JSON property `nsfwConfidence` - # @return [Float] - attr_accessor :nsfw_confidence - # Likelihood that the request image contains racy content. Racy content may # include (but is not limited to) skimpy or sheer clothing, strategically # covered nudity, lewd or provocative poses, or close-ups of sensitive @@ -8532,12 +8448,6 @@ module Google # @return [String] attr_accessor :racy - # Confidence of racy_score. Range [0, 1]. 0 means not confident, 1 means very - # confident. - # Corresponds to the JSON property `racyConfidence` - # @return [Float] - attr_accessor :racy_confidence - # Spoof likelihood. The likelihood that an modification # was made to the image's canonical version to make it appear # funny or offensive. @@ -8545,23 +8455,11 @@ module Google # @return [String] attr_accessor :spoof - # Confidence of spoof_score. Range [0, 1]. 0 means not confident, 1 means - # very confident. - # Corresponds to the JSON property `spoofConfidence` - # @return [Float] - attr_accessor :spoof_confidence - # Likelihood that this image contains violent content. # Corresponds to the JSON property `violence` # @return [String] attr_accessor :violence - # Confidence of violence_score. Range [0, 1]. 0 means not confident, 1 means - # very confident. - # Corresponds to the JSON property `violenceConfidence` - # @return [Float] - attr_accessor :violence_confidence - def initialize(**args) update!(**args) end @@ -8569,16 +8467,10 @@ module Google # Update properties of this object def update!(**args) @adult = args[:adult] if args.key?(:adult) - @adult_confidence = args[:adult_confidence] if args.key?(:adult_confidence) @medical = args[:medical] if args.key?(:medical) - @medical_confidence = args[:medical_confidence] if args.key?(:medical_confidence) - @nsfw_confidence = args[:nsfw_confidence] if args.key?(:nsfw_confidence) @racy = args[:racy] if args.key?(:racy) - @racy_confidence = args[:racy_confidence] if args.key?(:racy_confidence) @spoof = args[:spoof] if args.key?(:spoof) - @spoof_confidence = args[:spoof_confidence] if args.key?(:spoof_confidence) @violence = args[:violence] if args.key?(:violence) - @violence_confidence = args[:violence_confidence] if args.key?(:violence_confidence) end end @@ -10373,29 +10265,11 @@ module Google # @return [String] attr_accessor :adult - # Confidence of adult_score. Range [0, 1]. 0 means not confident, 1 means - # very confident. - # Corresponds to the JSON property `adultConfidence` - # @return [Float] - attr_accessor :adult_confidence - # Likelihood that this is a medical image. # Corresponds to the JSON property `medical` # @return [String] attr_accessor :medical - # Confidence of medical_score. Range [0, 1]. 0 means not confident, 1 means - # very confident. - # Corresponds to the JSON property `medicalConfidence` - # @return [Float] - attr_accessor :medical_confidence - - # Confidence of nsfw_score. Range [0, 1]. 0 means not confident, 1 means very - # confident. - # Corresponds to the JSON property `nsfwConfidence` - # @return [Float] - attr_accessor :nsfw_confidence - # Likelihood that the request image contains racy content. Racy content may # include (but is not limited to) skimpy or sheer clothing, strategically # covered nudity, lewd or provocative poses, or close-ups of sensitive @@ -10404,12 +10278,6 @@ module Google # @return [String] attr_accessor :racy - # Confidence of racy_score. Range [0, 1]. 0 means not confident, 1 means very - # confident. - # Corresponds to the JSON property `racyConfidence` - # @return [Float] - attr_accessor :racy_confidence - # Spoof likelihood. The likelihood that an modification # was made to the image's canonical version to make it appear # funny or offensive. @@ -10417,23 +10285,11 @@ module Google # @return [String] attr_accessor :spoof - # Confidence of spoof_score. Range [0, 1]. 0 means not confident, 1 means - # very confident. - # Corresponds to the JSON property `spoofConfidence` - # @return [Float] - attr_accessor :spoof_confidence - # Likelihood that this image contains violent content. # Corresponds to the JSON property `violence` # @return [String] attr_accessor :violence - # Confidence of violence_score. Range [0, 1]. 0 means not confident, 1 means - # very confident. - # Corresponds to the JSON property `violenceConfidence` - # @return [Float] - attr_accessor :violence_confidence - def initialize(**args) update!(**args) end @@ -10441,16 +10297,10 @@ module Google # Update properties of this object def update!(**args) @adult = args[:adult] if args.key?(:adult) - @adult_confidence = args[:adult_confidence] if args.key?(:adult_confidence) @medical = args[:medical] if args.key?(:medical) - @medical_confidence = args[:medical_confidence] if args.key?(:medical_confidence) - @nsfw_confidence = args[:nsfw_confidence] if args.key?(:nsfw_confidence) @racy = args[:racy] if args.key?(:racy) - @racy_confidence = args[:racy_confidence] if args.key?(:racy_confidence) @spoof = args[:spoof] if args.key?(:spoof) - @spoof_confidence = args[:spoof_confidence] if args.key?(:spoof_confidence) @violence = args[:violence] if args.key?(:violence) - @violence_confidence = args[:violence_confidence] if args.key?(:violence_confidence) end end diff --git a/generated/google/apis/vision_v1/representations.rb b/generated/google/apis/vision_v1/representations.rb index 67b21eb8b..c7d4c5ae7 100644 --- a/generated/google/apis/vision_v1/representations.rb +++ b/generated/google/apis/vision_v1/representations.rb @@ -1186,12 +1186,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudVisionV1p4beta1ImageQuality - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class GoogleCloudVisionV1p4beta1ImportProductSetsResponse class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1294,12 +1288,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class GoogleCloudVisionV1p4beta1QualityOptimizationResult - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class GoogleCloudVisionV1p4beta1ReferenceImage class Representation < Google::Apis::Core::JsonRepresentation; end @@ -3615,8 +3603,6 @@ module Google property :image_properties_annotation, as: 'imagePropertiesAnnotation', class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ImageProperties, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ImageProperties::Representation - property :image_quality_annotation, as: 'imageQualityAnnotation', class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ImageQuality, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ImageQuality::Representation - collection :label_annotations, as: 'labelAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1EntityAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1EntityAnnotation::Representation collection :landmark_annotations, as: 'landmarkAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1EntityAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1EntityAnnotation::Representation @@ -3627,8 +3613,6 @@ module Google property :product_search_results, as: 'productSearchResults', class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResults, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1ProductSearchResults::Representation - property :quality_optimization_result, as: 'qualityOptimizationResult', class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1QualityOptimizationResult, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1QualityOptimizationResult::Representation - property :safe_search_annotation, as: 'safeSearchAnnotation', class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1SafeSearchAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1SafeSearchAnnotation::Representation collection :text_annotations, as: 'textAnnotations', class: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1EntityAnnotation, decorator: Google::Apis::VisionV1::GoogleCloudVisionV1p4beta1EntityAnnotation::Representation @@ -3820,13 +3804,6 @@ module Google end end - class GoogleCloudVisionV1p4beta1ImageQuality - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :quality_score, as: 'qualityScore' - end - end - class GoogleCloudVisionV1p4beta1ImportProductSetsResponse # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -4000,15 +3977,6 @@ module Google end end - class GoogleCloudVisionV1p4beta1QualityOptimizationResult - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :image, :base64 => true, as: 'image' - property :mime_type, as: 'mimeType' - property :quality_optimization_type, as: 'qualityOptimizationType' - end - end - class GoogleCloudVisionV1p4beta1ReferenceImage # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -4023,16 +3991,10 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :adult, as: 'adult' - property :adult_confidence, as: 'adultConfidence' property :medical, as: 'medical' - property :medical_confidence, as: 'medicalConfidence' - property :nsfw_confidence, as: 'nsfwConfidence' property :racy, as: 'racy' - property :racy_confidence, as: 'racyConfidence' property :spoof, as: 'spoof' - property :spoof_confidence, as: 'spoofConfidence' property :violence, as: 'violence' - property :violence_confidence, as: 'violenceConfidence' end end @@ -4549,16 +4511,10 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation property :adult, as: 'adult' - property :adult_confidence, as: 'adultConfidence' property :medical, as: 'medical' - property :medical_confidence, as: 'medicalConfidence' - property :nsfw_confidence, as: 'nsfwConfidence' property :racy, as: 'racy' - property :racy_confidence, as: 'racyConfidence' property :spoof, as: 'spoof' - property :spoof_confidence, as: 'spoofConfidence' property :violence, as: 'violence' - property :violence_confidence, as: 'violenceConfidence' end end diff --git a/generated/google/apis/youtube_partner_v1.rb b/generated/google/apis/youtube_partner_v1.rb index 4e2b231d5..382f01c24 100644 --- a/generated/google/apis/youtube_partner_v1.rb +++ b/generated/google/apis/youtube_partner_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://developers.google.com/youtube/partner/ module YoutubePartnerV1 VERSION = 'V1' - REVISION = '20190922' + REVISION = '20190927' # View and manage your assets and associated content on YouTube AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner' diff --git a/generated/google/apis/youtube_partner_v1/classes.rb b/generated/google/apis/youtube_partner_v1/classes.rb index 2ace35832..aa7c85970 100644 --- a/generated/google/apis/youtube_partner_v1/classes.rb +++ b/generated/google/apis/youtube_partner_v1/classes.rb @@ -2872,89 +2872,6 @@ module Google end end - # - class Publisher - include Google::Apis::Core::Hashable - - # The publisher's unique CAE (Compositeur, Auteur and Editeur) number. - # Corresponds to the JSON property `caeNumber` - # @return [String] - attr_accessor :cae_number - - # A value that YouTube assigns and uses to uniquely identify the publisher. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # The publisher's unique IPI (Interested Parties Information) code. - # Corresponds to the JSON property `ipiNumber` - # @return [String] - attr_accessor :ipi_number - - # The type of the API resource. For this resource, the value is youtubePartner# - # publisher. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The publisher's name. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @cae_number = args[:cae_number] if args.key?(:cae_number) - @id = args[:id] if args.key?(:id) - @ipi_number = args[:ipi_number] if args.key?(:ipi_number) - @kind = args[:kind] if args.key?(:kind) - @name = args[:name] if args.key?(:name) - end - end - - # - class PublisherList - include Google::Apis::Core::Hashable - - # A list of publishers that match the request criteria. - # Corresponds to the JSON property `items` - # @return [Array] - attr_accessor :items - - # The type of the API response. For this operation, the value is youtubePartner# - # publisherList. - # Corresponds to the JSON property `kind` - # @return [String] - attr_accessor :kind - - # The token that can be used as the value of the pageToken parameter to retrieve - # the next page in the result set. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # The pageInfo object encapsulates paging information for the result set. - # Corresponds to the JSON property `pageInfo` - # @return [Google::Apis::YoutubePartnerV1::PageInfo] - attr_accessor :page_info - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @items = args[:items] if args.key?(:items) - @kind = args[:kind] if args.key?(:kind) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @page_info = args[:page_info] if args.key?(:page_info) - end - end - # class Rating include Google::Apis::Core::Hashable diff --git a/generated/google/apis/youtube_partner_v1/representations.rb b/generated/google/apis/youtube_partner_v1/representations.rb index 956735357..9770878a4 100644 --- a/generated/google/apis/youtube_partner_v1/representations.rb +++ b/generated/google/apis/youtube_partner_v1/representations.rb @@ -382,18 +382,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Publisher - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class PublisherList - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Rating class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1334,29 +1322,6 @@ module Google end end - class Publisher - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :cae_number, as: 'caeNumber' - property :id, as: 'id' - property :ipi_number, as: 'ipiNumber' - property :kind, as: 'kind' - property :name, as: 'name' - end - end - - class PublisherList - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :items, as: 'items', class: Google::Apis::YoutubePartnerV1::Publisher, decorator: Google::Apis::YoutubePartnerV1::Publisher::Representation - - property :kind, as: 'kind' - property :next_page_token, as: 'nextPageToken' - property :page_info, as: 'pageInfo', class: Google::Apis::YoutubePartnerV1::PageInfo, decorator: Google::Apis::YoutubePartnerV1::PageInfo::Representation - - end - end - class Rating # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/youtube_partner_v1/service.rb b/generated/google/apis/youtube_partner_v1/service.rb index 197737bfd..de5af2aaf 100644 --- a/generated/google/apis/youtube_partner_v1/service.rb +++ b/generated/google/apis/youtube_partner_v1/service.rb @@ -2408,106 +2408,6 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves information about the specified publisher. - # @param [String] publisher_id - # The publisherId parameter specifies a publisher ID that uniquely identifies - # the publisher being retrieved. - # @param [String] on_behalf_of_content_owner - # The onBehalfOfContentOwner parameter identifies the content owner that the - # user is acting on behalf of. This parameter supports users whose accounts are - # associated with multiple content owners. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::YoutubePartnerV1::Publisher] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::YoutubePartnerV1::Publisher] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_publisher(publisher_id, on_behalf_of_content_owner: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'publishers/{publisherId}', options) - command.response_representation = Google::Apis::YoutubePartnerV1::Publisher::Representation - command.response_class = Google::Apis::YoutubePartnerV1::Publisher - command.params['publisherId'] = publisher_id unless publisher_id.nil? - command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - - # Retrieves a list of publishers that match the request criteria. This method is - # analogous to a publisher search function. - # @param [String] cae_number - # The caeNumber parameter specifies the CAE number of the publisher that you - # want to retrieve. - # @param [String] id - # The id parameter specifies a comma-separated list of YouTube publisher IDs to - # retrieve. - # @param [String] ipi_number - # The ipiNumber parameter specifies the IPI number of the publisher that you - # want to retrieve. - # @param [Fixnum] max_results - # The maxResults parameter specifies the maximum number of results to return per - # page. - # @param [String] name_prefix - # The namePrefix parameter indicates that the API should only return publishers - # whose name starts with this prefix. - # @param [String] on_behalf_of_content_owner - # The onBehalfOfContentOwner parameter identifies the content owner that the - # user is acting on behalf of. This parameter supports users whose accounts are - # associated with multiple content owners. - # @param [String] page_token - # The pageToken parameter specifies a token that identifies a particular page of - # results to return. Set this parameter to the value of the nextPageToken value - # from the previous API response to retrieve the next page of search results. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::YoutubePartnerV1::PublisherList] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::YoutubePartnerV1::PublisherList] - # - # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried - # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification - # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_publishers(cae_number: nil, id: nil, ipi_number: nil, max_results: nil, name_prefix: nil, on_behalf_of_content_owner: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'publishers', options) - command.response_representation = Google::Apis::YoutubePartnerV1::PublisherList::Representation - command.response_class = Google::Apis::YoutubePartnerV1::PublisherList - command.query['caeNumber'] = cae_number unless cae_number.nil? - command.query['id'] = id unless id.nil? - command.query['ipiNumber'] = ipi_number unless ipi_number.nil? - command.query['maxResults'] = max_results unless max_results.nil? - command.query['namePrefix'] = name_prefix unless name_prefix.nil? - command.query['onBehalfOfContentOwner'] = on_behalf_of_content_owner unless on_behalf_of_content_owner.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - execute_or_queue_command(command, &block) - end - # Retrieves information about the specified reference conflict. # @param [String] reference_conflict_id # The referenceConflictId parameter specifies the YouTube reference conflict ID