feat: Automated regeneration of deploymentmanager v2 client (#1319)
This PR was generated using Autosynth. 🌈 <details><summary>Log from Synthtool</summary> ``` 2020-10-29 02:13:48,266 synthtool [DEBUG] > Executing /home/kbuilder/.cache/synthtool/google-api-ruby-client/synth.py. On branch autosynth-deploymentmanager-v2 nothing to commit, working tree clean 2020-10-29 02:13:48,296 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 v2 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 v2 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.v2 --names-out=/workspace/api_names_out.yaml Loading deploymentmanager, version v2 from https://raw.githubusercontent.com/googleapis/discovery-artifact-manager/master/discoveries/deploymentmanager.v2.json conflict google/apis/deploymentmanager_v2.rb <ymentmanager_v2.rb? (enter "h" for help) [Ynaqdhm] a force google/apis/deploymentmanager_v2.rb conflict google/apis/deploymentmanager_v2/service.rb force google/apis/deploymentmanager_v2/service.rb conflict google/apis/deploymentmanager_v2/classes.rb force google/apis/deploymentmanager_v2/classes.rb conflict google/apis/deploymentmanager_v2/representations.rb force google/apis/deploymentmanager_v2/representations.rb conflict /workspace/api_names_out.yaml force /workspace/api_names_out.yaml 2020-10-29 02:14:14,129 synthtool [DEBUG] > Wrote metadata to generated/google/apis/deploymentmanager_v2/synth.metadata. DEBUG:synthtool:Wrote metadata to generated/google/apis/deploymentmanager_v2/synth.metadata. ``` </details> 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.
This commit is contained in:
parent
387d0cebfe
commit
047de22f9c
|
@ -66268,6 +66268,7 @@
|
||||||
"/deploymentmanager:v2/deploymentmanager.deployments.get/deployment": deployment
|
"/deploymentmanager:v2/deploymentmanager.deployments.get/deployment": deployment
|
||||||
"/deploymentmanager:v2/deploymentmanager.deployments.get/project": project
|
"/deploymentmanager:v2/deploymentmanager.deployments.get/project": project
|
||||||
"/deploymentmanager:v2/deploymentmanager.deployments.getIamPolicy": get_deployment_iam_policy
|
"/deploymentmanager:v2/deploymentmanager.deployments.getIamPolicy": get_deployment_iam_policy
|
||||||
|
"/deploymentmanager:v2/deploymentmanager.deployments.getIamPolicy/optionsRequestedPolicyVersion": options_requested_policy_version
|
||||||
"/deploymentmanager:v2/deploymentmanager.deployments.getIamPolicy/project": project
|
"/deploymentmanager:v2/deploymentmanager.deployments.getIamPolicy/project": project
|
||||||
"/deploymentmanager:v2/deploymentmanager.deployments.getIamPolicy/resource": resource
|
"/deploymentmanager:v2/deploymentmanager.deployments.getIamPolicy/resource": resource
|
||||||
"/deploymentmanager:v2/deploymentmanager.deployments.insert": insert_deployment
|
"/deploymentmanager:v2/deploymentmanager.deployments.insert": insert_deployment
|
||||||
|
@ -66280,6 +66281,7 @@
|
||||||
"/deploymentmanager:v2/deploymentmanager.deployments.list/orderBy": order_by
|
"/deploymentmanager:v2/deploymentmanager.deployments.list/orderBy": order_by
|
||||||
"/deploymentmanager:v2/deploymentmanager.deployments.list/pageToken": page_token
|
"/deploymentmanager:v2/deploymentmanager.deployments.list/pageToken": page_token
|
||||||
"/deploymentmanager:v2/deploymentmanager.deployments.list/project": project
|
"/deploymentmanager:v2/deploymentmanager.deployments.list/project": project
|
||||||
|
"/deploymentmanager:v2/deploymentmanager.deployments.list/returnPartialSuccess": return_partial_success
|
||||||
"/deploymentmanager:v2/deploymentmanager.deployments.patch": patch_deployment
|
"/deploymentmanager:v2/deploymentmanager.deployments.patch": patch_deployment
|
||||||
"/deploymentmanager:v2/deploymentmanager.deployments.patch/createPolicy": create_policy
|
"/deploymentmanager:v2/deploymentmanager.deployments.patch/createPolicy": create_policy
|
||||||
"/deploymentmanager:v2/deploymentmanager.deployments.patch/deletePolicy": delete_policy
|
"/deploymentmanager:v2/deploymentmanager.deployments.patch/deletePolicy": delete_policy
|
||||||
|
@ -66312,6 +66314,7 @@
|
||||||
"/deploymentmanager:v2/deploymentmanager.manifests.list/orderBy": order_by
|
"/deploymentmanager:v2/deploymentmanager.manifests.list/orderBy": order_by
|
||||||
"/deploymentmanager:v2/deploymentmanager.manifests.list/pageToken": page_token
|
"/deploymentmanager:v2/deploymentmanager.manifests.list/pageToken": page_token
|
||||||
"/deploymentmanager:v2/deploymentmanager.manifests.list/project": project
|
"/deploymentmanager:v2/deploymentmanager.manifests.list/project": project
|
||||||
|
"/deploymentmanager:v2/deploymentmanager.manifests.list/returnPartialSuccess": return_partial_success
|
||||||
"/deploymentmanager:v2/deploymentmanager.operations.get": get_operation
|
"/deploymentmanager:v2/deploymentmanager.operations.get": get_operation
|
||||||
"/deploymentmanager:v2/deploymentmanager.operations.get/operation": operation
|
"/deploymentmanager:v2/deploymentmanager.operations.get/operation": operation
|
||||||
"/deploymentmanager:v2/deploymentmanager.operations.get/project": project
|
"/deploymentmanager:v2/deploymentmanager.operations.get/project": project
|
||||||
|
@ -66321,6 +66324,7 @@
|
||||||
"/deploymentmanager:v2/deploymentmanager.operations.list/orderBy": order_by
|
"/deploymentmanager:v2/deploymentmanager.operations.list/orderBy": order_by
|
||||||
"/deploymentmanager:v2/deploymentmanager.operations.list/pageToken": page_token
|
"/deploymentmanager:v2/deploymentmanager.operations.list/pageToken": page_token
|
||||||
"/deploymentmanager:v2/deploymentmanager.operations.list/project": project
|
"/deploymentmanager:v2/deploymentmanager.operations.list/project": project
|
||||||
|
"/deploymentmanager:v2/deploymentmanager.operations.list/returnPartialSuccess": return_partial_success
|
||||||
"/deploymentmanager:v2/deploymentmanager.resources.get": get_resource
|
"/deploymentmanager:v2/deploymentmanager.resources.get": get_resource
|
||||||
"/deploymentmanager:v2/deploymentmanager.resources.get/deployment": deployment
|
"/deploymentmanager:v2/deploymentmanager.resources.get/deployment": deployment
|
||||||
"/deploymentmanager:v2/deploymentmanager.resources.get/project": project
|
"/deploymentmanager:v2/deploymentmanager.resources.get/project": project
|
||||||
|
@ -66332,12 +66336,14 @@
|
||||||
"/deploymentmanager:v2/deploymentmanager.resources.list/orderBy": order_by
|
"/deploymentmanager:v2/deploymentmanager.resources.list/orderBy": order_by
|
||||||
"/deploymentmanager:v2/deploymentmanager.resources.list/pageToken": page_token
|
"/deploymentmanager:v2/deploymentmanager.resources.list/pageToken": page_token
|
||||||
"/deploymentmanager:v2/deploymentmanager.resources.list/project": project
|
"/deploymentmanager:v2/deploymentmanager.resources.list/project": project
|
||||||
|
"/deploymentmanager:v2/deploymentmanager.resources.list/returnPartialSuccess": return_partial_success
|
||||||
"/deploymentmanager:v2/deploymentmanager.types.list": list_types
|
"/deploymentmanager:v2/deploymentmanager.types.list": list_types
|
||||||
"/deploymentmanager:v2/deploymentmanager.types.list/filter": filter
|
"/deploymentmanager:v2/deploymentmanager.types.list/filter": filter
|
||||||
"/deploymentmanager:v2/deploymentmanager.types.list/maxResults": max_results
|
"/deploymentmanager:v2/deploymentmanager.types.list/maxResults": max_results
|
||||||
"/deploymentmanager:v2/deploymentmanager.types.list/orderBy": order_by
|
"/deploymentmanager:v2/deploymentmanager.types.list/orderBy": order_by
|
||||||
"/deploymentmanager:v2/deploymentmanager.types.list/pageToken": page_token
|
"/deploymentmanager:v2/deploymentmanager.types.list/pageToken": page_token
|
||||||
"/deploymentmanager:v2/deploymentmanager.types.list/project": project
|
"/deploymentmanager:v2/deploymentmanager.types.list/project": project
|
||||||
|
"/deploymentmanager:v2/deploymentmanager.types.list/returnPartialSuccess": return_partial_success
|
||||||
"/deploymentmanager:v2/fields": fields
|
"/deploymentmanager:v2/fields": fields
|
||||||
"/deploymentmanager:v2/key": key
|
"/deploymentmanager:v2/key": key
|
||||||
"/deploymentmanager:v2/quotaUser": quota_user
|
"/deploymentmanager:v2/quotaUser": quota_user
|
||||||
|
|
|
@ -18,14 +18,16 @@ require 'google/apis/deploymentmanager_v2/representations.rb'
|
||||||
|
|
||||||
module Google
|
module Google
|
||||||
module Apis
|
module Apis
|
||||||
# Google Cloud Deployment Manager API
|
# Cloud Deployment Manager V2 API
|
||||||
#
|
#
|
||||||
# Declares, configures, and deploys complex solutions on 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://cloud.google.com/deployment-manager/
|
# @see http://cloud.google.com/deployment-manager
|
||||||
module DeploymentmanagerV2
|
module DeploymentmanagerV2
|
||||||
VERSION = 'V2'
|
VERSION = 'V2'
|
||||||
REVISION = '20200519'
|
REVISION = '20201022'
|
||||||
|
|
||||||
# View and manage your data across Google Cloud Platform services
|
# View and manage your data across Google Cloud Platform services
|
||||||
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform'
|
||||||
|
|
|
@ -24,21 +24,19 @@ module Google
|
||||||
|
|
||||||
# Specifies the audit configuration for a service. The configuration determines
|
# Specifies the audit configuration for a service. The configuration determines
|
||||||
# which permission types are logged, and what identities, if any, are exempted
|
# which permission types are logged, and what identities, if any, are exempted
|
||||||
# from logging. An AuditConfig must have one or more AuditLogConfigs.
|
# from logging. An AuditConfig must have one or more AuditLogConfigs. If there
|
||||||
# If there are AuditConfigs for both `allServices` and a specific service, the
|
# are AuditConfigs for both `allServices` and a specific service, the union of
|
||||||
# union of the two AuditConfigs is used for that service: the log_types
|
# the two AuditConfigs is used for that service: the log_types specified in each
|
||||||
# specified in each AuditConfig are enabled, and the exempted_members in each
|
# AuditConfig are enabled, and the exempted_members in each AuditLogConfig are
|
||||||
# AuditLogConfig are exempted.
|
# exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` "
|
||||||
# Example Policy with multiple AuditConfigs:
|
# service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", "
|
||||||
# ` "audit_configs": [ ` "service": "allServices" "audit_log_configs": [ ` "
|
# exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `,
|
||||||
# log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] `, ` "
|
# ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com",
|
||||||
# log_type": "DATA_WRITE", `, ` "log_type": "ADMIN_READ", ` ] `, ` "service": "
|
# "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE"
|
||||||
# sampleservice.googleapis.com" "audit_log_configs": [ ` "log_type": "DATA_READ",
|
# , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice,
|
||||||
# `, ` "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com"
|
# 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
|
||||||
# For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
|
# DATA_WRITE logging.
|
||||||
# logging. It also exempts jose@example.com from DATA_READ logging, and aliya@
|
|
||||||
# example.com from DATA_WRITE logging.
|
|
||||||
class AuditConfig
|
class AuditConfig
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -47,11 +45,6 @@ module Google
|
||||||
# @return [Array<Google::Apis::DeploymentmanagerV2::AuditLogConfig>]
|
# @return [Array<Google::Apis::DeploymentmanagerV2::AuditLogConfig>]
|
||||||
attr_accessor :audit_log_configs
|
attr_accessor :audit_log_configs
|
||||||
|
|
||||||
#
|
|
||||||
# Corresponds to the JSON property `exemptedMembers`
|
|
||||||
# @return [Array<String>]
|
|
||||||
attr_accessor :exempted_members
|
|
||||||
|
|
||||||
# Specifies a service that will be enabled for audit logging. For example, `
|
# Specifies a service that will be enabled for audit logging. For example, `
|
||||||
# storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
|
# storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special
|
||||||
# value that covers all services.
|
# value that covers all services.
|
||||||
|
@ -66,31 +59,24 @@ module Google
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs)
|
@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)
|
@service = args[:service] if args.key?(:service)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Provides the configuration for logging a type of permissions. Example:
|
# Provides the configuration for logging a type of permissions. Example: ` "
|
||||||
# ` "audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "
|
# audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user:
|
||||||
# user:jose@example.com" ] `, ` "log_type": "DATA_WRITE", ` ] `
|
# jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables '
|
||||||
# This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@
|
# DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from
|
||||||
# example.com from DATA_READ logging.
|
# DATA_READ logging.
|
||||||
class AuditLogConfig
|
class AuditLogConfig
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Specifies the identities that do not cause logging for this type of permission.
|
# 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`
|
# Corresponds to the JSON property `exemptedMembers`
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :exempted_members
|
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.
|
# The log type that this config enables.
|
||||||
# Corresponds to the JSON property `logType`
|
# Corresponds to the JSON property `logType`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -103,88 +89,59 @@ module Google
|
||||||
# Update properties of this object
|
# Update properties of this object
|
||||||
def update!(**args)
|
def update!(**args)
|
||||||
@exempted_members = args[:exempted_members] if args.key?(:exempted_members)
|
@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)
|
@log_type = args[:log_type] if args.key?(:log_type)
|
||||||
end
|
end
|
||||||
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
|
|
||||||
|
|
||||||
# Associates `members` with a `role`.
|
# Associates `members` with a `role`.
|
||||||
class Binding
|
class Binding
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
# 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
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
||||||
# documented at https://github.com/google/cel-spec.
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
||||||
# Example (Comparison):
|
# "Summary size limit" description: "Determines if a summary is less than 100
|
||||||
# title: "Summary size limit" description: "Determines if a summary is less than
|
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
|
||||||
# 100 chars" expression: "document.summary.size() < 100"
|
# Requestor is owner" description: "Determines if requestor is the document
|
||||||
# Example (Equality):
|
# owner" expression: "document.owner == request.auth.claims.email" Example (
|
||||||
# title: "Requestor is owner" description: "Determines if requestor is the
|
# Logic): title: "Public documents" description: "Determine whether the document
|
||||||
# document owner" expression: "document.owner == request.auth.claims.email"
|
# should be publicly visible" expression: "document.type != 'private' &&
|
||||||
# Example (Logic):
|
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
|
||||||
# title: "Public documents" description: "Determine whether the document should
|
# string" description: "Create a notification string with a timestamp."
|
||||||
# be publicly visible" expression: "document.type != 'private' && document.type !
|
# expression: "'New message received at ' + string(document.create_time)" The
|
||||||
# = 'internal'"
|
# exact variables and functions that may be referenced within an expression are
|
||||||
# Example (Data Manipulation):
|
# determined by the service that evaluates it. See the service documentation for
|
||||||
# title: "Notification string" description: "Create a notification string with a
|
# additional information.
|
||||||
# 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`
|
# Corresponds to the JSON property `condition`
|
||||||
# @return [Google::Apis::DeploymentmanagerV2::Expr]
|
# @return [Google::Apis::DeploymentmanagerV2::Expr]
|
||||||
attr_accessor :condition
|
attr_accessor :condition
|
||||||
|
|
||||||
# Specifies the identities requesting access for a Cloud Platform resource. `
|
# Specifies the identities requesting access for a Cloud Platform resource. `
|
||||||
# members` can have the following values:
|
# members` can have the following values: * `allUsers`: A special identifier
|
||||||
# * `allUsers`: A special identifier that represents anyone who is on the
|
# that represents anyone who is on the internet; with or without a Google
|
||||||
# internet; with or without a Google account.
|
# account. * `allAuthenticatedUsers`: A special identifier that represents
|
||||||
# * `allAuthenticatedUsers`: A special identifier that represents anyone who is
|
# anyone who is authenticated with a Google account or a service account. * `
|
||||||
# authenticated with a Google account or a service account.
|
# user:`emailid``: An email address that represents a specific Google account.
|
||||||
# * `user:`emailid``: An email address that represents a specific Google account.
|
# For example, `alice@example.com` . * `serviceAccount:`emailid``: An email
|
||||||
# For example, `alice@example.com` .
|
# address that represents a service account. For example, `my-other-app@appspot.
|
||||||
# * `serviceAccount:`emailid``: An email address that represents a service
|
# gserviceaccount.com`. * `group:`emailid``: An email address that represents a
|
||||||
# account. For example, `my-other-app@appspot.gserviceaccount.com`.
|
# Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid=
|
||||||
# * `group:`emailid``: An email address that represents a Google group. For
|
# `uniqueid``: An email address (plus unique identifier) representing a user
|
||||||
# example, `admins@example.com`.
|
# that has been recently deleted. For example, `alice@example.com?uid=
|
||||||
# * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique
|
# 123456789012345678901`. If the user is recovered, this value reverts to `user:`
|
||||||
# identifier) representing a user that has been recently deleted. For example, `
|
# emailid`` and the recovered user retains the role in the binding. * `deleted:
|
||||||
# alice@example.com?uid=123456789012345678901`. If the user is recovered, this
|
# serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique
|
||||||
# value reverts to `user:`emailid`` and the recovered user retains the role in
|
# identifier) representing a service account that has been recently deleted. For
|
||||||
# the binding.
|
# example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`.
|
||||||
# * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus
|
# If the service account is undeleted, this value reverts to `serviceAccount:`
|
||||||
# unique identifier) representing a service account that has been recently
|
# emailid`` and the undeleted service account retains the role in the binding. *
|
||||||
# deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid=
|
# `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique
|
||||||
# 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
|
# identifier) representing a Google group that has been recently deleted. For
|
||||||
# example, `admins@example.com?uid=123456789012345678901`. If the group is
|
# example, `admins@example.com?uid=123456789012345678901`. If the group is
|
||||||
# recovered, this value reverts to `group:`emailid`` and the recovered group
|
# recovered, this value reverts to `group:`emailid`` and the recovered group
|
||||||
# retains the role in the binding.
|
# retains the role in the binding. * `domain:`domain``: The G Suite domain (
|
||||||
# * `domain:`domain``: The G Suite domain (primary) that represents all the
|
# primary) that represents all the users of that domain. For example, `google.
|
||||||
# users of that domain. For example, `google.com` or `example.com`.
|
# com` or `example.com`.
|
||||||
# Corresponds to the JSON property `members`
|
# Corresponds to the JSON property `members`
|
||||||
# @return [Array<String>]
|
# @return [Array<String>]
|
||||||
attr_accessor :members
|
attr_accessor :members
|
||||||
|
@ -207,50 +164,6 @@ module Google
|
||||||
end
|
end
|
||||||
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<String>]
|
|
||||||
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
|
class ConfigFile
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
@ -283,8 +196,8 @@ module Google
|
||||||
# update()`, `stop()`, and `cancelPreview()` requests. A fingerprint is a
|
# update()`, `stop()`, and `cancelPreview()` requests. A fingerprint is a
|
||||||
# randomly generated value that must be provided with `update()`, `stop()`, and `
|
# randomly generated value that must be provided with `update()`, `stop()`, and `
|
||||||
# cancelPreview()` requests to perform optimistic locking. This ensures
|
# cancelPreview()` requests to perform optimistic locking. This ensures
|
||||||
# optimistic concurrency so that only one request happens at a time.
|
# optimistic concurrency so that only one request happens at a time. The
|
||||||
# The fingerprint is initially generated by Deployment Manager and changes after
|
# fingerprint is initially generated by Deployment Manager and changes after
|
||||||
# every request to modify data. To get the latest fingerprint value, perform a `
|
# every request to modify data. To get the latest fingerprint value, perform a `
|
||||||
# get()` request to a deployment.
|
# get()` request to a deployment.
|
||||||
# Corresponds to the JSON property `fingerprint`
|
# Corresponds to the JSON property `fingerprint`
|
||||||
|
@ -302,11 +215,11 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :insert_time
|
attr_accessor :insert_time
|
||||||
|
|
||||||
# Map of labels; provided by the client when the resource is created or updated.
|
# Map of One Platform labels; provided by the client when the resource is
|
||||||
# Specifically: Label keys must be between 1 and 63 characters long and must
|
# created or updated. Specifically: Label keys must be between 1 and 63
|
||||||
# conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?`
|
# characters long and must conform to the following regular expression: `[a-z]([-
|
||||||
# Label values must be between 0 and 63 characters long and must conform to the
|
# a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and
|
||||||
# regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
|
# must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`.
|
||||||
# Corresponds to the JSON property `labels`
|
# Corresponds to the JSON property `labels`
|
||||||
# @return [Array<Google::Apis::DeploymentmanagerV2::DeploymentLabelEntry>]
|
# @return [Array<Google::Apis::DeploymentmanagerV2::DeploymentLabelEntry>]
|
||||||
attr_accessor :labels
|
attr_accessor :labels
|
||||||
|
@ -328,21 +241,16 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
||||||
# Represents an Operation resource.
|
# Represents an Operation resource. Google Compute Engine has three Operation
|
||||||
# Google Compute Engine has three Operation resources:
|
# resources: * [Global](/compute/docs/reference/rest/`$api_version`/
|
||||||
# * [Global](/compute/docs/reference/rest/`$api_version`/globalOperations) * [
|
# globalOperations) * [Regional](/compute/docs/reference/rest/`$api_version`/
|
||||||
# Regional](/compute/docs/reference/rest/`$api_version`/regionOperations) * [
|
# regionOperations) * [Zonal](/compute/docs/reference/rest/`$api_version`/
|
||||||
# Zonal](/compute/docs/reference/rest/`$api_version`/zoneOperations)
|
# zoneOperations) You can use an operation resource to manage asynchronous API
|
||||||
# You can use an operation resource to manage asynchronous API requests. For
|
# requests. For more information, read Handling API responses. Operations can be
|
||||||
# more information, read Handling API responses.
|
# global, regional or zonal. - For global operations, use the `globalOperations`
|
||||||
# Operations can be global, regional or zonal.
|
# resource. - For regional operations, use the `regionOperations` resource. -
|
||||||
# - For global operations, use the `globalOperations` resource.
|
# For zonal operations, use the `zonalOperations` resource. For more information,
|
||||||
# - For regional operations, use the `regionOperations` resource.
|
# read Global, Regional, and Zonal Resources.
|
||||||
# - 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 ==)
|
|
||||||
# Corresponds to the JSON property `operation`
|
# Corresponds to the JSON property `operation`
|
||||||
# @return [Google::Apis::DeploymentmanagerV2::Operation]
|
# @return [Google::Apis::DeploymentmanagerV2::Operation]
|
||||||
attr_accessor :operation
|
attr_accessor :operation
|
||||||
|
@ -352,12 +260,14 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :self_link
|
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`
|
# Corresponds to the JSON property `target`
|
||||||
# @return [Google::Apis::DeploymentmanagerV2::TargetConfiguration]
|
# @return [Google::Apis::DeploymentmanagerV2::TargetConfiguration]
|
||||||
attr_accessor :target
|
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`
|
# Corresponds to the JSON property `update`
|
||||||
# @return [Google::Apis::DeploymentmanagerV2::DeploymentUpdate]
|
# @return [Google::Apis::DeploymentmanagerV2::DeploymentUpdate]
|
||||||
attr_accessor :update
|
attr_accessor :update
|
||||||
|
@ -388,16 +298,16 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
# Label object for Deployments
|
||||||
class DeploymentLabelEntry
|
class DeploymentLabelEntry
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
#
|
# Key of the label
|
||||||
# Corresponds to the JSON property `key`
|
# Corresponds to the JSON property `key`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :key
|
attr_accessor :key
|
||||||
|
|
||||||
#
|
# Value of the label
|
||||||
# Corresponds to the JSON property `value`
|
# Corresponds to the JSON property `value`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :value
|
attr_accessor :value
|
||||||
|
@ -423,7 +333,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :description
|
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
|
# created or updated. Specifically: Label keys must be between 1 and 63
|
||||||
# characters long and must conform to the following regular expression: `[a-z]([-
|
# 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
|
# a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and
|
||||||
|
@ -450,16 +360,16 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
#
|
# Label object for DeploymentUpdate
|
||||||
class DeploymentUpdateLabelEntry
|
class DeploymentUpdateLabelEntry
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
#
|
# Key of the label
|
||||||
# Corresponds to the JSON property `key`
|
# Corresponds to the JSON property `key`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :key
|
attr_accessor :key
|
||||||
|
|
||||||
#
|
# Value of the label
|
||||||
# Corresponds to the JSON property `value`
|
# Corresponds to the JSON property `value`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :value
|
attr_accessor :value
|
||||||
|
@ -484,10 +394,10 @@ module Google
|
||||||
# to perform optimistic locking. This ensures optimistic concurrency so that the
|
# to perform optimistic locking. This ensures optimistic concurrency so that the
|
||||||
# deployment does not have conflicting requests (e.g. if someone attempts to
|
# 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,
|
# make a new update request while another user attempts to cancel a preview,
|
||||||
# this would prevent one of the requests).
|
# this would prevent one of the requests). The fingerprint is initially
|
||||||
# The fingerprint is initially generated by Deployment Manager and changes after
|
# generated by Deployment Manager and changes after every request to modify a
|
||||||
# every request to modify a deployment. To get the latest fingerprint value,
|
# deployment. To get the latest fingerprint value, perform a `get()` request on
|
||||||
# perform a `get()` request on the deployment.
|
# the deployment.
|
||||||
# Corresponds to the JSON property `fingerprint`
|
# Corresponds to the JSON property `fingerprint`
|
||||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -538,10 +448,9 @@ module Google
|
||||||
# optimistic locking. This ensures optimistic concurrency so that the deployment
|
# optimistic locking. This ensures optimistic concurrency so that the deployment
|
||||||
# does not have conflicting requests (e.g. if someone attempts to make a new
|
# 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,
|
# update request while another user attempts to stop an ongoing update request,
|
||||||
# this would prevent a collision).
|
# this would prevent a collision). The fingerprint is initially generated by
|
||||||
# The fingerprint is initially generated by Deployment Manager and changes after
|
# Deployment Manager and changes after every request to modify a deployment. To
|
||||||
# every request to modify a deployment. To get the latest fingerprint value,
|
# get the latest fingerprint value, perform a `get()` request on the deployment.
|
||||||
# perform a `get()` request on the deployment.
|
|
||||||
# Corresponds to the JSON property `fingerprint`
|
# Corresponds to the JSON property `fingerprint`
|
||||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||||
# @return [String]
|
# @return [String]
|
||||||
|
@ -559,24 +468,19 @@ module Google
|
||||||
|
|
||||||
# Represents a textual expression in the Common Expression Language (CEL) syntax.
|
# 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
|
# CEL is a C-like expression language. The syntax and semantics of CEL are
|
||||||
# documented at https://github.com/google/cel-spec.
|
# documented at https://github.com/google/cel-spec. Example (Comparison): title:
|
||||||
# Example (Comparison):
|
# "Summary size limit" description: "Determines if a summary is less than 100
|
||||||
# title: "Summary size limit" description: "Determines if a summary is less than
|
# chars" expression: "document.summary.size() < 100" Example (Equality): title: "
|
||||||
# 100 chars" expression: "document.summary.size() < 100"
|
# Requestor is owner" description: "Determines if requestor is the document
|
||||||
# Example (Equality):
|
# owner" expression: "document.owner == request.auth.claims.email" Example (
|
||||||
# title: "Requestor is owner" description: "Determines if requestor is the
|
# Logic): title: "Public documents" description: "Determine whether the document
|
||||||
# document owner" expression: "document.owner == request.auth.claims.email"
|
# should be publicly visible" expression: "document.type != 'private' &&
|
||||||
# Example (Logic):
|
# document.type != 'internal'" Example (Data Manipulation): title: "Notification
|
||||||
# title: "Public documents" description: "Determine whether the document should
|
# string" description: "Create a notification string with a timestamp."
|
||||||
# be publicly visible" expression: "document.type != 'private' && document.type !
|
# expression: "'New message received at ' + string(document.create_time)" The
|
||||||
# = 'internal'"
|
# exact variables and functions that may be referenced within an expression are
|
||||||
# Example (Data Manipulation):
|
# determined by the service that evaluates it. See the service documentation for
|
||||||
# title: "Notification string" description: "Create a notification string with a
|
# additional information.
|
||||||
# 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
|
class Expr
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -634,35 +538,32 @@ module Google
|
||||||
attr_accessor :etag
|
attr_accessor :etag
|
||||||
|
|
||||||
# An Identity and Access Management (IAM) policy, which specifies access
|
# An Identity and Access Management (IAM) policy, which specifies access
|
||||||
# controls for Google Cloud resources.
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
||||||
# A `Policy` is a collection of `bindings`. A `binding` binds one or more `
|
# A `binding` binds one or more `members` to a single `role`. Members can be
|
||||||
# members` to a single `role`. Members can be user accounts, service accounts,
|
# user accounts, service accounts, Google groups, and domains (such as G Suite).
|
||||||
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
# A `role` is a named list of permissions; each `role` can be an IAM predefined
|
||||||
# permissions; each `role` can be an IAM predefined role or a user-created
|
# role or a user-created custom role. For some types of Google Cloud resources,
|
||||||
# custom role.
|
# a `binding` can also specify a `condition`, which is a logical expression that
|
||||||
# For some types of Google Cloud resources, a `binding` can also specify a `
|
# allows access to a resource only if the expression evaluates to `true`. A
|
||||||
# condition`, which is a logical expression that allows access to a resource
|
# condition can add constraints based on attributes of the request, the resource,
|
||||||
# only if the expression evaluates to `true`. A condition can add constraints
|
# or both. To learn which resources support conditions in their IAM policies,
|
||||||
# based on attributes of the request, the resource, or both. To learn which
|
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
||||||
# resources support conditions in their IAM policies, see the [IAM documentation]
|
# resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
|
||||||
# (https://cloud.google.com/iam/help/conditions/resource-policies).
|
# resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
|
||||||
# **JSON example:**
|
# group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
|
||||||
# ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members":
|
# appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
|
||||||
# [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
# organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
|
||||||
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
# title": "expirable access", "description": "Does not grant access after Sep
|
||||||
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
# 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
|
||||||
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
|
||||||
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
# members: - user:mike@example.com - group:admins@example.com - domain:google.
|
||||||
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 `
|
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
|
||||||
# **YAML example:**
|
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
||||||
# bindings: - members: - user:mike@example.com - group:admins@example.com -
|
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
||||||
# domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
# description: Does not grant access after Sep 2020 expression: request.time <
|
||||||
# role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
|
# timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
|
||||||
# com role: roles/resourcemanager.organizationViewer condition: title: expirable
|
# description of IAM and its features, see the [IAM documentation](https://cloud.
|
||||||
# access description: Does not grant access after Sep 2020 expression: request.
|
# google.com/iam/docs/).
|
||||||
# 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`
|
# Corresponds to the JSON property `policy`
|
||||||
# @return [Google::Apis::DeploymentmanagerV2::Policy]
|
# @return [Google::Apis::DeploymentmanagerV2::Policy]
|
||||||
attr_accessor :policy
|
attr_accessor :policy
|
||||||
|
@ -704,171 +605,11 @@ module Google
|
||||||
end
|
end
|
||||||
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::DeploymentmanagerV2::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::DeploymentmanagerV2::LogConfigCounterOptions]
|
|
||||||
attr_accessor :counter
|
|
||||||
|
|
||||||
# Write a Data Access (Gin) log
|
|
||||||
# Corresponds to the JSON property `dataAccess`
|
|
||||||
# @return [Google::Apis::DeploymentmanagerV2::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::DeploymentmanagerV2::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<Google::Apis::DeploymentmanagerV2::LogConfigCounterOptionsCustomField>]
|
|
||||||
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
|
class Manifest
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
#
|
# Output only. The YAML configuration for this manifest.
|
||||||
# Corresponds to the JSON property `config`
|
# Corresponds to the JSON property `config`
|
||||||
# @return [Google::Apis::DeploymentmanagerV2::ConfigFile]
|
# @return [Google::Apis::DeploymentmanagerV2::ConfigFile]
|
||||||
attr_accessor :config
|
attr_accessor :config
|
||||||
|
@ -899,8 +640,7 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :layout
|
attr_accessor :layout
|
||||||
|
|
||||||
# Output only.
|
# Output only. The name of the manifest.
|
||||||
# The name of the manifest.
|
|
||||||
# Corresponds to the JSON property `name`
|
# Corresponds to the JSON property `name`
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
@ -953,21 +693,16 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
# Represents an Operation resource.
|
# Represents an Operation resource. Google Compute Engine has three Operation
|
||||||
# Google Compute Engine has three Operation resources:
|
# resources: * [Global](/compute/docs/reference/rest/`$api_version`/
|
||||||
# * [Global](/compute/docs/reference/rest/`$api_version`/globalOperations) * [
|
# globalOperations) * [Regional](/compute/docs/reference/rest/`$api_version`/
|
||||||
# Regional](/compute/docs/reference/rest/`$api_version`/regionOperations) * [
|
# regionOperations) * [Zonal](/compute/docs/reference/rest/`$api_version`/
|
||||||
# Zonal](/compute/docs/reference/rest/`$api_version`/zoneOperations)
|
# zoneOperations) You can use an operation resource to manage asynchronous API
|
||||||
# You can use an operation resource to manage asynchronous API requests. For
|
# requests. For more information, read Handling API responses. Operations can be
|
||||||
# more information, read Handling API responses.
|
# global, regional or zonal. - For global operations, use the `globalOperations`
|
||||||
# Operations can be global, regional or zonal.
|
# resource. - For regional operations, use the `regionOperations` resource. -
|
||||||
# - For global operations, use the `globalOperations` resource.
|
# For zonal operations, use the `zonalOperations` resource. For more information,
|
||||||
# - For regional operations, use the `regionOperations` resource.
|
# read Global, Regional, and Zonal Resources.
|
||||||
# - 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 ==)
|
|
||||||
class Operation
|
class Operation
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -1203,8 +938,8 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :code
|
attr_accessor :code
|
||||||
|
|
||||||
# [Output Only] Metadata about this warning in key: value format. For example:
|
# [Output Only] Metadata about this warning in key: value format. For example: "
|
||||||
# "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
|
# data": [ ` "key": "scope", "value": "zones/us-east1-d" `
|
||||||
# Corresponds to the JSON property `data`
|
# Corresponds to the JSON property `data`
|
||||||
# @return [Array<Google::Apis::DeploymentmanagerV2::Operation::Warning::Datum>]
|
# @return [Array<Google::Apis::DeploymentmanagerV2::Operation::Warning::Datum>]
|
||||||
attr_accessor :data
|
attr_accessor :data
|
||||||
|
@ -1285,35 +1020,32 @@ module Google
|
||||||
end
|
end
|
||||||
|
|
||||||
# An Identity and Access Management (IAM) policy, which specifies access
|
# An Identity and Access Management (IAM) policy, which specifies access
|
||||||
# controls for Google Cloud resources.
|
# controls for Google Cloud resources. A `Policy` is a collection of `bindings`.
|
||||||
# A `Policy` is a collection of `bindings`. A `binding` binds one or more `
|
# A `binding` binds one or more `members` to a single `role`. Members can be
|
||||||
# members` to a single `role`. Members can be user accounts, service accounts,
|
# user accounts, service accounts, Google groups, and domains (such as G Suite).
|
||||||
# Google groups, and domains (such as G Suite). A `role` is a named list of
|
# A `role` is a named list of permissions; each `role` can be an IAM predefined
|
||||||
# permissions; each `role` can be an IAM predefined role or a user-created
|
# role or a user-created custom role. For some types of Google Cloud resources,
|
||||||
# custom role.
|
# a `binding` can also specify a `condition`, which is a logical expression that
|
||||||
# For some types of Google Cloud resources, a `binding` can also specify a `
|
# allows access to a resource only if the expression evaluates to `true`. A
|
||||||
# condition`, which is a logical expression that allows access to a resource
|
# condition can add constraints based on attributes of the request, the resource,
|
||||||
# only if the expression evaluates to `true`. A condition can add constraints
|
# or both. To learn which resources support conditions in their IAM policies,
|
||||||
# based on attributes of the request, the resource, or both. To learn which
|
# see the [IAM documentation](https://cloud.google.com/iam/help/conditions/
|
||||||
# resources support conditions in their IAM policies, see the [IAM documentation]
|
# resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/
|
||||||
# (https://cloud.google.com/iam/help/conditions/resource-policies).
|
# resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", "
|
||||||
# **JSON example:**
|
# group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@
|
||||||
# ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members":
|
# appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager.
|
||||||
# [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", "
|
# organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` "
|
||||||
# serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": "
|
# title": "expirable access", "description": "Does not grant access after Sep
|
||||||
# roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com"
|
# 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", `
|
||||||
# ], "condition": ` "title": "expirable access", "description": "Does not grant
|
# ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: -
|
||||||
# access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00:
|
# members: - user:mike@example.com - group:admins@example.com - domain:google.
|
||||||
# 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 `
|
# com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/
|
||||||
# **YAML example:**
|
# resourcemanager.organizationAdmin - members: - user:eve@example.com role:
|
||||||
# bindings: - members: - user:mike@example.com - group:admins@example.com -
|
# roles/resourcemanager.organizationViewer condition: title: expirable access
|
||||||
# domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com
|
# description: Does not grant access after Sep 2020 expression: request.time <
|
||||||
# role: roles/resourcemanager.organizationAdmin - members: - user:eve@example.
|
# timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a
|
||||||
# com role: roles/resourcemanager.organizationViewer condition: title: expirable
|
# description of IAM and its features, see the [IAM documentation](https://cloud.
|
||||||
# access description: Does not grant access after Sep 2020 expression: request.
|
# google.com/iam/docs/).
|
||||||
# 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
|
class Policy
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
|
@ -1335,51 +1067,31 @@ module Google
|
||||||
# to perform policy updates in order to avoid race conditions: An `etag` is
|
# 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
|
# 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
|
# that etag in the request to `setIamPolicy` to ensure that their change will be
|
||||||
# applied to the same version of the policy.
|
# applied to the same version of the policy. **Important:** If you use IAM
|
||||||
# **Important:** If you use IAM Conditions, you must include the `etag` field
|
# Conditions, you must include the `etag` field whenever you call `setIamPolicy`.
|
||||||
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
|
# If you omit this field, then IAM allows you to overwrite a version `3` policy
|
||||||
# to overwrite a version `3` policy with a version `1` policy, and all of the
|
# with a version `1` policy, and all of the conditions in the version `3` policy
|
||||||
# conditions in the version `3` policy are lost.
|
# are lost.
|
||||||
# Corresponds to the JSON property `etag`
|
# Corresponds to the JSON property `etag`
|
||||||
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
# NOTE: Values are automatically base64 encoded/decoded in the client library.
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :etag
|
attr_accessor :etag
|
||||||
|
|
||||||
#
|
# Specifies the format of the policy. Valid values are `0`, `1`, and `3`.
|
||||||
# Corresponds to the JSON property `iamOwned`
|
# Requests that specify an invalid value are rejected. Any operation that
|
||||||
# @return [Boolean]
|
# affects conditional role bindings must specify version `3`. This requirement
|
||||||
attr_accessor :iam_owned
|
# applies to the following operations: * Getting a policy that includes a
|
||||||
alias_method :iam_owned?, :iam_owned
|
# conditional role binding * Adding a conditional role binding to a policy *
|
||||||
|
# Changing a conditional role binding in a policy * Removing any role binding,
|
||||||
# If more than one rule is specified, the rules are applied in the following
|
# with or without a condition, from a policy that includes conditions **
|
||||||
# manner: - All matching LOG rules are always applied. - If any DENY/
|
# Important:** If you use IAM Conditions, you must include the `etag` field
|
||||||
# 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<Google::Apis::DeploymentmanagerV2::Rule>]
|
|
||||||
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
|
|
||||||
# whenever you call `setIamPolicy`. If you omit this field, then IAM allows you
|
# 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
|
# to overwrite a version `3` policy with a version `1` policy, and all of the
|
||||||
# conditions in the version `3` policy are lost.
|
# conditions in the version `3` policy are lost. If a policy does not include
|
||||||
# If a policy does not include any conditions, operations on that policy may
|
# any conditions, operations on that policy may specify any valid version or
|
||||||
# specify any valid version or leave the field unset.
|
# leave the field unset. To learn which resources support conditions in their
|
||||||
# To learn which resources support conditions in their IAM policies, see the [
|
# IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/
|
||||||
# IAM documentation](https://cloud.google.com/iam/help/conditions/resource-
|
# conditions/resource-policies).
|
||||||
# policies).
|
|
||||||
# Corresponds to the JSON property `version`
|
# Corresponds to the JSON property `version`
|
||||||
# @return [Fixnum]
|
# @return [Fixnum]
|
||||||
attr_accessor :version
|
attr_accessor :version
|
||||||
|
@ -1393,8 +1105,6 @@ module Google
|
||||||
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
|
@audit_configs = args[:audit_configs] if args.key?(:audit_configs)
|
||||||
@bindings = args[:bindings] if args.key?(:bindings)
|
@bindings = args[:bindings] if args.key?(:bindings)
|
||||||
@etag = args[:etag] if args.key?(:etag)
|
@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)
|
@version = args[:version] if args.key?(:version)
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -1447,7 +1157,8 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :type
|
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`
|
# Corresponds to the JSON property `update`
|
||||||
# @return [Google::Apis::DeploymentmanagerV2::ResourceUpdate]
|
# @return [Google::Apis::DeploymentmanagerV2::ResourceUpdate]
|
||||||
attr_accessor :update
|
attr_accessor :update
|
||||||
|
@ -1498,8 +1209,8 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :code
|
attr_accessor :code
|
||||||
|
|
||||||
# [Output Only] Metadata about this warning in key: value format. For example:
|
# [Output Only] Metadata about this warning in key: value format. For example: "
|
||||||
# "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
|
# data": [ ` "key": "scope", "value": "zones/us-east1-d" `
|
||||||
# Corresponds to the JSON property `data`
|
# Corresponds to the JSON property `data`
|
||||||
# @return [Array<Google::Apis::DeploymentmanagerV2::Resource::Warning::Datum>]
|
# @return [Array<Google::Apis::DeploymentmanagerV2::Resource::Warning::Datum>]
|
||||||
attr_accessor :data
|
attr_accessor :data
|
||||||
|
@ -1699,8 +1410,8 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :code
|
attr_accessor :code
|
||||||
|
|
||||||
# [Output Only] Metadata about this warning in key: value format. For example:
|
# [Output Only] Metadata about this warning in key: value format. For example: "
|
||||||
# "data": [ ` "key": "scope", "value": "zones/us-east1-d" `
|
# data": [ ` "key": "scope", "value": "zones/us-east1-d" `
|
||||||
# Corresponds to the JSON property `data`
|
# Corresponds to the JSON property `data`
|
||||||
# @return [Array<Google::Apis::DeploymentmanagerV2::ResourceUpdate::Warning::Datum>]
|
# @return [Array<Google::Apis::DeploymentmanagerV2::ResourceUpdate::Warning::Datum>]
|
||||||
attr_accessor :data
|
attr_accessor :data
|
||||||
|
@ -1780,72 +1491,11 @@ module Google
|
||||||
end
|
end
|
||||||
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<Google::Apis::DeploymentmanagerV2::Condition>]
|
|
||||||
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<String>]
|
|
||||||
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<Google::Apis::DeploymentmanagerV2::LogConfig>]
|
|
||||||
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<String>]
|
|
||||||
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<String>]
|
|
||||||
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
|
|
||||||
|
|
||||||
#
|
#
|
||||||
class TargetConfiguration
|
class TargetConfiguration
|
||||||
include Google::Apis::Core::Hashable
|
include Google::Apis::Core::Hashable
|
||||||
|
|
||||||
#
|
# The configuration to use for this deployment.
|
||||||
# Corresponds to the JSON property `config`
|
# Corresponds to the JSON property `config`
|
||||||
# @return [Google::Apis::DeploymentmanagerV2::ConfigFile]
|
# @return [Google::Apis::DeploymentmanagerV2::ConfigFile]
|
||||||
attr_accessor :config
|
attr_accessor :config
|
||||||
|
@ -1926,21 +1576,16 @@ module Google
|
||||||
# @return [String]
|
# @return [String]
|
||||||
attr_accessor :name
|
attr_accessor :name
|
||||||
|
|
||||||
# Represents an Operation resource.
|
# Represents an Operation resource. Google Compute Engine has three Operation
|
||||||
# Google Compute Engine has three Operation resources:
|
# resources: * [Global](/compute/docs/reference/rest/`$api_version`/
|
||||||
# * [Global](/compute/docs/reference/rest/`$api_version`/globalOperations) * [
|
# globalOperations) * [Regional](/compute/docs/reference/rest/`$api_version`/
|
||||||
# Regional](/compute/docs/reference/rest/`$api_version`/regionOperations) * [
|
# regionOperations) * [Zonal](/compute/docs/reference/rest/`$api_version`/
|
||||||
# Zonal](/compute/docs/reference/rest/`$api_version`/zoneOperations)
|
# zoneOperations) You can use an operation resource to manage asynchronous API
|
||||||
# You can use an operation resource to manage asynchronous API requests. For
|
# requests. For more information, read Handling API responses. Operations can be
|
||||||
# more information, read Handling API responses.
|
# global, regional or zonal. - For global operations, use the `globalOperations`
|
||||||
# Operations can be global, regional or zonal.
|
# resource. - For regional operations, use the `regionOperations` resource. -
|
||||||
# - For global operations, use the `globalOperations` resource.
|
# For zonal operations, use the `zonalOperations` resource. For more information,
|
||||||
# - For regional operations, use the `regionOperations` resource.
|
# read Global, Regional, and Zonal Resources.
|
||||||
# - 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 ==)
|
|
||||||
# Corresponds to the JSON property `operation`
|
# Corresponds to the JSON property `operation`
|
||||||
# @return [Google::Apis::DeploymentmanagerV2::Operation]
|
# @return [Google::Apis::DeploymentmanagerV2::Operation]
|
||||||
attr_accessor :operation
|
attr_accessor :operation
|
||||||
|
|
|
@ -34,24 +34,12 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class AuthorizationLoggingOptions
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class Binding
|
class Binding
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Condition
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class ConfigFile
|
class ConfigFile
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -118,36 +106,6 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
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 Manifest
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -262,12 +220,6 @@ module Google
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
include Google::Apis::Core::JsonObjectSupport
|
||||||
end
|
end
|
||||||
|
|
||||||
class Rule
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
|
||||||
|
|
||||||
include Google::Apis::Core::JsonObjectSupport
|
|
||||||
end
|
|
||||||
|
|
||||||
class TargetConfiguration
|
class TargetConfiguration
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||||
|
|
||||||
|
@ -303,7 +255,6 @@ module Google
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::DeploymentmanagerV2::AuditLogConfig, decorator: Google::Apis::DeploymentmanagerV2::AuditLogConfig::Representation
|
collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::DeploymentmanagerV2::AuditLogConfig, decorator: Google::Apis::DeploymentmanagerV2::AuditLogConfig::Representation
|
||||||
|
|
||||||
collection :exempted_members, as: 'exemptedMembers'
|
|
||||||
property :service, as: 'service'
|
property :service, as: 'service'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -312,18 +263,10 @@ module Google
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
collection :exempted_members, as: 'exemptedMembers'
|
collection :exempted_members, as: 'exemptedMembers'
|
||||||
property :ignore_child_exemptions, as: 'ignoreChildExemptions'
|
|
||||||
property :log_type, as: 'logType'
|
property :log_type, as: 'logType'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class AuthorizationLoggingOptions
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :permission_type, as: 'permissionType'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class Binding
|
class Binding
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -334,17 +277,6 @@ module Google
|
||||||
end
|
end
|
||||||
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
|
class ConfigFile
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -452,52 +384,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class LogConfig
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :cloud_audit, as: 'cloudAudit', class: Google::Apis::DeploymentmanagerV2::LogConfigCloudAuditOptions, decorator: Google::Apis::DeploymentmanagerV2::LogConfigCloudAuditOptions::Representation
|
|
||||||
|
|
||||||
property :counter, as: 'counter', class: Google::Apis::DeploymentmanagerV2::LogConfigCounterOptions, decorator: Google::Apis::DeploymentmanagerV2::LogConfigCounterOptions::Representation
|
|
||||||
|
|
||||||
property :data_access, as: 'dataAccess', class: Google::Apis::DeploymentmanagerV2::LogConfigDataAccessOptions, decorator: Google::Apis::DeploymentmanagerV2::LogConfigDataAccessOptions::Representation
|
|
||||||
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class LogConfigCloudAuditOptions
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :authorization_logging_options, as: 'authorizationLoggingOptions', class: Google::Apis::DeploymentmanagerV2::AuthorizationLoggingOptions, decorator: Google::Apis::DeploymentmanagerV2::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::DeploymentmanagerV2::LogConfigCounterOptionsCustomField, decorator: Google::Apis::DeploymentmanagerV2::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
|
class Manifest
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
@ -606,9 +492,6 @@ module Google
|
||||||
collection :bindings, as: 'bindings', class: Google::Apis::DeploymentmanagerV2::Binding, decorator: Google::Apis::DeploymentmanagerV2::Binding::Representation
|
collection :bindings, as: 'bindings', class: Google::Apis::DeploymentmanagerV2::Binding, decorator: Google::Apis::DeploymentmanagerV2::Binding::Representation
|
||||||
|
|
||||||
property :etag, :base64 => true, as: 'etag'
|
property :etag, :base64 => true, as: 'etag'
|
||||||
property :iam_owned, as: 'iamOwned'
|
|
||||||
collection :rules, as: 'rules', class: Google::Apis::DeploymentmanagerV2::Rule, decorator: Google::Apis::DeploymentmanagerV2::Rule::Representation
|
|
||||||
|
|
||||||
property :version, as: 'version'
|
property :version, as: 'version'
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
@ -720,21 +603,6 @@ module Google
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
class Rule
|
|
||||||
# @private
|
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
|
||||||
property :action, as: 'action'
|
|
||||||
collection :conditions, as: 'conditions', class: Google::Apis::DeploymentmanagerV2::Condition, decorator: Google::Apis::DeploymentmanagerV2::Condition::Representation
|
|
||||||
|
|
||||||
property :description, as: 'description'
|
|
||||||
collection :ins, as: 'ins'
|
|
||||||
collection :log_configs, as: 'logConfigs', class: Google::Apis::DeploymentmanagerV2::LogConfig, decorator: Google::Apis::DeploymentmanagerV2::LogConfig::Representation
|
|
||||||
|
|
||||||
collection :not_ins, as: 'notIns'
|
|
||||||
collection :permissions, as: 'permissions'
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
class TargetConfiguration
|
class TargetConfiguration
|
||||||
# @private
|
# @private
|
||||||
class Representation < Google::Apis::Core::JsonRepresentation
|
class Representation < Google::Apis::Core::JsonRepresentation
|
||||||
|
|
|
@ -20,9 +20,11 @@ require 'google/apis/errors'
|
||||||
module Google
|
module Google
|
||||||
module Apis
|
module Apis
|
||||||
module DeploymentmanagerV2
|
module DeploymentmanagerV2
|
||||||
# Google Cloud Deployment Manager API
|
# Cloud Deployment Manager V2 API
|
||||||
#
|
#
|
||||||
# Declares, configures, and deploys complex solutions on 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
|
# @example
|
||||||
# require 'google/apis/deploymentmanager_v2'
|
# require 'google/apis/deploymentmanager_v2'
|
||||||
|
@ -30,7 +32,7 @@ module Google
|
||||||
# Deploymentmanager = Google::Apis::DeploymentmanagerV2 # Alias the module
|
# Deploymentmanager = Google::Apis::DeploymentmanagerV2 # Alias the module
|
||||||
# service = Deploymentmanager::DeploymentManagerService.new
|
# service = Deploymentmanager::DeploymentManagerService.new
|
||||||
#
|
#
|
||||||
# @see https://cloud.google.com/deployment-manager/
|
# @see http://cloud.google.com/deployment-manager
|
||||||
class DeploymentManagerService < Google::Apis::Core::BaseService
|
class DeploymentManagerService < Google::Apis::Core::BaseService
|
||||||
# @return [String]
|
# @return [String]
|
||||||
# API key. Your API key identifies your project and provides you with API access,
|
# API key. Your API key identifies your project and provides you with API access,
|
||||||
|
@ -38,17 +40,13 @@ module Google
|
||||||
attr_accessor :key
|
attr_accessor :key
|
||||||
|
|
||||||
# @return [String]
|
# @return [String]
|
||||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
attr_accessor :quota_user
|
attr_accessor :quota_user
|
||||||
|
|
||||||
# @return [String]
|
|
||||||
# Deprecated. Please use quotaUser instead.
|
|
||||||
attr_accessor :user_ip
|
|
||||||
|
|
||||||
def initialize
|
def initialize
|
||||||
super('https://www.googleapis.com/', 'deploymentmanager/v2/projects/')
|
super('https://deploymentmanager.googleapis.com/', '')
|
||||||
@batch_path = 'batch/deploymentmanager/v2'
|
@batch_path = 'batch'
|
||||||
end
|
end
|
||||||
|
|
||||||
# Cancels and removes the preview currently associated with the deployment.
|
# Cancels and removes the preview currently associated with the deployment.
|
||||||
|
@ -60,10 +58,8 @@ module Google
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] user_ip
|
|
||||||
# Deprecated. Please use quotaUser instead.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -76,8 +72,8 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @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)
|
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, '{project}/global/deployments/{deployment}/cancelPreview', options)
|
command = make_simple_command(:post, 'deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/cancelPreview', options)
|
||||||
command.request_representation = Google::Apis::DeploymentmanagerV2::DeploymentsCancelPreviewRequest::Representation
|
command.request_representation = Google::Apis::DeploymentmanagerV2::DeploymentsCancelPreviewRequest::Representation
|
||||||
command.request_object = deployments_cancel_preview_request_object
|
command.request_object = deployments_cancel_preview_request_object
|
||||||
command.response_representation = Google::Apis::DeploymentmanagerV2::Operation::Representation
|
command.response_representation = Google::Apis::DeploymentmanagerV2::Operation::Representation
|
||||||
|
@ -86,7 +82,6 @@ module Google
|
||||||
command.params['deployment'] = deployment unless deployment.nil?
|
command.params['deployment'] = deployment unless deployment.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.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)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -100,10 +95,8 @@ module Google
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] user_ip
|
|
||||||
# Deprecated. Please use quotaUser instead.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -116,8 +109,8 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @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)
|
def delete_deployment(project, deployment, delete_policy: nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:delete, '{project}/global/deployments/{deployment}', options)
|
command = make_simple_command(:delete, 'deploymentmanager/v2/projects/{project}/global/deployments/{deployment}', options)
|
||||||
command.response_representation = Google::Apis::DeploymentmanagerV2::Operation::Representation
|
command.response_representation = Google::Apis::DeploymentmanagerV2::Operation::Representation
|
||||||
command.response_class = Google::Apis::DeploymentmanagerV2::Operation
|
command.response_class = Google::Apis::DeploymentmanagerV2::Operation
|
||||||
command.params['project'] = project unless project.nil?
|
command.params['project'] = project unless project.nil?
|
||||||
|
@ -125,7 +118,6 @@ module Google
|
||||||
command.query['deletePolicy'] = delete_policy unless delete_policy.nil?
|
command.query['deletePolicy'] = delete_policy unless delete_policy.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.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)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -137,10 +129,8 @@ module Google
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] user_ip
|
|
||||||
# Deprecated. Please use quotaUser instead.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -153,15 +143,14 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_deployment(project, deployment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_deployment(project, deployment, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, '{project}/global/deployments/{deployment}', options)
|
command = make_simple_command(:get, 'deploymentmanager/v2/projects/{project}/global/deployments/{deployment}', options)
|
||||||
command.response_representation = Google::Apis::DeploymentmanagerV2::Deployment::Representation
|
command.response_representation = Google::Apis::DeploymentmanagerV2::Deployment::Representation
|
||||||
command.response_class = Google::Apis::DeploymentmanagerV2::Deployment
|
command.response_class = Google::Apis::DeploymentmanagerV2::Deployment
|
||||||
command.params['project'] = project unless project.nil?
|
command.params['project'] = project unless project.nil?
|
||||||
command.params['deployment'] = deployment unless deployment.nil?
|
command.params['deployment'] = deployment unless deployment.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.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)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -171,13 +160,13 @@ module Google
|
||||||
# Project ID for this request.
|
# Project ID for this request.
|
||||||
# @param [String] resource
|
# @param [String] resource
|
||||||
# Name or id of the resource for this request.
|
# Name or id of the resource for this request.
|
||||||
|
# @param [Fixnum] options_requested_policy_version
|
||||||
|
# Requested IAM Policy version.
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] user_ip
|
|
||||||
# Deprecated. Please use quotaUser instead.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -190,15 +179,15 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @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)
|
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, '{project}/global/deployments/{resource}/getIamPolicy', options)
|
command = make_simple_command(:get, 'deploymentmanager/v2/projects/{project}/global/deployments/{resource}/getIamPolicy', options)
|
||||||
command.response_representation = Google::Apis::DeploymentmanagerV2::Policy::Representation
|
command.response_representation = Google::Apis::DeploymentmanagerV2::Policy::Representation
|
||||||
command.response_class = Google::Apis::DeploymentmanagerV2::Policy
|
command.response_class = Google::Apis::DeploymentmanagerV2::Policy
|
||||||
command.params['project'] = project unless project.nil?
|
command.params['project'] = project unless project.nil?
|
||||||
command.params['resource'] = resource unless resource.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['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.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)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -220,10 +209,8 @@ module Google
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] user_ip
|
|
||||||
# Deprecated. Please use quotaUser instead.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -236,8 +223,8 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @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)
|
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, '{project}/global/deployments', options)
|
command = make_simple_command(:post, 'deploymentmanager/v2/projects/{project}/global/deployments', options)
|
||||||
command.request_representation = Google::Apis::DeploymentmanagerV2::Deployment::Representation
|
command.request_representation = Google::Apis::DeploymentmanagerV2::Deployment::Representation
|
||||||
command.request_object = deployment_object
|
command.request_object = deployment_object
|
||||||
command.response_representation = Google::Apis::DeploymentmanagerV2::Operation::Representation
|
command.response_representation = Google::Apis::DeploymentmanagerV2::Operation::Representation
|
||||||
|
@ -247,7 +234,6 @@ module Google
|
||||||
command.query['preview'] = preview unless preview.nil?
|
command.query['preview'] = preview unless preview.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.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)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -258,19 +244,18 @@ module Google
|
||||||
# A filter expression that filters resources listed in the response. The
|
# A filter expression that filters resources listed in the response. The
|
||||||
# expression must specify the field name, a comparison operator, and the value
|
# 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
|
# 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 `<`.
|
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For
|
||||||
# For example, if you are filtering Compute Engine instances, you can exclude
|
# example, if you are filtering Compute Engine instances, you can exclude
|
||||||
# instances named `example-instance` by specifying `name != example-instance`.
|
# instances named `example-instance` by specifying `name != example-instance`.
|
||||||
# You can also filter nested fields. For example, you could specify `scheduling.
|
# You can also filter nested fields. For example, you could specify `scheduling.
|
||||||
# automaticRestart = false` to include instances only if they are not scheduled
|
# automaticRestart = false` to include instances only if they are not scheduled
|
||||||
# for automatic restarts. You can use filtering on nested fields to filter based
|
# for automatic restarts. You can use filtering on nested fields to filter based
|
||||||
# on resource labels.
|
# on resource labels. To filter on multiple expressions, provide each separate
|
||||||
# To filter on multiple expressions, provide each separate expression within
|
# expression within parentheses. For example: ``` (scheduling.automaticRestart =
|
||||||
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
# true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `
|
||||||
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
# AND` expression. However, you can include `AND` and `OR` expressions
|
||||||
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
# explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform =
|
||||||
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
# "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
||||||
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
|
||||||
# @param [Fixnum] max_results
|
# @param [Fixnum] max_results
|
||||||
# The maximum number of results per page that should be returned. If the number
|
# 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 `
|
# of available results is larger than `maxResults`, Compute Engine returns a `
|
||||||
|
@ -278,23 +263,23 @@ module Google
|
||||||
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
||||||
# @param [String] order_by
|
# @param [String] order_by
|
||||||
# Sorts list results by a certain order. By default, results are returned in
|
# Sorts list results by a certain order. By default, results are returned in
|
||||||
# alphanumerical order based on the resource name.
|
# alphanumerical order based on the resource name. You can also sort results in
|
||||||
# You can also sort results in descending order based on the creation timestamp
|
# descending order based on the creation timestamp using `orderBy="
|
||||||
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
||||||
# creationTimestamp` field in reverse chronological order (newest result first).
|
# field in reverse chronological order (newest result first). Use this to sort
|
||||||
# Use this to sort resources like operations so that the newest operation is
|
# resources like operations so that the newest operation is returned first.
|
||||||
# returned first.
|
|
||||||
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
||||||
# @param [String] page_token
|
# @param [String] page_token
|
||||||
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
||||||
# by a previous list request to get the next page of results.
|
# 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
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] user_ip
|
|
||||||
# Deprecated. Please use quotaUser instead.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -307,8 +292,8 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @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)
|
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, '{project}/global/deployments', options)
|
command = make_simple_command(:get, 'deploymentmanager/v2/projects/{project}/global/deployments', options)
|
||||||
command.response_representation = Google::Apis::DeploymentmanagerV2::ListDeploymentsResponse::Representation
|
command.response_representation = Google::Apis::DeploymentmanagerV2::ListDeploymentsResponse::Representation
|
||||||
command.response_class = Google::Apis::DeploymentmanagerV2::ListDeploymentsResponse
|
command.response_class = Google::Apis::DeploymentmanagerV2::ListDeploymentsResponse
|
||||||
command.params['project'] = project unless project.nil?
|
command.params['project'] = project unless project.nil?
|
||||||
|
@ -316,9 +301,9 @@ module Google
|
||||||
command.query['maxResults'] = max_results unless max_results.nil?
|
command.query['maxResults'] = max_results unless max_results.nil?
|
||||||
command.query['orderBy'] = order_by unless order_by.nil?
|
command.query['orderBy'] = order_by unless order_by.nil?
|
||||||
command.query['pageToken'] = page_token unless page_token.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['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.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)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -347,10 +332,8 @@ module Google
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] user_ip
|
|
||||||
# Deprecated. Please use quotaUser instead.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -363,8 +346,8 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @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)
|
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, '{project}/global/deployments/{deployment}', options)
|
command = make_simple_command(:patch, 'deploymentmanager/v2/projects/{project}/global/deployments/{deployment}', options)
|
||||||
command.request_representation = Google::Apis::DeploymentmanagerV2::Deployment::Representation
|
command.request_representation = Google::Apis::DeploymentmanagerV2::Deployment::Representation
|
||||||
command.request_object = deployment_object
|
command.request_object = deployment_object
|
||||||
command.response_representation = Google::Apis::DeploymentmanagerV2::Operation::Representation
|
command.response_representation = Google::Apis::DeploymentmanagerV2::Operation::Representation
|
||||||
|
@ -376,7 +359,6 @@ module Google
|
||||||
command.query['preview'] = preview unless preview.nil?
|
command.query['preview'] = preview unless preview.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.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)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -390,10 +372,8 @@ module Google
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] user_ip
|
|
||||||
# Deprecated. Please use quotaUser instead.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -406,8 +386,8 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @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)
|
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, '{project}/global/deployments/{resource}/setIamPolicy', options)
|
command = make_simple_command(:post, 'deploymentmanager/v2/projects/{project}/global/deployments/{resource}/setIamPolicy', options)
|
||||||
command.request_representation = Google::Apis::DeploymentmanagerV2::GlobalSetPolicyRequest::Representation
|
command.request_representation = Google::Apis::DeploymentmanagerV2::GlobalSetPolicyRequest::Representation
|
||||||
command.request_object = global_set_policy_request_object
|
command.request_object = global_set_policy_request_object
|
||||||
command.response_representation = Google::Apis::DeploymentmanagerV2::Policy::Representation
|
command.response_representation = Google::Apis::DeploymentmanagerV2::Policy::Representation
|
||||||
|
@ -416,7 +396,6 @@ module Google
|
||||||
command.params['resource'] = resource unless resource.nil?
|
command.params['resource'] = resource unless resource.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.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)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -430,10 +409,8 @@ module Google
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] user_ip
|
|
||||||
# Deprecated. Please use quotaUser instead.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -446,8 +423,8 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @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)
|
def stop_deployment(project, deployment, deployments_stop_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:post, '{project}/global/deployments/{deployment}/stop', options)
|
command = make_simple_command(:post, 'deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/stop', options)
|
||||||
command.request_representation = Google::Apis::DeploymentmanagerV2::DeploymentsStopRequest::Representation
|
command.request_representation = Google::Apis::DeploymentmanagerV2::DeploymentsStopRequest::Representation
|
||||||
command.request_object = deployments_stop_request_object
|
command.request_object = deployments_stop_request_object
|
||||||
command.response_representation = Google::Apis::DeploymentmanagerV2::Operation::Representation
|
command.response_representation = Google::Apis::DeploymentmanagerV2::Operation::Representation
|
||||||
|
@ -456,7 +433,6 @@ module Google
|
||||||
command.params['deployment'] = deployment unless deployment.nil?
|
command.params['deployment'] = deployment unless deployment.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.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)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -469,10 +445,8 @@ module Google
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] user_ip
|
|
||||||
# Deprecated. Please use quotaUser instead.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -485,8 +459,8 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @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)
|
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, '{project}/global/deployments/{resource}/testIamPermissions', options)
|
command = make_simple_command(:post, 'deploymentmanager/v2/projects/{project}/global/deployments/{resource}/testIamPermissions', options)
|
||||||
command.request_representation = Google::Apis::DeploymentmanagerV2::TestPermissionsRequest::Representation
|
command.request_representation = Google::Apis::DeploymentmanagerV2::TestPermissionsRequest::Representation
|
||||||
command.request_object = test_permissions_request_object
|
command.request_object = test_permissions_request_object
|
||||||
command.response_representation = Google::Apis::DeploymentmanagerV2::TestPermissionsResponse::Representation
|
command.response_representation = Google::Apis::DeploymentmanagerV2::TestPermissionsResponse::Representation
|
||||||
|
@ -495,7 +469,6 @@ module Google
|
||||||
command.params['resource'] = resource unless resource.nil?
|
command.params['resource'] = resource unless resource.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.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)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -524,10 +497,8 @@ module Google
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] user_ip
|
|
||||||
# Deprecated. Please use quotaUser instead.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -540,8 +511,8 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @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)
|
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, '{project}/global/deployments/{deployment}', options)
|
command = make_simple_command(:put, 'deploymentmanager/v2/projects/{project}/global/deployments/{deployment}', options)
|
||||||
command.request_representation = Google::Apis::DeploymentmanagerV2::Deployment::Representation
|
command.request_representation = Google::Apis::DeploymentmanagerV2::Deployment::Representation
|
||||||
command.request_object = deployment_object
|
command.request_object = deployment_object
|
||||||
command.response_representation = Google::Apis::DeploymentmanagerV2::Operation::Representation
|
command.response_representation = Google::Apis::DeploymentmanagerV2::Operation::Representation
|
||||||
|
@ -553,7 +524,6 @@ module Google
|
||||||
command.query['preview'] = preview unless preview.nil?
|
command.query['preview'] = preview unless preview.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.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)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -567,10 +537,8 @@ module Google
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] user_ip
|
|
||||||
# Deprecated. Please use quotaUser instead.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -583,8 +551,8 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_manifest(project, deployment, manifest, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_manifest(project, deployment, manifest, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, '{project}/global/deployments/{deployment}/manifests/{manifest}', options)
|
command = make_simple_command(:get, 'deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/manifests/{manifest}', options)
|
||||||
command.response_representation = Google::Apis::DeploymentmanagerV2::Manifest::Representation
|
command.response_representation = Google::Apis::DeploymentmanagerV2::Manifest::Representation
|
||||||
command.response_class = Google::Apis::DeploymentmanagerV2::Manifest
|
command.response_class = Google::Apis::DeploymentmanagerV2::Manifest
|
||||||
command.params['project'] = project unless project.nil?
|
command.params['project'] = project unless project.nil?
|
||||||
|
@ -592,7 +560,6 @@ module Google
|
||||||
command.params['manifest'] = manifest unless manifest.nil?
|
command.params['manifest'] = manifest unless manifest.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.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)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -605,19 +572,18 @@ module Google
|
||||||
# A filter expression that filters resources listed in the response. The
|
# A filter expression that filters resources listed in the response. The
|
||||||
# expression must specify the field name, a comparison operator, and the value
|
# 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
|
# 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 `<`.
|
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For
|
||||||
# For example, if you are filtering Compute Engine instances, you can exclude
|
# example, if you are filtering Compute Engine instances, you can exclude
|
||||||
# instances named `example-instance` by specifying `name != example-instance`.
|
# instances named `example-instance` by specifying `name != example-instance`.
|
||||||
# You can also filter nested fields. For example, you could specify `scheduling.
|
# You can also filter nested fields. For example, you could specify `scheduling.
|
||||||
# automaticRestart = false` to include instances only if they are not scheduled
|
# automaticRestart = false` to include instances only if they are not scheduled
|
||||||
# for automatic restarts. You can use filtering on nested fields to filter based
|
# for automatic restarts. You can use filtering on nested fields to filter based
|
||||||
# on resource labels.
|
# on resource labels. To filter on multiple expressions, provide each separate
|
||||||
# To filter on multiple expressions, provide each separate expression within
|
# expression within parentheses. For example: ``` (scheduling.automaticRestart =
|
||||||
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
# true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `
|
||||||
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
# AND` expression. However, you can include `AND` and `OR` expressions
|
||||||
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
# explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform =
|
||||||
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
# "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
||||||
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
|
||||||
# @param [Fixnum] max_results
|
# @param [Fixnum] max_results
|
||||||
# The maximum number of results per page that should be returned. If the number
|
# 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 `
|
# of available results is larger than `maxResults`, Compute Engine returns a `
|
||||||
|
@ -625,23 +591,23 @@ module Google
|
||||||
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
||||||
# @param [String] order_by
|
# @param [String] order_by
|
||||||
# Sorts list results by a certain order. By default, results are returned in
|
# Sorts list results by a certain order. By default, results are returned in
|
||||||
# alphanumerical order based on the resource name.
|
# alphanumerical order based on the resource name. You can also sort results in
|
||||||
# You can also sort results in descending order based on the creation timestamp
|
# descending order based on the creation timestamp using `orderBy="
|
||||||
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
||||||
# creationTimestamp` field in reverse chronological order (newest result first).
|
# field in reverse chronological order (newest result first). Use this to sort
|
||||||
# Use this to sort resources like operations so that the newest operation is
|
# resources like operations so that the newest operation is returned first.
|
||||||
# returned first.
|
|
||||||
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
||||||
# @param [String] page_token
|
# @param [String] page_token
|
||||||
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
||||||
# by a previous list request to get the next page of results.
|
# 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
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] user_ip
|
|
||||||
# Deprecated. Please use quotaUser instead.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -654,8 +620,8 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @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)
|
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, '{project}/global/deployments/{deployment}/manifests', options)
|
command = make_simple_command(:get, 'deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/manifests', options)
|
||||||
command.response_representation = Google::Apis::DeploymentmanagerV2::ListManifestsResponse::Representation
|
command.response_representation = Google::Apis::DeploymentmanagerV2::ListManifestsResponse::Representation
|
||||||
command.response_class = Google::Apis::DeploymentmanagerV2::ListManifestsResponse
|
command.response_class = Google::Apis::DeploymentmanagerV2::ListManifestsResponse
|
||||||
command.params['project'] = project unless project.nil?
|
command.params['project'] = project unless project.nil?
|
||||||
|
@ -664,9 +630,9 @@ module Google
|
||||||
command.query['maxResults'] = max_results unless max_results.nil?
|
command.query['maxResults'] = max_results unless max_results.nil?
|
||||||
command.query['orderBy'] = order_by unless order_by.nil?
|
command.query['orderBy'] = order_by unless order_by.nil?
|
||||||
command.query['pageToken'] = page_token unless page_token.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['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.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)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -678,10 +644,8 @@ module Google
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] user_ip
|
|
||||||
# Deprecated. Please use quotaUser instead.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -694,15 +658,14 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_operation(project, operation, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, '{project}/global/operations/{operation}', options)
|
command = make_simple_command(:get, 'deploymentmanager/v2/projects/{project}/global/operations/{operation}', options)
|
||||||
command.response_representation = Google::Apis::DeploymentmanagerV2::Operation::Representation
|
command.response_representation = Google::Apis::DeploymentmanagerV2::Operation::Representation
|
||||||
command.response_class = Google::Apis::DeploymentmanagerV2::Operation
|
command.response_class = Google::Apis::DeploymentmanagerV2::Operation
|
||||||
command.params['project'] = project unless project.nil?
|
command.params['project'] = project unless project.nil?
|
||||||
command.params['operation'] = operation unless operation.nil?
|
command.params['operation'] = operation unless operation.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.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)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -713,19 +676,18 @@ module Google
|
||||||
# A filter expression that filters resources listed in the response. The
|
# A filter expression that filters resources listed in the response. The
|
||||||
# expression must specify the field name, a comparison operator, and the value
|
# 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
|
# 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 `<`.
|
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For
|
||||||
# For example, if you are filtering Compute Engine instances, you can exclude
|
# example, if you are filtering Compute Engine instances, you can exclude
|
||||||
# instances named `example-instance` by specifying `name != example-instance`.
|
# instances named `example-instance` by specifying `name != example-instance`.
|
||||||
# You can also filter nested fields. For example, you could specify `scheduling.
|
# You can also filter nested fields. For example, you could specify `scheduling.
|
||||||
# automaticRestart = false` to include instances only if they are not scheduled
|
# automaticRestart = false` to include instances only if they are not scheduled
|
||||||
# for automatic restarts. You can use filtering on nested fields to filter based
|
# for automatic restarts. You can use filtering on nested fields to filter based
|
||||||
# on resource labels.
|
# on resource labels. To filter on multiple expressions, provide each separate
|
||||||
# To filter on multiple expressions, provide each separate expression within
|
# expression within parentheses. For example: ``` (scheduling.automaticRestart =
|
||||||
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
# true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `
|
||||||
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
# AND` expression. However, you can include `AND` and `OR` expressions
|
||||||
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
# explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform =
|
||||||
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
# "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
||||||
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
|
||||||
# @param [Fixnum] max_results
|
# @param [Fixnum] max_results
|
||||||
# The maximum number of results per page that should be returned. If the number
|
# 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 `
|
# of available results is larger than `maxResults`, Compute Engine returns a `
|
||||||
|
@ -733,23 +695,23 @@ module Google
|
||||||
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
||||||
# @param [String] order_by
|
# @param [String] order_by
|
||||||
# Sorts list results by a certain order. By default, results are returned in
|
# Sorts list results by a certain order. By default, results are returned in
|
||||||
# alphanumerical order based on the resource name.
|
# alphanumerical order based on the resource name. You can also sort results in
|
||||||
# You can also sort results in descending order based on the creation timestamp
|
# descending order based on the creation timestamp using `orderBy="
|
||||||
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
||||||
# creationTimestamp` field in reverse chronological order (newest result first).
|
# field in reverse chronological order (newest result first). Use this to sort
|
||||||
# Use this to sort resources like operations so that the newest operation is
|
# resources like operations so that the newest operation is returned first.
|
||||||
# returned first.
|
|
||||||
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
||||||
# @param [String] page_token
|
# @param [String] page_token
|
||||||
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
||||||
# by a previous list request to get the next page of results.
|
# 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
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] user_ip
|
|
||||||
# Deprecated. Please use quotaUser instead.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -762,8 +724,8 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @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)
|
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, '{project}/global/operations', options)
|
command = make_simple_command(:get, 'deploymentmanager/v2/projects/{project}/global/operations', options)
|
||||||
command.response_representation = Google::Apis::DeploymentmanagerV2::ListOperationsResponse::Representation
|
command.response_representation = Google::Apis::DeploymentmanagerV2::ListOperationsResponse::Representation
|
||||||
command.response_class = Google::Apis::DeploymentmanagerV2::ListOperationsResponse
|
command.response_class = Google::Apis::DeploymentmanagerV2::ListOperationsResponse
|
||||||
command.params['project'] = project unless project.nil?
|
command.params['project'] = project unless project.nil?
|
||||||
|
@ -771,9 +733,9 @@ module Google
|
||||||
command.query['maxResults'] = max_results unless max_results.nil?
|
command.query['maxResults'] = max_results unless max_results.nil?
|
||||||
command.query['orderBy'] = order_by unless order_by.nil?
|
command.query['orderBy'] = order_by unless order_by.nil?
|
||||||
command.query['pageToken'] = page_token unless page_token.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['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.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)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -787,10 +749,8 @@ module Google
|
||||||
# @param [String] fields
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] user_ip
|
|
||||||
# Deprecated. Please use quotaUser instead.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -803,8 +763,8 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
||||||
def get_resource(project, deployment, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
def get_resource(project, deployment, resource, fields: nil, quota_user: nil, options: nil, &block)
|
||||||
command = make_simple_command(:get, '{project}/global/deployments/{deployment}/resources/{resource}', options)
|
command = make_simple_command(:get, 'deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/resources/{resource}', options)
|
||||||
command.response_representation = Google::Apis::DeploymentmanagerV2::Resource::Representation
|
command.response_representation = Google::Apis::DeploymentmanagerV2::Resource::Representation
|
||||||
command.response_class = Google::Apis::DeploymentmanagerV2::Resource
|
command.response_class = Google::Apis::DeploymentmanagerV2::Resource
|
||||||
command.params['project'] = project unless project.nil?
|
command.params['project'] = project unless project.nil?
|
||||||
|
@ -812,7 +772,6 @@ module Google
|
||||||
command.params['resource'] = resource unless resource.nil?
|
command.params['resource'] = resource unless resource.nil?
|
||||||
command.query['fields'] = fields unless fields.nil?
|
command.query['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.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)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -825,19 +784,18 @@ module Google
|
||||||
# A filter expression that filters resources listed in the response. The
|
# A filter expression that filters resources listed in the response. The
|
||||||
# expression must specify the field name, a comparison operator, and the value
|
# 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
|
# 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 `<`.
|
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For
|
||||||
# For example, if you are filtering Compute Engine instances, you can exclude
|
# example, if you are filtering Compute Engine instances, you can exclude
|
||||||
# instances named `example-instance` by specifying `name != example-instance`.
|
# instances named `example-instance` by specifying `name != example-instance`.
|
||||||
# You can also filter nested fields. For example, you could specify `scheduling.
|
# You can also filter nested fields. For example, you could specify `scheduling.
|
||||||
# automaticRestart = false` to include instances only if they are not scheduled
|
# automaticRestart = false` to include instances only if they are not scheduled
|
||||||
# for automatic restarts. You can use filtering on nested fields to filter based
|
# for automatic restarts. You can use filtering on nested fields to filter based
|
||||||
# on resource labels.
|
# on resource labels. To filter on multiple expressions, provide each separate
|
||||||
# To filter on multiple expressions, provide each separate expression within
|
# expression within parentheses. For example: ``` (scheduling.automaticRestart =
|
||||||
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
# true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `
|
||||||
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
# AND` expression. However, you can include `AND` and `OR` expressions
|
||||||
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
# explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform =
|
||||||
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
# "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
||||||
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
|
||||||
# @param [Fixnum] max_results
|
# @param [Fixnum] max_results
|
||||||
# The maximum number of results per page that should be returned. If the number
|
# 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 `
|
# of available results is larger than `maxResults`, Compute Engine returns a `
|
||||||
|
@ -845,23 +803,23 @@ module Google
|
||||||
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
||||||
# @param [String] order_by
|
# @param [String] order_by
|
||||||
# Sorts list results by a certain order. By default, results are returned in
|
# Sorts list results by a certain order. By default, results are returned in
|
||||||
# alphanumerical order based on the resource name.
|
# alphanumerical order based on the resource name. You can also sort results in
|
||||||
# You can also sort results in descending order based on the creation timestamp
|
# descending order based on the creation timestamp using `orderBy="
|
||||||
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
||||||
# creationTimestamp` field in reverse chronological order (newest result first).
|
# field in reverse chronological order (newest result first). Use this to sort
|
||||||
# Use this to sort resources like operations so that the newest operation is
|
# resources like operations so that the newest operation is returned first.
|
||||||
# returned first.
|
|
||||||
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
||||||
# @param [String] page_token
|
# @param [String] page_token
|
||||||
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
||||||
# by a previous list request to get the next page of results.
|
# 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
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] user_ip
|
|
||||||
# Deprecated. Please use quotaUser instead.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -874,8 +832,8 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @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)
|
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, '{project}/global/deployments/{deployment}/resources', options)
|
command = make_simple_command(:get, 'deploymentmanager/v2/projects/{project}/global/deployments/{deployment}/resources', options)
|
||||||
command.response_representation = Google::Apis::DeploymentmanagerV2::ListResourcesResponse::Representation
|
command.response_representation = Google::Apis::DeploymentmanagerV2::ListResourcesResponse::Representation
|
||||||
command.response_class = Google::Apis::DeploymentmanagerV2::ListResourcesResponse
|
command.response_class = Google::Apis::DeploymentmanagerV2::ListResourcesResponse
|
||||||
command.params['project'] = project unless project.nil?
|
command.params['project'] = project unless project.nil?
|
||||||
|
@ -884,9 +842,9 @@ module Google
|
||||||
command.query['maxResults'] = max_results unless max_results.nil?
|
command.query['maxResults'] = max_results unless max_results.nil?
|
||||||
command.query['orderBy'] = order_by unless order_by.nil?
|
command.query['orderBy'] = order_by unless order_by.nil?
|
||||||
command.query['pageToken'] = page_token unless page_token.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['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.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)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -897,19 +855,18 @@ module Google
|
||||||
# A filter expression that filters resources listed in the response. The
|
# A filter expression that filters resources listed in the response. The
|
||||||
# expression must specify the field name, a comparison operator, and the value
|
# 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
|
# 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 `<`.
|
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For
|
||||||
# For example, if you are filtering Compute Engine instances, you can exclude
|
# example, if you are filtering Compute Engine instances, you can exclude
|
||||||
# instances named `example-instance` by specifying `name != example-instance`.
|
# instances named `example-instance` by specifying `name != example-instance`.
|
||||||
# You can also filter nested fields. For example, you could specify `scheduling.
|
# You can also filter nested fields. For example, you could specify `scheduling.
|
||||||
# automaticRestart = false` to include instances only if they are not scheduled
|
# automaticRestart = false` to include instances only if they are not scheduled
|
||||||
# for automatic restarts. You can use filtering on nested fields to filter based
|
# for automatic restarts. You can use filtering on nested fields to filter based
|
||||||
# on resource labels.
|
# on resource labels. To filter on multiple expressions, provide each separate
|
||||||
# To filter on multiple expressions, provide each separate expression within
|
# expression within parentheses. For example: ``` (scheduling.automaticRestart =
|
||||||
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
# true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `
|
||||||
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
# AND` expression. However, you can include `AND` and `OR` expressions
|
||||||
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
# explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform =
|
||||||
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
# "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
|
||||||
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
|
||||||
# @param [Fixnum] max_results
|
# @param [Fixnum] max_results
|
||||||
# The maximum number of results per page that should be returned. If the number
|
# 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 `
|
# of available results is larger than `maxResults`, Compute Engine returns a `
|
||||||
|
@ -917,23 +874,23 @@ module Google
|
||||||
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
||||||
# @param [String] order_by
|
# @param [String] order_by
|
||||||
# Sorts list results by a certain order. By default, results are returned in
|
# Sorts list results by a certain order. By default, results are returned in
|
||||||
# alphanumerical order based on the resource name.
|
# alphanumerical order based on the resource name. You can also sort results in
|
||||||
# You can also sort results in descending order based on the creation timestamp
|
# descending order based on the creation timestamp using `orderBy="
|
||||||
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
||||||
# creationTimestamp` field in reverse chronological order (newest result first).
|
# field in reverse chronological order (newest result first). Use this to sort
|
||||||
# Use this to sort resources like operations so that the newest operation is
|
# resources like operations so that the newest operation is returned first.
|
||||||
# returned first.
|
|
||||||
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
||||||
# @param [String] page_token
|
# @param [String] page_token
|
||||||
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
||||||
# by a previous list request to get the next page of results.
|
# 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
|
# @param [String] fields
|
||||||
# Selector specifying which fields to include in a partial response.
|
# Selector specifying which fields to include in a partial response.
|
||||||
# @param [String] quota_user
|
# @param [String] quota_user
|
||||||
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
# Available to use for quota purposes for server-side applications. Can be any
|
||||||
# characters.
|
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
||||||
# @param [String] user_ip
|
|
||||||
# Deprecated. Please use quotaUser instead.
|
|
||||||
# @param [Google::Apis::RequestOptions] options
|
# @param [Google::Apis::RequestOptions] options
|
||||||
# Request-specific options
|
# Request-specific options
|
||||||
#
|
#
|
||||||
|
@ -946,8 +903,8 @@ module Google
|
||||||
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
# @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::ClientError] The request is invalid and should not be retried without modification
|
||||||
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
# @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)
|
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, '{project}/global/types', options)
|
command = make_simple_command(:get, 'deploymentmanager/v2/projects/{project}/global/types', options)
|
||||||
command.response_representation = Google::Apis::DeploymentmanagerV2::ListTypesResponse::Representation
|
command.response_representation = Google::Apis::DeploymentmanagerV2::ListTypesResponse::Representation
|
||||||
command.response_class = Google::Apis::DeploymentmanagerV2::ListTypesResponse
|
command.response_class = Google::Apis::DeploymentmanagerV2::ListTypesResponse
|
||||||
command.params['project'] = project unless project.nil?
|
command.params['project'] = project unless project.nil?
|
||||||
|
@ -955,9 +912,9 @@ module Google
|
||||||
command.query['maxResults'] = max_results unless max_results.nil?
|
command.query['maxResults'] = max_results unless max_results.nil?
|
||||||
command.query['orderBy'] = order_by unless order_by.nil?
|
command.query['orderBy'] = order_by unless order_by.nil?
|
||||||
command.query['pageToken'] = page_token unless page_token.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['fields'] = fields unless fields.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.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)
|
execute_or_queue_command(command, &block)
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -966,7 +923,6 @@ module Google
|
||||||
def apply_command_defaults(command)
|
def apply_command_defaults(command)
|
||||||
command.query['key'] = key unless key.nil?
|
command.query['key'] = key unless key.nil?
|
||||||
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
||||||
command.query['userIp'] = user_ip unless user_ip.nil?
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
|
@ -4,7 +4,7 @@
|
||||||
"git": {
|
"git": {
|
||||||
"name": ".",
|
"name": ".",
|
||||||
"remote": "https://github.com/googleapis/google-api-ruby-client.git",
|
"remote": "https://github.com/googleapis/google-api-ruby-client.git",
|
||||||
"sha": "c98c719bbab68d0890524d53f8b629d7858af9c2"
|
"sha": "79a43ec56f0591043ce631e889c3354471f07c7b"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
|
Loading…
Reference in New Issue