google-apis-compute_alpha 0.117.0 → 0.118.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -5280,6 +5280,40 @@ module Google
|
|
5280
5280
|
execute_or_queue_command(command, &block)
|
5281
5281
|
end
|
5282
5282
|
|
5283
|
+
# Starts a brand new progressive rollout of hierarchical firewall policy. This
|
5284
|
+
# API will return an error when there is an ongoing progressive rollout.
|
5285
|
+
# @param [String] firewall_policy
|
5286
|
+
# Name of the target firewall policy.
|
5287
|
+
# @param [String] fields
|
5288
|
+
# Selector specifying which fields to include in a partial response.
|
5289
|
+
# @param [String] quota_user
|
5290
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5291
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5292
|
+
# @param [String] user_ip
|
5293
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
5294
|
+
# @param [Google::Apis::RequestOptions] options
|
5295
|
+
# Request-specific options
|
5296
|
+
#
|
5297
|
+
# @yield [result, err] Result & error if block supplied
|
5298
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
5299
|
+
# @yieldparam err [StandardError] error object if request failed
|
5300
|
+
#
|
5301
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
5302
|
+
#
|
5303
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5304
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5305
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5306
|
+
def force_firewall_policy_start_progressive_rollout(firewall_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5307
|
+
command = make_simple_command(:post, 'locations/global/{+firewallPolicy}/forceStartProgressiveRollout', options)
|
5308
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
5309
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
5310
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
5311
|
+
command.query['fields'] = fields unless fields.nil?
|
5312
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5313
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5314
|
+
execute_or_queue_command(command, &block)
|
5315
|
+
end
|
5316
|
+
|
5283
5317
|
# Returns the specified firewall policy.
|
5284
5318
|
# @param [String] firewall_policy
|
5285
5319
|
# Name of the firewall policy to get.
|
@@ -8962,9 +8996,9 @@ module Google
|
|
8962
8996
|
# Retrieves the specified Operations resource. Gets a list of operations by
|
8963
8997
|
# making a `list()` request.
|
8964
8998
|
# @param [String] operation
|
8965
|
-
# Name of the Operations resource to return
|
8999
|
+
# Name of the Operations resource to return. Parent is derived from this field.
|
8966
9000
|
# @param [String] parent_id
|
8967
|
-
# Parent ID for this request.
|
9001
|
+
# Parent ID for this request. Not used. Parent is derived from resource_id.
|
8968
9002
|
# @param [String] fields
|
8969
9003
|
# Selector specifying which fields to include in a partial response.
|
8970
9004
|
# @param [String] quota_user
|
@@ -9362,6 +9396,53 @@ module Google
|
|
9362
9396
|
execute_or_queue_command(command, &block)
|
9363
9397
|
end
|
9364
9398
|
|
9399
|
+
# Fails over a VM targeted by the specified HaController to the selected zone.
|
9400
|
+
# @param [String] project
|
9401
|
+
# Project ID for this request.
|
9402
|
+
# @param [String] region
|
9403
|
+
# Name of the region for this request.
|
9404
|
+
# @param [String] ha_controller
|
9405
|
+
# ID of the HaController resource to update.
|
9406
|
+
# @param [Google::Apis::ComputeAlpha::HaControllersFailoverRequest] ha_controllers_failover_request_object
|
9407
|
+
# @param [String] request_id
|
9408
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
9409
|
+
# that if you must retry your request, the server will know to ignore the
|
9410
|
+
# request if it has already been completed.
|
9411
|
+
# @param [String] fields
|
9412
|
+
# Selector specifying which fields to include in a partial response.
|
9413
|
+
# @param [String] quota_user
|
9414
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
9415
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
9416
|
+
# @param [String] user_ip
|
9417
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
9418
|
+
# @param [Google::Apis::RequestOptions] options
|
9419
|
+
# Request-specific options
|
9420
|
+
#
|
9421
|
+
# @yield [result, err] Result & error if block supplied
|
9422
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
9423
|
+
# @yieldparam err [StandardError] error object if request failed
|
9424
|
+
#
|
9425
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
9426
|
+
#
|
9427
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
9428
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
9429
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
9430
|
+
def failover_ha_controller(project, region, ha_controller, ha_controllers_failover_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
9431
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/haControllers/{haController}/failover', options)
|
9432
|
+
command.request_representation = Google::Apis::ComputeAlpha::HaControllersFailoverRequest::Representation
|
9433
|
+
command.request_object = ha_controllers_failover_request_object
|
9434
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
9435
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
9436
|
+
command.params['project'] = project unless project.nil?
|
9437
|
+
command.params['region'] = region unless region.nil?
|
9438
|
+
command.params['haController'] = ha_controller unless ha_controller.nil?
|
9439
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
9440
|
+
command.query['fields'] = fields unless fields.nil?
|
9441
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
9442
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
9443
|
+
execute_or_queue_command(command, &block)
|
9444
|
+
end
|
9445
|
+
|
9365
9446
|
# Retrieves the list of all HealthCheck resources, regional and global,
|
9366
9447
|
# available to the specified project. To prevent failure, Google recommends that
|
9367
9448
|
# you set the `returnPartialSuccess` parameter to `true`.
|
@@ -30634,12 +30715,12 @@ module Google
|
|
30634
30715
|
# commitments. The request ID must be a valid UUID with the exception that zero
|
30635
30716
|
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
30636
30717
|
# @param [String] snapshot_name
|
30637
|
-
# Name of the snapshot after the recovery The name will be 1-63
|
30638
|
-
# and comply with RFC1035. Specifically, the name will be 1-63
|
30639
|
-
# and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`
|
30640
|
-
# first character will be a lowercase letter, and all following
|
30641
|
-
# be a dash, lowercase letter, or digit, except the last
|
30642
|
-
# be a dash.
|
30718
|
+
# Optional. Name of the snapshot after the recovery The name will be 1-63
|
30719
|
+
# characters long, and comply with RFC1035. Specifically, the name will be 1-63
|
30720
|
+
# characters long and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])?`
|
30721
|
+
# which means the first character will be a lowercase letter, and all following
|
30722
|
+
# characters can be a dash, lowercase letter, or digit, except the last
|
30723
|
+
# character, which cannot be a dash.
|
30643
30724
|
# @param [String] fields
|
30644
30725
|
# Selector specifying which fields to include in a partial response.
|
30645
30726
|
# @param [String] quota_user
|
@@ -59901,6 +59982,292 @@ module Google
|
|
59901
59982
|
execute_or_queue_command(command, &block)
|
59902
59983
|
end
|
59903
59984
|
|
59985
|
+
# Deletes a specified zone VM extension policy.
|
59986
|
+
# @param [String] project
|
59987
|
+
# Project ID for this request.
|
59988
|
+
# @param [String] zone
|
59989
|
+
# Name of the zone for this request.
|
59990
|
+
# @param [String] vm_extension_policy
|
59991
|
+
# Name of the zone VM extension policy to delete.
|
59992
|
+
# @param [String] request_id
|
59993
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
59994
|
+
# that if you must retry your request, the server will know to ignore the
|
59995
|
+
# request if it has already been completed. For example, consider a situation
|
59996
|
+
# where you make an initial request and the request times out. If you make the
|
59997
|
+
# request again with the same request ID, the server can check if original
|
59998
|
+
# operation with the same request ID was received, and if so, will ignore the
|
59999
|
+
# second request. This prevents clients from accidentally creating duplicate
|
60000
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
60001
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
60002
|
+
# @param [String] fields
|
60003
|
+
# Selector specifying which fields to include in a partial response.
|
60004
|
+
# @param [String] quota_user
|
60005
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
60006
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
60007
|
+
# @param [String] user_ip
|
60008
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
60009
|
+
# @param [Google::Apis::RequestOptions] options
|
60010
|
+
# Request-specific options
|
60011
|
+
#
|
60012
|
+
# @yield [result, err] Result & error if block supplied
|
60013
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
60014
|
+
# @yieldparam err [StandardError] error object if request failed
|
60015
|
+
#
|
60016
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
60017
|
+
#
|
60018
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
60019
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
60020
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
60021
|
+
def delete_zone_vm_extension_policy(project, zone, vm_extension_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
60022
|
+
command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}', options)
|
60023
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
60024
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
60025
|
+
command.params['project'] = project unless project.nil?
|
60026
|
+
command.params['zone'] = zone unless zone.nil?
|
60027
|
+
command.params['vmExtensionPolicy'] = vm_extension_policy unless vm_extension_policy.nil?
|
60028
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
60029
|
+
command.query['fields'] = fields unless fields.nil?
|
60030
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
60031
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
60032
|
+
execute_or_queue_command(command, &block)
|
60033
|
+
end
|
60034
|
+
|
60035
|
+
# Retrieves details of a specific zone VM extension policy.
|
60036
|
+
# @param [String] project
|
60037
|
+
# Project ID for this request.
|
60038
|
+
# @param [String] zone
|
60039
|
+
# Name of the zone for this request.
|
60040
|
+
# @param [String] vm_extension_policy
|
60041
|
+
# Name of the VM extension policy resource to return.
|
60042
|
+
# @param [String] fields
|
60043
|
+
# Selector specifying which fields to include in a partial response.
|
60044
|
+
# @param [String] quota_user
|
60045
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
60046
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
60047
|
+
# @param [String] user_ip
|
60048
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
60049
|
+
# @param [Google::Apis::RequestOptions] options
|
60050
|
+
# Request-specific options
|
60051
|
+
#
|
60052
|
+
# @yield [result, err] Result & error if block supplied
|
60053
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::VmExtensionPolicy] parsed result object
|
60054
|
+
# @yieldparam err [StandardError] error object if request failed
|
60055
|
+
#
|
60056
|
+
# @return [Google::Apis::ComputeAlpha::VmExtensionPolicy]
|
60057
|
+
#
|
60058
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
60059
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
60060
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
60061
|
+
def get_zone_vm_extension_policy(project, zone, vm_extension_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
60062
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}', options)
|
60063
|
+
command.response_representation = Google::Apis::ComputeAlpha::VmExtensionPolicy::Representation
|
60064
|
+
command.response_class = Google::Apis::ComputeAlpha::VmExtensionPolicy
|
60065
|
+
command.params['project'] = project unless project.nil?
|
60066
|
+
command.params['zone'] = zone unless zone.nil?
|
60067
|
+
command.params['vmExtensionPolicy'] = vm_extension_policy unless vm_extension_policy.nil?
|
60068
|
+
command.query['fields'] = fields unless fields.nil?
|
60069
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
60070
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
60071
|
+
execute_or_queue_command(command, &block)
|
60072
|
+
end
|
60073
|
+
|
60074
|
+
# Creates a new zone-level VM extension policy within a project.
|
60075
|
+
# @param [String] project
|
60076
|
+
# Project ID for this request.
|
60077
|
+
# @param [String] zone
|
60078
|
+
# Name of the zone for this request.
|
60079
|
+
# @param [Google::Apis::ComputeAlpha::VmExtensionPolicy] vm_extension_policy_object
|
60080
|
+
# @param [String] request_id
|
60081
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
60082
|
+
# that if you must retry your request, the server will know to ignore the
|
60083
|
+
# request if it has already been completed. For example, consider a situation
|
60084
|
+
# where you make an initial request and the request times out. If you make the
|
60085
|
+
# request again with the same request ID, the server can check if original
|
60086
|
+
# operation with the same request ID was received, and if so, will ignore the
|
60087
|
+
# second request. This prevents clients from accidentally creating duplicate
|
60088
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
60089
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
60090
|
+
# @param [String] fields
|
60091
|
+
# Selector specifying which fields to include in a partial response.
|
60092
|
+
# @param [String] quota_user
|
60093
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
60094
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
60095
|
+
# @param [String] user_ip
|
60096
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
60097
|
+
# @param [Google::Apis::RequestOptions] options
|
60098
|
+
# Request-specific options
|
60099
|
+
#
|
60100
|
+
# @yield [result, err] Result & error if block supplied
|
60101
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
60102
|
+
# @yieldparam err [StandardError] error object if request failed
|
60103
|
+
#
|
60104
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
60105
|
+
#
|
60106
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
60107
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
60108
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
60109
|
+
def insert_zone_vm_extension_policy(project, zone, vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
60110
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/vmExtensionPolicies', options)
|
60111
|
+
command.request_representation = Google::Apis::ComputeAlpha::VmExtensionPolicy::Representation
|
60112
|
+
command.request_object = vm_extension_policy_object
|
60113
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
60114
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
60115
|
+
command.params['project'] = project unless project.nil?
|
60116
|
+
command.params['zone'] = zone unless zone.nil?
|
60117
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
60118
|
+
command.query['fields'] = fields unless fields.nil?
|
60119
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
60120
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
60121
|
+
execute_or_queue_command(command, &block)
|
60122
|
+
end
|
60123
|
+
|
60124
|
+
# Lists all VM extension policies within a specific zone for a project.
|
60125
|
+
# @param [String] project
|
60126
|
+
# Project ID for this request.
|
60127
|
+
# @param [String] zone
|
60128
|
+
# Name of the zone for this request.
|
60129
|
+
# @param [String] filter
|
60130
|
+
# A filter expression that filters resources listed in the response. Most
|
60131
|
+
# Compute resources support two types of filter expressions: expressions that
|
60132
|
+
# support regular expressions and expressions that follow API improvement
|
60133
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
60134
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
60135
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
60136
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
60137
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
60138
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
60139
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
60140
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
60141
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
60142
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
60143
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
60144
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
60145
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
60146
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
60147
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
60148
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
60149
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
60150
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
60151
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
60152
|
+
# un-parenthesized expression with or without quotes or against multiple
|
60153
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
60154
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
60155
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
60156
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
60157
|
+
# literal value must match the entire field. For example, to filter for
|
60158
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
60159
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
60160
|
+
# expressions.
|
60161
|
+
# @param [Fixnum] max_results
|
60162
|
+
# The maximum number of results per page that should be returned. If the number
|
60163
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
60164
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
60165
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
60166
|
+
# @param [String] order_by
|
60167
|
+
# Sorts list results by a certain order. By default, results are returned in
|
60168
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
60169
|
+
# descending order based on the creation timestamp using `orderBy="
|
60170
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
60171
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
60172
|
+
# resources like operations so that the newest operation is returned first.
|
60173
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
60174
|
+
# @param [String] page_token
|
60175
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
60176
|
+
# by a previous list request to get the next page of results.
|
60177
|
+
# @param [Boolean] return_partial_success
|
60178
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
60179
|
+
# failure. The default value is false. For example, when partial success
|
60180
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
60181
|
+
# resources in the zone or no resources, with an error code.
|
60182
|
+
# @param [String] fields
|
60183
|
+
# Selector specifying which fields to include in a partial response.
|
60184
|
+
# @param [String] quota_user
|
60185
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
60186
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
60187
|
+
# @param [String] user_ip
|
60188
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
60189
|
+
# @param [Google::Apis::RequestOptions] options
|
60190
|
+
# Request-specific options
|
60191
|
+
#
|
60192
|
+
# @yield [result, err] Result & error if block supplied
|
60193
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::VmExtensionPolicyList] parsed result object
|
60194
|
+
# @yieldparam err [StandardError] error object if request failed
|
60195
|
+
#
|
60196
|
+
# @return [Google::Apis::ComputeAlpha::VmExtensionPolicyList]
|
60197
|
+
#
|
60198
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
60199
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
60200
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
60201
|
+
def list_zone_vm_extension_policies(project, zone, 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)
|
60202
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/vmExtensionPolicies', options)
|
60203
|
+
command.response_representation = Google::Apis::ComputeAlpha::VmExtensionPolicyList::Representation
|
60204
|
+
command.response_class = Google::Apis::ComputeAlpha::VmExtensionPolicyList
|
60205
|
+
command.params['project'] = project unless project.nil?
|
60206
|
+
command.params['zone'] = zone unless zone.nil?
|
60207
|
+
command.query['filter'] = filter unless filter.nil?
|
60208
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
60209
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
60210
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
60211
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
60212
|
+
command.query['fields'] = fields unless fields.nil?
|
60213
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
60214
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
60215
|
+
execute_or_queue_command(command, &block)
|
60216
|
+
end
|
60217
|
+
|
60218
|
+
# Modifies an existing zone VM extension policy.
|
60219
|
+
# @param [String] project
|
60220
|
+
# Project ID for this request.
|
60221
|
+
# @param [String] zone
|
60222
|
+
# Name of the zone for this request.
|
60223
|
+
# @param [String] vm_extension_policy
|
60224
|
+
# Name of the zone VM extension policy to update.
|
60225
|
+
# @param [Google::Apis::ComputeAlpha::VmExtensionPolicy] vm_extension_policy_object
|
60226
|
+
# @param [String] request_id
|
60227
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
60228
|
+
# that if you must retry your request, the server will know to ignore the
|
60229
|
+
# request if it has already been completed. For example, consider a situation
|
60230
|
+
# where you make an initial request and the request times out. If you make the
|
60231
|
+
# request again with the same request ID, the server can check if original
|
60232
|
+
# operation with the same request ID was received, and if so, will ignore the
|
60233
|
+
# second request. This prevents clients from accidentally creating duplicate
|
60234
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
60235
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
60236
|
+
# @param [String] fields
|
60237
|
+
# Selector specifying which fields to include in a partial response.
|
60238
|
+
# @param [String] quota_user
|
60239
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
60240
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
60241
|
+
# @param [String] user_ip
|
60242
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
60243
|
+
# @param [Google::Apis::RequestOptions] options
|
60244
|
+
# Request-specific options
|
60245
|
+
#
|
60246
|
+
# @yield [result, err] Result & error if block supplied
|
60247
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
60248
|
+
# @yieldparam err [StandardError] error object if request failed
|
60249
|
+
#
|
60250
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
60251
|
+
#
|
60252
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
60253
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
60254
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
60255
|
+
def update_zone_vm_extension_policy(project, zone, vm_extension_policy, vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
60256
|
+
command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/vmExtensionPolicies/{vmExtensionPolicy}', options)
|
60257
|
+
command.request_representation = Google::Apis::ComputeAlpha::VmExtensionPolicy::Representation
|
60258
|
+
command.request_object = vm_extension_policy_object
|
60259
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
60260
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
60261
|
+
command.params['project'] = project unless project.nil?
|
60262
|
+
command.params['zone'] = zone unless zone.nil?
|
60263
|
+
command.params['vmExtensionPolicy'] = vm_extension_policy unless vm_extension_policy.nil?
|
60264
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
60265
|
+
command.query['fields'] = fields unless fields.nil?
|
60266
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
60267
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
60268
|
+
execute_or_queue_command(command, &block)
|
60269
|
+
end
|
60270
|
+
|
59904
60271
|
# Returns the specified Zone resource.
|
59905
60272
|
# @param [String] project
|
59906
60273
|
# Project ID for this request.
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-compute_alpha
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.118.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
@@ -57,7 +57,7 @@ licenses:
|
|
57
57
|
metadata:
|
58
58
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
59
59
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha/CHANGELOG.md
|
60
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.
|
60
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-compute_alpha/v0.118.0
|
61
61
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-compute_alpha
|
62
62
|
rdoc_options: []
|
63
63
|
require_paths:
|