diff --git a/api_names_out.yaml b/api_names_out.yaml index 7c17cd2f1..5fdc8b017 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -67050,6 +67050,12 @@ "/deploymentmanager:alpha/AuditLogConfig/logType": log_type "/deploymentmanager:alpha/AuthorizationLoggingOptions": authorization_logging_options "/deploymentmanager:alpha/AuthorizationLoggingOptions/permissionType": permission_type +"/deploymentmanager:alpha/BaseType": base_type +"/deploymentmanager:alpha/BaseType/collectionOverrides": collection_overrides +"/deploymentmanager:alpha/BaseType/collectionOverrides/collection_override": collection_override +"/deploymentmanager:alpha/BaseType/credential": credential +"/deploymentmanager:alpha/BaseType/descriptorUrl": descriptor_url +"/deploymentmanager:alpha/BaseType/options": options "/deploymentmanager:alpha/BasicAuth": basic_auth "/deploymentmanager:alpha/BasicAuth/password": password "/deploymentmanager:alpha/BasicAuth/user": user @@ -67352,6 +67358,7 @@ "/deploymentmanager:alpha/TestPermissionsResponse/permissions": permissions "/deploymentmanager:alpha/TestPermissionsResponse/permissions/permission": permission "/deploymentmanager:alpha/Type": type +"/deploymentmanager:alpha/Type/base": base "/deploymentmanager:alpha/Type/configurableService": configurable_service "/deploymentmanager:alpha/Type/description": description "/deploymentmanager:alpha/Type/id": id diff --git a/generated/google/apis/deploymentmanager_alpha.rb b/generated/google/apis/deploymentmanager_alpha.rb index 2afeb51ab..6879c94e7 100644 --- a/generated/google/apis/deploymentmanager_alpha.rb +++ b/generated/google/apis/deploymentmanager_alpha.rb @@ -18,15 +18,16 @@ require 'google/apis/deploymentmanager_alpha/representations.rb' module Google module Apis - # Google Cloud Deployment Manager Alpha API + # Cloud Deployment Manager V2 API # - # The Deployment Manager API allows users to declaratively configure, deploy and - # run complex solutions on the Google Cloud Platform. + # The Google Cloud Deployment Manager v2 API provides services for configuring, + # deploying, and viewing Google Cloud services and APIs via templates which + # specify deployments of Cloud resources. # - # @see https://cloud.google.com/deployment-manager/ + # @see https://cloud.google.com/deployment-manager module DeploymentmanagerAlpha VERSION = 'Alpha' - REVISION = '20200519' + REVISION = '20201113' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/deploymentmanager_alpha/classes.rb b/generated/google/apis/deploymentmanager_alpha/classes.rb index b0e48b064..8df72a252 100644 --- a/generated/google/apis/deploymentmanager_alpha/classes.rb +++ b/generated/google/apis/deploymentmanager_alpha/classes.rb @@ -31,7 +31,9 @@ module Google # @return [String] attr_accessor :method_match - # + # Deployment manager will poll instances for this API resource setting a RUNNING + # state, and blocking until polling conditions tell whether the resource is + # completed or failed. # Corresponds to the JSON property `pollingOptions` # @return [Google::Apis::DeploymentmanagerAlpha::PollingOptions] attr_accessor :polling_options @@ -49,21 +51,19 @@ module Google # Specifies the audit configuration for a service. The configuration determines # which permission types are logged, and what identities, if any, are exempted - # from logging. An AuditConfig must have one or more AuditLogConfigs. - # If there are AuditConfigs for both `allServices` and a specific service, the - # union of the two AuditConfigs is used for that service: the log_types - # specified in each AuditConfig are enabled, and the exempted_members in each - # AuditLogConfig are exempted. - # Example Policy with multiple AuditConfigs: - # ` "audit_configs": [ ` "service": "allServices" "audit_log_configs": [ ` " - # log_type": "DATA_READ", "exempted_members": [ "user:jose@example.com" ] `, ` " - # log_type": "DATA_WRITE", `, ` "log_type": "ADMIN_READ", ` ] `, ` "service": " - # sampleservice.googleapis.com" "audit_log_configs": [ ` "log_type": "DATA_READ", - # `, ` "log_type": "DATA_WRITE", "exempted_members": [ "user:aliya@example.com" - # ] ` ] ` ] ` - # For sampleservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ - # logging. It also exempts jose@example.com from DATA_READ logging, and aliya@ - # example.com from DATA_WRITE logging. + # from logging. An AuditConfig must have one or more AuditLogConfigs. If there + # are AuditConfigs for both `allServices` and a specific service, the union of + # the two AuditConfigs is used for that service: the log_types specified in each + # AuditConfig are enabled, and the exempted_members in each AuditLogConfig are + # exempted. Example Policy with multiple AuditConfigs: ` "audit_configs": [ ` " + # service": "allServices", "audit_log_configs": [ ` "log_type": "DATA_READ", " + # exempted_members": [ "user:jose@example.com" ] `, ` "log_type": "DATA_WRITE" `, + # ` "log_type": "ADMIN_READ" ` ] `, ` "service": "sampleservice.googleapis.com", + # "audit_log_configs": [ ` "log_type": "DATA_READ" `, ` "log_type": "DATA_WRITE" + # , "exempted_members": [ "user:aliya@example.com" ] ` ] ` ] ` For sampleservice, + # this policy enables DATA_READ, DATA_WRITE and ADMIN_READ logging. It also + # exempts jose@example.com from DATA_READ logging, and aliya@example.com from + # DATA_WRITE logging. class AuditConfig include Google::Apis::Core::Hashable @@ -72,11 +72,6 @@ module Google # @return [Array] attr_accessor :audit_log_configs - # - # Corresponds to the JSON property `exemptedMembers` - # @return [Array] - attr_accessor :exempted_members - # Specifies a service that will be enabled for audit logging. For example, ` # storage.googleapis.com`, `cloudsql.googleapis.com`. `allServices` is a special # value that covers all services. @@ -91,31 +86,24 @@ module Google # Update properties of this object def update!(**args) @audit_log_configs = args[:audit_log_configs] if args.key?(:audit_log_configs) - @exempted_members = args[:exempted_members] if args.key?(:exempted_members) @service = args[:service] if args.key?(:service) end end - # Provides the configuration for logging a type of permissions. Example: - # ` "audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ " - # user:jose@example.com" ] `, ` "log_type": "DATA_WRITE", ` ] ` - # This enables 'DATA_READ' and 'DATA_WRITE' logging, while exempting jose@ - # example.com from DATA_READ logging. + # Provides the configuration for logging a type of permissions. Example: ` " + # audit_log_configs": [ ` "log_type": "DATA_READ", "exempted_members": [ "user: + # jose@example.com" ] `, ` "log_type": "DATA_WRITE" ` ] ` This enables ' + # DATA_READ' and 'DATA_WRITE' logging, while exempting jose@example.com from + # DATA_READ logging. class AuditLogConfig include Google::Apis::Core::Hashable # Specifies the identities that do not cause logging for this type of permission. - # Follows the same format of [Binding.members][]. + # Follows the same format of Binding.members. # Corresponds to the JSON property `exemptedMembers` # @return [Array] attr_accessor :exempted_members - # - # Corresponds to the JSON property `ignoreChildExemptions` - # @return [Boolean] - attr_accessor :ignore_child_exemptions - alias_method :ignore_child_exemptions?, :ignore_child_exemptions - # The log type that this config enables. # Corresponds to the JSON property `logType` # @return [String] @@ -128,19 +116,34 @@ module Google # Update properties of this object def update!(**args) @exempted_members = args[:exempted_members] if args.key?(:exempted_members) - @ignore_child_exemptions = args[:ignore_child_exemptions] if args.key?(:ignore_child_exemptions) @log_type = args[:log_type] if args.key?(:log_type) end end - # Authorization-related information used by Cloud Audit Logging. - class AuthorizationLoggingOptions + # BaseType that describes a service-backed Type. + class BaseType include Google::Apis::Core::Hashable - # The type of the permission that was checked. - # Corresponds to the JSON property `permissionType` + # Allows resource handling overrides for specific collections + # Corresponds to the JSON property `collectionOverrides` + # @return [Array] + attr_accessor :collection_overrides + + # The credential used by Deployment Manager and TypeProvider. Only one of the + # options is permitted. + # Corresponds to the JSON property `credential` + # @return [Google::Apis::DeploymentmanagerAlpha::Credential] + attr_accessor :credential + + # Descriptor Url for the this type. + # Corresponds to the JSON property `descriptorUrl` # @return [String] - attr_accessor :permission_type + attr_accessor :descriptor_url + + # Options allows customized resource handling by Deployment Manager. + # Corresponds to the JSON property `options` + # @return [Google::Apis::DeploymentmanagerAlpha::Options] + attr_accessor :options def initialize(**args) update!(**args) @@ -148,7 +151,10 @@ module Google # Update properties of this object def update!(**args) - @permission_type = args[:permission_type] if args.key?(:permission_type) + @collection_overrides = args[:collection_overrides] if args.key?(:collection_overrides) + @credential = args[:credential] if args.key?(:credential) + @descriptor_url = args[:descriptor_url] if args.key?(:descriptor_url) + @options = args[:options] if args.key?(:options) end end @@ -183,58 +189,49 @@ module Google # Represents a textual expression in the Common Expression Language (CEL) syntax. # CEL is a C-like expression language. The syntax and semantics of CEL are - # documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" description: "Determines if a summary is less than - # 100 chars" expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" description: "Determines if requestor is the - # document owner" expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" description: "Determine whether the document should - # be publicly visible" expression: "document.type != 'private' && document.type ! - # = 'internal'" - # Example (Data Manipulation): - # title: "Notification string" description: "Create a notification string with a - # timestamp." expression: "'New message received at ' + string(document. - # create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service documentation - # for additional information. + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. # Corresponds to the JSON property `condition` # @return [Google::Apis::DeploymentmanagerAlpha::Expr] attr_accessor :condition # Specifies the identities requesting access for a Cloud Platform resource. ` - # members` can have the following values: - # * `allUsers`: A special identifier that represents anyone who is on the - # internet; with or without a Google account. - # * `allAuthenticatedUsers`: A special identifier that represents anyone who is - # authenticated with a Google account or a service account. - # * `user:`emailid``: An email address that represents a specific Google account. - # For example, `alice@example.com` . - # * `serviceAccount:`emailid``: An email address that represents a service - # account. For example, `my-other-app@appspot.gserviceaccount.com`. - # * `group:`emailid``: An email address that represents a Google group. For - # example, `admins@example.com`. - # * `deleted:user:`emailid`?uid=`uniqueid``: An email address (plus unique - # identifier) representing a user that has been recently deleted. For example, ` - # alice@example.com?uid=123456789012345678901`. If the user is recovered, this - # value reverts to `user:`emailid`` and the recovered user retains the role in - # the binding. - # * `deleted:serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus - # unique identifier) representing a service account that has been recently - # deleted. For example, `my-other-app@appspot.gserviceaccount.com?uid= - # 123456789012345678901`. If the service account is undeleted, this value - # reverts to `serviceAccount:`emailid`` and the undeleted service account - # retains the role in the binding. - # * `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique + # members` can have the following values: * `allUsers`: A special identifier + # that represents anyone who is on the internet; with or without a Google + # account. * `allAuthenticatedUsers`: A special identifier that represents + # anyone who is authenticated with a Google account or a service account. * ` + # user:`emailid``: An email address that represents a specific Google account. + # For example, `alice@example.com` . * `serviceAccount:`emailid``: An email + # address that represents a service account. For example, `my-other-app@appspot. + # gserviceaccount.com`. * `group:`emailid``: An email address that represents a + # Google group. For example, `admins@example.com`. * `deleted:user:`emailid`?uid= + # `uniqueid``: An email address (plus unique identifier) representing a user + # that has been recently deleted. For example, `alice@example.com?uid= + # 123456789012345678901`. If the user is recovered, this value reverts to `user:` + # emailid`` and the recovered user retains the role in the binding. * `deleted: + # serviceAccount:`emailid`?uid=`uniqueid``: An email address (plus unique + # identifier) representing a service account that has been recently deleted. For + # example, `my-other-app@appspot.gserviceaccount.com?uid=123456789012345678901`. + # If the service account is undeleted, this value reverts to `serviceAccount:` + # emailid`` and the undeleted service account retains the role in the binding. * + # `deleted:group:`emailid`?uid=`uniqueid``: An email address (plus unique # identifier) representing a Google group that has been recently deleted. For # example, `admins@example.com?uid=123456789012345678901`. If the group is # recovered, this value reverts to `group:`emailid`` and the recovered group - # retains the role in the binding. - # * `domain:`domain``: The G Suite domain (primary) that represents all the - # users of that domain. For example, `google.com` or `example.com`. + # retains the role in the binding. * `domain:`domain``: The G Suite domain ( + # primary) that represents all the users of that domain. For example, `google. + # com` or `example.com`. # Corresponds to the JSON property `members` # @return [Array] attr_accessor :members @@ -325,21 +322,16 @@ module Google # @return [String] attr_accessor :name - # Represents an Operation resource. - # Google Compute Engine has three Operation resources: - # * [Global](/compute/docs/reference/rest/`$api_version`/globalOperations) * [ - # Regional](/compute/docs/reference/rest/`$api_version`/regionOperations) * [ - # Zonal](/compute/docs/reference/rest/`$api_version`/zoneOperations) - # You can use an operation resource to manage asynchronous API requests. For - # more information, read Handling API responses. - # Operations can be global, regional or zonal. - # - For global operations, use the `globalOperations` resource. - # - For regional operations, use the `regionOperations` resource. - # - For zonal operations, use the `zonalOperations` resource. - # For more information, read Global, Regional, and Zonal Resources. (== - # resource_for `$api_version`.globalOperations ==) (== resource_for `$ - # api_version`.regionOperations ==) (== resource_for `$api_version`. - # zoneOperations ==) + # Represents an Operation resource. Google Compute Engine has three Operation + # resources: * [Global](/compute/docs/reference/rest/`$api_version`/ + # globalOperations) * [Regional](/compute/docs/reference/rest/`$api_version`/ + # regionOperations) * [Zonal](/compute/docs/reference/rest/`$api_version`/ + # zoneOperations) You can use an operation resource to manage asynchronous API + # requests. For more information, read Handling API responses. Operations can be + # global, regional or zonal. - For global operations, use the `globalOperations` + # resource. - For regional operations, use the `regionOperations` resource. - + # For zonal operations, use the `zonalOperations` resource. For more information, + # read Global, Regional, and Zonal Resources. # Corresponds to the JSON property `operation` # @return [Google::Apis::DeploymentmanagerAlpha::Operation] attr_accessor :operation @@ -377,16 +369,16 @@ module Google end end - # + # Label object for CompositeTypes class CompositeTypeLabelEntry include Google::Apis::Core::Hashable - # + # Key of the label # Corresponds to the JSON property `key` # @return [String] attr_accessor :key - # + # Value of the label # Corresponds to the JSON property `value` # @return [String] attr_accessor :value @@ -428,50 +420,6 @@ module Google end end - # A condition to be met. - class Condition - include Google::Apis::Core::Hashable - - # Trusted attributes supplied by the IAM system. - # Corresponds to the JSON property `iam` - # @return [String] - attr_accessor :iam - - # An operator to apply the subject with. - # Corresponds to the JSON property `op` - # @return [String] - attr_accessor :op - - # Trusted attributes discharged by the service. - # Corresponds to the JSON property `svc` - # @return [String] - attr_accessor :svc - - # Trusted attributes supplied by any service that owns resources and uses the - # IAM system for access control. - # Corresponds to the JSON property `sys` - # @return [String] - attr_accessor :sys - - # The objects of the condition. - # Corresponds to the JSON property `values` - # @return [Array] - attr_accessor :values - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @iam = args[:iam] if args.key?(:iam) - @op = args[:op] if args.key?(:op) - @svc = args[:svc] if args.key?(:svc) - @sys = args[:sys] if args.key?(:sys) - @values = args[:values] if args.key?(:values) - end - end - # class ConfigFile include Google::Apis::Core::Hashable @@ -491,44 +439,6 @@ module Google end end - # BaseType that describes a service-backed Type. - class ConfigurableService - include Google::Apis::Core::Hashable - - # Allows resource handling overrides for specific collections - # Corresponds to the JSON property `collectionOverrides` - # @return [Array] - attr_accessor :collection_overrides - - # The credential used by Deployment Manager and TypeProvider. Only one of the - # options is permitted. - # Corresponds to the JSON property `credential` - # @return [Google::Apis::DeploymentmanagerAlpha::Credential] - attr_accessor :credential - - # Descriptor Url for the this type. - # Corresponds to the JSON property `descriptorUrl` - # @return [String] - attr_accessor :descriptor_url - - # Options allows customized resource handling by Deployment Manager. - # Corresponds to the JSON property `options` - # @return [Google::Apis::DeploymentmanagerAlpha::Options] - attr_accessor :options - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @collection_overrides = args[:collection_overrides] if args.key?(:collection_overrides) - @credential = args[:credential] if args.key?(:credential) - @descriptor_url = args[:descriptor_url] if args.key?(:descriptor_url) - @options = args[:options] if args.key?(:options) - end - end - # The credential used by Deployment Manager and TypeProvider. Only one of the # options is permitted. class Credential @@ -581,8 +491,8 @@ module Google # update()`, `stop()`, and `cancelPreview()` requests. A fingerprint is a # randomly generated value that must be provided with `update()`, `stop()`, and ` # cancelPreview()` requests to perform optimistic locking. This ensures - # optimistic concurrency so that only one request happens at a time. - # The fingerprint is initially generated by Deployment Manager and changes after + # optimistic concurrency so that only one request happens at a time. The + # fingerprint is initially generated by Deployment Manager and changes after # every request to modify data. To get the latest fingerprint value, perform a ` # get()` request to a deployment. # Corresponds to the JSON property `fingerprint` @@ -600,11 +510,11 @@ module Google # @return [String] attr_accessor :insert_time - # Map of labels; provided by the client when the resource is created or updated. - # Specifically: Label keys must be between 1 and 63 characters long and must - # conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` - # Label values must be between 0 and 63 characters long and must conform to the - # regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. + # Map of One Platform labels; provided by the client when the resource is + # created or updated. Specifically: Label keys must be between 1 and 63 + # characters long and must conform to the following regular expression: `[a-z]([- + # a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and + # must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -626,21 +536,16 @@ module Google # @return [String] attr_accessor :name - # Represents an Operation resource. - # Google Compute Engine has three Operation resources: - # * [Global](/compute/docs/reference/rest/`$api_version`/globalOperations) * [ - # Regional](/compute/docs/reference/rest/`$api_version`/regionOperations) * [ - # Zonal](/compute/docs/reference/rest/`$api_version`/zoneOperations) - # You can use an operation resource to manage asynchronous API requests. For - # more information, read Handling API responses. - # Operations can be global, regional or zonal. - # - For global operations, use the `globalOperations` resource. - # - For regional operations, use the `regionOperations` resource. - # - For zonal operations, use the `zonalOperations` resource. - # For more information, read Global, Regional, and Zonal Resources. (== - # resource_for `$api_version`.globalOperations ==) (== resource_for `$ - # api_version`.regionOperations ==) (== resource_for `$api_version`. - # zoneOperations ==) + # Represents an Operation resource. Google Compute Engine has three Operation + # resources: * [Global](/compute/docs/reference/rest/`$api_version`/ + # globalOperations) * [Regional](/compute/docs/reference/rest/`$api_version`/ + # regionOperations) * [Zonal](/compute/docs/reference/rest/`$api_version`/ + # zoneOperations) You can use an operation resource to manage asynchronous API + # requests. For more information, read Handling API responses. Operations can be + # global, regional or zonal. - For global operations, use the `globalOperations` + # resource. - For regional operations, use the `regionOperations` resource. - + # For zonal operations, use the `zonalOperations` resource. For more information, + # read Global, Regional, and Zonal Resources. # Corresponds to the JSON property `operation` # @return [Google::Apis::DeploymentmanagerAlpha::Operation] attr_accessor :operation @@ -655,12 +560,14 @@ module Google # @return [String] attr_accessor :self_link - # + # [Input Only] The parameters that define your deployment, including the + # deployment configuration and relevant templates. # Corresponds to the JSON property `target` # @return [Google::Apis::DeploymentmanagerAlpha::TargetConfiguration] attr_accessor :target - # + # Output only. If Deployment Manager is currently updating or previewing an + # update to this deployment, the updated configuration appears here. # Corresponds to the JSON property `update` # @return [Google::Apis::DeploymentmanagerAlpha::DeploymentUpdate] attr_accessor :update @@ -693,16 +600,16 @@ module Google end end - # + # Label object for Deployments class DeploymentLabelEntry include Google::Apis::Core::Hashable - # + # Key of the label # Corresponds to the JSON property `key` # @return [String] attr_accessor :key - # + # Value of the label # Corresponds to the JSON property `value` # @return [String] attr_accessor :value @@ -759,7 +666,7 @@ module Google # @return [String] attr_accessor :description - # Output only. Map of labels; provided by the client when the resource is + # Map of One Platform labels; provided by the client when the resource is # created or updated. Specifically: Label keys must be between 1 and 63 # characters long and must conform to the following regular expression: `[a-z]([- # a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and @@ -787,16 +694,16 @@ module Google end end - # + # Label object for DeploymentUpdate class DeploymentUpdateLabelEntry include Google::Apis::Core::Hashable - # + # Key of the label # Corresponds to the JSON property `key` # @return [String] attr_accessor :key - # + # Value of the label # Corresponds to the JSON property `value` # @return [String] attr_accessor :value @@ -821,10 +728,10 @@ module Google # to perform optimistic locking. This ensures optimistic concurrency so that the # deployment does not have conflicting requests (e.g. if someone attempts to # make a new update request while another user attempts to cancel a preview, - # this would prevent one of the requests). - # The fingerprint is initially generated by Deployment Manager and changes after - # every request to modify a deployment. To get the latest fingerprint value, - # perform a `get()` request on the deployment. + # this would prevent one of the requests). The fingerprint is initially + # generated by Deployment Manager and changes after every request to modify a + # deployment. To get the latest fingerprint value, perform a `get()` request on + # the deployment. # Corresponds to the JSON property `fingerprint` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -875,10 +782,9 @@ module Google # optimistic locking. This ensures optimistic concurrency so that the deployment # does not have conflicting requests (e.g. if someone attempts to make a new # update request while another user attempts to stop an ongoing update request, - # this would prevent a collision). - # The fingerprint is initially generated by Deployment Manager and changes after - # every request to modify a deployment. To get the latest fingerprint value, - # perform a `get()` request on the deployment. + # this would prevent a collision). The fingerprint is initially generated by + # Deployment Manager and changes after every request to modify a deployment. To + # get the latest fingerprint value, perform a `get()` request on the deployment. # Corresponds to the JSON property `fingerprint` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] @@ -922,24 +828,19 @@ module Google # Represents a textual expression in the Common Expression Language (CEL) syntax. # CEL is a C-like expression language. The syntax and semantics of CEL are - # documented at https://github.com/google/cel-spec. - # Example (Comparison): - # title: "Summary size limit" description: "Determines if a summary is less than - # 100 chars" expression: "document.summary.size() < 100" - # Example (Equality): - # title: "Requestor is owner" description: "Determines if requestor is the - # document owner" expression: "document.owner == request.auth.claims.email" - # Example (Logic): - # title: "Public documents" description: "Determine whether the document should - # be publicly visible" expression: "document.type != 'private' && document.type ! - # = 'internal'" - # Example (Data Manipulation): - # title: "Notification string" description: "Create a notification string with a - # timestamp." expression: "'New message received at ' + string(document. - # create_time)" - # The exact variables and functions that may be referenced within an expression - # are determined by the service that evaluates it. See the service documentation - # for additional information. + # documented at https://github.com/google/cel-spec. Example (Comparison): title: + # "Summary size limit" description: "Determines if a summary is less than 100 + # chars" expression: "document.summary.size() < 100" Example (Equality): title: " + # Requestor is owner" description: "Determines if requestor is the document + # owner" expression: "document.owner == request.auth.claims.email" Example ( + # Logic): title: "Public documents" description: "Determine whether the document + # should be publicly visible" expression: "document.type != 'private' && + # document.type != 'internal'" Example (Data Manipulation): title: "Notification + # string" description: "Create a notification string with a timestamp." + # expression: "'New message received at ' + string(document.create_time)" The + # exact variables and functions that may be referenced within an expression are + # determined by the service that evaluates it. See the service documentation for + # additional information. class Expr include Google::Apis::Core::Hashable @@ -997,35 +898,32 @@ module Google attr_accessor :etag # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more ` - # members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a ` - # condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the [IAM documentation] - # (https://cloud.google.com/iam/help/conditions/resource-policies). - # **JSON example:** - # ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": - # [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", " - # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": " - # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" - # ], "condition": ` "title": "expirable access", "description": "Does not grant - # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00: - # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` - # **YAML example:** - # bindings: - members: - user:mike@example.com - group:admins@example.com - - # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example. - # com role: roles/resourcemanager.organizationViewer condition: title: expirable - # access description: Does not grant access after Sep 2020 expression: request. - # time < timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 - # For a description of IAM and its features, see the [IAM documentation](https:// - # cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). # Corresponds to the JSON property `policy` # @return [Google::Apis::DeploymentmanagerAlpha::Policy] attr_accessor :policy @@ -1105,171 +1003,11 @@ module Google end end - # Specifies what kind of log the caller must write - class LogConfig - include Google::Apis::Core::Hashable - - # Write a Cloud Audit log - # Corresponds to the JSON property `cloudAudit` - # @return [Google::Apis::DeploymentmanagerAlpha::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::DeploymentmanagerAlpha::LogConfigCounterOptions] - attr_accessor :counter - - # Write a Data Access (Gin) log - # Corresponds to the JSON property `dataAccess` - # @return [Google::Apis::DeploymentmanagerAlpha::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::DeploymentmanagerAlpha::AuthorizationLoggingOptions] - attr_accessor :authorization_logging_options - - # The log_name to populate in the Cloud Audit Record. - # Corresponds to the JSON property `logName` - # @return [String] - attr_accessor :log_name - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @authorization_logging_options = args[:authorization_logging_options] if args.key?(:authorization_logging_options) - @log_name = args[:log_name] if args.key?(:log_name) - end - end - - # Increment a streamz counter with the specified metric and field names. - # Metric names should start with a '/', generally be lowercase-only, and end in " - # _count". Field names should not contain an initial slash. The actual exported - # metric names will have "/iam/policy" prepended. - # Field names correspond to IAM request parameters and field values are their - # respective values. - # Supported field names: - "authority", which is "[token]" if IAMContext.token - # is present, otherwise the value of IAMContext.authority_selector if present, - # and otherwise a representation of IAMContext.principal; or - "iam_principal", - # a representation of IAMContext.principal even if a token or authority selector - # is present; or - "" (empty string), resulting in a counter with no fields. - # Examples: counter ` metric: "/debug_access_count" field: "iam_principal" ` ==> - # increment counter /iam/policy/debug_access_count `iam_principal=[value of - # IAMContext.principal]` - class LogConfigCounterOptions - include Google::Apis::Core::Hashable - - # Custom fields. - # Corresponds to the JSON property `customFields` - # @return [Array] - attr_accessor :custom_fields - - # The field value to attribute. - # Corresponds to the JSON property `field` - # @return [String] - attr_accessor :field - - # The metric to update. - # Corresponds to the JSON property `metric` - # @return [String] - attr_accessor :metric - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @custom_fields = args[:custom_fields] if args.key?(:custom_fields) - @field = args[:field] if args.key?(:field) - @metric = args[:metric] if args.key?(:metric) - end - end - - # Custom fields. These can be used to create a counter with arbitrary field/ - # value pairs. See: go/rpcsp-custom-fields. - class LogConfigCounterOptionsCustomField - include Google::Apis::Core::Hashable - - # Name is the field name. - # Corresponds to the JSON property `name` - # @return [String] - attr_accessor :name - - # Value is the field value. It is important that in contrast to the - # CounterOptions.field, the value here is a constant that is not derived from - # the IAMContext. - # Corresponds to the JSON property `value` - # @return [String] - attr_accessor :value - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @name = args[:name] if args.key?(:name) - @value = args[:value] if args.key?(:value) - end - end - - # Write a Data Access (Gin) log - class LogConfigDataAccessOptions - include Google::Apis::Core::Hashable - - # - # Corresponds to the JSON property `logMode` - # @return [String] - attr_accessor :log_mode - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @log_mode = args[:log_mode] if args.key?(:log_mode) - end - end - # class Manifest include Google::Apis::Core::Hashable - # + # Output only. The YAML configuration for this manifest. # Corresponds to the JSON property `config` # @return [Google::Apis::DeploymentmanagerAlpha::ConfigFile] attr_accessor :config @@ -1300,8 +1038,7 @@ module Google # @return [String] attr_accessor :layout - # Output only. - # The name of the manifest. + # Output only. The name of the manifest. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name @@ -1399,21 +1136,16 @@ module Google end end - # Represents an Operation resource. - # Google Compute Engine has three Operation resources: - # * [Global](/compute/docs/reference/rest/`$api_version`/globalOperations) * [ - # Regional](/compute/docs/reference/rest/`$api_version`/regionOperations) * [ - # Zonal](/compute/docs/reference/rest/`$api_version`/zoneOperations) - # You can use an operation resource to manage asynchronous API requests. For - # more information, read Handling API responses. - # Operations can be global, regional or zonal. - # - For global operations, use the `globalOperations` resource. - # - For regional operations, use the `regionOperations` resource. - # - For zonal operations, use the `zonalOperations` resource. - # For more information, read Global, Regional, and Zonal Resources. (== - # resource_for `$api_version`.globalOperations ==) (== resource_for `$ - # api_version`.regionOperations ==) (== resource_for `$api_version`. - # zoneOperations ==) + # Represents an Operation resource. Google Compute Engine has three Operation + # resources: * [Global](/compute/docs/reference/rest/`$api_version`/ + # globalOperations) * [Regional](/compute/docs/reference/rest/`$api_version`/ + # regionOperations) * [Zonal](/compute/docs/reference/rest/`$api_version`/ + # zoneOperations) You can use an operation resource to manage asynchronous API + # requests. For more information, read Handling API responses. Operations can be + # global, regional or zonal. - For global operations, use the `globalOperations` + # resource. - For regional operations, use the `regionOperations` resource. - + # For zonal operations, use the `zonalOperations` resource. For more information, + # read Global, Regional, and Zonal Resources. class Operation include Google::Apis::Core::Hashable @@ -1507,11 +1239,6 @@ module Google # @return [String] attr_accessor :self_link - # [Output Only] Server-defined URL for this resource with the resource id. - # Corresponds to the JSON property `selfLinkWithId` - # @return [String] - attr_accessor :self_link_with_id - # [Output Only] The time that this operation was started by the server. This # value is in RFC3339 text format. # Corresponds to the JSON property `startTime` @@ -1582,7 +1309,6 @@ module Google @progress = args[:progress] if args.key?(:progress) @region = args[:region] if args.key?(:region) @self_link = args[:self_link] if args.key?(:self_link) - @self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id) @start_time = args[:start_time] if args.key?(:start_time) @status = args[:status] if args.key?(:status) @status_message = args[:status_message] if args.key?(:status_message) @@ -1655,8 +1381,8 @@ module Google # @return [String] attr_accessor :code - # [Output Only] Metadata about this warning in key: value format. For example: - # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # [Output Only] Metadata about this warning in key: value format. For example: " + # data": [ ` "key": "scope", "value": "zones/us-east1-d" ` # Corresponds to the JSON property `data` # @return [Array] attr_accessor :data @@ -1776,35 +1502,32 @@ module Google end # An Identity and Access Management (IAM) policy, which specifies access - # controls for Google Cloud resources. - # A `Policy` is a collection of `bindings`. A `binding` binds one or more ` - # members` to a single `role`. Members can be user accounts, service accounts, - # Google groups, and domains (such as G Suite). A `role` is a named list of - # permissions; each `role` can be an IAM predefined role or a user-created - # custom role. - # For some types of Google Cloud resources, a `binding` can also specify a ` - # condition`, which is a logical expression that allows access to a resource - # only if the expression evaluates to `true`. A condition can add constraints - # based on attributes of the request, the resource, or both. To learn which - # resources support conditions in their IAM policies, see the [IAM documentation] - # (https://cloud.google.com/iam/help/conditions/resource-policies). - # **JSON example:** - # ` "bindings": [ ` "role": "roles/resourcemanager.organizationAdmin", "members": - # [ "user:mike@example.com", "group:admins@example.com", "domain:google.com", " - # serviceAccount:my-project-id@appspot.gserviceaccount.com" ] `, ` "role": " - # roles/resourcemanager.organizationViewer", "members": [ "user:eve@example.com" - # ], "condition": ` "title": "expirable access", "description": "Does not grant - # access after Sep 2020", "expression": "request.time < timestamp('2020-10-01T00: - # 00:00.000Z')", ` ` ], "etag": "BwWWja0YfJA=", "version": 3 ` - # **YAML example:** - # bindings: - members: - user:mike@example.com - group:admins@example.com - - # domain:google.com - serviceAccount:my-project-id@appspot.gserviceaccount.com - # role: roles/resourcemanager.organizationAdmin - members: - user:eve@example. - # com role: roles/resourcemanager.organizationViewer condition: title: expirable - # access description: Does not grant access after Sep 2020 expression: request. - # time < timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 - # For a description of IAM and its features, see the [IAM documentation](https:// - # cloud.google.com/iam/docs/). + # controls for Google Cloud resources. A `Policy` is a collection of `bindings`. + # A `binding` binds one or more `members` to a single `role`. Members can be + # user accounts, service accounts, Google groups, and domains (such as G Suite). + # A `role` is a named list of permissions; each `role` can be an IAM predefined + # role or a user-created custom role. For some types of Google Cloud resources, + # a `binding` can also specify a `condition`, which is a logical expression that + # allows access to a resource only if the expression evaluates to `true`. A + # condition can add constraints based on attributes of the request, the resource, + # or both. To learn which resources support conditions in their IAM policies, + # see the [IAM documentation](https://cloud.google.com/iam/help/conditions/ + # resource-policies). **JSON example:** ` "bindings": [ ` "role": "roles/ + # resourcemanager.organizationAdmin", "members": [ "user:mike@example.com", " + # group:admins@example.com", "domain:google.com", "serviceAccount:my-project-id@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/resourcemanager. + # organizationViewer", "members": [ "user:eve@example.com" ], "condition": ` " + # title": "expirable access", "description": "Does not grant access after Sep + # 2020", "expression": "request.time < timestamp('2020-10-01T00:00:00.000Z')", ` + # ` ], "etag": "BwWWja0YfJA=", "version": 3 ` **YAML example:** bindings: - + # members: - user:mike@example.com - group:admins@example.com - domain:google. + # com - serviceAccount:my-project-id@appspot.gserviceaccount.com role: roles/ + # resourcemanager.organizationAdmin - members: - user:eve@example.com role: + # roles/resourcemanager.organizationViewer condition: title: expirable access + # description: Does not grant access after Sep 2020 expression: request.time < + # timestamp('2020-10-01T00:00:00.000Z') - etag: BwWWja0YfJA= - version: 3 For a + # description of IAM and its features, see the [IAM documentation](https://cloud. + # google.com/iam/docs/). class Policy include Google::Apis::Core::Hashable @@ -1826,51 +1549,31 @@ module Google # to perform policy updates in order to avoid race conditions: An `etag` is # returned in the response to `getIamPolicy`, and systems are expected to put # that etag in the request to `setIamPolicy` to ensure that their change will be - # applied to the same version of the policy. - # **Important:** If you use IAM Conditions, you must include the `etag` field - # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you - # to overwrite a version `3` policy with a version `1` policy, and all of the - # conditions in the version `3` policy are lost. + # applied to the same version of the policy. **Important:** If you use IAM + # Conditions, you must include the `etag` field whenever you call `setIamPolicy`. + # If you omit this field, then IAM allows you to overwrite a version `3` policy + # with a version `1` policy, and all of the conditions in the version `3` policy + # are lost. # Corresponds to the JSON property `etag` # NOTE: Values are automatically base64 encoded/decoded in the client library. # @return [String] attr_accessor :etag - # - # Corresponds to the JSON property `iamOwned` - # @return [Boolean] - attr_accessor :iam_owned - alias_method :iam_owned?, :iam_owned - - # If more than one rule is specified, the rules are applied in the following - # manner: - All matching LOG rules are always applied. - If any DENY/ - # DENY_WITH_LOG rule matches, permission is denied. Logging will be applied if - # one or more matching rule requires logging. - Otherwise, if any ALLOW/ - # ALLOW_WITH_LOG rule matches, permission is granted. Logging will be applied if - # one or more matching rule requires logging. - Otherwise, if no rule applies, - # permission is denied. - # Corresponds to the JSON property `rules` - # @return [Array] - attr_accessor :rules - - # Specifies the format of the policy. - # Valid values are `0`, `1`, and `3`. Requests that specify an invalid value are - # rejected. - # Any operation that affects conditional role bindings must specify version `3`. - # This requirement applies to the following operations: - # * Getting a policy that includes a conditional role binding * Adding a - # conditional role binding to a policy * Changing a conditional role binding in - # a policy * Removing any role binding, with or without a condition, from a - # policy that includes conditions - # **Important:** If you use IAM Conditions, you must include the `etag` field + # Specifies the format of the policy. Valid values are `0`, `1`, and `3`. + # Requests that specify an invalid value are rejected. Any operation that + # affects conditional role bindings must specify version `3`. This requirement + # applies to the following operations: * Getting a policy that includes a + # conditional role binding * Adding a conditional role binding to a policy * + # Changing a conditional role binding in a policy * Removing any role binding, + # with or without a condition, from a policy that includes conditions ** + # Important:** If you use IAM Conditions, you must include the `etag` field # whenever you call `setIamPolicy`. If you omit this field, then IAM allows you # to overwrite a version `3` policy with a version `1` policy, and all of the - # conditions in the version `3` policy are lost. - # If a policy does not include any conditions, operations on that policy may - # specify any valid version or leave the field unset. - # To learn which resources support conditions in their IAM policies, see the [ - # IAM documentation](https://cloud.google.com/iam/help/conditions/resource- - # policies). + # conditions in the version `3` policy are lost. If a policy does not include + # any conditions, operations on that policy may specify any valid version or + # leave the field unset. To learn which resources support conditions in their + # IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/ + # conditions/resource-policies). # Corresponds to the JSON property `version` # @return [Fixnum] attr_accessor :version @@ -1884,8 +1587,6 @@ module Google @audit_configs = args[:audit_configs] if args.key?(:audit_configs) @bindings = args[:bindings] if args.key?(:bindings) @etag = args[:etag] if args.key?(:etag) - @iam_owned = args[:iam_owned] if args.key?(:iam_owned) - @rules = args[:rules] if args.key?(:rules) @version = args[:version] if args.key?(:version) end end @@ -1995,7 +1696,8 @@ module Google # @return [String] attr_accessor :type - # + # Output only. If Deployment Manager is currently updating or previewing an + # update to this resource, the updated configuration appears here. # Corresponds to the JSON property `update` # @return [Google::Apis::DeploymentmanagerAlpha::ResourceUpdate] attr_accessor :update @@ -2048,8 +1750,8 @@ module Google # @return [String] attr_accessor :code - # [Output Only] Metadata about this warning in key: value format. For example: - # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # [Output Only] Metadata about this warning in key: value format. For example: " + # data": [ ` "key": "scope", "value": "zones/us-east1-d" ` # Corresponds to the JSON property `data` # @return [Array] attr_accessor :data @@ -2263,8 +1965,8 @@ module Google # @return [String] attr_accessor :code - # [Output Only] Metadata about this warning in key: value format. For example: - # "data": [ ` "key": "scope", "value": "zones/us-east1-d" ` + # [Output Only] Metadata about this warning in key: value format. For example: " + # data": [ ` "key": "scope", "value": "zones/us-east1-d" ` # Corresponds to the JSON property `data` # @return [Array] attr_accessor :data @@ -2344,67 +2046,6 @@ module Google end end - # A rule to be applied in a Policy. - class Rule - include Google::Apis::Core::Hashable - - # Required - # Corresponds to the JSON property `action` - # @return [String] - attr_accessor :action - - # Additional restrictions that must be met. All conditions must pass for the - # rule to match. - # Corresponds to the JSON property `conditions` - # @return [Array] - attr_accessor :conditions - - # Human-readable description of the rule. - # Corresponds to the JSON property `description` - # @return [String] - attr_accessor :description - - # If one or more 'in' clauses are specified, the rule matches if the PRINCIPAL/ - # AUTHORITY_SELECTOR is in at least one of these entries. - # Corresponds to the JSON property `ins` - # @return [Array] - attr_accessor :ins - - # The config returned to callers of tech.iam.IAM.CheckPolicy for any entries - # that match the LOG action. - # Corresponds to the JSON property `logConfigs` - # @return [Array] - attr_accessor :log_configs - - # If one or more 'not_in' clauses are specified, the rule matches if the - # PRINCIPAL/AUTHORITY_SELECTOR is in none of the entries. - # Corresponds to the JSON property `notIns` - # @return [Array] - attr_accessor :not_ins - - # A permission is a string of form '..' (e.g., 'storage.buckets.list'). A value - # of '*' matches all permissions, and a verb part of '*' (e.g., 'storage.buckets. - # *') matches all verbs. - # Corresponds to the JSON property `permissions` - # @return [Array] - attr_accessor :permissions - - def initialize(**args) - update!(**args) - end - - # Update properties of this object - def update!(**args) - @action = args[:action] if args.key?(:action) - @conditions = args[:conditions] if args.key?(:conditions) - @description = args[:description] if args.key?(:description) - @ins = args[:ins] if args.key?(:ins) - @log_configs = args[:log_configs] if args.key?(:log_configs) - @not_ins = args[:not_ins] if args.key?(:not_ins) - @permissions = args[:permissions] if args.key?(:permissions) - end - end - # Service Account used as a credential. class ServiceAccount include Google::Apis::Core::Hashable @@ -2429,7 +2070,7 @@ module Google class TargetConfiguration include Google::Apis::Core::Hashable - # + # The configuration to use for this deployment. # Corresponds to the JSON property `config` # @return [Google::Apis::DeploymentmanagerAlpha::ConfigFile] attr_accessor :config @@ -2539,9 +2180,9 @@ module Google include Google::Apis::Core::Hashable # BaseType that describes a service-backed Type. - # Corresponds to the JSON property `configurableService` - # @return [Google::Apis::DeploymentmanagerAlpha::ConfigurableService] - attr_accessor :configurable_service + # Corresponds to the JSON property `base` + # @return [Google::Apis::DeploymentmanagerAlpha::BaseType] + attr_accessor :base # An optional textual description of the resource; provided by the client when # the resource is created. @@ -2559,11 +2200,11 @@ module Google # @return [String] attr_accessor :insert_time - # Map of labels; provided by the client when the resource is created or updated. - # Specifically: Label keys must be between 1 and 63 characters long and must - # conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` - # Label values must be between 0 and 63 characters long and must conform to the - # regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. + # Map of One Platform labels; provided by the client when the resource is + # created or updated. Specifically: Label keys must be between 1 and 63 + # characters long and must conform to the following regular expression: `[a-z]([- + # a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and + # must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -2573,21 +2214,16 @@ module Google # @return [String] attr_accessor :name - # Represents an Operation resource. - # Google Compute Engine has three Operation resources: - # * [Global](/compute/docs/reference/rest/`$api_version`/globalOperations) * [ - # Regional](/compute/docs/reference/rest/`$api_version`/regionOperations) * [ - # Zonal](/compute/docs/reference/rest/`$api_version`/zoneOperations) - # You can use an operation resource to manage asynchronous API requests. For - # more information, read Handling API responses. - # Operations can be global, regional or zonal. - # - For global operations, use the `globalOperations` resource. - # - For regional operations, use the `regionOperations` resource. - # - For zonal operations, use the `zonalOperations` resource. - # For more information, read Global, Regional, and Zonal Resources. (== - # resource_for `$api_version`.globalOperations ==) (== resource_for `$ - # api_version`.regionOperations ==) (== resource_for `$api_version`. - # zoneOperations ==) + # Represents an Operation resource. Google Compute Engine has three Operation + # resources: * [Global](/compute/docs/reference/rest/`$api_version`/ + # globalOperations) * [Regional](/compute/docs/reference/rest/`$api_version`/ + # regionOperations) * [Zonal](/compute/docs/reference/rest/`$api_version`/ + # zoneOperations) You can use an operation resource to manage asynchronous API + # requests. For more information, read Handling API responses. Operations can be + # global, regional or zonal. - For global operations, use the `globalOperations` + # resource. - For regional operations, use the `regionOperations` resource. - + # For zonal operations, use the `zonalOperations` resource. For more information, + # read Global, Regional, and Zonal Resources. # Corresponds to the JSON property `operation` # @return [Google::Apis::DeploymentmanagerAlpha::Operation] attr_accessor :operation @@ -2603,7 +2239,7 @@ module Google # Update properties of this object def update!(**args) - @configurable_service = args[:configurable_service] if args.key?(:configurable_service) + @base = args[:base] if args.key?(:base) @description = args[:description] if args.key?(:description) @id = args[:id] if args.key?(:id) @insert_time = args[:insert_time] if args.key?(:insert_time) @@ -2641,7 +2277,8 @@ module Google # @return [String] attr_accessor :name - # + # For base types with a collection, we return a schema and documentation link + # For template types, we return only a schema # Corresponds to the JSON property `schema` # @return [Google::Apis::DeploymentmanagerAlpha::TypeInfoSchemaInfo] attr_accessor :schema @@ -2700,16 +2337,16 @@ module Google end end - # + # Label object for Types class TypeLabelEntry include Google::Apis::Core::Hashable - # + # Key of the label # Corresponds to the JSON property `key` # @return [String] attr_accessor :key - # + # Value of the label # Corresponds to the JSON property `value` # @return [String] attr_accessor :value @@ -2771,11 +2408,11 @@ module Google # @return [String] attr_accessor :insert_time - # Map of labels; provided by the client when the resource is created or updated. - # Specifically: Label keys must be between 1 and 63 characters long and must - # conform to the following regular expression: `[a-z]([-a-z0-9]*[a-z0-9])?` - # Label values must be between 0 and 63 characters long and must conform to the - # regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?`. + # Map of One Platform labels; provided by the client when the resource is + # created or updated. Specifically: Label keys must be between 1 and 63 + # characters long and must conform to the following regular expression: `[a-z]([- + # a-z0-9]*[a-z0-9])?` Label values must be between 0 and 63 characters long and + # must conform to the regular expression `([a-z]([-a-z0-9]*[a-z0-9])?)?` # Corresponds to the JSON property `labels` # @return [Array] attr_accessor :labels @@ -2790,21 +2427,16 @@ module Google # @return [String] attr_accessor :name - # Represents an Operation resource. - # Google Compute Engine has three Operation resources: - # * [Global](/compute/docs/reference/rest/`$api_version`/globalOperations) * [ - # Regional](/compute/docs/reference/rest/`$api_version`/regionOperations) * [ - # Zonal](/compute/docs/reference/rest/`$api_version`/zoneOperations) - # You can use an operation resource to manage asynchronous API requests. For - # more information, read Handling API responses. - # Operations can be global, regional or zonal. - # - For global operations, use the `globalOperations` resource. - # - For regional operations, use the `regionOperations` resource. - # - For zonal operations, use the `zonalOperations` resource. - # For more information, read Global, Regional, and Zonal Resources. (== - # resource_for `$api_version`.globalOperations ==) (== resource_for `$ - # api_version`.regionOperations ==) (== resource_for `$api_version`. - # zoneOperations ==) + # Represents an Operation resource. Google Compute Engine has three Operation + # resources: * [Global](/compute/docs/reference/rest/`$api_version`/ + # globalOperations) * [Regional](/compute/docs/reference/rest/`$api_version`/ + # regionOperations) * [Zonal](/compute/docs/reference/rest/`$api_version`/ + # zoneOperations) You can use an operation resource to manage asynchronous API + # requests. For more information, read Handling API responses. Operations can be + # global, regional or zonal. - For global operations, use the `globalOperations` + # resource. - For regional operations, use the `regionOperations` resource. - + # For zonal operations, use the `zonalOperations` resource. For more information, + # read Global, Regional, and Zonal Resources. # Corresponds to the JSON property `operation` # @return [Google::Apis::DeploymentmanagerAlpha::Operation] attr_accessor :operation @@ -2840,16 +2472,16 @@ module Google end end - # + # Label object for TypeProviders class TypeProviderLabelEntry include Google::Apis::Core::Hashable - # + # Key of the label # Corresponds to the JSON property `key` # @return [String] attr_accessor :key - # + # Value of the label # Corresponds to the JSON property `value` # @return [String] attr_accessor :value diff --git a/generated/google/apis/deploymentmanager_alpha/representations.rb b/generated/google/apis/deploymentmanager_alpha/representations.rb index 40494bd85..bf9f34f9f 100644 --- a/generated/google/apis/deploymentmanager_alpha/representations.rb +++ b/generated/google/apis/deploymentmanager_alpha/representations.rb @@ -40,7 +40,7 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class AuthorizationLoggingOptions + class BaseType class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport @@ -82,24 +82,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Condition - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ConfigFile class Representation < Google::Apis::Core::JsonRepresentation; end include Google::Apis::Core::JsonObjectSupport end - class ConfigurableService - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Credential class Representation < Google::Apis::Core::JsonRepresentation; end @@ -184,36 +172,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class LogConfig - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LogConfigCloudAuditOptions - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LogConfigCounterOptions - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LogConfigCounterOptionsCustomField - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - - class LogConfigDataAccessOptions - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class Manifest class Representation < Google::Apis::Core::JsonRepresentation; end @@ -346,12 +304,6 @@ module Google include Google::Apis::Core::JsonObjectSupport end - class Rule - class Representation < Google::Apis::Core::JsonRepresentation; end - - include Google::Apis::Core::JsonObjectSupport - end - class ServiceAccount class Representation < Google::Apis::Core::JsonRepresentation; end @@ -456,7 +408,6 @@ module Google class Representation < Google::Apis::Core::JsonRepresentation collection :audit_log_configs, as: 'auditLogConfigs', class: Google::Apis::DeploymentmanagerAlpha::AuditLogConfig, decorator: Google::Apis::DeploymentmanagerAlpha::AuditLogConfig::Representation - collection :exempted_members, as: 'exemptedMembers' property :service, as: 'service' end end @@ -465,15 +416,20 @@ module Google # @private class Representation < Google::Apis::Core::JsonRepresentation collection :exempted_members, as: 'exemptedMembers' - property :ignore_child_exemptions, as: 'ignoreChildExemptions' property :log_type, as: 'logType' end end - class AuthorizationLoggingOptions + class BaseType # @private class Representation < Google::Apis::Core::JsonRepresentation - property :permission_type, as: 'permissionType' + collection :collection_overrides, as: 'collectionOverrides', class: Google::Apis::DeploymentmanagerAlpha::CollectionOverride, decorator: Google::Apis::DeploymentmanagerAlpha::CollectionOverride::Representation + + property :credential, as: 'credential', class: Google::Apis::DeploymentmanagerAlpha::Credential, decorator: Google::Apis::DeploymentmanagerAlpha::Credential::Representation + + property :descriptor_url, as: 'descriptorUrl' + property :options, as: 'options', class: Google::Apis::DeploymentmanagerAlpha::Options, decorator: Google::Apis::DeploymentmanagerAlpha::Options::Representation + end end @@ -541,17 +497,6 @@ module Google end end - class Condition - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :iam, as: 'iam' - property :op, as: 'op' - property :svc, as: 'svc' - property :sys, as: 'sys' - collection :values, as: 'values' - end - end - class ConfigFile # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -559,19 +504,6 @@ module Google end end - class ConfigurableService - # @private - class Representation < Google::Apis::Core::JsonRepresentation - collection :collection_overrides, as: 'collectionOverrides', class: Google::Apis::DeploymentmanagerAlpha::CollectionOverride, decorator: Google::Apis::DeploymentmanagerAlpha::CollectionOverride::Representation - - property :credential, as: 'credential', class: Google::Apis::DeploymentmanagerAlpha::Credential, decorator: Google::Apis::DeploymentmanagerAlpha::Credential::Representation - - property :descriptor_url, as: 'descriptorUrl' - property :options, as: 'options', class: Google::Apis::DeploymentmanagerAlpha::Options, decorator: Google::Apis::DeploymentmanagerAlpha::Options::Representation - - end - end - class Credential # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -715,52 +647,6 @@ module Google end end - class LogConfig - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :cloud_audit, as: 'cloudAudit', class: Google::Apis::DeploymentmanagerAlpha::LogConfigCloudAuditOptions, decorator: Google::Apis::DeploymentmanagerAlpha::LogConfigCloudAuditOptions::Representation - - property :counter, as: 'counter', class: Google::Apis::DeploymentmanagerAlpha::LogConfigCounterOptions, decorator: Google::Apis::DeploymentmanagerAlpha::LogConfigCounterOptions::Representation - - property :data_access, as: 'dataAccess', class: Google::Apis::DeploymentmanagerAlpha::LogConfigDataAccessOptions, decorator: Google::Apis::DeploymentmanagerAlpha::LogConfigDataAccessOptions::Representation - - end - end - - class LogConfigCloudAuditOptions - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :authorization_logging_options, as: 'authorizationLoggingOptions', class: Google::Apis::DeploymentmanagerAlpha::AuthorizationLoggingOptions, decorator: Google::Apis::DeploymentmanagerAlpha::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::DeploymentmanagerAlpha::LogConfigCounterOptionsCustomField, decorator: Google::Apis::DeploymentmanagerAlpha::LogConfigCounterOptionsCustomField::Representation - - property :field, as: 'field' - property :metric, as: 'metric' - end - end - - class LogConfigCounterOptionsCustomField - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :name, as: 'name' - property :value, as: 'value' - end - end - - class LogConfigDataAccessOptions - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :log_mode, as: 'logMode' - end - end - class Manifest # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -816,7 +702,6 @@ module Google property :progress, as: 'progress' property :region, as: 'region' property :self_link, as: 'selfLink' - property :self_link_with_id, as: 'selfLinkWithId' property :start_time, as: 'startTime' property :status, as: 'status' property :status_message, as: 'statusMessage' @@ -894,9 +779,6 @@ module Google collection :bindings, as: 'bindings', class: Google::Apis::DeploymentmanagerAlpha::Binding, decorator: Google::Apis::DeploymentmanagerAlpha::Binding::Representation property :etag, :base64 => true, as: 'etag' - property :iam_owned, as: 'iamOwned' - collection :rules, as: 'rules', class: Google::Apis::DeploymentmanagerAlpha::Rule, decorator: Google::Apis::DeploymentmanagerAlpha::Rule::Representation - property :version, as: 'version' end end @@ -1026,21 +908,6 @@ module Google end end - class Rule - # @private - class Representation < Google::Apis::Core::JsonRepresentation - property :action, as: 'action' - collection :conditions, as: 'conditions', class: Google::Apis::DeploymentmanagerAlpha::Condition, decorator: Google::Apis::DeploymentmanagerAlpha::Condition::Representation - - property :description, as: 'description' - collection :ins, as: 'ins' - collection :log_configs, as: 'logConfigs', class: Google::Apis::DeploymentmanagerAlpha::LogConfig, decorator: Google::Apis::DeploymentmanagerAlpha::LogConfig::Representation - - collection :not_ins, as: 'notIns' - collection :permissions, as: 'permissions' - end - end - class ServiceAccount # @private class Representation < Google::Apis::Core::JsonRepresentation @@ -1087,7 +954,7 @@ module Google class Type # @private class Representation < Google::Apis::Core::JsonRepresentation - property :configurable_service, as: 'configurableService', class: Google::Apis::DeploymentmanagerAlpha::ConfigurableService, decorator: Google::Apis::DeploymentmanagerAlpha::ConfigurableService::Representation + property :base, as: 'base', class: Google::Apis::DeploymentmanagerAlpha::BaseType, decorator: Google::Apis::DeploymentmanagerAlpha::BaseType::Representation property :description, as: 'description' property :id, :numeric_string => true, as: 'id' diff --git a/generated/google/apis/deploymentmanager_alpha/service.rb b/generated/google/apis/deploymentmanager_alpha/service.rb index 6c295e933..21359f4db 100644 --- a/generated/google/apis/deploymentmanager_alpha/service.rb +++ b/generated/google/apis/deploymentmanager_alpha/service.rb @@ -20,36 +20,33 @@ require 'google/apis/errors' module Google module Apis module DeploymentmanagerAlpha - # Google Cloud Deployment Manager Alpha API + # Cloud Deployment Manager V2 API # - # The Deployment Manager API allows users to declaratively configure, deploy and - # run complex solutions on the Google Cloud Platform. + # The Google Cloud Deployment Manager v2 API provides services for configuring, + # deploying, and viewing Google Cloud services and APIs via templates which + # specify deployments of Cloud resources. # # @example # require 'google/apis/deploymentmanager_alpha' # # Deploymentmanager = Google::Apis::DeploymentmanagerAlpha # Alias the module - # service = Deploymentmanager::DeploymentManagerAlphaService.new + # service = Deploymentmanager::DeploymentManagerService.new # - # @see https://cloud.google.com/deployment-manager/ - class DeploymentManagerAlphaService < Google::Apis::Core::BaseService + # @see https://cloud.google.com/deployment-manager + class DeploymentManagerService < Google::Apis::Core::BaseService # @return [String] # API key. Your API key identifies your project and provides you with API access, # quota, and reports. Required unless you provide an OAuth 2.0 token. attr_accessor :key # @return [String] - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. attr_accessor :quota_user - # @return [String] - # Deprecated. Please use quotaUser instead. - attr_accessor :user_ip - def initialize - super('https://www.googleapis.com/', 'deploymentmanager/alpha/projects/') - @batch_path = 'batch/deploymentmanager/alpha' + super('https://deploymentmanager.googleapis.com/', '') + @batch_path = 'batch' end # Deletes a composite type. @@ -60,10 +57,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -76,15 +71,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_composite_type(project, composite_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/compositeTypes/{compositeType}', options) + def delete_composite_type(project, composite_type, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation command.params['project'] = project unless project.nil? command.params['compositeType'] = composite_type unless composite_type.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -96,10 +90,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -112,15 +104,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_composite_type(project, composite_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/compositeTypes/{compositeType}', options) + def get_composite_type(project, composite_type, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::CompositeType::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::CompositeType command.params['project'] = project unless project.nil? command.params['compositeType'] = composite_type unless composite_type.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -131,10 +122,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -147,8 +136,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_composite_type(project, composite_type_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/compositeTypes', options) + def insert_composite_type(project, composite_type_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'deploymentmanager/alpha/projects/{project}/global/compositeTypes', options) command.request_representation = Google::Apis::DeploymentmanagerAlpha::CompositeType::Representation command.request_object = composite_type_object command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation @@ -156,7 +145,6 @@ module Google command.params['project'] = project unless project.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -167,19 +155,18 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. - # For example, if you are filtering Compute Engine instances, you can exclude + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For + # example, if you are filtering Compute Engine instances, you can exclude # instances named `example-instance` by specifying `name != example-instance`. # You can also filter nested fields. For example, you could specify `scheduling. # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based - # on resource labels. - # To filter on multiple expressions, provide each separate expression within - # parentheses. For example: ``` (scheduling.automaticRestart = true) ( - # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` - # expression. However, you can include `AND` and `OR` expressions explicitly. - # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - # Broadwell") AND (scheduling.automaticRestart = true) ``` + # on resource labels. To filter on multiple expressions, provide each separate + # expression within parentheses. For example: ``` (scheduling.automaticRestart = + # true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an ` + # AND` expression. However, you can include `AND` and `OR` expressions + # explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + # "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number # of available results is larger than `maxResults`, Compute Engine returns a ` @@ -187,12 +174,11 @@ module Google # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in - # alphanumerical order based on the resource name. - # You can also sort results in descending order based on the creation timestamp - # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` - # creationTimestamp` field in reverse chronological order (newest result first). - # Use this to sort resources like operations so that the newest operation is - # returned first. + # alphanumerical order based on the resource name. You can also sort results in + # descending order based on the creation timestamp using `orderBy=" + # creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + # field in reverse chronological order (newest result first). Use this to sort + # resources like operations so that the newest operation is returned first. # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned @@ -203,10 +189,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -219,8 +203,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_composite_types(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/compositeTypes', options) + def list_composite_types(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/compositeTypes', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::CompositeTypesListResponse::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::CompositeTypesListResponse command.params['project'] = project unless project.nil? @@ -231,7 +215,6 @@ module Google command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -244,10 +227,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -260,8 +241,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_composite_type(project, composite_type, composite_type_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/compositeTypes/{compositeType}', options) + def patch_composite_type(project, composite_type, composite_type_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}', options) command.request_representation = Google::Apis::DeploymentmanagerAlpha::CompositeType::Representation command.request_object = composite_type_object command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation @@ -270,7 +251,6 @@ module Google command.params['compositeType'] = composite_type unless composite_type.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -283,10 +263,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -299,8 +277,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_composite_type(project, composite_type, composite_type_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/global/compositeTypes/{compositeType}', options) + def update_composite_type(project, composite_type, composite_type_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'deploymentmanager/alpha/projects/{project}/global/compositeTypes/{compositeType}', options) command.request_representation = Google::Apis::DeploymentmanagerAlpha::CompositeType::Representation command.request_object = composite_type_object command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation @@ -309,7 +287,6 @@ module Google command.params['compositeType'] = composite_type unless composite_type.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -322,10 +299,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -338,8 +313,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def cancel_deployment_preview(project, deployment, deployments_cancel_preview_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/deployments/{deployment}/cancelPreview', options) + def cancel_deployment_preview(project, deployment, deployments_cancel_preview_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/cancelPreview', options) command.request_representation = Google::Apis::DeploymentmanagerAlpha::DeploymentsCancelPreviewRequest::Representation command.request_object = deployments_cancel_preview_request_object command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation @@ -348,7 +323,6 @@ module Google command.params['deployment'] = deployment unless deployment.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -362,10 +336,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -378,8 +350,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_deployment(project, deployment, delete_policy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/deployments/{deployment}', options) + def delete_deployment(project, deployment, delete_policy: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation command.params['project'] = project unless project.nil? @@ -387,7 +359,6 @@ module Google command.query['deletePolicy'] = delete_policy unless delete_policy.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -399,10 +370,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -415,15 +384,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_deployment(project, deployment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/deployments/{deployment}', options) + def get_deployment(project, deployment, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::Deployment::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::Deployment command.params['project'] = project unless project.nil? command.params['deployment'] = deployment unless deployment.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -438,10 +406,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -454,8 +420,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_deployment_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/deployments/{resource}/getIamPolicy', options) + def get_deployment_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/getIamPolicy', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::Policy::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::Policy command.params['project'] = project unless project.nil? @@ -463,7 +429,6 @@ module Google command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -485,10 +450,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -501,8 +464,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_deployment(project, deployment_object = nil, create_policy: nil, preview: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/deployments', options) + def insert_deployment(project, deployment_object = nil, create_policy: nil, preview: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'deploymentmanager/alpha/projects/{project}/global/deployments', options) command.request_representation = Google::Apis::DeploymentmanagerAlpha::Deployment::Representation command.request_object = deployment_object command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation @@ -512,7 +475,6 @@ module Google command.query['preview'] = preview unless preview.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -523,19 +485,18 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. - # For example, if you are filtering Compute Engine instances, you can exclude + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For + # example, if you are filtering Compute Engine instances, you can exclude # instances named `example-instance` by specifying `name != example-instance`. # You can also filter nested fields. For example, you could specify `scheduling. # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based - # on resource labels. - # To filter on multiple expressions, provide each separate expression within - # parentheses. For example: ``` (scheduling.automaticRestart = true) ( - # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` - # expression. However, you can include `AND` and `OR` expressions explicitly. - # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - # Broadwell") AND (scheduling.automaticRestart = true) ``` + # on resource labels. To filter on multiple expressions, provide each separate + # expression within parentheses. For example: ``` (scheduling.automaticRestart = + # true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an ` + # AND` expression. However, you can include `AND` and `OR` expressions + # explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + # "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number # of available results is larger than `maxResults`, Compute Engine returns a ` @@ -543,12 +504,11 @@ module Google # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in - # alphanumerical order based on the resource name. - # You can also sort results in descending order based on the creation timestamp - # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` - # creationTimestamp` field in reverse chronological order (newest result first). - # Use this to sort resources like operations so that the newest operation is - # returned first. + # alphanumerical order based on the resource name. You can also sort results in + # descending order based on the creation timestamp using `orderBy=" + # creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + # field in reverse chronological order (newest result first). Use this to sort + # resources like operations so that the newest operation is returned first. # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned @@ -559,10 +519,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -575,8 +533,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_deployments(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/deployments', options) + def list_deployments(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/deployments', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::DeploymentsListResponse::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::DeploymentsListResponse command.params['project'] = project unless project.nil? @@ -587,7 +545,6 @@ module Google command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -616,10 +573,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -632,8 +587,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_deployment(project, deployment, deployment_object = nil, create_policy: nil, delete_policy: nil, preview: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/deployments/{deployment}', options) + def patch_deployment(project, deployment, deployment_object = nil, create_policy: nil, delete_policy: nil, preview: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}', options) command.request_representation = Google::Apis::DeploymentmanagerAlpha::Deployment::Representation command.request_object = deployment_object command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation @@ -645,7 +600,6 @@ module Google command.query['preview'] = preview unless preview.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -659,10 +613,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -675,8 +627,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def set_deployment_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/deployments/{resource}/setIamPolicy', options) + def set_deployment_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/setIamPolicy', options) command.request_representation = Google::Apis::DeploymentmanagerAlpha::GlobalSetPolicyRequest::Representation command.request_object = global_set_policy_request_object command.response_representation = Google::Apis::DeploymentmanagerAlpha::Policy::Representation @@ -685,7 +637,6 @@ module Google command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -699,10 +650,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -715,8 +664,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def stop_deployment(project, deployment, deployments_stop_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/deployments/{deployment}/stop', options) + def stop_deployment(project, deployment, deployments_stop_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/stop', options) command.request_representation = Google::Apis::DeploymentmanagerAlpha::DeploymentsStopRequest::Representation command.request_object = deployments_stop_request_object command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation @@ -725,7 +674,6 @@ module Google command.params['deployment'] = deployment unless deployment.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -738,10 +686,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -754,8 +700,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def test_deployment_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/deployments/{resource}/testIamPermissions', options) + def test_deployment_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'deploymentmanager/alpha/projects/{project}/global/deployments/{resource}/testIamPermissions', options) command.request_representation = Google::Apis::DeploymentmanagerAlpha::TestPermissionsRequest::Representation command.request_object = test_permissions_request_object command.response_representation = Google::Apis::DeploymentmanagerAlpha::TestPermissionsResponse::Representation @@ -764,7 +710,6 @@ module Google command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -793,10 +738,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -809,8 +752,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_deployment(project, deployment, deployment_object = nil, create_policy: nil, delete_policy: nil, preview: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/global/deployments/{deployment}', options) + def update_deployment(project, deployment, deployment_object = nil, create_policy: nil, delete_policy: nil, preview: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}', options) command.request_representation = Google::Apis::DeploymentmanagerAlpha::Deployment::Representation command.request_object = deployment_object command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation @@ -822,7 +765,6 @@ module Google command.query['preview'] = preview unless preview.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -836,10 +778,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -852,8 +792,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_manifest(project, deployment, manifest, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/deployments/{deployment}/manifests/{manifest}', options) + def get_manifest(project, deployment, manifest, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/manifests/{manifest}', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::Manifest::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::Manifest command.params['project'] = project unless project.nil? @@ -861,7 +801,6 @@ module Google command.params['manifest'] = manifest unless manifest.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -874,19 +813,18 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. - # For example, if you are filtering Compute Engine instances, you can exclude + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For + # example, if you are filtering Compute Engine instances, you can exclude # instances named `example-instance` by specifying `name != example-instance`. # You can also filter nested fields. For example, you could specify `scheduling. # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based - # on resource labels. - # To filter on multiple expressions, provide each separate expression within - # parentheses. For example: ``` (scheduling.automaticRestart = true) ( - # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` - # expression. However, you can include `AND` and `OR` expressions explicitly. - # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - # Broadwell") AND (scheduling.automaticRestart = true) ``` + # on resource labels. To filter on multiple expressions, provide each separate + # expression within parentheses. For example: ``` (scheduling.automaticRestart = + # true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an ` + # AND` expression. However, you can include `AND` and `OR` expressions + # explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + # "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number # of available results is larger than `maxResults`, Compute Engine returns a ` @@ -894,12 +832,11 @@ module Google # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in - # alphanumerical order based on the resource name. - # You can also sort results in descending order based on the creation timestamp - # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` - # creationTimestamp` field in reverse chronological order (newest result first). - # Use this to sort resources like operations so that the newest operation is - # returned first. + # alphanumerical order based on the resource name. You can also sort results in + # descending order based on the creation timestamp using `orderBy=" + # creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + # field in reverse chronological order (newest result first). Use this to sort + # resources like operations so that the newest operation is returned first. # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned @@ -910,10 +847,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -926,8 +861,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_manifests(project, deployment, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/deployments/{deployment}/manifests', options) + def list_manifests(project, deployment, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/manifests', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::ManifestsListResponse::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::ManifestsListResponse command.params['project'] = project unless project.nil? @@ -939,7 +874,6 @@ module Google command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -951,10 +885,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -967,15 +899,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_operation(project, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/operations/{operation}', options) + def get_operation(project, operation, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/operations/{operation}', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation command.params['project'] = project unless project.nil? command.params['operation'] = operation unless operation.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -986,19 +917,18 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. - # For example, if you are filtering Compute Engine instances, you can exclude + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For + # example, if you are filtering Compute Engine instances, you can exclude # instances named `example-instance` by specifying `name != example-instance`. # You can also filter nested fields. For example, you could specify `scheduling. # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based - # on resource labels. - # To filter on multiple expressions, provide each separate expression within - # parentheses. For example: ``` (scheduling.automaticRestart = true) ( - # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` - # expression. However, you can include `AND` and `OR` expressions explicitly. - # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - # Broadwell") AND (scheduling.automaticRestart = true) ``` + # on resource labels. To filter on multiple expressions, provide each separate + # expression within parentheses. For example: ``` (scheduling.automaticRestart = + # true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an ` + # AND` expression. However, you can include `AND` and `OR` expressions + # explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + # "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number # of available results is larger than `maxResults`, Compute Engine returns a ` @@ -1006,12 +936,11 @@ module Google # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in - # alphanumerical order based on the resource name. - # You can also sort results in descending order based on the creation timestamp - # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` - # creationTimestamp` field in reverse chronological order (newest result first). - # Use this to sort resources like operations so that the newest operation is - # returned first. + # alphanumerical order based on the resource name. You can also sort results in + # descending order based on the creation timestamp using `orderBy=" + # creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + # field in reverse chronological order (newest result first). Use this to sort + # resources like operations so that the newest operation is returned first. # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned @@ -1022,10 +951,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1038,8 +965,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_operations(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/operations', options) + def list_operations(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/operations', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::OperationsListResponse::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::OperationsListResponse command.params['project'] = project unless project.nil? @@ -1050,7 +977,6 @@ module Google command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1064,10 +990,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1080,8 +1004,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_resource(project, deployment, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/deployments/{deployment}/resources/{resource}', options) + def get_resource(project, deployment, resource, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/resources/{resource}', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::Resource::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::Resource command.params['project'] = project unless project.nil? @@ -1089,7 +1013,6 @@ module Google command.params['resource'] = resource unless resource.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1102,19 +1025,18 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. - # For example, if you are filtering Compute Engine instances, you can exclude + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For + # example, if you are filtering Compute Engine instances, you can exclude # instances named `example-instance` by specifying `name != example-instance`. # You can also filter nested fields. For example, you could specify `scheduling. # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based - # on resource labels. - # To filter on multiple expressions, provide each separate expression within - # parentheses. For example: ``` (scheduling.automaticRestart = true) ( - # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` - # expression. However, you can include `AND` and `OR` expressions explicitly. - # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - # Broadwell") AND (scheduling.automaticRestart = true) ``` + # on resource labels. To filter on multiple expressions, provide each separate + # expression within parentheses. For example: ``` (scheduling.automaticRestart = + # true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an ` + # AND` expression. However, you can include `AND` and `OR` expressions + # explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + # "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number # of available results is larger than `maxResults`, Compute Engine returns a ` @@ -1122,12 +1044,11 @@ module Google # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in - # alphanumerical order based on the resource name. - # You can also sort results in descending order based on the creation timestamp - # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` - # creationTimestamp` field in reverse chronological order (newest result first). - # Use this to sort resources like operations so that the newest operation is - # returned first. + # alphanumerical order based on the resource name. You can also sort results in + # descending order based on the creation timestamp using `orderBy=" + # creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + # field in reverse chronological order (newest result first). Use this to sort + # resources like operations so that the newest operation is returned first. # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned @@ -1138,10 +1059,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1154,8 +1073,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_resources(project, deployment, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/deployments/{deployment}/resources', options) + def list_resources(project, deployment, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/deployments/{deployment}/resources', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::ResourcesListResponse::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::ResourcesListResponse command.params['project'] = project unless project.nil? @@ -1167,7 +1086,6 @@ module Google command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1179,10 +1097,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1195,15 +1111,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def delete_type_provider(project, type_provider, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:delete, '{project}/global/typeProviders/{typeProvider}', options) + def delete_type_provider(project, type_provider, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:delete, 'deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::Operation command.params['project'] = project unless project.nil? command.params['typeProvider'] = type_provider unless type_provider.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1215,10 +1130,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1231,15 +1144,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_type_provider(project, type_provider, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/typeProviders/{typeProvider}', options) + def get_type_provider(project, type_provider, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::TypeProvider::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::TypeProvider command.params['project'] = project unless project.nil? command.params['typeProvider'] = type_provider unless type_provider.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1253,10 +1165,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1269,8 +1179,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_type_provider_type(project, type_provider, type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/typeProviders/{typeProvider}/types/{type}', options) + def get_type_provider_type(project, type_provider, type, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}/types/{type}', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::TypeInfo::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::TypeInfo command.params['project'] = project unless project.nil? @@ -1278,7 +1188,6 @@ module Google command.params['type'] = type unless type.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1289,10 +1198,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1305,8 +1212,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def insert_type_provider(project, type_provider_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:post, '{project}/global/typeProviders', options) + def insert_type_provider(project, type_provider_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:post, 'deploymentmanager/alpha/projects/{project}/global/typeProviders', options) command.request_representation = Google::Apis::DeploymentmanagerAlpha::TypeProvider::Representation command.request_object = type_provider_object command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation @@ -1314,7 +1221,6 @@ module Google command.params['project'] = project unless project.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1325,19 +1231,18 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. - # For example, if you are filtering Compute Engine instances, you can exclude + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For + # example, if you are filtering Compute Engine instances, you can exclude # instances named `example-instance` by specifying `name != example-instance`. # You can also filter nested fields. For example, you could specify `scheduling. # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based - # on resource labels. - # To filter on multiple expressions, provide each separate expression within - # parentheses. For example: ``` (scheduling.automaticRestart = true) ( - # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` - # expression. However, you can include `AND` and `OR` expressions explicitly. - # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - # Broadwell") AND (scheduling.automaticRestart = true) ``` + # on resource labels. To filter on multiple expressions, provide each separate + # expression within parentheses. For example: ``` (scheduling.automaticRestart = + # true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an ` + # AND` expression. However, you can include `AND` and `OR` expressions + # explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + # "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number # of available results is larger than `maxResults`, Compute Engine returns a ` @@ -1345,12 +1250,11 @@ module Google # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in - # alphanumerical order based on the resource name. - # You can also sort results in descending order based on the creation timestamp - # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` - # creationTimestamp` field in reverse chronological order (newest result first). - # Use this to sort resources like operations so that the newest operation is - # returned first. + # alphanumerical order based on the resource name. You can also sort results in + # descending order based on the creation timestamp using `orderBy=" + # creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + # field in reverse chronological order (newest result first). Use this to sort + # resources like operations so that the newest operation is returned first. # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned @@ -1361,10 +1265,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1377,8 +1279,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_type_providers(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/typeProviders', options) + def list_type_providers(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/typeProviders', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::TypeProvidersListResponse::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::TypeProvidersListResponse command.params['project'] = project unless project.nil? @@ -1389,7 +1291,6 @@ module Google command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1402,19 +1303,18 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. - # For example, if you are filtering Compute Engine instances, you can exclude + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For + # example, if you are filtering Compute Engine instances, you can exclude # instances named `example-instance` by specifying `name != example-instance`. # You can also filter nested fields. For example, you could specify `scheduling. # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based - # on resource labels. - # To filter on multiple expressions, provide each separate expression within - # parentheses. For example: ``` (scheduling.automaticRestart = true) ( - # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` - # expression. However, you can include `AND` and `OR` expressions explicitly. - # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - # Broadwell") AND (scheduling.automaticRestart = true) ``` + # on resource labels. To filter on multiple expressions, provide each separate + # expression within parentheses. For example: ``` (scheduling.automaticRestart = + # true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an ` + # AND` expression. However, you can include `AND` and `OR` expressions + # explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + # "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number # of available results is larger than `maxResults`, Compute Engine returns a ` @@ -1422,12 +1322,11 @@ module Google # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in - # alphanumerical order based on the resource name. - # You can also sort results in descending order based on the creation timestamp - # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` - # creationTimestamp` field in reverse chronological order (newest result first). - # Use this to sort resources like operations so that the newest operation is - # returned first. + # alphanumerical order based on the resource name. You can also sort results in + # descending order based on the creation timestamp using `orderBy=" + # creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + # field in reverse chronological order (newest result first). Use this to sort + # resources like operations so that the newest operation is returned first. # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned @@ -1438,10 +1337,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1454,8 +1351,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_type_provider_types(project, type_provider, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/typeProviders/{typeProvider}/types', options) + def list_type_provider_types(project, type_provider, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}/types', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::TypeProvidersListTypesResponse::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::TypeProvidersListTypesResponse command.params['project'] = project unless project.nil? @@ -1467,7 +1364,6 @@ module Google command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1480,10 +1376,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1496,8 +1390,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def patch_type_provider(project, type_provider, type_provider_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:patch, '{project}/global/typeProviders/{typeProvider}', options) + def patch_type_provider(project, type_provider, type_provider_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:patch, 'deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}', options) command.request_representation = Google::Apis::DeploymentmanagerAlpha::TypeProvider::Representation command.request_object = type_provider_object command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation @@ -1506,7 +1400,6 @@ module Google command.params['typeProvider'] = type_provider unless type_provider.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1519,10 +1412,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1535,8 +1426,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def update_type_provider(project, type_provider, type_provider_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:put, '{project}/global/typeProviders/{typeProvider}', options) + def update_type_provider(project, type_provider, type_provider_object = nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:put, 'deploymentmanager/alpha/projects/{project}/global/typeProviders/{typeProvider}', options) command.request_representation = Google::Apis::DeploymentmanagerAlpha::TypeProvider::Representation command.request_object = type_provider_object command.response_representation = Google::Apis::DeploymentmanagerAlpha::Operation::Representation @@ -1545,7 +1436,6 @@ module Google command.params['typeProvider'] = type_provider unless type_provider.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1557,10 +1447,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1573,15 +1461,14 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def get_type(project, type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/types/{type}', options) + def get_type(project, type, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/types/{type}', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::Type::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::Type command.params['project'] = project unless project.nil? command.params['type'] = type unless type.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1592,19 +1479,18 @@ module Google # A filter expression that filters resources listed in the response. The # expression must specify the field name, a comparison operator, and the value # that you want to use for filtering. The value must be a string, a number, or a - # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. - # For example, if you are filtering Compute Engine instances, you can exclude + # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For + # example, if you are filtering Compute Engine instances, you can exclude # instances named `example-instance` by specifying `name != example-instance`. # You can also filter nested fields. For example, you could specify `scheduling. # automaticRestart = false` to include instances only if they are not scheduled # for automatic restarts. You can use filtering on nested fields to filter based - # on resource labels. - # To filter on multiple expressions, provide each separate expression within - # parentheses. For example: ``` (scheduling.automaticRestart = true) ( - # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` - # expression. However, you can include `AND` and `OR` expressions explicitly. - # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel - # Broadwell") AND (scheduling.automaticRestart = true) ``` + # on resource labels. To filter on multiple expressions, provide each separate + # expression within parentheses. For example: ``` (scheduling.automaticRestart = + # true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an ` + # AND` expression. However, you can include `AND` and `OR` expressions + # explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = + # "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` # @param [Fixnum] max_results # The maximum number of results per page that should be returned. If the number # of available results is larger than `maxResults`, Compute Engine returns a ` @@ -1612,12 +1498,11 @@ module Google # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`) # @param [String] order_by # Sorts list results by a certain order. By default, results are returned in - # alphanumerical order based on the resource name. - # You can also sort results in descending order based on the creation timestamp - # using `orderBy="creationTimestamp desc"`. This sorts results based on the ` - # creationTimestamp` field in reverse chronological order (newest result first). - # Use this to sort resources like operations so that the newest operation is - # returned first. + # alphanumerical order based on the resource name. You can also sort results in + # descending order based on the creation timestamp using `orderBy=" + # creationTimestamp desc"`. This sorts results based on the `creationTimestamp` + # field in reverse chronological order (newest result first). Use this to sort + # resources like operations so that the newest operation is returned first. # Currently, only sorting by `name` or `creationTimestamp desc` is supported. # @param [String] page_token # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned @@ -1628,10 +1513,8 @@ module Google # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user - # An opaque string that represents a user for quota purposes. Must not exceed 40 - # characters. - # @param [String] user_ip - # Deprecated. Please use quotaUser instead. + # Available to use for quota purposes for server-side applications. Can be any + # arbitrary string assigned to a user, but should not exceed 40 characters. # @param [Google::Apis::RequestOptions] options # Request-specific options # @@ -1644,8 +1527,8 @@ module Google # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification # @raise [Google::Apis::AuthorizationError] Authorization is required - def list_types(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) - command = make_simple_command(:get, '{project}/global/types', options) + def list_types(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, options: nil, &block) + command = make_simple_command(:get, 'deploymentmanager/alpha/projects/{project}/global/types', options) command.response_representation = Google::Apis::DeploymentmanagerAlpha::TypesListResponse::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::TypesListResponse command.params['project'] = project unless project.nil? @@ -1656,7 +1539,6 @@ module Google command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil? command.query['fields'] = fields unless fields.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? execute_or_queue_command(command, &block) end @@ -1665,7 +1547,6 @@ module Google def apply_command_defaults(command) command.query['key'] = key unless key.nil? command.query['quotaUser'] = quota_user unless quota_user.nil? - command.query['userIp'] = user_ip unless user_ip.nil? end end end diff --git a/generated/google/apis/deploymentmanager_alpha/synth.metadata b/generated/google/apis/deploymentmanager_alpha/synth.metadata new file mode 100644 index 000000000..2dbcf5316 --- /dev/null +++ b/generated/google/apis/deploymentmanager_alpha/synth.metadata @@ -0,0 +1,11 @@ +{ + "sources": [ + { + "git": { + "name": ".", + "remote": "https://github.com/googleapis/google-api-ruby-client.git", + "sha": "0492accc8a44d0f28a484a67f7940d74246ab88d" + } + } + ] +} \ No newline at end of file