google-apis-compute_alpha 0.17.0 → 0.18.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.
@@ -6944,8 +6944,7 @@ module Google
6944
6944
  execute_or_queue_command(command, &block)
6945
6945
  end
6946
6946
 
6947
- # Retrieves the specified Operations resource. Gets a list of operations by
6948
- # making a `list()` request.
6947
+ # Retrieves the specified Operations resource.
6949
6948
  # @param [String] project
6950
6949
  # Project ID for this request.
6951
6950
  # @param [String] operation
@@ -10013,7 +10012,11 @@ module Google
10013
10012
  # the instances in the group are still in the process of being patched. You must
10014
10013
  # separately verify the status of the individual instances with the
10015
10014
  # listManagedInstances method. This method supports PATCH semantics and uses the
10016
- # JSON merge patch format and processing rules.
10015
+ # JSON merge patch format and processing rules. If you update your group to
10016
+ # specify a new template or instance configuration, it's possible that your
10017
+ # intended specification for each VM in the group is different from the current
10018
+ # state of that VM. To learn how to apply an updated configuration to the VMs in
10019
+ # a MIG, see Updating instances in a MIG.
10017
10020
  # @param [String] project
10018
10021
  # Project ID for this request.
10019
10022
  # @param [String] zone
@@ -10806,7 +10809,11 @@ module Google
10806
10809
  # request. This operation is marked as DONE when the group is updated even if
10807
10810
  # the instances in the group have not yet been updated. You must separately
10808
10811
  # verify the status of the individual instances with the listManagedInstances
10809
- # method.
10812
+ # method. If you update your group to specify a new template or instance
10813
+ # configuration, it's possible that your intended specification for each VM in
10814
+ # the group is different from the current state of that VM. To learn how to
10815
+ # apply an updated configuration to the VMs in a MIG, see Updating instances in
10816
+ # a MIG.
10810
10817
  # @param [String] project
10811
10818
  # Project ID for this request.
10812
10819
  # @param [String] zone
@@ -11948,8 +11955,9 @@ module Google
11948
11955
  execute_or_queue_command(command, &block)
11949
11956
  end
11950
11957
 
11951
- # Retrieves aggregated list of all of the instances in your project across all
11952
- # regions and zones.
11958
+ # Retrieves an aggregated list of all of the instances in your project across
11959
+ # all regions and zones. The performance of this method degrades when a filter
11960
+ # is specified on a project that has a very large number of instances.
11953
11961
  # @param [String] project
11954
11962
  # Project ID for this request.
11955
11963
  # @param [String] filter
@@ -26123,18 +26131,25 @@ module Google
26123
26131
  execute_or_queue_command(command, &block)
26124
26132
  end
26125
26133
 
26126
- # Deletes the specified InPlaceSnapshot resource. Keep in mind that deleting a
26127
- # single inPlaceSnapshot might not necessarily delete all the data on that
26128
- # inPlaceSnapshot. If any data on the inPlaceSnapshot that is marked for
26129
- # deletion is needed for subsequent inPlaceSnapshots, the data will be moved to
26130
- # the next corresponding inPlaceSnapshot. For more information, see Deleting
26131
- # inPlaceSnapshots.
26134
+ # Flags the specified instances to be immediately removed from the managed
26135
+ # instance group. Abandoning an instance does not delete the instance, but it
26136
+ # does remove the instance from any target pools that are applied by the managed
26137
+ # instance group. This method reduces the targetSize of the managed instance
26138
+ # group by the number of instances that you abandon. This operation is marked as
26139
+ # DONE when the action is scheduled even if the instances have not yet been
26140
+ # removed from the group. You must separately verify the status of the
26141
+ # abandoning action with the listmanagedinstances method. If the group is part
26142
+ # of a backend service that has enabled connection draining, it can take up to
26143
+ # 60 seconds after the connection draining duration has elapsed before the VM
26144
+ # instance is removed or deleted. You can specify a maximum of 1000 instances
26145
+ # with this method per request.
26132
26146
  # @param [String] project
26133
26147
  # Project ID for this request.
26134
26148
  # @param [String] region
26135
- # The name of the region for this request.
26136
- # @param [String] in_place_snapshot
26137
- # Name of the InPlaceSnapshot resource to delete.
26149
+ # Name of the region scoping this request.
26150
+ # @param [String] instance_group_manager
26151
+ # Name of the managed instance group.
26152
+ # @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersAbandonInstancesRequest] region_instance_group_managers_abandon_instances_request_object
26138
26153
  # @param [String] request_id
26139
26154
  # An optional request ID to identify requests. Specify a unique request ID so
26140
26155
  # that if you must retry your request, the server will know to ignore the
@@ -26164,13 +26179,15 @@ module Google
26164
26179
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26165
26180
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26166
26181
  # @raise [Google::Apis::AuthorizationError] Authorization is required
