From a2ff447d1897746a5bdecd308e53609b13dca032 Mon Sep 17 00:00:00 2001 From: Google APIs Date: Wed, 30 Sep 2020 00:38:45 +0000 Subject: [PATCH] Autogenerated update (2020-09-30) Delete: - apigateway_v1alpha1 - apigateway_v1alpha2 - appsactivity_v1 Update: - books_v1 - cloudidentity_v1 - cloudidentity_v1beta1 - composer_v1beta1 - dataproc_v1 - dataproc_v1beta2 - dialogflow_v2 - dialogflow_v2beta1 - dialogflow_v3beta1 - memcache_v1beta2 - recommender_v1 - recommender_v1beta1 - youtube_partner_v1 --- api_names_out.yaml | 41 ++ generated/google/apis/apigateway_v1alpha1.rb | 34 - .../apis/apigateway_v1alpha1/classes.rb | 633 ------------------ .../apigateway_v1alpha1/representations.rb | 250 ------- .../apis/apigateway_v1alpha1/service.rb | 623 ----------------- generated/google/apis/apigateway_v1alpha2.rb | 34 - .../apis/apigateway_v1alpha2/classes.rb | 633 ------------------ .../apigateway_v1alpha2/representations.rb | 250 ------- .../apis/apigateway_v1alpha2/service.rb | 623 ----------------- generated/google/apis/appsactivity_v1.rb | 34 - .../google/apis/appsactivity_v1/classes.rb | 415 ------------ .../apis/appsactivity_v1/representations.rb | 209 ------ .../google/apis/appsactivity_v1/service.rb | 126 ---- generated/google/apis/books_v1.rb | 2 +- generated/google/apis/books_v1/service.rb | 4 +- generated/google/apis/cloudidentity_v1.rb | 2 +- .../google/apis/cloudidentity_v1/classes.rb | 142 ++-- .../google/apis/cloudidentity_v1/service.rb | 154 +++-- .../google/apis/cloudidentity_v1beta1.rb | 2 +- .../apis/cloudidentity_v1beta1/classes.rb | 3 + .../apis/cloudidentity_v1beta1/service.rb | 37 +- generated/google/apis/composer_v1beta1.rb | 2 +- .../google/apis/composer_v1beta1/classes.rb | 3 +- generated/google/apis/dataproc_v1.rb | 2 +- generated/google/apis/dataproc_v1/classes.rb | 30 +- .../apis/dataproc_v1/representations.rb | 15 + generated/google/apis/dataproc_v1beta2.rb | 2 +- .../google/apis/dataproc_v1beta2/classes.rb | 30 +- .../apis/dataproc_v1beta2/representations.rb | 15 + generated/google/apis/dialogflow_v2.rb | 2 +- .../google/apis/dialogflow_v2/classes.rb | 87 +++ .../apis/dialogflow_v2/representations.rb | 45 ++ generated/google/apis/dialogflow_v2beta1.rb | 2 +- .../google/apis/dialogflow_v2beta1/classes.rb | 102 ++- .../dialogflow_v2beta1/representations.rb | 45 ++ generated/google/apis/dialogflow_v3beta1.rb | 2 +- .../google/apis/dialogflow_v3beta1/classes.rb | 87 +++ .../dialogflow_v3beta1/representations.rb | 45 ++ generated/google/apis/memcache_v1beta2.rb | 2 +- .../google/apis/memcache_v1beta2/service.rb | 10 +- generated/google/apis/recommender_v1.rb | 2 +- .../google/apis/recommender_v1/service.rb | 6 +- generated/google/apis/recommender_v1beta1.rb | 2 +- .../apis/recommender_v1beta1/service.rb | 6 +- generated/google/apis/youtube_partner_v1.rb | 2 +- 45 files changed, 752 insertions(+), 4045 deletions(-) delete mode 100644 generated/google/apis/apigateway_v1alpha1.rb delete mode 100644 generated/google/apis/apigateway_v1alpha1/classes.rb delete mode 100644 generated/google/apis/apigateway_v1alpha1/representations.rb delete mode 100644 generated/google/apis/apigateway_v1alpha1/service.rb delete mode 100644 generated/google/apis/apigateway_v1alpha2.rb delete mode 100644 generated/google/apis/apigateway_v1alpha2/classes.rb delete mode 100644 generated/google/apis/apigateway_v1alpha2/representations.rb delete mode 100644 generated/google/apis/apigateway_v1alpha2/service.rb delete mode 100644 generated/google/apis/appsactivity_v1.rb delete mode 100644 generated/google/apis/appsactivity_v1/classes.rb delete mode 100644 generated/google/apis/appsactivity_v1/representations.rb delete mode 100644 generated/google/apis/appsactivity_v1/service.rb diff --git a/api_names_out.yaml b/api_names_out.yaml index 3561af18e..f93f9ff1f 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -61537,6 +61537,7 @@ "/dataproc:v1/GceClusterConfig/metadata": metadata "/dataproc:v1/GceClusterConfig/metadata/metadatum": metadatum "/dataproc:v1/GceClusterConfig/networkUri": network_uri +"/dataproc:v1/GceClusterConfig/nodeGroupAffinity": node_group_affinity "/dataproc:v1/GceClusterConfig/privateIpv6GoogleAccess": private_ipv6_google_access "/dataproc:v1/GceClusterConfig/reservationAffinity": reservation_affinity "/dataproc:v1/GceClusterConfig/serviceAccount": service_account @@ -61694,6 +61695,8 @@ "/dataproc:v1/ManagedGroupConfig": managed_group_config "/dataproc:v1/ManagedGroupConfig/instanceGroupManagerName": instance_group_manager_name "/dataproc:v1/ManagedGroupConfig/instanceTemplateName": instance_template_name +"/dataproc:v1/NodeGroupAffinity": node_group_affinity +"/dataproc:v1/NodeGroupAffinity/nodeGroupUri": node_group_uri "/dataproc:v1/NodeInitializationAction": node_initialization_action "/dataproc:v1/NodeInitializationAction/executableFile": executable_file "/dataproc:v1/NodeInitializationAction/executionTimeout": execution_timeout @@ -62188,6 +62191,7 @@ "/dataproc:v1beta2/GceClusterConfig/metadata": metadata "/dataproc:v1beta2/GceClusterConfig/metadata/metadatum": metadatum "/dataproc:v1beta2/GceClusterConfig/networkUri": network_uri +"/dataproc:v1beta2/GceClusterConfig/nodeGroupAffinity": node_group_affinity "/dataproc:v1beta2/GceClusterConfig/privateIpv6GoogleAccess": private_ipv6_google_access "/dataproc:v1beta2/GceClusterConfig/reservationAffinity": reservation_affinity "/dataproc:v1beta2/GceClusterConfig/serviceAccount": service_account @@ -62354,6 +62358,8 @@ "/dataproc:v1beta2/NamespacedGkeDeploymentTarget": namespaced_gke_deployment_target "/dataproc:v1beta2/NamespacedGkeDeploymentTarget/clusterNamespace": cluster_namespace "/dataproc:v1beta2/NamespacedGkeDeploymentTarget/targetGkeCluster": target_gke_cluster +"/dataproc:v1beta2/NodeGroupAffinity": node_group_affinity +"/dataproc:v1beta2/NodeGroupAffinity/nodeGroupUri": node_group_uri "/dataproc:v1beta2/NodeInitializationAction": node_initialization_action "/dataproc:v1beta2/NodeInitializationAction/executableFile": executable_file "/dataproc:v1beta2/NodeInitializationAction/executionTimeout": execution_timeout @@ -83751,6 +83757,9 @@ "/dialogflow:v2/GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse": google_cloud_dialogflow_v2beta1_batch_update_intents_response "/dialogflow:v2/GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse/intents": intents "/dialogflow:v2/GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse/intents/intent": intent +"/dialogflow:v2/GoogleCloudDialogflowV2beta1BatchUpdateSmartMessagingEntriesResponse": google_cloud_dialogflow_v2beta1_batch_update_smart_messaging_entries_response +"/dialogflow:v2/GoogleCloudDialogflowV2beta1BatchUpdateSmartMessagingEntriesResponse/smartMessagingEntries": smart_messaging_entries +"/dialogflow:v2/GoogleCloudDialogflowV2beta1BatchUpdateSmartMessagingEntriesResponse/smartMessagingEntries/smart_messaging_entry": smart_messaging_entry "/dialogflow:v2/GoogleCloudDialogflowV2beta1Context": google_cloud_dialogflow_v2beta1_context "/dialogflow:v2/GoogleCloudDialogflowV2beta1Context/lifespanCount": lifespan_count "/dialogflow:v2/GoogleCloudDialogflowV2beta1Context/name": name @@ -84065,6 +84074,14 @@ "/dialogflow:v2/GoogleCloudDialogflowV2beta1SessionEntityType/entities/entity": entity "/dialogflow:v2/GoogleCloudDialogflowV2beta1SessionEntityType/entityOverrideMode": entity_override_mode "/dialogflow:v2/GoogleCloudDialogflowV2beta1SessionEntityType/name": name +"/dialogflow:v2/GoogleCloudDialogflowV2beta1SmartMessagingEntry": google_cloud_dialogflow_v2beta1_smart_messaging_entry +"/dialogflow:v2/GoogleCloudDialogflowV2beta1SmartMessagingEntry/messageInfo": message_info +"/dialogflow:v2/GoogleCloudDialogflowV2beta1SmartMessagingEntry/name": name +"/dialogflow:v2/GoogleCloudDialogflowV2beta1SmartMessagingEntry/rawText": raw_text +"/dialogflow:v2/GoogleCloudDialogflowV2beta1SmartMessagingEntry/state": state +"/dialogflow:v2/GoogleCloudDialogflowV2beta1SmartMessagingEntryInfo": google_cloud_dialogflow_v2beta1_smart_messaging_entry_info +"/dialogflow:v2/GoogleCloudDialogflowV2beta1SmartMessagingEntryInfo/creationMethod": creation_method +"/dialogflow:v2/GoogleCloudDialogflowV2beta1SmartMessagingEntryInfo/occurrenceCount": occurrence_count "/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookRequest": google_cloud_dialogflow_v2beta1_webhook_request "/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookRequest/alternativeQueryResults": alternative_query_results "/dialogflow:v2/GoogleCloudDialogflowV2beta1WebhookRequest/alternativeQueryResults/alternative_query_result": alternative_query_result @@ -84856,6 +84873,10 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse": google_cloud_dialogflow_v2beta1_batch_update_intents_response "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse/intents": intents "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse/intents/intent": intent +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1BatchUpdateSmartMessagingEntriesResponse": google_cloud_dialogflow_v2beta1_batch_update_smart_messaging_entries_response +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1BatchUpdateSmartMessagingEntriesResponse/smartMessagingEntries": smart_messaging_entries +? "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1BatchUpdateSmartMessagingEntriesResponse/smartMessagingEntries/smart_messaging_entry" +: smart_messaging_entry "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1CancelPhoneNumberOrderRequest": google_cloud_dialogflow_v2beta1_cancel_phone_number_order_request "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1CompileSuggestionsRequest": google_cloud_dialogflow_v2beta1_compile_suggestions_request "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1CompileSuggestionsRequest/messages": messages @@ -85421,6 +85442,14 @@ "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SessionEntityType/entities/entity": entity "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SessionEntityType/entityOverrideMode": entity_override_mode "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SessionEntityType/name": name +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SmartMessagingEntry": google_cloud_dialogflow_v2beta1_smart_messaging_entry +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SmartMessagingEntry/messageInfo": message_info +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SmartMessagingEntry/name": name +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SmartMessagingEntry/rawText": raw_text +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SmartMessagingEntry/state": state +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SmartMessagingEntryInfo": google_cloud_dialogflow_v2beta1_smart_messaging_entry_info +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SmartMessagingEntryInfo/creationMethod": creation_method +"/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SmartMessagingEntryInfo/occurrenceCount": occurrence_count "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SpeechContext": google_cloud_dialogflow_v2beta1_speech_context "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SpeechContext/boost": boost "/dialogflow:v2beta1/GoogleCloudDialogflowV2beta1SpeechContext/phrases": phrases @@ -87023,6 +87052,10 @@ "/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse": google_cloud_dialogflow_v2beta1_batch_update_intents_response "/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse/intents": intents "/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1BatchUpdateIntentsResponse/intents/intent": intent +"/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1BatchUpdateSmartMessagingEntriesResponse": google_cloud_dialogflow_v2beta1_batch_update_smart_messaging_entries_response +"/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1BatchUpdateSmartMessagingEntriesResponse/smartMessagingEntries": smart_messaging_entries +? "/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1BatchUpdateSmartMessagingEntriesResponse/smartMessagingEntries/smart_messaging_entry" +: smart_messaging_entry "/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1Context": google_cloud_dialogflow_v2beta1_context "/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1Context/lifespanCount": lifespan_count "/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1Context/name": name @@ -87330,6 +87363,14 @@ "/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1SessionEntityType/entities/entity": entity "/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1SessionEntityType/entityOverrideMode": entity_override_mode "/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1SessionEntityType/name": name +"/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1SmartMessagingEntry": google_cloud_dialogflow_v2beta1_smart_messaging_entry +"/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1SmartMessagingEntry/messageInfo": message_info +"/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1SmartMessagingEntry/name": name +"/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1SmartMessagingEntry/rawText": raw_text +"/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1SmartMessagingEntry/state": state +"/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1SmartMessagingEntryInfo": google_cloud_dialogflow_v2beta1_smart_messaging_entry_info +"/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1SmartMessagingEntryInfo/creationMethod": creation_method +"/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1SmartMessagingEntryInfo/occurrenceCount": occurrence_count "/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1WebhookRequest": google_cloud_dialogflow_v2beta1_webhook_request "/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1WebhookRequest/alternativeQueryResults": alternative_query_results "/dialogflow:v3beta1/GoogleCloudDialogflowV2beta1WebhookRequest/alternativeQueryResults/alternative_query_result": alternative_query_result diff --git a/generated/google/apis/apigateway_v1alpha1.rb b/generated/google/apis/apigateway_v1alpha1.rb deleted file mode 100644 index 4fe41902b..000000000 --- a/generated/google/apis/apigateway_v1alpha1.rb +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'google/apis/apigateway_v1alpha1/service.rb' -require 'google/apis/apigateway_v1alpha1/classes.rb' -require 'google/apis/apigateway_v1alpha1/representations.rb' - -module Google - module Apis - # API Gateway API - # - # - # - # @see https://cloud.google.com/api-gateway/docs - module ApigatewayV1alpha1 - VERSION = 'V1alpha1' - REVISION = '20200901' - - # View and manage your data across Google Cloud Platform services - AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' - end - end -end diff --git a/generated/google/apis/apigateway_v1alpha1/classes.rb b/generated/google/apis/apigateway_v1alpha1/classes.rb deleted file mode 100644 index cef673cef..000000000 --- a/generated/google/apis/apigateway_v1alpha1/classes.rb +++ /dev/null @@ -1,633 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'date' -require 'google/apis/core/base_service' -require 'google/apis/core/json_representation' -require 'google/apis/core/hashable' -require 'google/apis/errors' - -module Google - module Apis - module ApigatewayV1alpha1 - - # Specifies the audit configuration for a service. The configuration determines - # which permission types are logged, and what identities, if any, are exempted - # from logging. An AuditConfig must have one or more AuditLogConfigs. If there - # are AuditConfigs for both `allServices` and a specific service, the union of - # the two AuditConfigs is used for that service: the log_types specified in each - # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are - # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` " - # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", " - # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `, - # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com", - # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE" - # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice, - # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also - # exempts jose@example.com from DATA_READ logging, and aliya@example.com from - # DATA_WRITE logging. - class ApigatewayAuditConfig - include Google::Apis::Core::Hashable - - # The configuration for logging of each type of permission. - # Corresponds to the JSON property `auditLogConfigs` - # @return [Array] - attr_accessor :audit_log_configs - - # Specifies a service that will be enabled for audit logging. For example, ` - # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special - # value that covers all services. - # Corresponds to the JSON property `service` - # @return [String] - attr_accessor :service - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs) - @service = args[:service] if args.key?(:service) - end - end - - # Provides the configuration for logging a type of permissions. Example: ` " - # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user: - # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables ' - # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from - # DATA_READ logging. - class ApigatewayAuditLogConfig - include Google::Apis::Core::Hashable - - # Specifies the identities that do not cause logging for this type of permission. - # Follows the same format of Binding.members. - # Corresponds to the JSON property `exemptedMembers` - # @return [Array] - attr_accessor :exempted_members - - # The log type that this config enables. - # Corresponds to the JSON property `logType` - # @return [String] - attr_accessor :log_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @exempted_members = args[:exempted_members] if args.key?(:exempted_members) - @log_type = args[:log_type] if args.key?(:log_type) - end - end - - # Associates `members` with a `role`. - class ApigatewayBinding - include Google::Apis::Core::Hashable - - # Represents a textual expression in the Common Expression Language (CEL) syntax. - # CEL is a C-like expression language. The syntax and semantics of CEL are - # documented at https://github.com/google/cel-spec. Example (Comparison): title: - # "Summary size limit" description: "Determines if a summary is less than 100 - # chars" expression: "document.summary.size() < 100" Example (Equality): title: " - # Requestor is owner" description: "Determines if requestor is the document - # owner" expression: "document.owner == request.auth.claims.email" Example ( - # Logic): title: "Public documents" description: "Determine whether the document - # should be publicly visible" expression: "document.type != 'private' && - # document.type != 'internal'" Example (Data Manipulation): title: "Notification - # string" description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" The - # exact variables and functions that may be referenced within an expression are - # determined by the service that evaluates it. See the service documentation for - # additional information. - # Corresponds to the JSON property `condition` - # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayExpr] - attr_accessor :condition - - # Specifies the identities requesting access for a Cloud Platform resource. ` - # members` can have the following values: * `allUsers`: A special identifier - # that represents anyone who is on the internet; with or without a Google - # account. * `allAuthenticatedUsers`: A special identifier that represents - # anyone who is authenticated with a Google account or a service account. * ` - # user:`emailid``: An email address that represents a specific Google account. - # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email - # address that represents a service account. For example, `my-other-app@appspot. - # gserviceaccount.com`. * `group:`emailid``: An email address that represents a - # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid= - # `uniqueid``: An email address (plus unique identifier) representing a user - # that has been recently deleted. For example, `alice@example.com?uid= - # 123456789012345678901`. If the user is recovered, this value reverts to `user:` - # emailid`` and the recovered user retains the role in the binding. * `deleted: - # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a service account that has been recently deleted. For - # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to `serviceAccount:` - # emailid`` and the undeleted service account retains the role in the binding. * - # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently deleted. For - # example, `admins@example.com?uid=123456789012345678901`. If the group is - # recovered, this value reverts to `group:`emailid`` and the recovered group - # retains the role in the binding. * `domain:`domain``: The G Suite domain ( - # primary) that represents all the users of that domain. For example, `google. - # com` or `example.com`. - # Corresponds to the JSON property `members` - # @return [Array] - attr_accessor :members - - # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor` - # , or `roles/owner`. - # Corresponds to the JSON property `role` - # @return [String] - attr_accessor :role - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @condition = args[:condition] if args.key?(:condition) - @members = args[:members] if args.key?(:members) - @role = args[:role] if args.key?(:role) - end - end - - # The request message for Operations.CancelOperation. - class ApigatewayCancelOperationRequest - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - - # Represents a textual expression in the Common Expression Language (CEL) syntax. - # CEL is a C-like expression language. The syntax and semantics of CEL are - # documented at https://github.com/google/cel-spec. Example (Comparison): title: - # "Summary size limit" description: "Determines if a summary is less than 100 - # chars" expression: "document.summary.size() < 100" Example (Equality): title: " - # Requestor is owner" description: "Determines if requestor is the document - # owner" expression: "document.owner == request.auth.claims.email" Example ( - # Logic): title: "Public documents" description: "Determine whether the document - # should be publicly visible" expression: "document.type != 'private' && - # document.type != 'internal'" Example (Data Manipulation): title: "Notification - # string" description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" The - # exact variables and functions that may be referenced within an expression are - # determined by the service that evaluates it. See the service documentation for - # additional information. - class ApigatewayExpr - include Google::Apis::Core::Hashable - - # Optional. Description of the expression. This is a longer text which describes - # the expression, e.g. when hovered over it in a UI. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Textual representation of an expression in Common Expression Language syntax. - # Corresponds to the JSON property `expression` - # @return [String] - attr_accessor :expression - - # Optional. String indicating the location of the expression for error reporting, - # e.g. a file name and a position in the file. - # Corresponds to the JSON property `location` - # @return [String] - attr_accessor :location - - # Optional. Title for the expression, i.e. a short string describing its purpose. - # This can be used e.g. in UIs which allow to enter the expression. - # Corresponds to the JSON property `title` - # @return [String] - attr_accessor :title - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @description = args[:description] if args.key?(:description) - @expression = args[:expression] if args.key?(:expression) - @location = args[:location] if args.key?(:location) - @title = args[:title] if args.key?(:title) - end - end - - # The response message for Locations.ListLocations. - class ApigatewayListLocationsResponse - include Google::Apis::Core::Hashable - - # A list of locations that matches the specified filter in the request. - # Corresponds to the JSON property `locations` - # @return [Array] - attr_accessor :locations - - # The standard List next-page token. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @locations = args[:locations] if args.key?(:locations) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # The response message for Operations.ListOperations. - class ApigatewayListOperationsResponse - include Google::Apis::Core::Hashable - - # The standard List next-page token. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # A list of operations that matches the specified filter in the request. - # Corresponds to the JSON property `operations` - # @return [Array] - attr_accessor :operations - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @operations = args[:operations] if args.key?(:operations) - end - end - - # A resource that represents Google Cloud Platform location. - class ApigatewayLocation - include Google::Apis::Core::Hashable - - # The friendly name for this location, typically a nearby city name. For example, - # "Tokyo". - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # Cross-service attributes for the location. For example `"cloud.googleapis.com/ - # region": "us-east1"` - # Corresponds to the JSON property `labels` - # @return [Hash] - attr_accessor :labels - - # The canonical id for this location. For example: `"us-east1"`. - # Corresponds to the JSON property `locationId` - # @return [String] - attr_accessor :location_id - - # Service-specific metadata. For example the available capacity at the given - # location. - # Corresponds to the JSON property `metadata` - # @return [Hash] - attr_accessor :metadata - - # Resource name for the location, which may vary between implementations. For - # example: `"projects/example-project/locations/us-east1"` - # 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) - @display_name = args[:display_name] if args.key?(:display_name) - @labels = args[:labels] if args.key?(:labels) - @location_id = args[:location_id] if args.key?(:location_id) - @metadata = args[:metadata] if args.key?(:metadata) - @name = args[:name] if args.key?(:name) - end - end - - # This resource represents a long-running operation that is the result of a - # network API call. - class ApigatewayOperation - include Google::Apis::Core::Hashable - - # If the value is `false`, it means the operation is still in progress. If `true` - # , the operation is completed, and either `error` or `response` is available. - # Corresponds to the JSON property `done` - # @return [Boolean] - attr_accessor :done - alias_method :done?, :done - - # The `Status` type defines a logical error model that is suitable for different - # programming environments, including REST APIs and RPC APIs. It is used by [ - # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of - # data: error code, error message, and error details. You can find out more - # about this error model and how to work with it in the [API Design Guide](https: - # //cloud.google.com/apis/design/errors). - # Corresponds to the JSON property `error` - # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayStatus] - attr_accessor :error - - # Service-specific metadata associated with the operation. It typically contains - # progress information and common metadata such as create time. Some services - # might not provide such metadata. Any method that returns a long-running - # operation should document the metadata type, if any. - # Corresponds to the JSON property `metadata` - # @return [Hash] - attr_accessor :metadata - - # The server-assigned name, which is only unique within the same service that - # originally returns it. If you use the default HTTP mapping, the `name` should - # be a resource name ending with `operations/`unique_id``. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The normal response of the operation in case of success. If the original - # method returns no data on success, such as `Delete`, the response is `google. - # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, - # the response should be the resource. For other methods, the response should - # have the type `XxxResponse`, where `Xxx` is the original method name. For - # example, if the original method name is `TakeSnapshot()`, the inferred - # response type is `TakeSnapshotResponse`. - # Corresponds to the JSON property `response` - # @return [Hash] - attr_accessor :response - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @done = args[:done] if args.key?(:done) - @error = args[:error] if args.key?(:error) - @metadata = args[:metadata] if args.key?(:metadata) - @name = args[:name] if args.key?(:name) - @response = args[:response] if args.key?(:response) - end - end - - # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud 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; each `role` can be an IAM predefined - # role or a user-created custom role. For some types of Google Cloud resources, - # a `binding` can also specify a `condition`, which is a logical expression that - # allows access to a resource only if the expression evaluates to `true`. A - # condition can add constraints based on attributes of the request, the resource, - # or both. To learn which resources support conditions in their IAM policies, - # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ - # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ - # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " - # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ - # appspot.gserviceaccount.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')", ` - # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - - # members: - user:mike@example.com - group:admins@example.com - domain:google. - # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ - # resourcemanager.organizationAdmin - members: - 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') - etag: BwWWja0YfJA= - version: 3 For a - # description of IAM and its features, see the [IAM documentation](https://cloud. - # google.com/iam/docs/). - class ApigatewayPolicy - include Google::Apis::Core::Hashable - - # Specifies cloud audit logging configuration for this policy. - # Corresponds to the JSON property `auditConfigs` - # @return [Array] - attr_accessor :audit_configs - - # Associates a list of `members` to a `role`. Optionally, may specify a ` - # condition` that determines how and when the `bindings` are applied. Each of - # the `bindings` must contain at least one member. - # Corresponds to the JSON property `bindings` - # @return [Array] - attr_accessor :bindings - - # `etag` is used for optimistic concurrency control as a way to help prevent - # simultaneous updates of a policy from overwriting each other. It is strongly - # suggested that systems make use of the `etag` in the read-modify-write cycle - # to perform policy updates in order to avoid race conditions: An `etag` is - # returned 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. **Important:** If you use IAM - # Conditions, you must include the `etag` field whenever you call `setIamPolicy`. - # If you omit this field, then IAM allows you to overwrite a version `3` policy - # with a version `1` policy, and all of the conditions in the version `3` policy - # are lost. - # 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 that specify an invalid value are rejected. Any operation that - # affects conditional role bindings must specify version `3`. This requirement - # applies to the following operations: * Getting a policy that includes a - # conditional role binding * Adding a conditional role binding to a policy * - # Changing a conditional role binding in a policy * Removing any role binding, - # with or without a condition, from a policy that includes conditions ** - # Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you - # to overwrite a version `3` policy with a version `1` policy, and all of the - # conditions in the version `3` policy are lost. If a policy does not include - # any conditions, operations on that policy may specify any valid version or - # leave the field unset. To learn which resources support conditions in their - # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/ - # conditions/resource-policies). - # Corresponds to the JSON property `version` - # @return [Fixnum] - attr_accessor :version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @audit_configs = args[:audit_configs] if args.key?(:audit_configs) - @bindings = args[:bindings] if args.key?(:bindings) - @etag = args[:etag] if args.key?(:etag) - @version = args[:version] if args.key?(:version) - end - end - - # Request message for `SetIamPolicy` method. - class ApigatewaySetIamPolicyRequest - include Google::Apis::Core::Hashable - - # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud 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; each `role` can be an IAM predefined - # role or a user-created custom role. For some types of Google Cloud resources, - # a `binding` can also specify a `condition`, which is a logical expression that - # allows access to a resource only if the expression evaluates to `true`. A - # condition can add constraints based on attributes of the request, the resource, - # or both. To learn which resources support conditions in their IAM policies, - # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ - # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ - # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " - # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ - # appspot.gserviceaccount.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')", ` - # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - - # members: - user:mike@example.com - group:admins@example.com - domain:google. - # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ - # resourcemanager.organizationAdmin - members: - 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') - etag: BwWWja0YfJA= - version: 3 For a - # description of IAM and its features, see the [IAM documentation](https://cloud. - # google.com/iam/docs/). - # Corresponds to the JSON property `policy` - # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy] - attr_accessor :policy - - # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the following - # default mask is used: `paths: "bindings, etag"` - # Corresponds to the JSON property `updateMask` - # @return [String] - attr_accessor :update_mask - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @policy = args[:policy] if args.key?(:policy) - @update_mask = args[:update_mask] if args.key?(:update_mask) - end - end - - # The `Status` type defines a logical error model that is suitable for different - # programming environments, including REST APIs and RPC APIs. It is used by [ - # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of - # data: error code, error message, and error details. You can find out more - # about this error model and how to work with it in the [API Design Guide](https: - # //cloud.google.com/apis/design/errors). - class ApigatewayStatus - include Google::Apis::Core::Hashable - - # The status code, which should be an enum value of google.rpc.Code. - # Corresponds to the JSON property `code` - # @return [Fixnum] - attr_accessor :code - - # A list of messages that carry the error details. There is a common set of - # message types for APIs to use. - # Corresponds to the JSON property `details` - # @return [Array>] - attr_accessor :details - - # A developer-facing error message, which should be in English. Any user-facing - # error message should be localized and sent in the google.rpc.Status.details - # field, or localized by the client. - # Corresponds to the JSON property `message` - # @return [String] - attr_accessor :message - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @code = args[:code] if args.key?(:code) - @details = args[:details] if args.key?(:details) - @message = args[:message] if args.key?(:message) - end - end - - # Request message for `TestIamPermissions` method. - class ApigatewayTestIamPermissionsRequest - include Google::Apis::Core::Hashable - - # The set of permissions to check for the `resource`. Permissions with wildcards - # (such as '*' or 'storage.*') are not allowed. For more information see [IAM - # Overview](https://cloud.google.com/iam/docs/overview#permissions). - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @permissions = args[:permissions] if args.key?(:permissions) - end - end - - # Response message for `TestIamPermissions` method. - class ApigatewayTestIamPermissionsResponse - include Google::Apis::Core::Hashable - - # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @permissions = args[:permissions] if args.key?(:permissions) - end - end - - # A generic empty message that you can re-use to avoid defining duplicated empty - # messages in your APIs. A typical example is to use it as the request or the - # response type of an API method. For instance: service Foo ` rpc Bar(google. - # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for - # `Empty` is empty JSON object ````. - class Empty - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - end - end -end diff --git a/generated/google/apis/apigateway_v1alpha1/representations.rb b/generated/google/apis/apigateway_v1alpha1/representations.rb deleted file mode 100644 index 5b03c1491..000000000 --- a/generated/google/apis/apigateway_v1alpha1/representations.rb +++ /dev/null @@ -1,250 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'date' -require 'google/apis/core/base_service' -require 'google/apis/core/json_representation' -require 'google/apis/core/hashable' -require 'google/apis/errors' - -module Google - module Apis - module ApigatewayV1alpha1 - - class ApigatewayAuditConfig - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewayAuditLogConfig - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewayBinding - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewayCancelOperationRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewayExpr - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewayListLocationsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewayListOperationsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewayLocation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewayOperation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewayPolicy - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewaySetIamPolicyRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewayStatus - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewayTestIamPermissionsRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewayTestIamPermissionsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Empty - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewayAuditConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::ApigatewayV1alpha1::ApigatewayAuditLogConfig, decorator: Google::Apis::ApigatewayV1alpha1::ApigatewayAuditLogConfig::Representation - - property :service, as: 'service' - end - end - - class ApigatewayAuditLogConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :exempted_members, as: 'exemptedMembers' - property :log_type, as: 'logType' - end - end - - class ApigatewayBinding - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :condition, as: 'condition', class: Google::Apis::ApigatewayV1alpha1::ApigatewayExpr, decorator: Google::Apis::ApigatewayV1alpha1::ApigatewayExpr::Representation - - collection :members, as: 'members' - property :role, as: 'role' - end - end - - class ApigatewayCancelOperationRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - - class ApigatewayExpr - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' - property :expression, as: 'expression' - property :location, as: 'location' - property :title, as: 'title' - end - end - - class ApigatewayListLocationsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :locations, as: 'locations', class: Google::Apis::ApigatewayV1alpha1::ApigatewayLocation, decorator: Google::Apis::ApigatewayV1alpha1::ApigatewayLocation::Representation - - property :next_page_token, as: 'nextPageToken' - end - end - - class ApigatewayListOperationsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :operations, as: 'operations', class: Google::Apis::ApigatewayV1alpha1::ApigatewayOperation, decorator: Google::Apis::ApigatewayV1alpha1::ApigatewayOperation::Representation - - end - end - - class ApigatewayLocation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :display_name, as: 'displayName' - hash :labels, as: 'labels' - property :location_id, as: 'locationId' - hash :metadata, as: 'metadata' - property :name, as: 'name' - end - end - - class ApigatewayOperation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :done, as: 'done' - property :error, as: 'error', class: Google::Apis::ApigatewayV1alpha1::ApigatewayStatus, decorator: Google::Apis::ApigatewayV1alpha1::ApigatewayStatus::Representation - - hash :metadata, as: 'metadata' - property :name, as: 'name' - hash :response, as: 'response' - end - end - - class ApigatewayPolicy - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :audit_configs, as: 'auditConfigs', class: Google::Apis::ApigatewayV1alpha1::ApigatewayAuditConfig, decorator: Google::Apis::ApigatewayV1alpha1::ApigatewayAuditConfig::Representation - - collection :bindings, as: 'bindings', class: Google::Apis::ApigatewayV1alpha1::ApigatewayBinding, decorator: Google::Apis::ApigatewayV1alpha1::ApigatewayBinding::Representation - - property :etag, :base64 => true, as: 'etag' - property :version, as: 'version' - end - end - - class ApigatewaySetIamPolicyRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :policy, as: 'policy', class: Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy, decorator: Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy::Representation - - property :update_mask, as: 'updateMask' - end - end - - class ApigatewayStatus - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - collection :details, as: 'details' - property :message, as: 'message' - end - end - - class ApigatewayTestIamPermissionsRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :permissions, as: 'permissions' - end - end - - class ApigatewayTestIamPermissionsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :permissions, as: 'permissions' - end - end - - class Empty - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - end - end -end diff --git a/generated/google/apis/apigateway_v1alpha1/service.rb b/generated/google/apis/apigateway_v1alpha1/service.rb deleted file mode 100644 index b557a855a..000000000 --- a/generated/google/apis/apigateway_v1alpha1/service.rb +++ /dev/null @@ -1,623 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'google/apis/core/base_service' -require 'google/apis/core/json_representation' -require 'google/apis/core/hashable' -require 'google/apis/errors' - -module Google - module Apis - module ApigatewayV1alpha1 - # API Gateway API - # - # - # - # @example - # require 'google/apis/apigateway_v1alpha1' - # - # Apigateway = Google::Apis::ApigatewayV1alpha1 # Alias the module - # service = Apigateway::ApigatewayService.new - # - # @see https://cloud.google.com/api-gateway/docs - class ApigatewayService < Google::Apis::Core::BaseService - # @return [String] - # API key. Your API key identifies your project and provides you with API access, - # quota, and reports. Required unless you provide an OAuth 2.0 token. - attr_accessor :key - - # @return [String] - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - attr_accessor :quota_user - - def initialize - super('https://apigateway.googleapis.com/', '') - @batch_path = 'batch' - end - - # Gets information about a location. - # @param [String] name - # Resource name for the location. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha1::ApigatewayLocation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayLocation] - # - # @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_project_location(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1alpha1/{+name}', options) - command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayLocation::Representation - command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayLocation - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Lists information about the supported locations for this service. - # @param [String] name - # The resource that owns the locations collection, if applicable. - # @param [String] filter - # The standard list filter. - # @param [Fixnum] page_size - # The standard list page size. - # @param [String] page_token - # The standard list page token. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha1::ApigatewayListLocationsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayListLocationsResponse] - # - # @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_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1alpha1/{+name}/locations', options) - command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayListLocationsResponse::Representation - command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayListLocationsResponse - command.params['name'] = name unless name.nil? - command.query['filter'] = filter unless filter.nil? - command.query['pageSize'] = page_size unless page_size.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? - execute_or_queue_command(command, &block) - end - - # Gets the access control policy for a resource. Returns an empty policy if the - # resource exists and does not have a policy set. - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. See the - # operation documentation for the appropriate value for this field. - # @param [Fixnum] options_requested_policy_version - # Optional. The policy format version to be returned. Valid values are 0, 1, and - # 3. Requests specifying an invalid value will be rejected. Requests for - # policies with any conditional bindings must specify version 3. Policies - # without any conditional bindings may specify any valid value or leave the - # field unset. To learn which resources support conditions in their IAM policies, - # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ - # resource-policies). - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy] - # - # @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_project_location_api_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1alpha1/{+resource}:getIamPolicy', options) - command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy::Representation - command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy - command.params['resource'] = resource unless resource.nil? - command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Sets the access control policy on the specified resource. Replaces any - # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` - # PERMISSION_DENIED` errors. - # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. See the - # operation documentation for the appropriate value for this field. - # @param [Google::Apis::ApigatewayV1alpha1::ApigatewaySetIamPolicyRequest] apigateway_set_iam_policy_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy] - # - # @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 set_project_location_api_iam_policy(resource, apigateway_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1alpha1/{+resource}:setIamPolicy', options) - command.request_representation = Google::Apis::ApigatewayV1alpha1::ApigatewaySetIamPolicyRequest::Representation - command.request_object = apigateway_set_iam_policy_request_object - command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy::Representation - command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Returns permissions that a caller has on the specified resource. If the - # resource does not exist, this will return an empty set of permissions, not a ` - # NOT_FOUND` error. Note: This operation is designed to be used for building - # permission-aware UIs and command-line tools, not for authorization checking. - # This operation may "fail open" without warning. - # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. See the - # operation documentation for the appropriate value for this field. - # @param [Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsRequest] apigateway_test_iam_permissions_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse] - # - # @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 test_project_location_api_iam_permissions(resource, apigateway_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1alpha1/{+resource}:testIamPermissions', options) - command.request_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsRequest::Representation - command.request_object = apigateway_test_iam_permissions_request_object - command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse::Representation - command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Gets the access control policy for a resource. Returns an empty policy if the - # resource exists and does not have a policy set. - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. See the - # operation documentation for the appropriate value for this field. - # @param [Fixnum] options_requested_policy_version - # Optional. The policy format version to be returned. Valid values are 0, 1, and - # 3. Requests specifying an invalid value will be rejected. Requests for - # policies with any conditional bindings must specify version 3. Policies - # without any conditional bindings may specify any valid value or leave the - # field unset. To learn which resources support conditions in their IAM policies, - # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ - # resource-policies). - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy] - # - # @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_project_location_api_config_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1alpha1/{+resource}:getIamPolicy', options) - command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy::Representation - command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy - command.params['resource'] = resource unless resource.nil? - command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Sets the access control policy on the specified resource. Replaces any - # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` - # PERMISSION_DENIED` errors. - # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. See the - # operation documentation for the appropriate value for this field. - # @param [Google::Apis::ApigatewayV1alpha1::ApigatewaySetIamPolicyRequest] apigateway_set_iam_policy_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy] - # - # @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 set_project_location_api_config_iam_policy(resource, apigateway_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1alpha1/{+resource}:setIamPolicy', options) - command.request_representation = Google::Apis::ApigatewayV1alpha1::ApigatewaySetIamPolicyRequest::Representation - command.request_object = apigateway_set_iam_policy_request_object - command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy::Representation - command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Returns permissions that a caller has on the specified resource. If the - # resource does not exist, this will return an empty set of permissions, not a ` - # NOT_FOUND` error. Note: This operation is designed to be used for building - # permission-aware UIs and command-line tools, not for authorization checking. - # This operation may "fail open" without warning. - # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. See the - # operation documentation for the appropriate value for this field. - # @param [Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsRequest] apigateway_test_iam_permissions_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse] - # - # @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 test_project_location_api_config_iam_permissions(resource, apigateway_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1alpha1/{+resource}:testIamPermissions', options) - command.request_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsRequest::Representation - command.request_object = apigateway_test_iam_permissions_request_object - command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse::Representation - command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Gets the access control policy for a resource. Returns an empty policy if the - # resource exists and does not have a policy set. - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. See the - # operation documentation for the appropriate value for this field. - # @param [Fixnum] options_requested_policy_version - # Optional. The policy format version to be returned. Valid values are 0, 1, and - # 3. Requests specifying an invalid value will be rejected. Requests for - # policies with any conditional bindings must specify version 3. Policies - # without any conditional bindings may specify any valid value or leave the - # field unset. To learn which resources support conditions in their IAM policies, - # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ - # resource-policies). - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy] - # - # @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_project_location_gateway_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1alpha1/{+resource}:getIamPolicy', options) - command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy::Representation - command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy - command.params['resource'] = resource unless resource.nil? - command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Sets the access control policy on the specified resource. Replaces any - # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` - # PERMISSION_DENIED` errors. - # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. See the - # operation documentation for the appropriate value for this field. - # @param [Google::Apis::ApigatewayV1alpha1::ApigatewaySetIamPolicyRequest] apigateway_set_iam_policy_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy] - # - # @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 set_project_location_gateway_iam_policy(resource, apigateway_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1alpha1/{+resource}:setIamPolicy', options) - command.request_representation = Google::Apis::ApigatewayV1alpha1::ApigatewaySetIamPolicyRequest::Representation - command.request_object = apigateway_set_iam_policy_request_object - command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy::Representation - command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayPolicy - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Returns permissions that a caller has on the specified resource. If the - # resource does not exist, this will return an empty set of permissions, not a ` - # NOT_FOUND` error. Note: This operation is designed to be used for building - # permission-aware UIs and command-line tools, not for authorization checking. - # This operation may "fail open" without warning. - # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. See the - # operation documentation for the appropriate value for this field. - # @param [Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsRequest] apigateway_test_iam_permissions_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse] - # - # @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 test_project_location_gateway_iam_permissions(resource, apigateway_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1alpha1/{+resource}:testIamPermissions', options) - command.request_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsRequest::Representation - command.request_object = apigateway_test_iam_permissions_request_object - command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse::Representation - command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayTestIamPermissionsResponse - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Starts asynchronous cancellation on a long-running operation. The server makes - # a best effort to cancel the operation, but success is not guaranteed. If the - # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. - # Clients can use Operations.GetOperation or other methods to check whether the - # cancellation succeeded or whether the operation completed despite cancellation. - # On successful cancellation, the operation is not deleted; instead, it becomes - # an operation with an Operation.error value with a google.rpc.Status.code of 1, - # corresponding to `Code.CANCELLED`. - # @param [String] name - # The name of the operation resource to be cancelled. - # @param [Google::Apis::ApigatewayV1alpha1::ApigatewayCancelOperationRequest] apigateway_cancel_operation_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha1::Empty] - # - # @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 cancel_project_location_operation(name, apigateway_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1alpha1/{+name}:cancel', options) - command.request_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayCancelOperationRequest::Representation - command.request_object = apigateway_cancel_operation_request_object - command.response_representation = Google::Apis::ApigatewayV1alpha1::Empty::Representation - command.response_class = Google::Apis::ApigatewayV1alpha1::Empty - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Deletes a long-running operation. This method indicates that the client is no - # longer interested in the operation result. It does not cancel the operation. - # If the server doesn't support this method, it returns `google.rpc.Code. - # UNIMPLEMENTED`. - # @param [String] name - # The name of the operation resource to be deleted. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha1::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha1::Empty] - # - # @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 delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1alpha1/{+name}', options) - command.response_representation = Google::Apis::ApigatewayV1alpha1::Empty::Representation - command.response_class = Google::Apis::ApigatewayV1alpha1::Empty - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Gets the latest state of a long-running operation. Clients can use this method - # to poll the operation result at intervals as recommended by the API service. - # @param [String] name - # The name of the operation resource. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha1::ApigatewayOperation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayOperation] - # - # @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_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1alpha1/{+name}', options) - command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayOperation::Representation - command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayOperation - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Lists operations that match the specified filter in the request. If the server - # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` - # binding allows API services to override the binding to use different resource - # name schemes, such as `users/*/operations`. To override the binding, API - # services can add a binding such as `"/v1/`name=users/*`/operations"` to their - # service configuration. For backwards compatibility, the default name includes - # the operations collection id, however overriding users must ensure the name - # binding is the parent resource, without the operations collection id. - # @param [String] name - # The name of the operation's parent resource. - # @param [String] filter - # The standard list filter. - # @param [Fixnum] page_size - # The standard list page size. - # @param [String] page_token - # The standard list page token. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha1::ApigatewayListOperationsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha1::ApigatewayListOperationsResponse] - # - # @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_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1alpha1/{+name}/operations', options) - command.response_representation = Google::Apis::ApigatewayV1alpha1::ApigatewayListOperationsResponse::Representation - command.response_class = Google::Apis::ApigatewayV1alpha1::ApigatewayListOperationsResponse - command.params['name'] = name unless name.nil? - command.query['filter'] = filter unless filter.nil? - command.query['pageSize'] = page_size unless page_size.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? - execute_or_queue_command(command, &block) - end - - protected - - def apply_command_defaults(command) - command.query['key'] = key unless key.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - end - end - end - end -end diff --git a/generated/google/apis/apigateway_v1alpha2.rb b/generated/google/apis/apigateway_v1alpha2.rb deleted file mode 100644 index f0e9894ca..000000000 --- a/generated/google/apis/apigateway_v1alpha2.rb +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'google/apis/apigateway_v1alpha2/service.rb' -require 'google/apis/apigateway_v1alpha2/classes.rb' -require 'google/apis/apigateway_v1alpha2/representations.rb' - -module Google - module Apis - # API Gateway API - # - # - # - # @see https://cloud.google.com/api-gateway/docs - module ApigatewayV1alpha2 - VERSION = 'V1alpha2' - REVISION = '20200915' - - # View and manage your data across Google Cloud Platform services - AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' - end - end -end diff --git a/generated/google/apis/apigateway_v1alpha2/classes.rb b/generated/google/apis/apigateway_v1alpha2/classes.rb deleted file mode 100644 index 1fb3b0154..000000000 --- a/generated/google/apis/apigateway_v1alpha2/classes.rb +++ /dev/null @@ -1,633 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'date' -require 'google/apis/core/base_service' -require 'google/apis/core/json_representation' -require 'google/apis/core/hashable' -require 'google/apis/errors' - -module Google - module Apis - module ApigatewayV1alpha2 - - # Specifies the audit configuration for a service. The configuration determines - # which permission types are logged, and what identities, if any, are exempted - # from logging. An AuditConfig must have one or more AuditLogConfigs. If there - # are AuditConfigs for both `allServices` and a specific service, the union of - # the two AuditConfigs is used for that service: the log_types specified in each - # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are - # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` " - # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", " - # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `, - # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com", - # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE" - # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice, - # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also - # exempts jose@example.com from DATA_READ logging, and aliya@example.com from - # DATA_WRITE logging. - class ApigatewayAuditConfig - include Google::Apis::Core::Hashable - - # The configuration for logging of each type of permission. - # Corresponds to the JSON property `auditLogConfigs` - # @return [Array] - attr_accessor :audit_log_configs - - # Specifies a service that will be enabled for audit logging. For example, ` - # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special - # value that covers all services. - # Corresponds to the JSON property `service` - # @return [String] - attr_accessor :service - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs) - @service = args[:service] if args.key?(:service) - end - end - - # Provides the configuration for logging a type of permissions. Example: ` " - # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user: - # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables ' - # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from - # DATA_READ logging. - class ApigatewayAuditLogConfig - include Google::Apis::Core::Hashable - - # Specifies the identities that do not cause logging for this type of permission. - # Follows the same format of Binding.members. - # Corresponds to the JSON property `exemptedMembers` - # @return [Array] - attr_accessor :exempted_members - - # The log type that this config enables. - # Corresponds to the JSON property `logType` - # @return [String] - attr_accessor :log_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @exempted_members = args[:exempted_members] if args.key?(:exempted_members) - @log_type = args[:log_type] if args.key?(:log_type) - end - end - - # Associates `members` with a `role`. - class ApigatewayBinding - include Google::Apis::Core::Hashable - - # Represents a textual expression in the Common Expression Language (CEL) syntax. - # CEL is a C-like expression language. The syntax and semantics of CEL are - # documented at https://github.com/google/cel-spec. Example (Comparison): title: - # "Summary size limit" description: "Determines if a summary is less than 100 - # chars" expression: "document.summary.size() < 100" Example (Equality): title: " - # Requestor is owner" description: "Determines if requestor is the document - # owner" expression: "document.owner == request.auth.claims.email" Example ( - # Logic): title: "Public documents" description: "Determine whether the document - # should be publicly visible" expression: "document.type != 'private' && - # document.type != 'internal'" Example (Data Manipulation): title: "Notification - # string" description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" The - # exact variables and functions that may be referenced within an expression are - # determined by the service that evaluates it. See the service documentation for - # additional information. - # Corresponds to the JSON property `condition` - # @return [Google::Apis::ApigatewayV1alpha2::ApigatewayExpr] - attr_accessor :condition - - # Specifies the identities requesting access for a Cloud Platform resource. ` - # members` can have the following values: * `allUsers`: A special identifier - # that represents anyone who is on the internet; with or without a Google - # account. * `allAuthenticatedUsers`: A special identifier that represents - # anyone who is authenticated with a Google account or a service account. * ` - # user:`emailid``: An email address that represents a specific Google account. - # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email - # address that represents a service account. For example, `my-other-app@appspot. - # gserviceaccount.com`. * `group:`emailid``: An email address that represents a - # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid= - # `uniqueid``: An email address (plus unique identifier) representing a user - # that has been recently deleted. For example, `alice@example.com?uid= - # 123456789012345678901`. If the user is recovered, this value reverts to `user:` - # emailid`` and the recovered user retains the role in the binding. * `deleted: - # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a service account that has been recently deleted. For - # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. - # If the service account is undeleted, this value reverts to `serviceAccount:` - # emailid`` and the undeleted service account retains the role in the binding. * - # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a Google group that has been recently deleted. For - # example, `admins@example.com?uid=123456789012345678901`. If the group is - # recovered, this value reverts to `group:`emailid`` and the recovered group - # retains the role in the binding. * `domain:`domain``: The G Suite domain ( - # primary) that represents all the users of that domain. For example, `google. - # com` or `example.com`. - # Corresponds to the JSON property `members` - # @return [Array] - attr_accessor :members - - # Role that is assigned to `members`. For example, `roles/viewer`, `roles/editor` - # , or `roles/owner`. - # Corresponds to the JSON property `role` - # @return [String] - attr_accessor :role - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @condition = args[:condition] if args.key?(:condition) - @members = args[:members] if args.key?(:members) - @role = args[:role] if args.key?(:role) - end - end - - # The request message for Operations.CancelOperation. - class ApigatewayCancelOperationRequest - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - - # Represents a textual expression in the Common Expression Language (CEL) syntax. - # CEL is a C-like expression language. The syntax and semantics of CEL are - # documented at https://github.com/google/cel-spec. Example (Comparison): title: - # "Summary size limit" description: "Determines if a summary is less than 100 - # chars" expression: "document.summary.size() < 100" Example (Equality): title: " - # Requestor is owner" description: "Determines if requestor is the document - # owner" expression: "document.owner == request.auth.claims.email" Example ( - # Logic): title: "Public documents" description: "Determine whether the document - # should be publicly visible" expression: "document.type != 'private' && - # document.type != 'internal'" Example (Data Manipulation): title: "Notification - # string" description: "Create a notification string with a timestamp." - # expression: "'New message received at ' + string(document.create_time)" The - # exact variables and functions that may be referenced within an expression are - # determined by the service that evaluates it. See the service documentation for - # additional information. - class ApigatewayExpr - include Google::Apis::Core::Hashable - - # Optional. Description of the expression. This is a longer text which describes - # the expression, e.g. when hovered over it in a UI. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # Textual representation of an expression in Common Expression Language syntax. - # Corresponds to the JSON property `expression` - # @return [String] - attr_accessor :expression - - # Optional. String indicating the location of the expression for error reporting, - # e.g. a file name and a position in the file. - # Corresponds to the JSON property `location` - # @return [String] - attr_accessor :location - - # Optional. Title for the expression, i.e. a short string describing its purpose. - # This can be used e.g. in UIs which allow to enter the expression. - # Corresponds to the JSON property `title` - # @return [String] - attr_accessor :title - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @description = args[:description] if args.key?(:description) - @expression = args[:expression] if args.key?(:expression) - @location = args[:location] if args.key?(:location) - @title = args[:title] if args.key?(:title) - end - end - - # The response message for Locations.ListLocations. - class ApigatewayListLocationsResponse - include Google::Apis::Core::Hashable - - # A list of locations that matches the specified filter in the request. - # Corresponds to the JSON property `locations` - # @return [Array] - attr_accessor :locations - - # The standard List next-page token. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @locations = args[:locations] if args.key?(:locations) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # The response message for Operations.ListOperations. - class ApigatewayListOperationsResponse - include Google::Apis::Core::Hashable - - # The standard List next-page token. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - # A list of operations that matches the specified filter in the request. - # Corresponds to the JSON property `operations` - # @return [Array] - attr_accessor :operations - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - @operations = args[:operations] if args.key?(:operations) - end - end - - # A resource that represents Google Cloud Platform location. - class ApigatewayLocation - include Google::Apis::Core::Hashable - - # The friendly name for this location, typically a nearby city name. For example, - # "Tokyo". - # Corresponds to the JSON property `displayName` - # @return [String] - attr_accessor :display_name - - # Cross-service attributes for the location. For example `"cloud.googleapis.com/ - # region": "us-east1"` - # Corresponds to the JSON property `labels` - # @return [Hash] - attr_accessor :labels - - # The canonical id for this location. For example: `"us-east1"`. - # Corresponds to the JSON property `locationId` - # @return [String] - attr_accessor :location_id - - # Service-specific metadata. For example the available capacity at the given - # location. - # Corresponds to the JSON property `metadata` - # @return [Hash] - attr_accessor :metadata - - # Resource name for the location, which may vary between implementations. For - # example: `"projects/example-project/locations/us-east1"` - # 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) - @display_name = args[:display_name] if args.key?(:display_name) - @labels = args[:labels] if args.key?(:labels) - @location_id = args[:location_id] if args.key?(:location_id) - @metadata = args[:metadata] if args.key?(:metadata) - @name = args[:name] if args.key?(:name) - end - end - - # This resource represents a long-running operation that is the result of a - # network API call. - class ApigatewayOperation - include Google::Apis::Core::Hashable - - # If the value is `false`, it means the operation is still in progress. If `true` - # , the operation is completed, and either `error` or `response` is available. - # Corresponds to the JSON property `done` - # @return [Boolean] - attr_accessor :done - alias_method :done?, :done - - # The `Status` type defines a logical error model that is suitable for different - # programming environments, including REST APIs and RPC APIs. It is used by [ - # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of - # data: error code, error message, and error details. You can find out more - # about this error model and how to work with it in the [API Design Guide](https: - # //cloud.google.com/apis/design/errors). - # Corresponds to the JSON property `error` - # @return [Google::Apis::ApigatewayV1alpha2::ApigatewayStatus] - attr_accessor :error - - # Service-specific metadata associated with the operation. It typically contains - # progress information and common metadata such as create time. Some services - # might not provide such metadata. Any method that returns a long-running - # operation should document the metadata type, if any. - # Corresponds to the JSON property `metadata` - # @return [Hash] - attr_accessor :metadata - - # The server-assigned name, which is only unique within the same service that - # originally returns it. If you use the default HTTP mapping, the `name` should - # be a resource name ending with `operations/`unique_id``. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The normal response of the operation in case of success. If the original - # method returns no data on success, such as `Delete`, the response is `google. - # protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, - # the response should be the resource. For other methods, the response should - # have the type `XxxResponse`, where `Xxx` is the original method name. For - # example, if the original method name is `TakeSnapshot()`, the inferred - # response type is `TakeSnapshotResponse`. - # Corresponds to the JSON property `response` - # @return [Hash] - attr_accessor :response - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @done = args[:done] if args.key?(:done) - @error = args[:error] if args.key?(:error) - @metadata = args[:metadata] if args.key?(:metadata) - @name = args[:name] if args.key?(:name) - @response = args[:response] if args.key?(:response) - end - end - - # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud 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; each `role` can be an IAM predefined - # role or a user-created custom role. For some types of Google Cloud resources, - # a `binding` can also specify a `condition`, which is a logical expression that - # allows access to a resource only if the expression evaluates to `true`. A - # condition can add constraints based on attributes of the request, the resource, - # or both. To learn which resources support conditions in their IAM policies, - # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ - # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ - # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " - # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ - # appspot.gserviceaccount.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')", ` - # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - - # members: - user:mike@example.com - group:admins@example.com - domain:google. - # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ - # resourcemanager.organizationAdmin - members: - 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') - etag: BwWWja0YfJA= - version: 3 For a - # description of IAM and its features, see the [IAM documentation](https://cloud. - # google.com/iam/docs/). - class ApigatewayPolicy - include Google::Apis::Core::Hashable - - # Specifies cloud audit logging configuration for this policy. - # Corresponds to the JSON property `auditConfigs` - # @return [Array] - attr_accessor :audit_configs - - # Associates a list of `members` to a `role`. Optionally, may specify a ` - # condition` that determines how and when the `bindings` are applied. Each of - # the `bindings` must contain at least one member. - # Corresponds to the JSON property `bindings` - # @return [Array] - attr_accessor :bindings - - # `etag` is used for optimistic concurrency control as a way to help prevent - # simultaneous updates of a policy from overwriting each other. It is strongly - # suggested that systems make use of the `etag` in the read-modify-write cycle - # to perform policy updates in order to avoid race conditions: An `etag` is - # returned 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. **Important:** If you use IAM - # Conditions, you must include the `etag` field whenever you call `setIamPolicy`. - # If you omit this field, then IAM allows you to overwrite a version `3` policy - # with a version `1` policy, and all of the conditions in the version `3` policy - # are lost. - # 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 that specify an invalid value are rejected. Any operation that - # affects conditional role bindings must specify version `3`. This requirement - # applies to the following operations: * Getting a policy that includes a - # conditional role binding * Adding a conditional role binding to a policy * - # Changing a conditional role binding in a policy * Removing any role binding, - # with or without a condition, from a policy that includes conditions ** - # Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you - # to overwrite a version `3` policy with a version `1` policy, and all of the - # conditions in the version `3` policy are lost. If a policy does not include - # any conditions, operations on that policy may specify any valid version or - # leave the field unset. To learn which resources support conditions in their - # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/ - # conditions/resource-policies). - # Corresponds to the JSON property `version` - # @return [Fixnum] - attr_accessor :version - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @audit_configs = args[:audit_configs] if args.key?(:audit_configs) - @bindings = args[:bindings] if args.key?(:bindings) - @etag = args[:etag] if args.key?(:etag) - @version = args[:version] if args.key?(:version) - end - end - - # Request message for `SetIamPolicy` method. - class ApigatewaySetIamPolicyRequest - include Google::Apis::Core::Hashable - - # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud 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; each `role` can be an IAM predefined - # role or a user-created custom role. For some types of Google Cloud resources, - # a `binding` can also specify a `condition`, which is a logical expression that - # allows access to a resource only if the expression evaluates to `true`. A - # condition can add constraints based on attributes of the request, the resource, - # or both. To learn which resources support conditions in their IAM policies, - # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ - # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ - # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " - # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ - # appspot.gserviceaccount.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')", ` - # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - - # members: - user:mike@example.com - group:admins@example.com - domain:google. - # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ - # resourcemanager.organizationAdmin - members: - 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') - etag: BwWWja0YfJA= - version: 3 For a - # description of IAM and its features, see the [IAM documentation](https://cloud. - # google.com/iam/docs/). - # Corresponds to the JSON property `policy` - # @return [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy] - attr_accessor :policy - - # OPTIONAL: A FieldMask specifying which fields of the policy to modify. Only - # the fields in the mask will be modified. If no mask is provided, the following - # default mask is used: `paths: "bindings, etag"` - # Corresponds to the JSON property `updateMask` - # @return [String] - attr_accessor :update_mask - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @policy = args[:policy] if args.key?(:policy) - @update_mask = args[:update_mask] if args.key?(:update_mask) - end - end - - # The `Status` type defines a logical error model that is suitable for different - # programming environments, including REST APIs and RPC APIs. It is used by [ - # gRPC](https://github.com/grpc). Each `Status` message contains three pieces of - # data: error code, error message, and error details. You can find out more - # about this error model and how to work with it in the [API Design Guide](https: - # //cloud.google.com/apis/design/errors). - class ApigatewayStatus - include Google::Apis::Core::Hashable - - # The status code, which should be an enum value of google.rpc.Code. - # Corresponds to the JSON property `code` - # @return [Fixnum] - attr_accessor :code - - # A list of messages that carry the error details. There is a common set of - # message types for APIs to use. - # Corresponds to the JSON property `details` - # @return [Array>] - attr_accessor :details - - # A developer-facing error message, which should be in English. Any user-facing - # error message should be localized and sent in the google.rpc.Status.details - # field, or localized by the client. - # Corresponds to the JSON property `message` - # @return [String] - attr_accessor :message - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @code = args[:code] if args.key?(:code) - @details = args[:details] if args.key?(:details) - @message = args[:message] if args.key?(:message) - end - end - - # Request message for `TestIamPermissions` method. - class ApigatewayTestIamPermissionsRequest - include Google::Apis::Core::Hashable - - # The set of permissions to check for the `resource`. Permissions with wildcards - # (such as '*' or 'storage.*') are not allowed. For more information see [IAM - # Overview](https://cloud.google.com/iam/docs/overview#permissions). - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @permissions = args[:permissions] if args.key?(:permissions) - end - end - - # Response message for `TestIamPermissions` method. - class ApigatewayTestIamPermissionsResponse - include Google::Apis::Core::Hashable - - # A subset of `TestPermissionsRequest.permissions` that the caller is allowed. - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @permissions = args[:permissions] if args.key?(:permissions) - end - end - - # A generic empty message that you can re-use to avoid defining duplicated empty - # messages in your APIs. A typical example is to use it as the request or the - # response type of an API method. For instance: service Foo ` rpc Bar(google. - # protobuf.Empty) returns (google.protobuf.Empty); ` The JSON representation for - # `Empty` is empty JSON object ````. - class Empty - include Google::Apis::Core::Hashable - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - end - end - end - end -end diff --git a/generated/google/apis/apigateway_v1alpha2/representations.rb b/generated/google/apis/apigateway_v1alpha2/representations.rb deleted file mode 100644 index 8c1aef844..000000000 --- a/generated/google/apis/apigateway_v1alpha2/representations.rb +++ /dev/null @@ -1,250 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'date' -require 'google/apis/core/base_service' -require 'google/apis/core/json_representation' -require 'google/apis/core/hashable' -require 'google/apis/errors' - -module Google - module Apis - module ApigatewayV1alpha2 - - class ApigatewayAuditConfig - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewayAuditLogConfig - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewayBinding - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewayCancelOperationRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewayExpr - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewayListLocationsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewayListOperationsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewayLocation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewayOperation - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewayPolicy - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewaySetIamPolicyRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewayStatus - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewayTestIamPermissionsRequest - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewayTestIamPermissionsResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Empty - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ApigatewayAuditConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::ApigatewayV1alpha2::ApigatewayAuditLogConfig, decorator: Google::Apis::ApigatewayV1alpha2::ApigatewayAuditLogConfig::Representation - - property :service, as: 'service' - end - end - - class ApigatewayAuditLogConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :exempted_members, as: 'exemptedMembers' - property :log_type, as: 'logType' - end - end - - class ApigatewayBinding - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :condition, as: 'condition', class: Google::Apis::ApigatewayV1alpha2::ApigatewayExpr, decorator: Google::Apis::ApigatewayV1alpha2::ApigatewayExpr::Representation - - collection :members, as: 'members' - property :role, as: 'role' - end - end - - class ApigatewayCancelOperationRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - - class ApigatewayExpr - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :description, as: 'description' - property :expression, as: 'expression' - property :location, as: 'location' - property :title, as: 'title' - end - end - - class ApigatewayListLocationsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :locations, as: 'locations', class: Google::Apis::ApigatewayV1alpha2::ApigatewayLocation, decorator: Google::Apis::ApigatewayV1alpha2::ApigatewayLocation::Representation - - property :next_page_token, as: 'nextPageToken' - end - end - - class ApigatewayListOperationsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :next_page_token, as: 'nextPageToken' - collection :operations, as: 'operations', class: Google::Apis::ApigatewayV1alpha2::ApigatewayOperation, decorator: Google::Apis::ApigatewayV1alpha2::ApigatewayOperation::Representation - - end - end - - class ApigatewayLocation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :display_name, as: 'displayName' - hash :labels, as: 'labels' - property :location_id, as: 'locationId' - hash :metadata, as: 'metadata' - property :name, as: 'name' - end - end - - class ApigatewayOperation - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :done, as: 'done' - property :error, as: 'error', class: Google::Apis::ApigatewayV1alpha2::ApigatewayStatus, decorator: Google::Apis::ApigatewayV1alpha2::ApigatewayStatus::Representation - - hash :metadata, as: 'metadata' - property :name, as: 'name' - hash :response, as: 'response' - end - end - - class ApigatewayPolicy - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :audit_configs, as: 'auditConfigs', class: Google::Apis::ApigatewayV1alpha2::ApigatewayAuditConfig, decorator: Google::Apis::ApigatewayV1alpha2::ApigatewayAuditConfig::Representation - - collection :bindings, as: 'bindings', class: Google::Apis::ApigatewayV1alpha2::ApigatewayBinding, decorator: Google::Apis::ApigatewayV1alpha2::ApigatewayBinding::Representation - - property :etag, :base64 => true, as: 'etag' - property :version, as: 'version' - end - end - - class ApigatewaySetIamPolicyRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :policy, as: 'policy', class: Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy, decorator: Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy::Representation - - property :update_mask, as: 'updateMask' - end - end - - class ApigatewayStatus - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :code, as: 'code' - collection :details, as: 'details' - property :message, as: 'message' - end - end - - class ApigatewayTestIamPermissionsRequest - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :permissions, as: 'permissions' - end - end - - class ApigatewayTestIamPermissionsResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :permissions, as: 'permissions' - end - end - - class Empty - # @private - class Representation < Google::Apis::Core::JsonRepresentation - end - end - end - end -end diff --git a/generated/google/apis/apigateway_v1alpha2/service.rb b/generated/google/apis/apigateway_v1alpha2/service.rb deleted file mode 100644 index 1f628ac31..000000000 --- a/generated/google/apis/apigateway_v1alpha2/service.rb +++ /dev/null @@ -1,623 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'google/apis/core/base_service' -require 'google/apis/core/json_representation' -require 'google/apis/core/hashable' -require 'google/apis/errors' - -module Google - module Apis - module ApigatewayV1alpha2 - # API Gateway API - # - # - # - # @example - # require 'google/apis/apigateway_v1alpha2' - # - # Apigateway = Google::Apis::ApigatewayV1alpha2 # Alias the module - # service = Apigateway::ApigatewayService.new - # - # @see https://cloud.google.com/api-gateway/docs - class ApigatewayService < Google::Apis::Core::BaseService - # @return [String] - # API key. Your API key identifies your project and provides you with API access, - # quota, and reports. Required unless you provide an OAuth 2.0 token. - attr_accessor :key - - # @return [String] - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - attr_accessor :quota_user - - def initialize - super('https://apigateway.googleapis.com/', '') - @batch_path = 'batch' - end - - # Gets information about a location. - # @param [String] name - # Resource name for the location. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha2::ApigatewayLocation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha2::ApigatewayLocation] - # - # @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_project_location(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1alpha2/{+name}', options) - command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayLocation::Representation - command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayLocation - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Lists information about the supported locations for this service. - # @param [String] name - # The resource that owns the locations collection, if applicable. - # @param [String] filter - # The standard list filter. - # @param [Fixnum] page_size - # The standard list page size. - # @param [String] page_token - # The standard list page token. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha2::ApigatewayListLocationsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha2::ApigatewayListLocationsResponse] - # - # @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_project_locations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1alpha2/{+name}/locations', options) - command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayListLocationsResponse::Representation - command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayListLocationsResponse - command.params['name'] = name unless name.nil? - command.query['filter'] = filter unless filter.nil? - command.query['pageSize'] = page_size unless page_size.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? - execute_or_queue_command(command, &block) - end - - # Gets the access control policy for a resource. Returns an empty policy if the - # resource exists and does not have a policy set. - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. See the - # operation documentation for the appropriate value for this field. - # @param [Fixnum] options_requested_policy_version - # Optional. The policy format version to be returned. Valid values are 0, 1, and - # 3. Requests specifying an invalid value will be rejected. Requests for - # policies with any conditional bindings must specify version 3. Policies - # without any conditional bindings may specify any valid value or leave the - # field unset. To learn which resources support conditions in their IAM policies, - # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ - # resource-policies). - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy] - # - # @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_project_location_api_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1alpha2/{+resource}:getIamPolicy', options) - command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy::Representation - command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy - command.params['resource'] = resource unless resource.nil? - command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Sets the access control policy on the specified resource. Replaces any - # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` - # PERMISSION_DENIED` errors. - # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. See the - # operation documentation for the appropriate value for this field. - # @param [Google::Apis::ApigatewayV1alpha2::ApigatewaySetIamPolicyRequest] apigateway_set_iam_policy_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy] - # - # @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 set_project_location_api_iam_policy(resource, apigateway_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1alpha2/{+resource}:setIamPolicy', options) - command.request_representation = Google::Apis::ApigatewayV1alpha2::ApigatewaySetIamPolicyRequest::Representation - command.request_object = apigateway_set_iam_policy_request_object - command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy::Representation - command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Returns permissions that a caller has on the specified resource. If the - # resource does not exist, this will return an empty set of permissions, not a ` - # NOT_FOUND` error. Note: This operation is designed to be used for building - # permission-aware UIs and command-line tools, not for authorization checking. - # This operation may "fail open" without warning. - # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. See the - # operation documentation for the appropriate value for this field. - # @param [Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsRequest] apigateway_test_iam_permissions_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse] - # - # @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 test_project_location_api_iam_permissions(resource, apigateway_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1alpha2/{+resource}:testIamPermissions', options) - command.request_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsRequest::Representation - command.request_object = apigateway_test_iam_permissions_request_object - command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse::Representation - command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Gets the access control policy for a resource. Returns an empty policy if the - # resource exists and does not have a policy set. - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. See the - # operation documentation for the appropriate value for this field. - # @param [Fixnum] options_requested_policy_version - # Optional. The policy format version to be returned. Valid values are 0, 1, and - # 3. Requests specifying an invalid value will be rejected. Requests for - # policies with any conditional bindings must specify version 3. Policies - # without any conditional bindings may specify any valid value or leave the - # field unset. To learn which resources support conditions in their IAM policies, - # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ - # resource-policies). - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy] - # - # @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_project_location_api_config_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1alpha2/{+resource}:getIamPolicy', options) - command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy::Representation - command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy - command.params['resource'] = resource unless resource.nil? - command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Sets the access control policy on the specified resource. Replaces any - # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` - # PERMISSION_DENIED` errors. - # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. See the - # operation documentation for the appropriate value for this field. - # @param [Google::Apis::ApigatewayV1alpha2::ApigatewaySetIamPolicyRequest] apigateway_set_iam_policy_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy] - # - # @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 set_project_location_api_config_iam_policy(resource, apigateway_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1alpha2/{+resource}:setIamPolicy', options) - command.request_representation = Google::Apis::ApigatewayV1alpha2::ApigatewaySetIamPolicyRequest::Representation - command.request_object = apigateway_set_iam_policy_request_object - command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy::Representation - command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Returns permissions that a caller has on the specified resource. If the - # resource does not exist, this will return an empty set of permissions, not a ` - # NOT_FOUND` error. Note: This operation is designed to be used for building - # permission-aware UIs and command-line tools, not for authorization checking. - # This operation may "fail open" without warning. - # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. See the - # operation documentation for the appropriate value for this field. - # @param [Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsRequest] apigateway_test_iam_permissions_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse] - # - # @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 test_project_location_api_config_iam_permissions(resource, apigateway_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1alpha2/{+resource}:testIamPermissions', options) - command.request_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsRequest::Representation - command.request_object = apigateway_test_iam_permissions_request_object - command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse::Representation - command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Gets the access control policy for a resource. Returns an empty policy if the - # resource exists and does not have a policy set. - # @param [String] resource - # REQUIRED: The resource for which the policy is being requested. See the - # operation documentation for the appropriate value for this field. - # @param [Fixnum] options_requested_policy_version - # Optional. The policy format version to be returned. Valid values are 0, 1, and - # 3. Requests specifying an invalid value will be rejected. Requests for - # policies with any conditional bindings must specify version 3. Policies - # without any conditional bindings may specify any valid value or leave the - # field unset. To learn which resources support conditions in their IAM policies, - # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ - # resource-policies). - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy] - # - # @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_project_location_gateway_iam_policy(resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1alpha2/{+resource}:getIamPolicy', options) - command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy::Representation - command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy - command.params['resource'] = resource unless resource.nil? - command.query['options.requestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Sets the access control policy on the specified resource. Replaces any - # existing policy. Can return `NOT_FOUND`, `INVALID_ARGUMENT`, and ` - # PERMISSION_DENIED` errors. - # @param [String] resource - # REQUIRED: The resource for which the policy is being specified. See the - # operation documentation for the appropriate value for this field. - # @param [Google::Apis::ApigatewayV1alpha2::ApigatewaySetIamPolicyRequest] apigateway_set_iam_policy_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy] - # - # @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 set_project_location_gateway_iam_policy(resource, apigateway_set_iam_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1alpha2/{+resource}:setIamPolicy', options) - command.request_representation = Google::Apis::ApigatewayV1alpha2::ApigatewaySetIamPolicyRequest::Representation - command.request_object = apigateway_set_iam_policy_request_object - command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy::Representation - command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayPolicy - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Returns permissions that a caller has on the specified resource. If the - # resource does not exist, this will return an empty set of permissions, not a ` - # NOT_FOUND` error. Note: This operation is designed to be used for building - # permission-aware UIs and command-line tools, not for authorization checking. - # This operation may "fail open" without warning. - # @param [String] resource - # REQUIRED: The resource for which the policy detail is being requested. See the - # operation documentation for the appropriate value for this field. - # @param [Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsRequest] apigateway_test_iam_permissions_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse] - # - # @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 test_project_location_gateway_iam_permissions(resource, apigateway_test_iam_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1alpha2/{+resource}:testIamPermissions', options) - command.request_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsRequest::Representation - command.request_object = apigateway_test_iam_permissions_request_object - command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse::Representation - command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayTestIamPermissionsResponse - command.params['resource'] = resource unless resource.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Starts asynchronous cancellation on a long-running operation. The server makes - # a best effort to cancel the operation, but success is not guaranteed. If the - # server doesn't support this method, it returns `google.rpc.Code.UNIMPLEMENTED`. - # Clients can use Operations.GetOperation or other methods to check whether the - # cancellation succeeded or whether the operation completed despite cancellation. - # On successful cancellation, the operation is not deleted; instead, it becomes - # an operation with an Operation.error value with a google.rpc.Status.code of 1, - # corresponding to `Code.CANCELLED`. - # @param [String] name - # The name of the operation resource to be cancelled. - # @param [Google::Apis::ApigatewayV1alpha2::ApigatewayCancelOperationRequest] apigateway_cancel_operation_request_object - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha2::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha2::Empty] - # - # @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 cancel_project_location_operation(name, apigateway_cancel_operation_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:post, 'v1alpha2/{+name}:cancel', options) - command.request_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayCancelOperationRequest::Representation - command.request_object = apigateway_cancel_operation_request_object - command.response_representation = Google::Apis::ApigatewayV1alpha2::Empty::Representation - command.response_class = Google::Apis::ApigatewayV1alpha2::Empty - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Deletes a long-running operation. This method indicates that the client is no - # longer interested in the operation result. It does not cancel the operation. - # If the server doesn't support this method, it returns `google.rpc.Code. - # UNIMPLEMENTED`. - # @param [String] name - # The name of the operation resource to be deleted. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha2::Empty] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha2::Empty] - # - # @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 delete_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:delete, 'v1alpha2/{+name}', options) - command.response_representation = Google::Apis::ApigatewayV1alpha2::Empty::Representation - command.response_class = Google::Apis::ApigatewayV1alpha2::Empty - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Gets the latest state of a long-running operation. Clients can use this method - # to poll the operation result at intervals as recommended by the API service. - # @param [String] name - # The name of the operation resource. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha2::ApigatewayOperation] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha2::ApigatewayOperation] - # - # @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_project_location_operation(name, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1alpha2/{+name}', options) - command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayOperation::Representation - command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayOperation - command.params['name'] = name unless name.nil? - command.query['fields'] = fields unless fields.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - execute_or_queue_command(command, &block) - end - - # Lists operations that match the specified filter in the request. If the server - # doesn't support this method, it returns `UNIMPLEMENTED`. NOTE: the `name` - # binding allows API services to override the binding to use different resource - # name schemes, such as `users/*/operations`. To override the binding, API - # services can add a binding such as `"/v1/`name=users/*`/operations"` to their - # service configuration. For backwards compatibility, the default name includes - # the operations collection id, however overriding users must ensure the name - # binding is the parent resource, without the operations collection id. - # @param [String] name - # The name of the operation's parent resource. - # @param [String] filter - # The standard list filter. - # @param [Fixnum] page_size - # The standard list page size. - # @param [String] page_token - # The standard list page token. - # @param [String] fields - # Selector specifying which fields to include in a partial response. - # @param [String] quota_user - # Available to use for quota purposes for server-side applications. Can be any - # arbitrary string assigned to a user, but should not exceed 40 characters. - # @param [Google::Apis::RequestOptions] options - # Request-specific options - # - # @yield [result, err] Result & error if block supplied - # @yieldparam result [Google::Apis::ApigatewayV1alpha2::ApigatewayListOperationsResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::ApigatewayV1alpha2::ApigatewayListOperationsResponse] - # - # @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_project_location_operations(name, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block) - command = make_simple_command(:get, 'v1alpha2/{+name}/operations', options) - command.response_representation = Google::Apis::ApigatewayV1alpha2::ApigatewayListOperationsResponse::Representation - command.response_class = Google::Apis::ApigatewayV1alpha2::ApigatewayListOperationsResponse - command.params['name'] = name unless name.nil? - command.query['filter'] = filter unless filter.nil? - command.query['pageSize'] = page_size unless page_size.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? - execute_or_queue_command(command, &block) - end - - protected - - def apply_command_defaults(command) - command.query['key'] = key unless key.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - end - end - end - end -end diff --git a/generated/google/apis/appsactivity_v1.rb b/generated/google/apis/appsactivity_v1.rb deleted file mode 100644 index a3126a610..000000000 --- a/generated/google/apis/appsactivity_v1.rb +++ /dev/null @@ -1,34 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'google/apis/appsactivity_v1/service.rb' -require 'google/apis/appsactivity_v1/classes.rb' -require 'google/apis/appsactivity_v1/representations.rb' - -module Google - module Apis - # Drive Activity API - # - # Provides a historical view of activity. - # - # @see https://developers.google.com/google-apps/activity/ - module AppsactivityV1 - VERSION = 'V1' - REVISION = '20200128' - - # View the activity history of your Google apps - AUTH_ACTIVITY = 'https://www.googleapis.com/auth/activity' - end - end -end diff --git a/generated/google/apis/appsactivity_v1/classes.rb b/generated/google/apis/appsactivity_v1/classes.rb deleted file mode 100644 index fae4ae4dd..000000000 --- a/generated/google/apis/appsactivity_v1/classes.rb +++ /dev/null @@ -1,415 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'date' -require 'google/apis/core/base_service' -require 'google/apis/core/json_representation' -require 'google/apis/core/hashable' -require 'google/apis/errors' - -module Google - module Apis - module AppsactivityV1 - - # An Activity resource is a combined view of multiple events. An activity has a - # list of individual events and a combined view of the common fields among all - # events. - class Activity - include Google::Apis::Core::Hashable - - # Represents the changes associated with an action taken by a user. - # Corresponds to the JSON property `combinedEvent` - # @return [Google::Apis::AppsactivityV1::Event] - attr_accessor :combined_event - - # A list of all the Events that make up the Activity. - # Corresponds to the JSON property `singleEvents` - # @return [Array] - attr_accessor :single_events - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @combined_event = args[:combined_event] if args.key?(:combined_event) - @single_events = args[:single_events] if args.key?(:single_events) - end - end - - # Represents the changes associated with an action taken by a user. - class Event - include Google::Apis::Core::Hashable - - # Additional event types. Some events may have multiple types when multiple - # actions are part of a single event. For example, creating a document, renaming - # it, and sharing it may be part of a single file-creation event. - # Corresponds to the JSON property `additionalEventTypes` - # @return [Array] - attr_accessor :additional_event_types - - # The time at which the event occurred formatted as Unix time in milliseconds. - # Corresponds to the JSON property `eventTimeMillis` - # @return [Fixnum] - attr_accessor :event_time_millis - - # Whether this event is caused by a user being deleted. - # Corresponds to the JSON property `fromUserDeletion` - # @return [Boolean] - attr_accessor :from_user_deletion - alias_method :from_user_deletion?, :from_user_deletion - - # Contains information about changes in an object's parents as a result of a - # move type event. - # Corresponds to the JSON property `move` - # @return [Google::Apis::AppsactivityV1::Move] - attr_accessor :move - - # Extra information for permissionChange type events, such as the user or group - # the new permission applies to. - # Corresponds to the JSON property `permissionChanges` - # @return [Array] - attr_accessor :permission_changes - - # The main type of event that occurred. - # Corresponds to the JSON property `primaryEventType` - # @return [String] - attr_accessor :primary_event_type - - # Contains information about a renametype event. - # Corresponds to the JSON property `rename` - # @return [Google::Apis::AppsactivityV1::Rename] - attr_accessor :rename - - # Information about the object modified by the event. - # Corresponds to the JSON property `target` - # @return [Google::Apis::AppsactivityV1::Target] - attr_accessor :target - - # A representation of a user. - # Corresponds to the JSON property `user` - # @return [Google::Apis::AppsactivityV1::User] - attr_accessor :user - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @additional_event_types = args[:additional_event_types] if args.key?(:additional_event_types) - @event_time_millis = args[:event_time_millis] if args.key?(:event_time_millis) - @from_user_deletion = args[:from_user_deletion] if args.key?(:from_user_deletion) - @move = args[:move] if args.key?(:move) - @permission_changes = args[:permission_changes] if args.key?(:permission_changes) - @primary_event_type = args[:primary_event_type] if args.key?(:primary_event_type) - @rename = args[:rename] if args.key?(:rename) - @target = args[:target] if args.key?(:target) - @user = args[:user] if args.key?(:user) - end - end - - # The response from the list request. Contains a list of activities and a token - # to retrieve the next page of results. - class ListActivitiesResponse - include Google::Apis::Core::Hashable - - # List of activities. - # Corresponds to the JSON property `activities` - # @return [Array] - attr_accessor :activities - - # Token for the next page of results. - # Corresponds to the JSON property `nextPageToken` - # @return [String] - attr_accessor :next_page_token - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @activities = args[:activities] if args.key?(:activities) - @next_page_token = args[:next_page_token] if args.key?(:next_page_token) - end - end - - # Contains information about changes in an object's parents as a result of a - # move type event. - class Move - include Google::Apis::Core::Hashable - - # The added parent(s). - # Corresponds to the JSON property `addedParents` - # @return [Array] - attr_accessor :added_parents - - # The removed parent(s). - # Corresponds to the JSON property `removedParents` - # @return [Array] - attr_accessor :removed_parents - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @added_parents = args[:added_parents] if args.key?(:added_parents) - @removed_parents = args[:removed_parents] if args.key?(:removed_parents) - end - end - - # Contains information about a parent object. For example, a folder in Drive is - # a parent for all files within it. - class Parent - include Google::Apis::Core::Hashable - - # The parent's ID. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # Whether this is the root folder. - # Corresponds to the JSON property `isRoot` - # @return [Boolean] - attr_accessor :is_root - alias_method :is_root?, :is_root - - # The parent's title. - # Corresponds to the JSON property `title` - # @return [String] - attr_accessor :title - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @id = args[:id] if args.key?(:id) - @is_root = args[:is_root] if args.key?(:is_root) - @title = args[:title] if args.key?(:title) - end - end - - # Contains information about the permissions and type of access allowed with - # regards to a Google Drive object. This is a subset of the fields contained in - # a corresponding Drive Permissions object. - class Permission - include Google::Apis::Core::Hashable - - # The name of the user or group the permission applies to. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The ID for this permission. Corresponds to the Drive API's permission ID - # returned as part of the Drive Permissions resource. - # Corresponds to the JSON property `permissionId` - # @return [String] - attr_accessor :permission_id - - # Indicates the Google Drive permissions role. The role determines a user's - # ability to read, write, or comment on the file. - # Corresponds to the JSON property `role` - # @return [String] - attr_accessor :role - - # Indicates how widely permissions are granted. - # Corresponds to the JSON property `type` - # @return [String] - attr_accessor :type - - # A representation of a user. - # Corresponds to the JSON property `user` - # @return [Google::Apis::AppsactivityV1::User] - attr_accessor :user - - # Whether the permission requires a link to the file. - # Corresponds to the JSON property `withLink` - # @return [Boolean] - attr_accessor :with_link - alias_method :with_link?, :with_link - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @name = args[:name] if args.key?(:name) - @permission_id = args[:permission_id] if args.key?(:permission_id) - @role = args[:role] if args.key?(:role) - @type = args[:type] if args.key?(:type) - @user = args[:user] if args.key?(:user) - @with_link = args[:with_link] if args.key?(:with_link) - end - end - - # Contains information about a Drive object's permissions that changed as a - # result of a permissionChange type event. - class PermissionChange - include Google::Apis::Core::Hashable - - # Lists all Permission objects added. - # Corresponds to the JSON property `addedPermissions` - # @return [Array] - attr_accessor :added_permissions - - # Lists all Permission objects removed. - # Corresponds to the JSON property `removedPermissions` - # @return [Array] - attr_accessor :removed_permissions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @added_permissions = args[:added_permissions] if args.key?(:added_permissions) - @removed_permissions = args[:removed_permissions] if args.key?(:removed_permissions) - end - end - - # Photo information for a user. - class Photo - include Google::Apis::Core::Hashable - - # The URL of the photo. - # Corresponds to the JSON property `url` - # @return [String] - attr_accessor :url - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @url = args[:url] if args.key?(:url) - end - end - - # Contains information about a renametype event. - class Rename - include Google::Apis::Core::Hashable - - # The new title. - # Corresponds to the JSON property `newTitle` - # @return [String] - attr_accessor :new_title - - # The old title. - # Corresponds to the JSON property `oldTitle` - # @return [String] - attr_accessor :old_title - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @new_title = args[:new_title] if args.key?(:new_title) - @old_title = args[:old_title] if args.key?(:old_title) - end - end - - # Information about the object modified by the event. - class Target - include Google::Apis::Core::Hashable - - # The ID of the target. For example, in Google Drive, this is the file or folder - # ID. - # Corresponds to the JSON property `id` - # @return [String] - attr_accessor :id - - # The MIME type of the target. - # Corresponds to the JSON property `mimeType` - # @return [String] - attr_accessor :mime_type - - # The name of the target. For example, in Google Drive, this is the title of the - # file. - # 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) - @id = args[:id] if args.key?(:id) - @mime_type = args[:mime_type] if args.key?(:mime_type) - @name = args[:name] if args.key?(:name) - end - end - - # A representation of a user. - class User - include Google::Apis::Core::Hashable - - # A boolean which indicates whether the specified User was deleted. If true, - # name, photo and permission_id will be omitted. - # Corresponds to the JSON property `isDeleted` - # @return [Boolean] - attr_accessor :is_deleted - alias_method :is_deleted?, :is_deleted - - # Whether the user is the authenticated user. - # Corresponds to the JSON property `isMe` - # @return [Boolean] - attr_accessor :is_me - alias_method :is_me?, :is_me - - # The displayable name of the user. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # The permission ID associated with this user. Equivalent to the Drive API's - # permission ID for this user, returned as part of the Drive Permissions - # resource. - # Corresponds to the JSON property `permissionId` - # @return [String] - attr_accessor :permission_id - - # Photo information for a user. - # Corresponds to the JSON property `photo` - # @return [Google::Apis::AppsactivityV1::Photo] - attr_accessor :photo - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @is_deleted = args[:is_deleted] if args.key?(:is_deleted) - @is_me = args[:is_me] if args.key?(:is_me) - @name = args[:name] if args.key?(:name) - @permission_id = args[:permission_id] if args.key?(:permission_id) - @photo = args[:photo] if args.key?(:photo) - end - end - end - end -end diff --git a/generated/google/apis/appsactivity_v1/representations.rb b/generated/google/apis/appsactivity_v1/representations.rb deleted file mode 100644 index 31ef882e8..000000000 --- a/generated/google/apis/appsactivity_v1/representations.rb +++ /dev/null @@ -1,209 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'date' -require 'google/apis/core/base_service' -require 'google/apis/core/json_representation' -require 'google/apis/core/hashable' -require 'google/apis/errors' - -module Google - module Apis - module AppsactivityV1 - - class Activity - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Event - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class ListActivitiesResponse - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Move - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Parent - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Permission - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class PermissionChange - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Photo - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Rename - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Target - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class User - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class Activity - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :combined_event, as: 'combinedEvent', class: Google::Apis::AppsactivityV1::Event, decorator: Google::Apis::AppsactivityV1::Event::Representation - - collection :single_events, as: 'singleEvents', class: Google::Apis::AppsactivityV1::Event, decorator: Google::Apis::AppsactivityV1::Event::Representation - - end - end - - class Event - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :additional_event_types, as: 'additionalEventTypes' - property :event_time_millis, :numeric_string => true, as: 'eventTimeMillis' - property :from_user_deletion, as: 'fromUserDeletion' - property :move, as: 'move', class: Google::Apis::AppsactivityV1::Move, decorator: Google::Apis::AppsactivityV1::Move::Representation - - collection :permission_changes, as: 'permissionChanges', class: Google::Apis::AppsactivityV1::PermissionChange, decorator: Google::Apis::AppsactivityV1::PermissionChange::Representation - - property :primary_event_type, as: 'primaryEventType' - property :rename, as: 'rename', class: Google::Apis::AppsactivityV1::Rename, decorator: Google::Apis::AppsactivityV1::Rename::Representation - - property :target, as: 'target', class: Google::Apis::AppsactivityV1::Target, decorator: Google::Apis::AppsactivityV1::Target::Representation - - property :user, as: 'user', class: Google::Apis::AppsactivityV1::User, decorator: Google::Apis::AppsactivityV1::User::Representation - - end - end - - class ListActivitiesResponse - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :activities, as: 'activities', class: Google::Apis::AppsactivityV1::Activity, decorator: Google::Apis::AppsactivityV1::Activity::Representation - - property :next_page_token, as: 'nextPageToken' - end - end - - class Move - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :added_parents, as: 'addedParents', class: Google::Apis::AppsactivityV1::Parent, decorator: Google::Apis::AppsactivityV1::Parent::Representation - - collection :removed_parents, as: 'removedParents', class: Google::Apis::AppsactivityV1::Parent, decorator: Google::Apis::AppsactivityV1::Parent::Representation - - end - end - - class Parent - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - property :is_root, as: 'isRoot' - property :title, as: 'title' - end - end - - class Permission - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :permission_id, as: 'permissionId' - property :role, as: 'role' - property :type, as: 'type' - property :user, as: 'user', class: Google::Apis::AppsactivityV1::User, decorator: Google::Apis::AppsactivityV1::User::Representation - - property :with_link, as: 'withLink' - end - end - - class PermissionChange - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :added_permissions, as: 'addedPermissions', class: Google::Apis::AppsactivityV1::Permission, decorator: Google::Apis::AppsactivityV1::Permission::Representation - - collection :removed_permissions, as: 'removedPermissions', class: Google::Apis::AppsactivityV1::Permission, decorator: Google::Apis::AppsactivityV1::Permission::Representation - - end - end - - class Photo - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :url, as: 'url' - end - end - - class Rename - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :new_title, as: 'newTitle' - property :old_title, as: 'oldTitle' - end - end - - class Target - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :id, as: 'id' - property :mime_type, as: 'mimeType' - property :name, as: 'name' - end - end - - class User - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :is_deleted, as: 'isDeleted' - property :is_me, as: 'isMe' - property :name, as: 'name' - property :permission_id, as: 'permissionId' - property :photo, as: 'photo', class: Google::Apis::AppsactivityV1::Photo, decorator: Google::Apis::AppsactivityV1::Photo::Representation - - end - end - end - end -end diff --git a/generated/google/apis/appsactivity_v1/service.rb b/generated/google/apis/appsactivity_v1/service.rb deleted file mode 100644 index 38fce81c2..000000000 --- a/generated/google/apis/appsactivity_v1/service.rb +++ /dev/null @@ -1,126 +0,0 @@ -# Copyright 2015 Google Inc. -# -# Licensed under the Apache License, Version 2.0 (the "License"); -# you may not use this file except in compliance with the License. -# You may obtain a copy of the License at -# -# http://www.apache.org/licenses/LICENSE-2.0 -# -# Unless required by applicable law or agreed to in writing, software -# distributed under the License is distributed on an "AS IS" BASIS, -# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -# See the License for the specific language governing permissions and -# limitations under the License. - -require 'google/apis/core/base_service' -require 'google/apis/core/json_representation' -require 'google/apis/core/hashable' -require 'google/apis/errors' - -module Google - module Apis - module AppsactivityV1 - # Drive Activity API - # - # Provides a historical view of activity. - # - # @example - # require 'google/apis/appsactivity_v1' - # - # Appsactivity = Google::Apis::AppsactivityV1 # Alias the module - # service = Appsactivity::AppsactivityService.new - # - # @see https://developers.google.com/google-apps/activity/ - class AppsactivityService < Google::Apis::Core::BaseService - # @return [String] - # API key. Your API key identifies your project and provides you with API access, - # quota, and reports. Required unless you provide an OAuth 2.0 token. - attr_accessor :key - - # @return [String] - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - attr_accessor :quota_user - - # @return [String] - # Deprecated. Please use quotaUser instead. - attr_accessor :user_ip - - def initialize - super('https://www.googleapis.com/', 'appsactivity/v1/') - @batch_path = 'batch/appsactivity/v1' - end - - # Returns a list of activities visible to the current logged in user. Visible - # activities are determined by the visibility settings of the object that was - # acted on, e.g. Drive files a user can see. An activity is a record of past - # events. Multiple events may be merged if they are similar. A request is scoped - # to activities from a given Google service using the source parameter. - # @param [String] drive_ancestor_id - # Identifies the Drive folder containing the items for which to return - # activities. - # @param [String] drive_file_id - # Identifies the Drive item to return activities for. - # @param [String] grouping_strategy - # Indicates the strategy to use when grouping singleEvents items in the - # associated combinedEvent object. - # @param [Fixnum] page_size - # The maximum number of events to return on a page. The response includes a - # continuation token if there are more events. - # @param [String] page_token - # A token to retrieve a specific page of results. - # @param [String] source - # The Google service from which to return activities. Possible values of source - # are: - # - drive.google.com - # @param [String] user_id - # The ID used for ACL checks (does not filter the resulting event list by the - # assigned value). Use the special value me to indicate the currently - # authenticated user. - # @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::AppsactivityV1::ListActivitiesResponse] parsed result object - # @yieldparam err [StandardError] error object if request failed - # - # @return [Google::Apis::AppsactivityV1::ListActivitiesResponse] - # - # @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_activities(drive_ancestor_id: nil, drive_file_id: nil, grouping_strategy: nil, page_size: nil, page_token: nil, source: nil, user_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, 'activities', options) - command.response_representation = Google::Apis::AppsactivityV1::ListActivitiesResponse::Representation - command.response_class = Google::Apis::AppsactivityV1::ListActivitiesResponse - command.query['drive.ancestorId'] = drive_ancestor_id unless drive_ancestor_id.nil? - command.query['drive.fileId'] = drive_file_id unless drive_file_id.nil? - command.query['groupingStrategy'] = grouping_strategy unless grouping_strategy.nil? - command.query['pageSize'] = page_size unless page_size.nil? - command.query['pageToken'] = page_token unless page_token.nil? - command.query['source'] = source unless source.nil? - command.query['userId'] = user_id unless user_id.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 - - protected - - def apply_command_defaults(command) - command.query['key'] = key unless key.nil? - command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? - end - end - end - end -end diff --git a/generated/google/apis/books_v1.rb b/generated/google/apis/books_v1.rb index 1d1e3e115..49db57771 100644 --- a/generated/google/apis/books_v1.rb +++ b/generated/google/apis/books_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://code.google.com/apis/books/docs/v1/getting_started.html module BooksV1 VERSION = 'V1' - REVISION = '20200717' + REVISION = '20200925' # Manage your books AUTH_BOOKS = 'https://www.googleapis.com/auth/books' diff --git a/generated/google/apis/books_v1/service.rb b/generated/google/apis/books_v1/service.rb index d8147396c..5967fc5a4 100644 --- a/generated/google/apis/books_v1/service.rb +++ b/generated/google/apis/books_v1/service.rb @@ -43,8 +43,8 @@ module Google attr_accessor :quota_user def initialize - super('https://www.googleapis.com/', '') - @batch_path = 'batch/books/v1' + super('https://books.googleapis.com/', '') + @batch_path = 'batch' end # Retrieves metadata for a specific bookshelf for the specified user. diff --git a/generated/google/apis/cloudidentity_v1.rb b/generated/google/apis/cloudidentity_v1.rb index ac1988eca..a405b04ba 100644 --- a/generated/google/apis/cloudidentity_v1.rb +++ b/generated/google/apis/cloudidentity_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/identity/ module CloudidentityV1 VERSION = 'V1' - REVISION = '20200919' + REVISION = '20200927' # See your device details AUTH_CLOUD_IDENTITY_DEVICES_LOOKUP = 'https://www.googleapis.com/auth/cloud-identity.devices.lookup' diff --git a/generated/google/apis/cloudidentity_v1/classes.rb b/generated/google/apis/cloudidentity_v1/classes.rb index cc57d4e4c..6f70d3e76 100644 --- a/generated/google/apis/cloudidentity_v1/classes.rb +++ b/generated/google/apis/cloudidentity_v1/classes.rb @@ -22,22 +22,26 @@ module Google module Apis module CloudidentityV1 - # An EntityKey uniquely identifies an Entity. Namespaces are used to provide - # isolation for IDs. A single ID can be reused across namespaces but the - # combination of a namespace and an ID must be unique. + # A unique identifier for an entity in the Cloud Identity Groups API. An entity + # can represent either a group with an optional `namespace` or a user without a ` + # namespace`. The combination of `id` and `namespace` must be unique; however, + # the same `id` can be used with different `namespace`s. class EntityKey include Google::Apis::Core::Hashable - # The ID of the entity within the given namespace. The ID must be unique within - # its namespace. + # The ID of the entity. For Google-managed entities, the `id` should be the + # email address of an existing group or user. For external-identity-mapped + # entities, the `id` must be a string conforming to the Identity Source's + # requirements. Must be unique within a `namespace`. # Corresponds to the JSON property `id` # @return [String] attr_accessor :id - # Namespaces provide isolation for IDs, so an ID only needs to be unique within - # its namespace. Namespaces are currently only created as part of IdentitySource - # creation from Admin Console. A namespace `"identitysources/`identity_source_id` - # "` is created corresponding to every Identity Source `identity_source_id`. + # The namespace in which the entity exists. If not specified, the `EntityKey` + # represents a Google-managed entity such as a Google user or a Google Group. If + # specified, the `EntityKey` represents an external-identity-mapped group. The + # namespace must correspond to an identity source created in Admin Console and + # must be in the form of `identitysources/`identity_source_id`. # Corresponds to the JSON property `namespace` # @return [String] attr_accessor :namespace @@ -875,58 +879,66 @@ module Google end end - # Resource representing a Group. + # A group within the Cloud Identity Groups API. A `Group` is a collection of + # entities, where each entity is either a user, another group, or a service + # account. class Group include Google::Apis::Core::Hashable - # Output only. The time when the Group was created. Output only. + # Output only. The time when the `Group` was created. # Corresponds to the JSON property `createTime` # @return [String] attr_accessor :create_time - # An extended description to help users determine the purpose of a Group. For - # example, you can include information about who should join the Group, the - # types of messages to send to the Group, links to FAQs about the Group, or - # related Groups. Maximum length is 4,096 characters. + # An extended description to help users determine the purpose of a `Group`. Must + # not be longer than 4,096 characters. # Corresponds to the JSON property `description` # @return [String] attr_accessor :description - # The Group's display name. + # The display name of the `Group`. # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name - # An EntityKey uniquely identifies an Entity. Namespaces are used to provide - # isolation for IDs. A single ID can be reused across namespaces but the - # combination of a namespace and an ID must be unique. + # A unique identifier for an entity in the Cloud Identity Groups API. An entity + # can represent either a group with an optional `namespace` or a user without a ` + # namespace`. The combination of `id` and `namespace` must be unique; however, + # the same `id` can be used with different `namespace`s. # Corresponds to the JSON property `groupKey` # @return [Google::Apis::CloudidentityV1::EntityKey] attr_accessor :group_key - # Required. `Required`. Labels for Group resource. For creating Groups under a - # namespace, set label key to 'labels/system/groups/external' and label value as - # empty. + # Required. One or more label entries that apply to the Group. Currently + # supported labels contain a key with an empty value. Google Groups are the + # default type of group and have a label with a key of `cloudidentity.googleapis. + # com/groups.discussion_forum` and an empty value. Existing Google Groups can + # have an additional label with a key of `cloudidentity.googleapis.com/groups. + # security` and an empty value added to them. **This is an immutable change and + # the security label cannot be removed once added.** Dynamic groups have a label + # with a key of `cloudidentity.googleapis.com/groups.dynamic`. Identity-mapped + # groups for Cloud Search have a label with a key of `system/groups/external` + # and an empty value. Examples: `"cloudidentity.googleapis.com/groups. + # discussion_forum": ""` or `"system/groups/external": ""`. # Corresponds to the JSON property `labels` # @return [Hash] attr_accessor :labels - # Output only. [Resource name](https://cloud.google.com/apis/design/ - # resource_names) of the Group in the format: `groups/`group_id``, where - # group_id is the unique ID assigned to the Group. Must be left blank while - # creating a Group. + # Output only. The [resource name](https://cloud.google.com/apis/design/ + # resource_names) of the `Group`. Shall be of the form `groups/`group_id``. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # Required. Immutable. The entity under which this Group resides in Cloud - # Identity resource hierarchy. Must be set when creating a Group, read-only - # afterwards. Currently allowed types: `identitysources`. + # Required. Immutable. The resource name of the entity under which this `Group` + # resides in the Cloud Identity resource hierarchy. Must be of the form ` + # identitysources/`identity_source_id`` for external- identity-mapped groups or ` + # customers/`customer_id`` for Google Groups. # Corresponds to the JSON property `parent` # @return [String] attr_accessor :parent - # Output only. The time when the Group was last updated. Output only. + # Output only. The time when the `Group` was last updated. # Corresponds to the JSON property `updateTime` # @return [String] attr_accessor :update_time @@ -974,17 +986,17 @@ module Google end end - # + # The response message for MembershipsService.ListMemberships. class ListMembershipsResponse include Google::Apis::Core::Hashable - # List of Memberships. + # The `Membership`s under the specified `parent`. # Corresponds to the JSON property `memberships` # @return [Array] attr_accessor :memberships - # Token to retrieve the next page of results, or empty if there are no more - # results available for listing. + # A continuation token to retrieve the next page of results, or empty if there + # are no more results available. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token @@ -1000,13 +1012,12 @@ module Google end end - # + # The response message for GroupsService.LookupGroupName. class LookupGroupNameResponse include Google::Apis::Core::Hashable - # [Resource name](https://cloud.google.com/apis/design/resource_names) of the - # Group in the format: `groups/`group_id``, where `group_id` is the unique ID - # assigned to the Group. + # The [resource name](https://cloud.google.com/apis/design/resource_names) of + # the looked-up `Group`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1021,14 +1032,13 @@ module Google end end - # + # The response message for MembershipsService.LookupMembershipName. class LookupMembershipNameResponse include Google::Apis::Core::Hashable - # [Resource name](https://cloud.google.com/apis/design/resource_names) of the - # Membership being looked up. Format: `groups/`group_id`/memberships/`member_id`` - # , where `group_id` is the unique ID assigned to the Group to which Membership - # belongs to, and `member_id` is the unique ID assigned to the member. + # The [resource name](https://cloud.google.com/apis/design/resource_names) of + # the looked-up `Membership`. Must be of the form `groups/`group_id`/memberships/ + # `membership_id``. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1043,33 +1053,35 @@ module Google end end - # Resource representing a Membership within a Group + # A membership within the Cloud Identity Groups API. A `Membership` defines a + # relationship between a `Group` and an entity belonging to that `Group`, + # referred to as a "member". class Membership include Google::Apis::Core::Hashable - # Output only. Creation timestamp of the Membership. Output only. + # Output only. The time when the `Membership` was created. # Corresponds to the JSON property `createTime` # @return [String] attr_accessor :create_time - # Output only. [Resource name](https://cloud.google.com/apis/design/ - # resource_names) of the Membership in the format: `groups/`group_id`/ - # memberships/`member_id``, where group_id is the unique ID assigned to the - # Group to which Membership belongs to, and member_id is the unique ID assigned - # to the member Must be left blank while creating a Membership. + # Output only. The [resource name](https://cloud.google.com/apis/design/ + # resource_names) of the `Membership`. Shall be of the form `groups/`group_id`/ + # memberships/`membership_id``. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name - # An EntityKey uniquely identifies an Entity. Namespaces are used to provide - # isolation for IDs. A single ID can be reused across namespaces but the - # combination of a namespace and an ID must be unique. + # A unique identifier for an entity in the Cloud Identity Groups API. An entity + # can represent either a group with an optional `namespace` or a user without a ` + # namespace`. The combination of `id` and `namespace` must be unique; however, + # the same `id` can be used with different `namespace`s. # Corresponds to the JSON property `preferredMemberKey` # @return [Google::Apis::CloudidentityV1::EntityKey] attr_accessor :preferred_member_key - # Roles for a member within the Group. Currently supported MembershipRoles: `" - # MEMBER"`. + # The `MembershipRole`s that apply to the `Membership`. If unspecified, defaults + # to a single `MembershipRole` with `name` `MEMBER`. Must not contain duplicate ` + # MembershipRole`s with the same `name`. # Corresponds to the JSON property `roles` # @return [Array] attr_accessor :roles @@ -1079,7 +1091,7 @@ module Google # @return [String] attr_accessor :type - # Output only. Last updated timestamp of the Membership. Output only. + # Output only. The time when the `Membership` was last updated. # Corresponds to the JSON property `updateTime` # @return [String] attr_accessor :update_time @@ -1099,12 +1111,12 @@ module Google end end - # Resource representing a role within a Membership. + # A membership role within the Cloud Identity Groups API. A `MembershipRole` + # defines the privileges granted to a `Membership`. class MembershipRole include Google::Apis::Core::Hashable - # MembershipRole in string format. Currently supported MembershipRoles: `"MEMBER" - # `. + # The name of the `MembershipRole`. Must be one of `OWNER`, `MANAGER`, `MEMBER`. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1154,7 +1166,9 @@ module Google class ModifyMembershipRolesResponse include Google::Apis::Core::Hashable - # Resource representing a Membership within a Group + # A membership within the Cloud Identity Groups API. A `Membership` defines a + # relationship between a `Group` and an entity belonging to that `Group`, + # referred to as a "member". # Corresponds to the JSON property `membership` # @return [Google::Apis::CloudidentityV1::Membership] attr_accessor :membership @@ -1231,17 +1245,17 @@ module Google end end - # + # The response message for GroupsService.SearchGroups. class SearchGroupsResponse include Google::Apis::Core::Hashable - # List of Groups satisfying the search query. + # The `Group`s that match the search query. # Corresponds to the JSON property `groups` # @return [Array] attr_accessor :groups - # Token to retrieve the next page of results, or empty if there are no more - # results available for specified query. + # A continuation token to retrieve the next page of results, or empty if there + # are no more results available. # Corresponds to the JSON property `nextPageToken` # @return [String] attr_accessor :next_page_token diff --git a/generated/google/apis/cloudidentity_v1/service.rb b/generated/google/apis/cloudidentity_v1/service.rb index b5f5175b5..63908ef16 100644 --- a/generated/google/apis/cloudidentity_v1/service.rb +++ b/generated/google/apis/cloudidentity_v1/service.rb @@ -839,11 +839,11 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a Group. + # Deletes a `Group`. # @param [String] name - # Required. [Resource name](https://cloud.google.com/apis/design/resource_names) - # of the Group in the format: `groups/`group_id``, where `group_id` is the - # unique ID assigned to the Group. + # Required. The [resource name](https://cloud.google.com/apis/design/ + # resource_names) of the `Group` to retrieve. Must be of the form `groups/` + # group_id``. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -871,11 +871,11 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves a Group. + # Retrieves a `Group`. # @param [String] name - # Required. [Resource name](https://cloud.google.com/apis/design/resource_names) - # of the Group in the format: `groups/`group_id``, where `group_id` is the - # unique ID assigned to the Group. + # Required. The [resource name](https://cloud.google.com/apis/design/ + # resource_names) of the `Group` to retrieve. Must be of the form `groups/` + # group_id``. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -903,16 +903,22 @@ module Google execute_or_queue_command(command, &block) end - # Lists groups within a customer or a domain. + # Lists the `Group`s under a customer or namespace. # @param [Fixnum] page_size - # The default page size is 200 (max 1000) for the BASIC view, and 50 (max 500) - # for the FULL view. + # The maximum number of results to return. Note that the number of results + # returned may be less than this value even if there are more available results. + # To fetch all results, clients must continue calling this method repeatedly + # until the response no longer contains a `next_page_token`. If unspecified, + # defaults to 200 for `View.BASIC` and to 50 for `View.FULL`. Must not be + # greater than 1000 for `View.BASIC` or 500 for `View.FULL`. # @param [String] page_token - # The next_page_token value returned from a previous list request, if any. + # The `next_page_token` value returned from a previous list request, if any. # @param [String] parent - # Required. Customer ID to list all groups from. + # Required. The parent resource under which to list all `Group`s. Must be of the + # form `identitysources/`identity_source_id`` for external- identity-mapped + # groups or `customers/`customer_id`` for Google Groups. # @param [String] view - # Group resource view to be returned. Defaults to [View.BASIC](). + # The level of detail to be returned. If unspecified, defaults to `View.BASIC`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -943,16 +949,19 @@ module Google execute_or_queue_command(command, &block) end - # Looks up [resource name](https://cloud.google.com/apis/design/resource_names) - # of a Group by its EntityKey. + # Looks up the [resource name](https://cloud.google.com/apis/design/ + # resource_names) of a `Group` by its `EntityKey`. # @param [String] group_key_id - # The ID of the entity within the given namespace. The ID must be unique within - # its namespace. + # The ID of the entity. For Google-managed entities, the `id` should be the + # email address of an existing group or user. For external-identity-mapped + # entities, the `id` must be a string conforming to the Identity Source's + # requirements. Must be unique within a `namespace`. # @param [String] group_key_namespace - # Namespaces provide isolation for IDs, so an ID only needs to be unique within - # its namespace. Namespaces are currently only created as part of IdentitySource - # creation from Admin Console. A namespace `"identitysources/`identity_source_id` - # "` is created corresponding to every Identity Source `identity_source_id`. + # The namespace in which the entity exists. If not specified, the `EntityKey` + # represents a Google-managed entity such as a Google user or a Google Group. If + # specified, the `EntityKey` represents an external-identity-mapped group. The + # namespace must correspond to an identity source created in Admin Console and + # must be in the form of `identitysources/`identity_source_id`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -981,15 +990,14 @@ module Google execute_or_queue_command(command, &block) end - # Updates a Group. + # Updates a `Group`. # @param [String] name - # Output only. [Resource name](https://cloud.google.com/apis/design/ - # resource_names) of the Group in the format: `groups/`group_id``, where - # group_id is the unique ID assigned to the Group. Must be left blank while - # creating a Group. + # Output only. The [resource name](https://cloud.google.com/apis/design/ + # resource_names) of the `Group`. Shall be of the form `groups/`group_id``. # @param [Google::Apis::CloudidentityV1::Group] group_object # @param [String] update_mask - # Required. Editable fields: `display_name`, `description` + # Required. The fully-qualified names of fields to update. May only contain the + # following fields: `display_name`, `description`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1020,18 +1028,24 @@ module Google execute_or_queue_command(command, &block) end - # Searches for Groups. + # Searches for `Group`s matching a specified query. # @param [Fixnum] page_size - # The default page size is 200 (max 1000) for the BASIC view, and 50 (max 500) - # for the FULL view. + # The maximum number of results to return. Note that the number of results + # returned may be less than this value even if there are more available results. + # To fetch all results, clients must continue calling this method repeatedly + # until the response no longer contains a `next_page_token`. If unspecified, + # defaults to 200 for `GroupView.BASIC` and 50 for `GroupView.FULL`. Must not be + # greater than 1000 for `GroupView.BASIC` or 500 for `GroupView.FULL`. # @param [String] page_token - # The next_page_token value returned from a previous search request, if any. + # The `next_page_token` value returned from a previous search request, if any. # @param [String] query - # Required. `Required`. Query string for performing search on groups. Users can - # search on parent and label attributes of groups. EXACT match ('==') is - # supported on parent, and CONTAINS match ('in') is supported on labels. + # Required. The search query. Must be specified in [Common Expression Language]( + # https://opensource.google/projects/cel). May only contain equality operators + # on the parent and inclusion operators on labels (e.g., `parent == 'customers/` + # customer_id`' && 'cloudidentity.googleapis.com/groups.discussion_forum' in + # labels`). # @param [String] view - # Group resource view to be returned. Defaults to [View.BASIC](). + # The level of detail to be returned. If unspecified, defaults to `View.BASIC`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1062,11 +1076,10 @@ module Google execute_or_queue_command(command, &block) end - # Creates a Membership. + # Creates a `Membership`. # @param [String] parent - # Required. [Resource name](https://cloud.google.com/apis/design/resource_names) - # of the Group to create Membership within. Format: `groups/`group_id``, where ` - # group_id` is the unique ID assigned to the Group. + # Required. The parent `Group` resource under which to create the `Membership`. + # Must be of the form `groups/`group_id``. # @param [Google::Apis::CloudidentityV1::Membership] membership_object # @param [String] fields # Selector specifying which fields to include in a partial response. @@ -1097,12 +1110,11 @@ module Google execute_or_queue_command(command, &block) end - # Deletes a Membership. + # Deletes a `Membership`. # @param [String] name - # Required. [Resource name](https://cloud.google.com/apis/design/resource_names) - # of the Membership to be deleted. Format: `groups/`group_id`/memberships/` - # member_id``, where `group_id` is the unique ID assigned to the Group to which - # Membership belongs to, and member_id is the unique ID assigned to the member. + # Required. The [resource name](https://cloud.google.com/apis/design/ + # resource_names) of the `Membership` to delete. Must be of the form `groups/` + # group_id`/memberships/`membership_id`` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1130,12 +1142,11 @@ module Google execute_or_queue_command(command, &block) end - # Retrieves a Membership. + # Retrieves a `Membership`. # @param [String] name - # Required. [Resource name](https://cloud.google.com/apis/design/resource_names) - # of the Membership to be retrieved. Format: `groups/`group_id`/memberships/` - # member_id``, where `group_id` is the unique id assigned to the Group to which - # Membership belongs to, and `member_id` is the unique ID assigned to the member. + # Required. The [resource name](https://cloud.google.com/apis/design/ + # resource_names) of the `Membership` to retrieve. Must be of the form `groups/` + # group_id`/memberships/`membership_id``. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1163,18 +1174,21 @@ module Google execute_or_queue_command(command, &block) end - # Lists Memberships within a Group. + # Lists the `Membership`s within a `Group`. # @param [String] parent - # Required. [Resource name](https://cloud.google.com/apis/design/resource_names) - # of the Group to list Memberships within. Format: `groups/`group_id``, where ` - # group_id` is the unique ID assigned to the Group. + # Required. The parent `Group` resource under which to lookup the `Membership` + # name. Must be of the form `groups/`group_id``. # @param [Fixnum] page_size - # The default page size is 200 (max 1000) for the BASIC view, and 50 (max 500) - # for the FULL view. + # The maximum number of results to return. Note that the number of results + # returned may be less than this value even if there are more available results. + # To fetch all results, clients must continue calling this method repeatedly + # until the response no longer contains a `next_page_token`. If unspecified, + # defaults to 200 for `GroupView.BASIC` and to 50 for `GroupView.FULL`. Must not + # be greater than 1000 for `GroupView.BASIC` or 500 for `GroupView.FULL`. # @param [String] page_token - # The next_page_token value returned from a previous list request, if any. + # The `next_page_token` value returned from a previous search request, if any. # @param [String] view - # Membership resource view to be returned. Defaults to View.BASIC. + # The level of detail to be returned. If unspecified, defaults to `View.BASIC`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1205,20 +1219,22 @@ module Google execute_or_queue_command(command, &block) end - # Looks up [resource name](https://cloud.google.com/apis/design/resource_names) - # of a Membership within a Group by member's EntityKey. + # Looks up the [resource name](https://cloud.google.com/apis/design/ + # resource_names) of a `Membership` by its `EntityKey`. # @param [String] parent - # Required. [Resource name](https://cloud.google.com/apis/design/resource_names) - # of the Group to lookup Membership within. Format: `groups/`group_id``, where ` - # group_id` is the unique ID assigned to the Group. + # Required. The parent `Group` resource under which to lookup the `Membership` + # name. Must be of the form `groups/`group_id``. # @param [String] member_key_id - # The ID of the entity within the given namespace. The ID must be unique within - # its namespace. + # The ID of the entity. For Google-managed entities, the `id` should be the + # email address of an existing group or user. For external-identity-mapped + # entities, the `id` must be a string conforming to the Identity Source's + # requirements. Must be unique within a `namespace`. # @param [String] member_key_namespace - # Namespaces provide isolation for IDs, so an ID only needs to be unique within - # its namespace. Namespaces are currently only created as part of IdentitySource - # creation from Admin Console. A namespace `"identitysources/`identity_source_id` - # "` is created corresponding to every Identity Source `identity_source_id`. + # The namespace in which the entity exists. If not specified, the `EntityKey` + # represents a Google-managed entity such as a Google user or a Google Group. If + # specified, the `EntityKey` represents an external-identity-mapped group. The + # namespace must correspond to an identity source created in Admin Console and + # must be in the form of `identitysources/`identity_source_id`. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user diff --git a/generated/google/apis/cloudidentity_v1beta1.rb b/generated/google/apis/cloudidentity_v1beta1.rb index 0f44cad99..4af22986f 100644 --- a/generated/google/apis/cloudidentity_v1beta1.rb +++ b/generated/google/apis/cloudidentity_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/identity/ module CloudidentityV1beta1 VERSION = 'V1beta1' - REVISION = '20200919' + REVISION = '20200927' # See your device details AUTH_CLOUD_IDENTITY_DEVICES_LOOKUP = 'https://www.googleapis.com/auth/cloud-identity.devices.lookup' diff --git a/generated/google/apis/cloudidentity_v1beta1/classes.rb b/generated/google/apis/cloudidentity_v1beta1/classes.rb index 628ffc772..0456d3d0b 100644 --- a/generated/google/apis/cloudidentity_v1beta1/classes.rb +++ b/generated/google/apis/cloudidentity_v1beta1/classes.rb @@ -1883,6 +1883,9 @@ module Google include Google::Apis::Core::Hashable # Each edge contains information about the member that belongs to this group. + # Note: Fields returned here will help identify the specific Membership resource + # (e.g name, preferred_member_key and role), but may not be a comprehensive list + # of all fields. # Corresponds to the JSON property `edges` # @return [Array] attr_accessor :edges diff --git a/generated/google/apis/cloudidentity_v1beta1/service.rb b/generated/google/apis/cloudidentity_v1beta1/service.rb index 7676f7d0c..ccf0aebb5 100644 --- a/generated/google/apis/cloudidentity_v1beta1/service.rb +++ b/generated/google/apis/cloudidentity_v1beta1/service.rb @@ -992,7 +992,10 @@ module Google execute_or_queue_command(command, &block) end - # Check a potential member for membership in a group. + # Check a potential member for membership in a group. A member has membership to + # a group as long as there is a single viewable transitive membership between + # the group and the member. The actor must have view permissions to at least one + # transitive membership between the member and group. # @param [String] parent # [Resource name](https://cloud.google.com/apis/design/resource_names) of the # group to check the transitive membership in. Format: `groups/`group_id``, @@ -1000,8 +1003,10 @@ module Google # Membership belongs to. # @param [String] query # Required. A CEL expression that MUST include member specification. This is a ` - # required` field. Example query: member_key_id == ‘member_key_id_value’ [ && - # member_key_namespace == ‘member_key_namespace_value’ ] + # required` field. Certain groups are uniquely identified by both a ' + # member_key_id' and a 'member_key_namespace', which requires an additional + # query input: 'member_key_namespace'. Example query: `member_key_id == ' + # member_key_id_value'` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1128,7 +1133,10 @@ module Google execute_or_queue_command(command, &block) end - # Get a membership graph of a member or member/group. + # Get a membership graph of just a member or both a member and a group. Given a + # member, the response will contain all membership paths from the member. Given + # both a group and a member, the response will contain all membership paths + # between the group and the member. # @param [String] parent # Required. [Resource name](https://cloud.google.com/apis/design/resource_names) # of the group to search transitive memberships in. Format: `groups/`group_id``, @@ -1140,8 +1148,10 @@ module Google # returned. # @param [String] query # Required. A CEL expression that MUST include member specification AND label(s). - # Example query: member_key_id == ‘member_key_id_value’ [ && - # member_key_namespace == ‘member_key_namespace_value’ ] && in labels + # Certain groups are uniquely identified by both a 'member_key_id' and a ' + # member_key_namespace', which requires an additional query input: ' + # member_key_namespace'. Example query: `member_key_id == 'member_key_id_value' & + # & in labels` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1296,7 +1306,9 @@ module Google execute_or_queue_command(command, &block) end - # Search transitive groups of a member. + # Search transitive groups of a member. A transitive group is any group that has + # a direct or indirect membership to the member. Actor must have view + # permissions all transitive groups. # @param [String] parent # [Resource name](https://cloud.google.com/apis/design/resource_names) of the # group to search transitive memberships in. Format: `groups/`group_id``, where ` @@ -1309,9 +1321,10 @@ module Google # @param [String] query # Required. A CEL expression that MUST include member specification AND label(s). # This is a `required` field. Users can search on label attributes of groups. - # CONTAINS match ('in') is supported on labels. Example query: member_key_id == ‘ - # member_key_id_value’ [ && member_key_namespace == ‘member_key_namespace_value’ - # ] && in labels + # CONTAINS match ('in') is supported on labels. Certain groups are uniquely + # identified by both a 'member_key_id' and a 'member_key_namespace', which + # requires an additional query input: 'member_key_namespace'. Example query: ` + # member_key_id == 'member_key_id_value' && in labels` # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -1342,7 +1355,9 @@ module Google execute_or_queue_command(command, &block) end - # Search transitive memberships of a group. + # Search transitive memberships of a group. A transitive membership is any + # direct or indirect membership of a group. Actor must have view permissions to + # all transitive memberships. # @param [String] parent # [Resource name](https://cloud.google.com/apis/design/resource_names) of the # group to search transitive memberships in. Format: `groups/`group_id``, where ` diff --git a/generated/google/apis/composer_v1beta1.rb b/generated/google/apis/composer_v1beta1.rb index aaabb6dc9..5af1439d2 100644 --- a/generated/google/apis/composer_v1beta1.rb +++ b/generated/google/apis/composer_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/composer/ module ComposerV1beta1 VERSION = 'V1beta1' - REVISION = '20200817' + REVISION = '20200922' # 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/composer_v1beta1/classes.rb b/generated/google/apis/composer_v1beta1/classes.rb index ff4b45b89..118ce9ad8 100644 --- a/generated/google/apis/composer_v1beta1/classes.rb +++ b/generated/google/apis/composer_v1beta1/classes.rb @@ -682,7 +682,8 @@ module Google attr_accessor :cloud_sql_ipv4_cidr_block # Optional. If `true`, a Private IP Cloud Composer environment is created. If - # this field is true, `use_ip_aliases` must be true. + # this field is set to true, `IPAllocationPolicy.use_ip_aliases` must be set to + # true. # Corresponds to the JSON property `enablePrivateEnvironment` # @return [Boolean] attr_accessor :enable_private_environment diff --git a/generated/google/apis/dataproc_v1.rb b/generated/google/apis/dataproc_v1.rb index b0041c33e..947378521 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 = '20200911' + REVISION = '20200917' # 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 2a6f47f67..434dd3cf7 100644 --- a/generated/google/apis/dataproc_v1/classes.rb +++ b/generated/google/apis/dataproc_v1/classes.rb @@ -419,7 +419,7 @@ module Google attr_accessor :endpoint_config # Common config settings for resources of Compute Engine cluster instances, - # applicable to all instances in the cluster. NEXT ID: 14 + # applicable to all instances in the cluster. # Corresponds to the JSON property `gceClusterConfig` # @return [Google::Apis::DataprocV1::GceClusterConfig] attr_accessor :gce_cluster_config @@ -914,7 +914,7 @@ module Google end # Common config settings for resources of Compute Engine cluster instances, - # applicable to all instances in the cluster. NEXT ID: 14 + # applicable to all instances in the cluster. class GceClusterConfig include Google::Apis::Core::Hashable @@ -948,6 +948,11 @@ module Google # @return [String] attr_accessor :network_uri + # Node Group Affinity for clusters using sole-tenant node groups. + # Corresponds to the JSON property `nodeGroupAffinity` + # @return [Google::Apis::DataprocV1::NodeGroupAffinity] + attr_accessor :node_group_affinity + # Optional. The type of IPv6 access for a cluster. # Corresponds to the JSON property `privateIpv6GoogleAccess` # @return [String] @@ -1017,6 +1022,7 @@ module Google @internal_ip_only = args[:internal_ip_only] if args.key?(:internal_ip_only) @metadata = args[:metadata] if args.key?(:metadata) @network_uri = args[:network_uri] if args.key?(:network_uri) + @node_group_affinity = args[:node_group_affinity] if args.key?(:node_group_affinity) @private_ipv6_google_access = args[:private_ipv6_google_access] if args.key?(:private_ipv6_google_access) @reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity) @service_account = args[:service_account] if args.key?(:service_account) @@ -2116,6 +2122,26 @@ module Google end end + # Node Group Affinity for clusters using sole-tenant node groups. + class NodeGroupAffinity + include Google::Apis::Core::Hashable + + # Optional. The name of a single node group (https://cloud.google.com/compute/ + # docs/reference/rest/v1/nodeGroups) a cluster will be created on. + # Corresponds to the JSON property `nodeGroupUri` + # @return [String] + attr_accessor :node_group_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @node_group_uri = args[:node_group_uri] if args.key?(:node_group_uri) + end + end + # Specifies an executable to run on a fully configured node and a timeout period # for executable completion. class NodeInitializationAction diff --git a/generated/google/apis/dataproc_v1/representations.rb b/generated/google/apis/dataproc_v1/representations.rb index b4fc41dfc..cbdddf1ca 100644 --- a/generated/google/apis/dataproc_v1/representations.rb +++ b/generated/google/apis/dataproc_v1/representations.rb @@ -304,6 +304,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class NodeGroupAffinity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class NodeInitializationAction class Representation < Google::Apis::Core::JsonRepresentation; end @@ -712,6 +718,8 @@ module Google property :internal_ip_only, as: 'internalIpOnly' hash :metadata, as: 'metadata' property :network_uri, as: 'networkUri' + property :node_group_affinity, as: 'nodeGroupAffinity', class: Google::Apis::DataprocV1::NodeGroupAffinity, decorator: Google::Apis::DataprocV1::NodeGroupAffinity::Representation + property :private_ipv6_google_access, as: 'privateIpv6GoogleAccess' property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::DataprocV1::ReservationAffinity, decorator: Google::Apis::DataprocV1::ReservationAffinity::Representation @@ -997,6 +1005,13 @@ module Google end end + class NodeGroupAffinity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :node_group_uri, as: 'nodeGroupUri' + end + end + class NodeInitializationAction # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dataproc_v1beta2.rb b/generated/google/apis/dataproc_v1beta2.rb index 18f43f740..9fffd150f 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 = '20200911' + REVISION = '20200917' # 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 42a74345d..0f3846443 100644 --- a/generated/google/apis/dataproc_v1beta2/classes.rb +++ b/generated/google/apis/dataproc_v1beta2/classes.rb @@ -417,7 +417,7 @@ module Google attr_accessor :endpoint_config # Common config settings for resources of Compute Engine cluster instances, - # applicable to all instances in the cluster. NEXT ID: 14 + # applicable to all instances in the cluster. # Corresponds to the JSON property `gceClusterConfig` # @return [Google::Apis::DataprocV1beta2::GceClusterConfig] attr_accessor :gce_cluster_config @@ -924,7 +924,7 @@ module Google end # Common config settings for resources of Compute Engine cluster instances, - # applicable to all instances in the cluster. NEXT ID: 14 + # applicable to all instances in the cluster. class GceClusterConfig include Google::Apis::Core::Hashable @@ -958,6 +958,11 @@ module Google # @return [String] attr_accessor :network_uri + # Node Group Affinity for clusters using sole-tenant node groups. + # Corresponds to the JSON property `nodeGroupAffinity` + # @return [Google::Apis::DataprocV1beta2::NodeGroupAffinity] + attr_accessor :node_group_affinity + # Optional. The type of IPv6 access for a cluster. # Corresponds to the JSON property `privateIpv6GoogleAccess` # @return [String] @@ -1027,6 +1032,7 @@ module Google @internal_ip_only = args[:internal_ip_only] if args.key?(:internal_ip_only) @metadata = args[:metadata] if args.key?(:metadata) @network_uri = args[:network_uri] if args.key?(:network_uri) + @node_group_affinity = args[:node_group_affinity] if args.key?(:node_group_affinity) @private_ipv6_google_access = args[:private_ipv6_google_access] if args.key?(:private_ipv6_google_access) @reservation_affinity = args[:reservation_affinity] if args.key?(:reservation_affinity) @service_account = args[:service_account] if args.key?(:service_account) @@ -2207,6 +2213,26 @@ module Google end end + # Node Group Affinity for clusters using sole-tenant node groups. + class NodeGroupAffinity + include Google::Apis::Core::Hashable + + # Optional. The name of a single node group (https://cloud.google.com/compute/ + # docs/reference/rest/v1/nodeGroups) a cluster will be created on. + # Corresponds to the JSON property `nodeGroupUri` + # @return [String] + attr_accessor :node_group_uri + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @node_group_uri = args[:node_group_uri] if args.key?(:node_group_uri) + end + end + # Specifies an executable to run on a fully configured node and a timeout period # for executable completion. class NodeInitializationAction diff --git a/generated/google/apis/dataproc_v1beta2/representations.rb b/generated/google/apis/dataproc_v1beta2/representations.rb index 35cc224a1..126d6097e 100644 --- a/generated/google/apis/dataproc_v1beta2/representations.rb +++ b/generated/google/apis/dataproc_v1beta2/representations.rb @@ -322,6 +322,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class NodeGroupAffinity + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class NodeInitializationAction class Representation < Google::Apis::Core::JsonRepresentation; end @@ -746,6 +752,8 @@ module Google property :internal_ip_only, as: 'internalIpOnly' hash :metadata, as: 'metadata' property :network_uri, as: 'networkUri' + property :node_group_affinity, as: 'nodeGroupAffinity', class: Google::Apis::DataprocV1beta2::NodeGroupAffinity, decorator: Google::Apis::DataprocV1beta2::NodeGroupAffinity::Representation + property :private_ipv6_google_access, as: 'privateIpv6GoogleAccess' property :reservation_affinity, as: 'reservationAffinity', class: Google::Apis::DataprocV1beta2::ReservationAffinity, decorator: Google::Apis::DataprocV1beta2::ReservationAffinity::Representation @@ -1056,6 +1064,13 @@ module Google end end + class NodeGroupAffinity + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :node_group_uri, as: 'nodeGroupUri' + end + end + class NodeInitializationAction # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dialogflow_v2.rb b/generated/google/apis/dialogflow_v2.rb index 0c5ad696a..86918639b 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 = '20200920' + REVISION = '20200928' # 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 39606dc2a..149c488f4 100644 --- a/generated/google/apis/dialogflow_v2/classes.rb +++ b/generated/google/apis/dialogflow_v2/classes.rb @@ -4326,6 +4326,25 @@ module Google end end + # Response message for [Documents.BatchUpdateSmartMessagingEntries] + class GoogleCloudDialogflowV2beta1BatchUpdateSmartMessagingEntriesResponse + include Google::Apis::Core::Hashable + + # List of updated smart message entries. + # Corresponds to the JSON property `smartMessagingEntries` + # @return [Array] + attr_accessor :smart_messaging_entries + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @smart_messaging_entries = args[:smart_messaging_entries] if args.key?(:smart_messaging_entries) + end + end + # Dialogflow contexts are similar to natural language context. If a person says # to you "they are orange", you need context in order to understand what "they" # is referring to. Similarly, for Dialogflow to handle an end-user expression @@ -6681,6 +6700,74 @@ module Google end end + # Smart Messaging Entry resource. + class GoogleCloudDialogflowV2beta1SmartMessagingEntry + include Google::Apis::Core::Hashable + + # Smart messaging entry info. + # Corresponds to the JSON property `messageInfo` + # @return [Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SmartMessagingEntryInfo] + attr_accessor :message_info + + # The unique identifier of this message entry. Required for [Documents. + # GetSmartMessagingEntry], [Documents.CreateSmartMessagingEntry], [Documents. + # UpdateSmartMessagingEntry], and [Documents.DeleteSmartMessagingEntry]. Format: + # `projects//knowledgeBases//documents//smartMessagingEntries/` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Required. The raw text of the message. + # Corresponds to the JSON property `rawText` + # @return [String] + attr_accessor :raw_text + + # Required. Smart Messaging Entry's enabled/disabled state. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @message_info = args[:message_info] if args.key?(:message_info) + @name = args[:name] if args.key?(:name) + @raw_text = args[:raw_text] if args.key?(:raw_text) + @state = args[:state] if args.key?(:state) + end + end + + # Smart messaging entry info. + class GoogleCloudDialogflowV2beta1SmartMessagingEntryInfo + include Google::Apis::Core::Hashable + + # Output only. Method of how the smart messaging entry was created. When the + # smart messaging entry was generated from GenerateDocument, the value is + # AUTOMATIC; when the entry was manually added through CreateSmartMessagingEntry, + # the value is MANUAL. + # Corresponds to the JSON property `creationMethod` + # @return [String] + attr_accessor :creation_method + + # The number of times an entry's message text has been uttered + # Corresponds to the JSON property `occurrenceCount` + # @return [Fixnum] + attr_accessor :occurrence_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_method = args[:creation_method] if args.key?(:creation_method) + @occurrence_count = args[:occurrence_count] if args.key?(:occurrence_count) + end + end + # The request message for a webhook call. class GoogleCloudDialogflowV2beta1WebhookRequest include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dialogflow_v2/representations.rb b/generated/google/apis/dialogflow_v2/representations.rb index 6d905ef34..a72026484 100644 --- a/generated/google/apis/dialogflow_v2/representations.rb +++ b/generated/google/apis/dialogflow_v2/representations.rb @@ -706,6 +706,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1BatchUpdateSmartMessagingEntriesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1Context class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1072,6 +1078,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1SmartMessagingEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1SmartMessagingEntryInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1WebhookRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2323,6 +2341,14 @@ module Google end end + class GoogleCloudDialogflowV2beta1BatchUpdateSmartMessagingEntriesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :smart_messaging_entries, as: 'smartMessagingEntries', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SmartMessagingEntry, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SmartMessagingEntry::Representation + + end + end + class GoogleCloudDialogflowV2beta1Context # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -2962,6 +2988,25 @@ module Google end end + class GoogleCloudDialogflowV2beta1SmartMessagingEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :message_info, as: 'messageInfo', class: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SmartMessagingEntryInfo, decorator: Google::Apis::DialogflowV2::GoogleCloudDialogflowV2beta1SmartMessagingEntryInfo::Representation + + property :name, as: 'name' + property :raw_text, as: 'rawText' + property :state, as: 'state' + end + end + + class GoogleCloudDialogflowV2beta1SmartMessagingEntryInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_method, as: 'creationMethod' + property :occurrence_count, as: 'occurrenceCount' + end + end + class GoogleCloudDialogflowV2beta1WebhookRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dialogflow_v2beta1.rb b/generated/google/apis/dialogflow_v2beta1.rb index 7ad957582..81d63b806 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 = '20200920' + REVISION = '20200928' # 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 a74da7977..4a4ac1d97 100644 --- a/generated/google/apis/dialogflow_v2beta1/classes.rb +++ b/generated/google/apis/dialogflow_v2beta1/classes.rb @@ -3274,6 +3274,25 @@ module Google end end + # Response message for [Documents.BatchUpdateSmartMessagingEntries] + class GoogleCloudDialogflowV2beta1BatchUpdateSmartMessagingEntriesResponse + include Google::Apis::Core::Hashable + + # List of updated smart message entries. + # Corresponds to the JSON property `smartMessagingEntries` + # @return [Array] + attr_accessor :smart_messaging_entries + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @smart_messaging_entries = args[:smart_messaging_entries] if args.key?(:smart_messaging_entries) + end + end + # Dialogflow contexts are similar to natural language context. If a person says # to you "they are orange", you need context in order to understand what "they" # is referring to. Similarly, for Dialogflow to handle an end-user expression @@ -3855,19 +3874,18 @@ module Google class GoogleCloudDialogflowV2beta1Fulfillment include Google::Apis::Core::Hashable - # Optional. The human-readable name of the fulfillment, unique within the agent. + # The human-readable name of the fulfillment, unique within the agent. # Corresponds to the JSON property `displayName` # @return [String] attr_accessor :display_name - # Optional. Whether fulfillment is enabled. + # Whether fulfillment is enabled. # Corresponds to the JSON property `enabled` # @return [Boolean] attr_accessor :enabled alias_method :enabled?, :enabled - # Optional. The field defines whether the fulfillment is enabled for certain - # features. + # The field defines whether the fulfillment is enabled for certain features. # Corresponds to the JSON property `features` # @return [Array] attr_accessor :features @@ -3928,19 +3946,19 @@ module Google class GoogleCloudDialogflowV2beta1FulfillmentGenericWebService include Google::Apis::Core::Hashable - # Optional. Indicates if generic web service is created through Cloud Functions + # Indicates if generic web service is created through Cloud Functions # integration. Defaults to false. # Corresponds to the JSON property `isCloudFunction` # @return [Boolean] attr_accessor :is_cloud_function alias_method :is_cloud_function?, :is_cloud_function - # Optional. The password for HTTP Basic authentication. + # The password for HTTP Basic authentication. # Corresponds to the JSON property `password` # @return [String] attr_accessor :password - # Optional. The HTTP request headers to send together with fulfillment requests. + # The HTTP request headers to send together with fulfillment requests. # Corresponds to the JSON property `requestHeaders` # @return [Hash] attr_accessor :request_headers @@ -3951,7 +3969,7 @@ module Google # @return [String] attr_accessor :uri - # Optional. The user name for HTTP Basic authentication. + # The user name for HTTP Basic authentication. # Corresponds to the JSON property `username` # @return [String] attr_accessor :username @@ -6759,6 +6777,74 @@ module Google end end + # Smart Messaging Entry resource. + class GoogleCloudDialogflowV2beta1SmartMessagingEntry + include Google::Apis::Core::Hashable + + # Smart messaging entry info. + # Corresponds to the JSON property `messageInfo` + # @return [Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SmartMessagingEntryInfo] + attr_accessor :message_info + + # The unique identifier of this message entry. Required for [Documents. + # GetSmartMessagingEntry], [Documents.CreateSmartMessagingEntry], [Documents. + # UpdateSmartMessagingEntry], and [Documents.DeleteSmartMessagingEntry]. Format: + # `projects//knowledgeBases//documents//smartMessagingEntries/` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Required. The raw text of the message. + # Corresponds to the JSON property `rawText` + # @return [String] + attr_accessor :raw_text + + # Required. Smart Messaging Entry's enabled/disabled state. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @message_info = args[:message_info] if args.key?(:message_info) + @name = args[:name] if args.key?(:name) + @raw_text = args[:raw_text] if args.key?(:raw_text) + @state = args[:state] if args.key?(:state) + end + end + + # Smart messaging entry info. + class GoogleCloudDialogflowV2beta1SmartMessagingEntryInfo + include Google::Apis::Core::Hashable + + # Output only. Method of how the smart messaging entry was created. When the + # smart messaging entry was generated from GenerateDocument, the value is + # AUTOMATIC; when the entry was manually added through CreateSmartMessagingEntry, + # the value is MANUAL. + # Corresponds to the JSON property `creationMethod` + # @return [String] + attr_accessor :creation_method + + # The number of times an entry's message text has been uttered + # Corresponds to the JSON property `occurrenceCount` + # @return [Fixnum] + attr_accessor :occurrence_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_method = args[:creation_method] if args.key?(:creation_method) + @occurrence_count = args[:occurrence_count] if args.key?(:occurrence_count) + end + end + # Hints for the speech recognizer to help with recognition in a specific # conversation state. class GoogleCloudDialogflowV2beta1SpeechContext diff --git a/generated/google/apis/dialogflow_v2beta1/representations.rb b/generated/google/apis/dialogflow_v2beta1/representations.rb index f38af4edd..f8799a10f 100644 --- a/generated/google/apis/dialogflow_v2beta1/representations.rb +++ b/generated/google/apis/dialogflow_v2beta1/representations.rb @@ -532,6 +532,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1BatchUpdateSmartMessagingEntriesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1Context class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1072,6 +1078,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1SmartMessagingEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1SmartMessagingEntryInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1SpeechContext class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2087,6 +2105,14 @@ module Google end end + class GoogleCloudDialogflowV2beta1BatchUpdateSmartMessagingEntriesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :smart_messaging_entries, as: 'smartMessagingEntries', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SmartMessagingEntry, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SmartMessagingEntry::Representation + + end + end + class GoogleCloudDialogflowV2beta1Context # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3024,6 +3050,25 @@ module Google end end + class GoogleCloudDialogflowV2beta1SmartMessagingEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :message_info, as: 'messageInfo', class: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SmartMessagingEntryInfo, decorator: Google::Apis::DialogflowV2beta1::GoogleCloudDialogflowV2beta1SmartMessagingEntryInfo::Representation + + property :name, as: 'name' + property :raw_text, as: 'rawText' + property :state, as: 'state' + end + end + + class GoogleCloudDialogflowV2beta1SmartMessagingEntryInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_method, as: 'creationMethod' + property :occurrence_count, as: 'occurrenceCount' + end + end + class GoogleCloudDialogflowV2beta1SpeechContext # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/dialogflow_v3beta1.rb b/generated/google/apis/dialogflow_v3beta1.rb index bb2ace162..a26b1e32b 100644 --- a/generated/google/apis/dialogflow_v3beta1.rb +++ b/generated/google/apis/dialogflow_v3beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow/ module DialogflowV3beta1 VERSION = 'V3beta1' - REVISION = '20200920' + REVISION = '20200928' # 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_v3beta1/classes.rb b/generated/google/apis/dialogflow_v3beta1/classes.rb index 585810581..d671603b3 100644 --- a/generated/google/apis/dialogflow_v3beta1/classes.rb +++ b/generated/google/apis/dialogflow_v3beta1/classes.rb @@ -5540,6 +5540,25 @@ module Google end end + # Response message for [Documents.BatchUpdateSmartMessagingEntries] + class GoogleCloudDialogflowV2beta1BatchUpdateSmartMessagingEntriesResponse + include Google::Apis::Core::Hashable + + # List of updated smart message entries. + # Corresponds to the JSON property `smartMessagingEntries` + # @return [Array] + attr_accessor :smart_messaging_entries + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @smart_messaging_entries = args[:smart_messaging_entries] if args.key?(:smart_messaging_entries) + end + end + # Dialogflow contexts are similar to natural language context. If a person says # to you "they are orange", you need context in order to understand what "they" # is referring to. Similarly, for Dialogflow to handle an end-user expression @@ -7895,6 +7914,74 @@ module Google end end + # Smart Messaging Entry resource. + class GoogleCloudDialogflowV2beta1SmartMessagingEntry + include Google::Apis::Core::Hashable + + # Smart messaging entry info. + # Corresponds to the JSON property `messageInfo` + # @return [Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SmartMessagingEntryInfo] + attr_accessor :message_info + + # The unique identifier of this message entry. Required for [Documents. + # GetSmartMessagingEntry], [Documents.CreateSmartMessagingEntry], [Documents. + # UpdateSmartMessagingEntry], and [Documents.DeleteSmartMessagingEntry]. Format: + # `projects//knowledgeBases//documents//smartMessagingEntries/` + # Corresponds to the JSON property `name` + # @return [String] + attr_accessor :name + + # Required. The raw text of the message. + # Corresponds to the JSON property `rawText` + # @return [String] + attr_accessor :raw_text + + # Required. Smart Messaging Entry's enabled/disabled state. + # Corresponds to the JSON property `state` + # @return [String] + attr_accessor :state + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @message_info = args[:message_info] if args.key?(:message_info) + @name = args[:name] if args.key?(:name) + @raw_text = args[:raw_text] if args.key?(:raw_text) + @state = args[:state] if args.key?(:state) + end + end + + # Smart messaging entry info. + class GoogleCloudDialogflowV2beta1SmartMessagingEntryInfo + include Google::Apis::Core::Hashable + + # Output only. Method of how the smart messaging entry was created. When the + # smart messaging entry was generated from GenerateDocument, the value is + # AUTOMATIC; when the entry was manually added through CreateSmartMessagingEntry, + # the value is MANUAL. + # Corresponds to the JSON property `creationMethod` + # @return [String] + attr_accessor :creation_method + + # The number of times an entry's message text has been uttered + # Corresponds to the JSON property `occurrenceCount` + # @return [Fixnum] + attr_accessor :occurrence_count + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @creation_method = args[:creation_method] if args.key?(:creation_method) + @occurrence_count = args[:occurrence_count] if args.key?(:occurrence_count) + end + end + # The request message for a webhook call. class GoogleCloudDialogflowV2beta1WebhookRequest include Google::Apis::Core::Hashable diff --git a/generated/google/apis/dialogflow_v3beta1/representations.rb b/generated/google/apis/dialogflow_v3beta1/representations.rb index c022f5b95..971d105a9 100644 --- a/generated/google/apis/dialogflow_v3beta1/representations.rb +++ b/generated/google/apis/dialogflow_v3beta1/representations.rb @@ -862,6 +862,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1BatchUpdateSmartMessagingEntriesResponse + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1Context class Representation < Google::Apis::Core::JsonRepresentation; end @@ -1228,6 +1234,18 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GoogleCloudDialogflowV2beta1SmartMessagingEntry + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + + class GoogleCloudDialogflowV2beta1SmartMessagingEntryInfo + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class GoogleCloudDialogflowV2beta1WebhookRequest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -2776,6 +2794,14 @@ module Google end end + class GoogleCloudDialogflowV2beta1BatchUpdateSmartMessagingEntriesResponse + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :smart_messaging_entries, as: 'smartMessagingEntries', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SmartMessagingEntry, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SmartMessagingEntry::Representation + + end + end + class GoogleCloudDialogflowV2beta1Context # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -3415,6 +3441,25 @@ module Google end end + class GoogleCloudDialogflowV2beta1SmartMessagingEntry + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :message_info, as: 'messageInfo', class: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SmartMessagingEntryInfo, decorator: Google::Apis::DialogflowV3beta1::GoogleCloudDialogflowV2beta1SmartMessagingEntryInfo::Representation + + property :name, as: 'name' + property :raw_text, as: 'rawText' + property :state, as: 'state' + end + end + + class GoogleCloudDialogflowV2beta1SmartMessagingEntryInfo + # @private + class Representation < Google::Apis::Core::JsonRepresentation + property :creation_method, as: 'creationMethod' + property :occurrence_count, as: 'occurrenceCount' + end + end + class GoogleCloudDialogflowV2beta1WebhookRequest # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/memcache_v1beta2.rb b/generated/google/apis/memcache_v1beta2.rb index f8f9f5f11..6aa3a6da4 100644 --- a/generated/google/apis/memcache_v1beta2.rb +++ b/generated/google/apis/memcache_v1beta2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/memorystore/ module MemcacheV1beta2 VERSION = 'V1beta2' - REVISION = '20200824' + REVISION = '20200928' # 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/memcache_v1beta2/service.rb b/generated/google/apis/memcache_v1beta2/service.rb index 25fcd595e..3bf6f5ee8 100644 --- a/generated/google/apis/memcache_v1beta2/service.rb +++ b/generated/google/apis/memcache_v1beta2/service.rb @@ -117,8 +117,8 @@ module Google execute_or_queue_command(command, &block) end - # ApplyParameters will update current set of Parameters to the set of specified - # nodes of the Memcached Instance. + # ApplyParameters will restart the set of specified nodes in order to update + # them to the current set of parameters for the Memcached Instance. # @param [String] name # Required. Resource name of the Memcached instance for which parameter group # updates should be applied. @@ -152,7 +152,7 @@ module Google execute_or_queue_command(command, &block) end - # Creates a new Instance in a given project and location. + # Creates a new Instance in a given location. # @param [String] parent # Required. The resource name of the instance location using the form: `projects/ # `project_id`/locations/`location_id`` where `location_id` refers to a GCP @@ -163,7 +163,7 @@ module Google # the following restrictions: * Must contain only lowercase letters, numbers, # and hyphens. * Must start with a letter. * Must be between 1-40 characters. * # Must end with a number or a letter. * Must be unique within the user project / - # location + # location If any of the above are not met, will raise an invalid argument error. # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -258,7 +258,7 @@ module Google execute_or_queue_command(command, &block) end - # Lists Instances in a given project and location. + # Lists Instances in a given location. # @param [String] parent # Required. The resource name of the instance location using the form: `projects/ # `project_id`/locations/`location_id`` where `location_id` refers to a GCP diff --git a/generated/google/apis/recommender_v1.rb b/generated/google/apis/recommender_v1.rb index 737228ec4..3e49c35c0 100644 --- a/generated/google/apis/recommender_v1.rb +++ b/generated/google/apis/recommender_v1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/recommender/docs/ module RecommenderV1 VERSION = 'V1' - REVISION = '20200801' + REVISION = '20200927' # 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/recommender_v1/service.rb b/generated/google/apis/recommender_v1/service.rb index faec8b84f..0ca98bd6b 100644 --- a/generated/google/apis/recommender_v1/service.rb +++ b/generated/google/apis/recommender_v1/service.rb @@ -84,7 +84,8 @@ module Google # Required. The container resource on which to execute the request. Acceptable # formats: 1. "projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[ # INSIGHT_TYPE_ID]", LOCATION here refers to GCP Locations: https://cloud.google. - # com/about/locations/ + # com/about/locations/ INSIGHT_TYPE_ID refers to supported insight types: https:/ + # /cloud.google.com/recommender/docs/insights/insight-types.) # @param [String] filter # Optional. Filter expression to restrict the insights returned. Supported # filter fields: state Eg: `state:"DISMISSED" or state:"ACTIVE" @@ -201,7 +202,8 @@ module Google # Required. The container resource on which to execute the request. Acceptable # formats: 1. "projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[ # RECOMMENDER_ID]", LOCATION here refers to GCP Locations: https://cloud.google. - # com/about/locations/ + # com/about/locations/ RECOMMENDER_ID refers to supported recommenders: https:// + # cloud.google.com/recommender/docs/recommenders. # @param [String] filter # Filter expression to restrict the recommendations returned. Supported filter # fields: state_info.state Eg: `state_info.state:"DISMISSED" or state_info.state: diff --git a/generated/google/apis/recommender_v1beta1.rb b/generated/google/apis/recommender_v1beta1.rb index 6f6d42ee3..931ea5276 100644 --- a/generated/google/apis/recommender_v1beta1.rb +++ b/generated/google/apis/recommender_v1beta1.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/recommender/docs/ module RecommenderV1beta1 VERSION = 'V1beta1' - REVISION = '20200801' + REVISION = '20200927' # 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/recommender_v1beta1/service.rb b/generated/google/apis/recommender_v1beta1/service.rb index aa0022841..14b3227a4 100644 --- a/generated/google/apis/recommender_v1beta1/service.rb +++ b/generated/google/apis/recommender_v1beta1/service.rb @@ -84,7 +84,8 @@ module Google # Required. The container resource on which to execute the request. Acceptable # formats: 1. "projects/[PROJECT_NUMBER]/locations/[LOCATION]/insightTypes/[ # INSIGHT_TYPE_ID]", LOCATION here refers to GCP Locations: https://cloud.google. - # com/about/locations/ + # com/about/locations/ INSIGHT_TYPE_ID refers to supported insight types: https:/ + # /cloud.google.com/recommender/docs/insights/insight-types. # @param [String] filter # Optional. Filter expression to restrict the insights returned. Supported # filter fields: state Eg: `state:"DISMISSED" or state:"ACTIVE" @@ -201,7 +202,8 @@ module Google # Required. The container resource on which to execute the request. Acceptable # formats: 1. "projects/[PROJECT_NUMBER]/locations/[LOCATION]/recommenders/[ # RECOMMENDER_ID]", LOCATION here refers to GCP Locations: https://cloud.google. - # com/about/locations/ + # com/about/locations/ RECOMMENDER_ID refers to supported recommenders: https:// + # cloud.google.com/recommender/docs/recommenders. # @param [String] filter # Filter expression to restrict the recommendations returned. Supported filter # fields: state_info.state Eg: `state_info.state:"DISMISSED" or state_info.state: diff --git a/generated/google/apis/youtube_partner_v1.rb b/generated/google/apis/youtube_partner_v1.rb index 716d98a7b..b88347595 100644 --- a/generated/google/apis/youtube_partner_v1.rb +++ b/generated/google/apis/youtube_partner_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://devsite.googleplex.com/youtube/partner/docs/v1/ module YoutubePartnerV1 VERSION = 'V1' - REVISION = '20200924' + REVISION = '20200929' # View and manage your assets and associated content on YouTube AUTH_YOUTUBEPARTNER = 'https://www.googleapis.com/auth/youtubepartner'