From af15d561f1922e936be21bb35cbccac8415f2e2e Mon Sep 17 00:00:00 2001 From: Yoshi Automation Bot Date: Thu, 29 Oct 2020 02:30:03 -0700 Subject: [PATCH] feat: Automated regeneration of deploymentmanager v2beta client (#1320) This PR was generated using Autosynth. :rainbow:
Log from Synthtool ``` 2020-10-29 02:14:23,474 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py. On branch autosynth-deploymentmanager-v2beta nothing to commit, working tree clean 2020-10-29 02:14:23,502 synthtool [DEBUG] > Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth deploymentmanager v2beta DEBUG:synthtool:Running: docker run --rm -v/home/kbuilder/.cache/synthtool/google-api-ruby-client:/workspace -v/var/run/docker.sock:/var/run/docker.sock -w /workspace --entrypoint script/synth.rb gcr.io/cloud-devrel-kokoro-resources/yoshi-ruby/autosynth deploymentmanager v2beta bundle install Don't run Bundler as root. Bundler can ask for sudo if it is needed, and installing your bundle as root will break this application for all non-root users on this machine. The dependency jruby-openssl (>= 0) will be unused by any of the platforms Bundler is installing for. Bundler is installing for ruby but the dependency is only for java. To add those platforms to the bundle, run `bundle lock --add-platform java`. Fetching gem metadata from https://rubygems.org/......... Fetching gem metadata from https://rubygems.org/. Resolving dependencies... Fetching rake 11.3.0 Installing rake 11.3.0 Fetching concurrent-ruby 1.1.7 Installing concurrent-ruby 1.1.7 Fetching i18n 1.8.5 Installing i18n 1.8.5 Fetching minitest 5.14.2 Installing minitest 5.14.2 Fetching thread_safe 0.3.6 Installing thread_safe 0.3.6 Fetching tzinfo 1.2.7 Installing tzinfo 1.2.7 Fetching activesupport 5.0.7.2 Installing activesupport 5.0.7.2 Fetching public_suffix 4.0.6 Installing public_suffix 4.0.6 Fetching addressable 2.7.0 Installing addressable 2.7.0 Fetching ast 2.4.1 Installing ast 2.4.1 Using bundler 2.1.4 Fetching byebug 11.1.3 Installing byebug 11.1.3 with native extensions Fetching coderay 1.1.3 Installing coderay 1.1.3 Fetching json 2.3.1 Installing json 2.3.1 with native extensions Fetching docile 1.3.2 Installing docile 1.3.2 Fetching simplecov-html 0.10.2 Installing simplecov-html 0.10.2 Fetching simplecov 0.16.1 Installing simplecov 0.16.1 Using sync 0.5.0 Fetching tins 1.26.0 Installing tins 1.26.0 Fetching term-ansicolor 1.7.1 Installing term-ansicolor 1.7.1 Fetching thor 0.20.3 Installing thor 0.20.3 Fetching coveralls 0.8.23 Installing coveralls 0.8.23 Fetching crack 0.4.4 Installing crack 0.4.4 Fetching declarative 0.0.20 Installing declarative 0.0.20 Fetching declarative-option 0.1.0 Installing declarative-option 0.1.0 Fetching diff-lcs 1.4.4 Installing diff-lcs 1.4.4 Fetching dotenv 2.7.6 Installing dotenv 2.7.6 Fetching fakefs 0.20.1 Installing fakefs 0.20.1 Fetching multipart-post 2.1.1 Installing multipart-post 2.1.1 Fetching ruby2_keywords 0.0.2 Installing ruby2_keywords 0.0.2 Fetching faraday 1.1.0 Installing faraday 1.1.0 Fetching gems 1.2.0 Installing gems 1.2.0 Fetching github-markup 1.7.0 Installing github-markup 1.7.0 Fetching jwt 2.2.2 Installing jwt 2.2.2 Fetching memoist 0.16.2 Installing memoist 0.16.2 Fetching multi_json 1.15.0 Installing multi_json 1.15.0 Fetching os 0.9.6 Installing os 0.9.6 Fetching signet 0.14.0 Installing signet 0.14.0 Fetching googleauth 0.14.0 Installing googleauth 0.14.0 Fetching httpclient 2.8.3 Installing httpclient 2.8.3 Fetching mini_mime 1.0.2 Installing mini_mime 1.0.2 Fetching uber 0.1.0 Installing uber 0.1.0 Fetching representable 3.0.4 Installing representable 3.0.4 Fetching retriable 3.1.2 Installing retriable 3.1.2 Fetching rexml 3.2.4 Installing rexml 3.2.4 Using google-api-client 0.47.0 from source at `.` Fetching google-id-token 1.4.2 Installing google-id-token 1.4.2 Fetching hashdiff 1.0.1 Installing hashdiff 1.0.1 Fetching mime-types-data 3.2020.0512 Installing mime-types-data 3.2020.0512 Fetching mime-types 3.3.1 Installing mime-types 3.3.1 Fetching multi_xml 0.6.0 Installing multi_xml 0.6.0 Fetching httparty 0.18.1 Installing httparty 0.18.1 Fetching rspec-support 3.9.4 Installing rspec-support 3.9.4 Fetching rspec-core 3.9.3 Installing rspec-core 3.9.3 Fetching rspec-expectations 3.9.3 Installing rspec-expectations 3.9.3 Fetching rspec-mocks 3.9.1 Installing rspec-mocks 3.9.1 Fetching rspec 3.9.0 Installing rspec 3.9.0 Fetching json_spec 1.1.5 Installing json_spec 1.1.5 Fetching launchy 2.5.0 Installing launchy 2.5.0 Fetching little-plugger 1.1.4 Installing little-plugger 1.1.4 Fetching logging 2.3.0 Installing logging 2.3.0 Fetching method_source 1.0.0 Installing method_source 1.0.0 Fetching opencensus 0.5.0 Installing opencensus 0.5.0 Fetching parallel 1.19.2 Installing parallel 1.19.2 Fetching parser 2.7.2.0 Installing parser 2.7.2.0 Fetching powerpack 0.1.2 Installing powerpack 0.1.2 Fetching pry 0.13.1 Installing pry 0.13.1 Fetching pry-byebug 3.9.0 Installing pry-byebug 3.9.0 Fetching yard 0.9.25 Installing yard 0.9.25 Fetching pry-doc 0.13.5 Installing pry-doc 0.13.5 Fetching rainbow 2.2.2 Installing rainbow 2.2.2 with native extensions Fetching redcarpet 3.5.0 Installing redcarpet 3.5.0 with native extensions Fetching redis 3.3.5 Installing redis 3.3.5 Fetching rmail 1.1.4 Installing rmail 1.1.4 Fetching ruby-progressbar 1.10.1 Installing ruby-progressbar 1.10.1 Fetching unicode-display_width 1.7.0 Installing unicode-display_width 1.7.0 Fetching rubocop 0.49.1 Installing rubocop 0.49.1 Fetching webmock 2.3.2 Installing webmock 2.3.2 Bundle complete! 31 Gemfile dependencies, 78 gems now installed. Use `bundle info [gemname]` to see where a bundled gem is installed. Post-install message from i18n: HEADS UP! i18n 1.1 changed fallbacks to exclude default locale. But that may break your application. If you are upgrading your Rails application from an older version of Rails: Please check your Rails app for 'config.i18n.fallbacks = true'. If you're using I18n (>= 1.1.0) and Rails (< 5.2.2), this should be 'config.i18n.fallbacks = [I18n.default_locale]'. If not, fallbacks will be broken in your app by I18n 1.1.x. If you are starting a NEW Rails application, you can ignore this notice. For more info see: https://github.com/svenfuchs/i18n/releases/tag/v1.1.0 Post-install message from httparty: When you HTTParty, you must party hard! echo a | bundle exec bin/generate-api gen generated --api=deploymentmanager.v2beta --names-out=/workspace/api_names_out.yaml Loading deploymentmanager, version v2beta from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/deploymentmanager.v2beta.json conflict google/apis/deploymentmanager_v2beta.rb Wrote metadata to generated/google/apis/deploymentmanager_v2beta/synth.metadata. DEBUG:synthtool:Wrote metadata to generated/google/apis/deploymentmanager_v2beta/synth.metadata. ```
Full log will be available here: https://source.cloud.google.com/results/invocations/dedf3ce5-cab8-4d7e-bd70-41a74a97ec02/targets - [ ] To automatically regenerate this PR, check this box. --- api_names_out.yaml | 9 + .../google/apis/deploymentmanager_v2beta.rb | 11 +- .../apis/deploymentmanager_v2beta/classes.rb | 856 +++++------------- .../representations.rb | 132 --- .../apis/deploymentmanager_v2beta/service.rb | 637 ++++++------- .../deploymentmanager_v2beta/synth.metadata | 2 +- 6 files changed, 541 insertions(+), 1106 deletions(-) diff --git a/api_names_out.yaml b/api_names_out.yaml index dbe669e66..7021784ad 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -66713,6 +66713,7 @@ "/deploymentmanager:v2beta/deploymentmanager.compositeTypes.list/orderBy": order_by "/deploymentmanager:v2beta/deploymentmanager.compositeTypes.list/pageToken": page_token "/deploymentmanager:v2beta/deploymentmanager.compositeTypes.list/project": project +"/deploymentmanager:v2beta/deploymentmanager.compositeTypes.list/returnPartialSuccess": return_partial_success "/deploymentmanager:v2beta/deploymentmanager.compositeTypes.patch": patch_composite_type "/deploymentmanager:v2beta/deploymentmanager.compositeTypes.patch/compositeType": composite_type "/deploymentmanager:v2beta/deploymentmanager.compositeTypes.patch/project": project @@ -66730,6 +66731,7 @@ "/deploymentmanager:v2beta/deploymentmanager.deployments.get/deployment": deployment "/deploymentmanager:v2beta/deploymentmanager.deployments.get/project": project "/deploymentmanager:v2beta/deploymentmanager.deployments.getIamPolicy": get_deployment_iam_policy +"/deploymentmanager:v2beta/deploymentmanager.deployments.getIamPolicy/optionsRequestedPolicyVersion": options_requested_policy_version "/deploymentmanager:v2beta/deploymentmanager.deployments.getIamPolicy/project": project "/deploymentmanager:v2beta/deploymentmanager.deployments.getIamPolicy/resource": resource "/deploymentmanager:v2beta/deploymentmanager.deployments.insert": insert_deployment @@ -66742,6 +66744,7 @@ "/deploymentmanager:v2beta/deploymentmanager.deployments.list/orderBy": order_by "/deploymentmanager:v2beta/deploymentmanager.deployments.list/pageToken": page_token "/deploymentmanager:v2beta/deploymentmanager.deployments.list/project": project +"/deploymentmanager:v2beta/deploymentmanager.deployments.list/returnPartialSuccess": return_partial_success "/deploymentmanager:v2beta/deploymentmanager.deployments.patch": patch_deployment "/deploymentmanager:v2beta/deploymentmanager.deployments.patch/createPolicy": create_policy "/deploymentmanager:v2beta/deploymentmanager.deployments.patch/deletePolicy": delete_policy @@ -66774,6 +66777,7 @@ "/deploymentmanager:v2beta/deploymentmanager.manifests.list/orderBy": order_by "/deploymentmanager:v2beta/deploymentmanager.manifests.list/pageToken": page_token "/deploymentmanager:v2beta/deploymentmanager.manifests.list/project": project +"/deploymentmanager:v2beta/deploymentmanager.manifests.list/returnPartialSuccess": return_partial_success "/deploymentmanager:v2beta/deploymentmanager.operations.get": get_operation "/deploymentmanager:v2beta/deploymentmanager.operations.get/operation": operation "/deploymentmanager:v2beta/deploymentmanager.operations.get/project": project @@ -66783,6 +66787,7 @@ "/deploymentmanager:v2beta/deploymentmanager.operations.list/orderBy": order_by "/deploymentmanager:v2beta/deploymentmanager.operations.list/pageToken": page_token "/deploymentmanager:v2beta/deploymentmanager.operations.list/project": project +"/deploymentmanager:v2beta/deploymentmanager.operations.list/returnPartialSuccess": return_partial_success "/deploymentmanager:v2beta/deploymentmanager.resources.get": get_resource "/deploymentmanager:v2beta/deploymentmanager.resources.get/deployment": deployment "/deploymentmanager:v2beta/deploymentmanager.resources.get/project": project @@ -66794,6 +66799,7 @@ "/deploymentmanager:v2beta/deploymentmanager.resources.list/orderBy": order_by "/deploymentmanager:v2beta/deploymentmanager.resources.list/pageToken": page_token "/deploymentmanager:v2beta/deploymentmanager.resources.list/project": project +"/deploymentmanager:v2beta/deploymentmanager.resources.list/returnPartialSuccess": return_partial_success "/deploymentmanager:v2beta/deploymentmanager.typeProviders.delete": delete_type_provider "/deploymentmanager:v2beta/deploymentmanager.typeProviders.delete/project": project "/deploymentmanager:v2beta/deploymentmanager.typeProviders.delete/typeProvider": type_provider @@ -66812,12 +66818,14 @@ "/deploymentmanager:v2beta/deploymentmanager.typeProviders.list/orderBy": order_by "/deploymentmanager:v2beta/deploymentmanager.typeProviders.list/pageToken": page_token "/deploymentmanager:v2beta/deploymentmanager.typeProviders.list/project": project +"/deploymentmanager:v2beta/deploymentmanager.typeProviders.list/returnPartialSuccess": return_partial_success "/deploymentmanager:v2beta/deploymentmanager.typeProviders.listTypes": list_type_provider_types "/deploymentmanager:v2beta/deploymentmanager.typeProviders.listTypes/filter": filter "/deploymentmanager:v2beta/deploymentmanager.typeProviders.listTypes/maxResults": max_results "/deploymentmanager:v2beta/deploymentmanager.typeProviders.listTypes/orderBy": order_by "/deploymentmanager:v2beta/deploymentmanager.typeProviders.listTypes/pageToken": page_token "/deploymentmanager:v2beta/deploymentmanager.typeProviders.listTypes/project": project +"/deploymentmanager:v2beta/deploymentmanager.typeProviders.listTypes/returnPartialSuccess": return_partial_success "/deploymentmanager:v2beta/deploymentmanager.typeProviders.listTypes/typeProvider": type_provider "/deploymentmanager:v2beta/deploymentmanager.typeProviders.patch": patch_type_provider "/deploymentmanager:v2beta/deploymentmanager.typeProviders.patch/project": project @@ -66831,6 +66839,7 @@ "/deploymentmanager:v2beta/deploymentmanager.types.list/orderBy": order_by "/deploymentmanager:v2beta/deploymentmanager.types.list/pageToken": page_token "/deploymentmanager:v2beta/deploymentmanager.types.list/project": project +"/deploymentmanager:v2beta/deploymentmanager.types.list/returnPartialSuccess": return_partial_success "/deploymentmanager:v2beta/fields": fields "/deploymentmanager:v2beta/key": key "/deploymentmanager:v2beta/quotaUser": quota_user diff --git a/generated/google/apis/deploymentmanager_v2beta.rb b/generated/google/apis/deploymentmanager_v2beta.rb index b800856c2..478a45e09 100644 --- a/generated/google/apis/deploymentmanager_v2beta.rb +++ b/generated/google/apis/deploymentmanager_v2beta.rb @@ -18,15 +18,16 @@ require 'google/apis/deploymentmanager_v2beta/representations.rb' module Google module Apis - # Google Cloud Deployment Manager API V2Beta Methods + # Cloud Deployment Manager V2 API # - # The Deployment Manager API allows users to declaratively configure, deploy and - # run complex solutions on the Google Cloud Platform. + # The Google Cloud Deployment Manager v2 API provides services for configuring, + # deploying, and viewing Google Cloud services and APIs via templates which + # specify deployments of Cloud resources. # - # @see https://developers.google.com/deployment-manager/ + # @see http://cloud.google.com/deployment-manager module DeploymentmanagerV2beta VERSION = 'V2beta' - REVISION = '20200519' + REVISION = '20201022' # 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/deploymentmanager_v2beta/classes.rb b/generated/google/apis/deploymentmanager_v2beta/classes.rb index c5e7142e2..36a837e26 100644 --- a/generated/google/apis/deploymentmanager_v2beta/classes.rb +++ b/generated/google/apis/deploymentmanager_v2beta/classes.rb @@ -31,7 +31,9 @@ module Google # @return [String] attr_accessor :method_match - # + # Deployment manager will poll instances for this API resource setting a RUNNING + # state, and blocking until polling conditions tell whether the resource is + # completed or failed. # Corresponds to the JSON property `pollingOptions` # @return [Google::Apis::DeploymentmanagerV2beta::PollingOptions] attr_accessor :polling_options @@ -49,21 +51,19 @@ module Google # 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. + # 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 AuditConfig include Google::Apis::Core::Hashable @@ -72,11 +72,6 @@ module Google # @return [Array] attr_accessor :audit_log_configs - # - # Corresponds to the JSON property `exemptedMembers` - # @return [Array] - attr_accessor :exempted_members - # 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. @@ -91,31 +86,24 @@ module Google # Update properties of this object def update!(**args) @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs) - @exempted_members = args[:exempted_members] if args.key?(:exempted_members) @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. + # 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 AuditLogConfig 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][]. + # Follows the same format of Binding.members. # Corresponds to the JSON property `exemptedMembers` # @return [Array] attr_accessor :exempted_members - # - # Corresponds to the JSON property `ignoreChildExemptions` - # @return [Boolean] - attr_accessor :ignore_child_exemptions - alias_method :ignore_child_exemptions?, :ignore_child_exemptions - # The log type that this config enables. # Corresponds to the JSON property `logType` # @return [String] @@ -128,30 +116,10 @@ module Google # Update properties of this object def update!(**args) @exempted_members = args[:exempted_members] if args.key?(:exempted_members) - @ignore_child_exemptions = args[:ignore_child_exemptions] if args.key?(:ignore_child_exemptions) @log_type = args[:log_type] if args.key?(:log_type) end end - # Authorization-related information used by Cloud Audit Logging. - class AuthorizationLoggingOptions - include Google::Apis::Core::Hashable - - # The type of the permission that was checked. - # Corresponds to the JSON property `permissionType` - # @return [String] - attr_accessor :permission_type - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @permission_type = args[:permission_type] if args.key?(:permission_type) - end - end - # BaseType that describes a service-backed Type. class BaseType include Google::Apis::Core::Hashable @@ -221,58 +189,49 @@ module Google # 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. + # 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::DeploymentmanagerV2beta::Expr] 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 + # 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`. + # 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 @@ -356,21 +315,16 @@ module Google # @return [String] attr_accessor :name - # Represents an Operation resource. - # Google Compute Engine has three Operation resources: - # * [Global](/compute/docs/reference/rest/`$api_version`/globalOperations) * [ - # Regional](/compute/docs/reference/rest/`$api_version`/regionOperations) * [ - # Zonal](/compute/docs/reference/rest/`$api_version`/zoneOperations) - # You can use an operation resource to manage asynchronous API requests. For - # more information, read Handling API responses. - # Operations can be global, regional or zonal. - # - For global operations, use the `globalOperations` resource. - # - For regional operations, use the `regionOperations` resource. - # - For zonal operations, use the `zonalOperations` resource. - # For more information, read Global, Regional, and Zonal Resources. (== - # resource_for `$api_version`.globalOperations ==) (== resource_for `$ - # api_version`.regionOperations ==) (== resource_for `$api_version`. - # zoneOperations ==) + # Represents an Operation resource. Google Compute Engine has three Operation + # resources: * [Global](/compute/docs/reference/rest/`$api_version`/ + # globalOperations) * [Regional](/compute/docs/reference/rest/`$api_version`/ + # regionOperations) * [Zonal](/compute/docs/reference/rest/`$api_version`/ + # zoneOperations) You can use an operation resource to manage asynchronous API + # requests. For more information, read Handling API responses. Operations can be + # global, regional or zonal. - For global operations, use the `globalOperations` + # resource. - For regional operations, use the `regionOperations` resource. - + # For zonal operations, use the `zonalOperations` resource. For more information, + # read Global, Regional, and Zonal Resources. # Corresponds to the JSON property `operation` # @return [Google::Apis::DeploymentmanagerV2beta::Operation] attr_accessor :operation @@ -408,16 +362,16 @@ module Google end end - # + # Label object for CompositeTypes class CompositeTypeLabelEntry include Google::Apis::Core::Hashable - # + # Key of the label # Corresponds to the JSON property `key` # @return [String] attr_accessor :key - # + # Value of the label # Corresponds to the JSON property `value` # @return [String] attr_accessor :value @@ -459,50 +413,6 @@ module Google end end - # A condition to be met. - class Condition - include Google::Apis::Core::Hashable - - # Trusted attributes supplied by the IAM system. - # Corresponds to the JSON property `iam` - # @return [String] - attr_accessor :iam - - # An operator to apply the subject with. - # Corresponds to the JSON property `op` - # @return [String] - attr_accessor :op - - # Trusted attributes discharged by the service. - # Corresponds to the JSON property `svc` - # @return [String] - attr_accessor :svc - - # Trusted attributes supplied by any service that owns resources and uses the - # IAM system for access control. - # Corresponds to the JSON property `sys` - # @return [String] - attr_accessor :sys - - # The objects of the condition. - # Corresponds to the JSON property `values` - # @return [Array] - attr_accessor :values - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @iam = args[:iam] if args.key?(:iam) - @op = args[:op] if args.key?(:op) - @svc = args[:svc] if args.key?(:svc) - @sys = args[:sys] if args.key?(:sys) - @values = args[:values] if args.key?(:values) - end - end - # class ConfigFile include Google::Apis::Core::Hashable @@ -568,8 +478,8 @@ module Google # update()`, `stop()`, and `cancelPreview()` requests. A fingerprint is a # randomly generated value that must be provided with `update()`, `stop()`, and ` # cancelPreview()` requests to perform optimistic locking. This ensures - # optimistic concurrency so that only one request happens at a time. - # The fingerprint is initially generated by Deployment Manager and changes after + # optimistic concurrency so that only one request happens at a time. The + # fingerprint is initially generated by Deployment Manager and changes after # every request to modify data. To get the latest fingerprint value, perform a ` # get()` request to a deployment. # Corresponds to the JSON property `fingerprint` @@ -587,11 +497,11 @@ module Google # @return [String] attr_accessor :insert_time - # Map of labels; provided by the client when the resource is created or updated. - # Specifically: Label keys must be between 1 and 63 characters long and must - # conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` - # Label values must be between 0 and 63 characters long and must conform to the - # regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. + # Map of One Platform labels; provided by the client when the resource is + # created or updated. Specifically: Label keys must be between 1 and 63 + # characters long and must conform to the following regular expression: `[a-z]([- + # a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and + # must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -613,21 +523,16 @@ module Google # @return [String] attr_accessor :name - # Represents an Operation resource. - # Google Compute Engine has three Operation resources: - # * [Global](/compute/docs/reference/rest/`$api_version`/globalOperations) * [ - # Regional](/compute/docs/reference/rest/`$api_version`/regionOperations) * [ - # Zonal](/compute/docs/reference/rest/`$api_version`/zoneOperations) - # You can use an operation resource to manage asynchronous API requests. For - # more information, read Handling API responses. - # Operations can be global, regional or zonal. - # - For global operations, use the `globalOperations` resource. - # - For regional operations, use the `regionOperations` resource. - # - For zonal operations, use the `zonalOperations` resource. - # For more information, read Global, Regional, and Zonal Resources. (== - # resource_for `$api_version`.globalOperations ==) (== resource_for `$ - # api_version`.regionOperations ==) (== resource_for `$api_version`. - # zoneOperations ==) + # Represents an Operation resource. Google Compute Engine has three Operation + # resources: * [Global](/compute/docs/reference/rest/`$api_version`/ + # globalOperations) * [Regional](/compute/docs/reference/rest/`$api_version`/ + # regionOperations) * [Zonal](/compute/docs/reference/rest/`$api_version`/ + # zoneOperations) You can use an operation resource to manage asynchronous API + # requests. For more information, read Handling API responses. Operations can be + # global, regional or zonal. - For global operations, use the `globalOperations` + # resource. - For regional operations, use the `regionOperations` resource. - + # For zonal operations, use the `zonalOperations` resource. For more information, + # read Global, Regional, and Zonal Resources. # Corresponds to the JSON property `operation` # @return [Google::Apis::DeploymentmanagerV2beta::Operation] attr_accessor :operation @@ -637,12 +542,14 @@ module Google # @return [String] attr_accessor :self_link - # + # [Input Only] The parameters that define your deployment, including the + # deployment configuration and relevant templates. # Corresponds to the JSON property `target` # @return [Google::Apis::DeploymentmanagerV2beta::TargetConfiguration] attr_accessor :target - # + # Output only. If Deployment Manager is currently updating or previewing an + # update to this deployment, the updated configuration appears here. # Corresponds to the JSON property `update` # @return [Google::Apis::DeploymentmanagerV2beta::DeploymentUpdate] attr_accessor :update @@ -673,16 +580,16 @@ module Google end end - # + # Label object for Deployments class DeploymentLabelEntry include Google::Apis::Core::Hashable - # + # Key of the label # Corresponds to the JSON property `key` # @return [String] attr_accessor :key - # + # Value of the label # Corresponds to the JSON property `value` # @return [String] attr_accessor :value @@ -708,7 +615,7 @@ module Google # @return [String] attr_accessor :description - # Output only. Map of labels; provided by the client when the resource is + # Map of One Platform labels; provided by the client when the resource is # created or updated. Specifically: Label keys must be between 1 and 63 # characters long and must conform to the following regular expression: `[a-z]([- # a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and @@ -735,16 +642,16 @@ module Google end end - # + # Label object for DeploymentUpdate class DeploymentUpdateLabelEntry include Google::Apis::Core::Hashable - # + # Key of the label # Corresponds to the JSON property `key` # @return [String] attr_accessor :key - # + # Value of the label # Corresponds to the JSON property `value` # @return [String] attr_accessor :value @@ -769,10 +676,10 @@ module Google # to perform optimistic locking. This ensures optimistic concurrency so that the # deployment does not have conflicting requests (e.g. if someone attempts to # make a new update request while another user attempts to cancel a preview, - # this would prevent one of the requests). - # The fingerprint is initially generated by Deployment Manager and changes after - # every request to modify a deployment. To get the latest fingerprint value, - # perform a `get()` request on the deployment. + # this would prevent one of the requests). The fingerprint is initially + # generated by Deployment Manager and changes after every request to modify a + # deployment. To get the latest fingerprint value, perform a `get()` request on + # the deployment. # Corresponds to the JSON property `fingerprint` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -823,10 +730,9 @@ module Google # optimistic locking. This ensures optimistic concurrency so that the deployment # does not have conflicting requests (e.g. if someone attempts to make a new # update request while another user attempts to stop an ongoing update request, - # this would prevent a collision). - # The fingerprint is initially generated by Deployment Manager and changes after - # every request to modify a deployment. To get the latest fingerprint value, - # perform a `get()` request on the deployment. + # this would prevent a collision). The fingerprint is initially generated by + # Deployment Manager and changes after every request to modify a deployment. To + # get the latest fingerprint value, perform a `get()` request on the deployment. # Corresponds to the JSON property `fingerprint` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -870,24 +776,19 @@ module Google # 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. + # 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 Expr include Google::Apis::Core::Hashable @@ -945,35 +846,32 @@ module Google attr_accessor :etag # 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/). + # 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::DeploymentmanagerV2beta::Policy] attr_accessor :policy @@ -1053,171 +951,11 @@ module Google end end - # Specifies what kind of log the caller must write - class LogConfig - include Google::Apis::Core::Hashable - - # Write a Cloud Audit log - # Corresponds to the JSON property `cloudAudit` - # @return [Google::Apis::DeploymentmanagerV2beta::LogConfigCloudAuditOptions] - attr_accessor :cloud_audit - - # Increment a streamz counter with the specified metric and field names. - # Metric names should start with a '/', generally be lowercase-only, and end in " - # _count". Field names should not contain an initial slash. The actual exported - # metric names will have "/iam/policy" prepended. - # Field names correspond to IAM request parameters and field values are their - # respective values. - # Supported field names: - "authority", which is "[token]" if IAMContext.token - # is present, otherwise the value of IAMContext.authority_selector if present, - # and otherwise a representation of IAMContext.principal; or - "iam_principal", - # a representation of IAMContext.principal even if a token or authority selector - # is present; or - "" (empty string), resulting in a counter with no fields. - # Examples: counter ` metric: "/debug_access_count" field: "iam_principal" ` ==> - # increment counter /iam/policy/debug_access_count `iam_principal=[value of - # IAMContext.principal]` - # Corresponds to the JSON property `counter` - # @return [Google::Apis::DeploymentmanagerV2beta::LogConfigCounterOptions] - attr_accessor :counter - - # Write a Data Access (Gin) log - # Corresponds to the JSON property `dataAccess` - # @return [Google::Apis::DeploymentmanagerV2beta::LogConfigDataAccessOptions] - attr_accessor :data_access - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @cloud_audit = args[:cloud_audit] if args.key?(:cloud_audit) - @counter = args[:counter] if args.key?(:counter) - @data_access = args[:data_access] if args.key?(:data_access) - end - end - - # Write a Cloud Audit log - class LogConfigCloudAuditOptions - include Google::Apis::Core::Hashable - - # Authorization-related information used by Cloud Audit Logging. - # Corresponds to the JSON property `authorizationLoggingOptions` - # @return [Google::Apis::DeploymentmanagerV2beta::AuthorizationLoggingOptions] - attr_accessor :authorization_logging_options - - # The log_name to populate in the Cloud Audit Record. - # Corresponds to the JSON property `logName` - # @return [String] - attr_accessor :log_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @authorization_logging_options = args[:authorization_logging_options] if args.key?(:authorization_logging_options) - @log_name = args[:log_name] if args.key?(:log_name) - end - end - - # Increment a streamz counter with the specified metric and field names. - # Metric names should start with a '/', generally be lowercase-only, and end in " - # _count". Field names should not contain an initial slash. The actual exported - # metric names will have "/iam/policy" prepended. - # Field names correspond to IAM request parameters and field values are their - # respective values. - # Supported field names: - "authority", which is "[token]" if IAMContext.token - # is present, otherwise the value of IAMContext.authority_selector if present, - # and otherwise a representation of IAMContext.principal; or - "iam_principal", - # a representation of IAMContext.principal even if a token or authority selector - # is present; or - "" (empty string), resulting in a counter with no fields. - # Examples: counter ` metric: "/debug_access_count" field: "iam_principal" ` ==> - # increment counter /iam/policy/debug_access_count `iam_principal=[value of - # IAMContext.principal]` - class LogConfigCounterOptions - include Google::Apis::Core::Hashable - - # Custom fields. - # Corresponds to the JSON property `customFields` - # @return [Array] - attr_accessor :custom_fields - - # The field value to attribute. - # Corresponds to the JSON property `field` - # @return [String] - attr_accessor :field - - # The metric to update. - # Corresponds to the JSON property `metric` - # @return [String] - attr_accessor :metric - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @custom_fields = args[:custom_fields] if args.key?(:custom_fields) - @field = args[:field] if args.key?(:field) - @metric = args[:metric] if args.key?(:metric) - end - end - - # Custom fields. These can be used to create a counter with arbitrary field/ - # value pairs. See: go/rpcsp-custom-fields. - class LogConfigCounterOptionsCustomField - include Google::Apis::Core::Hashable - - # Name is the field name. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Value is the field value. It is important that in contrast to the - # CounterOptions.field, the value here is a constant that is not derived from - # the IAMContext. - # Corresponds to the JSON property `value` - # @return [String] - attr_accessor :value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @name = args[:name] if args.key?(:name) - @value = args[:value] if args.key?(:value) - end - end - - # Write a Data Access (Gin) log - class LogConfigDataAccessOptions - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `logMode` - # @return [String] - attr_accessor :log_mode - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @log_mode = args[:log_mode] if args.key?(:log_mode) - end - end - # class Manifest include Google::Apis::Core::Hashable - # + # Output only. The YAML configuration for this manifest. # Corresponds to the JSON property `config` # @return [Google::Apis::DeploymentmanagerV2beta::ConfigFile] attr_accessor :config @@ -1248,8 +986,7 @@ module Google # @return [String] attr_accessor :layout - # Output only. - # The name of the manifest. + # Output only. The name of the manifest. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1302,21 +1039,16 @@ module Google end end - # Represents an Operation resource. - # Google Compute Engine has three Operation resources: - # * [Global](/compute/docs/reference/rest/`$api_version`/globalOperations) * [ - # Regional](/compute/docs/reference/rest/`$api_version`/regionOperations) * [ - # Zonal](/compute/docs/reference/rest/`$api_version`/zoneOperations) - # You can use an operation resource to manage asynchronous API requests. For - # more information, read Handling API responses. - # Operations can be global, regional or zonal. - # - For global operations, use the `globalOperations` resource. - # - For regional operations, use the `regionOperations` resource. - # - For zonal operations, use the `zonalOperations` resource. - # For more information, read Global, Regional, and Zonal Resources. (== - # resource_for `$api_version`.globalOperations ==) (== resource_for `$ - # api_version`.regionOperations ==) (== resource_for `$api_version`. - # zoneOperations ==) + # Represents an Operation resource. Google Compute Engine has three Operation + # resources: * [Global](/compute/docs/reference/rest/`$api_version`/ + # globalOperations) * [Regional](/compute/docs/reference/rest/`$api_version`/ + # regionOperations) * [Zonal](/compute/docs/reference/rest/`$api_version`/ + # zoneOperations) You can use an operation resource to manage asynchronous API + # requests. For more information, read Handling API responses. Operations can be + # global, regional or zonal. - For global operations, use the `globalOperations` + # resource. - For regional operations, use the `regionOperations` resource. - + # For zonal operations, use the `zonalOperations` resource. For more information, + # read Global, Regional, and Zonal Resources. class Operation include Google::Apis::Core::Hashable @@ -1552,8 +1284,8 @@ module Google # @return [String] attr_accessor :code - # [Output Only] Metadata about this warning in key: value format. For example: - # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # [Output Only] Metadata about this warning in key: value format. For example: " + # data": [ ` "key": "scope", "value": "zones/us-east1-d" ` # Corresponds to the JSON property `data` # @return [Array] attr_accessor :data @@ -1677,35 +1409,32 @@ module Google 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/). + # 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 Policy include Google::Apis::Core::Hashable @@ -1727,51 +1456,31 @@ module Google # 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. + # 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 - # - # Corresponds to the JSON property `iamOwned` - # @return [Boolean] - attr_accessor :iam_owned - alias_method :iam_owned?, :iam_owned - - # If more than one rule is specified, the rules are applied in the following - # manner: - All matching LOG rules are always applied. - If any DENY/ - # DENY_WITH_LOG rule matches, permission is denied. Logging will be applied if - # one or more matching rule requires logging. - Otherwise, if any ALLOW/ - # ALLOW_WITH_LOG rule matches, permission is granted. Logging will be applied if - # one or more matching rule requires logging. - Otherwise, if no rule applies, - # permission is denied. - # Corresponds to the JSON property `rules` - # @return [Array] - attr_accessor :rules - - # 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 + # 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). + # 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 @@ -1785,8 +1494,6 @@ module Google @audit_configs = args[:audit_configs] if args.key?(:audit_configs) @bindings = args[:bindings] if args.key?(:bindings) @etag = args[:etag] if args.key?(:etag) - @iam_owned = args[:iam_owned] if args.key?(:iam_owned) - @rules = args[:rules] if args.key?(:rules) @version = args[:version] if args.key?(:version) end end @@ -1884,7 +1591,8 @@ module Google # @return [String] attr_accessor :type - # + # Output only. If Deployment Manager is currently updating or previewing an + # update to this resource, the updated configuration appears here. # Corresponds to the JSON property `update` # @return [Google::Apis::DeploymentmanagerV2beta::ResourceUpdate] attr_accessor :update @@ -1935,8 +1643,8 @@ module Google # @return [String] attr_accessor :code - # [Output Only] Metadata about this warning in key: value format. For example: - # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # [Output Only] Metadata about this warning in key: value format. For example: " + # data": [ ` "key": "scope", "value": "zones/us-east1-d" ` # Corresponds to the JSON property `data` # @return [Array] attr_accessor :data @@ -2136,8 +1844,8 @@ module Google # @return [String] attr_accessor :code - # [Output Only] Metadata about this warning in key: value format. For example: - # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # [Output Only] Metadata about this warning in key: value format. For example: " + # data": [ ` "key": "scope", "value": "zones/us-east1-d" ` # Corresponds to the JSON property `data` # @return [Array] attr_accessor :data @@ -2217,67 +1925,6 @@ module Google end end - # A rule to be applied in a Policy. - class Rule - include Google::Apis::Core::Hashable - - # Required - # Corresponds to the JSON property `action` - # @return [String] - attr_accessor :action - - # Additional restrictions that must be met. All conditions must pass for the - # rule to match. - # Corresponds to the JSON property `conditions` - # @return [Array] - attr_accessor :conditions - - # Human-readable description of the rule. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/ - # AUTHORITY_SELECTOR is in at least one of these entries. - # Corresponds to the JSON property `ins` - # @return [Array] - attr_accessor :ins - - # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries - # that match the LOG action. - # Corresponds to the JSON property `logConfigs` - # @return [Array] - attr_accessor :log_configs - - # If one or more 'not_in' clauses are specified, the rule matches if the - # PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. - # Corresponds to the JSON property `notIns` - # @return [Array] - attr_accessor :not_ins - - # A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value - # of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets. - # *') matches all verbs. - # 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) - @action = args[:action] if args.key?(:action) - @conditions = args[:conditions] if args.key?(:conditions) - @description = args[:description] if args.key?(:description) - @ins = args[:ins] if args.key?(:ins) - @log_configs = args[:log_configs] if args.key?(:log_configs) - @not_ins = args[:not_ins] if args.key?(:not_ins) - @permissions = args[:permissions] if args.key?(:permissions) - end - end - # Service Account used as a credential. class ServiceAccount include Google::Apis::Core::Hashable @@ -2302,7 +1949,7 @@ module Google class TargetConfiguration include Google::Apis::Core::Hashable - # + # The configuration to use for this deployment. # Corresponds to the JSON property `config` # @return [Google::Apis::DeploymentmanagerV2beta::ConfigFile] attr_accessor :config @@ -2432,11 +2079,11 @@ module Google # @return [String] attr_accessor :insert_time - # Map of labels; provided by the client when the resource is created or updated. - # Specifically: Label keys must be between 1 and 63 characters long and must - # conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` - # Label values must be between 0 and 63 characters long and must conform to the - # regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. + # Map of One Platform labels; provided by the client when the resource is + # created or updated. Specifically: Label keys must be between 1 and 63 + # characters long and must conform to the following regular expression: `[a-z]([- + # a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and + # must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -2446,21 +2093,16 @@ module Google # @return [String] attr_accessor :name - # Represents an Operation resource. - # Google Compute Engine has three Operation resources: - # * [Global](/compute/docs/reference/rest/`$api_version`/globalOperations) * [ - # Regional](/compute/docs/reference/rest/`$api_version`/regionOperations) * [ - # Zonal](/compute/docs/reference/rest/`$api_version`/zoneOperations) - # You can use an operation resource to manage asynchronous API requests. For - # more information, read Handling API responses. - # Operations can be global, regional or zonal. - # - For global operations, use the `globalOperations` resource. - # - For regional operations, use the `regionOperations` resource. - # - For zonal operations, use the `zonalOperations` resource. - # For more information, read Global, Regional, and Zonal Resources. (== - # resource_for `$api_version`.globalOperations ==) (== resource_for `$ - # api_version`.regionOperations ==) (== resource_for `$api_version`. - # zoneOperations ==) + # Represents an Operation resource. Google Compute Engine has three Operation + # resources: * [Global](/compute/docs/reference/rest/`$api_version`/ + # globalOperations) * [Regional](/compute/docs/reference/rest/`$api_version`/ + # regionOperations) * [Zonal](/compute/docs/reference/rest/`$api_version`/ + # zoneOperations) You can use an operation resource to manage asynchronous API + # requests. For more information, read Handling API responses. Operations can be + # global, regional or zonal. - For global operations, use the `globalOperations` + # resource. - For regional operations, use the `regionOperations` resource. - + # For zonal operations, use the `zonalOperations` resource. For more information, + # read Global, Regional, and Zonal Resources. # Corresponds to the JSON property `operation` # @return [Google::Apis::DeploymentmanagerV2beta::Operation] attr_accessor :operation @@ -2514,7 +2156,8 @@ module Google # @return [String] attr_accessor :name - # + # For base types with a collection, we return a schema and documentation link + # For template types, we return only a schema # Corresponds to the JSON property `schema` # @return [Google::Apis::DeploymentmanagerV2beta::TypeInfoSchemaInfo] attr_accessor :schema @@ -2573,16 +2216,16 @@ module Google end end - # + # Label object for Types class TypeLabelEntry include Google::Apis::Core::Hashable - # + # Key of the label # Corresponds to the JSON property `key` # @return [String] attr_accessor :key - # + # Value of the label # Corresponds to the JSON property `value` # @return [String] attr_accessor :value @@ -2644,11 +2287,11 @@ module Google # @return [String] attr_accessor :insert_time - # Map of labels; provided by the client when the resource is created or updated. - # Specifically: Label keys must be between 1 and 63 characters long and must - # conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` - # Label values must be between 0 and 63 characters long and must conform to the - # regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. + # Map of One Platform labels; provided by the client when the resource is + # created or updated. Specifically: Label keys must be between 1 and 63 + # characters long and must conform to the following regular expression: `[a-z]([- + # a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and + # must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?` # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -2663,21 +2306,16 @@ module Google # @return [String] attr_accessor :name - # Represents an Operation resource. - # Google Compute Engine has three Operation resources: - # * [Global](/compute/docs/reference/rest/`$api_version`/globalOperations) * [ - # Regional](/compute/docs/reference/rest/`$api_version`/regionOperations) * [ - # Zonal](/compute/docs/reference/rest/`$api_version`/zoneOperations) - # You can use an operation resource to manage asynchronous API requests. For - # more information, read Handling API responses. - # Operations can be global, regional or zonal. - # - For global operations, use the `globalOperations` resource. - # - For regional operations, use the `regionOperations` resource. - # - For zonal operations, use the `zonalOperations` resource. - # For more information, read Global, Regional, and Zonal Resources. (== - # resource_for `$api_version`.globalOperations ==) (== resource_for `$ - # api_version`.regionOperations ==) (== resource_for `$api_version`. - # zoneOperations ==) + # Represents an Operation resource. Google Compute Engine has three Operation + # resources: * [Global](/compute/docs/reference/rest/`$api_version`/ + # globalOperations) * [Regional](/compute/docs/reference/rest/`$api_version`/ + # regionOperations) * [Zonal](/compute/docs/reference/rest/`$api_version`/ + # zoneOperations) You can use an operation resource to manage asynchronous API + # requests. For more information, read Handling API responses. Operations can be + # global, regional or zonal. - For global operations, use the `globalOperations` + # resource. - For regional operations, use the `regionOperations` resource. - + # For zonal operations, use the `zonalOperations` resource. For more information, + # read Global, Regional, and Zonal Resources. # Corresponds to the JSON property `operation` # @return [Google::Apis::DeploymentmanagerV2beta::Operation] attr_accessor :operation @@ -2713,16 +2351,16 @@ module Google end end - # + # Label object for TypeProviders class TypeProviderLabelEntry include Google::Apis::Core::Hashable - # + # Key of the label # Corresponds to the JSON property `key` # @return [String] attr_accessor :key - # + # Value of the label # Corresponds to the JSON property `value` # @return [String] attr_accessor :value diff --git a/generated/google/apis/deploymentmanager_v2beta/representations.rb b/generated/google/apis/deploymentmanager_v2beta/representations.rb index ce16b5d9d..0e784f7a2 100644 --- a/generated/google/apis/deploymentmanager_v2beta/representations.rb +++ b/generated/google/apis/deploymentmanager_v2beta/representations.rb @@ -40,12 +40,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class AuthorizationLoggingOptions - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class BaseType class Representation < Google::Apis::Core::JsonRepresentation; end @@ -88,12 +82,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Condition - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ConfigFile class Representation < Google::Apis::Core::JsonRepresentation; end @@ -178,36 +166,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class LogConfig - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LogConfigCloudAuditOptions - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LogConfigCounterOptions - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LogConfigCounterOptionsCustomField - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LogConfigDataAccessOptions - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Manifest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -334,12 +292,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Rule - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ServiceAccount class Representation < Google::Apis::Core::JsonRepresentation; end @@ -444,7 +396,6 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::DeploymentmanagerV2beta::AuditLogConfig, decorator: Google::Apis::DeploymentmanagerV2beta::AuditLogConfig::Representation - collection :exempted_members, as: 'exemptedMembers' property :service, as: 'service' end end @@ -453,18 +404,10 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation collection :exempted_members, as: 'exemptedMembers' - property :ignore_child_exemptions, as: 'ignoreChildExemptions' property :log_type, as: 'logType' end end - class AuthorizationLoggingOptions - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :permission_type, as: 'permissionType' - end - end - class BaseType # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -540,17 +483,6 @@ module Google end end - class Condition - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :iam, as: 'iam' - property :op, as: 'op' - property :svc, as: 'svc' - property :sys, as: 'sys' - collection :values, as: 'values' - end - end - class ConfigFile # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -687,52 +619,6 @@ module Google end end - class LogConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :cloud_audit, as: 'cloudAudit', class: Google::Apis::DeploymentmanagerV2beta::LogConfigCloudAuditOptions, decorator: Google::Apis::DeploymentmanagerV2beta::LogConfigCloudAuditOptions::Representation - - property :counter, as: 'counter', class: Google::Apis::DeploymentmanagerV2beta::LogConfigCounterOptions, decorator: Google::Apis::DeploymentmanagerV2beta::LogConfigCounterOptions::Representation - - property :data_access, as: 'dataAccess', class: Google::Apis::DeploymentmanagerV2beta::LogConfigDataAccessOptions, decorator: Google::Apis::DeploymentmanagerV2beta::LogConfigDataAccessOptions::Representation - - end - end - - class LogConfigCloudAuditOptions - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :authorization_logging_options, as: 'authorizationLoggingOptions', class: Google::Apis::DeploymentmanagerV2beta::AuthorizationLoggingOptions, decorator: Google::Apis::DeploymentmanagerV2beta::AuthorizationLoggingOptions::Representation - - property :log_name, as: 'logName' - end - end - - class LogConfigCounterOptions - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :custom_fields, as: 'customFields', class: Google::Apis::DeploymentmanagerV2beta::LogConfigCounterOptionsCustomField, decorator: Google::Apis::DeploymentmanagerV2beta::LogConfigCounterOptionsCustomField::Representation - - property :field, as: 'field' - property :metric, as: 'metric' - end - end - - class LogConfigCounterOptionsCustomField - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :value, as: 'value' - end - end - - class LogConfigDataAccessOptions - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :log_mode, as: 'logMode' - end - end - class Manifest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -854,9 +740,6 @@ module Google collection :bindings, as: 'bindings', class: Google::Apis::DeploymentmanagerV2beta::Binding, decorator: Google::Apis::DeploymentmanagerV2beta::Binding::Representation property :etag, :base64 => true, as: 'etag' - property :iam_owned, as: 'iamOwned' - collection :rules, as: 'rules', class: Google::Apis::DeploymentmanagerV2beta::Rule, decorator: Google::Apis::DeploymentmanagerV2beta::Rule::Representation - property :version, as: 'version' end end @@ -980,21 +863,6 @@ module Google end end - class Rule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :action, as: 'action' - collection :conditions, as: 'conditions', class: Google::Apis::DeploymentmanagerV2beta::Condition, decorator: Google::Apis::DeploymentmanagerV2beta::Condition::Representation - - property :description, as: 'description' - collection :ins, as: 'ins' - collection :log_configs, as: 'logConfigs', class: Google::Apis::DeploymentmanagerV2beta::LogConfig, decorator: Google::Apis::DeploymentmanagerV2beta::LogConfig::Representation - - collection :not_ins, as: 'notIns' - collection :permissions, as: 'permissions' - end - end - class ServiceAccount # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/deploymentmanager_v2beta/service.rb b/generated/google/apis/deploymentmanager_v2beta/service.rb index 71665b67f..2fab57c72 100644 --- a/generated/google/apis/deploymentmanager_v2beta/service.rb +++ b/generated/google/apis/deploymentmanager_v2beta/service.rb @@ -20,36 +20,33 @@ require 'google/apis/errors' module Google module Apis module DeploymentmanagerV2beta - # Google Cloud Deployment Manager API V2Beta Methods + # Cloud Deployment Manager V2 API # - # The Deployment Manager API allows users to declaratively configure, deploy and - # run complex solutions on the Google Cloud Platform. + # The Google Cloud Deployment Manager v2 API provides services for configuring, + # deploying, and viewing Google Cloud services and APIs via templates which + # specify deployments of Cloud resources. # # @example # require 'google/apis/deploymentmanager_v2beta' # # Deploymentmanager = Google::Apis::DeploymentmanagerV2beta # Alias the module - # service = Deploymentmanager::DeploymentManagerV2BetaService.new + # service = Deploymentmanager::DeploymentManagerService.new # - # @see https://developers.google.com/deployment-manager/ - class DeploymentManagerV2BetaService < Google::Apis::Core::BaseService + # @see http://cloud.google.com/deployment-manager + class DeploymentManagerService < 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. + # 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 - # @return [String] - # Deprecated. Please use quotaUser instead. - attr_accessor :user_ip - def initialize - super('https://www.googleapis.com/', 'deploymentmanager/v2beta/projects/') - @batch_path = 'batch/deploymentmanager/v2beta' + super('https://deploymentmanager.googleapis.com/', '') + @batch_path = 'batch' end # Deletes a composite type. @@ -60,10 +57,8 @@ module Google # @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. + # 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 # @@ -76,15 +71,14 @@ module Google # @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_composite_type(project, composite_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/compositeTypes/{compositeType}', options) + def delete_composite_type(project, composite_type, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta::Operation::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta::Operation command.params['project'] = project unless project.nil? command.params['compositeType'] = composite_type unless composite_type.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 @@ -96,10 +90,8 @@ module Google # @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. + # 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 # @@ -112,15 +104,14 @@ module Google # @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_composite_type(project, composite_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/compositeTypes/{compositeType}', options) + def get_composite_type(project, composite_type, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta::CompositeType::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta::CompositeType command.params['project'] = project unless project.nil? command.params['compositeType'] = composite_type unless composite_type.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 @@ -131,10 +122,8 @@ module Google # @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. + # 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 # @@ -147,8 +136,8 @@ module Google # @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 insert_composite_type(project, composite_type_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/compositeTypes', options) + def insert_composite_type(project, composite_type_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'deploymentmanager/v2beta/projects/{project}/global/compositeTypes', options) command.request_representation = Google::Apis::DeploymentmanagerV2beta::CompositeType::Representation command.request_object = composite_type_object command.response_representation = Google::Apis::DeploymentmanagerV2beta::Operation::Representation @@ -156,7 +145,6 @@ module Google command.params['project'] = project unless project.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 @@ -167,19 +155,18 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. - # For example, if you are filtering Compute Engine instances, you can exclude + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For + # example, if you are filtering Compute Engine instances, you can exclude # instances named `example-instance` by specifying `name != example-instance`. # You can also filter nested fields. For example, you could specify `scheduling. # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based - # on resource labels. - # To filter on multiple expressions, provide each separate expression within - # parentheses. For example: ``` (scheduling.automaticRestart = true) ( - # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` - # expression. However, you can include `AND` and `OR` expressions explicitly. - # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - # Broadwell") AND (scheduling.automaticRestart = true) ``` + # on resource labels. To filter on multiple expressions, provide each separate + # expression within parentheses. For example: ``` (scheduling.automaticRestart = + # true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an ` + # AND` expression. However, you can include `AND` and `OR` expressions + # explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + # "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number # of available results is larger than `maxResults`, Compute Engine returns a ` @@ -187,23 +174,23 @@ module Google # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in - # alphanumerical order based on the resource name. - # You can also sort results in descending order based on the creation timestamp - # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` - # creationTimestamp` field in reverse chronological order (newest result first). - # Use this to sort resources like operations so that the newest operation is - # returned first. + # alphanumerical order based on the resource name. You can also sort results in + # descending order based on the creation timestamp using `orderBy=" + # creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + # field in reverse chronological order (newest result first). Use this to sort + # resources like operations so that the newest operation is returned first. # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned # by a previous list request to get the next page of results. + # @param [Boolean] return_partial_success + # Opt-in for partial success behavior which provides partial results in case of + # failure. The default value is false and the logic is the same as today. # @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. + # 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 # @@ -216,8 +203,8 @@ module Google # @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_composite_types(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/compositeTypes', options) + def list_composite_types(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/v2beta/projects/{project}/global/compositeTypes', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta::CompositeTypesListResponse::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta::CompositeTypesListResponse command.params['project'] = project unless project.nil? @@ -225,9 +212,9 @@ module Google command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.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 @@ -240,10 +227,8 @@ module Google # @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. + # 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 # @@ -256,8 +241,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_composite_type(project, composite_type, composite_type_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/compositeTypes/{compositeType}', options) + def patch_composite_type(project, composite_type, composite_type_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}', options) command.request_representation = Google::Apis::DeploymentmanagerV2beta::CompositeType::Representation command.request_object = composite_type_object command.response_representation = Google::Apis::DeploymentmanagerV2beta::Operation::Representation @@ -266,7 +251,6 @@ module Google command.params['compositeType'] = composite_type unless composite_type.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 @@ -279,10 +263,8 @@ module Google # @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. + # 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 # @@ -295,8 +277,8 @@ module Google # @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 update_composite_type(project, composite_type, composite_type_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/global/compositeTypes/{compositeType}', options) + def update_composite_type(project, composite_type, composite_type_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'deploymentmanager/v2beta/projects/{project}/global/compositeTypes/{compositeType}', options) command.request_representation = Google::Apis::DeploymentmanagerV2beta::CompositeType::Representation command.request_object = composite_type_object command.response_representation = Google::Apis::DeploymentmanagerV2beta::Operation::Representation @@ -305,7 +287,6 @@ module Google command.params['compositeType'] = composite_type unless composite_type.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 @@ -318,10 +299,8 @@ module Google # @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. + # 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 # @@ -334,8 +313,8 @@ module Google # @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_deployment_preview(project, deployment, deployments_cancel_preview_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/deployments/{deployment}/cancelPreview', options) + def cancel_deployment_preview(project, deployment, deployments_cancel_preview_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/cancelPreview', options) command.request_representation = Google::Apis::DeploymentmanagerV2beta::DeploymentsCancelPreviewRequest::Representation command.request_object = deployments_cancel_preview_request_object command.response_representation = Google::Apis::DeploymentmanagerV2beta::Operation::Representation @@ -344,7 +323,6 @@ module Google command.params['deployment'] = deployment unless deployment.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 @@ -358,10 +336,8 @@ module Google # @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. + # 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 # @@ -374,8 +350,8 @@ module Google # @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_deployment(project, deployment, delete_policy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/deployments/{deployment}', options) + def delete_deployment(project, deployment, delete_policy: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta::Operation::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta::Operation command.params['project'] = project unless project.nil? @@ -383,7 +359,6 @@ module Google command.query['deletePolicy'] = delete_policy unless delete_policy.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 @@ -395,10 +370,8 @@ module Google # @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. + # 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 # @@ -411,15 +384,14 @@ module Google # @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_deployment(project, deployment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/deployments/{deployment}', options) + def get_deployment(project, deployment, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta::Deployment::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta::Deployment command.params['project'] = project unless project.nil? command.params['deployment'] = deployment unless deployment.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 @@ -429,13 +401,13 @@ module Google # Project ID for this request. # @param [String] resource # Name or id of the resource for this request. + # @param [Fixnum] options_requested_policy_version + # Requested IAM Policy version. # @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. + # 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 # @@ -448,15 +420,15 @@ module Google # @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_deployment_iam_policy(project, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/deployments/{resource}/getIamPolicy', options) + def get_deployment_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta::Policy::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta::Policy command.params['project'] = project unless project.nil? command.params['resource'] = resource unless resource.nil? + command.query['optionsRequestedPolicyVersion'] = 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? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -478,10 +450,8 @@ module Google # @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. + # 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 # @@ -494,8 +464,8 @@ module Google # @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 insert_deployment(project, deployment_object = nil, create_policy: nil, preview: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/deployments', options) + def insert_deployment(project, deployment_object = nil, create_policy: nil, preview: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'deploymentmanager/v2beta/projects/{project}/global/deployments', options) command.request_representation = Google::Apis::DeploymentmanagerV2beta::Deployment::Representation command.request_object = deployment_object command.response_representation = Google::Apis::DeploymentmanagerV2beta::Operation::Representation @@ -505,7 +475,6 @@ module Google command.query['preview'] = preview unless preview.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 @@ -516,19 +485,18 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. - # For example, if you are filtering Compute Engine instances, you can exclude + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For + # example, if you are filtering Compute Engine instances, you can exclude # instances named `example-instance` by specifying `name != example-instance`. # You can also filter nested fields. For example, you could specify `scheduling. # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based - # on resource labels. - # To filter on multiple expressions, provide each separate expression within - # parentheses. For example: ``` (scheduling.automaticRestart = true) ( - # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` - # expression. However, you can include `AND` and `OR` expressions explicitly. - # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - # Broadwell") AND (scheduling.automaticRestart = true) ``` + # on resource labels. To filter on multiple expressions, provide each separate + # expression within parentheses. For example: ``` (scheduling.automaticRestart = + # true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an ` + # AND` expression. However, you can include `AND` and `OR` expressions + # explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + # "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number # of available results is larger than `maxResults`, Compute Engine returns a ` @@ -536,23 +504,23 @@ module Google # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in - # alphanumerical order based on the resource name. - # You can also sort results in descending order based on the creation timestamp - # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` - # creationTimestamp` field in reverse chronological order (newest result first). - # Use this to sort resources like operations so that the newest operation is - # returned first. + # alphanumerical order based on the resource name. You can also sort results in + # descending order based on the creation timestamp using `orderBy=" + # creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + # field in reverse chronological order (newest result first). Use this to sort + # resources like operations so that the newest operation is returned first. # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned # by a previous list request to get the next page of results. + # @param [Boolean] return_partial_success + # Opt-in for partial success behavior which provides partial results in case of + # failure. The default value is false and the logic is the same as today. # @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. + # 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 # @@ -565,8 +533,8 @@ module Google # @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_deployments(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/deployments', options) + def list_deployments(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/v2beta/projects/{project}/global/deployments', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta::DeploymentsListResponse::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta::DeploymentsListResponse command.params['project'] = project unless project.nil? @@ -574,9 +542,9 @@ module Google command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.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 @@ -605,10 +573,8 @@ module Google # @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. + # 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 # @@ -621,8 +587,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_deployment(project, deployment, deployment_object = nil, create_policy: nil, delete_policy: nil, preview: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/deployments/{deployment}', options) + def patch_deployment(project, deployment, deployment_object = nil, create_policy: nil, delete_policy: nil, preview: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}', options) command.request_representation = Google::Apis::DeploymentmanagerV2beta::Deployment::Representation command.request_object = deployment_object command.response_representation = Google::Apis::DeploymentmanagerV2beta::Operation::Representation @@ -634,7 +600,6 @@ module Google command.query['preview'] = preview unless preview.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 @@ -648,10 +613,8 @@ module Google # @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. + # 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 # @@ -664,8 +627,8 @@ module Google # @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_deployment_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/deployments/{resource}/setIamPolicy', options) + def set_deployment_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/setIamPolicy', options) command.request_representation = Google::Apis::DeploymentmanagerV2beta::GlobalSetPolicyRequest::Representation command.request_object = global_set_policy_request_object command.response_representation = Google::Apis::DeploymentmanagerV2beta::Policy::Representation @@ -674,7 +637,6 @@ module Google command.params['resource'] = resource unless resource.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 @@ -688,10 +650,8 @@ module Google # @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. + # 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 # @@ -704,8 +664,8 @@ module Google # @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 stop_deployment(project, deployment, deployments_stop_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/deployments/{deployment}/stop', options) + def stop_deployment(project, deployment, deployments_stop_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/stop', options) command.request_representation = Google::Apis::DeploymentmanagerV2beta::DeploymentsStopRequest::Representation command.request_object = deployments_stop_request_object command.response_representation = Google::Apis::DeploymentmanagerV2beta::Operation::Representation @@ -714,7 +674,6 @@ module Google command.params['deployment'] = deployment unless deployment.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 @@ -727,10 +686,8 @@ module Google # @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. + # 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 # @@ -743,8 +700,8 @@ module Google # @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_deployment_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/deployments/{resource}/testIamPermissions', options) + def test_deployment_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'deploymentmanager/v2beta/projects/{project}/global/deployments/{resource}/testIamPermissions', options) command.request_representation = Google::Apis::DeploymentmanagerV2beta::TestPermissionsRequest::Representation command.request_object = test_permissions_request_object command.response_representation = Google::Apis::DeploymentmanagerV2beta::TestPermissionsResponse::Representation @@ -753,7 +710,6 @@ module Google command.params['resource'] = resource unless resource.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 @@ -782,10 +738,8 @@ module Google # @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. + # 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 # @@ -798,8 +752,8 @@ module Google # @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 update_deployment(project, deployment, deployment_object = nil, create_policy: nil, delete_policy: nil, preview: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/global/deployments/{deployment}', options) + def update_deployment(project, deployment, deployment_object = nil, create_policy: nil, delete_policy: nil, preview: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}', options) command.request_representation = Google::Apis::DeploymentmanagerV2beta::Deployment::Representation command.request_object = deployment_object command.response_representation = Google::Apis::DeploymentmanagerV2beta::Operation::Representation @@ -811,7 +765,6 @@ module Google command.query['preview'] = preview unless preview.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 @@ -825,10 +778,8 @@ module Google # @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. + # 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 # @@ -841,8 +792,8 @@ module Google # @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_manifest(project, deployment, manifest, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/deployments/{deployment}/manifests/{manifest}', options) + def get_manifest(project, deployment, manifest, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/manifests/{manifest}', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta::Manifest::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta::Manifest command.params['project'] = project unless project.nil? @@ -850,7 +801,6 @@ module Google command.params['manifest'] = manifest unless manifest.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 @@ -863,19 +813,18 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. - # For example, if you are filtering Compute Engine instances, you can exclude + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For + # example, if you are filtering Compute Engine instances, you can exclude # instances named `example-instance` by specifying `name != example-instance`. # You can also filter nested fields. For example, you could specify `scheduling. # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based - # on resource labels. - # To filter on multiple expressions, provide each separate expression within - # parentheses. For example: ``` (scheduling.automaticRestart = true) ( - # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` - # expression. However, you can include `AND` and `OR` expressions explicitly. - # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - # Broadwell") AND (scheduling.automaticRestart = true) ``` + # on resource labels. To filter on multiple expressions, provide each separate + # expression within parentheses. For example: ``` (scheduling.automaticRestart = + # true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an ` + # AND` expression. However, you can include `AND` and `OR` expressions + # explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + # "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number # of available results is larger than `maxResults`, Compute Engine returns a ` @@ -883,23 +832,23 @@ module Google # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in - # alphanumerical order based on the resource name. - # You can also sort results in descending order based on the creation timestamp - # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` - # creationTimestamp` field in reverse chronological order (newest result first). - # Use this to sort resources like operations so that the newest operation is - # returned first. + # alphanumerical order based on the resource name. You can also sort results in + # descending order based on the creation timestamp using `orderBy=" + # creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + # field in reverse chronological order (newest result first). Use this to sort + # resources like operations so that the newest operation is returned first. # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned # by a previous list request to get the next page of results. + # @param [Boolean] return_partial_success + # Opt-in for partial success behavior which provides partial results in case of + # failure. The default value is false and the logic is the same as today. # @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. + # 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 # @@ -912,8 +861,8 @@ module Google # @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_manifests(project, deployment, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/deployments/{deployment}/manifests', options) + def list_manifests(project, deployment, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/manifests', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta::ManifestsListResponse::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta::ManifestsListResponse command.params['project'] = project unless project.nil? @@ -922,9 +871,9 @@ module Google command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.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 @@ -936,10 +885,8 @@ module Google # @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. + # 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 # @@ -952,15 +899,14 @@ module Google # @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_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/operations/{operation}', options) + def get_operation(project, operation, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/v2beta/projects/{project}/global/operations/{operation}', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta::Operation::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta::Operation command.params['project'] = project unless project.nil? command.params['operation'] = operation unless operation.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 @@ -971,19 +917,18 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. - # For example, if you are filtering Compute Engine instances, you can exclude + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For + # example, if you are filtering Compute Engine instances, you can exclude # instances named `example-instance` by specifying `name != example-instance`. # You can also filter nested fields. For example, you could specify `scheduling. # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based - # on resource labels. - # To filter on multiple expressions, provide each separate expression within - # parentheses. For example: ``` (scheduling.automaticRestart = true) ( - # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` - # expression. However, you can include `AND` and `OR` expressions explicitly. - # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - # Broadwell") AND (scheduling.automaticRestart = true) ``` + # on resource labels. To filter on multiple expressions, provide each separate + # expression within parentheses. For example: ``` (scheduling.automaticRestart = + # true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an ` + # AND` expression. However, you can include `AND` and `OR` expressions + # explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + # "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number # of available results is larger than `maxResults`, Compute Engine returns a ` @@ -991,23 +936,23 @@ module Google # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in - # alphanumerical order based on the resource name. - # You can also sort results in descending order based on the creation timestamp - # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` - # creationTimestamp` field in reverse chronological order (newest result first). - # Use this to sort resources like operations so that the newest operation is - # returned first. + # alphanumerical order based on the resource name. You can also sort results in + # descending order based on the creation timestamp using `orderBy=" + # creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + # field in reverse chronological order (newest result first). Use this to sort + # resources like operations so that the newest operation is returned first. # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned # by a previous list request to get the next page of results. + # @param [Boolean] return_partial_success + # Opt-in for partial success behavior which provides partial results in case of + # failure. The default value is false and the logic is the same as today. # @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. + # 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 # @@ -1020,8 +965,8 @@ module Google # @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_operations(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/operations', options) + def list_operations(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/v2beta/projects/{project}/global/operations', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta::OperationsListResponse::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta::OperationsListResponse command.params['project'] = project unless project.nil? @@ -1029,9 +974,9 @@ module Google command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.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 @@ -1045,10 +990,8 @@ module Google # @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. + # 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 # @@ -1061,8 +1004,8 @@ module Google # @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_resource(project, deployment, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/deployments/{deployment}/resources/{resource}', options) + def get_resource(project, deployment, resource, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/resources/{resource}', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta::Resource::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta::Resource command.params['project'] = project unless project.nil? @@ -1070,7 +1013,6 @@ module Google command.params['resource'] = resource unless resource.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 @@ -1083,19 +1025,18 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. - # For example, if you are filtering Compute Engine instances, you can exclude + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For + # example, if you are filtering Compute Engine instances, you can exclude # instances named `example-instance` by specifying `name != example-instance`. # You can also filter nested fields. For example, you could specify `scheduling. # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based - # on resource labels. - # To filter on multiple expressions, provide each separate expression within - # parentheses. For example: ``` (scheduling.automaticRestart = true) ( - # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` - # expression. However, you can include `AND` and `OR` expressions explicitly. - # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - # Broadwell") AND (scheduling.automaticRestart = true) ``` + # on resource labels. To filter on multiple expressions, provide each separate + # expression within parentheses. For example: ``` (scheduling.automaticRestart = + # true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an ` + # AND` expression. However, you can include `AND` and `OR` expressions + # explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + # "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number # of available results is larger than `maxResults`, Compute Engine returns a ` @@ -1103,23 +1044,23 @@ module Google # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in - # alphanumerical order based on the resource name. - # You can also sort results in descending order based on the creation timestamp - # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` - # creationTimestamp` field in reverse chronological order (newest result first). - # Use this to sort resources like operations so that the newest operation is - # returned first. + # alphanumerical order based on the resource name. You can also sort results in + # descending order based on the creation timestamp using `orderBy=" + # creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + # field in reverse chronological order (newest result first). Use this to sort + # resources like operations so that the newest operation is returned first. # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned # by a previous list request to get the next page of results. + # @param [Boolean] return_partial_success + # Opt-in for partial success behavior which provides partial results in case of + # failure. The default value is false and the logic is the same as today. # @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. + # 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 # @@ -1132,8 +1073,8 @@ module Google # @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_resources(project, deployment, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/deployments/{deployment}/resources', options) + def list_resources(project, deployment, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/v2beta/projects/{project}/global/deployments/{deployment}/resources', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta::ResourcesListResponse::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta::ResourcesListResponse command.params['project'] = project unless project.nil? @@ -1142,9 +1083,9 @@ module Google command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.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 @@ -1156,10 +1097,8 @@ module Google # @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. + # 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 # @@ -1172,15 +1111,14 @@ module Google # @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_type_provider(project, type_provider, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/typeProviders/{typeProvider}', options) + def delete_type_provider(project, type_provider, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta::Operation::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta::Operation command.params['project'] = project unless project.nil? command.params['typeProvider'] = type_provider unless type_provider.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 @@ -1192,10 +1130,8 @@ module Google # @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. + # 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 # @@ -1208,15 +1144,14 @@ module Google # @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_type_provider(project, type_provider, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/typeProviders/{typeProvider}', options) + def get_type_provider(project, type_provider, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta::TypeProvider::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta::TypeProvider command.params['project'] = project unless project.nil? command.params['typeProvider'] = type_provider unless type_provider.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 @@ -1230,10 +1165,8 @@ module Google # @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. + # 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 # @@ -1246,8 +1179,8 @@ module Google # @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_type_provider_type(project, type_provider, type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/typeProviders/{typeProvider}/types/{type}', options) + def get_type_provider_type(project, type_provider, type, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}/types/{type}', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta::TypeInfo::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta::TypeInfo command.params['project'] = project unless project.nil? @@ -1255,7 +1188,6 @@ module Google command.params['type'] = type unless type.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 @@ -1266,10 +1198,8 @@ module Google # @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. + # 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 # @@ -1282,8 +1212,8 @@ module Google # @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 insert_type_provider(project, type_provider_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/typeProviders', options) + def insert_type_provider(project, type_provider_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'deploymentmanager/v2beta/projects/{project}/global/typeProviders', options) command.request_representation = Google::Apis::DeploymentmanagerV2beta::TypeProvider::Representation command.request_object = type_provider_object command.response_representation = Google::Apis::DeploymentmanagerV2beta::Operation::Representation @@ -1291,7 +1221,6 @@ module Google command.params['project'] = project unless project.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 @@ -1302,19 +1231,18 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. - # For example, if you are filtering Compute Engine instances, you can exclude + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For + # example, if you are filtering Compute Engine instances, you can exclude # instances named `example-instance` by specifying `name != example-instance`. # You can also filter nested fields. For example, you could specify `scheduling. # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based - # on resource labels. - # To filter on multiple expressions, provide each separate expression within - # parentheses. For example: ``` (scheduling.automaticRestart = true) ( - # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` - # expression. However, you can include `AND` and `OR` expressions explicitly. - # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - # Broadwell") AND (scheduling.automaticRestart = true) ``` + # on resource labels. To filter on multiple expressions, provide each separate + # expression within parentheses. For example: ``` (scheduling.automaticRestart = + # true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an ` + # AND` expression. However, you can include `AND` and `OR` expressions + # explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + # "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number # of available results is larger than `maxResults`, Compute Engine returns a ` @@ -1322,23 +1250,23 @@ module Google # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in - # alphanumerical order based on the resource name. - # You can also sort results in descending order based on the creation timestamp - # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` - # creationTimestamp` field in reverse chronological order (newest result first). - # Use this to sort resources like operations so that the newest operation is - # returned first. + # alphanumerical order based on the resource name. You can also sort results in + # descending order based on the creation timestamp using `orderBy=" + # creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + # field in reverse chronological order (newest result first). Use this to sort + # resources like operations so that the newest operation is returned first. # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned # by a previous list request to get the next page of results. + # @param [Boolean] return_partial_success + # Opt-in for partial success behavior which provides partial results in case of + # failure. The default value is false and the logic is the same as today. # @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. + # 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 # @@ -1351,8 +1279,8 @@ module Google # @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_type_providers(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/typeProviders', options) + def list_type_providers(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/v2beta/projects/{project}/global/typeProviders', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta::TypeProvidersListResponse::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta::TypeProvidersListResponse command.params['project'] = project unless project.nil? @@ -1360,9 +1288,9 @@ module Google command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.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 @@ -1375,19 +1303,18 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. - # For example, if you are filtering Compute Engine instances, you can exclude + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For + # example, if you are filtering Compute Engine instances, you can exclude # instances named `example-instance` by specifying `name != example-instance`. # You can also filter nested fields. For example, you could specify `scheduling. # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based - # on resource labels. - # To filter on multiple expressions, provide each separate expression within - # parentheses. For example: ``` (scheduling.automaticRestart = true) ( - # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` - # expression. However, you can include `AND` and `OR` expressions explicitly. - # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - # Broadwell") AND (scheduling.automaticRestart = true) ``` + # on resource labels. To filter on multiple expressions, provide each separate + # expression within parentheses. For example: ``` (scheduling.automaticRestart = + # true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an ` + # AND` expression. However, you can include `AND` and `OR` expressions + # explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + # "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number # of available results is larger than `maxResults`, Compute Engine returns a ` @@ -1395,23 +1322,23 @@ module Google # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in - # alphanumerical order based on the resource name. - # You can also sort results in descending order based on the creation timestamp - # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` - # creationTimestamp` field in reverse chronological order (newest result first). - # Use this to sort resources like operations so that the newest operation is - # returned first. + # alphanumerical order based on the resource name. You can also sort results in + # descending order based on the creation timestamp using `orderBy=" + # creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + # field in reverse chronological order (newest result first). Use this to sort + # resources like operations so that the newest operation is returned first. # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned # by a previous list request to get the next page of results. + # @param [Boolean] return_partial_success + # Opt-in for partial success behavior which provides partial results in case of + # failure. The default value is false and the logic is the same as today. # @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. + # 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 # @@ -1424,8 +1351,8 @@ module Google # @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_type_provider_types(project, type_provider, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/typeProviders/{typeProvider}/types', options) + def list_type_provider_types(project, type_provider, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}/types', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta::TypeProvidersListTypesResponse::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta::TypeProvidersListTypesResponse command.params['project'] = project unless project.nil? @@ -1434,9 +1361,9 @@ module Google command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.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 @@ -1449,10 +1376,8 @@ module Google # @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. + # 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 # @@ -1465,8 +1390,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_type_provider(project, type_provider, type_provider_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/typeProviders/{typeProvider}', options) + def patch_type_provider(project, type_provider, type_provider_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}', options) command.request_representation = Google::Apis::DeploymentmanagerV2beta::TypeProvider::Representation command.request_object = type_provider_object command.response_representation = Google::Apis::DeploymentmanagerV2beta::Operation::Representation @@ -1475,7 +1400,6 @@ module Google command.params['typeProvider'] = type_provider unless type_provider.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 @@ -1488,10 +1412,8 @@ module Google # @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. + # 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 # @@ -1504,8 +1426,8 @@ module Google # @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 update_type_provider(project, type_provider, type_provider_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/global/typeProviders/{typeProvider}', options) + def update_type_provider(project, type_provider, type_provider_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'deploymentmanager/v2beta/projects/{project}/global/typeProviders/{typeProvider}', options) command.request_representation = Google::Apis::DeploymentmanagerV2beta::TypeProvider::Representation command.request_object = type_provider_object command.response_representation = Google::Apis::DeploymentmanagerV2beta::Operation::Representation @@ -1514,7 +1436,6 @@ module Google command.params['typeProvider'] = type_provider unless type_provider.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 @@ -1525,19 +1446,18 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. - # For example, if you are filtering Compute Engine instances, you can exclude + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For + # example, if you are filtering Compute Engine instances, you can exclude # instances named `example-instance` by specifying `name != example-instance`. # You can also filter nested fields. For example, you could specify `scheduling. # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based - # on resource labels. - # To filter on multiple expressions, provide each separate expression within - # parentheses. For example: ``` (scheduling.automaticRestart = true) ( - # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` - # expression. However, you can include `AND` and `OR` expressions explicitly. - # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - # Broadwell") AND (scheduling.automaticRestart = true) ``` + # on resource labels. To filter on multiple expressions, provide each separate + # expression within parentheses. For example: ``` (scheduling.automaticRestart = + # true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an ` + # AND` expression. However, you can include `AND` and `OR` expressions + # explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + # "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number # of available results is larger than `maxResults`, Compute Engine returns a ` @@ -1545,23 +1465,23 @@ module Google # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in - # alphanumerical order based on the resource name. - # You can also sort results in descending order based on the creation timestamp - # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` - # creationTimestamp` field in reverse chronological order (newest result first). - # Use this to sort resources like operations so that the newest operation is - # returned first. + # alphanumerical order based on the resource name. You can also sort results in + # descending order based on the creation timestamp using `orderBy=" + # creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + # field in reverse chronological order (newest result first). Use this to sort + # resources like operations so that the newest operation is returned first. # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned # by a previous list request to get the next page of results. + # @param [Boolean] return_partial_success + # Opt-in for partial success behavior which provides partial results in case of + # failure. The default value is false and the logic is the same as today. # @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. + # 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 # @@ -1574,8 +1494,8 @@ module Google # @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_types(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/types', options) + def list_types(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/v2beta/projects/{project}/global/types', options) command.response_representation = Google::Apis::DeploymentmanagerV2beta::TypesListResponse::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta::TypesListResponse command.params['project'] = project unless project.nil? @@ -1583,9 +1503,9 @@ module Google command.query['maxResults'] = max_results unless max_results.nil? command.query['orderBy'] = order_by unless order_by.nil? command.query['pageToken'] = page_token unless page_token.nil? + command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.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 @@ -1594,7 +1514,6 @@ module Google 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 diff --git a/generated/google/apis/deploymentmanager_v2beta/synth.metadata b/generated/google/apis/deploymentmanager_v2beta/synth.metadata index 429012f74..c60478971 100644 --- a/generated/google/apis/deploymentmanager_v2beta/synth.metadata +++ b/generated/google/apis/deploymentmanager_v2beta/synth.metadata @@ -4,7 +4,7 @@ "git": { "name": ".", "remote": "https://github.com/googleapis/google-api-ruby-client.git", - "sha": "c98c719bbab68d0890524d53f8b629d7858af9c2" + "sha": "79a43ec56f0591043ce631e889c3354471f07c7b" } } ]