26167
- def delete_region_in_place_snapshot(project, region, in_place_snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26168
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/inPlaceSnapshots/{inPlaceSnapshot}', options)
26182
+ def abandon_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_abandon_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26183
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances', options)
26184
+ command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersAbandonInstancesRequest::Representation
26185
+ command.request_object = region_instance_group_managers_abandon_instances_request_object
26169
26186
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
26170
26187
  command.response_class = Google::Apis::ComputeAlpha::Operation
26171
26188
  command.params['project'] = project unless project.nil?
26172
26189
  command.params['region'] = region unless region.nil?
26173
- command.params['inPlaceSnapshot'] = in_place_snapshot unless in_place_snapshot.nil?
26190
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
26174
26191
  command.query['requestId'] = request_id unless request_id.nil?
26175
26192
  command.query['fields'] = fields unless fields.nil?
26176
26193
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -26178,13 +26195,14 @@ module Google
26178
26195
  execute_or_queue_command(command, &block)
26179
26196
  end
26180
26197
 
26181
- # Returns the specified InPlaceSnapshot resource in the specified region.
26198
+ # Apply updates to selected instances the managed instance group.
26182
26199
  # @param [String] project
26183
26200
  # Project ID for this request.
26184
26201
  # @param [String] region
26185
- # The name of the region for this request.
26186
- # @param [String] in_place_snapshot
26187
- # Name of the InPlaceSnapshot resource to return.
26202
+ # Name of the region scoping this request, should conform to RFC1035.
26203
+ # @param [String] instance_group_manager
26204
+ # The name of the managed instance group, should conform to RFC1035.
26205
+ # @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersApplyUpdatesRequest] region_instance_group_managers_apply_updates_request_object
26188
26206
  # @param [String] fields
26189
26207
  # Selector specifying which fields to include in a partial response.
26190
26208
  # @param [String] quota_user
@@ -26196,37 +26214,52 @@ module Google
26196
26214
  # Request-specific options
26197
26215
  #
26198
26216
  # @yield [result, err] Result & error if block supplied
26199
- # @yieldparam result [Google::Apis::ComputeAlpha::InPlaceSnapshot] parsed result object
26217
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
26200
26218
  # @yieldparam err [StandardError] error object if request failed
26201
26219
  #
26202
- # @return [Google::Apis::ComputeAlpha::InPlaceSnapshot]
26220
+ # @return [Google::Apis::ComputeAlpha::Operation]
26203
26221
  #
26204
26222
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26205
26223
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26206
26224
  # @raise [Google::Apis::AuthorizationError] Authorization is required
26207
- def get_region_in_place_snapshot(project, region, in_place_snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26208
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/inPlaceSnapshots/{inPlaceSnapshot}', options)
26209
- command.response_representation = Google::Apis::ComputeAlpha::InPlaceSnapshot::Representation
26210
- command.response_class = Google::Apis::ComputeAlpha::InPlaceSnapshot
26225
+ def apply_region_instance_group_manager_updates_to_instances(project, region, instance_group_manager, region_instance_group_managers_apply_updates_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26226
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances', options)
26227
+ command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersApplyUpdatesRequest::Representation
26228
+ command.request_object = region_instance_group_managers_apply_updates_request_object
26229
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
26230
+ command.response_class = Google::Apis::ComputeAlpha::Operation
26211
26231
  command.params['project'] = project unless project.nil?
26212
26232
  command.params['region'] = region unless region.nil?
26213
- command.params['inPlaceSnapshot'] = in_place_snapshot unless in_place_snapshot.nil?
26233
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
26214
26234
  command.query['fields'] = fields unless fields.nil?
26215
26235
  command.query['quotaUser'] = quota_user unless quota_user.nil?
26216
26236
  command.query['userIp'] = user_ip unless user_ip.nil?
26217
26237
  execute_or_queue_command(command, &block)
26218
26238
  end
26219
26239
 
26220
- # Gets the access control policy for a resource. May be empty if no such policy
26221
- # or resource exists.
26240
+ # Creates instances with per-instance configs in this regional managed instance
26241
+ # group. Instances are created using the current instance template. The create
26242
+ # instances operation is marked DONE if the createInstances request is
26243
+ # successful. The underlying actions take additional time. You must separately
26244
+ # verify the status of the creating or actions with the listmanagedinstances
26245
+ # method.
26222
26246
  # @param [String] project
26223
26247
  # Project ID for this request.
26224
26248
  # @param [String] region
26225
- # The name of the region for this request.
26226
- # @param [String] resource
26227
- # Name or id of the resource for this request.
26228
- # @param [Fixnum] options_requested_policy_version
26229
- # Requested IAM Policy version.
26249
+ # The name of the region where the managed instance group is located. It should
26250
+ # conform to RFC1035.
26251
+ # @param [String] instance_group_manager
26252
+ # The name of the managed instance group. It should conform to RFC1035.
26253
+ # @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersCreateInstancesRequest] region_instance_group_managers_create_instances_request_object
26254
+ # @param [String] request_id
26255
+ # An optional request ID to identify requests. Specify a unique request ID so
26256
+ # that if you must retry your request, the server will know to ignore the
26257
+ # request if it has already been completed. For example, consider a situation
26258
+ # where you make an initial request and the request times out. If you make the
26259
+ # request again with the same request ID, the server can check if original
26260
+ # operation with the same request ID was received, and if so, will ignore the
26261
+ # second request. The request ID must be a valid UUID with the exception that
26262
+ # zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
26230
26263
  # @param [String] fields
26231
26264
  # Selector specifying which fields to include in a partial response.
26232
26265
  # @param [String] quota_user
@@ -26238,34 +26271,38 @@ module Google
26238
26271
  # Request-specific options
26239
26272
  #
26240
26273
  # @yield [result, err] Result & error if block supplied
26241
- # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
26274
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
26242
26275
  # @yieldparam err [StandardError] error object if request failed
26243
26276
  #
26244
- # @return [Google::Apis::ComputeAlpha::Policy]
26277
+ # @return [Google::Apis::ComputeAlpha::Operation]
26245
26278
  #
26246
26279
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26247
26280
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26248
26281
  # @raise [Google::Apis::AuthorizationError] Authorization is required
26249
- def get_region_in_place_snapshot_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26250
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/inPlaceSnapshots/{resource}/getIamPolicy', options)
26251
- command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
26252
- command.response_class = Google::Apis::ComputeAlpha::Policy
26282
+ def create_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_create_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26283
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances', options)
26284
+ command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersCreateInstancesRequest::Representation
26285
+ command.request_object = region_instance_group_managers_create_instances_request_object
26286
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
26287
+ command.response_class = Google::Apis::ComputeAlpha::Operation
26253
26288
  command.params['project'] = project unless project.nil?
26254
26289
  command.params['region'] = region unless region.nil?
26255
- command.params['resource'] = resource unless resource.nil?
26256
- command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
26290
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
26291
+ command.query['requestId'] = request_id unless request_id.nil?
26257
26292
  command.query['fields'] = fields unless fields.nil?
26258
26293
  command.query['quotaUser'] = quota_user unless quota_user.nil?
26259
26294
  command.query['userIp'] = user_ip unless user_ip.nil?
26260
26295
  execute_or_queue_command(command, &block)
26261
26296
  end
26262
26297
 
26263
- # Creates an in-place snapshot in the specified region.
26298
+ # Deletes the specified managed instance group and all of the instances in that
26299
+ # group.
26264
26300
  # @param [String] project
26265
26301
  # Project ID for this request.
26266
26302
  # @param [String] region
26267
- # Name of the region for this request.
26268
- # @param [Google::Apis::ComputeAlpha::InPlaceSnapshot] in_place_snapshot_object
26303
+ # Name of the region scoping this request.
26304
+ # @param [String] instance_group_manager
26305
+ # Name of the managed instance group to delete.
26269
26306
  # @param [String] request_id
26270
26307
  # An optional request ID to identify requests. Specify a unique request ID so
26271
26308
  # that if you must retry your request, the server will know to ignore the
@@ -26295,14 +26332,13 @@ module Google
26295
26332
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26296
26333
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26297
26334
  # @raise [Google::Apis::AuthorizationError] Authorization is required
26298
- def insert_region_in_place_snapshot(project, region, in_place_snapshot_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26299
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/inPlaceSnapshots', options)
26300
- command.request_representation = Google::Apis::ComputeAlpha::InPlaceSnapshot::Representation
26301
- command.request_object = in_place_snapshot_object
26335
+ def delete_region_instance_group_manager(project, region, instance_group_manager, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26336
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options)
26302
26337
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
26303
26338
  command.response_class = Google::Apis::ComputeAlpha::Operation
26304
26339
  command.params['project'] = project unless project.nil?
26305
26340
  command.params['region'] = region unless region.nil?
26341
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
26306
26342
  command.query['requestId'] = request_id unless request_id.nil?
26307
26343
  command.query['fields'] = fields unless fields.nil?
26308
26344
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -26310,92 +26346,34 @@ module Google
26310
26346
  execute_or_queue_command(command, &block)
26311
26347
  end
26312
26348
 
26313
- # Retrieves the list of InPlaceSnapshot resources contained within the specified
26314
- # region.
26315
- # @param [String] project
26316
- # Project ID for this request.
26317
- # @param [String] region
26318
- # The name of the region for this request.
26319
- # @param [String] filter
26320
- # A filter expression that filters resources listed in the response. The
26321
- # expression must specify the field name, a comparison operator, and the value
26322
- # that you want to use for filtering. The value must be a string, a number, or a
26323
- # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For
26324
- # example, if you are filtering Compute Engine instances, you can exclude
26325
- # instances named `example-instance` by specifying `name != example-instance`.
26326
- # You can also filter nested fields. For example, you could specify `scheduling.
26327
- # automaticRestart = false` to include instances only if they are not scheduled
26328
- # for automatic restarts. You can use filtering on nested fields to filter based
26329
- # on resource labels. To filter on multiple expressions, provide each separate
26330
- # expression within parentheses. For example: ``` (scheduling.automaticRestart =
26331
- # true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `
26332
- # AND` expression. However, you can include `AND` and `OR` expressions
26333
- # explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform =
26334
- # "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
26335
- # @param [Fixnum] max_results
26336
- # The maximum number of results per page that should be returned. If the number
26337
- # of available results is larger than `maxResults`, Compute Engine returns a `
26338
- # nextPageToken` that can be used to get the next page of results in subsequent
26339
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
26340
- # @param [String] order_by
26341
- # Sorts list results by a certain order. By default, results are returned in
26342
- # alphanumerical order based on the resource name. You can also sort results in
26343
- # descending order based on the creation timestamp using `orderBy="
26344
- # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
26345
- # field in reverse chronological order (newest result first). Use this to sort
26346
- # resources like operations so that the newest operation is returned first.
26347
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
26348
- # @param [String] page_token
26349
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
26350
- # by a previous list request to get the next page of results.
26351
- # @param [Boolean] return_partial_success
26352
- # Opt-in for partial success behavior which provides partial results in case of
26353
- # failure. The default value is false.
26354
- # @param [String] fields
26355
- # Selector specifying which fields to include in a partial response.
26356
- # @param [String] quota_user
26357
- # Available to use for quota purposes for server-side applications. Can be any
26358
- # arbitrary string assigned to a user, but should not exceed 40 characters.
26359
- # @param [String] user_ip
26360
- # Legacy name for parameter that has been superseded by `quotaUser`.
26361
- # @param [Google::Apis::RequestOptions] options
26362
- # Request-specific options
26363
- #
26364
- # @yield [result, err] Result & error if block supplied
26365
- # @yieldparam result [Google::Apis::ComputeAlpha::InPlaceSnapshotList] parsed result object
26366
- # @yieldparam err [StandardError] error object if request failed
26367
- #
26368
- # @return [Google::Apis::ComputeAlpha::InPlaceSnapshotList]
26369
- #
26370
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26371
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26372
- # @raise [Google::Apis::AuthorizationError] Authorization is required
26373
- def list_region_in_place_snapshots(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26374
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/inPlaceSnapshots', options)
26375
- command.response_representation = Google::Apis::ComputeAlpha::InPlaceSnapshotList::Representation
26376
- command.response_class = Google::Apis::ComputeAlpha::InPlaceSnapshotList
26377
- command.params['project'] = project unless project.nil?
26378
- command.params['region'] = region unless region.nil?
26379
- command.query['filter'] = filter unless filter.nil?
26380
- command.query['maxResults'] = max_results unless max_results.nil?
26381
- command.query['orderBy'] = order_by unless order_by.nil?
26382
- command.query['pageToken'] = page_token unless page_token.nil?
26383
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
26384
- command.query['fields'] = fields unless fields.nil?
26385
- command.query['quotaUser'] = quota_user unless quota_user.nil?
26386
- command.query['userIp'] = user_ip unless user_ip.nil?
26387
- execute_or_queue_command(command, &block)
26388
- end
26389
-
26390
- # Sets the access control policy on the specified resource. Replaces any
26391
- # existing policy.
26349
+ # Flags the specified instances in the managed instance group to be immediately
26350
+ # deleted. The instances are also removed from any target pools of which they
26351
+ # were a member. This method reduces the targetSize of the managed instance
26352
+ # group by the number of instances that you delete. The deleteInstances
26353
+ # operation is marked DONE if the deleteInstances request is successful. The
26354
+ # underlying actions take additional time. You must separately verify the status
26355
+ # of the deleting action with the listmanagedinstances method. If the group is
26356
+ # part of a backend service that has enabled connection draining, it can take up
26357
+ # to 60 seconds after the connection draining duration has elapsed before the VM
26358
+ # instance is removed or deleted. You can specify a maximum of 1000 instances
26359
+ # with this method per request.
26392
26360
  # @param [String] project
26393
26361
  # Project ID for this request.
26394
26362
  # @param [String] region
26395
- # The name of the region for this request.
26396
- # @param [String] resource
26397
- # Name or id of the resource for this request.
26398
- # @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
26363
+ # Name of the region scoping this request.
26364
+ # @param [String] instance_group_manager
26365
+ # Name of the managed instance group.
26366
+ # @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersDeleteInstancesRequest] region_instance_group_managers_delete_instances_request_object
26367
+ # @param [String] request_id
26368
+ # An optional request ID to identify requests. Specify a unique request ID so
26369
+ # that if you must retry your request, the server will know to ignore the
26370
+ # request if it has already been completed. For example, consider a situation
26371
+ # where you make an initial request and the request times out. If you make the
26372
+ # request again with the same request ID, the server can check if original
26373
+ # operation with the same request ID was received, and if so, will ignore the
26374
+ # second request. This prevents clients from accidentally creating duplicate
26375
+ # commitments. The request ID must be a valid UUID with the exception that zero
26376
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
26399
26377
  # @param [String] fields
26400
26378
  # Selector specifying which fields to include in a partial response.
26401
26379
  # @param [String] quota_user
@@ -26407,48 +26385,38 @@ module Google
26407
26385
  # Request-specific options
26408
26386
  #
26409
26387
  # @yield [result, err] Result & error if block supplied
26410
- # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
26388
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
26411
26389
  # @yieldparam err [StandardError] error object if request failed
26412
26390
  #
26413
- # @return [Google::Apis::ComputeAlpha::Policy]
26391
+ # @return [Google::Apis::ComputeAlpha::Operation]
26414
26392
  #
26415
26393
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26416
26394
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26417
26395
  # @raise [Google::Apis::AuthorizationError] Authorization is required
26418
- def set_region_in_place_snapshot_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26419
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/inPlaceSnapshots/{resource}/setIamPolicy', options)
26420
- command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
26421
- command.request_object = region_set_policy_request_object
26422
- command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
26423
- command.response_class = Google::Apis::ComputeAlpha::Policy
26396
+ def delete_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_delete_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26397
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances', options)
26398
+ command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersDeleteInstancesRequest::Representation
26399
+ command.request_object = region_instance_group_managers_delete_instances_request_object
26400
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
26401
+ command.response_class = Google::Apis::ComputeAlpha::Operation
26424
26402
  command.params['project'] = project unless project.nil?
26425
26403
  command.params['region'] = region unless region.nil?
26426
- command.params['resource'] = resource unless resource.nil?
26404
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
26405
+ command.query['requestId'] = request_id unless request_id.nil?
26427
26406
  command.query['fields'] = fields unless fields.nil?
26428
26407
  command.query['quotaUser'] = quota_user unless quota_user.nil?
26429
26408
  command.query['userIp'] = user_ip unless user_ip.nil?
26430
26409
  execute_or_queue_command(command, &block)
26431
26410
  end
26432
26411
 
26433
- # Sets the labels on a inPlaceSnapshot in the given region. To learn more about
26434
- # labels, read the Labeling Resources documentation.
26412
+ # Deletes selected per-instance configs for the managed instance group.
26435
26413
  # @param [String] project
26436
26414
  # Project ID for this request.
26437
26415
  # @param [String] region
26438
- # The region for this request.
26439
- # @param [String] resource
26440
- # Name or id of the resource for this request.
26441
- # @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
26442
- # @param [String] request_id
26443
- # An optional request ID to identify requests. Specify a unique request ID so
26444
- # that if you must retry your request, the server will know to ignore the
26445
- # request if it has already been completed. For example, consider a situation
26446
- # where you make an initial request and the request times out. If you make the
26447
- # request again with the same request ID, the server can check if original
26448
- # operation with the same request ID was received, and if so, will ignore the
26449
- # second request. This prevents clients from accidentally creating duplicate
26450
- # commitments. The request ID must be a valid UUID with the exception that zero
26451
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
26416
+ # Name of the region scoping this request, should conform to RFC1035.
26417
+ # @param [String] instance_group_manager
26418
+ # The name of the managed instance group. It should conform to RFC1035.
26419
+ # @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagerDeleteInstanceConfigReq] region_instance_group_manager_delete_instance_config_req_object
26452
26420
  # @param [String] fields
26453
26421
  # Selector specifying which fields to include in a partial response.
26454
26422
  # @param [String] quota_user
@@ -26468,30 +26436,28 @@ module Google
26468
26436
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26469
26437
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26470
26438
  # @raise [Google::Apis::AuthorizationError] Authorization is required
26471
- def set_region_in_place_snapshot_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26472
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/inPlaceSnapshots/{resource}/setLabels', options)
26473
- command.request_representation = Google::Apis::ComputeAlpha::RegionSetLabelsRequest::Representation
26474
- command.request_object = region_set_labels_request_object
26439
+ def delete_region_instance_group_manager_per_instance_configs(project, region, instance_group_manager, region_instance_group_manager_delete_instance_config_req_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26440
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs', options)
26441
+ command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagerDeleteInstanceConfigReq::Representation
26442
+ command.request_object = region_instance_group_manager_delete_instance_config_req_object
26475
26443
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
26476
26444
  command.response_class = Google::Apis::ComputeAlpha::Operation
26477
26445
  command.params['project'] = project unless project.nil?
26478
26446
  command.params['region'] = region unless region.nil?
26479
- command.params['resource'] = resource unless resource.nil?
26480
- command.query['requestId'] = request_id unless request_id.nil?
26447
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
26481
26448
  command.query['fields'] = fields unless fields.nil?
26482
26449
  command.query['quotaUser'] = quota_user unless quota_user.nil?
26483
26450
  command.query['userIp'] = user_ip unless user_ip.nil?
26484
26451
  execute_or_queue_command(command, &block)
26485
26452
  end
26486
26453
 
26487
- # Returns permissions that a caller has on the specified resource.
26454
+ # Returns all of the details about the specified managed instance group.
26488
26455
  # @param [String] project
26489
26456
  # Project ID for this request.
26490
26457
  # @param [String] region
26491
- # The name of the region for this request.
26492
- # @param [String] resource
26493
- # Name or id of the resource for this request.
26494
- # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
26458
+ # Name of the region scoping this request.
26459
+ # @param [String] instance_group_manager
26460
+ # Name of the managed instance group to return.
26495
26461
  # @param [String] fields
26496
26462
  # Selector specifying which fields to include in a partial response.
26497
26463
  # @param [String] quota_user
@@ -26503,400 +26469,39 @@ module Google
26503
26469
  # Request-specific options
26504
26470
  #
26505
26471
  # @yield [result, err] Result & error if block supplied
26506
- # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
26472
+ # @yieldparam result [Google::Apis::ComputeAlpha::InstanceGroupManager] parsed result object
26507
26473
  # @yieldparam err [StandardError] error object if request failed
26508
26474
  #
26509
- # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
26475
+ # @return [Google::Apis::ComputeAlpha::InstanceGroupManager]
26510
26476
  #
26511
26477
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26512
26478
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26513
26479
  # @raise [Google::Apis::AuthorizationError] Authorization is required
26514
- def test_region_in_place_snapshot_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26515
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/inPlaceSnapshots/{resource}/testIamPermissions', options)
26516
- command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
26517
- command.request_object = test_permissions_request_object
26518
- command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
26519
- command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
26480
+ def get_region_instance_group_manager(project, region, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26481
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options)
26482
+ command.response_representation = Google::Apis::ComputeAlpha::InstanceGroupManager::Representation
26483
+ command.response_class = Google::Apis::ComputeAlpha::InstanceGroupManager
26520
26484
  command.params['project'] = project unless project.nil?
26521
26485
  command.params['region'] = region unless region.nil?
26522
- command.params['resource'] = resource unless resource.nil?
26486
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
26523
26487
  command.query['fields'] = fields unless fields.nil?
26524
26488
  command.query['quotaUser'] = quota_user unless quota_user.nil?
26525
26489
  command.query['userIp'] = user_ip unless user_ip.nil?
26526
26490
  execute_or_queue_command(command, &block)
26527
26491
  end
26528
26492
 
26529
- # Flags the specified instances to be immediately removed from the managed
26530
- # instance group. Abandoning an instance does not delete the instance, but it
26531
- # does remove the instance from any target pools that are applied by the managed
26532
- # instance group. This method reduces the targetSize of the managed instance
26533
- # group by the number of instances that you abandon. This operation is marked as
26534
- # DONE when the action is scheduled even if the instances have not yet been
26535
- # removed from the group. You must separately verify the status of the
26536
- # abandoning action with the listmanagedinstances method. If the group is part
26537
- # of a backend service that has enabled connection draining, it can take up to
26538
- # 60 seconds after the connection draining duration has elapsed before the VM
26539
- # instance is removed or deleted. You can specify a maximum of 1000 instances
26540
- # with this method per request.
26493
+ # Creates a managed instance group using the information that you specify in the
26494
+ # request. After the group is created, instances in the group are created using
26495
+ # the specified instance template. This operation is marked as DONE when the
26496
+ # group is created even if the instances in the group have not yet been created.
26497
+ # You must separately verify the status of the individual instances with the
26498
+ # listmanagedinstances method. A regional managed instance group can contain up
26499
+ # to 2000 instances.
26541
26500
  # @param [String] project
26542
26501
  # Project ID for this request.
26543
26502
  # @param [String] region
26544
26503
  # Name of the region scoping this request.
26545
- # @param [String] instance_group_manager
26546
- # Name of the managed instance group.
26547
- # @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersAbandonInstancesRequest] region_instance_group_managers_abandon_instances_request_object
26548
- # @param [String] request_id
26549
- # An optional request ID to identify requests. Specify a unique request ID so
26550
- # that if you must retry your request, the server will know to ignore the
26551
- # request if it has already been completed. For example, consider a situation
26552
- # where you make an initial request and the request times out. If you make the
26553
- # request again with the same request ID, the server can check if original
26554
- # operation with the same request ID was received, and if so, will ignore the
26555
- # second request. This prevents clients from accidentally creating duplicate
26556
- # commitments. The request ID must be a valid UUID with the exception that zero
26557
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
26558
- # @param [String] fields
26559
- # Selector specifying which fields to include in a partial response.
26560
- # @param [String] quota_user
26561
- # Available to use for quota purposes for server-side applications. Can be any
26562
- # arbitrary string assigned to a user, but should not exceed 40 characters.
26563
- # @param [String] user_ip
26564
- # Legacy name for parameter that has been superseded by `quotaUser`.
26565
- # @param [Google::Apis::RequestOptions] options
26566
- # Request-specific options
26567
- #
26568
- # @yield [result, err] Result & error if block supplied
26569
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
26570
- # @yieldparam err [StandardError] error object if request failed
26571
- #
26572
- # @return [Google::Apis::ComputeAlpha::Operation]
26573
- #
26574
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26575
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26576
- # @raise [Google::Apis::AuthorizationError] Authorization is required
26577
- def abandon_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_abandon_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26578
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances', options)
26579
- command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersAbandonInstancesRequest::Representation
26580
- command.request_object = region_instance_group_managers_abandon_instances_request_object
26581
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
26582
- command.response_class = Google::Apis::ComputeAlpha::Operation
26583
- command.params['project'] = project unless project.nil?
26584
- command.params['region'] = region unless region.nil?
26585
- command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
26586
- command.query['requestId'] = request_id unless request_id.nil?
26587
- command.query['fields'] = fields unless fields.nil?
26588
- command.query['quotaUser'] = quota_user unless quota_user.nil?
26589
- command.query['userIp'] = user_ip unless user_ip.nil?
26590
- execute_or_queue_command(command, &block)
26591
- end
26592
-
26593
- # Apply updates to selected instances the managed instance group.
26594
- # @param [String] project
26595
- # Project ID for this request.
26596
- # @param [String] region
26597
- # Name of the region scoping this request, should conform to RFC1035.
26598
- # @param [String] instance_group_manager
26599
- # The name of the managed instance group, should conform to RFC1035.
26600
- # @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersApplyUpdatesRequest] region_instance_group_managers_apply_updates_request_object
26601
- # @param [String] fields
26602
- # Selector specifying which fields to include in a partial response.
26603
- # @param [String] quota_user
26604
- # Available to use for quota purposes for server-side applications. Can be any
26605
- # arbitrary string assigned to a user, but should not exceed 40 characters.
26606
- # @param [String] user_ip
26607
- # Legacy name for parameter that has been superseded by `quotaUser`.
26608
- # @param [Google::Apis::RequestOptions] options
26609
- # Request-specific options
26610
- #
26611
- # @yield [result, err] Result & error if block supplied
26612
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
26613
- # @yieldparam err [StandardError] error object if request failed
26614
- #
26615
- # @return [Google::Apis::ComputeAlpha::Operation]
26616
- #
26617
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26618
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26619
- # @raise [Google::Apis::AuthorizationError] Authorization is required
26620
- def apply_region_instance_group_manager_updates_to_instances(project, region, instance_group_manager, region_instance_group_managers_apply_updates_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26621
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances', options)
26622
- command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersApplyUpdatesRequest::Representation
26623
- command.request_object = region_instance_group_managers_apply_updates_request_object
26624
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
26625
- command.response_class = Google::Apis::ComputeAlpha::Operation
26626
- command.params['project'] = project unless project.nil?
26627
- command.params['region'] = region unless region.nil?
26628
- command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
26629
- command.query['fields'] = fields unless fields.nil?
26630
- command.query['quotaUser'] = quota_user unless quota_user.nil?
26631
- command.query['userIp'] = user_ip unless user_ip.nil?
26632
- execute_or_queue_command(command, &block)
26633
- end
26634
-
26635
- # Creates instances with per-instance configs in this regional managed instance
26636
- # group. Instances are created using the current instance template. The create
26637
- # instances operation is marked DONE if the createInstances request is
26638
- # successful. The underlying actions take additional time. You must separately
26639
- # verify the status of the creating or actions with the listmanagedinstances
26640
- # method.
26641
- # @param [String] project
26642
- # Project ID for this request.
26643
- # @param [String] region
26644
- # The name of the region where the managed instance group is located. It should
26645
- # conform to RFC1035.
26646
- # @param [String] instance_group_manager
26647
- # The name of the managed instance group. It should conform to RFC1035.
26648
- # @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersCreateInstancesRequest] region_instance_group_managers_create_instances_request_object
26649
- # @param [String] request_id
26650
- # An optional request ID to identify requests. Specify a unique request ID so
26651
- # that if you must retry your request, the server will know to ignore the
26652
- # request if it has already been completed. For example, consider a situation
26653
- # where you make an initial request and the request times out. If you make the
26654
- # request again with the same request ID, the server can check if original
26655
- # operation with the same request ID was received, and if so, will ignore the
26656
- # second request. The request ID must be a valid UUID with the exception that
26657
- # zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
26658
- # @param [String] fields
26659
- # Selector specifying which fields to include in a partial response.
26660
- # @param [String] quota_user
26661
- # Available to use for quota purposes for server-side applications. Can be any
26662
- # arbitrary string assigned to a user, but should not exceed 40 characters.
26663
- # @param [String] user_ip
26664
- # Legacy name for parameter that has been superseded by `quotaUser`.
26665
- # @param [Google::Apis::RequestOptions] options
26666
- # Request-specific options
26667
- #
26668
- # @yield [result, err] Result & error if block supplied
26669
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
26670
- # @yieldparam err [StandardError] error object if request failed
26671
- #
26672
- # @return [Google::Apis::ComputeAlpha::Operation]
26673
- #
26674
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26675
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26676
- # @raise [Google::Apis::AuthorizationError] Authorization is required
26677
- def create_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_create_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26678
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances', options)
26679
- command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersCreateInstancesRequest::Representation
26680
- command.request_object = region_instance_group_managers_create_instances_request_object
26681
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
26682
- command.response_class = Google::Apis::ComputeAlpha::Operation
26683
- command.params['project'] = project unless project.nil?
26684
- command.params['region'] = region unless region.nil?
26685
- command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
26686
- command.query['requestId'] = request_id unless request_id.nil?
26687
- command.query['fields'] = fields unless fields.nil?
26688
- command.query['quotaUser'] = quota_user unless quota_user.nil?
26689
- command.query['userIp'] = user_ip unless user_ip.nil?
26690
- execute_or_queue_command(command, &block)
26691
- end
26692
-
26693
- # Deletes the specified managed instance group and all of the instances in that
26694
- # group.
26695
- # @param [String] project
26696
- # Project ID for this request.
26697
- # @param [String] region
26698
- # Name of the region scoping this request.
26699
- # @param [String] instance_group_manager
26700
- # Name of the managed instance group to delete.
26701
- # @param [String] request_id
26702
- # An optional request ID to identify requests. Specify a unique request ID so
26703
- # that if you must retry your request, the server will know to ignore the
26704
- # request if it has already been completed. For example, consider a situation
26705
- # where you make an initial request and the request times out. If you make the
26706
- # request again with the same request ID, the server can check if original
26707
- # operation with the same request ID was received, and if so, will ignore the
26708
- # second request. This prevents clients from accidentally creating duplicate
26709
- # commitments. The request ID must be a valid UUID with the exception that zero
26710
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
26711
- # @param [String] fields
26712
- # Selector specifying which fields to include in a partial response.
26713
- # @param [String] quota_user
26714
- # Available to use for quota purposes for server-side applications. Can be any
26715
- # arbitrary string assigned to a user, but should not exceed 40 characters.
26716
- # @param [String] user_ip
26717
- # Legacy name for parameter that has been superseded by `quotaUser`.
26718
- # @param [Google::Apis::RequestOptions] options
26719
- # Request-specific options
26720
- #
26721
- # @yield [result, err] Result & error if block supplied
26722
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
26723
- # @yieldparam err [StandardError] error object if request failed
26724
- #
26725
- # @return [Google::Apis::ComputeAlpha::Operation]
26726
- #
26727
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26728
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26729
- # @raise [Google::Apis::AuthorizationError] Authorization is required
26730
- def delete_region_instance_group_manager(project, region, instance_group_manager, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26731
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options)
26732
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
26733
- command.response_class = Google::Apis::ComputeAlpha::Operation
26734
- command.params['project'] = project unless project.nil?
26735
- command.params['region'] = region unless region.nil?
26736
- command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
26737
- command.query['requestId'] = request_id unless request_id.nil?
26738
- command.query['fields'] = fields unless fields.nil?
26739
- command.query['quotaUser'] = quota_user unless quota_user.nil?
26740
- command.query['userIp'] = user_ip unless user_ip.nil?
26741
- execute_or_queue_command(command, &block)
26742
- end
26743
-
26744
- # Flags the specified instances in the managed instance group to be immediately
26745
- # deleted. The instances are also removed from any target pools of which they
26746
- # were a member. This method reduces the targetSize of the managed instance
26747
- # group by the number of instances that you delete. The deleteInstances
26748
- # operation is marked DONE if the deleteInstances request is successful. The
26749
- # underlying actions take additional time. You must separately verify the status
26750
- # of the deleting action with the listmanagedinstances method. If the group is
26751
- # part of a backend service that has enabled connection draining, it can take up
26752
- # to 60 seconds after the connection draining duration has elapsed before the VM
26753
- # instance is removed or deleted. You can specify a maximum of 1000 instances
26754
- # with this method per request.
26755
- # @param [String] project
26756
- # Project ID for this request.
26757
- # @param [String] region
26758
- # Name of the region scoping this request.
26759
- # @param [String] instance_group_manager
26760
- # Name of the managed instance group.
26761
- # @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersDeleteInstancesRequest] region_instance_group_managers_delete_instances_request_object
26762
- # @param [String] request_id
26763
- # An optional request ID to identify requests. Specify a unique request ID so
26764
- # that if you must retry your request, the server will know to ignore the
26765
- # request if it has already been completed. For example, consider a situation
26766
- # where you make an initial request and the request times out. If you make the
26767
- # request again with the same request ID, the server can check if original
26768
- # operation with the same request ID was received, and if so, will ignore the
26769
- # second request. This prevents clients from accidentally creating duplicate
26770
- # commitments. The request ID must be a valid UUID with the exception that zero
26771
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
26772
- # @param [String] fields
26773
- # Selector specifying which fields to include in a partial response.
26774
- # @param [String] quota_user
26775
- # Available to use for quota purposes for server-side applications. Can be any
26776
- # arbitrary string assigned to a user, but should not exceed 40 characters.
26777
- # @param [String] user_ip
26778
- # Legacy name for parameter that has been superseded by `quotaUser`.
26779
- # @param [Google::Apis::RequestOptions] options
26780
- # Request-specific options
26781
- #
26782
- # @yield [result, err] Result & error if block supplied
26783
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
26784
- # @yieldparam err [StandardError] error object if request failed
26785
- #
26786
- # @return [Google::Apis::ComputeAlpha::Operation]
26787
- #
26788
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26789
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26790
- # @raise [Google::Apis::AuthorizationError] Authorization is required
26791
- def delete_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_delete_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26792
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deleteInstances', options)
26793
- command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersDeleteInstancesRequest::Representation
26794
- command.request_object = region_instance_group_managers_delete_instances_request_object
26795
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
26796
- command.response_class = Google::Apis::ComputeAlpha::Operation
26797
- command.params['project'] = project unless project.nil?
26798
- command.params['region'] = region unless region.nil?
26799
- command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
26800
- command.query['requestId'] = request_id unless request_id.nil?
26801
- command.query['fields'] = fields unless fields.nil?
26802
- command.query['quotaUser'] = quota_user unless quota_user.nil?
26803
- command.query['userIp'] = user_ip unless user_ip.nil?
26804
- execute_or_queue_command(command, &block)
26805
- end
26806
-
26807
- # Deletes selected per-instance configs for the managed instance group.
26808
- # @param [String] project
26809
- # Project ID for this request.
26810
- # @param [String] region
26811
- # Name of the region scoping this request, should conform to RFC1035.
26812
- # @param [String] instance_group_manager
26813
- # The name of the managed instance group. It should conform to RFC1035.
26814
- # @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagerDeleteInstanceConfigReq] region_instance_group_manager_delete_instance_config_req_object
26815
- # @param [String] fields
26816
- # Selector specifying which fields to include in a partial response.
26817
- # @param [String] quota_user
26818
- # Available to use for quota purposes for server-side applications. Can be any
26819
- # arbitrary string assigned to a user, but should not exceed 40 characters.
26820
- # @param [String] user_ip
26821
- # Legacy name for parameter that has been superseded by `quotaUser`.
26822
- # @param [Google::Apis::RequestOptions] options
26823
- # Request-specific options
26824
- #
26825
- # @yield [result, err] Result & error if block supplied
26826
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
26827
- # @yieldparam err [StandardError] error object if request failed
26828
- #
26829
- # @return [Google::Apis::ComputeAlpha::Operation]
26830
- #
26831
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26832
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26833
- # @raise [Google::Apis::AuthorizationError] Authorization is required
26834
- def delete_region_instance_group_manager_per_instance_configs(project, region, instance_group_manager, region_instance_group_manager_delete_instance_config_req_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26835
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/deletePerInstanceConfigs', options)
26836
- command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagerDeleteInstanceConfigReq::Representation
26837
- command.request_object = region_instance_group_manager_delete_instance_config_req_object
26838
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
26839
- command.response_class = Google::Apis::ComputeAlpha::Operation
26840
- command.params['project'] = project unless project.nil?
26841
- command.params['region'] = region unless region.nil?
26842
- command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
26843
- command.query['fields'] = fields unless fields.nil?
26844
- command.query['quotaUser'] = quota_user unless quota_user.nil?
26845
- command.query['userIp'] = user_ip unless user_ip.nil?
26846
- execute_or_queue_command(command, &block)
26847
- end
26848
-
26849
- # Returns all of the details about the specified managed instance group.
26850
- # @param [String] project
26851
- # Project ID for this request.
26852
- # @param [String] region
26853
- # Name of the region scoping this request.
26854
- # @param [String] instance_group_manager
26855
- # Name of the managed instance group to return.
26856
- # @param [String] fields
26857
- # Selector specifying which fields to include in a partial response.
26858
- # @param [String] quota_user
26859
- # Available to use for quota purposes for server-side applications. Can be any
26860
- # arbitrary string assigned to a user, but should not exceed 40 characters.
26861
- # @param [String] user_ip
26862
- # Legacy name for parameter that has been superseded by `quotaUser`.
26863
- # @param [Google::Apis::RequestOptions] options
26864
- # Request-specific options
26865
- #
26866
- # @yield [result, err] Result & error if block supplied
26867
- # @yieldparam result [Google::Apis::ComputeAlpha::InstanceGroupManager] parsed result object
26868
- # @yieldparam err [StandardError] error object if request failed
26869
- #
26870
- # @return [Google::Apis::ComputeAlpha::InstanceGroupManager]
26871
- #
26872
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
26873
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
26874
- # @raise [Google::Apis::AuthorizationError] Authorization is required
26875
- def get_region_instance_group_manager(project, region, instance_group_manager, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
26876
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options)
26877
- command.response_representation = Google::Apis::ComputeAlpha::InstanceGroupManager::Representation
26878
- command.response_class = Google::Apis::ComputeAlpha::InstanceGroupManager
26879
- command.params['project'] = project unless project.nil?
26880
- command.params['region'] = region unless region.nil?
26881
- command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
26882
- command.query['fields'] = fields unless fields.nil?
26883
- command.query['quotaUser'] = quota_user unless quota_user.nil?
26884
- command.query['userIp'] = user_ip unless user_ip.nil?
26885
- execute_or_queue_command(command, &block)
26886
- end
26887
-
26888
- # Creates a managed instance group using the information that you specify in the
26889
- # request. After the group is created, instances in the group are created using
26890
- # the specified instance template. This operation is marked as DONE when the
26891
- # group is created even if the instances in the group have not yet been created.
26892
- # You must separately verify the status of the individual instances with the
26893
- # listmanagedinstances method. A regional managed instance group can contain up
26894
- # to 2000 instances.
26895
- # @param [String] project
26896
- # Project ID for this request.
26897
- # @param [String] region
26898
- # Name of the region scoping this request.
26899
- # @param [Google::Apis::ComputeAlpha::InstanceGroupManager] instance_group_manager_object
26504
+ # @param [Google::Apis::ComputeAlpha::InstanceGroupManager] instance_group_manager_object
26900
26505
  # @param [String] request_id
26901
26506
  # An optional request ID to identify requests. Specify a unique request ID so
26902
26507
  # that if you must retry your request, the server will know to ignore the
@@ -27266,7 +26871,11 @@ module Google
27266
26871
  # the instances in the group are still in the process of being patched. You must
27267
26872
  # separately verify the status of the individual instances with the
27268
26873
  # listmanagedinstances method. This method supports PATCH semantics and uses the
27269
- # JSON merge patch format and processing rules.
26874
+ # JSON merge patch format and processing rules. If you update your group to
26875
+ # specify a new template or instance configuration, it's possible that your
26876
+ # intended specification for each VM in the group is different from the current
26877
+ # state of that VM. To learn how to apply an updated configuration to the VMs in
26878
+ # a MIG, see Updating instances in a MIG.
27270
26879
  # @param [String] project
27271
26880
  # Project ID for this request.
27272
26881
  # @param [String] region
@@ -28046,7 +27655,11 @@ module Google
28046
27655
  # request. This operation is marked as DONE when the group is updated even if
28047
27656
  # the instances in the group have not yet been updated. You must separately
28048
27657
  # verify the status of the individual instances with the listmanagedinstances
28049
- # method.
27658
+ # method. If you update your group to specify a new template or instance
27659
+ # configuration, it's possible that your intended specification for each VM in
27660
+ # the group is different from the current state of that VM. To learn how to
27661
+ # apply an updated configuration to the VMs in a MIG, see Updating instances in
27662
+ # a MIG.
28050
27663
  # @param [String] project
28051
27664
  # Project ID for this request.
28052
27665
  # @param [String] region
@@ -41279,446 +40892,13 @@ module Google
41279
40892
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41280
40893
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41281
40894
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41282
- def delete_vpn_gateway(project, region, vpn_gateway, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41283
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/vpnGateways/{vpnGateway}', options)
41284
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
41285
- command.response_class = Google::Apis::ComputeAlpha::Operation
41286
- command.params['project'] = project unless project.nil?
41287
- command.params['region'] = region unless region.nil?
41288
- command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.nil?
41289
- command.query['requestId'] = request_id unless request_id.nil?
41290
- command.query['fields'] = fields unless fields.nil?
41291
- command.query['quotaUser'] = quota_user unless quota_user.nil?
41292
- command.query['userIp'] = user_ip unless user_ip.nil?
41293
- execute_or_queue_command(command, &block)
41294
- end
41295
-
41296
- # Returns the specified VPN gateway. Gets a list of available VPN gateways by
41297
- # making a list() request.
41298
- # @param [String] project
41299
- # Project ID for this request.
41300
- # @param [String] region
41301
- # Name of the region for this request.
41302
- # @param [String] vpn_gateway
41303
- # Name of the VPN gateway to return.
41304
- # @param [String] fields
41305
- # Selector specifying which fields to include in a partial response.
41306
- # @param [String] quota_user
41307
- # Available to use for quota purposes for server-side applications. Can be any
41308
- # arbitrary string assigned to a user, but should not exceed 40 characters.
41309
- # @param [String] user_ip
41310
- # Legacy name for parameter that has been superseded by `quotaUser`.
41311
- # @param [Google::Apis::RequestOptions] options
41312
- # Request-specific options
41313
- #
41314
- # @yield [result, err] Result & error if block supplied
41315
- # @yieldparam result [Google::Apis::ComputeAlpha::VpnGateway] parsed result object
41316
- # @yieldparam err [StandardError] error object if request failed
41317
- #
41318
- # @return [Google::Apis::ComputeAlpha::VpnGateway]
41319
- #
41320
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41321
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41322
- # @raise [Google::Apis::AuthorizationError] Authorization is required
41323
- def get_vpn_gateway(project, region, vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41324
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnGateways/{vpnGateway}', options)
41325
- command.response_representation = Google::Apis::ComputeAlpha::VpnGateway::Representation
41326
- command.response_class = Google::Apis::ComputeAlpha::VpnGateway
41327
- command.params['project'] = project unless project.nil?
41328
- command.params['region'] = region unless region.nil?
41329
- command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.nil?
41330
- command.query['fields'] = fields unless fields.nil?
41331
- command.query['quotaUser'] = quota_user unless quota_user.nil?
41332
- command.query['userIp'] = user_ip unless user_ip.nil?
41333
- execute_or_queue_command(command, &block)
41334
- end
41335
-
41336
- # Returns the status for the specified VPN gateway.
41337
- # @param [String] project
41338
- # Project ID for this request.
41339
- # @param [String] region
41340
- # Name of the region for this request.
41341
- # @param [String] vpn_gateway
41342
- # Name of the VPN gateway to return.
41343
- # @param [String] fields
41344
- # Selector specifying which fields to include in a partial response.
41345
- # @param [String] quota_user
41346
- # Available to use for quota purposes for server-side applications. Can be any
41347
- # arbitrary string assigned to a user, but should not exceed 40 characters.
41348
- # @param [String] user_ip
41349
- # Legacy name for parameter that has been superseded by `quotaUser`.
41350
- # @param [Google::Apis::RequestOptions] options
41351
- # Request-specific options
41352
- #
41353
- # @yield [result, err] Result & error if block supplied
41354
- # @yieldparam result [Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse] parsed result object
41355
- # @yieldparam err [StandardError] error object if request failed
41356
- #
41357
- # @return [Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse]
41358
- #
41359
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41360
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41361
- # @raise [Google::Apis::AuthorizationError] Authorization is required
41362
- def get_vpn_gateway_status(project, region, vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41363
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus', options)
41364
- command.response_representation = Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse::Representation
41365
- command.response_class = Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse
41366
- command.params['project'] = project unless project.nil?
41367
- command.params['region'] = region unless region.nil?
41368
- command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.nil?
41369
- command.query['fields'] = fields unless fields.nil?
41370
- command.query['quotaUser'] = quota_user unless quota_user.nil?
41371
- command.query['userIp'] = user_ip unless user_ip.nil?
41372
- execute_or_queue_command(command, &block)
41373
- end
41374
-
41375
- # Creates a VPN gateway in the specified project and region using the data
41376
- # included in the request.
41377
- # @param [String] project
41378
- # Project ID for this request.
41379
- # @param [String] region
41380
- # Name of the region for this request.
41381
- # @param [Google::Apis::ComputeAlpha::VpnGateway] vpn_gateway_object
41382
- # @param [String] request_id
41383
- # An optional request ID to identify requests. Specify a unique request ID so
41384
- # that if you must retry your request, the server will know to ignore the
41385
- # request if it has already been completed. For example, consider a situation
41386
- # where you make an initial request and the request times out. If you make the
41387
- # request again with the same request ID, the server can check if original
41388
- # operation with the same request ID was received, and if so, will ignore the
41389
- # second request. This prevents clients from accidentally creating duplicate
41390
- # commitments. The request ID must be a valid UUID with the exception that zero
41391
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
41392
- # @param [String] fields
41393
- # Selector specifying which fields to include in a partial response.
41394
- # @param [String] quota_user
41395
- # Available to use for quota purposes for server-side applications. Can be any
41396
- # arbitrary string assigned to a user, but should not exceed 40 characters.
41397
- # @param [String] user_ip
41398
- # Legacy name for parameter that has been superseded by `quotaUser`.
41399
- # @param [Google::Apis::RequestOptions] options
41400
- # Request-specific options
41401
- #
41402
- # @yield [result, err] Result & error if block supplied
41403
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
41404
- # @yieldparam err [StandardError] error object if request failed
41405
- #
41406
- # @return [Google::Apis::ComputeAlpha::Operation]
41407
- #
41408
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41409
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41410
- # @raise [Google::Apis::AuthorizationError] Authorization is required
41411
- def insert_vpn_gateway(project, region, vpn_gateway_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41412
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnGateways', options)
41413
- command.request_representation = Google::Apis::ComputeAlpha::VpnGateway::Representation
41414
- command.request_object = vpn_gateway_object
41415
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
41416
- command.response_class = Google::Apis::ComputeAlpha::Operation
41417
- command.params['project'] = project unless project.nil?
41418
- command.params['region'] = region unless region.nil?
41419
- command.query['requestId'] = request_id unless request_id.nil?
41420
- command.query['fields'] = fields unless fields.nil?
41421
- command.query['quotaUser'] = quota_user unless quota_user.nil?
41422
- command.query['userIp'] = user_ip unless user_ip.nil?
41423
- execute_or_queue_command(command, &block)
41424
- end
41425
-
41426
- # Retrieves a list of VPN gateways available to the specified project and region.
41427
- # @param [String] project
41428
- # Project ID for this request.
41429
- # @param [String] region
41430
- # Name of the region for this request.
41431
- # @param [String] filter
41432
- # A filter expression that filters resources listed in the response. The
41433
- # expression must specify the field name, a comparison operator, and the value
41434
- # that you want to use for filtering. The value must be a string, a number, or a
41435
- # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For
41436
- # example, if you are filtering Compute Engine instances, you can exclude
41437
- # instances named `example-instance` by specifying `name != example-instance`.
41438
- # You can also filter nested fields. For example, you could specify `scheduling.
41439
- # automaticRestart = false` to include instances only if they are not scheduled
41440
- # for automatic restarts. You can use filtering on nested fields to filter based
41441
- # on resource labels. To filter on multiple expressions, provide each separate
41442
- # expression within parentheses. For example: ``` (scheduling.automaticRestart =
41443
- # true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `
41444
- # AND` expression. However, you can include `AND` and `OR` expressions
41445
- # explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform =
41446
- # "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
41447
- # @param [Fixnum] max_results
41448
- # The maximum number of results per page that should be returned. If the number
41449
- # of available results is larger than `maxResults`, Compute Engine returns a `
41450
- # nextPageToken` that can be used to get the next page of results in subsequent
41451
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
41452
- # @param [String] order_by
41453
- # Sorts list results by a certain order. By default, results are returned in
41454
- # alphanumerical order based on the resource name. You can also sort results in
41455
- # descending order based on the creation timestamp using `orderBy="
41456
- # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
41457
- # field in reverse chronological order (newest result first). Use this to sort
41458
- # resources like operations so that the newest operation is returned first.
41459
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
41460
- # @param [String] page_token
41461
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
41462
- # by a previous list request to get the next page of results.
41463
- # @param [Boolean] return_partial_success
41464
- # Opt-in for partial success behavior which provides partial results in case of
41465
- # failure. The default value is false.
41466
- # @param [String] fields
41467
- # Selector specifying which fields to include in a partial response.
41468
- # @param [String] quota_user
41469
- # Available to use for quota purposes for server-side applications. Can be any
41470
- # arbitrary string assigned to a user, but should not exceed 40 characters.
41471
- # @param [String] user_ip
41472
- # Legacy name for parameter that has been superseded by `quotaUser`.
41473
- # @param [Google::Apis::RequestOptions] options
41474
- # Request-specific options
41475
- #
41476
- # @yield [result, err] Result & error if block supplied
41477
- # @yieldparam result [Google::Apis::ComputeAlpha::VpnGatewayList] parsed result object
41478
- # @yieldparam err [StandardError] error object if request failed
41479
- #
41480
- # @return [Google::Apis::ComputeAlpha::VpnGatewayList]
41481
- #
41482
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41483
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41484
- # @raise [Google::Apis::AuthorizationError] Authorization is required
41485
- def list_vpn_gateways(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41486
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnGateways', options)
41487
- command.response_representation = Google::Apis::ComputeAlpha::VpnGatewayList::Representation
41488
- command.response_class = Google::Apis::ComputeAlpha::VpnGatewayList
41489
- command.params['project'] = project unless project.nil?
41490
- command.params['region'] = region unless region.nil?
41491
- command.query['filter'] = filter unless filter.nil?
41492
- command.query['maxResults'] = max_results unless max_results.nil?
41493
- command.query['orderBy'] = order_by unless order_by.nil?
41494
- command.query['pageToken'] = page_token unless page_token.nil?
41495
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
41496
- command.query['fields'] = fields unless fields.nil?
41497
- command.query['quotaUser'] = quota_user unless quota_user.nil?
41498
- command.query['userIp'] = user_ip unless user_ip.nil?
41499
- execute_or_queue_command(command, &block)
41500
- end
41501
-
41502
- # Sets the labels on a VpnGateway. To learn more about labels, read the Labeling
41503
- # Resources documentation.
41504
- # @param [String] project
41505
- # Project ID for this request.
41506
- # @param [String] region
41507
- # The region for this request.
41508
- # @param [String] resource
41509
- # Name or id of the resource for this request.
41510
- # @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
41511
- # @param [String] request_id
41512
- # An optional request ID to identify requests. Specify a unique request ID so
41513
- # that if you must retry your request, the server will know to ignore the
41514
- # request if it has already been completed. For example, consider a situation
41515
- # where you make an initial request and the request times out. If you make the
41516
- # request again with the same request ID, the server can check if original
41517
- # operation with the same request ID was received, and if so, will ignore the
41518
- # second request. This prevents clients from accidentally creating duplicate
41519
- # commitments. The request ID must be a valid UUID with the exception that zero
41520
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
41521
- # @param [String] fields
41522
- # Selector specifying which fields to include in a partial response.
41523
- # @param [String] quota_user
41524
- # Available to use for quota purposes for server-side applications. Can be any
41525
- # arbitrary string assigned to a user, but should not exceed 40 characters.
41526
- # @param [String] user_ip
41527
- # Legacy name for parameter that has been superseded by `quotaUser`.
41528
- # @param [Google::Apis::RequestOptions] options
41529
- # Request-specific options
41530
- #
41531
- # @yield [result, err] Result & error if block supplied
41532
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
41533
- # @yieldparam err [StandardError] error object if request failed
41534
- #
41535
- # @return [Google::Apis::ComputeAlpha::Operation]
41536
- #
41537
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41538
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41539
- # @raise [Google::Apis::AuthorizationError] Authorization is required
41540
- def set_vpn_gateway_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41541
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels', options)
41542
- command.request_representation = Google::Apis::ComputeAlpha::RegionSetLabelsRequest::Representation
41543
- command.request_object = region_set_labels_request_object
41544
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
41545
- command.response_class = Google::Apis::ComputeAlpha::Operation
41546
- command.params['project'] = project unless project.nil?
41547
- command.params['region'] = region unless region.nil?
41548
- command.params['resource'] = resource unless resource.nil?
41549
- command.query['requestId'] = request_id unless request_id.nil?
41550
- command.query['fields'] = fields unless fields.nil?
41551
- command.query['quotaUser'] = quota_user unless quota_user.nil?
41552
- command.query['userIp'] = user_ip unless user_ip.nil?
41553
- execute_or_queue_command(command, &block)
41554
- end
41555
-
41556
- # Returns permissions that a caller has on the specified resource.
41557
- # @param [String] project
41558
- # Project ID for this request.
41559
- # @param [String] region
41560
- # The name of the region for this request.
41561
- # @param [String] resource
41562
- # Name or id of the resource for this request.
41563
- # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
41564
- # @param [String] fields
41565
- # Selector specifying which fields to include in a partial response.
41566
- # @param [String] quota_user
41567
- # Available to use for quota purposes for server-side applications. Can be any
41568
- # arbitrary string assigned to a user, but should not exceed 40 characters.
41569
- # @param [String] user_ip
41570
- # Legacy name for parameter that has been superseded by `quotaUser`.
41571
- # @param [Google::Apis::RequestOptions] options
41572
- # Request-specific options
41573
- #
41574
- # @yield [result, err] Result & error if block supplied
41575
- # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
41576
- # @yieldparam err [StandardError] error object if request failed
41577
- #
41578
- # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
41579
- #
41580
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41581
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41582
- # @raise [Google::Apis::AuthorizationError] Authorization is required
41583
- def test_vpn_gateway_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41584
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions', options)
41585
- command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
41586
- command.request_object = test_permissions_request_object
41587
- command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
41588
- command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
41589
- command.params['project'] = project unless project.nil?
41590
- command.params['region'] = region unless region.nil?
41591
- command.params['resource'] = resource unless resource.nil?
41592
- command.query['fields'] = fields unless fields.nil?
41593
- command.query['quotaUser'] = quota_user unless quota_user.nil?
41594
- command.query['userIp'] = user_ip unless user_ip.nil?
41595
- execute_or_queue_command(command, &block)
41596
- end
41597
-
41598
- # Retrieves an aggregated list of VPN tunnels.
41599
- # @param [String] project
41600
- # Project ID for this request.
41601
- # @param [String] filter
41602
- # A filter expression that filters resources listed in the response. The
41603
- # expression must specify the field name, a comparison operator, and the value
41604
- # that you want to use for filtering. The value must be a string, a number, or a
41605
- # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For
41606
- # example, if you are filtering Compute Engine instances, you can exclude
41607
- # instances named `example-instance` by specifying `name != example-instance`.
41608
- # You can also filter nested fields. For example, you could specify `scheduling.
41609
- # automaticRestart = false` to include instances only if they are not scheduled
41610
- # for automatic restarts. You can use filtering on nested fields to filter based
41611
- # on resource labels. To filter on multiple expressions, provide each separate
41612
- # expression within parentheses. For example: ``` (scheduling.automaticRestart =
41613
- # true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `
41614
- # AND` expression. However, you can include `AND` and `OR` expressions
41615
- # explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform =
41616
- # "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
41617
- # @param [Boolean] include_all_scopes
41618
- # Indicates whether every visible scope for each scope type (zone, region,
41619
- # global) should be included in the response. For new resource types added after
41620
- # this field, the flag has no effect as new resource types will always include
41621
- # every visible scope for each scope type in response. For resource types which
41622
- # predate this field, if this flag is omitted or false, only scopes of the scope
41623
- # types where the resource type is expected to be found will be included.
41624
- # @param [Fixnum] max_results
41625
- # The maximum number of results per page that should be returned. If the number
41626
- # of available results is larger than `maxResults`, Compute Engine returns a `
41627
- # nextPageToken` that can be used to get the next page of results in subsequent
41628
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
41629
- # @param [String] order_by
41630
- # Sorts list results by a certain order. By default, results are returned in
41631
- # alphanumerical order based on the resource name. You can also sort results in
41632
- # descending order based on the creation timestamp using `orderBy="
41633
- # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
41634
- # field in reverse chronological order (newest result first). Use this to sort
41635
- # resources like operations so that the newest operation is returned first.
41636
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
41637
- # @param [String] page_token
41638
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
41639
- # by a previous list request to get the next page of results.
41640
- # @param [Boolean] return_partial_success
41641
- # Opt-in for partial success behavior which provides partial results in case of
41642
- # failure. The default value is false.
41643
- # @param [String] fields
41644
- # Selector specifying which fields to include in a partial response.
41645
- # @param [String] quota_user
41646
- # Available to use for quota purposes for server-side applications. Can be any
41647
- # arbitrary string assigned to a user, but should not exceed 40 characters.
41648
- # @param [String] user_ip
41649
- # Legacy name for parameter that has been superseded by `quotaUser`.
41650
- # @param [Google::Apis::RequestOptions] options
41651
- # Request-specific options
41652
- #
41653
- # @yield [result, err] Result & error if block supplied
41654
- # @yieldparam result [Google::Apis::ComputeAlpha::VpnTunnelAggregatedList] parsed result object
41655
- # @yieldparam err [StandardError] error object if request failed
41656
- #
41657
- # @return [Google::Apis::ComputeAlpha::VpnTunnelAggregatedList]
41658
- #
41659
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41660
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41661
- # @raise [Google::Apis::AuthorizationError] Authorization is required
41662
- def aggregated_vpn_tunnel_list(project, filter: nil, include_all_scopes: 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)
41663
- command = make_simple_command(:get, 'projects/{project}/aggregated/vpnTunnels', options)
41664
- command.response_representation = Google::Apis::ComputeAlpha::VpnTunnelAggregatedList::Representation
41665
- command.response_class = Google::Apis::ComputeAlpha::VpnTunnelAggregatedList
41666
- command.params['project'] = project unless project.nil?
41667
- command.query['filter'] = filter unless filter.nil?
41668
- command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
41669
- command.query['maxResults'] = max_results unless max_results.nil?
41670
- command.query['orderBy'] = order_by unless order_by.nil?
41671
- command.query['pageToken'] = page_token unless page_token.nil?
41672
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
41673
- command.query['fields'] = fields unless fields.nil?
41674
- command.query['quotaUser'] = quota_user unless quota_user.nil?
41675
- command.query['userIp'] = user_ip unless user_ip.nil?
41676
- execute_or_queue_command(command, &block)
41677
- end
41678
-
41679
- # Deletes the specified VpnTunnel resource.
41680
- # @param [String] project
41681
- # Project ID for this request.
41682
- # @param [String] region
41683
- # Name of the region for this request.
41684
- # @param [String] vpn_tunnel
41685
- # Name of the VpnTunnel resource to delete.
41686
- # @param [String] request_id
41687
- # An optional request ID to identify requests. Specify a unique request ID so
41688
- # that if you must retry your request, the server will know to ignore the
41689
- # request if it has already been completed. For example, consider a situation
41690
- # where you make an initial request and the request times out. If you make the
41691
- # request again with the same request ID, the server can check if original
41692
- # operation with the same request ID was received, and if so, will ignore the
41693
- # second request. This prevents clients from accidentally creating duplicate
41694
- # commitments. The request ID must be a valid UUID with the exception that zero
41695
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
41696
- # @param [String] fields
41697
- # Selector specifying which fields to include in a partial response.
41698
- # @param [String] quota_user
41699
- # Available to use for quota purposes for server-side applications. Can be any
41700
- # arbitrary string assigned to a user, but should not exceed 40 characters.
41701
- # @param [String] user_ip
41702
- # Legacy name for parameter that has been superseded by `quotaUser`.
41703
- # @param [Google::Apis::RequestOptions] options
41704
- # Request-specific options
41705
- #
41706
- # @yield [result, err] Result & error if block supplied
41707
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
41708
- # @yieldparam err [StandardError] error object if request failed
41709
- #
41710
- # @return [Google::Apis::ComputeAlpha::Operation]
41711
- #
41712
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41713
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41714
- # @raise [Google::Apis::AuthorizationError] Authorization is required
41715
- def delete_vpn_tunnel(project, region, vpn_tunnel, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41716
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}', options)
40895
+ def delete_vpn_gateway(project, region, vpn_gateway, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
40896
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/vpnGateways/{vpnGateway}', options)
41717
40897
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
41718
40898
  command.response_class = Google::Apis::ComputeAlpha::Operation
41719
40899
  command.params['project'] = project unless project.nil?
41720
40900
  command.params['region'] = region unless region.nil?
41721
- command.params['vpnTunnel'] = vpn_tunnel unless vpn_tunnel.nil?
40901
+ command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.nil?
41722
40902
  command.query['requestId'] = request_id unless request_id.nil?
41723
40903
  command.query['fields'] = fields unless fields.nil?
41724
40904
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -41726,14 +40906,14 @@ module Google
41726
40906
  execute_or_queue_command(command, &block)
41727
40907
  end
41728
40908
 
41729
- # Returns the specified VpnTunnel resource. Gets a list of available VPN tunnels
41730
- # by making a list() request.
40909
+ # Returns the specified VPN gateway. Gets a list of available VPN gateways by
40910
+ # making a list() request.
41731
40911
  # @param [String] project
41732
40912
  # Project ID for this request.
41733
40913
  # @param [String] region
41734
40914
  # Name of the region for this request.
41735
- # @param [String] vpn_tunnel
41736
- # Name of the VpnTunnel resource to return.
40915
+ # @param [String] vpn_gateway
40916
+ # Name of the VPN gateway to return.
41737
40917
  # @param [String] fields
41738
40918
  # Selector specifying which fields to include in a partial response.
41739
40919
  # @param [String] quota_user
@@ -41745,34 +40925,73 @@ module Google
41745
40925
  # Request-specific options
41746
40926
  #
41747
40927
  # @yield [result, err] Result & error if block supplied
41748
- # @yieldparam result [Google::Apis::ComputeAlpha::VpnTunnel] parsed result object
40928
+ # @yieldparam result [Google::Apis::ComputeAlpha::VpnGateway] parsed result object
41749
40929
  # @yieldparam err [StandardError] error object if request failed
41750
40930
  #
41751
- # @return [Google::Apis::ComputeAlpha::VpnTunnel]
40931
+ # @return [Google::Apis::ComputeAlpha::VpnGateway]
41752
40932
  #
41753
40933
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41754
40934
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41755
40935
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41756
- def get_vpn_tunnel(project, region, vpn_tunnel, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41757
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}', options)
41758
- command.response_representation = Google::Apis::ComputeAlpha::VpnTunnel::Representation
41759
- command.response_class = Google::Apis::ComputeAlpha::VpnTunnel
40936
+ def get_vpn_gateway(project, region, vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
40937
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnGateways/{vpnGateway}', options)
40938
+ command.response_representation = Google::Apis::ComputeAlpha::VpnGateway::Representation
40939
+ command.response_class = Google::Apis::ComputeAlpha::VpnGateway
41760
40940
  command.params['project'] = project unless project.nil?
41761
40941
  command.params['region'] = region unless region.nil?
41762
- command.params['vpnTunnel'] = vpn_tunnel unless vpn_tunnel.nil?
40942
+ command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.nil?
41763
40943
  command.query['fields'] = fields unless fields.nil?
41764
40944
  command.query['quotaUser'] = quota_user unless quota_user.nil?
41765
40945
  command.query['userIp'] = user_ip unless user_ip.nil?
41766
40946
  execute_or_queue_command(command, &block)
41767
40947
  end
41768
40948
 
41769
- # Creates a VpnTunnel resource in the specified project and region using the
41770
- # data included in the request.
40949
+ # Returns the status for the specified VPN gateway.
41771
40950
  # @param [String] project
41772
40951
  # Project ID for this request.
41773
40952
  # @param [String] region
41774
40953
  # Name of the region for this request.
41775
- # @param [Google::Apis::ComputeAlpha::VpnTunnel] vpn_tunnel_object
40954
+ # @param [String] vpn_gateway
40955
+ # Name of the VPN gateway to return.
40956
+ # @param [String] fields
40957
+ # Selector specifying which fields to include in a partial response.
40958
+ # @param [String] quota_user
40959
+ # Available to use for quota purposes for server-side applications. Can be any
40960
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
40961
+ # @param [String] user_ip
40962
+ # Legacy name for parameter that has been superseded by `quotaUser`.
40963
+ # @param [Google::Apis::RequestOptions] options
40964
+ # Request-specific options
40965
+ #
40966
+ # @yield [result, err] Result & error if block supplied
40967
+ # @yieldparam result [Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse] parsed result object
40968
+ # @yieldparam err [StandardError] error object if request failed
40969
+ #
40970
+ # @return [Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse]
40971
+ #
40972
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
40973
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
40974
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
40975
+ def get_vpn_gateway_status(project, region, vpn_gateway, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
40976
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnGateways/{vpnGateway}/getStatus', options)
40977
+ command.response_representation = Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse::Representation
40978
+ command.response_class = Google::Apis::ComputeAlpha::VpnGatewaysGetStatusResponse
40979
+ command.params['project'] = project unless project.nil?
40980
+ command.params['region'] = region unless region.nil?
40981
+ command.params['vpnGateway'] = vpn_gateway unless vpn_gateway.nil?
40982
+ command.query['fields'] = fields unless fields.nil?
40983
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
40984
+ command.query['userIp'] = user_ip unless user_ip.nil?
40985
+ execute_or_queue_command(command, &block)
40986
+ end
40987
+
40988
+ # Creates a VPN gateway in the specified project and region using the data
40989
+ # included in the request.
40990
+ # @param [String] project
40991
+ # Project ID for this request.
40992
+ # @param [String] region
40993
+ # Name of the region for this request.
40994
+ # @param [Google::Apis::ComputeAlpha::VpnGateway] vpn_gateway_object
41776
40995
  # @param [String] request_id
41777
40996
  # An optional request ID to identify requests. Specify a unique request ID so
41778
40997
  # that if you must retry your request, the server will know to ignore the
@@ -41802,10 +41021,10 @@ module Google
41802
41021
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41803
41022
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41804
41023
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41805
- def insert_vpn_tunnel(project, region, vpn_tunnel_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41806
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnTunnels', options)
41807
- command.request_representation = Google::Apis::ComputeAlpha::VpnTunnel::Representation
41808
- command.request_object = vpn_tunnel_object
41024
+ def insert_vpn_gateway(project, region, vpn_gateway_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41025
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnGateways', options)
41026
+ command.request_representation = Google::Apis::ComputeAlpha::VpnGateway::Representation
41027
+ command.request_object = vpn_gateway_object
41809
41028
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
41810
41029
  command.response_class = Google::Apis::ComputeAlpha::Operation
41811
41030
  command.params['project'] = project unless project.nil?
@@ -41817,8 +41036,7 @@ module Google
41817
41036
  execute_or_queue_command(command, &block)
41818
41037
  end
41819
41038
 
41820
- # Retrieves a list of VpnTunnel resources contained in the specified project and
41821
- # region.
41039
+ # Retrieves a list of VPN gateways available to the specified project and region.
41822
41040
  # @param [String] project
41823
41041
  # Project ID for this request.
41824
41042
  # @param [String] region
@@ -41869,18 +41087,18 @@ module Google
41869
41087
  # Request-specific options
41870
41088
  #
41871
41089
  # @yield [result, err] Result & error if block supplied
41872
- # @yieldparam result [Google::Apis::ComputeAlpha::VpnTunnelList] parsed result object
41090
+ # @yieldparam result [Google::Apis::ComputeAlpha::VpnGatewayList] parsed result object
41873
41091
  # @yieldparam err [StandardError] error object if request failed
41874
41092
  #
41875
- # @return [Google::Apis::ComputeAlpha::VpnTunnelList]
41093
+ # @return [Google::Apis::ComputeAlpha::VpnGatewayList]
41876
41094
  #
41877
41095
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41878
41096
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41879
41097
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41880
- def list_vpn_tunnels(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41881
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnTunnels', options)
41882
- command.response_representation = Google::Apis::ComputeAlpha::VpnTunnelList::Representation
41883
- command.response_class = Google::Apis::ComputeAlpha::VpnTunnelList
41098
+ def list_vpn_gateways(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41099
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnGateways', options)
41100
+ command.response_representation = Google::Apis::ComputeAlpha::VpnGatewayList::Representation
41101
+ command.response_class = Google::Apis::ComputeAlpha::VpnGatewayList
41884
41102
  command.params['project'] = project unless project.nil?
41885
41103
  command.params['region'] = region unless region.nil?
41886
41104
  command.query['filter'] = filter unless filter.nil?
@@ -41894,7 +41112,7 @@ module Google
41894
41112
  execute_or_queue_command(command, &block)
41895
41113
  end
41896
41114
 
41897
- # Sets the labels on a VpnTunnel. To learn more about labels, read the Labeling
41115
+ # Sets the labels on a VpnGateway. To learn more about labels, read the Labeling
41898
41116
  # Resources documentation.
41899
41117
  # @param [String] project
41900
41118
  # Project ID for this request.
@@ -41932,8 +41150,8 @@ module Google
41932
41150
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41933
41151
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41934
41152
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41935
- def set_vpn_tunnel_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41936
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels', options)
41153
+ def set_vpn_gateway_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41154
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnGateways/{resource}/setLabels', options)
41937
41155
  command.request_representation = Google::Apis::ComputeAlpha::RegionSetLabelsRequest::Representation
41938
41156
  command.request_object = region_set_labels_request_object
41939
41157
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
@@ -41975,8 +41193,8 @@ module Google
41975
41193
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41976
41194
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41977
41195
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41978
- def test_vpn_tunnel_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41979
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnTunnels/{resource}/testIamPermissions', options)
41196
+ def test_vpn_gateway_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41197
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnGateways/{resource}/testIamPermissions', options)
41980
41198
  command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
41981
41199
  command.request_object = test_permissions_request_object
41982
41200
  command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
@@ -41990,28 +41208,51 @@ module Google
41990
41208
  execute_or_queue_command(command, &block)
41991
41209
  end
41992
41210
 
41993
- # Deletes the specified InPlaceSnapshot resource. Keep in mind that deleting a
41994
- # single inPlaceSnapshot might not necessarily delete all the data on that
41995
- # inPlaceSnapshot. If any data on the inPlaceSnapshot that is marked for
41996
- # deletion is needed for subsequent inPlaceSnapshots, the data will be moved to
41997
- # the next corresponding inPlaceSnapshot. For more information, see Deleting
41998
- # inPlaceSnapshots.
41211
+ # Retrieves an aggregated list of VPN tunnels.
41999
41212
  # @param [String] project
42000
41213
  # Project ID for this request.
42001
- # @param [String] zone
42002
- # The name of the zone for this request.
42003
- # @param [String] in_place_snapshot
42004
- # Name of the InPlaceSnapshot resource to delete.
42005
- # @param [String] request_id
42006
- # An optional request ID to identify requests. Specify a unique request ID so
42007
- # that if you must retry your request, the server will know to ignore the
42008
- # request if it has already been completed. For example, consider a situation
42009
- # where you make an initial request and the request times out. If you make the
42010
- # request again with the same request ID, the server can check if original
42011
- # operation with the same request ID was received, and if so, will ignore the
42012
- # second request. This prevents clients from accidentally creating duplicate
42013
- # commitments. The request ID must be a valid UUID with the exception that zero
42014
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
41214
+ # @param [String] filter
41215
+ # A filter expression that filters resources listed in the response. The
41216
+ # expression must specify the field name, a comparison operator, and the value
41217
+ # that you want to use for filtering. The value must be a string, a number, or a
41218
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`. For
41219
+ # example, if you are filtering Compute Engine instances, you can exclude
41220
+ # instances named `example-instance` by specifying `name != example-instance`.
41221
+ # You can also filter nested fields. For example, you could specify `scheduling.
41222
+ # automaticRestart = false` to include instances only if they are not scheduled
41223
+ # for automatic restarts. You can use filtering on nested fields to filter based
41224
+ # on resource labels. To filter on multiple expressions, provide each separate
41225
+ # expression within parentheses. For example: ``` (scheduling.automaticRestart =
41226
+ # true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `
41227
+ # AND` expression. However, you can include `AND` and `OR` expressions
41228
+ # explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform =
41229
+ # "Intel Broadwell") AND (scheduling.automaticRestart = true) ```
41230
+ # @param [Boolean] include_all_scopes
41231
+ # Indicates whether every visible scope for each scope type (zone, region,
41232
+ # global) should be included in the response. For new resource types added after
41233
+ # this field, the flag has no effect as new resource types will always include
41234
+ # every visible scope for each scope type in response. For resource types which
41235
+ # predate this field, if this flag is omitted or false, only scopes of the scope
41236
+ # types where the resource type is expected to be found will be included.
41237
+ # @param [Fixnum] max_results
41238
+ # The maximum number of results per page that should be returned. If the number
41239
+ # of available results is larger than `maxResults`, Compute Engine returns a `
41240
+ # nextPageToken` that can be used to get the next page of results in subsequent
41241
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
41242
+ # @param [String] order_by
41243
+ # Sorts list results by a certain order. By default, results are returned in
41244
+ # alphanumerical order based on the resource name. You can also sort results in
41245
+ # descending order based on the creation timestamp using `orderBy="
41246
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
41247
+ # field in reverse chronological order (newest result first). Use this to sort
41248
+ # resources like operations so that the newest operation is returned first.
41249
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
41250
+ # @param [String] page_token
41251
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
41252
+ # by a previous list request to get the next page of results.
41253
+ # @param [Boolean] return_partial_success
41254
+ # Opt-in for partial success behavior which provides partial results in case of
41255
+ # failure. The default value is false.
42015
41256
  # @param [String] fields
42016
41257
  # Selector specifying which fields to include in a partial response.
42017
41258
  # @param [String] quota_user
@@ -42023,35 +41264,48 @@ module Google
42023
41264
  # Request-specific options
42024
41265
  #
42025
41266
  # @yield [result, err] Result & error if block supplied
42026
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
41267
+ # @yieldparam result [Google::Apis::ComputeAlpha::VpnTunnelAggregatedList] parsed result object
42027
41268
  # @yieldparam err [StandardError] error object if request failed
42028
41269
  #
42029
- # @return [Google::Apis::ComputeAlpha::Operation]
41270
+ # @return [Google::Apis::ComputeAlpha::VpnTunnelAggregatedList]
42030
41271
  #
42031
41272
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42032
41273
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42033
41274
  # @raise [Google::Apis::AuthorizationError] Authorization is required
42034
- def delete_zone_in_place_snapshot(project, zone, in_place_snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42035
- command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{inPlaceSnapshot}', options)
42036
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
42037
- command.response_class = Google::Apis::ComputeAlpha::Operation
41275
+ def aggregated_vpn_tunnel_list(project, filter: nil, include_all_scopes: 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)
41276
+ command = make_simple_command(:get, 'projects/{project}/aggregated/vpnTunnels', options)
41277
+ command.response_representation = Google::Apis::ComputeAlpha::VpnTunnelAggregatedList::Representation
41278
+ command.response_class = Google::Apis::ComputeAlpha::VpnTunnelAggregatedList
42038
41279
  command.params['project'] = project unless project.nil?
42039
- command.params['zone'] = zone unless zone.nil?
42040
- command.params['inPlaceSnapshot'] = in_place_snapshot unless in_place_snapshot.nil?
42041
- command.query['requestId'] = request_id unless request_id.nil?
41280
+ command.query['filter'] = filter unless filter.nil?
41281
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
41282
+ command.query['maxResults'] = max_results unless max_results.nil?
41283
+ command.query['orderBy'] = order_by unless order_by.nil?
41284
+ command.query['pageToken'] = page_token unless page_token.nil?
41285
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
42042
41286
  command.query['fields'] = fields unless fields.nil?
42043
41287
  command.query['quotaUser'] = quota_user unless quota_user.nil?
42044
41288
  command.query['userIp'] = user_ip unless user_ip.nil?
42045
41289
  execute_or_queue_command(command, &block)
42046
41290
  end
42047
41291
 
42048
- # Returns the specified InPlaceSnapshot resource in the specified zone.
41292
+ # Deletes the specified VpnTunnel resource.
42049
41293
  # @param [String] project
42050
41294
  # Project ID for this request.
42051
- # @param [String] zone
42052
- # The name of the zone for this request.
42053
- # @param [String] in_place_snapshot
42054
- # Name of the InPlaceSnapshot resource to return.
41295
+ # @param [String] region
41296
+ # Name of the region for this request.
41297
+ # @param [String] vpn_tunnel
41298
+ # Name of the VpnTunnel resource to delete.
41299
+ # @param [String] request_id
41300
+ # An optional request ID to identify requests. Specify a unique request ID so
41301
+ # that if you must retry your request, the server will know to ignore the
41302
+ # request if it has already been completed. For example, consider a situation
41303
+ # where you make an initial request and the request times out. If you make the
41304
+ # request again with the same request ID, the server can check if original
41305
+ # operation with the same request ID was received, and if so, will ignore the
41306
+ # second request. This prevents clients from accidentally creating duplicate
41307
+ # commitments. The request ID must be a valid UUID with the exception that zero
41308
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
42055
41309
  # @param [String] fields
42056
41310
  # Selector specifying which fields to include in a partial response.
42057
41311
  # @param [String] quota_user
@@ -42063,37 +41317,36 @@ module Google
42063
41317
  # Request-specific options
42064
41318
  #
42065
41319
  # @yield [result, err] Result & error if block supplied
42066
- # @yieldparam result [Google::Apis::ComputeAlpha::InPlaceSnapshot] parsed result object
41320
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
42067
41321
  # @yieldparam err [StandardError] error object if request failed
42068
41322
  #
42069
- # @return [Google::Apis::ComputeAlpha::InPlaceSnapshot]
41323
+ # @return [Google::Apis::ComputeAlpha::Operation]
42070
41324
  #
42071
41325
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42072
41326
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42073
41327
  # @raise [Google::Apis::AuthorizationError] Authorization is required
42074
- def get_zone_in_place_snapshot(project, zone, in_place_snapshot, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42075
- command = make_simple_command(:get, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{inPlaceSnapshot}', options)
42076
- command.response_representation = Google::Apis::ComputeAlpha::InPlaceSnapshot::Representation
42077
- command.response_class = Google::Apis::ComputeAlpha::InPlaceSnapshot
41328
+ def delete_vpn_tunnel(project, region, vpn_tunnel, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41329
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}', options)
41330
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
41331
+ command.response_class = Google::Apis::ComputeAlpha::Operation
42078
41332
  command.params['project'] = project unless project.nil?
42079
- command.params['zone'] = zone unless zone.nil?
42080
- command.params['inPlaceSnapshot'] = in_place_snapshot unless in_place_snapshot.nil?
41333
+ command.params['region'] = region unless region.nil?
41334
+ command.params['vpnTunnel'] = vpn_tunnel unless vpn_tunnel.nil?
41335
+ command.query['requestId'] = request_id unless request_id.nil?
42081
41336
  command.query['fields'] = fields unless fields.nil?
42082
41337
  command.query['quotaUser'] = quota_user unless quota_user.nil?
42083
41338
  command.query['userIp'] = user_ip unless user_ip.nil?
42084
41339
  execute_or_queue_command(command, &block)
42085
41340
  end
42086
41341
 
42087
- # Gets the access control policy for a resource. May be empty if no such policy
42088
- # or resource exists.
41342
+ # Returns the specified VpnTunnel resource. Gets a list of available VPN tunnels
41343
+ # by making a list() request.
42089
41344
  # @param [String] project
42090
41345
  # Project ID for this request.
42091
- # @param [String] zone
42092
- # The name of the zone for this request.
42093
- # @param [String] resource
42094
- # Name or id of the resource for this request.
42095
- # @param [Fixnum] options_requested_policy_version
42096
- # Requested IAM Policy version.
41346
+ # @param [String] region
41347
+ # Name of the region for this request.
41348
+ # @param [String] vpn_tunnel
41349
+ # Name of the VpnTunnel resource to return.
42097
41350
  # @param [String] fields
42098
41351
  # Selector specifying which fields to include in a partial response.
42099
41352
  # @param [String] quota_user
@@ -42105,34 +41358,34 @@ module Google
42105
41358
  # Request-specific options
42106
41359
  #
42107
41360
  # @yield [result, err] Result & error if block supplied
42108
- # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
41361
+ # @yieldparam result [Google::Apis::ComputeAlpha::VpnTunnel] parsed result object
42109
41362
  # @yieldparam err [StandardError] error object if request failed
42110
41363
  #
42111
- # @return [Google::Apis::ComputeAlpha::Policy]
41364
+ # @return [Google::Apis::ComputeAlpha::VpnTunnel]
42112
41365
  #
42113
41366
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42114
41367
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42115
41368
  # @raise [Google::Apis::AuthorizationError] Authorization is required
42116
- def get_zone_in_place_snapshot_iam_policy(project, zone, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42117
- command = make_simple_command(:get, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/getIamPolicy', options)
42118
- command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
42119
- command.response_class = Google::Apis::ComputeAlpha::Policy
41369
+ def get_vpn_tunnel(project, region, vpn_tunnel, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41370
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnTunnels/{vpnTunnel}', options)
41371
+ command.response_representation = Google::Apis::ComputeAlpha::VpnTunnel::Representation
41372
+ command.response_class = Google::Apis::ComputeAlpha::VpnTunnel
42120
41373
  command.params['project'] = project unless project.nil?
42121
- command.params['zone'] = zone unless zone.nil?
42122
- command.params['resource'] = resource unless resource.nil?
42123
- command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
41374
+ command.params['region'] = region unless region.nil?
41375
+ command.params['vpnTunnel'] = vpn_tunnel unless vpn_tunnel.nil?
42124
41376
  command.query['fields'] = fields unless fields.nil?
42125
41377
  command.query['quotaUser'] = quota_user unless quota_user.nil?
42126
41378
  command.query['userIp'] = user_ip unless user_ip.nil?
42127
41379
  execute_or_queue_command(command, &block)
42128
41380
  end
42129
41381
 
42130
- # Creates an in-place snapshot in the specified zone.
41382
+ # Creates a VpnTunnel resource in the specified project and region using the
41383
+ # data included in the request.
42131
41384
  # @param [String] project
42132
41385
  # Project ID for this request.
42133
- # @param [String] zone
42134
- # Name of the zone for this request.
42135
- # @param [Google::Apis::ComputeAlpha::InPlaceSnapshot] in_place_snapshot_object
41386
+ # @param [String] region
41387
+ # Name of the region for this request.
41388
+ # @param [Google::Apis::ComputeAlpha::VpnTunnel] vpn_tunnel_object
42136
41389
  # @param [String] request_id
42137
41390
  # An optional request ID to identify requests. Specify a unique request ID so
42138
41391
  # that if you must retry your request, the server will know to ignore the
@@ -42162,14 +41415,14 @@ module Google
42162
41415
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42163
41416
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42164
41417
  # @raise [Google::Apis::AuthorizationError] Authorization is required
42165
- def insert_zone_in_place_snapshot(project, zone, in_place_snapshot_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42166
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/inPlaceSnapshots', options)
42167
- command.request_representation = Google::Apis::ComputeAlpha::InPlaceSnapshot::Representation
42168
- command.request_object = in_place_snapshot_object
41418
+ def insert_vpn_tunnel(project, region, vpn_tunnel_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41419
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnTunnels', options)
41420
+ command.request_representation = Google::Apis::ComputeAlpha::VpnTunnel::Representation
41421
+ command.request_object = vpn_tunnel_object
42169
41422
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
42170
41423
  command.response_class = Google::Apis::ComputeAlpha::Operation
42171
41424
  command.params['project'] = project unless project.nil?
42172
- command.params['zone'] = zone unless zone.nil?
41425
+ command.params['region'] = region unless region.nil?
42173
41426
  command.query['requestId'] = request_id unless request_id.nil?
42174
41427
  command.query['fields'] = fields unless fields.nil?
42175
41428
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -42177,12 +41430,12 @@ module Google
42177
41430
  execute_or_queue_command(command, &block)
42178
41431
  end
42179
41432
 
42180
- # Retrieves the list of InPlaceSnapshot resources contained within the specified
42181
- # zone.
41433
+ # Retrieves a list of VpnTunnel resources contained in the specified project and
41434
+ # region.
42182
41435
  # @param [String] project
42183
41436
  # Project ID for this request.
42184
- # @param [String] zone
42185
- # The name of the zone for this request.
41437
+ # @param [String] region
41438
+ # Name of the region for this request.
42186
41439
  # @param [String] filter
42187
41440
  # A filter expression that filters resources listed in the response. The
42188
41441
  # expression must specify the field name, a comparison operator, and the value
@@ -42229,20 +41482,20 @@ module Google
42229
41482
  # Request-specific options
42230
41483
  #
42231
41484
  # @yield [result, err] Result & error if block supplied
42232
- # @yieldparam result [Google::Apis::ComputeAlpha::InPlaceSnapshotList] parsed result object
41485
+ # @yieldparam result [Google::Apis::ComputeAlpha::VpnTunnelList] parsed result object
42233
41486
  # @yieldparam err [StandardError] error object if request failed
42234
41487
  #
42235
- # @return [Google::Apis::ComputeAlpha::InPlaceSnapshotList]
41488
+ # @return [Google::Apis::ComputeAlpha::VpnTunnelList]
42236
41489
  #
42237
41490
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42238
41491
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42239
41492
  # @raise [Google::Apis::AuthorizationError] Authorization is required
42240
- def list_zone_in_place_snapshots(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)
42241
- command = make_simple_command(:get, 'projects/{project}/zones/{zone}/inPlaceSnapshots', options)
42242
- command.response_representation = Google::Apis::ComputeAlpha::InPlaceSnapshotList::Representation
42243
- command.response_class = Google::Apis::ComputeAlpha::InPlaceSnapshotList
41493
+ def list_vpn_tunnels(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41494
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/vpnTunnels', options)
41495
+ command.response_representation = Google::Apis::ComputeAlpha::VpnTunnelList::Representation
41496
+ command.response_class = Google::Apis::ComputeAlpha::VpnTunnelList
42244
41497
  command.params['project'] = project unless project.nil?
42245
- command.params['zone'] = zone unless zone.nil?
41498
+ command.params['region'] = region unless region.nil?
42246
41499
  command.query['filter'] = filter unless filter.nil?
42247
41500
  command.query['maxResults'] = max_results unless max_results.nil?
42248
41501
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -42254,58 +41507,15 @@ module Google
42254
41507
  execute_or_queue_command(command, &block)
42255
41508
  end
42256
41509
 
42257
- # Sets the access control policy on the specified resource. Replaces any
42258
- # existing policy.
42259
- # @param [String] project
42260
- # Project ID for this request.
42261
- # @param [String] zone
42262
- # The name of the zone for this request.
42263
- # @param [String] resource
42264
- # Name or id of the resource for this request.
42265
- # @param [Google::Apis::ComputeAlpha::ZoneSetPolicyRequest] zone_set_policy_request_object
42266
- # @param [String] fields
42267
- # Selector specifying which fields to include in a partial response.
42268
- # @param [String] quota_user
42269
- # Available to use for quota purposes for server-side applications. Can be any
42270
- # arbitrary string assigned to a user, but should not exceed 40 characters.
42271
- # @param [String] user_ip
42272
- # Legacy name for parameter that has been superseded by `quotaUser`.
42273
- # @param [Google::Apis::RequestOptions] options
42274
- # Request-specific options
42275
- #
42276
- # @yield [result, err] Result & error if block supplied
42277
- # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
42278
- # @yieldparam err [StandardError] error object if request failed
42279
- #
42280
- # @return [Google::Apis::ComputeAlpha::Policy]
42281
- #
42282
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42283
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42284
- # @raise [Google::Apis::AuthorizationError] Authorization is required
42285
- def set_zone_in_place_snapshot_iam_policy(project, zone, resource, zone_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42286
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/setIamPolicy', options)
42287
- command.request_representation = Google::Apis::ComputeAlpha::ZoneSetPolicyRequest::Representation
42288
- command.request_object = zone_set_policy_request_object
42289
- command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
42290
- command.response_class = Google::Apis::ComputeAlpha::Policy
42291
- command.params['project'] = project unless project.nil?
42292
- command.params['zone'] = zone unless zone.nil?
42293
- command.params['resource'] = resource unless resource.nil?
42294
- command.query['fields'] = fields unless fields.nil?
42295
- command.query['quotaUser'] = quota_user unless quota_user.nil?
42296
- command.query['userIp'] = user_ip unless user_ip.nil?
42297
- execute_or_queue_command(command, &block)
42298
- end
42299
-
42300
- # Sets the labels on a inPlaceSnapshot in the given zone. To learn more about
42301
- # labels, read the Labeling Resources documentation.
41510
+ # Sets the labels on a VpnTunnel. To learn more about labels, read the Labeling
41511
+ # Resources documentation.
42302
41512
  # @param [String] project
42303
41513
  # Project ID for this request.
42304
- # @param [String] zone
42305
- # The name of the zone for this request.
41514
+ # @param [String] region
41515
+ # The region for this request.
42306
41516
  # @param [String] resource
42307
41517
  # Name or id of the resource for this request.
42308
- # @param [Google::Apis::ComputeAlpha::ZoneSetLabelsRequest] zone_set_labels_request_object
41518
+ # @param [Google::Apis::ComputeAlpha::RegionSetLabelsRequest] region_set_labels_request_object
42309
41519
  # @param [String] request_id
42310
41520
  # An optional request ID to identify requests. Specify a unique request ID so
42311
41521
  # that if you must retry your request, the server will know to ignore the
@@ -42335,14 +41545,14 @@ module Google
42335
41545
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42336
41546
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42337
41547
  # @raise [Google::Apis::AuthorizationError] Authorization is required
42338
- def set_zone_in_place_snapshot_labels(project, zone, resource, zone_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42339
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/setLabels', options)
42340
- command.request_representation = Google::Apis::ComputeAlpha::ZoneSetLabelsRequest::Representation
42341
- command.request_object = zone_set_labels_request_object
41548
+ def set_vpn_tunnel_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41549
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnTunnels/{resource}/setLabels', options)
41550
+ command.request_representation = Google::Apis::ComputeAlpha::RegionSetLabelsRequest::Representation
41551
+ command.request_object = region_set_labels_request_object
42342
41552
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
42343
41553
  command.response_class = Google::Apis::ComputeAlpha::Operation
42344
41554
  command.params['project'] = project unless project.nil?
42345
- command.params['zone'] = zone unless zone.nil?
41555
+ command.params['region'] = region unless region.nil?
42346
41556
  command.params['resource'] = resource unless resource.nil?
42347
41557
  command.query['requestId'] = request_id unless request_id.nil?
42348
41558
  command.query['fields'] = fields unless fields.nil?
@@ -42354,8 +41564,8 @@ module Google
42354
41564
  # Returns permissions that a caller has on the specified resource.
42355
41565
  # @param [String] project
42356
41566
  # Project ID for this request.
42357
- # @param [String] zone
42358
- # The name of the zone for this request.
41567
+ # @param [String] region
41568
+ # The name of the region for this request.
42359
41569
  # @param [String] resource
42360
41570
  # Name or id of the resource for this request.
42361
41571
  # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
@@ -42378,14 +41588,14 @@ module Google
42378
41588
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42379
41589
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42380
41590
  # @raise [Google::Apis::AuthorizationError] Authorization is required
42381
- def test_zone_in_place_snapshot_iam_permissions(project, zone, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42382
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/inPlaceSnapshots/{resource}/testIamPermissions', options)
41591
+ def test_vpn_tunnel_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
41592
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/vpnTunnels/{resource}/testIamPermissions', options)
42383
41593
  command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
42384
41594
  command.request_object = test_permissions_request_object
42385
41595
  command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
42386
41596
  command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
42387
41597
  command.params['project'] = project unless project.nil?
42388
- command.params['zone'] = zone unless zone.nil?
41598
+ command.params['region'] = region unless region.nil?
42389
41599
  command.params['resource'] = resource unless resource.nil?
42390
41600
  command.query['fields'] = fields unless fields.nil?
42391
41601
  command.query['quotaUser'] = quota_user unless quota_user.nil?