Autogenerated update (2018-11-07)
Update: - alertcenter_v1beta1 - androidenterprise_v1 - cloudasset_v1beta1 - compute_alpha - compute_beta - compute_v1 - sqladmin_v1beta4 - vault_v1
This commit is contained in:
1 parent
eefc74fbdc
commit
db507dcb9b
28 files changed
+3300
-823
No files matched your search
@@ -2020,15 +2020,21 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :description
|
||||
|
||||
# The fully-qualified URL of a Instance Group resource. This instance group
|
||||
# defines the list of instances that serve traffic. Member virtual machine
|
||||
# instances from each instance group must live in the same zone as the instance
|
||||
# group itself. No two backends in a backend service are allowed to use same
|
||||
# Instance Group resource.
|
||||
# Note that you must specify an Instance Group resource using the fully-
|
||||
# qualified URL, rather than a partial URL.
|
||||
# The fully-qualified URL of an Instance Group or Network Endpoint Group
|
||||
# resource. In case of instance group this defines the list of instances that
|
||||
# serve traffic. Member virtual machine instances from each instance group must
|
||||
# live in the same zone as the instance group itself. No two backends in a
|
||||
# backend service are allowed to use same Instance Group resource.
|
||||
# For Network Endpoint Groups this defines list of endpoints. All endpoints of
|
||||
# Network Endpoint Group must be hosted on instances located in the same zone as
|
||||
# the Network Endpoint Group.
|
||||
# Backend service can not contain mix of Instance Group and Network Endpoint
|
||||
# Group backends.
|
||||
# Note that you must specify an Instance Group or Network Endpoint Group
|
||||
# resource using the fully-qualified URL, rather than a partial URL.
|
||||
# When the BackendService has load balancing scheme INTERNAL, the instance group
|
||||
# must be within the same region as the BackendService.
|
||||
# must be within the same region as the BackendService. Network Endpoint Groups
|
||||
# are not supported for INTERNAL load balancing scheme.
|
||||
# Corresponds to the JSON property `group`
|
||||
# @return [String]
|
||||
attr_accessor :group
|
||||
@@ -2691,7 +2697,8 @@ module Google
|
||||
class BackendServiceGroupHealth
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
#
|
||||
# Health state of the backend instances or endpoints in requested instance or
|
||||
# network endpoint group, determined based on configured health checks.
|
||||
# Corresponds to the JSON property `healthStatus`
|
||||
# @return [Array<Google::Apis::ComputeBeta::HealthStatus>]
|
||||
attr_accessor :health_status
|
||||
@@ -5415,6 +5422,17 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :ip_protocol
|
||||
|
||||
# This field is used along with the backend_service field for internal load
|
||||
# balancing or with the target field for internal TargetInstance. This field
|
||||
# cannot be used with port or portRange fields.
|
||||
# When the load balancing scheme is INTERNAL and protocol is TCP/UDP, specify
|
||||
# this field to allow packets addressed to any ports will be forwarded to the
|
||||
# backends configured with this forwarding rule.
|
||||
# Corresponds to the JSON property `allPorts`
|
||||
# @return [Boolean]
|
||||
attr_accessor :all_ports
|
||||
alias_method :all_ports?, :all_ports
|
||||
|
||||
# This field is only used for INTERNAL load balancing.
|
||||
# For internal load balancing, this field identifies the BackendService resource
|
||||
# to receive the matched traffic.
|
||||
@@ -5597,6 +5615,7 @@ module Google
|
||||
def update!(**args)
|
||||
@ip_address = args[:ip_address] if args.key?(:ip_address)
|
||||
@ip_protocol = args[:ip_protocol] if args.key?(:ip_protocol)
|
||||
@all_ports = args[:all_ports] if args.key?(:all_ports)
|
||||
@backend_service = args[:backend_service] if args.key?(:backend_service)
|
||||
@creation_timestamp = args[:creation_timestamp] if args.key?(:creation_timestamp)
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@@ -7656,6 +7675,11 @@ module Google
|
||||
# @return [Array<Google::Apis::ComputeBeta::AcceleratorConfig>]
|
||||
attr_accessor :guest_accelerators
|
||||
|
||||
#
|
||||
# Corresponds to the JSON property `hostname`
|
||||
# @return [String]
|
||||
attr_accessor :hostname
|
||||
|
||||
# [Output Only] The unique identifier for the resource. This identifier is
|
||||
# defined by the server.
|
||||
# Corresponds to the JSON property `id`
|
||||
@@ -7805,6 +7829,7 @@ module Google
|
||||
@description = args[:description] if args.key?(:description)
|
||||
@disks = args[:disks] if args.key?(:disks)
|
||||
@guest_accelerators = args[:guest_accelerators] if args.key?(:guest_accelerators)
|
||||
@hostname = args[:hostname] if args.key?(:hostname)
|
||||
@id = args[:id] if args.key?(:id)
|
||||
@kind = args[:kind] if args.key?(:kind)
|
||||
@label_fingerprint = args[:label_fingerprint] if args.key?(:label_fingerprint)
|
||||
@@ -9085,7 +9110,7 @@ module Google
|
||||
# instances initiated by this resize request only once. If there is an error
|
||||
# during creation, the managed instance group does not retry create this
|
||||
# instance, and we will decrease the targetSize of the request instead. If the
|
||||
# flag is false, the group attemps to recreate each instance continuously until
|
||||
# flag is false, the group attempts to recreate each instance continuously until
|
||||
# it succeeds.
|
||||
# This flag matters only in the first attempt of creation of an instance. After
|
||||
# an instance is successfully created while this flag is enabled, the instance
|
||||
@@ -10212,6 +10237,36 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class InstancesResumeRequest
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Array of disks associated with this instance that are protected with a
|
||||
# customer-supplied encryption key.
|
||||
# In order to resume the instance, the disk url and its corresponding key must
|
||||
# be provided.
|
||||
# If the disk is not protected with a customer-supplied encryption key it should
|
||||
# not be specified.
|
||||
# Corresponds to the JSON property `disks`
|
||||
# @return [Array<Google::Apis::ComputeBeta::CustomerEncryptionKeyProtectedDisk>]
|
||||
attr_accessor :disks
|
||||
|
||||
# Represents a customer-supplied encryption key
|
||||
# Corresponds to the JSON property `instanceEncryptionKey`
|
||||
# @return [Google::Apis::ComputeBeta::CustomerEncryptionKey]
|
||||
attr_accessor :instance_encryption_key
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@disks = args[:disks] if args.key?(:disks)
|
||||
@instance_encryption_key = args[:instance_encryption_key] if args.key?(:instance_encryption_key)
|
||||
end
|
||||
end
|
||||
|
||||
#
|
||||
class InstancesScopedList
|
||||
include Google::Apis::Core::Hashable
|
||||
@@ -12342,6 +12397,10 @@ module Google
|
||||
|
||||
# Whether Gin logging should happen in a fail-closed manner at the caller. This
|
||||
# is relevant only in the LocalIAM implementation, for now.
|
||||
# NOTE: Logging to Gin in a fail-closed manner is currently unsupported while
|
||||
# work is being done to satisfy the requirements of go/345. Currently, setting
|
||||
# LOG_FAIL_CLOSED mode will have no effect, but still exists because there is
|
||||
# active work being done to support it (b/115874152).
|
||||
# Corresponds to the JSON property `logMode`
|
||||
# @return [String]
|
||||
attr_accessor :log_mode
|
||||
@@ -14857,8 +14916,8 @@ module Google
|
||||
# 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 charaicter, which cannot be
|
||||
# a dash.
|
||||
# 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
|
||||
@@ -16330,13 +16389,21 @@ module Google
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# The full or partial URL to the BackendService resource. This will be used if
|
||||
# none of the pathRules defined by this PathMatcher is matched by the URL's path
|
||||
# portion. For example, the following are all valid URLs to a BackendService
|
||||
# resource:
|
||||
# none of the pathRules or routeRules defined by this PathMatcher are matched.
|
||||
# For example, the following are all valid URLs to a BackendService resource:
|
||||
# - https://www.googleapis.com/compute/v1/projects/project/global/
|
||||
# backendServices/backendService
|
||||
# - compute/v1/projects/project/global/backendServices/backendService
|
||||
# - global/backendServices/backendService
|
||||
# Use defaultService instead of defaultRouteAction when simple routing to a
|
||||
# backend service is desired and other advanced capabilities like traffic
|
||||
# splitting and URL rewrites are not required.
|
||||
# Only one of defaultService, defaultRouteAction or defaultUrlRedirect must be
|
||||
# set.
|
||||
# Authorization requires one or more of the following Google IAM permissions on
|
||||
# the specified resource default_service:
|
||||
# - compute.backendBuckets.use
|
||||
# - compute.backendServices.use
|
||||
# Corresponds to the JSON property `defaultService`
|
||||
# @return [String]
|
||||
attr_accessor :default_service
|
||||
@@ -16352,7 +16419,13 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :name
|
||||
|
||||
# The list of path rules.
|
||||
# The list of path rules. Use this list instead of routeRules when routing based
|
||||
# on simple path matching is all that's required. The order by which path rules
|
||||
# are specified does not matter. Matches are always done on the longest-path-
|
||||
# first basis.
|
||||
# For example: a pathRule with a path /a/b/c/* will match before /a/b/*
|
||||
# irrespective of the order in which those paths appear in this list.
|
||||
# Only one of pathRules or routeRules must be set.
|
||||
# Corresponds to the JSON property `pathRules`
|
||||
# @return [Array<Google::Apis::ComputeBeta::PathRule>]
|
||||
attr_accessor :path_rules
|
||||
@@ -16383,7 +16456,11 @@ module Google
|
||||
# @return [Array<String>]
|
||||
attr_accessor :paths
|
||||
|
||||
# The URL of the BackendService resource if this rule is matched.
|
||||
# The URL of the backend service resource if this rule is matched.
|
||||
# Use service instead of routeAction when simple routing to a backend service is
|
||||
# desired and other advanced capabilities like traffic splitting and rewrites
|
||||
# are not required.
|
||||
# Only one of service, routeAction or urlRedirect should must be set.
|
||||
# Corresponds to the JSON property `service`
|
||||
# @return [String]
|
||||
attr_accessor :service
|
||||
@@ -17953,7 +18030,8 @@ module Google
|
||||
class ResourceGroupReference
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# A URI referencing one of the instance groups listed in the backend service.
|
||||
# A URI referencing one of the instance groups or network endpoint groups listed
|
||||
# in the backend service.
|
||||
# Corresponds to the JSON property `group`
|
||||
# @return [String]
|
||||
attr_accessor :group
|
||||
@@ -18065,7 +18143,7 @@ module Google
|
||||
|
||||
# A backup schedule policy specifies when and how frequently snapshots are to be
|
||||
# created for the target disk. Also specifies how many and how long these
|
||||
# automatically created snapshot should be retained.
|
||||
# scheduled snapshots should be retained.
|
||||
# Corresponds to the JSON property `backupSchedulePolicy`
|
||||
# @return [Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicy]
|
||||
attr_accessor :backup_schedule_policy
|
||||
@@ -18255,11 +18333,11 @@ module Google
|
||||
|
||||
# A backup schedule policy specifies when and how frequently snapshots are to be
|
||||
# created for the target disk. Also specifies how many and how long these
|
||||
# automatically created snapshot should be retained.
|
||||
# scheduled snapshots should be retained.
|
||||
class ResourcePolicyBackupSchedulePolicy
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# Policy for retention of automatically created snapshots.
|
||||
# Policy for retention of scheduled snapshots.
|
||||
# Corresponds to the JSON property `retentionPolicy`
|
||||
# @return [Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicyRetentionPolicy]
|
||||
attr_accessor :retention_policy
|
||||
@@ -18269,7 +18347,7 @@ module Google
|
||||
# @return [Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicySchedule]
|
||||
attr_accessor :schedule
|
||||
|
||||
# Specified snapshot properties for automatic snapshots created by this policy.
|
||||
# Specified snapshot properties for scheduled snapshots created by this policy.
|
||||
# Corresponds to the JSON property `snapshotProperties`
|
||||
# @return [Google::Apis::ComputeBeta::ResourcePolicyBackupSchedulePolicySnapshotProperties]
|
||||
attr_accessor :snapshot_properties
|
||||
@@ -18286,7 +18364,7 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Policy for retention of automatically created snapshots.
|
||||
# Policy for retention of scheduled snapshots.
|
||||
class ResourcePolicyBackupSchedulePolicyRetentionPolicy
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -18295,6 +18373,12 @@ module Google
|
||||
# @return [Fixnum]
|
||||
attr_accessor :max_retention_days
|
||||
|
||||
# Specifies the behavior to apply to scheduled snapshots when the source disk is
|
||||
# deleted.
|
||||
# Corresponds to the JSON property `onSourceDiskDelete`
|
||||
# @return [String]
|
||||
attr_accessor :on_source_disk_delete
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
@@ -18302,6 +18386,7 @@ module Google
|
||||
# Update properties of this object
|
||||
def update!(**args)
|
||||
@max_retention_days = args[:max_retention_days] if args.key?(:max_retention_days)
|
||||
@on_source_disk_delete = args[:on_source_disk_delete] if args.key?(:on_source_disk_delete)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -18336,7 +18421,7 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
# Specified snapshot properties for automatic snapshots created by this policy.
|
||||
# Specified snapshot properties for scheduled snapshots created by this policy.
|
||||
class ResourcePolicyBackupSchedulePolicySnapshotProperties
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
@@ -18346,17 +18431,12 @@ module Google
|
||||
attr_accessor :guest_flush
|
||||
alias_method :guest_flush?, :guest_flush
|
||||
|
||||
# Labels to apply to automatic snapshots. These can be later modified by the
|
||||
# Labels to apply to scheduled snapshots. These can be later modified by the
|
||||
# setLabels method. Label values may be empty.
|
||||
# Corresponds to the JSON property `labels`
|
||||
# @return [Hash<String,String>]
|
||||
attr_accessor :labels
|
||||
|
||||
# GCS bucket storage location of the auto snapshot (regional or multi-regional).
|
||||
# Corresponds to the JSON property `storageLocations`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :storage_locations
|
||||
|
||||
def initialize(**args)
|
||||
update!(**args)
|
||||
end
|
||||
@@ -18365,7 +18445,6 @@ module Google
|
||||
def update!(**args)
|
||||
@guest_flush = args[:guest_flush] if args.key?(:guest_flush)
|
||||
@labels = args[:labels] if args.key?(:labels)
|
||||
@storage_locations = args[:storage_locations] if args.key?(:storage_locations)
|
||||
end
|
||||
end
|
||||
|
||||
@@ -18385,7 +18464,7 @@ module Google
|
||||
attr_accessor :duration
|
||||
|
||||
# Time within the window to start the operations. It must be in format "HH:MM?,
|
||||
# where HH : [00-23] and MM : [00-59] GMT.
|
||||
# where HH : [00-23] and MM : [00-00] GMT.
|
||||
# Corresponds to the JSON property `startTime`
|
||||
# @return [String]
|
||||
attr_accessor :start_time
|
||||
@@ -18418,7 +18497,7 @@ module Google
|
||||
attr_accessor :hours_in_cycle
|
||||
|
||||
# Time within the window to start the operations. It must be in format "HH:MM?,
|
||||
# where HH : [00-23] and MM : [00-59] GMT.
|
||||
# where HH : [00-23] and MM : [00-00] GMT.
|
||||
# Corresponds to the JSON property `startTime`
|
||||
# @return [String]
|
||||
attr_accessor :start_time
|
||||
@@ -18595,7 +18674,7 @@ module Google
|
||||
attr_accessor :duration
|
||||
|
||||
# Time within the window to start the operations. It must be in format "HH:MM?,
|
||||
# where HH : [00-23] and MM : [00-59] GMT.
|
||||
# where HH : [00-23] and MM : [00-00] GMT.
|
||||
# Corresponds to the JSON property `startTime`
|
||||
# @return [String]
|
||||
attr_accessor :start_time
|
||||
@@ -18679,6 +18758,17 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :next_hop_gateway
|
||||
|
||||
# The URL to a forwarding rule of type loadBalancingScheme=INTERNAL that should
|
||||
# handle matching packets. You can only specify the forwarding rule as a partial
|
||||
# or full URL. For example, the following are all valid URLs:
|
||||
# - https://www.googleapis.com/compute/v1/projects/project/regions/region/
|
||||
# forwardingRules/forwardingRule
|
||||
# - regions/region/forwardingRules/forwardingRule Note that this can only be
|
||||
# used when the destination_range is a public (non-RFC 1918) IP CIDR range.
|
||||
# Corresponds to the JSON property `nextHopIlb`
|
||||
# @return [String]
|
||||
attr_accessor :next_hop_ilb
|
||||
|
||||
# The URL to an instance that should handle matching packets. You can specify
|
||||
# this as a full or partial URL. For example:
|
||||
# https://www.googleapis.com/compute/v1/projects/project/zones/zone/instances/
|
||||
@@ -18746,6 +18836,7 @@ module Google
|
||||
@name = args[:name] if args.key?(:name)
|
||||
@network = args[:network] if args.key?(:network)
|
||||
@next_hop_gateway = args[:next_hop_gateway] if args.key?(:next_hop_gateway)
|
||||
@next_hop_ilb = args[:next_hop_ilb] if args.key?(:next_hop_ilb)
|
||||
@next_hop_instance = args[:next_hop_instance] if args.key?(:next_hop_instance)
|
||||
@next_hop_ip = args[:next_hop_ip] if args.key?(:next_hop_ip)
|
||||
@next_hop_network = args[:next_hop_network] if args.key?(:next_hop_network)
|
||||
@@ -20476,11 +20567,6 @@ module Google
|
||||
# @return [Google::Apis::ComputeBeta::Expr]
|
||||
attr_accessor :expr
|
||||
|
||||
# CIDR IP address range.
|
||||
# Corresponds to the JSON property `srcIpRanges`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :src_ip_ranges
|
||||
|
||||
# Preconfigured versioned expression. If this field is specified, config must
|
||||
# also be specified. Available preconfigured expressions along with their
|
||||
# requirements are: SRC_IPS_V1 - must specify the corresponding src_ip_range
|
||||
@@ -20497,7 +20583,6 @@ module Google
|
||||
def update!(**args)
|
||||
@config = args[:config] if args.key?(:config)
|
||||
@expr = args[:expr] if args.key?(:expr)
|
||||
@src_ip_ranges = args[:src_ip_ranges] if args.key?(:src_ip_ranges)
|
||||
@versioned_expr = args[:versioned_expr] if args.key?(:versioned_expr)
|
||||
end
|
||||
end
|
||||
@@ -20743,7 +20828,7 @@ module Google
|
||||
class Snapshot
|
||||
include Google::Apis::Core::Hashable
|
||||
|
||||
# [Output Only] Set to true if snapshots are autoamtically by applying resource
|
||||
# [Output Only] Set to true if snapshots are automatically by applying resource
|
||||
# policy on the target disk.
|
||||
# Corresponds to the JSON property `autoCreated`
|
||||
# @return [Boolean]
|
||||
@@ -22579,8 +22664,8 @@ module Google
|
||||
attr_accessor :self_link
|
||||
|
||||
# URLs to SslCertificate resources that are used to authenticate connections
|
||||
# between users and the load balancer. Currently, exactly one SSL certificate
|
||||
# must be specified.
|
||||
# between users and the load balancer. At least one SSL certificate must be
|
||||
# specified. Currently, you may specify up to 15 SSL certificates.
|
||||
# Corresponds to the JSON property `sslCertificates`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :ssl_certificates
|
||||
@@ -23244,7 +23329,7 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :self_link
|
||||
|
||||
# Sesssion affinity option, must be one of the following values:
|
||||
# Session affinity option, must be one of the following values:
|
||||
# NONE: Connections from the same client IP may go to any instance in the pool.
|
||||
# CLIENT_IP: Connections from the same client IP will go to the same instance in
|
||||
# the pool while that instance remains healthy.
|
||||
@@ -23847,7 +23932,8 @@ module Google
|
||||
attr_accessor :service
|
||||
|
||||
# URLs to SslCertificate resources that are used to authenticate connections to
|
||||
# Backends. Currently exactly one SSL certificate must be specified.
|
||||
# Backends. At least one SSL certificate must be specified. Currently, you may
|
||||
# specify up to 15 SSL certificates.
|
||||
# Corresponds to the JSON property `sslCertificates`
|
||||
# @return [Array<String>]
|
||||
attr_accessor :ssl_certificates
|
||||
@@ -24751,7 +24837,12 @@ module Google
|
||||
# @return [String]
|
||||
attr_accessor :creation_timestamp
|
||||
|
||||
# The URL of the BackendService resource if none of the hostRules match.
|
||||
# The URL of the backendService resource if none of the hostRules match.
|
||||
# Use defaultService instead of defaultRouteAction when simple routing to a
|
||||
# backendService is desired and other advanced capabilities like traffic
|
||||
# splitting and rewrites are not required.
|
||||
# Only one of defaultService, defaultRouteAction or defaultUrlRedirect should
|
||||
# must be set.
|
||||
# Corresponds to the JSON property `defaultService`
|
||||
# @return [String]
|
||||
attr_accessor :default_service
|
||||
|
||||
@@ -1318,6 +1318,12 @@ module Google
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class InstancesResumeRequest
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
include Google::Apis::Core::JsonObjectSupport
|
||||
end
|
||||
|
||||
class InstancesScopedList
|
||||
class Representation < Google::Apis::Core::JsonRepresentation; end
|
||||
|
||||
@@ -5000,6 +5006,7 @@ module Google
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :ip_address, as: 'IPAddress'
|
||||
property :ip_protocol, as: 'IPProtocol'
|
||||
property :all_ports, as: 'allPorts'
|
||||
property :backend_service, as: 'backendService'
|
||||
property :creation_timestamp, as: 'creationTimestamp'
|
||||
property :description, as: 'description'
|
||||
@@ -5511,6 +5518,7 @@ module Google
|
||||
|
||||
collection :guest_accelerators, as: 'guestAccelerators', class: Google::Apis::ComputeBeta::AcceleratorConfig, decorator: Google::Apis::ComputeBeta::AcceleratorConfig::Representation
|
||||
|
||||
property :hostname, as: 'hostname'
|
||||
property :id, :numeric_string => true, as: 'id'
|
||||
property :kind, as: 'kind'
|
||||
property :label_fingerprint, :base64 => true, as: 'labelFingerprint'
|
||||
@@ -6167,6 +6175,16 @@ module Google
|
||||
end
|
||||
end
|
||||
|
||||
class InstancesResumeRequest
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
collection :disks, as: 'disks', class: Google::Apis::ComputeBeta::CustomerEncryptionKeyProtectedDisk, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKeyProtectedDisk::Representation
|
||||
|
||||
property :instance_encryption_key, as: 'instanceEncryptionKey', class: Google::Apis::ComputeBeta::CustomerEncryptionKey, decorator: Google::Apis::ComputeBeta::CustomerEncryptionKey::Representation
|
||||
|
||||
end
|
||||
end
|
||||
|
||||
class InstancesScopedList
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
@@ -8300,6 +8318,7 @@ module Google
|
||||
# @private
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :max_retention_days, as: 'maxRetentionDays'
|
||||
property :on_source_disk_delete, as: 'onSourceDiskDelete'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -8320,7 +8339,6 @@ module Google
|
||||
class Representation < Google::Apis::Core::JsonRepresentation
|
||||
property :guest_flush, as: 'guestFlush'
|
||||
hash :labels, as: 'labels'
|
||||
collection :storage_locations, as: 'storageLocations'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -8403,6 +8421,7 @@ module Google
|
||||
property :name, as: 'name'
|
||||
property :network, as: 'network'
|
||||
property :next_hop_gateway, as: 'nextHopGateway'
|
||||
property :next_hop_ilb, as: 'nextHopIlb'
|
||||
property :next_hop_instance, as: 'nextHopInstance'
|
||||
property :next_hop_ip, as: 'nextHopIp'
|
||||
property :next_hop_network, as: 'nextHopNetwork'
|
||||
@@ -8852,7 +8871,6 @@ module Google
|
||||
|
||||
property :expr, as: 'expr', class: Google::Apis::ComputeBeta::Expr, decorator: Google::Apis::ComputeBeta::Expr::Representation
|
||||
|
||||
collection :src_ip_ranges, as: 'srcIpRanges'
|
||||
property :versioned_expr, as: 'versionedExpr'
|
||||
end
|
||||
end
|
||||
|
||||
@@ -583,7 +583,7 @@ module Google
|
||||
# @param [String] region
|
||||
# The name of the region for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -969,7 +969,7 @@ module Google
|
||||
# @param [String] zone
|
||||
# The name of the zone for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -2009,7 +2009,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -2565,7 +2565,7 @@ module Google
|
||||
# @param [String] zone
|
||||
# The name of the zone for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -2845,7 +2845,7 @@ module Google
|
||||
# @param [String] zone
|
||||
# The name of the zone for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::ZoneSetPolicyRequest] zone_set_policy_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -2942,7 +2942,7 @@ module Google
|
||||
# @param [String] zone
|
||||
# The name of the zone for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -3239,7 +3239,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -3731,7 +3731,7 @@ module Google
|
||||
# @param [String] region
|
||||
# The name of the region for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -4016,7 +4016,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -4353,7 +4353,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -4863,7 +4863,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -5213,7 +5213,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -5563,7 +5563,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -5828,7 +5828,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -5993,7 +5993,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::GlobalSetPolicyRequest] global_set_policy_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -6072,7 +6072,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -6107,14 +6107,14 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Schedules a group action to remove the specified instances from the managed
|
||||
# instance group. Abandoning an instance does not delete the instance, but it
|
||||
# does remove the instance from any target pools that are applied by the managed
|
||||
# instance group. This method reduces the targetSize of the managed instance
|
||||
# group by the number of instances that you abandon. This operation is marked as
|
||||
# DONE when the action is scheduled even if the instances have not yet been
|
||||
# removed from the group. You must separately verify the status of the
|
||||
# abandoning action with the listmanagedinstances method.
|
||||
# Flags the specified instances to be removed from the managed instance group.
|
||||
# Abandoning an instance does not delete the instance, but it does remove the
|
||||
# instance from any target pools that are applied by the managed instance group.
|
||||
# This method reduces the targetSize of the managed instance group by the number
|
||||
# of instances that you abandon. This operation is marked as DONE when the
|
||||
# action is scheduled even if the instances have not yet been removed from the
|
||||
# group. You must separately verify the status of the abandoning action with the
|
||||
# listmanagedinstances method.
|
||||
# If the group is part of a backend service that has enabled connection draining,
|
||||
# it can take up to 60 seconds after the connection draining duration has
|
||||
# elapsed before the VM instance is removed or deleted.
|
||||
@@ -6296,9 +6296,9 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Schedules a group action to delete the specified instances in the managed
|
||||
# instance group. The instances are also removed from any target pools of which
|
||||
# they were a member. This method reduces the targetSize of the managed instance
|
||||
# Flags the specified instances in the managed instance group for immediate
|
||||
# deletion. The instances are also removed from any target pools of which they
|
||||
# were a member. This method reduces the targetSize of the managed instance
|
||||
# group by the number of instances that you delete. This operation is marked as
|
||||
# DONE when the action is scheduled even if the instances are still being
|
||||
# deleted. You must separately verify the status of the deleting action with the
|
||||
@@ -6401,11 +6401,11 @@ module Google
|
||||
end
|
||||
|
||||
# Creates a managed instance group using the information that you specify in the
|
||||
# request. After the group is created, it schedules an action to create
|
||||
# instances in the group using the specified instance template. This operation
|
||||
# is marked as DONE when the group is created even if the instances in the group
|
||||
# have not yet been created. You must separately verify the status of the
|
||||
# individual instances with the listmanagedinstances method.
|
||||
# request. After the group is created, instances in the group are created using
|
||||
# the specified instance template. This operation is marked as DONE when the
|
||||
# group is created even if the instances in the group have not yet been created.
|
||||
# You must separately verify the status of the individual instances with the
|
||||
# listmanagedinstances method.
|
||||
# A managed instance group can have up to 1000 VM instances per group. Please
|
||||
# contact Cloud Support if you need an increase in this limit.
|
||||
# @param [String] project
|
||||
@@ -6673,12 +6673,12 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Schedules a group action to recreate the specified instances in the managed
|
||||
# instance group. The instances are deleted and recreated using the current
|
||||
# instance template for the managed instance group. This operation is marked as
|
||||
# DONE when the action is scheduled even if the instances have not yet been
|
||||
# recreated. You must separately verify the status of the recreating action with
|
||||
# the listmanagedinstances method.
|
||||
# Flags the specified instances in the managed instance group to be immediately
|
||||
# recreated. The instances are deleted and recreated using the current instance
|
||||
# template for the managed instance group. This operation is marked as DONE when
|
||||
# the flag is set even if the instances have not yet been recreated. You must
|
||||
# separately verify the status of the recreating action with the
|
||||
# listmanagedinstances method.
|
||||
# If the group is part of a backend service that has enabled connection draining,
|
||||
# it can take up to 60 seconds after the connection draining duration has
|
||||
# elapsed before the VM instance is removed or deleted.
|
||||
@@ -6742,6 +6742,13 @@ module Google
|
||||
# the resize actions are scheduled even if the group has not yet added or
|
||||
# deleted any instances. You must separately verify the status of the creating
|
||||
# or deleting actions with the listmanagedinstances method.
|
||||
# When resizing down, the instance group arbitrarily chooses the order in which
|
||||
# VMs are deleted. The group takes into account some VM attributes when making
|
||||
# the selection including:
|
||||
# + The status of the VM instance. + The health of the VM instance. + The
|
||||
# instance template version the VM is based on. + For regional managed instance
|
||||
# groups, the location of the VM instance.
|
||||
# This list is subject to change.
|
||||
# If the group is part of a backend service that has enabled connection draining,
|
||||
# it can take up to 60 seconds after the connection draining duration has
|
||||
# elapsed before the VM instance is removed or deleted.
|
||||
@@ -7040,7 +7047,7 @@ module Google
|
||||
# @param [String] zone
|
||||
# The name of the zone for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -7680,7 +7687,7 @@ module Google
|
||||
# @param [String] zone
|
||||
# The name of the zone for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -7808,7 +7815,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -7968,7 +7975,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::GlobalSetPolicyRequest] global_set_policy_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -8007,7 +8014,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -8487,7 +8494,7 @@ module Google
|
||||
# @param [String] zone
|
||||
# The name of the zone for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -8743,7 +8750,7 @@ module Google
|
||||
end
|
||||
|
||||
# Retrieves the list of referrers to instances contained within the specified
|
||||
# zone.
|
||||
# zone. For more information, read Viewing Referrers to VM Instances.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] zone
|
||||
@@ -8873,6 +8880,60 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Resumes an instance that was suspended using the instances().suspend method.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] zone
|
||||
# The name of the zone for this request.
|
||||
# @param [String] instance
|
||||
# Name of the instance resource to resume.
|
||||
# @param [Google::Apis::ComputeBeta::InstancesResumeRequest] instances_resume_request_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::ComputeBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeBeta::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 resume_instance(project, zone, instance, instances_resume_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/resume', options)
|
||||
command.request_representation = Google::Apis::ComputeBeta::InstancesResumeRequest::Representation
|
||||
command.request_object = instances_resume_request_object
|
||||
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ComputeBeta::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['instance'] = instance unless instance.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
|
||||
|
||||
# Sets deletion protection on the instance.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
@@ -8991,7 +9052,7 @@ module Google
|
||||
# @param [String] zone
|
||||
# The name of the zone for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::ZoneSetPolicyRequest] zone_set_policy_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -9467,7 +9528,8 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Sets tags for the specified instance to the data included in the request.
|
||||
# Sets network tags for the specified instance to the data included in the
|
||||
# request.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] zone
|
||||
@@ -9722,13 +9784,73 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# This method suspends a running instance, saving its state to persistent
|
||||
# storage, and allows you to resume the instance at a later time. Suspended
|
||||
# instances incur reduced per-minute, virtual machine usage charges while they
|
||||
# are suspended. Any resources the virtual machine is using, such as persistent
|
||||
# disks and static IP addresses, will continue to be charged until they are
|
||||
# deleted.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] zone
|
||||
# The name of the zone for this request.
|
||||
# @param [String] instance
|
||||
# Name of the instance resource to suspend.
|
||||
# @param [Boolean] discard_local_ssd
|
||||
# If true, discard the contents of any attached localSSD partitions. Default
|
||||
# value is false (== preserve localSSD data).
|
||||
# @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::ComputeBeta::Operation] parsed result object
|
||||
# @yieldparam err [StandardError] error object if request failed
|
||||
#
|
||||
# @return [Google::Apis::ComputeBeta::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 suspend_instance(project, zone, instance, discard_local_ssd: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
||||
command = make_simple_command(:post, '{project}/zones/{zone}/instances/{instance}/suspend', options)
|
||||
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
||||
command.response_class = Google::Apis::ComputeBeta::Operation
|
||||
command.params['project'] = project unless project.nil?
|
||||
command.params['zone'] = zone unless zone.nil?
|
||||
command.params['instance'] = instance unless instance.nil?
|
||||
command.query['discardLocalSsd'] = discard_local_ssd unless discard_local_ssd.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 permissions that a caller has on the specified resource.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] zone
|
||||
# The name of the zone for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -10341,7 +10463,7 @@ module Google
|
||||
# @param [String] region
|
||||
# The name of the region for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -10824,7 +10946,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -11785,7 +11907,7 @@ module Google
|
||||
# @param [String] zone
|
||||
# The name of the zone for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -12232,7 +12354,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -12546,7 +12668,7 @@ module Google
|
||||
# @param [String] zone
|
||||
# The name of the zone for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -12793,7 +12915,7 @@ module Google
|
||||
# @param [String] zone
|
||||
# The name of the zone for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::ZoneSetPolicyRequest] zone_set_policy_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -12889,7 +13011,7 @@ module Google
|
||||
# @param [String] zone
|
||||
# The name of the zone for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -13094,7 +13216,7 @@ module Google
|
||||
# @param [String] region
|
||||
# The name of the region for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -13260,7 +13382,7 @@ module Google
|
||||
# @param [String] region
|
||||
# The name of the region for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::RegionSetPolicyRequest] region_set_policy_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -13302,7 +13424,7 @@ module Google
|
||||
# @param [String] region
|
||||
# The name of the region for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -14447,7 +14569,7 @@ module Google
|
||||
# @param [String] region
|
||||
# The name of the region for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -14862,7 +14984,7 @@ module Google
|
||||
# @param [String] region
|
||||
# The name of the region for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -15805,7 +15927,7 @@ module Google
|
||||
# @param [String] region
|
||||
# The name of the region for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -15841,7 +15963,7 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Schedules a group action to remove the specified instances from the managed
|
||||
# Flags the specified instances to be immediately removed from the managed
|
||||
# instance group. Abandoning an instance does not delete the instance, but it
|
||||
# does remove the instance from any target pools that are applied by the managed
|
||||
# instance group. This method reduces the targetSize of the managed instance
|
||||
@@ -15958,13 +16080,13 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Schedules a group action to delete the specified instances in the managed
|
||||
# instance group. The instances are also removed from any target pools of which
|
||||
# they were a member. This method reduces the targetSize of the managed instance
|
||||
# group by the number of instances that you delete. This operation is marked as
|
||||
# DONE when the action is scheduled even if the instances are still being
|
||||
# deleted. You must separately verify the status of the deleting action with the
|
||||
# listmanagedinstances method.
|
||||
# Flags the specified instances in the managed instance group to be immediately
|
||||
# deleted. The instances are also removed from any target pools of which they
|
||||
# were a member. This method reduces the targetSize of the managed instance
|
||||
# group by the number of instances that you delete. The deleteInstances
|
||||
# operation is marked DONE if the deleteInstances request is successful. The
|
||||
# underlying actions take additional time. You must separately verify the status
|
||||
# of the deleting action with the listmanagedinstances method.
|
||||
# If the group is part of a backend service that has enabled connection draining,
|
||||
# it can take up to 60 seconds after the connection draining duration has
|
||||
# elapsed before the VM instance is removed or deleted.
|
||||
@@ -16062,11 +16184,11 @@ module Google
|
||||
end
|
||||
|
||||
# Creates a managed instance group using the information that you specify in the
|
||||
# request. After the group is created, it schedules an action to create
|
||||
# instances in the group using the specified instance template. This operation
|
||||
# is marked as DONE when the group is created even if the instances in the group
|
||||
# have not yet been created. You must separately verify the status of the
|
||||
# individual instances with the listmanagedinstances method.
|
||||
# request. After the group is created, instances in the group are created using
|
||||
# the specified instance template. This operation is marked as DONE when the
|
||||
# group is created even if the instances in the group have not yet been created.
|
||||
# You must separately verify the status of the individual instances with the
|
||||
# listmanagedinstances method.
|
||||
# A regional managed instance group can contain up to 2000 instances.
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
@@ -16331,12 +16453,12 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Schedules a group action to recreate the specified instances in the managed
|
||||
# instance group. The instances are deleted and recreated using the current
|
||||
# instance template for the managed instance group. This operation is marked as
|
||||
# DONE when the action is scheduled even if the instances have not yet been
|
||||
# recreated. You must separately verify the status of the recreating action with
|
||||
# the listmanagedinstances method.
|
||||
# Flags the specified instances in the managed instance group to be immediately
|
||||
# recreated. The instances are deleted and recreated using the current instance
|
||||
# template for the managed instance group. This operation is marked as DONE when
|
||||
# the flag is set even if the instances have not yet been recreated. You must
|
||||
# separately verify the status of the recreating action with the
|
||||
# listmanagedinstances method.
|
||||
# If the group is part of a backend service that has enabled connection draining,
|
||||
# it can take up to 60 seconds after the connection draining duration has
|
||||
# elapsed before the VM instance is removed or deleted.
|
||||
@@ -16394,13 +16516,12 @@ module Google
|
||||
execute_or_queue_command(command, &block)
|
||||
end
|
||||
|
||||
# Changes the intended size for the managed instance group. If you increase the
|
||||
# size, the group schedules actions to create new instances using the current
|
||||
# instance template. If you decrease the size, the group schedules delete
|
||||
# actions on one or more instances. The resize operation is marked DONE when the
|
||||
# resize actions are scheduled even if the group has not yet added or deleted
|
||||
# any instances. You must separately verify the status of the creating or
|
||||
# deleting actions with the listmanagedinstances method.
|
||||
# Changes the intended size of the managed instance group. If you increase the
|
||||
# size, the group creates new instances using the current instance template. If
|
||||
# you decrease the size, the group deletes one or more instances.
|
||||
# The resize operation is marked DONE if the resize request is successful. The
|
||||
# underlying actions take additional time. You must separately verify the status
|
||||
# of the creating or deleting actions with the listmanagedinstances method.
|
||||
# If the group is part of a backend service that has enabled connection draining,
|
||||
# it can take up to 60 seconds after the connection draining duration has
|
||||
# elapsed before the VM instance is removed or deleted.
|
||||
@@ -16628,7 +16749,7 @@ module Google
|
||||
# @param [String] region
|
||||
# The name of the region for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -16978,7 +17099,7 @@ module Google
|
||||
# @param [String] region
|
||||
# The name of the region for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -17565,7 +17686,7 @@ module Google
|
||||
# @param [String] region
|
||||
# The name of the region for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -18111,7 +18232,7 @@ module Google
|
||||
# @param [String] region
|
||||
# The name of the region for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -18410,7 +18531,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -18984,7 +19105,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -19113,7 +19234,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -19222,7 +19343,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::GlobalSetPolicyRequest] global_set_policy_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -19301,7 +19422,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -19546,7 +19667,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -19916,7 +20037,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -20174,7 +20295,7 @@ module Google
|
||||
# @param [String] region
|
||||
# The name of the region for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
# @param [String] quota_user
|
||||
@@ -20469,7 +20590,7 @@ module Google
|
||||
# @param [String] region
|
||||
# The name of the region for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::RegionSetPolicyRequest] region_set_policy_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -20566,7 +20687,7 @@ module Google
|
||||
# @param [String] region
|
||||
# The name of the region for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -20863,7 +20984,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -21317,7 +21438,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -21647,7 +21768,7 @@ module Google
|
||||
# @param [String] zone
|
||||
# The name of the zone for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -22293,7 +22414,7 @@ module Google
|
||||
# @param [String] region
|
||||
# The name of the region for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -22747,7 +22868,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -23440,7 +23561,7 @@ module Google
|
||||
# @param [String] region
|
||||
# The name of the region for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -23790,7 +23911,7 @@ module Google
|
||||
# @param [String] project
|
||||
# Project ID for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
@@ -24266,7 +24387,7 @@ module Google
|
||||
# @param [String] region
|
||||
# The name of the region for this request.
|
||||
# @param [String] resource
|
||||
# Name of the resource for this request.
|
||||
# Name or id of the resource for this request.
|
||||
# @param [Google::Apis::ComputeBeta::TestPermissionsRequest] test_permissions_request_object
|
||||
# @param [String] fields
|
||||
# Selector specifying which fields to include in a partial response.
|
||||
|
||||
Reference in new issue
Block a user