diff --git a/api_names_out.yaml b/api_names_out.yaml index 69535fa87..41fe6be22 100644 --- a/api_names_out.yaml +++ b/api_names_out.yaml @@ -37234,6 +37234,11 @@ "/deploymentmanager:alpha/Expr/expression": expression "/deploymentmanager:alpha/Expr/location": location "/deploymentmanager:alpha/Expr/title": title +"/deploymentmanager:alpha/GlobalSetPolicyRequest": global_set_policy_request +"/deploymentmanager:alpha/GlobalSetPolicyRequest/bindings": bindings +"/deploymentmanager:alpha/GlobalSetPolicyRequest/bindings/binding": binding +"/deploymentmanager:alpha/GlobalSetPolicyRequest/etag": etag +"/deploymentmanager:alpha/GlobalSetPolicyRequest/policy": policy "/deploymentmanager:alpha/ImportFile": import_file "/deploymentmanager:alpha/ImportFile/content": content "/deploymentmanager:alpha/ImportFile/name": name @@ -37693,6 +37698,11 @@ "/deploymentmanager:v2/Expr/expression": expression "/deploymentmanager:v2/Expr/location": location "/deploymentmanager:v2/Expr/title": title +"/deploymentmanager:v2/GlobalSetPolicyRequest": global_set_policy_request +"/deploymentmanager:v2/GlobalSetPolicyRequest/bindings": bindings +"/deploymentmanager:v2/GlobalSetPolicyRequest/bindings/binding": binding +"/deploymentmanager:v2/GlobalSetPolicyRequest/etag": etag +"/deploymentmanager:v2/GlobalSetPolicyRequest/policy": policy "/deploymentmanager:v2/ImportFile": import_file "/deploymentmanager:v2/ImportFile/content": content "/deploymentmanager:v2/ImportFile/name": name @@ -38041,6 +38051,11 @@ "/deploymentmanager:v2beta/Expr/expression": expression "/deploymentmanager:v2beta/Expr/location": location "/deploymentmanager:v2beta/Expr/title": title +"/deploymentmanager:v2beta/GlobalSetPolicyRequest": global_set_policy_request +"/deploymentmanager:v2beta/GlobalSetPolicyRequest/bindings": bindings +"/deploymentmanager:v2beta/GlobalSetPolicyRequest/bindings/binding": binding +"/deploymentmanager:v2beta/GlobalSetPolicyRequest/etag": etag +"/deploymentmanager:v2beta/GlobalSetPolicyRequest/policy": policy "/deploymentmanager:v2beta/ImportFile": import_file "/deploymentmanager:v2beta/ImportFile/content": content "/deploymentmanager:v2beta/ImportFile/name": name diff --git a/generated/google/apis/adexchangebuyer2_v2beta1.rb b/generated/google/apis/adexchangebuyer2_v2beta1.rb index 01cba0bdb..91859eb1c 100644 --- a/generated/google/apis/adexchangebuyer2_v2beta1.rb +++ b/generated/google/apis/adexchangebuyer2_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/ad-exchange/buyer-rest/reference/rest/ module Adexchangebuyer2V2beta1 VERSION = 'V2beta1' - REVISION = '20180430' + REVISION = '20180508' # Manage your Ad Exchange buyer account configuration AUTH_ADEXCHANGE_BUYER = 'https://www.googleapis.com/auth/adexchange.buyer' diff --git a/generated/google/apis/container_v1.rb b/generated/google/apis/container_v1.rb index ac7c41f72..1f2645c07 100644 --- a/generated/google/apis/container_v1.rb +++ b/generated/google/apis/container_v1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/container-engine/ module ContainerV1 VERSION = 'V1' - REVISION = '20180412' + REVISION = '20180427' # 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/container_v1/classes.rb b/generated/google/apis/container_v1/classes.rb index b88124d93..c0a48b6dd 100644 --- a/generated/google/apis/container_v1/classes.rb +++ b/generated/google/apis/container_v1/classes.rb @@ -364,7 +364,6 @@ module Google # @return [Google::Apis::ContainerV1::MasterAuth] attr_accessor :master_auth - # Master authorized networks is a Beta feature. # Configuration options for the master authorized networks feature. Enabled # master authorized networks will disallow all external traffic to access # Kubernetes master through HTTPS except traffic from the given CIDR blocks, @@ -543,7 +542,6 @@ module Google # @return [Array] attr_accessor :desired_locations - # Master authorized networks is a Beta feature. # Configuration options for the master authorized networks feature. Enabled # master authorized networks will disallow all external traffic to access # Kubernetes master through HTTPS except traffic from the given CIDR blocks, @@ -1192,7 +1190,6 @@ module Google end end - # Master authorized networks is a Beta feature. # Configuration options for the master authorized networks feature. Enabled # master authorized networks will disallow all external traffic to access # Kubernetes master through HTTPS except traffic from the given CIDR blocks, diff --git a/generated/google/apis/deploymentmanager_alpha.rb b/generated/google/apis/deploymentmanager_alpha.rb index 105a759cb..676fd0ca8 100644 --- a/generated/google/apis/deploymentmanager_alpha.rb +++ b/generated/google/apis/deploymentmanager_alpha.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/deployment-manager/ module DeploymentmanagerAlpha VERSION = 'Alpha' - REVISION = '20180323' + REVISION = '20180503' # 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 f7067c802..14d3fc02a 100644 --- a/generated/google/apis/deploymentmanager_alpha/classes.rb +++ b/generated/google/apis/deploymentmanager_alpha/classes.rb @@ -188,7 +188,7 @@ module Google # * `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@gmail.com` or `joe@example.com`. + # For example, `alice@gmail.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 @@ -905,6 +905,56 @@ module Google end end + # + class GlobalSetPolicyRequest + include Google::Apis::Core::Hashable + + # Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use ' + # policy' to specify bindings. + # Corresponds to the JSON property `bindings` + # @return [Array] + attr_accessor :bindings + + # Flatten Policy to create a backward compatible wire-format. Deprecated. Use ' + # policy' to specify the etag. + # Corresponds to the JSON property `etag` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :etag + + # Defines an Identity and Access Management (IAM) policy. It is used to specify + # access control policies for Cloud Platform resources. + # A `Policy` consists of a list of `bindings`. A `binding` binds a list of ` + # members` to a `role`, where the members can be user accounts, Google groups, + # Google domains, and service accounts. A `role` is a named list of permissions + # defined by IAM. + # **JSON Example** + # ` "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", + # "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/viewer", "members": ["user: + # sean@example.com"] ` ] ` + # **YAML Example** + # bindings: - members: - user:mike@example.com - group:admins@example.com - + # domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com + # role: roles/owner - members: - user:sean@example.com role: roles/viewer + # For a description of IAM and its features, see the [IAM developer's guide]( + # https://cloud.google.com/iam/docs). + # Corresponds to the JSON property `policy` + # @return [Google::Apis::DeploymentmanagerAlpha::Policy] + attr_accessor :policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bindings = args[:bindings] if args.key?(:bindings) + @etag = args[:etag] if args.key?(:etag) + @policy = args[:policy] if args.key?(:policy) + end + end + # class ImportFile include Google::Apis::Core::Hashable @@ -1239,7 +1289,8 @@ module Google class Operation include Google::Apis::Core::Hashable - # [Output Only] Reserved for future use. + # [Output Only] The value of `requestId` if you provided it in the request. Not + # present otherwise. # Corresponds to the JSON property `clientOperationId` # @return [String] attr_accessor :client_operation_id @@ -1594,15 +1645,19 @@ module Google # Defines an Identity and Access Management (IAM) policy. It is used to specify # access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of ` + # A `Policy` consists of a list of `bindings`. A `binding` binds a list of ` # members` to a `role`, where the members can be user accounts, Google groups, # Google domains, and service accounts. A `role` is a named list of permissions # defined by IAM. - # **Example** + # **JSON Example** # ` "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", # "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ - # appspot.gserviceaccount.com", ] `, ` "role": "roles/viewer", "members": ["user: + # appspot.gserviceaccount.com" ] `, ` "role": "roles/viewer", "members": ["user: # sean@example.com"] ` ] ` + # **YAML Example** + # bindings: - members: - user:mike@example.com - group:admins@example.com - + # domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com + # role: roles/owner - members: - user:sean@example.com role: roles/viewer # For a description of IAM and its features, see the [IAM developer's guide]( # https://cloud.google.com/iam/docs). class Policy diff --git a/generated/google/apis/deploymentmanager_alpha/representations.rb b/generated/google/apis/deploymentmanager_alpha/representations.rb index f06ccf4b1..8b9357e2a 100644 --- a/generated/google/apis/deploymentmanager_alpha/representations.rb +++ b/generated/google/apis/deploymentmanager_alpha/representations.rb @@ -166,6 +166,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GlobalSetPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ImportFile class Representation < Google::Apis::Core::JsonRepresentation; end @@ -673,6 +679,17 @@ module Google end end + class GlobalSetPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :bindings, as: 'bindings', class: Google::Apis::DeploymentmanagerAlpha::Binding, decorator: Google::Apis::DeploymentmanagerAlpha::Binding::Representation + + property :etag, :base64 => true, as: 'etag' + property :policy, as: 'policy', class: Google::Apis::DeploymentmanagerAlpha::Policy, decorator: Google::Apis::DeploymentmanagerAlpha::Policy::Representation + + end + end + class ImportFile # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/deploymentmanager_alpha/service.rb b/generated/google/apis/deploymentmanager_alpha/service.rb index d2b6d9ab8..29621bede 100644 --- a/generated/google/apis/deploymentmanager_alpha/service.rb +++ b/generated/google/apis/deploymentmanager_alpha/service.rb @@ -643,7 +643,7 @@ module Google # Project ID for this request. # @param [String] resource # Name of the resource for this request. - # @param [Google::Apis::DeploymentmanagerAlpha::Policy] policy_object + # @param [Google::Apis::DeploymentmanagerAlpha::GlobalSetPolicyRequest] global_set_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -663,10 +663,10 @@ 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, policy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def set_deployment_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{project}/global/deployments/{resource}/setIamPolicy', options) - command.request_representation = Google::Apis::DeploymentmanagerAlpha::Policy::Representation - command.request_object = policy_object + command.request_representation = Google::Apis::DeploymentmanagerAlpha::GlobalSetPolicyRequest::Representation + command.request_object = global_set_policy_request_object command.response_representation = Google::Apis::DeploymentmanagerAlpha::Policy::Representation command.response_class = Google::Apis::DeploymentmanagerAlpha::Policy command.params['project'] = project unless project.nil? diff --git a/generated/google/apis/deploymentmanager_v2.rb b/generated/google/apis/deploymentmanager_v2.rb index 387454b6f..280620f92 100644 --- a/generated/google/apis/deploymentmanager_v2.rb +++ b/generated/google/apis/deploymentmanager_v2.rb @@ -25,7 +25,7 @@ module Google # @see https://cloud.google.com/deployment-manager/ module DeploymentmanagerV2 VERSION = 'V2' - REVISION = '20180323' + REVISION = '20180503' # 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_v2/classes.rb b/generated/google/apis/deploymentmanager_v2/classes.rb index 5c7941735..a07e20612 100644 --- a/generated/google/apis/deploymentmanager_v2/classes.rb +++ b/generated/google/apis/deploymentmanager_v2/classes.rb @@ -138,7 +138,7 @@ module Google # * `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@gmail.com` or `joe@example.com`. + # For example, `alice@gmail.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 @@ -551,6 +551,56 @@ module Google end end + # + class GlobalSetPolicyRequest + include Google::Apis::Core::Hashable + + # Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use ' + # policy' to specify bindings. + # Corresponds to the JSON property `bindings` + # @return [Array] + attr_accessor :bindings + + # Flatten Policy to create a backward compatible wire-format. Deprecated. Use ' + # policy' to specify the etag. + # Corresponds to the JSON property `etag` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :etag + + # Defines an Identity and Access Management (IAM) policy. It is used to specify + # access control policies for Cloud Platform resources. + # A `Policy` consists of a list of `bindings`. A `binding` binds a list of ` + # members` to a `role`, where the members can be user accounts, Google groups, + # Google domains, and service accounts. A `role` is a named list of permissions + # defined by IAM. + # **JSON Example** + # ` "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", + # "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/viewer", "members": ["user: + # sean@example.com"] ` ] ` + # **YAML Example** + # bindings: - members: - user:mike@example.com - group:admins@example.com - + # domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com + # role: roles/owner - members: - user:sean@example.com role: roles/viewer + # For a description of IAM and its features, see the [IAM developer's guide]( + # https://cloud.google.com/iam/docs). + # Corresponds to the JSON property `policy` + # @return [Google::Apis::DeploymentmanagerV2::Policy] + attr_accessor :policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bindings = args[:bindings] if args.key?(:bindings) + @etag = args[:etag] if args.key?(:etag) + @policy = args[:policy] if args.key?(:policy) + end + end + # class ImportFile include Google::Apis::Core::Hashable @@ -802,7 +852,8 @@ module Google class Operation include Google::Apis::Core::Hashable - # [Output Only] Reserved for future use. + # [Output Only] The value of `requestId` if you provided it in the request. Not + # present otherwise. # Corresponds to the JSON property `clientOperationId` # @return [String] attr_accessor :client_operation_id @@ -1118,15 +1169,19 @@ module Google # Defines an Identity and Access Management (IAM) policy. It is used to specify # access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of ` + # A `Policy` consists of a list of `bindings`. A `binding` binds a list of ` # members` to a `role`, where the members can be user accounts, Google groups, # Google domains, and service accounts. A `role` is a named list of permissions # defined by IAM. - # **Example** + # **JSON Example** # ` "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", # "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ - # appspot.gserviceaccount.com", ] `, ` "role": "roles/viewer", "members": ["user: + # appspot.gserviceaccount.com" ] `, ` "role": "roles/viewer", "members": ["user: # sean@example.com"] ` ] ` + # **YAML Example** + # bindings: - members: - user:mike@example.com - group:admins@example.com - + # domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com + # role: roles/owner - members: - user:sean@example.com role: roles/viewer # For a description of IAM and its features, see the [IAM developer's guide]( # https://cloud.google.com/iam/docs). class Policy diff --git a/generated/google/apis/deploymentmanager_v2/representations.rb b/generated/google/apis/deploymentmanager_v2/representations.rb index 69363e77c..e6033ba3d 100644 --- a/generated/google/apis/deploymentmanager_v2/representations.rb +++ b/generated/google/apis/deploymentmanager_v2/representations.rb @@ -106,6 +106,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GlobalSetPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ImportFile class Representation < Google::Apis::Core::JsonRepresentation; end @@ -420,6 +426,17 @@ module Google end end + class GlobalSetPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :bindings, as: 'bindings', class: Google::Apis::DeploymentmanagerV2::Binding, decorator: Google::Apis::DeploymentmanagerV2::Binding::Representation + + property :etag, :base64 => true, as: 'etag' + property :policy, as: 'policy', class: Google::Apis::DeploymentmanagerV2::Policy, decorator: Google::Apis::DeploymentmanagerV2::Policy::Representation + + end + end + class ImportFile # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/deploymentmanager_v2/service.rb b/generated/google/apis/deploymentmanager_v2/service.rb index 1ea8a23d4..748ac5099 100644 --- a/generated/google/apis/deploymentmanager_v2/service.rb +++ b/generated/google/apis/deploymentmanager_v2/service.rb @@ -385,7 +385,7 @@ module Google # Project ID for this request. # @param [String] resource # Name of the resource for this request. - # @param [Google::Apis::DeploymentmanagerV2::Policy] policy_object + # @param [Google::Apis::DeploymentmanagerV2::GlobalSetPolicyRequest] global_set_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -405,10 +405,10 @@ 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, policy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def set_deployment_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{project}/global/deployments/{resource}/setIamPolicy', options) - command.request_representation = Google::Apis::DeploymentmanagerV2::Policy::Representation - command.request_object = policy_object + command.request_representation = Google::Apis::DeploymentmanagerV2::GlobalSetPolicyRequest::Representation + command.request_object = global_set_policy_request_object command.response_representation = Google::Apis::DeploymentmanagerV2::Policy::Representation command.response_class = Google::Apis::DeploymentmanagerV2::Policy command.params['project'] = project unless project.nil? diff --git a/generated/google/apis/deploymentmanager_v2beta.rb b/generated/google/apis/deploymentmanager_v2beta.rb index b86548869..31fbcdf8b 100644 --- a/generated/google/apis/deploymentmanager_v2beta.rb +++ b/generated/google/apis/deploymentmanager_v2beta.rb @@ -26,7 +26,7 @@ module Google # @see https://developers.google.com/deployment-manager/ module DeploymentmanagerV2beta VERSION = 'V2beta' - REVISION = '20180323' + REVISION = '20180503' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/deploymentmanager_v2beta/classes.rb b/generated/google/apis/deploymentmanager_v2beta/classes.rb index ea9ea0ef7..b1ea09ada 100644 --- a/generated/google/apis/deploymentmanager_v2beta/classes.rb +++ b/generated/google/apis/deploymentmanager_v2beta/classes.rb @@ -226,7 +226,7 @@ module Google # * `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@gmail.com` or `joe@example.com`. + # For example, `alice@gmail.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 @@ -853,6 +853,56 @@ module Google end end + # + class GlobalSetPolicyRequest + include Google::Apis::Core::Hashable + + # Flatten Policy to create a backwacd compatible wire-format. Deprecated. Use ' + # policy' to specify bindings. + # Corresponds to the JSON property `bindings` + # @return [Array] + attr_accessor :bindings + + # Flatten Policy to create a backward compatible wire-format. Deprecated. Use ' + # policy' to specify the etag. + # Corresponds to the JSON property `etag` + # NOTE: Values are automatically base64 encoded/decoded in the client library. + # @return [String] + attr_accessor :etag + + # Defines an Identity and Access Management (IAM) policy. It is used to specify + # access control policies for Cloud Platform resources. + # A `Policy` consists of a list of `bindings`. A `binding` binds a list of ` + # members` to a `role`, where the members can be user accounts, Google groups, + # Google domains, and service accounts. A `role` is a named list of permissions + # defined by IAM. + # **JSON Example** + # ` "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", + # "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ + # appspot.gserviceaccount.com" ] `, ` "role": "roles/viewer", "members": ["user: + # sean@example.com"] ` ] ` + # **YAML Example** + # bindings: - members: - user:mike@example.com - group:admins@example.com - + # domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com + # role: roles/owner - members: - user:sean@example.com role: roles/viewer + # For a description of IAM and its features, see the [IAM developer's guide]( + # https://cloud.google.com/iam/docs). + # Corresponds to the JSON property `policy` + # @return [Google::Apis::DeploymentmanagerV2beta::Policy] + attr_accessor :policy + + def initialize(**args) + update!(**args) + end + + # Update properties of this object + def update!(**args) + @bindings = args[:bindings] if args.key?(:bindings) + @etag = args[:etag] if args.key?(:etag) + @policy = args[:policy] if args.key?(:policy) + end + end + # class ImportFile include Google::Apis::Core::Hashable @@ -1142,7 +1192,8 @@ module Google class Operation include Google::Apis::Core::Hashable - # [Output Only] Reserved for future use. + # [Output Only] The value of `requestId` if you provided it in the request. Not + # present otherwise. # Corresponds to the JSON property `clientOperationId` # @return [String] attr_accessor :client_operation_id @@ -1501,15 +1552,19 @@ module Google # Defines an Identity and Access Management (IAM) policy. It is used to specify # access control policies for Cloud Platform resources. - # A `Policy` consists of a list of `bindings`. A `Binding` binds a list of ` + # A `Policy` consists of a list of `bindings`. A `binding` binds a list of ` # members` to a `role`, where the members can be user accounts, Google groups, # Google domains, and service accounts. A `role` is a named list of permissions # defined by IAM. - # **Example** + # **JSON Example** # ` "bindings": [ ` "role": "roles/owner", "members": [ "user:mike@example.com", # "group:admins@example.com", "domain:google.com", "serviceAccount:my-other-app@ - # appspot.gserviceaccount.com", ] `, ` "role": "roles/viewer", "members": ["user: + # appspot.gserviceaccount.com" ] `, ` "role": "roles/viewer", "members": ["user: # sean@example.com"] ` ] ` + # **YAML Example** + # bindings: - members: - user:mike@example.com - group:admins@example.com - + # domain:google.com - serviceAccount:my-other-app@appspot.gserviceaccount.com + # role: roles/owner - members: - user:sean@example.com role: roles/viewer # For a description of IAM and its features, see the [IAM developer's guide]( # https://cloud.google.com/iam/docs). class Policy diff --git a/generated/google/apis/deploymentmanager_v2beta/representations.rb b/generated/google/apis/deploymentmanager_v2beta/representations.rb index 5421fd058..139969685 100644 --- a/generated/google/apis/deploymentmanager_v2beta/representations.rb +++ b/generated/google/apis/deploymentmanager_v2beta/representations.rb @@ -160,6 +160,12 @@ module Google include Google::Apis::Core::JsonObjectSupport end + class GlobalSetPolicyRequest + class Representation < Google::Apis::Core::JsonRepresentation; end + + include Google::Apis::Core::JsonObjectSupport + end + class ImportFile class Representation < Google::Apis::Core::JsonRepresentation; end @@ -645,6 +651,17 @@ module Google end end + class GlobalSetPolicyRequest + # @private + class Representation < Google::Apis::Core::JsonRepresentation + collection :bindings, as: 'bindings', class: Google::Apis::DeploymentmanagerV2beta::Binding, decorator: Google::Apis::DeploymentmanagerV2beta::Binding::Representation + + property :etag, :base64 => true, as: 'etag' + property :policy, as: 'policy', class: Google::Apis::DeploymentmanagerV2beta::Policy, decorator: Google::Apis::DeploymentmanagerV2beta::Policy::Representation + + end + end + class ImportFile # @private class Representation < Google::Apis::Core::JsonRepresentation diff --git a/generated/google/apis/deploymentmanager_v2beta/service.rb b/generated/google/apis/deploymentmanager_v2beta/service.rb index 680e8ef29..5c53bc11e 100644 --- a/generated/google/apis/deploymentmanager_v2beta/service.rb +++ b/generated/google/apis/deploymentmanager_v2beta/service.rb @@ -643,7 +643,7 @@ module Google # Project ID for this request. # @param [String] resource # Name of the resource for this request. - # @param [Google::Apis::DeploymentmanagerV2beta::Policy] policy_object + # @param [Google::Apis::DeploymentmanagerV2beta::GlobalSetPolicyRequest] global_set_policy_request_object # @param [String] fields # Selector specifying which fields to include in a partial response. # @param [String] quota_user @@ -663,10 +663,10 @@ 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, policy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) + def set_deployment_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block) command = make_simple_command(:post, '{project}/global/deployments/{resource}/setIamPolicy', options) - command.request_representation = Google::Apis::DeploymentmanagerV2beta::Policy::Representation - command.request_object = policy_object + command.request_representation = Google::Apis::DeploymentmanagerV2beta::GlobalSetPolicyRequest::Representation + command.request_object = global_set_policy_request_object command.response_representation = Google::Apis::DeploymentmanagerV2beta::Policy::Representation command.response_class = Google::Apis::DeploymentmanagerV2beta::Policy command.params['project'] = project unless project.nil? diff --git a/generated/google/apis/dialogflow_v2.rb b/generated/google/apis/dialogflow_v2.rb index c0d8cb5bf..3b3169799 100644 --- a/generated/google/apis/dialogflow_v2.rb +++ b/generated/google/apis/dialogflow_v2.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow-enterprise/ module DialogflowV2 VERSION = 'V2' - REVISION = '20180430' + REVISION = '20180508' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dialogflow_v2/classes.rb b/generated/google/apis/dialogflow_v2/classes.rb index 5a6c1f7c7..3841dbd22 100644 --- a/generated/google/apis/dialogflow_v2/classes.rb +++ b/generated/google/apis/dialogflow_v2/classes.rb @@ -664,9 +664,11 @@ module Google class GoogleCloudDialogflowV2ExportAgentRequest include Google::Apis::Core::Hashable - # Optional. The Google Cloud Storage URI to export the agent to. - # Note: The URI must start with - # "gs://". If left unspecified, the serialized agent is returned inline. + # Optional. The + # [Google Cloud Storage](https://cloud.google.com/storage/docs/) + # URI to export the agent to. + # The format of this URI must be `gs:///`. + # If left unspecified, the serialized agent is returned inline. # Corresponds to the JSON property `agentUri` # @return [String] attr_accessor :agent_uri @@ -2681,8 +2683,8 @@ module Google # taken into account during inference in `ML ONLY` match mode. Also, # auto-markup in the UI is turned off. # DEPRECATED! Please use `ml_disabled` field instead. - # NOTE: If neither `ml_enabled` nor `ml_disabled` field is set, then the - # default value is determined as follows: + # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false, + # then the default value is determined as follows: # - Before April 15th, 2018 the default is: # ml_enabled = false / ml_disabled = true. # - After April 15th, 2018 the default is: @@ -3110,8 +3112,8 @@ module Google class GoogleCloudDialogflowV2beta1IntentMessageImage include Google::Apis::Core::Hashable - # Optional. A text description of the image to be used for accessibility, - # e.g., screen readers. + # A text description of the image to be used for accessibility, + # e.g., screen readers. Required if image_uri is set for CarouselSelect. # Corresponds to the JSON property `accessibilityText` # @return [String] attr_accessor :accessibility_text diff --git a/generated/google/apis/dialogflow_v2beta1.rb b/generated/google/apis/dialogflow_v2beta1.rb index b02c66c82..654c5446c 100644 --- a/generated/google/apis/dialogflow_v2beta1.rb +++ b/generated/google/apis/dialogflow_v2beta1.rb @@ -26,7 +26,7 @@ module Google # @see https://cloud.google.com/dialogflow-enterprise/ module DialogflowV2beta1 VERSION = 'V2beta1' - REVISION = '20180430' + REVISION = '20180508' # View and manage your data across Google Cloud Platform services AUTH_CLOUD_PLATFORM = 'https://www.googleapis.com/auth/cloud-platform' diff --git a/generated/google/apis/dialogflow_v2beta1/classes.rb b/generated/google/apis/dialogflow_v2beta1/classes.rb index 6a9b7fad2..1bd99b0e8 100644 --- a/generated/google/apis/dialogflow_v2beta1/classes.rb +++ b/generated/google/apis/dialogflow_v2beta1/classes.rb @@ -2094,9 +2094,11 @@ module Google class GoogleCloudDialogflowV2beta1ExportAgentRequest include Google::Apis::Core::Hashable - # Optional. The Google Cloud Storage URI to export the agent to. - # Note: The URI must start with - # "gs://". If left unspecified, the serialized agent is returned inline. + # Optional. The + # [Google Cloud Storage](https://cloud.google.com/storage/docs/) + # URI to export the agent to. + # The format of this URI must be `gs:///`. + # If left unspecified, the serialized agent is returned inline. # Corresponds to the JSON property `agentUri` # @return [String] attr_accessor :agent_uri @@ -2308,8 +2310,8 @@ module Google # taken into account during inference in `ML ONLY` match mode. Also, # auto-markup in the UI is turned off. # DEPRECATED! Please use `ml_disabled` field instead. - # NOTE: If neither `ml_enabled` nor `ml_disabled` field is set, then the - # default value is determined as follows: + # NOTE: If both `ml_enabled` and `ml_disabled` are either not set or false, + # then the default value is determined as follows: # - Before April 15th, 2018 the default is: # ml_enabled = false / ml_disabled = true. # - After April 15th, 2018 the default is: @@ -2756,8 +2758,8 @@ module Google class GoogleCloudDialogflowV2beta1IntentMessageImage include Google::Apis::Core::Hashable - # Optional. A text description of the image to be used for accessibility, - # e.g., screen readers. + # A text description of the image to be used for accessibility, + # e.g., screen readers. Required if image_uri is set for CarouselSelect. # Corresponds to the JSON property `accessibilityText` # @return [String] attr_accessor :accessibility_text diff --git a/generated/google/apis/dlp_v2.rb b/generated/google/apis/dlp_v2.rb index 4fc595d0d..de0d4ef81 100644 --- a/generated/google/apis/dlp_v2.rb +++ b/generated/google/apis/dlp_v2.rb @@ -27,7 +27,7 @@ module Google # @see https://cloud.google.com/dlp/docs/ module DlpV2 VERSION = 'V2' - REVISION = '20180501' + REVISION = '20180507' # 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/dlp_v2/classes.rb b/generated/google/apis/dlp_v2/classes.rb index 68e0dc092..5e5383010 100644 --- a/generated/google/apis/dlp_v2/classes.rb +++ b/generated/google/apis/dlp_v2/classes.rb @@ -610,7 +610,7 @@ module Google end end - # Message representing a path in Cloud Storage. + # Message representing a single file or path in Cloud Storage. class GooglePrivacyDlpV2CloudStoragePath include Google::Apis::Core::Hashable @@ -1499,7 +1499,7 @@ module Google class GooglePrivacyDlpV2Dictionary include Google::Apis::Core::Hashable - # Message representing a path in Cloud Storage. + # Message representing a single file or path in Cloud Storage. # Corresponds to the JSON property `cloudStoragePath` # @return [Google::Apis::DlpV2::GooglePrivacyDlpV2CloudStoragePath] attr_accessor :cloud_storage_path