Autogenerated update (2020-05-07)

Delete:
- commentanalyzer_v1alpha1
- osconfig_v1beta

Update:
- adexchangebuyer2_v2beta1
- androidenterprise_v1
- androidpublisher_v1
- androidpublisher_v1_1
- androidpublisher_v2
- androidpublisher_v3
- bigquery_v2
- bigqueryconnection_v1beta1
- bigqueryreservation_v1
- bigqueryreservation_v1beta1
- binaryauthorization_v1
- binaryauthorization_v1beta1
- calendar_v3
- cloudasset_v1p1beta1
- cloudbilling_v1
- cloudbuild_v1
- clouddebugger_v2
- cloudidentity_v1beta1
- cloudiot_v1
- cloudresourcemanager_v1
- cloudresourcemanager_v1beta1
- cloudresourcemanager_v2
- cloudresourcemanager_v2beta1
- cloudscheduler_v1
- cloudscheduler_v1beta1
- cloudsearch_v1
- cloudshell_v1alpha1
- cloudtasks_v2
- cloudtasks_v2beta2
- cloudtasks_v2beta3
- cloudtrace_v2
- composer_v1beta1
- compute_alpha
- compute_beta
- compute_v1
- container_v1
- container_v1beta1
- containeranalysis_v1alpha1
- containeranalysis_v1beta1
- content_v2
- content_v2_1
- customsearch_v1
- datacatalog_v1beta1
- dataproc_v1
- dataproc_v1beta2
- dialogflow_v2
- dialogflow_v2beta1
- displayvideo_v1
- dlp_v2
- drive_v2
- drive_v3
- driveactivity_v2
- file_v1
- file_v1beta1
- firebase_v1beta1
- firebasehosting_v1beta1
- games_configuration_v1configuration
- games_management_v1management
- games_v1
- gameservices_v1beta
- healthcare_v1
- healthcare_v1beta1
- homegraph_v1
- iamcredentials_v1
- managedidentities_v1
- managedidentities_v1alpha1
- managedidentities_v1beta1
- memcache_v1beta2
- ml_v1
- monitoring_v3
- people_v1
- policytroubleshooter_v1
- policytroubleshooter_v1beta
- prod_tt_sasportal_v1alpha1
- remotebuildexecution_v1
- remotebuildexecution_v1alpha
- remotebuildexecution_v2
- run_v1
- run_v1alpha1
- runtimeconfig_v1beta1
- sasportal_v1alpha1
- script_v1
- secretmanager_v1
- secretmanager_v1beta1
- serviceconsumermanagement_v1
- serviceconsumermanagement_v1beta1
- servicecontrol_v1
- servicedirectory_v1beta1
- servicemanagement_v1
- servicenetworking_v1
- servicenetworking_v1beta
- serviceusage_v1
- serviceusage_v1beta1
- sheets_v4
- sourcerepo_v1
- speech_v1
- speech_v1p1beta1
- storage_v1
- tagmanager_v1
- tagmanager_v2
- testing_v1
- toolresults_v1beta3
- vault_v1
- videointelligence_v1
- videointelligence_v1beta2
- videointelligence_v1p1beta1
- videointelligence_v1p2beta1
- videointelligence_v1p3beta1
- youtube_partner_v1
- youtube_v3
This commit is contained in:
Google APIs committed 2020-05-07 20:07:42 +00:00
1 parent 334a41b6f9
commit 2aab01171a
308 files changed
+40747 -16123

No files matched your search

