Autogenerated update (2018-05-12)

Update:
- analytics_v3
- compute_alpha
- compute_beta
- compute_v1
This commit is contained in:
Google APIs committed 2018-05-12 00:36:08 +00:00
1 parent 3e775eb600
commit 4fd6a9ced2
16 files changed
+2746 -153

No files matched your search

+61 -2
View File
@@ -2936,7 +2936,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
@@ -4289,6 +4289,13 @@ module Google
# @return [String]
attr_accessor :name
# [Output Only] URL of the region where the disk type resides. Only applicable
# for regional resources. You must specify this field as part of the HTTP
# request URL. It is not settable as a field in the request body.
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
# [Output Only] Server-defined URL for the resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
@@ -4320,6 +4327,7 @@ module Google
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
@valid_disk_size = args[:valid_disk_size] if args.key?(:valid_disk_size)
@zone = args[:zone] if args.key?(:zone)
@@ -12861,7 +12869,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
@@ -14967,6 +14976,56 @@ module Google
end
end
#
class RegionSetPolicyRequest
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<Google::Apis::ComputeBeta::Binding>]
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::ComputeBeta::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
# Commitment for a particular resource (a Commitment is composed of one or more
# of these).
class ResourceCommitment
@@ -2008,6 +2008,12 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RegionSetPolicyRequest
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ResourceCommitment
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -4035,6 +4041,7 @@ module Google
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
property :region, as: 'region'
property :self_link, as: 'selfLink'
property :valid_disk_size, as: 'validDiskSize'
property :zone, as: 'zone'
@@ -6707,6 +6714,17 @@ module Google
end
end
class RegionSetPolicyRequest
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :bindings, as: 'bindings', class: Google::Apis::ComputeBeta::Binding, decorator: Google::Apis::ComputeBeta::Binding::Representation
property :etag, :base64 => true, as: 'etag'
property :policy, as: 'policy', class: Google::Apis::ComputeBeta::Policy, decorator: Google::Apis::ComputeBeta::Policy::Representation
end
end
class ResourceCommitment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -122,8 +122,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns the specified accelerator type. Gets a list of available accelerator
# types by making a list() request.
# Returns the specified accelerator type.
# @param [String] project
# Project ID for this request.
# @param [String] zone
@@ -9878,7 +9877,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Returns the specified interconnect. Gets a list of available interconnects by
# Returns the specified interconnect. Get a list of available interconnects by
# making a list() request.
# @param [String] project
# Project ID for this request.
@@ -10338,7 +10337,7 @@ module Google
# Retrieves the list of licenses available in the specified project. This method
# does not get any licenses that belong to other projects, including licenses
# attached to publicly-available images, like Debian 8. If you want to get a
# attached to publicly-available images, like Debian 9. If you want to get a
# list of publicly-available licenses, use this method to make a request to the
# respective image project, such as debian-cloud or windows-cloud.
# @param [String] project
@@ -17185,7 +17184,7 @@ module Google
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# @param [Google::Apis::ComputeBeta::Policy] policy_object
# @param [Google::Apis::ComputeBeta::RegionSetPolicyRequest] region_set_policy_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -17205,10 +17204,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_subnetwork_iam_policy(project, region, resource, policy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def set_subnetwork_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/subnetworks/{resource}/setIamPolicy', options)
command.request_representation = Google::Apis::ComputeBeta::Policy::Representation
command.request_object = policy_object
command.request_representation = Google::Apis::ComputeBeta::RegionSetPolicyRequest::Representation
command.request_object = region_set_policy_request_object
command.response_representation = Google::Apis::ComputeBeta::Policy::Representation
command.response_class = Google::Apis::ComputeBeta::Policy
command.params['project'] = project unless project.nil?