google-apis-compute_alpha 0.130.0 → 0.131.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.
@@ -7417,6 +7417,7 @@ module Google
7417
7417
  # Name of the region scoping this request.
7418
7418
  # @param [String] forwarding_rule
7419
7419
  # Name of the ForwardingRule resource to return.
7420
+ # @param [String] view
7420
7421
  # @param [String] fields
7421
7422
  # Selector specifying which fields to include in a partial response.
7422
7423
  # @param [String] quota_user
@@ -7436,13 +7437,14 @@ module Google
7436
7437
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
7437
7438
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
7438
7439
  # @raise [Google::Apis::AuthorizationError] Authorization is required
7439
- def get_forwarding_rule(project, region, forwarding_rule, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7440
+ def get_forwarding_rule(project, region, forwarding_rule, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
7440
7441
  command = make_simple_command(:get, 'projects/{project}/regions/{region}/forwardingRules/{forwardingRule}', options)
7441
7442
  command.response_representation = Google::Apis::ComputeAlpha::ForwardingRule::Representation
7442
7443
  command.response_class = Google::Apis::ComputeAlpha::ForwardingRule
7443
7444
  command.params['project'] = project unless project.nil?
7444
7445
  command.params['region'] = region unless region.nil?
7445
7446
  command.params['forwardingRule'] = forwarding_rule unless forwarding_rule.nil?
7447
+ command.query['view'] = view unless view.nil?
7446
7448
  command.query['fields'] = fields unless fields.nil?
7447
7449
  command.query['quotaUser'] = quota_user unless quota_user.nil?
7448
7450
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -8959,6 +8961,7 @@ module Google
8959
8961
  # Project ID for this request.
8960
8962
  # @param [String] forwarding_rule
8961
8963
  # Name of the ForwardingRule resource to return.
8964
+ # @param [String] view
8962
8965
  # @param [String] fields
8963
8966
  # Selector specifying which fields to include in a partial response.
8964
8967
  # @param [String] quota_user
@@ -8978,12 +8981,13 @@ module Google
8978
8981
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
8979
8982
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
8980
8983
  # @raise [Google::Apis::AuthorizationError] Authorization is required
8981
- def get_global_forwarding_rule(project, forwarding_rule, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8984
+ def get_global_forwarding_rule(project, forwarding_rule, view: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
8982
8985
  command = make_simple_command(:get, 'projects/{project}/global/forwardingRules/{forwardingRule}', options)
8983
8986
  command.response_representation = Google::Apis::ComputeAlpha::ForwardingRule::Representation
8984
8987
  command.response_class = Google::Apis::ComputeAlpha::ForwardingRule
8985
8988
  command.params['project'] = project unless project.nil?
8986
8989
  command.params['forwardingRule'] = forwarding_rule unless forwarding_rule.nil?
8990
+ command.query['view'] = view unless view.nil?
8987
8991
  command.query['fields'] = fields unless fields.nil?
8988
8992
  command.query['quotaUser'] = quota_user unless quota_user.nil?
8989
8993
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -10902,6 +10906,41 @@ module Google
10902
10906
  execute_or_queue_command(command, &block)
10903
10907
  end
10904
10908
 
10909
+ # Retrieves details of a specific VM extension.
10910
+ # @param [String] project
10911
+ # Project ID for this request.
10912
+ # @param [String] extension_name
10913
+ # @param [String] fields
10914
+ # Selector specifying which fields to include in a partial response.
10915
+ # @param [String] quota_user
10916
+ # Available to use for quota purposes for server-side applications. Can be any
10917
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
10918
+ # @param [String] user_ip
10919
+ # Legacy name for parameter that has been superseded by `quotaUser`.
10920
+ # @param [Google::Apis::RequestOptions] options
10921
+ # Request-specific options
10922
+ #
10923
+ # @yield [result, err] Result & error if block supplied
10924
+ # @yieldparam result [Google::Apis::ComputeAlpha::GlobalVmExtension] parsed result object
10925
+ # @yieldparam err [StandardError] error object if request failed
10926
+ #
10927
+ # @return [Google::Apis::ComputeAlpha::GlobalVmExtension]
10928
+ #
10929
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10930
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10931
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10932
+ def get_global_vm_extension_policy_vm_extension(project, extension_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10933
+ command = make_simple_command(:get, 'projects/{project}/global/vmExtensions/{extensionName}', options)
10934
+ command.response_representation = Google::Apis::ComputeAlpha::GlobalVmExtension::Representation
10935
+ command.response_class = Google::Apis::ComputeAlpha::GlobalVmExtension
10936
+ command.params['project'] = project unless project.nil?
10937
+ command.params['extensionName'] = extension_name unless extension_name.nil?
10938
+ command.query['fields'] = fields unless fields.nil?
10939
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10940
+ command.query['userIp'] = user_ip unless user_ip.nil?
10941
+ execute_or_queue_command(command, &block)
10942
+ end
10943
+
10905
10944
  # Creates a new project level GlobalVmExtensionPolicy.
10906
10945
  # @param [String] project
10907
10946
  # Project ID for this request.
@@ -11065,62 +11104,10 @@ module Google
11065
11104
  execute_or_queue_command(command, &block)
11066
11105
  end
11067
11106
 
11068
- # Updates a global VM extension policy.
11069
- # @param [String] project
11070
- # Project ID for this request.
11071
- # @param [String] global_vm_extension_policy
11072
- # Name of the global VM extension policy to update.
11073
- # @param [Google::Apis::ComputeAlpha::GlobalVmExtensionPolicy] global_vm_extension_policy_object
11074
- # @param [String] request_id
11075
- # An optional request ID to identify requests. Specify a unique request ID so
11076
- # that if you must retry your request, the server will know to ignore the
11077
- # request if it has already been completed.
11078
- # For example, consider a situation where you make an initial request and
11079
- # the request times out. If you make the request again with the same
11080
- # request ID, the server can check if original operation with the same
11081
- # request ID was received, and if so, will ignore the second request. This
11082
- # prevents clients from accidentally creating duplicate commitments.
11083
- # The request ID must be
11084
- # a valid UUID with the exception that zero UUID is not supported
11085
- # (00000000-0000-0000-0000-000000000000).
11086
- # @param [String] fields
11087
- # Selector specifying which fields to include in a partial response.
11088
- # @param [String] quota_user
11089
- # Available to use for quota purposes for server-side applications. Can be any
11090
- # arbitrary string assigned to a user, but should not exceed 40 characters.
11091
- # @param [String] user_ip
11092
- # Legacy name for parameter that has been superseded by `quotaUser`.
11093
- # @param [Google::Apis::RequestOptions] options
11094
- # Request-specific options
11095
- #
11096
- # @yield [result, err] Result & error if block supplied
11097
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
11098
- # @yieldparam err [StandardError] error object if request failed
11099
- #
11100
- # @return [Google::Apis::ComputeAlpha::Operation]
11101
- #
11102
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11103
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11104
- # @raise [Google::Apis::AuthorizationError] Authorization is required
11105
- def update_global_vm_extension_policy(project, global_vm_extension_policy, global_vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11106
- command = make_simple_command(:patch, 'projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}', options)
11107
- command.request_representation = Google::Apis::ComputeAlpha::GlobalVmExtensionPolicy::Representation
11108
- command.request_object = global_vm_extension_policy_object
11109
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
11110
- command.response_class = Google::Apis::ComputeAlpha::Operation
11111
- command.params['project'] = project unless project.nil?
11112
- command.params['globalVmExtensionPolicy'] = global_vm_extension_policy unless global_vm_extension_policy.nil?
11113
- command.query['requestId'] = request_id unless request_id.nil?
11114
- command.query['fields'] = fields unless fields.nil?
11115
- command.query['quotaUser'] = quota_user unless quota_user.nil?
11116
- command.query['userIp'] = user_ip unless user_ip.nil?
11117
- execute_or_queue_command(command, &block)
11118
- end
11119
-
11120
- # Retrieves an aggregated list of all of the HaControllers in the specified
11121
- # project across all regions.
11107
+ # Lists all VM extensions within a specific zone for a project.
11108
+ # This is a read-only API.
11122
11109
  # @param [String] project
11123
- # Project ID for this request.
11110
+ # Required. Project ID for this request.
11124
11111
  # @param [String] filter
11125
11112
  # A filter expression that filters resources listed in the response. Most
11126
11113
  # Compute resources support two types of filter expressions:
@@ -11171,14 +11158,6 @@ module Google
11171
11158
  # you would use `name ne .*instance`.
11172
11159
  # You cannot combine constraints on multiple fields using regular
11173
11160
  # expressions.
11174
- # @param [Boolean] include_all_scopes
11175
- # Indicates whether every visible scope for each scope type (zone, region,
11176
- # global) should be included in the response. For new resource types added
11177
- # after this field, the flag has no effect as new resource types will always
11178
- # include every visible scope for each scope type in response. For resource
11179
- # types which predate this field, if this flag is omitted or false, only
11180
- # scopes of the scope types where the resource type is expected to be found
11181
- # will be included.
11182
11161
  # @param [Fixnum] max_results
11183
11162
  # The maximum number of results per page that should be returned.
11184
11163
  # If the number of available results is larger than `maxResults`,
@@ -11205,9 +11184,6 @@ module Google
11205
11184
  # For example, when partial success behavior is enabled, aggregatedList for a
11206
11185
  # single zone scope either returns all resources in the zone or no resources,
11207
11186
  # with an error code.
11208
- # @param [Fixnum] service_project_number
11209
- # The Shared VPC service project id or service project number for which
11210
- # aggregated list request is invoked for subnetworks list-usable api.
11211
11187
  # @param [String] fields
11212
11188
  # Selector specifying which fields to include in a partial response.
11213
11189
  # @param [String] quota_user
@@ -11219,173 +11195,48 @@ module Google
11219
11195
  # Request-specific options
11220
11196
  #
11221
11197
  # @yield [result, err] Result & error if block supplied
11222
- # @yieldparam result [Google::Apis::ComputeAlpha::HaControllersAggregatedList] parsed result object
11198
+ # @yieldparam result [Google::Apis::ComputeAlpha::GlobalListVmExtensionsResponse] parsed result object
11223
11199
  # @yieldparam err [StandardError] error object if request failed
11224
11200
  #
11225
- # @return [Google::Apis::ComputeAlpha::HaControllersAggregatedList]
11201
+ # @return [Google::Apis::ComputeAlpha::GlobalListVmExtensionsResponse]
11226
11202
  #
11227
11203
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11228
11204
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11229
11205
  # @raise [Google::Apis::AuthorizationError] Authorization is required
11230
- def aggregated_ha_controller_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11231
- command = make_simple_command(:get, 'projects/{project}/aggregated/haControllers', options)
11232
- command.response_representation = Google::Apis::ComputeAlpha::HaControllersAggregatedList::Representation
11233
- command.response_class = Google::Apis::ComputeAlpha::HaControllersAggregatedList
11206
+ def list_global_vm_extension_policy_vm_extensions(project, 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)
11207
+ command = make_simple_command(:get, 'projects/{project}/global/vmExtensions', options)
11208
+ command.response_representation = Google::Apis::ComputeAlpha::GlobalListVmExtensionsResponse::Representation
11209
+ command.response_class = Google::Apis::ComputeAlpha::GlobalListVmExtensionsResponse
11234
11210
  command.params['project'] = project unless project.nil?
11235
11211
  command.query['filter'] = filter unless filter.nil?
11236
- command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
11237
11212
  command.query['maxResults'] = max_results unless max_results.nil?
11238
11213
  command.query['orderBy'] = order_by unless order_by.nil?
11239
11214
  command.query['pageToken'] = page_token unless page_token.nil?
11240
11215
  command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
11241
- command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
11242
11216
  command.query['fields'] = fields unless fields.nil?
11243
11217
  command.query['quotaUser'] = quota_user unless quota_user.nil?
11244
11218
  command.query['userIp'] = user_ip unless user_ip.nil?
11245
11219
  execute_or_queue_command(command, &block)
11246
11220
  end
11247
11221
 
11248
- # Deletes an HaController in the specified project.
11249
- # @param [String] project
11250
- # Project ID for this request.
11251
- # @param [String] region
11252
- # Name of the region for this request.
11253
- # @param [String] ha_controller
11254
- # Name of the HaController resource to delete.
11255
- # @param [String] request_id
11256
- # An optional request ID to identify requests. Specify a unique request ID so
11257
- # that if you must retry your request, the server will know to ignore the
11258
- # request if it has already been completed.
11259
- # @param [String] fields
11260
- # Selector specifying which fields to include in a partial response.
11261
- # @param [String] quota_user
11262
- # Available to use for quota purposes for server-side applications. Can be any
11263
- # arbitrary string assigned to a user, but should not exceed 40 characters.
11264
- # @param [String] user_ip
11265
- # Legacy name for parameter that has been superseded by `quotaUser`.
11266
- # @param [Google::Apis::RequestOptions] options
11267
- # Request-specific options
11268
- #
11269
- # @yield [result, err] Result & error if block supplied
11270
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
11271
- # @yieldparam err [StandardError] error object if request failed
11272
- #
11273
- # @return [Google::Apis::ComputeAlpha::Operation]
11274
- #
11275
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11276
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11277
- # @raise [Google::Apis::AuthorizationError] Authorization is required
11278
- def delete_ha_controller(project, region, ha_controller, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11279
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/haControllers/{haController}', options)
11280
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
11281
- command.response_class = Google::Apis::ComputeAlpha::Operation
11282
- command.params['project'] = project unless project.nil?
11283
- command.params['region'] = region unless region.nil?
11284
- command.params['haController'] = ha_controller unless ha_controller.nil?
11285
- command.query['requestId'] = request_id unless request_id.nil?
11286
- command.query['fields'] = fields unless fields.nil?
11287
- command.query['quotaUser'] = quota_user unless quota_user.nil?
11288
- command.query['userIp'] = user_ip unless user_ip.nil?
11289
- execute_or_queue_command(command, &block)
11290
- end
11291
-
11292
- # Fails over a VM targeted by the specified HaController to the selected
11293
- # zone.
11294
- # @param [String] project
11295
- # Project ID for this request.
11296
- # @param [String] region
11297
- # Name of the region for this request.
11298
- # @param [String] ha_controller
11299
- # ID of the HaController resource to update.
11300
- # @param [Google::Apis::ComputeAlpha::HaControllersFailoverRequest] ha_controllers_failover_request_object
11301
- # @param [String] request_id
11302
- # An optional request ID to identify requests. Specify a unique request ID so
11303
- # that if you must retry your request, the server will know to ignore the
11304
- # request if it has already been completed.
11305
- # @param [String] fields
11306
- # Selector specifying which fields to include in a partial response.
11307
- # @param [String] quota_user
11308
- # Available to use for quota purposes for server-side applications. Can be any
11309
- # arbitrary string assigned to a user, but should not exceed 40 characters.
11310
- # @param [String] user_ip
11311
- # Legacy name for parameter that has been superseded by `quotaUser`.
11312
- # @param [Google::Apis::RequestOptions] options
11313
- # Request-specific options
11314
- #
11315
- # @yield [result, err] Result & error if block supplied
11316
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
11317
- # @yieldparam err [StandardError] error object if request failed
11318
- #
11319
- # @return [Google::Apis::ComputeAlpha::Operation]
11320
- #
11321
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11322
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11323
- # @raise [Google::Apis::AuthorizationError] Authorization is required
11324
- 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)
11325
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/haControllers/{haController}/failover', options)
11326
- command.request_representation = Google::Apis::ComputeAlpha::HaControllersFailoverRequest::Representation
11327
- command.request_object = ha_controllers_failover_request_object
11328
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
11329
- command.response_class = Google::Apis::ComputeAlpha::Operation
11330
- command.params['project'] = project unless project.nil?
11331
- command.params['region'] = region unless region.nil?
11332
- command.params['haController'] = ha_controller unless ha_controller.nil?
11333
- command.query['requestId'] = request_id unless request_id.nil?
11334
- command.query['fields'] = fields unless fields.nil?
11335
- command.query['quotaUser'] = quota_user unless quota_user.nil?
11336
- command.query['userIp'] = user_ip unless user_ip.nil?
11337
- execute_or_queue_command(command, &block)
11338
- end
11339
-
11340
- # Returns all the details of a specific HaController.
11341
- # @param [String] project
11342
- # Project ID for this request.
11343
- # @param [String] region
11344
- # Name of the region for this request.
11345
- # @param [String] ha_controller
11346
- # Name of the HaController resource to return.
11347
- # @param [String] fields
11348
- # Selector specifying which fields to include in a partial response.
11349
- # @param [String] quota_user
11350
- # Available to use for quota purposes for server-side applications. Can be any
11351
- # arbitrary string assigned to a user, but should not exceed 40 characters.
11352
- # @param [String] user_ip
11353
- # Legacy name for parameter that has been superseded by `quotaUser`.
11354
- # @param [Google::Apis::RequestOptions] options
11355
- # Request-specific options
11356
- #
11357
- # @yield [result, err] Result & error if block supplied
11358
- # @yieldparam result [Google::Apis::ComputeAlpha::HaController] parsed result object
11359
- # @yieldparam err [StandardError] error object if request failed
11360
- #
11361
- # @return [Google::Apis::ComputeAlpha::HaController]
11362
- #
11363
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11364
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11365
- # @raise [Google::Apis::AuthorizationError] Authorization is required
11366
- def get_ha_controller(project, region, ha_controller, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11367
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/haControllers/{haController}', options)
11368
- command.response_representation = Google::Apis::ComputeAlpha::HaController::Representation
11369
- command.response_class = Google::Apis::ComputeAlpha::HaController
11370
- command.params['project'] = project unless project.nil?
11371
- command.params['region'] = region unless region.nil?
11372
- command.params['haController'] = ha_controller unless ha_controller.nil?
11373
- command.query['fields'] = fields unless fields.nil?
11374
- command.query['quotaUser'] = quota_user unless quota_user.nil?
11375
- command.query['userIp'] = user_ip unless user_ip.nil?
11376
- execute_or_queue_command(command, &block)
11377
- end
11378
-
11379
- # Creates HaController in the specified project.
11222
+ # Updates a global VM extension policy.
11380
11223
  # @param [String] project
11381
11224
  # Project ID for this request.
11382
- # @param [String] region
11383
- # Name of the region for this request.
11384
- # @param [Google::Apis::ComputeAlpha::HaController] ha_controller_object
11225
+ # @param [String] global_vm_extension_policy
11226
+ # Name of the global VM extension policy to update.
11227
+ # @param [Google::Apis::ComputeAlpha::GlobalVmExtensionPolicy] global_vm_extension_policy_object
11385
11228
  # @param [String] request_id
11386
11229
  # An optional request ID to identify requests. Specify a unique request ID so
11387
11230
  # that if you must retry your request, the server will know to ignore the
11388
11231
  # request if it has already been completed.
11232
+ # For example, consider a situation where you make an initial request and
11233
+ # the request times out. If you make the request again with the same
11234
+ # request ID, the server can check if original operation with the same
11235
+ # request ID was received, and if so, will ignore the second request. This
11236
+ # prevents clients from accidentally creating duplicate commitments.
11237
+ # The request ID must be
11238
+ # a valid UUID with the exception that zero UUID is not supported
11239
+ # (00000000-0000-0000-0000-000000000000).
11389
11240
  # @param [String] fields
11390
11241
  # Selector specifying which fields to include in a partial response.
11391
11242
  # @param [String] quota_user
@@ -11405,14 +11256,14 @@ module Google
11405
11256
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11406
11257
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11407
11258
  # @raise [Google::Apis::AuthorizationError] Authorization is required
11408
- def insert_ha_controller(project, region, ha_controller_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11409
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/haControllers', options)
11410
- command.request_representation = Google::Apis::ComputeAlpha::HaController::Representation
11411
- command.request_object = ha_controller_object
11259
+ def update_global_vm_extension_policy(project, global_vm_extension_policy, global_vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11260
+ command = make_simple_command(:patch, 'projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}', options)
11261
+ command.request_representation = Google::Apis::ComputeAlpha::GlobalVmExtensionPolicy::Representation
11262
+ command.request_object = global_vm_extension_policy_object
11412
11263
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
11413
11264
  command.response_class = Google::Apis::ComputeAlpha::Operation
11414
11265
  command.params['project'] = project unless project.nil?
11415
- command.params['region'] = region unless region.nil?
11266
+ command.params['globalVmExtensionPolicy'] = global_vm_extension_policy unless global_vm_extension_policy.nil?
11416
11267
  command.query['requestId'] = request_id unless request_id.nil?
11417
11268
  command.query['fields'] = fields unless fields.nil?
11418
11269
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -11420,11 +11271,314 @@ module Google
11420
11271
  execute_or_queue_command(command, &block)
11421
11272
  end
11422
11273
 
11423
- # Lists all HaControllers in the specified project in the specified region.
11274
+ # Retrieves an aggregated list of all of the HaControllers in the specified
11275
+ # project across all regions.
11424
11276
  # @param [String] project
11425
11277
  # Project ID for this request.
11426
- # @param [String] region
11427
- # Name of the region for this request.
11278
+ # @param [String] filter
11279
+ # A filter expression that filters resources listed in the response. Most
11280
+ # Compute resources support two types of filter expressions:
11281
+ # expressions that support regular expressions and expressions that follow
11282
+ # API improvement proposal AIP-160.
11283
+ # These two types of filter expressions cannot be mixed in one request.
11284
+ # If you want to use AIP-160, your expression must specify the field name, an
11285
+ # operator, and the value that you want to use for filtering. The value
11286
+ # must be a string, a number, or a boolean. The operator
11287
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
11288
+ # For example, if you are filtering Compute Engine instances, you can
11289
+ # exclude instances named `example-instance` by specifying
11290
+ # `name != example-instance`.
11291
+ # The `:*` comparison can be used to test whether a key has been defined.
11292
+ # For example, to find all objects with `owner` label use:
11293
+ # ```
11294
+ # labels.owner:*
11295
+ # ```
11296
+ # You can also filter nested fields. For example, you could specify
11297
+ # `scheduling.automaticRestart = false` to include instances only
11298
+ # if they are not scheduled for automatic restarts. You can use filtering
11299
+ # on nested fields to filter based onresource labels.
11300
+ # To filter on multiple expressions, provide each separate expression within
11301
+ # parentheses. For example:
11302
+ # ```
11303
+ # (scheduling.automaticRestart = true)
11304
+ # (cpuPlatform = "Intel Skylake")
11305
+ # ```
11306
+ # By default, each expression is an `AND` expression. However, you
11307
+ # can include `AND` and `OR` expressions explicitly.
11308
+ # For example:
11309
+ # ```
11310
+ # (cpuPlatform = "Intel Skylake") OR
11311
+ # (cpuPlatform = "Intel Broadwell") AND
11312
+ # (scheduling.automaticRestart = true)
11313
+ # ```
11314
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
11315
+ # (not equal) operator against a single un-parenthesized expression with or
11316
+ # without quotes or against multiple parenthesized expressions. Examples:
11317
+ # `fieldname eq unquoted literal`
11318
+ # `fieldname eq 'single quoted literal'`
11319
+ # `fieldname eq "double quoted literal"`
11320
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
11321
+ # The literal value is interpreted as a regular expression using GoogleRE2
11322
+ # library syntax.
11323
+ # The literal value must match the entire field.
11324
+ # For example, to filter for instances that do not end with name "instance",
11325
+ # you would use `name ne .*instance`.
11326
+ # You cannot combine constraints on multiple fields using regular
11327
+ # expressions.
11328
+ # @param [Boolean] include_all_scopes
11329
+ # Indicates whether every visible scope for each scope type (zone, region,
11330
+ # global) should be included in the response. For new resource types added
11331
+ # after this field, the flag has no effect as new resource types will always
11332
+ # include every visible scope for each scope type in response. For resource
11333
+ # types which predate this field, if this flag is omitted or false, only
11334
+ # scopes of the scope types where the resource type is expected to be found
11335
+ # will be included.
11336
+ # @param [Fixnum] max_results
11337
+ # The maximum number of results per page that should be returned.
11338
+ # If the number of available results is larger than `maxResults`,
11339
+ # Compute Engine returns a `nextPageToken` that can be used to get
11340
+ # the next page of results in subsequent list requests. Acceptable values are
11341
+ # `0` to `500`, inclusive. (Default: `500`)
11342
+ # @param [String] order_by
11343
+ # Sorts list results by a certain order. By default, results
11344
+ # are returned in alphanumerical order based on the resource name.
11345
+ # You can also sort results in descending order based on the creation
11346
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
11347
+ # results based on the `creationTimestamp` field in
11348
+ # reverse chronological order (newest result first). Use this to sort
11349
+ # resources like operations so that the newest operation is returned first.
11350
+ # Currently, only sorting by `name` or
11351
+ # `creationTimestamp desc` is supported.
11352
+ # @param [String] page_token
11353
+ # Specifies a page token to use. Set `pageToken` to the
11354
+ # `nextPageToken` returned by a previous list request to get
11355
+ # the next page of results.
11356
+ # @param [Boolean] return_partial_success
11357
+ # Opt-in for partial success behavior which provides partial results in case
11358
+ # of failure. The default value is false.
11359
+ # For example, when partial success behavior is enabled, aggregatedList for a
11360
+ # single zone scope either returns all resources in the zone or no resources,
11361
+ # with an error code.
11362
+ # @param [Fixnum] service_project_number
11363
+ # The Shared VPC service project id or service project number for which
11364
+ # aggregated list request is invoked for subnetworks list-usable api.
11365
+ # @param [String] fields
11366
+ # Selector specifying which fields to include in a partial response.
11367
+ # @param [String] quota_user
11368
+ # Available to use for quota purposes for server-side applications. Can be any
11369
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
11370
+ # @param [String] user_ip
11371
+ # Legacy name for parameter that has been superseded by `quotaUser`.
11372
+ # @param [Google::Apis::RequestOptions] options
11373
+ # Request-specific options
11374
+ #
11375
+ # @yield [result, err] Result & error if block supplied
11376
+ # @yieldparam result [Google::Apis::ComputeAlpha::HaControllersAggregatedList] parsed result object
11377
+ # @yieldparam err [StandardError] error object if request failed
11378
+ #
11379
+ # @return [Google::Apis::ComputeAlpha::HaControllersAggregatedList]
11380
+ #
11381
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11382
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11383
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11384
+ def aggregated_ha_controller_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11385
+ command = make_simple_command(:get, 'projects/{project}/aggregated/haControllers', options)
11386
+ command.response_representation = Google::Apis::ComputeAlpha::HaControllersAggregatedList::Representation
11387
+ command.response_class = Google::Apis::ComputeAlpha::HaControllersAggregatedList
11388
+ command.params['project'] = project unless project.nil?
11389
+ command.query['filter'] = filter unless filter.nil?
11390
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
11391
+ command.query['maxResults'] = max_results unless max_results.nil?
11392
+ command.query['orderBy'] = order_by unless order_by.nil?
11393
+ command.query['pageToken'] = page_token unless page_token.nil?
11394
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
11395
+ command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
11396
+ command.query['fields'] = fields unless fields.nil?
11397
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11398
+ command.query['userIp'] = user_ip unless user_ip.nil?
11399
+ execute_or_queue_command(command, &block)
11400
+ end
11401
+
11402
+ # Deletes an HaController in the specified project.
11403
+ # @param [String] project
11404
+ # Project ID for this request.
11405
+ # @param [String] region
11406
+ # Name of the region for this request.
11407
+ # @param [String] ha_controller
11408
+ # Name of the HaController resource to delete.
11409
+ # @param [String] request_id
11410
+ # An optional request ID to identify requests. Specify a unique request ID so
11411
+ # that if you must retry your request, the server will know to ignore the
11412
+ # request if it has already been completed.
11413
+ # @param [String] fields
11414
+ # Selector specifying which fields to include in a partial response.
11415
+ # @param [String] quota_user
11416
+ # Available to use for quota purposes for server-side applications. Can be any
11417
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
11418
+ # @param [String] user_ip
11419
+ # Legacy name for parameter that has been superseded by `quotaUser`.
11420
+ # @param [Google::Apis::RequestOptions] options
11421
+ # Request-specific options
11422
+ #
11423
+ # @yield [result, err] Result & error if block supplied
11424
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
11425
+ # @yieldparam err [StandardError] error object if request failed
11426
+ #
11427
+ # @return [Google::Apis::ComputeAlpha::Operation]
11428
+ #
11429
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11430
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11431
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11432
+ def delete_ha_controller(project, region, ha_controller, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11433
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/haControllers/{haController}', options)
11434
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
11435
+ command.response_class = Google::Apis::ComputeAlpha::Operation
11436
+ command.params['project'] = project unless project.nil?
11437
+ command.params['region'] = region unless region.nil?
11438
+ command.params['haController'] = ha_controller unless ha_controller.nil?
11439
+ command.query['requestId'] = request_id unless request_id.nil?
11440
+ command.query['fields'] = fields unless fields.nil?
11441
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11442
+ command.query['userIp'] = user_ip unless user_ip.nil?
11443
+ execute_or_queue_command(command, &block)
11444
+ end
11445
+
11446
+ # Fails over a VM targeted by the specified HaController to the selected
11447
+ # zone.
11448
+ # @param [String] project
11449
+ # Project ID for this request.
11450
+ # @param [String] region
11451
+ # Name of the region for this request.
11452
+ # @param [String] ha_controller
11453
+ # ID of the HaController resource to update.
11454
+ # @param [Google::Apis::ComputeAlpha::HaControllersFailoverRequest] ha_controllers_failover_request_object
11455
+ # @param [String] request_id
11456
+ # An optional request ID to identify requests. Specify a unique request ID so
11457
+ # that if you must retry your request, the server will know to ignore the
11458
+ # request if it has already been completed.
11459
+ # @param [String] fields
11460
+ # Selector specifying which fields to include in a partial response.
11461
+ # @param [String] quota_user
11462
+ # Available to use for quota purposes for server-side applications. Can be any
11463
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
11464
+ # @param [String] user_ip
11465
+ # Legacy name for parameter that has been superseded by `quotaUser`.
11466
+ # @param [Google::Apis::RequestOptions] options
11467
+ # Request-specific options
11468
+ #
11469
+ # @yield [result, err] Result & error if block supplied
11470
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
11471
+ # @yieldparam err [StandardError] error object if request failed
11472
+ #
11473
+ # @return [Google::Apis::ComputeAlpha::Operation]
11474
+ #
11475
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11476
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11477
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11478
+ 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)
11479
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/haControllers/{haController}/failover', options)
11480
+ command.request_representation = Google::Apis::ComputeAlpha::HaControllersFailoverRequest::Representation
11481
+ command.request_object = ha_controllers_failover_request_object
11482
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
11483
+ command.response_class = Google::Apis::ComputeAlpha::Operation
11484
+ command.params['project'] = project unless project.nil?
11485
+ command.params['region'] = region unless region.nil?
11486
+ command.params['haController'] = ha_controller unless ha_controller.nil?
11487
+ command.query['requestId'] = request_id unless request_id.nil?
11488
+ command.query['fields'] = fields unless fields.nil?
11489
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11490
+ command.query['userIp'] = user_ip unless user_ip.nil?
11491
+ execute_or_queue_command(command, &block)
11492
+ end
11493
+
11494
+ # Returns all the details of a specific HaController.
11495
+ # @param [String] project
11496
+ # Project ID for this request.
11497
+ # @param [String] region
11498
+ # Name of the region for this request.
11499
+ # @param [String] ha_controller
11500
+ # Name of the HaController resource to return.
11501
+ # @param [String] fields
11502
+ # Selector specifying which fields to include in a partial response.
11503
+ # @param [String] quota_user
11504
+ # Available to use for quota purposes for server-side applications. Can be any
11505
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
11506
+ # @param [String] user_ip
11507
+ # Legacy name for parameter that has been superseded by `quotaUser`.
11508
+ # @param [Google::Apis::RequestOptions] options
11509
+ # Request-specific options
11510
+ #
11511
+ # @yield [result, err] Result & error if block supplied
11512
+ # @yieldparam result [Google::Apis::ComputeAlpha::HaController] parsed result object
11513
+ # @yieldparam err [StandardError] error object if request failed
11514
+ #
11515
+ # @return [Google::Apis::ComputeAlpha::HaController]
11516
+ #
11517
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11518
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11519
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11520
+ def get_ha_controller(project, region, ha_controller, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11521
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/haControllers/{haController}', options)
11522
+ command.response_representation = Google::Apis::ComputeAlpha::HaController::Representation
11523
+ command.response_class = Google::Apis::ComputeAlpha::HaController
11524
+ command.params['project'] = project unless project.nil?
11525
+ command.params['region'] = region unless region.nil?
11526
+ command.params['haController'] = ha_controller unless ha_controller.nil?
11527
+ command.query['fields'] = fields unless fields.nil?
11528
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11529
+ command.query['userIp'] = user_ip unless user_ip.nil?
11530
+ execute_or_queue_command(command, &block)
11531
+ end
11532
+
11533
+ # Creates HaController in the specified project.
11534
+ # @param [String] project
11535
+ # Project ID for this request.
11536
+ # @param [String] region
11537
+ # Name of the region for this request.
11538
+ # @param [Google::Apis::ComputeAlpha::HaController] ha_controller_object
11539
+ # @param [String] request_id
11540
+ # An optional request ID to identify requests. Specify a unique request ID so
11541
+ # that if you must retry your request, the server will know to ignore the
11542
+ # request if it has already been completed.
11543
+ # @param [String] fields
11544
+ # Selector specifying which fields to include in a partial response.
11545
+ # @param [String] quota_user
11546
+ # Available to use for quota purposes for server-side applications. Can be any
11547
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
11548
+ # @param [String] user_ip
11549
+ # Legacy name for parameter that has been superseded by `quotaUser`.
11550
+ # @param [Google::Apis::RequestOptions] options
11551
+ # Request-specific options
11552
+ #
11553
+ # @yield [result, err] Result & error if block supplied
11554
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
11555
+ # @yieldparam err [StandardError] error object if request failed
11556
+ #
11557
+ # @return [Google::Apis::ComputeAlpha::Operation]
11558
+ #
11559
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
11560
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
11561
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
11562
+ def insert_ha_controller(project, region, ha_controller_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
11563
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/haControllers', options)
11564
+ command.request_representation = Google::Apis::ComputeAlpha::HaController::Representation
11565
+ command.request_object = ha_controller_object
11566
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
11567
+ command.response_class = Google::Apis::ComputeAlpha::Operation
11568
+ command.params['project'] = project unless project.nil?
11569
+ command.params['region'] = region unless region.nil?
11570
+ command.query['requestId'] = request_id unless request_id.nil?
11571
+ command.query['fields'] = fields unless fields.nil?
11572
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
11573
+ command.query['userIp'] = user_ip unless user_ip.nil?
11574
+ execute_or_queue_command(command, &block)
11575
+ end
11576
+
11577
+ # Lists all HaControllers in the specified project in the specified region.
11578
+ # @param [String] project
11579
+ # Project ID for this request.
11580
+ # @param [String] region
11581
+ # Name of the region for this request.
11428
11582
  # @param [String] filter
11429
11583
  # A filter expression that filters resources listed in the response. Most
11430
11584
  # Compute resources support two types of filter expressions:
@@ -18370,6 +18524,49 @@ module Google
18370
18524
  execute_or_queue_command(command, &block)
18371
18525
  end
18372
18526
 
18527
+ # Retrieves details of a specific VM extension state.
18528
+ # This is a read-only API.
18529
+ # @param [String] project
18530
+ # Project ID for this request.
18531
+ # @param [String] zone
18532
+ # Name of the zone for this request.
18533
+ # @param [String] instance
18534
+ # Name or id of the instance resource.
18535
+ # @param [String] extension_name
18536
+ # The name of the extension to get the state for.
18537
+ # @param [String] fields
18538
+ # Selector specifying which fields to include in a partial response.
18539
+ # @param [String] quota_user
18540
+ # Available to use for quota purposes for server-side applications. Can be any
18541
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18542
+ # @param [String] user_ip
18543
+ # Legacy name for parameter that has been superseded by `quotaUser`.
18544
+ # @param [Google::Apis::RequestOptions] options
18545
+ # Request-specific options
18546
+ #
18547
+ # @yield [result, err] Result & error if block supplied
18548
+ # @yieldparam result [Google::Apis::ComputeAlpha::VmExtensionState] parsed result object
18549
+ # @yieldparam err [StandardError] error object if request failed
18550
+ #
18551
+ # @return [Google::Apis::ComputeAlpha::VmExtensionState]
18552
+ #
18553
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18554
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18555
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18556
+ def get_instance_vm_extension_state(project, zone, instance, extension_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18557
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{instance}/vmExtensionStates/{extensionName}', options)
18558
+ command.response_representation = Google::Apis::ComputeAlpha::VmExtensionState::Representation
18559
+ command.response_class = Google::Apis::ComputeAlpha::VmExtensionState
18560
+ command.params['project'] = project unless project.nil?
18561
+ command.params['zone'] = zone unless zone.nil?
18562
+ command.params['instance'] = instance unless instance.nil?
18563
+ command.params['extensionName'] = extension_name unless extension_name.nil?
18564
+ command.query['fields'] = fields unless fields.nil?
18565
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18566
+ command.query['userIp'] = user_ip unless user_ip.nil?
18567
+ execute_or_queue_command(command, &block)
18568
+ end
18569
+
18373
18570
  # Creates an instance resource in the specified project using the data
18374
18571
  # included in the request.
18375
18572
  # @param [String] project
@@ -18691,6 +18888,127 @@ module Google
18691
18888
  execute_or_queue_command(command, &block)
18692
18889
  end
18693
18890
 
18891
+ # Lists all VM extensions states for a specific instance.
18892
+ # This is a read-only API.
18893
+ # @param [String] project
18894
+ # Project ID for this request.
18895
+ # @param [String] zone
18896
+ # Required. Name of the zone for this request.
18897
+ # @param [String] instance
18898
+ # Name of the target instance scoping this request.
18899
+ # @param [String] filter
18900
+ # A filter expression that filters resources listed in the response. Most
18901
+ # Compute resources support two types of filter expressions:
18902
+ # expressions that support regular expressions and expressions that follow
18903
+ # API improvement proposal AIP-160.
18904
+ # These two types of filter expressions cannot be mixed in one request.
18905
+ # If you want to use AIP-160, your expression must specify the field name, an
18906
+ # operator, and the value that you want to use for filtering. The value
18907
+ # must be a string, a number, or a boolean. The operator
18908
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
18909
+ # For example, if you are filtering Compute Engine instances, you can
18910
+ # exclude instances named `example-instance` by specifying
18911
+ # `name != example-instance`.
18912
+ # The `:*` comparison can be used to test whether a key has been defined.
18913
+ # For example, to find all objects with `owner` label use:
18914
+ # ```
18915
+ # labels.owner:*
18916
+ # ```
18917
+ # You can also filter nested fields. For example, you could specify
18918
+ # `scheduling.automaticRestart = false` to include instances only
18919
+ # if they are not scheduled for automatic restarts. You can use filtering
18920
+ # on nested fields to filter based onresource labels.
18921
+ # To filter on multiple expressions, provide each separate expression within
18922
+ # parentheses. For example:
18923
+ # ```
18924
+ # (scheduling.automaticRestart = true)
18925
+ # (cpuPlatform = "Intel Skylake")
18926
+ # ```
18927
+ # By default, each expression is an `AND` expression. However, you
18928
+ # can include `AND` and `OR` expressions explicitly.
18929
+ # For example:
18930
+ # ```
18931
+ # (cpuPlatform = "Intel Skylake") OR
18932
+ # (cpuPlatform = "Intel Broadwell") AND
18933
+ # (scheduling.automaticRestart = true)
18934
+ # ```
18935
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
18936
+ # (not equal) operator against a single un-parenthesized expression with or
18937
+ # without quotes or against multiple parenthesized expressions. Examples:
18938
+ # `fieldname eq unquoted literal`
18939
+ # `fieldname eq 'single quoted literal'`
18940
+ # `fieldname eq "double quoted literal"`
18941
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
18942
+ # The literal value is interpreted as a regular expression using GoogleRE2
18943
+ # library syntax.
18944
+ # The literal value must match the entire field.
18945
+ # For example, to filter for instances that do not end with name "instance",
18946
+ # you would use `name ne .*instance`.
18947
+ # You cannot combine constraints on multiple fields using regular
18948
+ # expressions.
18949
+ # @param [Fixnum] max_results
18950
+ # The maximum number of results per page that should be returned.
18951
+ # If the number of available results is larger than `maxResults`,
18952
+ # Compute Engine returns a `nextPageToken` that can be used to get
18953
+ # the next page of results in subsequent list requests. Acceptable values are
18954
+ # `0` to `500`, inclusive. (Default: `500`)
18955
+ # @param [String] order_by
18956
+ # Sorts list results by a certain order. By default, results
18957
+ # are returned in alphanumerical order based on the resource name.
18958
+ # You can also sort results in descending order based on the creation
18959
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
18960
+ # results based on the `creationTimestamp` field in
18961
+ # reverse chronological order (newest result first). Use this to sort
18962
+ # resources like operations so that the newest operation is returned first.
18963
+ # Currently, only sorting by `name` or
18964
+ # `creationTimestamp desc` is supported.
18965
+ # @param [String] page_token
18966
+ # Specifies a page token to use. Set `pageToken` to the
18967
+ # `nextPageToken` returned by a previous list request to get
18968
+ # the next page of results.
18969
+ # @param [Boolean] return_partial_success
18970
+ # Opt-in for partial success behavior which provides partial results in case
18971
+ # of failure. The default value is false.
18972
+ # For example, when partial success behavior is enabled, aggregatedList for a
18973
+ # single zone scope either returns all resources in the zone or no resources,
18974
+ # with an error code.
18975
+ # @param [String] fields
18976
+ # Selector specifying which fields to include in a partial response.
18977
+ # @param [String] quota_user
18978
+ # Available to use for quota purposes for server-side applications. Can be any
18979
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
18980
+ # @param [String] user_ip
18981
+ # Legacy name for parameter that has been superseded by `quotaUser`.
18982
+ # @param [Google::Apis::RequestOptions] options
18983
+ # Request-specific options
18984
+ #
18985
+ # @yield [result, err] Result & error if block supplied
18986
+ # @yieldparam result [Google::Apis::ComputeAlpha::ListVmExtensionStatesResponse] parsed result object
18987
+ # @yieldparam err [StandardError] error object if request failed
18988
+ #
18989
+ # @return [Google::Apis::ComputeAlpha::ListVmExtensionStatesResponse]
18990
+ #
18991
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18992
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18993
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18994
+ def list_instance_vm_extension_states(project, zone, instance, 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)
18995
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instances/{instance}/vmExtensionStates', options)
18996
+ command.response_representation = Google::Apis::ComputeAlpha::ListVmExtensionStatesResponse::Representation
18997
+ command.response_class = Google::Apis::ComputeAlpha::ListVmExtensionStatesResponse
18998
+ command.params['project'] = project unless project.nil?
18999
+ command.params['zone'] = zone unless zone.nil?
19000
+ command.params['instance'] = instance unless instance.nil?
19001
+ command.query['filter'] = filter unless filter.nil?
19002
+ command.query['maxResults'] = max_results unless max_results.nil?
19003
+ command.query['orderBy'] = order_by unless order_by.nil?
19004
+ command.query['pageToken'] = page_token unless page_token.nil?
19005
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
19006
+ command.query['fields'] = fields unless fields.nil?
19007
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
19008
+ command.query['userIp'] = user_ip unless user_ip.nil?
19009
+ execute_or_queue_command(command, &block)
19010
+ end
19011
+
18694
19012
  # Patches partner metadata of the specified instance.
18695
19013
  # @param [String] project
18696
19014
  # Project ID for this request.
@@ -20250,6 +20568,9 @@ module Google
20250
20568
  # Whether to clear secure tags from the instance.
20251
20569
  # This property if set to true will clear secure tags regardless of theresource.
20252
20570
  # secure_tags.
20571
+ # @param [Boolean] discard_local_ssd
20572
+ # Whether to discard local SSDs from the instance during restart
20573
+ # default value is false.
20253
20574
  # @param [String] minimal_action
20254
20575
  # Specifies the action to take when updating an instance even if the
20255
20576
  # updated properties do not require it. If not specified, then
@@ -20292,7 +20613,7 @@ module Google
20292
20613
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
20293
20614
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
20294
20615
  # @raise [Google::Apis::AuthorizationError] Authorization is required
20295
- def update_instance(project, zone, instance, instance_object = nil, clear_secure_tag: nil, minimal_action: nil, most_disruptive_allowed_action: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
20616
+ def update_instance(project, zone, instance, instance_object = nil, clear_secure_tag: nil, discard_local_ssd: nil, minimal_action: nil, most_disruptive_allowed_action: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
20296
20617
  command = make_simple_command(:put, 'projects/{project}/zones/{zone}/instances/{instance}', options)
20297
20618
  command.request_representation = Google::Apis::ComputeAlpha::Instance::Representation
20298
20619
  command.request_object = instance_object
@@ -20302,6 +20623,7 @@ module Google
20302
20623
  command.params['zone'] = zone unless zone.nil?
20303
20624
  command.params['instance'] = instance unless instance.nil?
20304
20625
  command.query['clearSecureTag'] = clear_secure_tag unless clear_secure_tag.nil?
20626
+ command.query['discardLocalSsd'] = discard_local_ssd unless discard_local_ssd.nil?
20305
20627
  command.query['minimalAction'] = minimal_action unless minimal_action.nil?
20306
20628
  command.query['mostDisruptiveAllowedAction'] = most_disruptive_allowed_action unless most_disruptive_allowed_action.nil?
20307
20629
  command.query['requestId'] = request_id unless request_id.nil?
@@ -32092,12 +32414,65 @@ module Google
32092
32414
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32093
32415
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32094
32416
  # @raise [Google::Apis::AuthorizationError] Authorization is required
32095
- def remove_organization_security_policy_association(security_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32096
- command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/removeAssociation', options)
32417
+ def remove_organization_security_policy_association(security_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32418
+ command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/removeAssociation', options)
32419
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
32420
+ command.response_class = Google::Apis::ComputeAlpha::Operation
32421
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
32422
+ command.query['name'] = name unless name.nil?
32423
+ command.query['requestId'] = request_id unless request_id.nil?
32424
+ command.query['fields'] = fields unless fields.nil?
32425
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
32426
+ command.query['userIp'] = user_ip unless user_ip.nil?
32427
+ execute_or_queue_command(command, &block)
32428
+ end
32429
+
32430
+ # Deletes a rule at the specified priority.
32431
+ # Use this API to modify Cloud Armor policies. Previously, alpha and beta
32432
+ # versions of this API were used to modify firewall policies. This usage is
32433
+ # now disabled for most organizations. Use firewallPolicies.removeRule
32434
+ # instead.
32435
+ # @param [String] security_policy
32436
+ # Name of the security policy to update.
32437
+ # @param [Fixnum] priority
32438
+ # The priority of the rule to remove from the security policy.
32439
+ # @param [String] request_id
32440
+ # An optional request ID to identify requests. Specify a unique request ID so
32441
+ # that if you must retry your request, the server will know to ignore the
32442
+ # request if it has already been completed.
32443
+ # For example, consider a situation where you make an initial request and
32444
+ # the request times out. If you make the request again with the same
32445
+ # request ID, the server can check if original operation with the same
32446
+ # request ID was received, and if so, will ignore the second request. This
32447
+ # prevents clients from accidentally creating duplicate commitments.
32448
+ # The request ID must be
32449
+ # a valid UUID with the exception that zero UUID is not supported
32450
+ # (00000000-0000-0000-0000-000000000000).
32451
+ # @param [String] fields
32452
+ # Selector specifying which fields to include in a partial response.
32453
+ # @param [String] quota_user
32454
+ # Available to use for quota purposes for server-side applications. Can be any
32455
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
32456
+ # @param [String] user_ip
32457
+ # Legacy name for parameter that has been superseded by `quotaUser`.
32458
+ # @param [Google::Apis::RequestOptions] options
32459
+ # Request-specific options
32460
+ #
32461
+ # @yield [result, err] Result & error if block supplied
32462
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
32463
+ # @yieldparam err [StandardError] error object if request failed
32464
+ #
32465
+ # @return [Google::Apis::ComputeAlpha::Operation]
32466
+ #
32467
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32468
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32469
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
32470
+ def remove_organization_security_policy_rule(security_policy, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32471
+ command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/removeRule', options)
32097
32472
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
32098
32473
  command.response_class = Google::Apis::ComputeAlpha::Operation
32099
32474
  command.params['securityPolicy'] = security_policy unless security_policy.nil?
32100
- command.query['name'] = name unless name.nil?
32475
+ command.query['priority'] = priority unless priority.nil?
32101
32476
  command.query['requestId'] = request_id unless request_id.nil?
32102
32477
  command.query['fields'] = fields unless fields.nil?
32103
32478
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -32105,15 +32480,43 @@ module Google
32105
32480
  execute_or_queue_command(command, &block)
32106
32481
  end
32107
32482
 
32108
- # Deletes a rule at the specified priority.
32109
- # Use this API to modify Cloud Armor policies. Previously, alpha and beta
32110
- # versions of this API were used to modify firewall policies. This usage is
32111
- # now disabled for most organizations. Use firewallPolicies.removeRule
32112
- # instead.
32113
- # @param [String] security_policy
32114
- # Name of the security policy to update.
32115
- # @param [Fixnum] priority
32116
- # The priority of the rule to remove from the security policy.
32483
+ # Returns the specified SnapshotRecycleBinPolicy.
32484
+ # @param [String] organization
32485
+ # Organization ID for this request.
32486
+ # @param [String] fields
32487
+ # Selector specifying which fields to include in a partial response.
32488
+ # @param [String] quota_user
32489
+ # Available to use for quota purposes for server-side applications. Can be any
32490
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
32491
+ # @param [String] user_ip
32492
+ # Legacy name for parameter that has been superseded by `quotaUser`.
32493
+ # @param [Google::Apis::RequestOptions] options
32494
+ # Request-specific options
32495
+ #
32496
+ # @yield [result, err] Result & error if block supplied
32497
+ # @yieldparam result [Google::Apis::ComputeAlpha::SnapshotRecycleBinPolicy] parsed result object
32498
+ # @yieldparam err [StandardError] error object if request failed
32499
+ #
32500
+ # @return [Google::Apis::ComputeAlpha::SnapshotRecycleBinPolicy]
32501
+ #
32502
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32503
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32504
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
32505
+ def get_organization_snapshot_recycle_bin_policy(organization, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32506
+ command = make_simple_command(:get, '{+organization}/global/snapshotRecycleBinPolicy', options)
32507
+ command.response_representation = Google::Apis::ComputeAlpha::SnapshotRecycleBinPolicy::Representation
32508
+ command.response_class = Google::Apis::ComputeAlpha::SnapshotRecycleBinPolicy
32509
+ command.params['organization'] = organization unless organization.nil?
32510
+ command.query['fields'] = fields unless fields.nil?
32511
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
32512
+ command.query['userIp'] = user_ip unless user_ip.nil?
32513
+ execute_or_queue_command(command, &block)
32514
+ end
32515
+
32516
+ # Patches the SnapshotRecycleBinPolicy.
32517
+ # @param [String] organization
32518
+ # Organization ID for this request.
32519
+ # @param [Google::Apis::ComputeAlpha::SnapshotRecycleBinPolicy] snapshot_recycle_bin_policy_object
32117
32520
  # @param [String] request_id
32118
32521
  # An optional request ID to identify requests. Specify a unique request ID so
32119
32522
  # that if you must retry your request, the server will know to ignore the
@@ -32126,6 +32529,8 @@ module Google
32126
32529
  # The request ID must be
32127
32530
  # a valid UUID with the exception that zero UUID is not supported
32128
32531
  # (00000000-0000-0000-0000-000000000000).
32532
+ # @param [String] update_mask
32533
+ # update_mask indicates fields to be updated as part of this request.
32129
32534
  # @param [String] fields
32130
32535
  # Selector specifying which fields to include in a partial response.
32131
32536
  # @param [String] quota_user
@@ -32145,13 +32550,15 @@ module Google
32145
32550
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32146
32551
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32147
32552
  # @raise [Google::Apis::AuthorizationError] Authorization is required
32148
- def remove_organization_security_policy_rule(security_policy, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32149
- command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/removeRule', options)
32553
+ def patch_organization_snapshot_recycle_bin_policy(organization, snapshot_recycle_bin_policy_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32554
+ command = make_simple_command(:patch, '{+organization}/global/snapshotRecycleBinPolicy', options)
32555
+ command.request_representation = Google::Apis::ComputeAlpha::SnapshotRecycleBinPolicy::Representation
32556
+ command.request_object = snapshot_recycle_bin_policy_object
32150
32557
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
32151
32558
  command.response_class = Google::Apis::ComputeAlpha::Operation
32152
- command.params['securityPolicy'] = security_policy unless security_policy.nil?
32153
- command.query['priority'] = priority unless priority.nil?
32559
+ command.params['organization'] = organization unless organization.nil?
32154
32560
  command.query['requestId'] = request_id unless request_id.nil?
32561
+ command.query['updateMask'] = update_mask unless update_mask.nil?
32155
32562
  command.query['fields'] = fields unless fields.nil?
32156
32563
  command.query['quotaUser'] = quota_user unless quota_user.nil?
32157
32564
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -59102,6 +59509,91 @@ module Google
59102
59509
  execute_or_queue_command(command, &block)
59103
59510
  end
59104
59511
 
59512
+ # Returns the specified SnapshotRecycleBinPolicy.
59513
+ # @param [String] project
59514
+ # Project ID for this request.
59515
+ # @param [String] fields
59516
+ # Selector specifying which fields to include in a partial response.
59517
+ # @param [String] quota_user
59518
+ # Available to use for quota purposes for server-side applications. Can be any
59519
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
59520
+ # @param [String] user_ip
59521
+ # Legacy name for parameter that has been superseded by `quotaUser`.
59522
+ # @param [Google::Apis::RequestOptions] options
59523
+ # Request-specific options
59524
+ #
59525
+ # @yield [result, err] Result & error if block supplied
59526
+ # @yieldparam result [Google::Apis::ComputeAlpha::SnapshotRecycleBinPolicy] parsed result object
59527
+ # @yieldparam err [StandardError] error object if request failed
59528
+ #
59529
+ # @return [Google::Apis::ComputeAlpha::SnapshotRecycleBinPolicy]
59530
+ #
59531
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
59532
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
59533
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
59534
+ def get_snapshot_recycle_bin_policy(project, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
59535
+ command = make_simple_command(:get, 'projects/{project}/global/snapshotRecycleBinPolicy', options)
59536
+ command.response_representation = Google::Apis::ComputeAlpha::SnapshotRecycleBinPolicy::Representation
59537
+ command.response_class = Google::Apis::ComputeAlpha::SnapshotRecycleBinPolicy
59538
+ command.params['project'] = project unless project.nil?
59539
+ command.query['fields'] = fields unless fields.nil?
59540
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
59541
+ command.query['userIp'] = user_ip unless user_ip.nil?
59542
+ execute_or_queue_command(command, &block)
59543
+ end
59544
+
59545
+ # Patches the SnapshotRecycleBinPolicy.
59546
+ # @param [String] project
59547
+ # Project ID for this request.
59548
+ # @param [Google::Apis::ComputeAlpha::SnapshotRecycleBinPolicy] snapshot_recycle_bin_policy_object
59549
+ # @param [String] request_id
59550
+ # An optional request ID to identify requests. Specify a unique request ID so
59551
+ # that if you must retry your request, the server will know to ignore the
59552
+ # request if it has already been completed.
59553
+ # For example, consider a situation where you make an initial request and
59554
+ # the request times out. If you make the request again with the same
59555
+ # request ID, the server can check if original operation with the same
59556
+ # request ID was received, and if so, will ignore the second request. This
59557
+ # prevents clients from accidentally creating duplicate commitments.
59558
+ # The request ID must be
59559
+ # a valid UUID with the exception that zero UUID is not supported
59560
+ # (00000000-0000-0000-0000-000000000000).
59561
+ # @param [String] update_mask
59562
+ # update_mask indicates fields to be updated as part of this request.
59563
+ # @param [String] fields
59564
+ # Selector specifying which fields to include in a partial response.
59565
+ # @param [String] quota_user
59566
+ # Available to use for quota purposes for server-side applications. Can be any
59567
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
59568
+ # @param [String] user_ip
59569
+ # Legacy name for parameter that has been superseded by `quotaUser`.
59570
+ # @param [Google::Apis::RequestOptions] options
59571
+ # Request-specific options
59572
+ #
59573
+ # @yield [result, err] Result & error if block supplied
59574
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
59575
+ # @yieldparam err [StandardError] error object if request failed
59576
+ #
59577
+ # @return [Google::Apis::ComputeAlpha::Operation]
59578
+ #
59579
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
59580
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
59581
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
59582
+ def patch_snapshot_recycle_bin_policy(project, snapshot_recycle_bin_policy_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
59583
+ command = make_simple_command(:patch, 'projects/{project}/global/snapshotRecycleBinPolicy', options)
59584
+ command.request_representation = Google::Apis::ComputeAlpha::SnapshotRecycleBinPolicy::Representation
59585
+ command.request_object = snapshot_recycle_bin_policy_object
59586
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
59587
+ command.response_class = Google::Apis::ComputeAlpha::Operation
59588
+ command.params['project'] = project unless project.nil?
59589
+ command.query['requestId'] = request_id unless request_id.nil?
59590
+ command.query['updateMask'] = update_mask unless update_mask.nil?
59591
+ command.query['fields'] = fields unless fields.nil?
59592
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
59593
+ command.query['userIp'] = user_ip unless user_ip.nil?
59594
+ execute_or_queue_command(command, &block)
59595
+ end
59596
+
59105
59597
  # Get snapshot settings.
59106
59598
  # @param [String] project
59107
59599
  # Project ID for this request.
@@ -59408,6 +59900,44 @@ module Google
59408
59900
  execute_or_queue_command(command, &block)
59409
59901
  end
59410
59902
 
59903
+ # Returns the effective recycle bin rule for a snapshot by merging org and
59904
+ # project level rules. If no rules are defined at org and project level, the
59905
+ # standard default rule is returned.
59906
+ # @param [String] project
59907
+ # Project ID for this request.
59908
+ # @param [String] snapshot
59909
+ # Name of the Snapshot resource to get the effective recycle bin rule for.
59910
+ # @param [String] fields
59911
+ # Selector specifying which fields to include in a partial response.
59912
+ # @param [String] quota_user
59913
+ # Available to use for quota purposes for server-side applications. Can be any
59914
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
59915
+ # @param [String] user_ip
59916
+ # Legacy name for parameter that has been superseded by `quotaUser`.
59917
+ # @param [Google::Apis::RequestOptions] options
59918
+ # Request-specific options
59919
+ #
59920
+ # @yield [result, err] Result & error if block supplied
59921
+ # @yieldparam result [Google::Apis::ComputeAlpha::SnapshotsGetEffectiveRecycleBinRuleResponse] parsed result object
59922
+ # @yieldparam err [StandardError] error object if request failed
59923
+ #
59924
+ # @return [Google::Apis::ComputeAlpha::SnapshotsGetEffectiveRecycleBinRuleResponse]
59925
+ #
59926
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
59927
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
59928
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
59929
+ def get_snapshot_effective_recycle_bin_rule(project, snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
59930
+ command = make_simple_command(:get, 'projects/{project}/global/snapshots/{snapshot}/getEffectiveRecycleBinRule', options)
59931
+ command.response_representation = Google::Apis::ComputeAlpha::SnapshotsGetEffectiveRecycleBinRuleResponse::Representation
59932
+ command.response_class = Google::Apis::ComputeAlpha::SnapshotsGetEffectiveRecycleBinRuleResponse
59933
+ command.params['project'] = project unless project.nil?
59934
+ command.params['snapshot'] = snapshot unless snapshot.nil?
59935
+ command.query['fields'] = fields unless fields.nil?
59936
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
59937
+ command.query['userIp'] = user_ip unless user_ip.nil?
59938
+ execute_or_queue_command(command, &block)
59939
+ end
59940
+
59411
59941
  # Gets the access control policy for a resource. May be empty if no such
59412
59942
  # policy or resource exists.
59413
59943
  # @param [String] project
@@ -70235,6 +70765,44 @@ module Google
70235
70765
  execute_or_queue_command(command, &block)
70236
70766
  end
70237
70767
 
70768
+ # Retrieves details of a specific VM extension.
70769
+ # @param [String] project
70770
+ # Project ID for this request.
70771
+ # @param [String] zone
70772
+ # Name of the zone for this request.
70773
+ # @param [String] extension_name
70774
+ # @param [String] fields
70775
+ # Selector specifying which fields to include in a partial response.
70776
+ # @param [String] quota_user
70777
+ # Available to use for quota purposes for server-side applications. Can be any
70778
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
70779
+ # @param [String] user_ip
70780
+ # Legacy name for parameter that has been superseded by `quotaUser`.
70781
+ # @param [Google::Apis::RequestOptions] options
70782
+ # Request-specific options
70783
+ #
70784
+ # @yield [result, err] Result & error if block supplied
70785
+ # @yieldparam result [Google::Apis::ComputeAlpha::VmExtension] parsed result object
70786
+ # @yieldparam err [StandardError] error object if request failed
70787
+ #
70788
+ # @return [Google::Apis::ComputeAlpha::VmExtension]
70789
+ #
70790
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
70791
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
70792
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
70793
+ def get_zone_vm_extension_policy_vm_extension(project, zone, extension_name, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
70794
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/vmExtensions/{extensionName}', options)
70795
+ command.response_representation = Google::Apis::ComputeAlpha::VmExtension::Representation
70796
+ command.response_class = Google::Apis::ComputeAlpha::VmExtension
70797
+ command.params['project'] = project unless project.nil?
70798
+ command.params['zone'] = zone unless zone.nil?
70799
+ command.params['extensionName'] = extension_name unless extension_name.nil?
70800
+ command.query['fields'] = fields unless fields.nil?
70801
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
70802
+ command.query['userIp'] = user_ip unless user_ip.nil?
70803
+ execute_or_queue_command(command, &block)
70804
+ end
70805
+
70238
70806
  # Creates a new zone-level VM extension policy within a project.
70239
70807
  # @param [String] project
70240
70808
  # Project ID for this request.
@@ -70404,6 +70972,124 @@ module Google
70404
70972
  execute_or_queue_command(command, &block)
70405
70973
  end
70406
70974
 
70975
+ # Lists all VM extensions within a specific zone for a project.
70976
+ # This is a read-only API.
70977
+ # @param [String] project
70978
+ # Required. Project ID for this request.
70979
+ # @param [String] zone
70980
+ # Name of the zone for this request.
70981
+ # @param [String] filter
70982
+ # A filter expression that filters resources listed in the response. Most
70983
+ # Compute resources support two types of filter expressions:
70984
+ # expressions that support regular expressions and expressions that follow
70985
+ # API improvement proposal AIP-160.
70986
+ # These two types of filter expressions cannot be mixed in one request.
70987
+ # If you want to use AIP-160, your expression must specify the field name, an
70988
+ # operator, and the value that you want to use for filtering. The value
70989
+ # must be a string, a number, or a boolean. The operator
70990
+ # must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`.
70991
+ # For example, if you are filtering Compute Engine instances, you can
70992
+ # exclude instances named `example-instance` by specifying
70993
+ # `name != example-instance`.
70994
+ # The `:*` comparison can be used to test whether a key has been defined.
70995
+ # For example, to find all objects with `owner` label use:
70996
+ # ```
70997
+ # labels.owner:*
70998
+ # ```
70999
+ # You can also filter nested fields. For example, you could specify
71000
+ # `scheduling.automaticRestart = false` to include instances only
71001
+ # if they are not scheduled for automatic restarts. You can use filtering
71002
+ # on nested fields to filter based onresource labels.
71003
+ # To filter on multiple expressions, provide each separate expression within
71004
+ # parentheses. For example:
71005
+ # ```
71006
+ # (scheduling.automaticRestart = true)
71007
+ # (cpuPlatform = "Intel Skylake")
71008
+ # ```
71009
+ # By default, each expression is an `AND` expression. However, you
71010
+ # can include `AND` and `OR` expressions explicitly.
71011
+ # For example:
71012
+ # ```
71013
+ # (cpuPlatform = "Intel Skylake") OR
71014
+ # (cpuPlatform = "Intel Broadwell") AND
71015
+ # (scheduling.automaticRestart = true)
71016
+ # ```
71017
+ # If you want to use a regular expression, use the `eq` (equal) or `ne`
71018
+ # (not equal) operator against a single un-parenthesized expression with or
71019
+ # without quotes or against multiple parenthesized expressions. Examples:
71020
+ # `fieldname eq unquoted literal`
71021
+ # `fieldname eq 'single quoted literal'`
71022
+ # `fieldname eq "double quoted literal"`
71023
+ # `(fieldname1 eq literal) (fieldname2 ne "literal")`
71024
+ # The literal value is interpreted as a regular expression using GoogleRE2
71025
+ # library syntax.
71026
+ # The literal value must match the entire field.
71027
+ # For example, to filter for instances that do not end with name "instance",
71028
+ # you would use `name ne .*instance`.
71029
+ # You cannot combine constraints on multiple fields using regular
71030
+ # expressions.
71031
+ # @param [Fixnum] max_results
71032
+ # The maximum number of results per page that should be returned.
71033
+ # If the number of available results is larger than `maxResults`,
71034
+ # Compute Engine returns a `nextPageToken` that can be used to get
71035
+ # the next page of results in subsequent list requests. Acceptable values are
71036
+ # `0` to `500`, inclusive. (Default: `500`)
71037
+ # @param [String] order_by
71038
+ # Sorts list results by a certain order. By default, results
71039
+ # are returned in alphanumerical order based on the resource name.
71040
+ # You can also sort results in descending order based on the creation
71041
+ # timestamp using `orderBy="creationTimestamp desc"`. This sorts
71042
+ # results based on the `creationTimestamp` field in
71043
+ # reverse chronological order (newest result first). Use this to sort
71044
+ # resources like operations so that the newest operation is returned first.
71045
+ # Currently, only sorting by `name` or
71046
+ # `creationTimestamp desc` is supported.
71047
+ # @param [String] page_token
71048
+ # Specifies a page token to use. Set `pageToken` to the
71049
+ # `nextPageToken` returned by a previous list request to get
71050
+ # the next page of results.
71051
+ # @param [Boolean] return_partial_success
71052
+ # Opt-in for partial success behavior which provides partial results in case
71053
+ # of failure. The default value is false.
71054
+ # For example, when partial success behavior is enabled, aggregatedList for a
71055
+ # single zone scope either returns all resources in the zone or no resources,
71056
+ # with an error code.
71057
+ # @param [String] fields
71058
+ # Selector specifying which fields to include in a partial response.
71059
+ # @param [String] quota_user
71060
+ # Available to use for quota purposes for server-side applications. Can be any
71061
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
71062
+ # @param [String] user_ip
71063
+ # Legacy name for parameter that has been superseded by `quotaUser`.
71064
+ # @param [Google::Apis::RequestOptions] options
71065
+ # Request-specific options
71066
+ #
71067
+ # @yield [result, err] Result & error if block supplied
71068
+ # @yieldparam result [Google::Apis::ComputeAlpha::ListVmExtensionsResponse] parsed result object
71069
+ # @yieldparam err [StandardError] error object if request failed
71070
+ #
71071
+ # @return [Google::Apis::ComputeAlpha::ListVmExtensionsResponse]
71072
+ #
71073
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
71074
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
71075
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
71076
+ def list_zone_vm_extension_policy_vm_extensions(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)
71077
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/vmExtensions', options)
71078
+ command.response_representation = Google::Apis::ComputeAlpha::ListVmExtensionsResponse::Representation
71079
+ command.response_class = Google::Apis::ComputeAlpha::ListVmExtensionsResponse
71080
+ command.params['project'] = project unless project.nil?
71081
+ command.params['zone'] = zone unless zone.nil?
71082
+ command.query['filter'] = filter unless filter.nil?
71083
+ command.query['maxResults'] = max_results unless max_results.nil?
71084
+ command.query['orderBy'] = order_by unless order_by.nil?
71085
+ command.query['pageToken'] = page_token unless page_token.nil?
71086
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
71087
+ command.query['fields'] = fields unless fields.nil?
71088
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
71089
+ command.query['userIp'] = user_ip unless user_ip.nil?
71090
+ execute_or_queue_command(command, &block)
71091
+ end
71092
+
70407
71093
  # Modifies an existing zone VM extension policy.
70408
71094
  # @param [String] project
70409
71095
  # Project ID for this request.