+414 -29
View File
@@ -622,9 +622,9 @@ module Google
# @return [String]
attr_accessor :label_fingerprint
# Labels to apply to this Address resource. These can be later modified by the
# setLabels method. Each label key/value must comply with RFC1035. Label values
# may be empty.
# Labels for this resource. These can only be added or modified by the setLabels
# method. Each label key/value pair must comply with RFC1035. Label values may
# be empty.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
@@ -1144,6 +1144,12 @@ module Google
# @return [Array<Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk>]
attr_accessor :local_ssds
# An opaque location hint used to place the allocation close to other resources.
# This field is for use by internal tools that use the public API.
# Corresponds to the JSON property `locationHint`
# @return [String]
attr_accessor :location_hint
# Compute Engine Long Term Release. When specified, VMs that have this policy
# become long term release (internal: stable fleet) VMs.
# For all VM shapes, this should result in fewer disruptions due to software
@@ -1175,6 +1181,7 @@ module Google
def update!(**args)
@guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators)
@local_ssds = args[:local_ssds] if args.key?(:local_ssds)
@location_hint = args[:location_hint] if args.key?(:location_hint)
@long_term_release = args[:long_term_release] if args.key?(:long_term_release)
@machine_type = args[:machine_type] if args.key?(:machine_type)
@min_cpu_platform = args[:min_cpu_platform] if args.key?(:min_cpu_platform)
@@ -6998,9 +7005,9 @@ module Google
# @return [String]
attr_accessor :label_fingerprint
# Labels to apply to this ExternalVpnGateway resource. These can be later
# modified by the setLabels method. Each label key/value must comply with
# RFC1035. Label values may be empty.
# Labels for this resource. These can only be added or modified by the setLabels
# method. Each label key/value pair must comply with RFC1035. Label values may
# be empty.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
@@ -7823,7 +7830,7 @@ module Google
# @return [String]
attr_accessor :label_fingerprint
# Labels to apply to this resource. These can be later modified by the setLabels
# Labels for this resource. These can only be added or modified by the setLabels
# method. Each label key/value pair must comply with RFC1035. Label values may
# be empty.
# Corresponds to the JSON property `labels`
@@ -12310,7 +12317,10 @@ module Google
# @return [Array<Google::Apis::ComputeAlpha::NamedPort>]
attr_accessor :named_ports
# The URL of the network to which all instances in the instance group belong.
# [Output Only] The URL of the network to which all instances in the instance
# group belong. If your instance has multiple network interfaces, then the
# network and subnetwork fields only refer to the network and subnet used by
# your primary interface (nic0).
# Corresponds to the JSON property `network`
# @return [String]
attr_accessor :network
@@ -12337,7 +12347,9 @@ module Google
attr_accessor :size
# [Output Only] The URL of the subnetwork to which all instances in the instance
# group belong.
# group belong. If your instance has multiple network interfaces, then the
# network and subnetwork fields only refer to the network and subnet used by
# your primary interface (nic0).
# Corresponds to the JSON property `subnetwork`
# @return [String]
attr_accessor :subnetwork
@@ -15592,9 +15604,9 @@ module Google
# @return [String]
attr_accessor :label_fingerprint
# Labels to apply to this Interconnect resource. These can be later modified by
# the setLabels method. Each label key/value must comply with RFC1035. Label
# values may be empty.
# Labels for this resource. These can only be added or modified by the setLabels
# method. Each label key/value pair must comply with RFC1035. Label values may
# be empty.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
@@ -15838,9 +15850,9 @@ module Google
# @return [String]
attr_accessor :label_fingerprint
# Labels to apply to this InterconnectAttachment resource. These can be later
# modified by the setLabels method. Each label key/value must comply with
# RFC1035. Label values may be empty.
# Labels for this resource. These can only be added or modified by the setLabels
# method. Each label key/value pair must comply with RFC1035. Label values may
# be empty.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
@@ -18312,6 +18324,12 @@ module Google
class MachineType
include Google::Apis::Core::Hashable
# [Output Only] A list of accelerator configurations assigned to this machine
# type.
# Corresponds to the JSON property `accelerators`
# @return [Array<Google::Apis::ComputeAlpha::MachineType::Accelerator>]
attr_accessor :accelerators
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
@@ -18394,6 +18412,7 @@ module Google
# Update properties of this object
def update!(**args)
@accelerators = args[:accelerators] if args.key?(:accelerators)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@deprecated = args[:deprecated] if args.key?(:deprecated)
@description = args[:description] if args.key?(:description)
@@ -18409,6 +18428,31 @@ module Google
@self_link_with_id = args[:self_link_with_id] if args.key?(:self_link_with_id)
@zone = args[:zone] if args.key?(:zone)
end
#
class Accelerator
include Google::Apis::Core::Hashable
# Number of accelerator cards exposed to the guest.
# Corresponds to the JSON property `guestAcceleratorCount`
# @return [Fixnum]
attr_accessor :guest_accelerator_count
# The accelerator type resource name, not a full URL, e.g. 'nvidia-tesla-k80'.
# Corresponds to the JSON property `guestAcceleratorType`
# @return [String]
attr_accessor :guest_accelerator_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@guest_accelerator_count = args[:guest_accelerator_count] if args.key?(:guest_accelerator_count)
@guest_accelerator_type = args[:guest_accelerator_type] if args.key?(:guest_accelerator_type)
end
end
end
#
@@ -20811,6 +20855,13 @@ module Google
# @return [String]
attr_accessor :kind
# An opaque location hint used to place the Node close to other resources. This
# field is for use by internal tools that use the public API. The location hint
# here on the NodeGroup overrides any location_hint present in the NodeTemplate.
# Corresponds to the JSON property `locationHint`
# @return [String]
attr_accessor :location_hint
# Specifies how to handle instances when a node in the group undergoes
# maintenance.
# Corresponds to the JSON property `maintenancePolicy`
@@ -20877,6 +20928,7 @@ module Google
@fingerprint = args[:fingerprint] if args.key?(:fingerprint)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@location_hint = args[:location_hint] if args.key?(:location_hint)
@maintenance_policy = args[:maintenance_policy] if args.key?(:maintenance_policy)
@maintenance_window = args[:maintenance_window] if args.key?(:maintenance_window)
@name = args[:name] if args.key?(:name)
@@ -29784,6 +29836,12 @@ module Google
# @return [Array<String>]
attr_accessor :drain_nat_ips
#
# Corresponds to the JSON property `enableEndpointIndependentMapping`
# @return [Boolean]
attr_accessor :enable_endpoint_independent_mapping
alias_method :enable_endpoint_independent_mapping?, :enable_endpoint_independent_mapping
# Timeout (in seconds) for ICMP connections. Defaults to 30s if not set.
# Corresponds to the JSON property `icmpIdleTimeoutSec`
# @return [Fixnum]
@@ -29823,6 +29881,11 @@ module Google
# @return [Array<String>]
attr_accessor :nat_ips
# A list of rules associated with this NAT.
# Corresponds to the JSON property `rules`
# @return [Array<Google::Apis::ComputeAlpha::RouterNatRule>]
attr_accessor :rules
# Specify the Nat option, which can take one of the following values:
# - ALL_SUBNETWORKS_ALL_IP_RANGES: All of the IP ranges in every Subnetwork are
# allowed to Nat.
@@ -29851,6 +29914,12 @@ module Google
# @return [Fixnum]
attr_accessor :tcp_established_idle_timeout_sec
# Timeout (in seconds) for TCP connections that are in TIME_WAIT state. Defaults
# to 120s if not set.
# Corresponds to the JSON property `tcpTimeWaitTimeoutSec`
# @return [Fixnum]
attr_accessor :tcp_time_wait_timeout_sec
# Timeout (in seconds) for TCP transitory connections. Defaults to 30s if not
# set.
# Corresponds to the JSON property `tcpTransitoryIdleTimeoutSec`
@@ -29869,15 +29938,18 @@ module Google
# Update properties of this object
def update!(**args)
@drain_nat_ips = args[:drain_nat_ips] if args.key?(:drain_nat_ips)
@enable_endpoint_independent_mapping = args[:enable_endpoint_independent_mapping] if args.key?(:enable_endpoint_independent_mapping)
@icmp_idle_timeout_sec = args[:icmp_idle_timeout_sec] if args.key?(:icmp_idle_timeout_sec)
@log_config = args[:log_config] if args.key?(:log_config)
@min_ports_per_vm = args[:min_ports_per_vm] if args.key?(:min_ports_per_vm)
@name = args[:name] if args.key?(:name)
@nat_ip_allocate_option = args[:nat_ip_allocate_option] if args.key?(:nat_ip_allocate_option)
@nat_ips = args[:nat_ips] if args.key?(:nat_ips)
@rules = args[:rules] if args.key?(:rules)
@source_subnetwork_ip_ranges_to_nat = args[:source_subnetwork_ip_ranges_to_nat] if args.key?(:source_subnetwork_ip_ranges_to_nat)
@subnetworks = args[:subnetworks] if args.key?(:subnetworks)
@tcp_established_idle_timeout_sec = args[:tcp_established_idle_timeout_sec] if args.key?(:tcp_established_idle_timeout_sec)
@tcp_time_wait_timeout_sec = args[:tcp_time_wait_timeout_sec] if args.key?(:tcp_time_wait_timeout_sec)
@tcp_transitory_idle_timeout_sec = args[:tcp_transitory_idle_timeout_sec] if args.key?(:tcp_transitory_idle_timeout_sec)
@udp_idle_timeout_sec = args[:udp_idle_timeout_sec] if args.key?(:udp_idle_timeout_sec)
end
@@ -29914,6 +29986,79 @@ module Google
end
end
#
class RouterNatRule
include Google::Apis::Core::Hashable
# The action to be enforced for traffic that matches this rule.
# Corresponds to the JSON property `action`
# @return [Google::Apis::ComputeAlpha::RouterNatRuleAction]
attr_accessor :action
# An optional description of this rule.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# CEL expression that specifies the match condition that egress traffic from a
# VM is evaluated against. If it evaluates to true, the corresponding ?action?
# is enforced.
# The following examples are valid match expressions:
# "inIpRange(destination.ip, '1.1.0.0/16') || inIpRange(destination.ip, '2.2.0.0/
# 16')"
# "destination.ip == '1.1.0.1' || destination.ip == '8.8.8.8'"
# Corresponds to the JSON property `match`
# @return [String]
attr_accessor :match
# An integer indicating the priority of a rule in the list. The priority must be
# a positive value between 0 and 65000. The priority must be unique among rules
# within a NAT.
# Corresponds to the JSON property `priority`
# @return [Fixnum]
attr_accessor :priority
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@action = args[:action] if args.key?(:action)
@description = args[:description] if args.key?(:description)
@match = args[:match] if args.key?(:match)
@priority = args[:priority] if args.key?(:priority)
end
end
#
class RouterNatRuleAction
include Google::Apis::Core::Hashable
# A list of URLs of the IP resources used for this NAT rule. These IP addresses
# must be valid static external IP addresses assigned to the project.
# Corresponds to the JSON property `sourceNatActiveIps`
# @return [Array<String>]
attr_accessor :source_nat_active_ips
# A list of URLs of the IP resources to be drained. These IPs must be valid
# static external IPs that have been assigned to the NAT. These IPs should be
# used for updating/patching a NAT rule only.
# Corresponds to the JSON property `sourceNatDrainIps`
# @return [Array<String>]
attr_accessor :source_nat_drain_ips
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@source_nat_active_ips = args[:source_nat_active_ips] if args.key?(:source_nat_active_ips)
@source_nat_drain_ips = args[:source_nat_drain_ips] if args.key?(:source_nat_drain_ips)
end
end
# Defines the IP ranges that want to use NAT for a subnetwork.
class RouterNatSubnetworkToNat
include Google::Apis::Core::Hashable
@@ -30802,9 +30947,9 @@ module Google
# @return [String]
attr_accessor :label_fingerprint
# Labels to apply to this security policy resource. These can be later modified
# by the setLabels method. Each label key/value must comply with RFC1035. Label
# values may be empty.
# Labels for this resource. These can only be added or modified by the setLabels
# method. Each label key/value pair must comply with RFC1035. Label values may
# be empty.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
@@ -31574,6 +31719,246 @@ module Google
end
end
# Represents a ServiceAttachment resource.
# A service attachment represents a service that a producer has exposed. It
# encapsulates the load balancer which fronts the service runs and a list of NAT
# IP ranges that the producers uses to represent the consumers connecting to the
# service.
class ServiceAttachment
include Google::Apis::Core::Hashable
#
# Corresponds to the JSON property `connectionPreference`
# @return [String]
attr_accessor :connection_preference
# An array of forwarding rules for all the consumers connected to this service
# attachment.
# Corresponds to the JSON property `consumerForwardingRules`
# @return [Array<Google::Apis::ComputeAlpha::ServiceAttachmentConsumerForwardingRule>]
attr_accessor :consumer_forwarding_rules
# [Output Only] Creation timestamp in RFC3339 text format.
# Corresponds to the JSON property `creationTimestamp`
# @return [String]
attr_accessor :creation_timestamp
# An optional description of this resource. Provide this property when you
# create the resource.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# [Output Only] The unique identifier for the resource type. The server
# generates this identifier.
# Corresponds to the JSON property `id`
# @return [Fixnum]
attr_accessor :id
# [Output Only] Type of the resource. Always compute#serviceAttachment for
# service attachments.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Name of the resource. Provided by the client when the resource is created. The
# name must be 1-63 characters long, and comply with RFC1035. Specifically, the
# name must be 1-63 characters long and match the regular expression `[a-z]([-a-
# z0-9]*[a-z0-9])?` which means the first character must be a lowercase letter,
# and all following characters must be a dash, lowercase letter, or digit,
# except the last character, which cannot be a dash.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# An array of IP CIDR ranges where each range is the url of the address resource
# which represents the range provided by the service producer to use for NAT in
# this service attachment.
# Corresponds to the JSON property `natIpCidrRanges`
# @return [Array<String>]
attr_accessor :nat_ip_cidr_ranges
# The URL of a forwarding rule with loadBalancingScheme INTERNAL* that is
# serving the endpoint identified by this service attachment.
# Corresponds to the JSON property `producerForwardingRule`
# @return [String]
attr_accessor :producer_forwarding_rule
# [Output Only] URL of the region where the service attachment resides. This
# field applies only to the region resource. 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]
attr_accessor :self_link
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@connection_preference = args[:connection_preference] if args.key?(:connection_preference)
@consumer_forwarding_rules = args[:consumer_forwarding_rules] if args.key?(:consumer_forwarding_rules)
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
@description = args[:description] if args.key?(:description)
@id = args[:id] if args.key?(:id)
@kind = args[:kind] if args.key?(:kind)
@name = args[:name] if args.key?(:name)
@nat_ip_cidr_ranges = args[:nat_ip_cidr_ranges] if args.key?(:nat_ip_cidr_ranges)
@producer_forwarding_rule = args[:producer_forwarding_rule] if args.key?(:producer_forwarding_rule)
@region = args[:region] if args.key?(:region)
@self_link = args[:self_link] if args.key?(:self_link)
end
end
# [Output Only] A consumer forwarding rule connected to this service attachment.
class ServiceAttachmentConsumerForwardingRule
include Google::Apis::Core::Hashable
# The url of a consumer forwarding rule.
# Corresponds to the JSON property `forwardingRule`
# @return [String]
attr_accessor :forwarding_rule
# The status of the forwarding rule.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@forwarding_rule = args[:forwarding_rule] if args.key?(:forwarding_rule)
@status = args[:status] if args.key?(:status)
end
end
#
class ServiceAttachmentList
include Google::Apis::Core::Hashable
# [Output Only] Unique identifier for the resource; defined by the server.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# A list of ServiceAttachment resources.
# Corresponds to the JSON property `items`
# @return [Array<Google::Apis::ComputeAlpha::ServiceAttachment>]
attr_accessor :items
# [Output Only] Type of the resource. Always compute#serviceAttachment for
# service attachments.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# [Output Only] This token allows you to get the next page of results for list
# requests. If the number of results is larger than maxResults, use the
# nextPageToken as a value for the query parameter pageToken in the next list
# request. Subsequent list requests will have their own nextPageToken to
# continue paging through the results.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# [Output Only] Server-defined URL for this resource.
# Corresponds to the JSON property `selfLink`
# @return [String]
attr_accessor :self_link
# [Output Only] Informational warning message.
# Corresponds to the JSON property `warning`
# @return [Google::Apis::ComputeAlpha::ServiceAttachmentList::Warning]
attr_accessor :warning
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@items = args[:items] if args.key?(:items)
@kind = args[:kind] if args.key?(:kind)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@self_link = args[:self_link] if args.key?(:self_link)
@warning = args[:warning] if args.key?(:warning)
end
# [Output Only] Informational warning message.
class Warning
include Google::Apis::Core::Hashable
# [Output Only] A warning code, if applicable. For example, Compute Engine
# returns NO_RESULTS_ON_PAGE if there are no results in the response.
# Corresponds to the JSON property `code`
# @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" `
# Corresponds to the JSON property `data`
# @return [Array<Google::Apis::ComputeAlpha::ServiceAttachmentList::Warning::Datum>]
attr_accessor :data
# [Output Only] A human-readable description of the warning code.
# Corresponds to the JSON property `message`
# @return [String]
attr_accessor :message
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@code = args[:code] if args.key?(:code)
@data = args[:data] if args.key?(:data)
@message = args[:message] if args.key?(:message)
end
#
class Datum
include Google::Apis::Core::Hashable
# [Output Only] A key that provides more detail on the warning being returned.
# For example, for warnings where there are no results in a list request for a
# particular zone, this key might be scope and the key value might be the zone
# name. Other examples might be a key indicating a deprecated resource and a
# suggested replacement, or a warning about invalid network settings (for
# example, if an instance attempts to perform IP forwarding but is not enabled
# for IP forwarding).
# Corresponds to the JSON property `key`
# @return [String]
attr_accessor :key
# [Output Only] A warning data value corresponding to the key.
# 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)
@key = args[:key] if args.key?(:key)
@value = args[:value] if args.key?(:value)
end
end
end
end
# A set of Shielded Instance options.
class ShieldedInstanceConfig
include Google::Apis::Core::Hashable
@@ -36817,9 +37202,9 @@ module Google
# @return [String]
attr_accessor :label_fingerprint
# Labels to apply to this TargetVpnGateway resource. These can be later modified
# by the setLabels method. Each label key/value must comply with RFC1035. Label
# values may be empty.
# Labels for this resource. These can only be added or modified by the setLabels
# method. Each label key/value pair must comply with RFC1035. Label values may
# be empty.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
@@ -38619,9 +39004,9 @@ module Google
# @return [String]
attr_accessor :label_fingerprint
# Labels to apply to this VpnGateway resource. These can be later modified by
# the setLabels method. Each label key/value must comply with RFC1035. Label
# values may be empty.
# Labels for this resource. These can only be added or modified by the setLabels
# method. Each label key/value pair must comply with RFC1035. Label values may
# be empty.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
@@ -38652,7 +39037,7 @@ module Google
# @return [String]
attr_accessor :self_link
# [Output Only] A list of interfaces on this VPN gateway.
# A list of interfaces on this VPN gateway.
# Corresponds to the JSON property `vpnInterfaces`
# @return [Array<Google::Apis::ComputeAlpha::VpnGatewayVpnGatewayInterface>]
attr_accessor :vpn_interfaces
@@ -39050,7 +39435,7 @@ module Google
# @return [Fixnum]
attr_accessor :id
# The external IP address for this VPN gateway interface.
# [Output Only] The external IP address for this VPN gateway interface.
# Corresponds to the JSON property `ipAddress`
# @return [String]
attr_accessor :ip_address
@@ -39227,9 +39612,9 @@ module Google
# @return [String]
attr_accessor :label_fingerprint
# Labels to apply to this VpnTunnel. These can be later modified by the
# setLabels method. Each label key/value pair must comply with RFC1035. Label
# values may be empty.
# Labels for this resource. These can only be added or modified by the setLabels
# method. Each label key/value pair must comply with RFC1035. Label values may
# be empty.
# Corresponds to the JSON property `labels`
# @return [Hash<String,String>]
attr_accessor :labels
@@ -2268,6 +2268,12 @@ module Google
class MachineType
class Representation < Google::Apis::Core::JsonRepresentation; end
class Accelerator
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
@@ -3922,6 +3928,18 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class RouterNatRule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RouterNatRuleAction
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class RouterNatSubnetworkToNat
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -4138,6 +4156,36 @@ module Google
include Google::Apis::Core::JsonObjectSupport
end
class ServiceAttachment
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ServiceAttachmentConsumerForwardingRule
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
class ServiceAttachmentList
class Representation < Google::Apis::Core::JsonRepresentation; end
class Warning
class Representation < Google::Apis::Core::JsonRepresentation; end
class Datum
class Representation < Google::Apis::Core::JsonRepresentation; end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
include Google::Apis::Core::JsonObjectSupport
end
class ShieldedInstanceConfig
class Representation < Google::Apis::Core::JsonRepresentation; end
@@ -5643,6 +5691,7 @@ module Google
collection :local_ssds, as: 'localSsds', class: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk, decorator: Google::Apis::ComputeAlpha::AllocationSpecificSkuAllocationAllocatedInstancePropertiesReservedDisk::Representation
property :location_hint, as: 'locationHint'
property :long_term_release, as: 'longTermRelease'
property :machine_type, as: 'machineType'
property :min_cpu_platform, as: 'minCpuPlatform'
@@ -9699,6 +9748,8 @@ module Google
class MachineType
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :accelerators, as: 'accelerators', class: Google::Apis::ComputeAlpha::MachineType::Accelerator, decorator: Google::Apis::ComputeAlpha::MachineType::Accelerator::Representation
property :creation_timestamp, as: 'creationTimestamp'
property :deprecated, as: 'deprecated', class: Google::Apis::ComputeAlpha::DeprecationStatus, decorator: Google::Apis::ComputeAlpha::DeprecationStatus::Representation
@@ -9715,6 +9766,14 @@ module Google
property :self_link_with_id, as: 'selfLinkWithId'
property :zone, as: 'zone'
end
class Accelerator
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :guest_accelerator_count, as: 'guestAcceleratorCount'
property :guest_accelerator_type, as: 'guestAcceleratorType'
end
end
end
class MachineTypeAggregatedList
@@ -10329,6 +10388,7 @@ module Google
property :fingerprint, :base64 => true, as: 'fingerprint'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :location_hint, as: 'locationHint'
property :maintenance_policy, as: 'maintenancePolicy'
property :maintenance_window, as: 'maintenanceWindow', class: Google::Apis::ComputeAlpha::NodeGroupMaintenanceWindow, decorator: Google::Apis::ComputeAlpha::NodeGroupMaintenanceWindow::Representation
@@ -12653,6 +12713,7 @@ module Google
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :drain_nat_ips, as: 'drainNatIps'
property :enable_endpoint_independent_mapping, as: 'enableEndpointIndependentMapping'
property :icmp_idle_timeout_sec, as: 'icmpIdleTimeoutSec'
property :log_config, as: 'logConfig', class: Google::Apis::ComputeAlpha::RouterNatLogConfig, decorator: Google::Apis::ComputeAlpha::RouterNatLogConfig::Representation
@@ -12660,10 +12721,13 @@ module Google
property :name, as: 'name'
property :nat_ip_allocate_option, as: 'natIpAllocateOption'
collection :nat_ips, as: 'natIps'
collection :rules, as: 'rules', class: Google::Apis::ComputeAlpha::RouterNatRule, decorator: Google::Apis::ComputeAlpha::RouterNatRule::Representation
property :source_subnetwork_ip_ranges_to_nat, as: 'sourceSubnetworkIpRangesToNat'
collection :subnetworks, as: 'subnetworks', class: Google::Apis::ComputeAlpha::RouterNatSubnetworkToNat, decorator: Google::Apis::ComputeAlpha::RouterNatSubnetworkToNat::Representation
property :tcp_established_idle_timeout_sec, as: 'tcpEstablishedIdleTimeoutSec'
property :tcp_time_wait_timeout_sec, as: 'tcpTimeWaitTimeoutSec'
property :tcp_transitory_idle_timeout_sec, as: 'tcpTransitoryIdleTimeoutSec'
property :udp_idle_timeout_sec, as: 'udpIdleTimeoutSec'
end
@@ -12677,6 +12741,25 @@ module Google
end
end
class RouterNatRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :action, as: 'action', class: Google::Apis::ComputeAlpha::RouterNatRuleAction, decorator: Google::Apis::ComputeAlpha::RouterNatRuleAction::Representation
property :description, as: 'description'
property :match, as: 'match'
property :priority, as: 'priority'
end
end
class RouterNatRuleAction
# @private
class Representation < Google::Apis::Core::JsonRepresentation
collection :source_nat_active_ips, as: 'sourceNatActiveIps'
collection :source_nat_drain_ips, as: 'sourceNatDrainIps'
end
end
class RouterNatSubnetworkToNat
# @private
class Representation < Google::Apis::Core::JsonRepresentation
@@ -13087,6 +13170,64 @@ module Google
end
end
class ServiceAttachment
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :connection_preference, as: 'connectionPreference'
collection :consumer_forwarding_rules, as: 'consumerForwardingRules', class: Google::Apis::ComputeAlpha::ServiceAttachmentConsumerForwardingRule, decorator: Google::Apis::ComputeAlpha::ServiceAttachmentConsumerForwardingRule::Representation
property :creation_timestamp, as: 'creationTimestamp'
property :description, as: 'description'
property :id, :numeric_string => true, as: 'id'
property :kind, as: 'kind'
property :name, as: 'name'
collection :nat_ip_cidr_ranges, as: 'natIpCidrRanges'
property :producer_forwarding_rule, as: 'producerForwardingRule'
property :region, as: 'region'
property :self_link, as: 'selfLink'
end
end
class ServiceAttachmentConsumerForwardingRule
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :forwarding_rule, as: 'forwardingRule'
property :status, as: 'status'
end
end
class ServiceAttachmentList
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :id, as: 'id'
collection :items, as: 'items', class: Google::Apis::ComputeAlpha::ServiceAttachment, decorator: Google::Apis::ComputeAlpha::ServiceAttachment::Representation
property :kind, as: 'kind'
property :next_page_token, as: 'nextPageToken'
property :self_link, as: 'selfLink'
property :warning, as: 'warning', class: Google::Apis::ComputeAlpha::ServiceAttachmentList::Warning, decorator: Google::Apis::ComputeAlpha::ServiceAttachmentList::Warning::Representation
end
class Warning
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :code, as: 'code'
collection :data, as: 'data', class: Google::Apis::ComputeAlpha::ServiceAttachmentList::Warning::Datum, decorator: Google::Apis::ComputeAlpha::ServiceAttachmentList::Warning::Datum::Representation
property :message, as: 'message'
end
class Datum
# @private
class Representation < Google::Apis::Core::JsonRepresentation
property :key, as: 'key'
property :value, as: 'value'
end
end
end
end
class ShieldedInstanceConfig
# @private
class Representation < Google::Apis::Core::JsonRepresentation
+351 -1
View File
@@ -1921,6 +1921,8 @@ module Google
end
# Gets the most recent health check results for this BackendService.
# Example request body:
# ` "group": "/zones/us-east1-b/instanceGroups/lb-backend-example" `
# @param [String] project
# @param [String] backend_service
# Name of the BackendService resource to which the queried instance belongs.
@@ -16897,7 +16899,7 @@ module Google
execute_or_queue_command(command, &block)
end
# Patch the node group.
# Updates the specified node group.
# @param [String] project
# Project ID for this request.
# @param [String] zone
@@ -29354,6 +29356,354 @@ module Google
execute_or_queue_command(command, &block)
end
# Deletes the specified ServiceAttachment in the given scope
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region of this request.
# @param [String] service_attachment
# Name of the ServiceAttachment resource to delete.
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::Operation]
#
# @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_service_attachment(project, region, service_attachment, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:delete, '{project}/regions/{region}/serviceAttachments/{serviceAttachment}', options)
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
command.response_class = Google::Apis::ComputeAlpha::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['serviceAttachment'] = service_attachment unless service_attachment.nil?
command.query['requestId'] = request_id unless request_id.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 the specified ServiceAttachment resource in the given scope.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region of this request.
# @param [String] service_attachment
# Name of the ServiceAttachment resource to return.
# @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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeAlpha::ServiceAttachment] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::ServiceAttachment]
#
# @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_service_attachment(project, region, service_attachment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/regions/{region}/serviceAttachments/{serviceAttachment}', options)
command.response_representation = Google::Apis::ComputeAlpha::ServiceAttachment::Representation
command.response_class = Google::Apis::ComputeAlpha::ServiceAttachment
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.params['serviceAttachment'] = service_attachment unless service_attachment.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
# 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 or id of the resource for this request.
# @param [Fixnum] options_requested_policy_version
# Requested IAM Policy version.
# @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.
# @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_service_attachment_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:get, '{project}/regions/{region}/serviceAttachments/{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['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
# Creates a ServiceAttachment in the specified project in the given scope using
# the parameters that are included in the request.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region of this request.
# @param [Google::Apis::ComputeAlpha::ServiceAttachment] service_attachment_object
# @param [String] request_id
# An optional request ID to identify requests. Specify a unique request ID so
# that if you must retry your request, the server will know to ignore the
# request if it has already been completed.
# For example, consider a situation where you make an initial request and the
# request times out. If you make the request again with the same request ID, the
# server can check if original operation with the same request ID was received,
# and if so, will ignore the second request. This prevents clients from
# accidentally creating duplicate commitments.
# The request ID must be a valid UUID with the exception that zero UUID is not
# supported (00000000-0000-0000-0000-000000000000).
# @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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::Operation]
#
# @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_service_attachment(project, region, service_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
command = make_simple_command(:post, '{project}/regions/{region}/serviceAttachments', options)
command.request_representation = Google::Apis::ComputeAlpha::ServiceAttachment::Representation
command.request_object = service_attachment_object
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
command.response_class = Google::Apis::ComputeAlpha::Operation
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.query['requestId'] = request_id unless request_id.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
# Lists the ServiceAttachments for a project in the given scope.
# @param [String] project
# Project ID for this request.
# @param [String] region
# Name of the region of this request.
# @param [String] filter
# 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
# 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) ```
# @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 `
# nextPageToken` that can be used to get the next page of results in subsequent
# 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.
# 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
# by a previous list request to get the next page of results.
# @param [Boolean] return_partial_success
# Opt-in for partial success behavior which provides partial results in case of
# failure. The default value is false and the logic is the same as today.
# @param [String] fields
# 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.
# @param [Google::Apis::RequestOptions] options
# Request-specific options
#
# @yield [result, err] Result & error if block supplied
# @yieldparam result [Google::Apis::ComputeAlpha::ServiceAttachmentList] parsed result object
# @yieldparam err [StandardError] error object if request failed
#
# @return [Google::Apis::ComputeAlpha::ServiceAttachmentList]
#
# @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_service_attachments(project, region, 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}/regions/{region}/serviceAttachments', options)
command.response_representation = Google::Apis::ComputeAlpha::ServiceAttachmentList::Representation
command.response_class = Google::Apis::ComputeAlpha::ServiceAttachmentList
command.params['project'] = project unless project.nil?
command.params['region'] = region unless region.nil?
command.query['filter'] = filter unless filter.nil?
command.query['maxResults'] = max_results unless max_results.nil?
command.query['orderBy'] = order_by unless order_by.nil?
command.query['pageToken'] = page_token unless page_token.nil?
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
command.query['fields'] = fields unless fields.nil?
command.query['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 or id of the resource for this request.
# @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
# @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.
# @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_service_attachment_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}/serviceAttachments/{resource}/setIamPolicy', options)
command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
command.request_object = region_set_policy_request_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 or id 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
# An opaque string that represents a user for quota purposes. Must not exceed 40
# characters.
# @param [String] user_ip
# Deprecated. Please use quotaUser instead.
# @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_service_attachment_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}/serviceAttachments/{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
# Deletes the specified Snapshot resource. Keep in mind that deleting a single
# snapshot might not necessarily delete all the data on that snapshot. If any
# data on the snapshot that is marked for deletion is needed for subsequent