Autogenerated update (2018-02-02)

Update:
- adexchangebuyer2_v2beta1
- compute_alpha
- compute_beta
- compute_v1
- ml_v1
- monitoring_v3
- serviceconsumermanagement_v1
- youtube_partner_v1
This commit is contained in:
Google APIs committed 2018-02-02 00:35:32 +00:00
1 parent 6fc4520e45
commit 64cc6eadab
24 files changed
+802 -104

No files matched your search

+64 -30
View File
@@ -98,7 +98,8 @@ module Google
attr_accessor :self_link
# [Output Only] The name of the zone where the accelerator type resides, such as
# us-central1-a.
# us-central1-a. 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 `zone`
# @return [String]
attr_accessor :zone
@@ -615,7 +616,8 @@ module Google
attr_accessor :network_tier
# [Output Only] URL of the region where the regional address resides. This field
# is not applicable to global addresses.
# is not applicable to global addresses. You must specify this field as part of
# the HTTP request URL. You cannot set this field in the request body.
# Corresponds to the JSON property `region`
# @return [String]
attr_accessor :region
@@ -1270,7 +1272,8 @@ module Google
# ] `
# For fooservice, this policy enables DATA_READ, DATA_WRITE and ADMIN_READ
# logging. It also exempts foo@gmail.com from DATA_READ logging, and bar@gmail.
# com from DATA_WRITE logging.
# com from DATA_WRITE logging. This message is only visible as GOOGLE_INTERNAL
# or IAM_AUDIT_CONFIG.
class AuditConfig
include Google::Apis::Core::Hashable
@@ -2584,7 +2587,9 @@ module Google
attr_accessor :protocol
# [Output Only] URL of the region where the regional backend service resides.
# This field is not applicable to global backend services.
# This field is not applicable to global backend services. 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
@@ -4104,7 +4109,8 @@ module Google
attr_accessor :physical_block_size_bytes
# [Output Only] URL of the region where the disk resides. Only applicable for
# regional resources.
# 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
@@ -4210,7 +4216,9 @@ module Google
# @return [Array<String>]
attr_accessor :users
# [Output Only] URL of the zone where the disk resides.
# [Output Only] URL of the zone where the disk resides. 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 `zone`
# @return [String]
attr_accessor :zone
@@ -4615,7 +4623,9 @@ module Google
# @return [String]
attr_accessor :valid_disk_size
# [Output Only] URL of the zone where the disk type resides.
# [Output Only] URL of the zone where the disk type resides. 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 `zone`
# @return [String]
attr_accessor :zone
@@ -5174,7 +5184,7 @@ module Google
attr_accessor :creation_timestamp
# The list of DENY rules specified by this firewall. Each rule specifies a
# protocol and port-range tuple that describes a permitted connection.
# protocol and port-range tuple that describes a denied connection.
# Corresponds to the JSON property `denied`
# @return [Array<Google::Apis::ComputeAlpha::Firewall::Denied>]
attr_accessor :denied
@@ -5731,7 +5741,6 @@ module Google
# - TargetSslProxy: 25, 43, 110, 143, 195, 443, 465, 587, 700, 993, 995, 1883,
# 5222
# - TargetVpnGateway: 500, 4500
# -
# Corresponds to the JSON property `portRange`
# @return [String]
attr_accessor :port_range
@@ -5747,7 +5756,9 @@ module Google
attr_accessor :ports
# [Output Only] URL of the region where the regional forwarding rule resides.
# This field is not applicable to global forwarding rules.
# This field is not applicable to global forwarding rules. 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
@@ -5791,7 +5802,6 @@ module Google
# rule. For global forwarding rules, this target must be a global load balancing
# resource. The forwarded traffic must be of a type appropriate to the target
# object.
# This field is not used for internal load balancing.
# Corresponds to the JSON property `target`
# @return [String]
attr_accessor :target
@@ -8788,7 +8798,9 @@ module Google
# @return [Google::Apis::ComputeAlpha::Tags]
attr_accessor :tags
# [Output Only] URL of the zone where the instance resides.
# [Output Only] URL of the zone where the instance resides. 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 `zone`
# @return [String]
attr_accessor :zone
@@ -9555,8 +9567,8 @@ module Google
attr_accessor :restarting
# [Output Only] The number of instances in the managed instance group that are
# being verified. More details regarding verification process are covered in the
# documentation of ManagedInstance.InstanceAction.VERIFYING enum field.
# being verified. See the managedInstances[].currentAction property in the
# listManagedInstances method documentation.
# Corresponds to the JSON property `verifying`
# @return [Fixnum]
attr_accessor :verifying
@@ -12076,7 +12088,8 @@ module Google
attr_accessor :private_interconnect_info
# [Output Only] URL of the region where the regional interconnect attachment
# resides.
# resides. 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
@@ -14477,6 +14490,8 @@ module Google
# - REFRESHING The managed instance group is applying configuration changes to
# the instance without stopping it. For example, the group can update the target
# pool list for an instance without stopping that instance.
# - VERIFYING The managed instance group has created the instance and it is in
# the process of being verified.
# Corresponds to the JSON property `currentAction`
# @return [String]
attr_accessor :current_action
@@ -16079,7 +16094,9 @@ module Google
attr_accessor :progress
# [Output Only] The URL of the region where the operation resides. Only
# available when performing regional operations.
# available when performing regional operations. 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
@@ -16132,7 +16149,8 @@ module Google
attr_accessor :warnings
# [Output Only] The URL of the zone where the operation resides. Only available
# when performing per-zone operations.
# when performing per-zone operations. 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 `zone`
# @return [String]
attr_accessor :zone
@@ -16728,11 +16746,12 @@ module Google
# appspot.gserviceaccount.com", ] `, ` "role": "roles/viewer", "members": ["user:
# sean@example.com"] ` ] `
# For a description of IAM and its features, see the [IAM developer's guide](
# https://cloud.google.com/iam).
# https://cloud.google.com/iam/docs).
class Policy
include Google::Apis::Core::Hashable
# Specifies cloud audit logging configuration for this policy.
# Specifies cloud audit logging configuration for this policy. This field is
# only visible as GOOGLE_INTERNAL or IAM_AUDIT_CONFIG.
# Corresponds to the JSON property `auditConfigs`
# @return [Array<Google::Apis::ComputeAlpha::AuditConfig>]
attr_accessor :audit_configs
@@ -16774,7 +16793,7 @@ module Google
# @return [Array<Google::Apis::ComputeAlpha::Rule>]
attr_accessor :rules
# Version of the `Policy`. The default version is 0.
# Deprecated.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
@@ -18757,7 +18776,9 @@ module Google
# @return [String]
attr_accessor :network
# [Output Only] URI of the region where the router resides.
# [Output Only] URI of the region where the router resides. 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
@@ -21297,6 +21318,12 @@ module Google
# @return [String]
attr_accessor :description
# Whether to enable flow logging for this subnetwork.
# Corresponds to the JSON property `enableFlowLogs`
# @return [Boolean]
attr_accessor :enable_flow_logs
alias_method :enable_flow_logs?, :enable_flow_logs
# Fingerprint of this resource. A hash of the contents stored in this object.
# This field is used in optimistic locking. This field will be ignored when
# inserting a Subnetwork. An up-to-date fingerprint must be provided in order to
@@ -21307,8 +21334,7 @@ module Google
attr_accessor :fingerprint
# [Output Only] The gateway address for default routes to reach destination
# addresses outside this subnetwork. This field can be set only at resource
# creation time.
# addresses outside this subnetwork.
# Corresponds to the JSON property `gatewayAddress`
# @return [String]
attr_accessor :gateway_address
@@ -21387,6 +21413,7 @@ module Google
@allow_subnet_cidr_routes_overlap = args[:allow_subnet_cidr_routes_overlap] if args.key?(:allow_subnet_cidr_routes_overlap)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@enable_flow_logs = args[:enable_flow_logs] if args.key?(:enable_flow_logs)
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
@gateway_address = args[:gateway_address] if args.key?(:gateway_address)
@id = args[:id] if args.key?(:id)
@@ -22410,7 +22437,9 @@ module Google
# @return [String]
attr_accessor :self_link
# [Output Only] URL of the zone where the target instance resides.
# [Output Only] URL of the zone where the target instance resides. 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 `zone`
# @return [String]
attr_accessor :zone
@@ -23906,7 +23935,9 @@ module Google
# @return [String]
attr_accessor :network
# [Output Only] URL of the region where the target VPN gateway resides.
# [Output Only] URL of the region where the target VPN gateway resides. 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
@@ -24460,8 +24491,9 @@ module Google
# @return [String]
attr_accessor :self_link
# The list of expected URL mappings. Request to update this UrlMap will succeed
# only if all of the test cases pass.
# The list of expected URL mapping tests. Request to update this UrlMap will
# succeed only if all of the test cases pass. You can specify a maximum of 100
# tests per UrlMap.
# Corresponds to the JSON property `tests`
# @return [Array<Google::Apis::ComputeAlpha::UrlMapTest>]
attr_accessor :tests
@@ -25023,7 +25055,9 @@ module Google
# @return [String]
attr_accessor :peer_ip
# [Output Only] URL of the region where the VPN tunnel resides.
# [Output Only] URL of the region where the VPN tunnel resides. 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
@@ -25061,8 +25095,8 @@ module Google
# @return [String]
attr_accessor :status
# URL of the VPN gateway with which this VPN tunnel is associated. Provided by
# the client when the VPN tunnel is created.
# URL of the Target VPN gateway with which this VPN tunnel is associated.
# Provided by the client when the VPN tunnel is created.
# Corresponds to the JSON property `targetVpnGateway`
# @return [String]
attr_accessor :target_vpn_gateway
@@ -8942,6 +8942,7 @@ module Google
property :allow_subnet_cidr_routes_overlap, as: 'allowSubnetCidrRoutesOverlap'
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :enable_flow_logs, as: 'enableFlowLogs'
property :fingerprint, :base64 => true, as: 'fingerprint'
property :gateway_address, as: 'gatewayAddress'
property :id, :numeric_string => true, as: 'id'
+142 -5
View File
@@ -3488,8 +3488,8 @@ module Google
execute_or_queue_command(command, &block)
end
# Updates the specified firewall rule with the data included in the request.
# Using PUT method, can only update following fields of firewall rule: allowed,
# Updates the specified firewall rule with the data included in the request. The
# PUT method can only update the following fields of firewall rule: allowed,
# description, sourceRanges, sourceTags, targetTags.
# @param [String] project
# Project ID for this request.
@@ -14853,6 +14853,137 @@ module Google
execute_or_queue_command(command, &block)
end
# Gets the access control policy for a resource. May be empty if no such policy
# or resource exists.
# @param [String] project
# Project ID for this request.
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# 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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::Policy]
#
# @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_node_template_iam_policy(project, region, resource, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/regions/{region}/nodeTemplates/{resource}/getIamPolicy', options)
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
command.response_class = Google::Apis::ComputeAlpha::Policy
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
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
# Sets the access control policy on the specified resource. Replaces any
# existing policy.
# @param [String] project
# Project ID for this request.
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# @param [Google::Apis::ComputeAlpha::Policy] policy_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# 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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::Policy]
#
# @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_node_template_iam_policy(project, region, resource, policy_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/nodeTemplates/{resource}/setIamPolicy', options)
command.request_representation = Google::Apis::ComputeAlpha::Policy::Representation
command.request_object = policy_object
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
command.response_class = Google::Apis::ComputeAlpha::Policy
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
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
# Returns permissions that a caller has on the specified resource.
# @param [String] project
# Project ID for this request.
# @param [String] region
# The name of the region for this request.
# @param [String] resource
# Name of the resource for this request.
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
# 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.
# Overrides userIp if both are provided.
# @param [String] user_ip
# IP address of the site where the request originates. Use this if you want to
# enforce per-user limits.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
#
# @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_node_template_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/nodeTemplates/{resource}/testIamPermissions', options)
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
command.request_object = test_permissions_request_object
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
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
# Disable this project as a shared VPC host project.
# @param [String] project
# Project ID for this request.
@@ -16002,7 +16133,7 @@ module Google
# @param [String] region
# Name of the region scoping this request.
# @param [String] backend_service
# Name of the BackendService resource to which the queried instance belongs.
# Name of the BackendService resource for which to get health.
# @param [Google::Apis::ComputeAlpha::ResourceGroupReference] resource_group_reference_object
# @param [String] fields
# Selector specifying which fields to include in a partial response.
@@ -19695,6 +19826,8 @@ module Google
# @param [String] security_policy
# Name of the security policy to update.
# @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object
# @param [Boolean] validate_only
# If true, the request will not be committed.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -19716,7 +19849,7 @@ 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 add_security_policy_rule(project, security_policy, security_policy_rule_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def add_security_policy_rule(project, security_policy, security_policy_rule_object = nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/global/securityPolicies/{securityPolicy}/addRule', options)
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
command.request_object = security_policy_rule_object
@@ -19724,6 +19857,7 @@ module Google
command.response_class = Google::Apis::ComputeAlpha::Operation
command.params['project'] = project unless project.nil?
command.params['securityPolicy'] = security_policy unless security_policy.nil?
command.query['validateOnly'] = validate_only unless validate_only.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?
@@ -20047,6 +20181,8 @@ module Google
# @param [Google::Apis::ComputeAlpha::SecurityPolicyRule] security_policy_rule_object
# @param [Fixnum] priority
# The priority of the rule to patch.
# @param [Boolean] validate_only
# If true, the request will not be committed.
# @param [String] fields
# Selector specifying which fields to include in a partial response.
# @param [String] quota_user
@@ -20068,7 +20204,7 @@ 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_security_policy_rule(project, security_policy, security_policy_rule_object = nil, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
def patch_security_policy_rule(project, security_policy, security_policy_rule_object = nil, priority: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/global/securityPolicies/{securityPolicy}/patchRule', options)
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
command.request_object = security_policy_rule_object
@@ -20077,6 +20213,7 @@ module Google
command.params['project'] = project unless project.nil?
command.params['securityPolicy'] = security_policy unless security_policy.nil?
command.query['priority'] = priority unless priority.nil?
command.query['validateOnly'] = validate_only unless validate_only.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?