google-apis-compute_v1 0.3.0 → 0.8.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.
@@ -1884,7 +1884,8 @@ module Google
1884
1884
  execute_or_queue_command(command, &block)
1885
1885
  end
1886
1886
 
1887
- # Sets the security policy for the specified backend service.
1887
+ # Sets the Google Cloud Armor security policy for the specified backend service.
1888
+ # For more information, see Google Cloud Armor Overview
1888
1889
  # @param [String] project
1889
1890
  # Project ID for this request.
1890
1891
  # @param [String] backend_service
@@ -6171,6 +6172,267 @@ module Google
6171
6172
  execute_or_queue_command(command, &block)
6172
6173
  end
6173
6174
 
6175
+ # Deletes the specified global PublicDelegatedPrefix.
6176
+ # @param [String] project
6177
+ # Project ID for this request.
6178
+ # @param [String] public_delegated_prefix
6179
+ # Name of the PublicDelegatedPrefix resource to delete.
6180
+ # @param [String] request_id
6181
+ # An optional request ID to identify requests. Specify a unique request ID so
6182
+ # that if you must retry your request, the server will know to ignore the
6183
+ # request if it has already been completed.
6184
+ # For example, consider a situation where you make an initial request and the
6185
+ # request times out. If you make the request again with the same request ID, the
6186
+ # server can check if original operation with the same request ID was received,
6187
+ # and if so, will ignore the second request. This prevents clients from
6188
+ # accidentally creating duplicate commitments.
6189
+ # The request ID must be a valid UUID with the exception that zero UUID is not
6190
+ # supported (00000000-0000-0000-0000-000000000000).
6191
+ # @param [String] fields
6192
+ # Selector specifying which fields to include in a partial response.
6193
+ # @param [String] quota_user
6194
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
6195
+ # characters.
6196
+ # @param [String] user_ip
6197
+ # Deprecated. Please use quotaUser instead.
6198
+ # @param [Google::Apis::RequestOptions] options
6199
+ # Request-specific options
6200
+ #
6201
+ # @yield [result, err] Result & error if block supplied
6202
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
6203
+ # @yieldparam err [StandardError] error object if request failed
6204
+ #
6205
+ # @return [Google::Apis::ComputeV1::Operation]
6206
+ #
6207
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6208
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6209
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6210
+ def delete_global_public_delegated_prefix(project, public_delegated_prefix, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6211
+ command = make_simple_command(:delete, 'projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}', options)
6212
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
6213
+ command.response_class = Google::Apis::ComputeV1::Operation
6214
+ command.params['project'] = project unless project.nil?
6215
+ command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil?
6216
+ command.query['requestId'] = request_id unless request_id.nil?
6217
+ command.query['fields'] = fields unless fields.nil?
6218
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6219
+ command.query['userIp'] = user_ip unless user_ip.nil?
6220
+ execute_or_queue_command(command, &block)
6221
+ end
6222
+
6223
+ # Returns the specified global PublicDelegatedPrefix resource.
6224
+ # @param [String] project
6225
+ # Project ID for this request.
6226
+ # @param [String] public_delegated_prefix
6227
+ # Name of the PublicDelegatedPrefix resource to return.
6228
+ # @param [String] fields
6229
+ # Selector specifying which fields to include in a partial response.
6230
+ # @param [String] quota_user
6231
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
6232
+ # characters.
6233
+ # @param [String] user_ip
6234
+ # Deprecated. Please use quotaUser instead.
6235
+ # @param [Google::Apis::RequestOptions] options
6236
+ # Request-specific options
6237
+ #
6238
+ # @yield [result, err] Result & error if block supplied
6239
+ # @yieldparam result [Google::Apis::ComputeV1::PublicDelegatedPrefix] parsed result object
6240
+ # @yieldparam err [StandardError] error object if request failed
6241
+ #
6242
+ # @return [Google::Apis::ComputeV1::PublicDelegatedPrefix]
6243
+ #
6244
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6245
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6246
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6247
+ def get_global_public_delegated_prefix(project, public_delegated_prefix, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6248
+ command = make_simple_command(:get, 'projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}', options)
6249
+ command.response_representation = Google::Apis::ComputeV1::PublicDelegatedPrefix::Representation
6250
+ command.response_class = Google::Apis::ComputeV1::PublicDelegatedPrefix
6251
+ command.params['project'] = project unless project.nil?
6252
+ command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil?
6253
+ command.query['fields'] = fields unless fields.nil?
6254
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6255
+ command.query['userIp'] = user_ip unless user_ip.nil?
6256
+ execute_or_queue_command(command, &block)
6257
+ end
6258
+
6259
+ # Creates a global PublicDelegatedPrefix in the specified project using the
6260
+ # parameters that are included in the request.
6261
+ # @param [String] project
6262
+ # Project ID for this request.
6263
+ # @param [Google::Apis::ComputeV1::PublicDelegatedPrefix] public_delegated_prefix_object
6264
+ # @param [String] request_id
6265
+ # An optional request ID to identify requests. Specify a unique request ID so
6266
+ # that if you must retry your request, the server will know to ignore the
6267
+ # request if it has already been completed.
6268
+ # For example, consider a situation where you make an initial request and the
6269
+ # request times out. If you make the request again with the same request ID, the
6270
+ # server can check if original operation with the same request ID was received,
6271
+ # and if so, will ignore the second request. This prevents clients from
6272
+ # accidentally creating duplicate commitments.
6273
+ # The request ID must be a valid UUID with the exception that zero UUID is not
6274
+ # supported (00000000-0000-0000-0000-000000000000).
6275
+ # @param [String] fields
6276
+ # Selector specifying which fields to include in a partial response.
6277
+ # @param [String] quota_user
6278
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
6279
+ # characters.
6280
+ # @param [String] user_ip
6281
+ # Deprecated. Please use quotaUser instead.
6282
+ # @param [Google::Apis::RequestOptions] options
6283
+ # Request-specific options
6284
+ #
6285
+ # @yield [result, err] Result & error if block supplied
6286
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
6287
+ # @yieldparam err [StandardError] error object if request failed
6288
+ #
6289
+ # @return [Google::Apis::ComputeV1::Operation]
6290
+ #
6291
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6292
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6293
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6294
+ def insert_global_public_delegated_prefix(project, public_delegated_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6295
+ command = make_simple_command(:post, 'projects/{project}/global/publicDelegatedPrefixes', options)
6296
+ command.request_representation = Google::Apis::ComputeV1::PublicDelegatedPrefix::Representation
6297
+ command.request_object = public_delegated_prefix_object
6298
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
6299
+ command.response_class = Google::Apis::ComputeV1::Operation
6300
+ command.params['project'] = project unless project.nil?
6301
+ command.query['requestId'] = request_id unless request_id.nil?
6302
+ command.query['fields'] = fields unless fields.nil?
6303
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6304
+ command.query['userIp'] = user_ip unless user_ip.nil?
6305
+ execute_or_queue_command(command, &block)
6306
+ end
6307
+
6308
+ # Lists the global PublicDelegatedPrefixes for a project.
6309
+ # @param [String] project
6310
+ # Project ID for this request.
6311
+ # @param [String] filter
6312
+ # A filter expression that filters resources listed in the response. The
6313
+ # expression must specify the field name, a comparison operator, and the value
6314
+ # that you want to use for filtering. The value must be a string, a number, or a
6315
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
6316
+ # For example, if you are filtering Compute Engine instances, you can exclude
6317
+ # instances named `example-instance` by specifying `name != example-instance`.
6318
+ # You can also filter nested fields. For example, you could specify `scheduling.
6319
+ # automaticRestart = false` to include instances only if they are not scheduled
6320
+ # for automatic restarts. You can use filtering on nested fields to filter based
6321
+ # on resource labels.
6322
+ # To filter on multiple expressions, provide each separate expression within
6323
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
6324
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
6325
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
6326
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
6327
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
6328
+ # @param [Fixnum] max_results
6329
+ # The maximum number of results per page that should be returned. If the number
6330
+ # of available results is larger than `maxResults`, Compute Engine returns a `
6331
+ # nextPageToken` that can be used to get the next page of results in subsequent
6332
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
6333
+ # @param [String] order_by
6334
+ # Sorts list results by a certain order. By default, results are returned in
6335
+ # alphanumerical order based on the resource name.
6336
+ # You can also sort results in descending order based on the creation timestamp
6337
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
6338
+ # creationTimestamp` field in reverse chronological order (newest result first).
6339
+ # Use this to sort resources like operations so that the newest operation is
6340
+ # returned first.
6341
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
6342
+ # @param [String] page_token
6343
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
6344
+ # by a previous list request to get the next page of results.
6345
+ # @param [Boolean] return_partial_success
6346
+ # Opt-in for partial success behavior which provides partial results in case of
6347
+ # failure. The default value is false.
6348
+ # @param [String] fields
6349
+ # Selector specifying which fields to include in a partial response.
6350
+ # @param [String] quota_user
6351
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
6352
+ # characters.
6353
+ # @param [String] user_ip
6354
+ # Deprecated. Please use quotaUser instead.
6355
+ # @param [Google::Apis::RequestOptions] options
6356
+ # Request-specific options
6357
+ #
6358
+ # @yield [result, err] Result & error if block supplied
6359
+ # @yieldparam result [Google::Apis::ComputeV1::PublicDelegatedPrefixList] parsed result object
6360
+ # @yieldparam err [StandardError] error object if request failed
6361
+ #
6362
+ # @return [Google::Apis::ComputeV1::PublicDelegatedPrefixList]
6363
+ #
6364
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6365
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6366
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6367
+ def list_global_public_delegated_prefixes(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6368
+ command = make_simple_command(:get, 'projects/{project}/global/publicDelegatedPrefixes', options)
6369
+ command.response_representation = Google::Apis::ComputeV1::PublicDelegatedPrefixList::Representation
6370
+ command.response_class = Google::Apis::ComputeV1::PublicDelegatedPrefixList
6371
+ command.params['project'] = project unless project.nil?
6372
+ command.query['filter'] = filter unless filter.nil?
6373
+ command.query['maxResults'] = max_results unless max_results.nil?
6374
+ command.query['orderBy'] = order_by unless order_by.nil?
6375
+ command.query['pageToken'] = page_token unless page_token.nil?
6376
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
6377
+ command.query['fields'] = fields unless fields.nil?
6378
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6379
+ command.query['userIp'] = user_ip unless user_ip.nil?
6380
+ execute_or_queue_command(command, &block)
6381
+ end
6382
+
6383
+ # Patches the specified global PublicDelegatedPrefix resource with the data
6384
+ # included in the request. This method supports PATCH semantics and uses JSON
6385
+ # merge patch format and processing rules.
6386
+ # @param [String] project
6387
+ # Project ID for this request.
6388
+ # @param [String] public_delegated_prefix
6389
+ # Name of the PublicDelegatedPrefix resource to patch.
6390
+ # @param [Google::Apis::ComputeV1::PublicDelegatedPrefix] public_delegated_prefix_object
6391
+ # @param [String] request_id
6392
+ # An optional request ID to identify requests. Specify a unique request ID so
6393
+ # that if you must retry your request, the server will know to ignore the
6394
+ # request if it has already been completed.
6395
+ # For example, consider a situation where you make an initial request and the
6396
+ # request times out. If you make the request again with the same request ID, the
6397
+ # server can check if original operation with the same request ID was received,
6398
+ # and if so, will ignore the second request. This prevents clients from
6399
+ # accidentally creating duplicate commitments.
6400
+ # The request ID must be a valid UUID with the exception that zero UUID is not
6401
+ # supported (00000000-0000-0000-0000-000000000000).
6402
+ # @param [String] fields
6403
+ # Selector specifying which fields to include in a partial response.
6404
+ # @param [String] quota_user
6405
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
6406
+ # characters.
6407
+ # @param [String] user_ip
6408
+ # Deprecated. Please use quotaUser instead.
6409
+ # @param [Google::Apis::RequestOptions] options
6410
+ # Request-specific options
6411
+ #
6412
+ # @yield [result, err] Result & error if block supplied
6413
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
6414
+ # @yieldparam err [StandardError] error object if request failed
6415
+ #
6416
+ # @return [Google::Apis::ComputeV1::Operation]
6417
+ #
6418
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
6419
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
6420
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
6421
+ def patch_global_public_delegated_prefix(project, public_delegated_prefix, public_delegated_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
6422
+ command = make_simple_command(:patch, 'projects/{project}/global/publicDelegatedPrefixes/{publicDelegatedPrefix}', options)
6423
+ command.request_representation = Google::Apis::ComputeV1::PublicDelegatedPrefix::Representation
6424
+ command.request_object = public_delegated_prefix_object
6425
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
6426
+ command.response_class = Google::Apis::ComputeV1::Operation
6427
+ command.params['project'] = project unless project.nil?
6428
+ command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil?
6429
+ command.query['requestId'] = request_id unless request_id.nil?
6430
+ command.query['fields'] = fields unless fields.nil?
6431
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
6432
+ command.query['userIp'] = user_ip unless user_ip.nil?
6433
+ execute_or_queue_command(command, &block)
6434
+ end
6435
+
6174
6436
  # Retrieves the list of all HealthCheck resources, regional and global,
6175
6437
  # available to the specified project.
6176
6438
  # @param [String] project
@@ -8673,12 +8935,12 @@ module Google
8673
8935
  execute_or_queue_command(command, &block)
8674
8936
  end
8675
8937
 
8676
- # Flags the specified instances in the managed instance group to be immediately
8677
- # recreated. The instances are deleted and recreated using the current instance
8678
- # template for the managed instance group. This operation is marked as DONE when
8679
- # the flag is set even if the instances have not yet been recreated. You must
8680
- # separately verify the status of the recreating action with the
8681
- # listmanagedinstances method.
8938
+ # Flags the specified VM instances in the managed instance group to be
8939
+ # immediately recreated. Each instance is recreated using the group's current
8940
+ # configuration. This operation is marked as DONE when the flag is set even if
8941
+ # the instances have not yet been recreated. You must separately verify the
8942
+ # status of each instance by checking its currentAction field; for more
8943
+ # information, see Checking the status of managed instances.
8682
8944
  # If the group is part of a backend service that has enabled connection draining,
8683
8945
  # it can take up to 60 seconds after the connection draining duration has
8684
8946
  # elapsed before the VM instance is removed or deleted.
@@ -10137,14 +10399,12 @@ module Google
10137
10399
  execute_or_queue_command(command, &block)
10138
10400
  end
10139
10401
 
10140
- # Deletes the specified Instance resource. For more information, see Stopping or
10141
- # Deleting an Instance.
10402
+ # Creates multiple instances. Count specifies the number of instances to create.
10142
10403
  # @param [String] project
10143
10404
  # Project ID for this request.
10144
10405
  # @param [String] zone
10145
10406
  # The name of the zone for this request.
10146
- # @param [String] instance
10147
- # Name of the instance resource to delete.
10407
+ # @param [Google::Apis::ComputeV1::BulkInsertInstanceResource] bulk_insert_instance_resource_object
10148
10408
  # @param [String] request_id
10149
10409
  # An optional request ID to identify requests. Specify a unique request ID so
10150
10410
  # that if you must retry your request, the server will know to ignore the
@@ -10175,13 +10435,14 @@ module Google
10175
10435
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10176
10436
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10177
10437
  # @raise [Google::Apis::AuthorizationError] Authorization is required
10178
- def delete_instance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10179
- command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/instances/{instance}', options)
10438
+ def bulk_instance_insert(project, zone, bulk_insert_instance_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10439
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/bulkInsert', options)
10440
+ command.request_representation = Google::Apis::ComputeV1::BulkInsertInstanceResource::Representation
10441
+ command.request_object = bulk_insert_instance_resource_object
10180
10442
  command.response_representation = Google::Apis::ComputeV1::Operation::Representation
10181
10443
  command.response_class = Google::Apis::ComputeV1::Operation
10182
10444
  command.params['project'] = project unless project.nil?
10183
10445
  command.params['zone'] = zone unless zone.nil?
10184
- command.params['instance'] = instance unless instance.nil?
10185
10446
  command.query['requestId'] = request_id unless request_id.nil?
10186
10447
  command.query['fields'] = fields unless fields.nil?
10187
10448
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -10189,17 +10450,14 @@ module Google
10189
10450
  execute_or_queue_command(command, &block)
10190
10451
  end
10191
10452
 
10192
- # Deletes an access config from an instance's network interface.
10453
+ # Deletes the specified Instance resource. For more information, see Deleting an
10454
+ # instance.
10193
10455
  # @param [String] project
10194
10456
  # Project ID for this request.
10195
10457
  # @param [String] zone
10196
10458
  # The name of the zone for this request.
10197
10459
  # @param [String] instance
10198
- # The instance name for this request.
10199
- # @param [String] access_config
10200
- # The name of the access config to delete.
10201
- # @param [String] network_interface
10202
- # The name of the network interface.
10460
+ # Name of the instance resource to delete.
10203
10461
  # @param [String] request_id
10204
10462
  # An optional request ID to identify requests. Specify a unique request ID so
10205
10463
  # that if you must retry your request, the server will know to ignore the
@@ -10230,15 +10488,13 @@ module Google
10230
10488
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10231
10489
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10232
10490
  # @raise [Google::Apis::AuthorizationError] Authorization is required
10233
- def delete_instance_access_config(project, zone, instance, access_config, network_interface, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10234
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig', options)
10491
+ def delete_instance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10492
+ command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/instances/{instance}', options)
10235
10493
  command.response_representation = Google::Apis::ComputeV1::Operation::Representation
10236
10494
  command.response_class = Google::Apis::ComputeV1::Operation
10237
10495
  command.params['project'] = project unless project.nil?
10238
10496
  command.params['zone'] = zone unless zone.nil?
10239
10497
  command.params['instance'] = instance unless instance.nil?
10240
- command.query['accessConfig'] = access_config unless access_config.nil?
10241
- command.query['networkInterface'] = network_interface unless network_interface.nil?
10242
10498
  command.query['requestId'] = request_id unless request_id.nil?
10243
10499
  command.query['fields'] = fields unless fields.nil?
10244
10500
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -10246,16 +10502,17 @@ module Google
10246
10502
  execute_or_queue_command(command, &block)
10247
10503
  end
10248
10504
 
10249
- # Detaches a disk from an instance.
10505
+ # Deletes an access config from an instance's network interface.
10250
10506
  # @param [String] project
10251
10507
  # Project ID for this request.
10252
10508
  # @param [String] zone
10253
10509
  # The name of the zone for this request.
10254
10510
  # @param [String] instance
10255
- # Instance name for this request.
10256
- # @param [String] device_name
10257
- # The device name of the disk to detach. Make a get() request on the instance to
10258
- # view currently attached disks and device names.
10511
+ # The instance name for this request.
10512
+ # @param [String] access_config
10513
+ # The name of the access config to delete.
10514
+ # @param [String] network_interface
10515
+ # The name of the network interface.
10259
10516
  # @param [String] request_id
10260
10517
  # An optional request ID to identify requests. Specify a unique request ID so
10261
10518
  # that if you must retry your request, the server will know to ignore the
@@ -10286,9 +10543,65 @@ module Google
10286
10543
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10287
10544
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10288
10545
  # @raise [Google::Apis::AuthorizationError] Authorization is required
10289
- def detach_disk(project, zone, instance, device_name, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10290
- command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/detachDisk', options)
10291
- command.response_representation = Google::Apis::ComputeV1::Operation::Representation
10546
+ def delete_instance_access_config(project, zone, instance, access_config, network_interface, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10547
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/deleteAccessConfig', options)
10548
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
10549
+ command.response_class = Google::Apis::ComputeV1::Operation
10550
+ command.params['project'] = project unless project.nil?
10551
+ command.params['zone'] = zone unless zone.nil?
10552
+ command.params['instance'] = instance unless instance.nil?
10553
+ command.query['accessConfig'] = access_config unless access_config.nil?
10554
+ command.query['networkInterface'] = network_interface unless network_interface.nil?
10555
+ command.query['requestId'] = request_id unless request_id.nil?
10556
+ command.query['fields'] = fields unless fields.nil?
10557
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
10558
+ command.query['userIp'] = user_ip unless user_ip.nil?
10559
+ execute_or_queue_command(command, &block)
10560
+ end
10561
+
10562
+ # Detaches a disk from an instance.
10563
+ # @param [String] project
10564
+ # Project ID for this request.
10565
+ # @param [String] zone
10566
+ # The name of the zone for this request.
10567
+ # @param [String] instance
10568
+ # Instance name for this request.
10569
+ # @param [String] device_name
10570
+ # The device name of the disk to detach. Make a get() request on the instance to
10571
+ # view currently attached disks and device names.
10572
+ # @param [String] request_id
10573
+ # An optional request ID to identify requests. Specify a unique request ID so
10574
+ # that if you must retry your request, the server will know to ignore the
10575
+ # request if it has already been completed.
10576
+ # For example, consider a situation where you make an initial request and the
10577
+ # request times out. If you make the request again with the same request ID, the
10578
+ # server can check if original operation with the same request ID was received,
10579
+ # and if so, will ignore the second request. This prevents clients from
10580
+ # accidentally creating duplicate commitments.
10581
+ # The request ID must be a valid UUID with the exception that zero UUID is not
10582
+ # supported (00000000-0000-0000-0000-000000000000).
10583
+ # @param [String] fields
10584
+ # Selector specifying which fields to include in a partial response.
10585
+ # @param [String] quota_user
10586
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
10587
+ # characters.
10588
+ # @param [String] user_ip
10589
+ # Deprecated. Please use quotaUser instead.
10590
+ # @param [Google::Apis::RequestOptions] options
10591
+ # Request-specific options
10592
+ #
10593
+ # @yield [result, err] Result & error if block supplied
10594
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
10595
+ # @yieldparam err [StandardError] error object if request failed
10596
+ #
10597
+ # @return [Google::Apis::ComputeV1::Operation]
10598
+ #
10599
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
10600
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
10601
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
10602
+ def detach_disk(project, zone, instance, device_name, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
10603
+ command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/detachDisk', options)
10604
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
10292
10605
  command.response_class = Google::Apis::ComputeV1::Operation
10293
10606
  command.params['project'] = project unless project.nil?
10294
10607
  command.params['zone'] = zone unless zone.nil?
@@ -17089,13 +17402,11 @@ module Google
17089
17402
  execute_or_queue_command(command, &block)
17090
17403
  end
17091
17404
 
17092
- # Deletes the specified autoscaler.
17405
+ # Deletes the specified PublicAdvertisedPrefix
17093
17406
  # @param [String] project
17094
17407
  # Project ID for this request.
17095
- # @param [String] region
17096
- # Name of the region scoping this request.
17097
- # @param [String] autoscaler
17098
- # Name of the autoscaler to delete.
17408
+ # @param [String] public_advertised_prefix
17409
+ # Name of the PublicAdvertisedPrefix resource to delete.
17099
17410
  # @param [String] request_id
17100
17411
  # An optional request ID to identify requests. Specify a unique request ID so
17101
17412
  # that if you must retry your request, the server will know to ignore the
@@ -17126,13 +17437,12 @@ module Google
17126
17437
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17127
17438
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17128
17439
  # @raise [Google::Apis::AuthorizationError] Authorization is required
17129
- def delete_region_autoscaler(project, region, autoscaler, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17130
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/autoscalers/{autoscaler}', options)
17440
+ def delete_public_advertised_prefix(project, public_advertised_prefix, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17441
+ command = make_simple_command(:delete, 'projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}', options)
17131
17442
  command.response_representation = Google::Apis::ComputeV1::Operation::Representation
17132
17443
  command.response_class = Google::Apis::ComputeV1::Operation
17133
17444
  command.params['project'] = project unless project.nil?
17134
- command.params['region'] = region unless region.nil?
17135
- command.params['autoscaler'] = autoscaler unless autoscaler.nil?
17445
+ command.params['publicAdvertisedPrefix'] = public_advertised_prefix unless public_advertised_prefix.nil?
17136
17446
  command.query['requestId'] = request_id unless request_id.nil?
17137
17447
  command.query['fields'] = fields unless fields.nil?
17138
17448
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -17140,13 +17450,11 @@ module Google
17140
17450
  execute_or_queue_command(command, &block)
17141
17451
  end
17142
17452
 
17143
- # Returns the specified autoscaler.
17453
+ # Returns the specified PublicAdvertisedPrefix resource.
17144
17454
  # @param [String] project
17145
17455
  # Project ID for this request.
17146
- # @param [String] region
17147
- # Name of the region scoping this request.
17148
- # @param [String] autoscaler
17149
- # Name of the autoscaler to return.
17456
+ # @param [String] public_advertised_prefix
17457
+ # Name of the PublicAdvertisedPrefix resource to return.
17150
17458
  # @param [String] fields
17151
17459
  # Selector specifying which fields to include in a partial response.
17152
17460
  # @param [String] quota_user
@@ -17158,34 +17466,31 @@ module Google
17158
17466
  # Request-specific options
17159
17467
  #
17160
17468
  # @yield [result, err] Result & error if block supplied
17161
- # @yieldparam result [Google::Apis::ComputeV1::Autoscaler] parsed result object
17469
+ # @yieldparam result [Google::Apis::ComputeV1::PublicAdvertisedPrefix] parsed result object
17162
17470
  # @yieldparam err [StandardError] error object if request failed
17163
17471
  #
17164
- # @return [Google::Apis::ComputeV1::Autoscaler]
17472
+ # @return [Google::Apis::ComputeV1::PublicAdvertisedPrefix]
17165
17473
  #
17166
17474
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17167
17475
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17168
17476
  # @raise [Google::Apis::AuthorizationError] Authorization is required
17169
- def get_region_autoscaler(project, region, autoscaler, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17170
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/autoscalers/{autoscaler}', options)
17171
- command.response_representation = Google::Apis::ComputeV1::Autoscaler::Representation
17172
- command.response_class = Google::Apis::ComputeV1::Autoscaler
17477
+ def get_public_advertised_prefix(project, public_advertised_prefix, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17478
+ command = make_simple_command(:get, 'projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}', options)
17479
+ command.response_representation = Google::Apis::ComputeV1::PublicAdvertisedPrefix::Representation
17480
+ command.response_class = Google::Apis::ComputeV1::PublicAdvertisedPrefix
17173
17481
  command.params['project'] = project unless project.nil?
17174
- command.params['region'] = region unless region.nil?
17175
- command.params['autoscaler'] = autoscaler unless autoscaler.nil?
17482
+ command.params['publicAdvertisedPrefix'] = public_advertised_prefix unless public_advertised_prefix.nil?
17176
17483
  command.query['fields'] = fields unless fields.nil?
17177
17484
  command.query['quotaUser'] = quota_user unless quota_user.nil?
17178
17485
  command.query['userIp'] = user_ip unless user_ip.nil?
17179
17486
  execute_or_queue_command(command, &block)
17180
17487
  end
17181
17488
 
17182
- # Creates an autoscaler in the specified project using the data included in the
17183
- # request.
17489
+ # Creates a PublicAdvertisedPrefix in the specified project using the parameters
17490
+ # that are included in the request.
17184
17491
  # @param [String] project
17185
17492
  # Project ID for this request.
17186
- # @param [String] region
17187
- # Name of the region scoping this request.
17188
- # @param [Google::Apis::ComputeV1::Autoscaler] autoscaler_object
17493
+ # @param [Google::Apis::ComputeV1::PublicAdvertisedPrefix] public_advertised_prefix_object
17189
17494
  # @param [String] request_id
17190
17495
  # An optional request ID to identify requests. Specify a unique request ID so
17191
17496
  # that if you must retry your request, the server will know to ignore the
@@ -17216,14 +17521,13 @@ module Google
17216
17521
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17217
17522
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17218
17523
  # @raise [Google::Apis::AuthorizationError] Authorization is required
17219
- def insert_region_autoscaler(project, region, autoscaler_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17220
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/autoscalers', options)
17221
- command.request_representation = Google::Apis::ComputeV1::Autoscaler::Representation
17222
- command.request_object = autoscaler_object
17524
+ def insert_public_advertised_prefix(project, public_advertised_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17525
+ command = make_simple_command(:post, 'projects/{project}/global/publicAdvertisedPrefixes', options)
17526
+ command.request_representation = Google::Apis::ComputeV1::PublicAdvertisedPrefix::Representation
17527
+ command.request_object = public_advertised_prefix_object
17223
17528
  command.response_representation = Google::Apis::ComputeV1::Operation::Representation
17224
17529
  command.response_class = Google::Apis::ComputeV1::Operation
17225
17530
  command.params['project'] = project unless project.nil?
17226
- command.params['region'] = region unless region.nil?
17227
17531
  command.query['requestId'] = request_id unless request_id.nil?
17228
17532
  command.query['fields'] = fields unless fields.nil?
17229
17533
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -17231,11 +17535,9 @@ module Google
17231
17535
  execute_or_queue_command(command, &block)
17232
17536
  end
17233
17537
 
17234
- # Retrieves a list of autoscalers contained within the specified region.
17538
+ # Lists the PublicAdvertisedPrefixes for a project.
17235
17539
  # @param [String] project
17236
17540
  # Project ID for this request.
17237
- # @param [String] region
17238
- # Name of the region scoping this request.
17239
17541
  # @param [String] filter
17240
17542
  # A filter expression that filters resources listed in the response. The
17241
17543
  # expression must specify the field name, a comparison operator, and the value
@@ -17284,20 +17586,19 @@ module Google
17284
17586
  # Request-specific options
17285
17587
  #
17286
17588
  # @yield [result, err] Result & error if block supplied
17287
- # @yieldparam result [Google::Apis::ComputeV1::RegionAutoscalerList] parsed result object
17589
+ # @yieldparam result [Google::Apis::ComputeV1::PublicAdvertisedPrefixList] parsed result object
17288
17590
  # @yieldparam err [StandardError] error object if request failed
17289
17591
  #
17290
- # @return [Google::Apis::ComputeV1::RegionAutoscalerList]
17592
+ # @return [Google::Apis::ComputeV1::PublicAdvertisedPrefixList]
17291
17593
  #
17292
17594
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17293
17595
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17294
17596
  # @raise [Google::Apis::AuthorizationError] Authorization is required
17295
- def list_region_autoscalers(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)
17296
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/autoscalers', options)
17297
- command.response_representation = Google::Apis::ComputeV1::RegionAutoscalerList::Representation
17298
- command.response_class = Google::Apis::ComputeV1::RegionAutoscalerList
17597
+ def list_public_advertised_prefixes(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17598
+ command = make_simple_command(:get, 'projects/{project}/global/publicAdvertisedPrefixes', options)
17599
+ command.response_representation = Google::Apis::ComputeV1::PublicAdvertisedPrefixList::Representation
17600
+ command.response_class = Google::Apis::ComputeV1::PublicAdvertisedPrefixList
17299
17601
  command.params['project'] = project unless project.nil?
17300
- command.params['region'] = region unless region.nil?
17301
17602
  command.query['filter'] = filter unless filter.nil?
17302
17603
  command.query['maxResults'] = max_results unless max_results.nil?
17303
17604
  command.query['orderBy'] = order_by unless order_by.nil?
@@ -17309,16 +17610,14 @@ module Google
17309
17610
  execute_or_queue_command(command, &block)
17310
17611
  end
17311
17612
 
17312
- # Updates an autoscaler in the specified project using the data included in the
17313
- # request. This method supports PATCH semantics and uses the JSON merge patch
17314
- # format and processing rules.
17613
+ # Patches the specified Router resource with the data included in the request.
17614
+ # This method supports PATCH semantics and uses JSON merge patch format and
17615
+ # processing rules.
17315
17616
  # @param [String] project
17316
17617
  # Project ID for this request.
17317
- # @param [String] region
17318
- # Name of the region scoping this request.
17319
- # @param [Google::Apis::ComputeV1::Autoscaler] autoscaler_object
17320
- # @param [String] autoscaler
17321
- # Name of the autoscaler to patch.
17618
+ # @param [String] public_advertised_prefix
17619
+ # Name of the PublicAdvertisedPrefix resource to patch.
17620
+ # @param [Google::Apis::ComputeV1::PublicAdvertisedPrefix] public_advertised_prefix_object
17322
17621
  # @param [String] request_id
17323
17622
  # An optional request ID to identify requests. Specify a unique request ID so
17324
17623
  # that if you must retry your request, the server will know to ignore the
@@ -17349,15 +17648,14 @@ module Google
17349
17648
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17350
17649
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17351
17650
  # @raise [Google::Apis::AuthorizationError] Authorization is required
17352
- def patch_region_autoscaler(project, region, autoscaler_object = nil, autoscaler: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17353
- command = make_simple_command(:patch, 'projects/{project}/regions/{region}/autoscalers', options)
17354
- command.request_representation = Google::Apis::ComputeV1::Autoscaler::Representation
17355
- command.request_object = autoscaler_object
17651
+ def patch_public_advertised_prefix(project, public_advertised_prefix, public_advertised_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17652
+ command = make_simple_command(:patch, 'projects/{project}/global/publicAdvertisedPrefixes/{publicAdvertisedPrefix}', options)
17653
+ command.request_representation = Google::Apis::ComputeV1::PublicAdvertisedPrefix::Representation
17654
+ command.request_object = public_advertised_prefix_object
17356
17655
  command.response_representation = Google::Apis::ComputeV1::Operation::Representation
17357
17656
  command.response_class = Google::Apis::ComputeV1::Operation
17358
17657
  command.params['project'] = project unless project.nil?
17359
- command.params['region'] = region unless region.nil?
17360
- command.query['autoscaler'] = autoscaler unless autoscaler.nil?
17658
+ command.params['publicAdvertisedPrefix'] = public_advertised_prefix unless public_advertised_prefix.nil?
17361
17659
  command.query['requestId'] = request_id unless request_id.nil?
17362
17660
  command.query['fields'] = fields unless fields.nil?
17363
17661
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -17365,26 +17663,54 @@ module Google
17365
17663
  execute_or_queue_command(command, &block)
17366
17664
  end
17367
17665
 
17368
- # Updates an autoscaler in the specified project using the data included in the
17369
- # request.
17666
+ # Lists all PublicDelegatedPrefix resources owned by the specific project across
17667
+ # all scopes.
17370
17668
  # @param [String] project
17371
- # Project ID for this request.
17372
- # @param [String] region
17373
- # Name of the region scoping this request.
17374
- # @param [Google::Apis::ComputeV1::Autoscaler] autoscaler_object
17375
- # @param [String] autoscaler
17376
- # Name of the autoscaler to update.
17377
- # @param [String] request_id
17378
- # An optional request ID to identify requests. Specify a unique request ID so
17379
- # that if you must retry your request, the server will know to ignore the
17380
- # request if it has already been completed.
17381
- # For example, consider a situation where you make an initial request and the
17382
- # request times out. If you make the request again with the same request ID, the
17383
- # server can check if original operation with the same request ID was received,
17384
- # and if so, will ignore the second request. This prevents clients from
17385
- # accidentally creating duplicate commitments.
17386
- # The request ID must be a valid UUID with the exception that zero UUID is not
17387
- # supported (00000000-0000-0000-0000-000000000000).
17669
+ # Name of the project scoping this request.
17670
+ # @param [String] filter
17671
+ # A filter expression that filters resources listed in the response. The
17672
+ # expression must specify the field name, a comparison operator, and the value
17673
+ # that you want to use for filtering. The value must be a string, a number, or a
17674
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
17675
+ # For example, if you are filtering Compute Engine instances, you can exclude
17676
+ # instances named `example-instance` by specifying `name != example-instance`.
17677
+ # You can also filter nested fields. For example, you could specify `scheduling.
17678
+ # automaticRestart = false` to include instances only if they are not scheduled
17679
+ # for automatic restarts. You can use filtering on nested fields to filter based
17680
+ # on resource labels.
17681
+ # To filter on multiple expressions, provide each separate expression within
17682
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
17683
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
17684
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
17685
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
17686
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
17687
+ # @param [Boolean] include_all_scopes
17688
+ # Indicates whether every visible scope for each scope type (zone, region,
17689
+ # global) should be included in the response. For new resource types added after
17690
+ # this field, the flag has no effect as new resource types will always include
17691
+ # every visible scope for each scope type in response. For resource types which
17692
+ # predate this field, if this flag is omitted or false, only scopes of the scope
17693
+ # types where the resource type is expected to be found will be included.
17694
+ # @param [Fixnum] max_results
17695
+ # The maximum number of results per page that should be returned. If the number
17696
+ # of available results is larger than `maxResults`, Compute Engine returns a `
17697
+ # nextPageToken` that can be used to get the next page of results in subsequent
17698
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
17699
+ # @param [String] order_by
17700
+ # Sorts list results by a certain order. By default, results are returned in
17701
+ # alphanumerical order based on the resource name.
17702
+ # You can also sort results in descending order based on the creation timestamp
17703
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
17704
+ # creationTimestamp` field in reverse chronological order (newest result first).
17705
+ # Use this to sort resources like operations so that the newest operation is
17706
+ # returned first.
17707
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
17708
+ # @param [String] page_token
17709
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
17710
+ # by a previous list request to get the next page of results.
17711
+ # @param [Boolean] return_partial_success
17712
+ # Opt-in for partial success behavior which provides partial results in case of
17713
+ # failure. The default value is false.
17388
17714
  # @param [String] fields
17389
17715
  # Selector specifying which fields to include in a partial response.
17390
17716
  # @param [String] quota_user
@@ -17396,37 +17722,38 @@ module Google
17396
17722
  # Request-specific options
17397
17723
  #
17398
17724
  # @yield [result, err] Result & error if block supplied
17399
- # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
17725
+ # @yieldparam result [Google::Apis::ComputeV1::PublicDelegatedPrefixAggregatedList] parsed result object
17400
17726
  # @yieldparam err [StandardError] error object if request failed
17401
17727
  #
17402
- # @return [Google::Apis::ComputeV1::Operation]
17728
+ # @return [Google::Apis::ComputeV1::PublicDelegatedPrefixAggregatedList]
17403
17729
  #
17404
17730
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17405
17731
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17406
17732
  # @raise [Google::Apis::AuthorizationError] Authorization is required
17407
- def update_region_autoscaler(project, region, autoscaler_object = nil, autoscaler: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17408
- command = make_simple_command(:put, 'projects/{project}/regions/{region}/autoscalers', options)
17409
- command.request_representation = Google::Apis::ComputeV1::Autoscaler::Representation
17410
- command.request_object = autoscaler_object
17411
- command.response_representation = Google::Apis::ComputeV1::Operation::Representation
17412
- command.response_class = Google::Apis::ComputeV1::Operation
17733
+ def aggregated_public_delegated_prefix_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)
17734
+ command = make_simple_command(:get, 'projects/{project}/aggregated/publicDelegatedPrefixes', options)
17735
+ command.response_representation = Google::Apis::ComputeV1::PublicDelegatedPrefixAggregatedList::Representation
17736
+ command.response_class = Google::Apis::ComputeV1::PublicDelegatedPrefixAggregatedList
17413
17737
  command.params['project'] = project unless project.nil?
17414
- command.params['region'] = region unless region.nil?
17415
- command.query['autoscaler'] = autoscaler unless autoscaler.nil?
17416
- command.query['requestId'] = request_id unless request_id.nil?
17738
+ command.query['filter'] = filter unless filter.nil?
17739
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
17740
+ command.query['maxResults'] = max_results unless max_results.nil?
17741
+ command.query['orderBy'] = order_by unless order_by.nil?
17742
+ command.query['pageToken'] = page_token unless page_token.nil?
17743
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
17417
17744
  command.query['fields'] = fields unless fields.nil?
17418
17745
  command.query['quotaUser'] = quota_user unless quota_user.nil?
17419
17746
  command.query['userIp'] = user_ip unless user_ip.nil?
17420
17747
  execute_or_queue_command(command, &block)
17421
17748
  end
17422
17749
 
17423
- # Deletes the specified regional BackendService resource.
17750
+ # Deletes the specified PublicDelegatedPrefix in the given region.
17424
17751
  # @param [String] project
17425
17752
  # Project ID for this request.
17426
17753
  # @param [String] region
17427
- # Name of the region scoping this request.
17428
- # @param [String] backend_service
17429
- # Name of the BackendService resource to delete.
17754
+ # Name of the region of this request.
17755
+ # @param [String] public_delegated_prefix
17756
+ # Name of the PublicDelegatedPrefix resource to delete.
17430
17757
  # @param [String] request_id
17431
17758
  # An optional request ID to identify requests. Specify a unique request ID so
17432
17759
  # that if you must retry your request, the server will know to ignore the
@@ -17457,13 +17784,13 @@ module Google
17457
17784
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17458
17785
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17459
17786
  # @raise [Google::Apis::AuthorizationError] Authorization is required
17460
- def delete_region_backend_service(project, region, backend_service, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17461
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/backendServices/{backendService}', options)
17787
+ def delete_public_delegated_prefix(project, region, public_delegated_prefix, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17788
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}', options)
17462
17789
  command.response_representation = Google::Apis::ComputeV1::Operation::Representation
17463
17790
  command.response_class = Google::Apis::ComputeV1::Operation
17464
17791
  command.params['project'] = project unless project.nil?
17465
17792
  command.params['region'] = region unless region.nil?
17466
- command.params['backendService'] = backend_service unless backend_service.nil?
17793
+ command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil?
17467
17794
  command.query['requestId'] = request_id unless request_id.nil?
17468
17795
  command.query['fields'] = fields unless fields.nil?
17469
17796
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -17471,13 +17798,13 @@ module Google
17471
17798
  execute_or_queue_command(command, &block)
17472
17799
  end
17473
17800
 
17474
- # Returns the specified regional BackendService resource.
17801
+ # Returns the specified PublicDelegatedPrefix resource in the given region.
17475
17802
  # @param [String] project
17476
17803
  # Project ID for this request.
17477
17804
  # @param [String] region
17478
- # Name of the region scoping this request.
17479
- # @param [String] backend_service
17480
- # Name of the BackendService resource to return.
17805
+ # Name of the region of this request.
17806
+ # @param [String] public_delegated_prefix
17807
+ # Name of the PublicDelegatedPrefix resource to return.
17481
17808
  # @param [String] fields
17482
17809
  # Selector specifying which fields to include in a partial response.
17483
17810
  # @param [String] quota_user
@@ -17489,34 +17816,45 @@ module Google
17489
17816
  # Request-specific options
17490
17817
  #
17491
17818
  # @yield [result, err] Result & error if block supplied
17492
- # @yieldparam result [Google::Apis::ComputeV1::BackendService] parsed result object
17819
+ # @yieldparam result [Google::Apis::ComputeV1::PublicDelegatedPrefix] parsed result object
17493
17820
  # @yieldparam err [StandardError] error object if request failed
17494
17821
  #
17495
- # @return [Google::Apis::ComputeV1::BackendService]
17822
+ # @return [Google::Apis::ComputeV1::PublicDelegatedPrefix]
17496
17823
  #
17497
17824
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17498
17825
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17499
17826
  # @raise [Google::Apis::AuthorizationError] Authorization is required
17500
- def get_region_backend_service(project, region, backend_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17501
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/backendServices/{backendService}', options)
17502
- command.response_representation = Google::Apis::ComputeV1::BackendService::Representation
17503
- command.response_class = Google::Apis::ComputeV1::BackendService
17827
+ def get_public_delegated_prefix(project, region, public_delegated_prefix, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17828
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}', options)
17829
+ command.response_representation = Google::Apis::ComputeV1::PublicDelegatedPrefix::Representation
17830
+ command.response_class = Google::Apis::ComputeV1::PublicDelegatedPrefix
17504
17831
  command.params['project'] = project unless project.nil?
17505
17832
  command.params['region'] = region unless region.nil?
17506
- command.params['backendService'] = backend_service unless backend_service.nil?
17833
+ command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil?
17507
17834
  command.query['fields'] = fields unless fields.nil?
17508
17835
  command.query['quotaUser'] = quota_user unless quota_user.nil?
17509
17836
  command.query['userIp'] = user_ip unless user_ip.nil?
17510
17837
  execute_or_queue_command(command, &block)
17511
17838
  end
17512
17839
 
17513
- # Gets the most recent health check results for this regional BackendService.
17840
+ # Creates a PublicDelegatedPrefix in the specified project in the given region
17841
+ # using the parameters that are included in the request.
17514
17842
  # @param [String] project
17843
+ # Project ID for this request.
17515
17844
  # @param [String] region
17516
- # Name of the region scoping this request.
17517
- # @param [String] backend_service
17518
- # Name of the BackendService resource for which to get health.
17519
- # @param [Google::Apis::ComputeV1::ResourceGroupReference] resource_group_reference_object
17845
+ # Name of the region of this request.
17846
+ # @param [Google::Apis::ComputeV1::PublicDelegatedPrefix] public_delegated_prefix_object
17847
+ # @param [String] request_id
17848
+ # An optional request ID to identify requests. Specify a unique request ID so
17849
+ # that if you must retry your request, the server will know to ignore the
17850
+ # request if it has already been completed.
17851
+ # For example, consider a situation where you make an initial request and the
17852
+ # request times out. If you make the request again with the same request ID, the
17853
+ # server can check if original operation with the same request ID was received,
17854
+ # and if so, will ignore the second request. This prevents clients from
17855
+ # accidentally creating duplicate commitments.
17856
+ # The request ID must be a valid UUID with the exception that zero UUID is not
17857
+ # supported (00000000-0000-0000-0000-000000000000).
17520
17858
  # @param [String] fields
17521
17859
  # Selector specifying which fields to include in a partial response.
17522
17860
  # @param [String] quota_user
@@ -17528,38 +17866,634 @@ module Google
17528
17866
  # Request-specific options
17529
17867
  #
17530
17868
  # @yield [result, err] Result & error if block supplied
17531
- # @yieldparam result [Google::Apis::ComputeV1::BackendServiceGroupHealth] parsed result object
17869
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
17532
17870
  # @yieldparam err [StandardError] error object if request failed
17533
17871
  #
17534
- # @return [Google::Apis::ComputeV1::BackendServiceGroupHealth]
17872
+ # @return [Google::Apis::ComputeV1::Operation]
17535
17873
  #
17536
17874
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17537
17875
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17538
17876
  # @raise [Google::Apis::AuthorizationError] Authorization is required
17539
- def get_region_backend_service_health(project, region, backend_service, resource_group_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17540
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/backendServices/{backendService}/getHealth', options)
17541
- command.request_representation = Google::Apis::ComputeV1::ResourceGroupReference::Representation
17542
- command.request_object = resource_group_reference_object
17543
- command.response_representation = Google::Apis::ComputeV1::BackendServiceGroupHealth::Representation
17544
- command.response_class = Google::Apis::ComputeV1::BackendServiceGroupHealth
17877
+ def insert_public_delegated_prefix(project, region, public_delegated_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17878
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/publicDelegatedPrefixes', options)
17879
+ command.request_representation = Google::Apis::ComputeV1::PublicDelegatedPrefix::Representation
17880
+ command.request_object = public_delegated_prefix_object
17881
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
17882
+ command.response_class = Google::Apis::ComputeV1::Operation
17545
17883
  command.params['project'] = project unless project.nil?
17546
17884
  command.params['region'] = region unless region.nil?
17547
- command.params['backendService'] = backend_service unless backend_service.nil?
17885
+ command.query['requestId'] = request_id unless request_id.nil?
17548
17886
  command.query['fields'] = fields unless fields.nil?
17549
17887
  command.query['quotaUser'] = quota_user unless quota_user.nil?
17550
17888
  command.query['userIp'] = user_ip unless user_ip.nil?
17551
17889
  execute_or_queue_command(command, &block)
17552
17890
  end
17553
17891
 
17554
- # Creates a regional BackendService resource in the specified project using the
17555
- # data included in the request. For more information, see Backend services
17556
- # overview.
17892
+ # Lists the PublicDelegatedPrefixes for a project in the given region.
17557
17893
  # @param [String] project
17558
17894
  # Project ID for this request.
17559
17895
  # @param [String] region
17560
- # Name of the region scoping this request.
17561
- # @param [Google::Apis::ComputeV1::BackendService] backend_service_object
17562
- # @param [String] request_id
17896
+ # Name of the region of this request.
17897
+ # @param [String] filter
17898
+ # A filter expression that filters resources listed in the response. The
17899
+ # expression must specify the field name, a comparison operator, and the value
17900
+ # that you want to use for filtering. The value must be a string, a number, or a
17901
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
17902
+ # For example, if you are filtering Compute Engine instances, you can exclude
17903
+ # instances named `example-instance` by specifying `name != example-instance`.
17904
+ # You can also filter nested fields. For example, you could specify `scheduling.
17905
+ # automaticRestart = false` to include instances only if they are not scheduled
17906
+ # for automatic restarts. You can use filtering on nested fields to filter based
17907
+ # on resource labels.
17908
+ # To filter on multiple expressions, provide each separate expression within
17909
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
17910
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
17911
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
17912
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
17913
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
17914
+ # @param [Fixnum] max_results
17915
+ # The maximum number of results per page that should be returned. If the number
17916
+ # of available results is larger than `maxResults`, Compute Engine returns a `
17917
+ # nextPageToken` that can be used to get the next page of results in subsequent
17918
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
17919
+ # @param [String] order_by
17920
+ # Sorts list results by a certain order. By default, results are returned in
17921
+ # alphanumerical order based on the resource name.
17922
+ # You can also sort results in descending order based on the creation timestamp
17923
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
17924
+ # creationTimestamp` field in reverse chronological order (newest result first).
17925
+ # Use this to sort resources like operations so that the newest operation is
17926
+ # returned first.
17927
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
17928
+ # @param [String] page_token
17929
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
17930
+ # by a previous list request to get the next page of results.
17931
+ # @param [Boolean] return_partial_success
17932
+ # Opt-in for partial success behavior which provides partial results in case of
17933
+ # failure. The default value is false.
17934
+ # @param [String] fields
17935
+ # Selector specifying which fields to include in a partial response.
17936
+ # @param [String] quota_user
17937
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
17938
+ # characters.
17939
+ # @param [String] user_ip
17940
+ # Deprecated. Please use quotaUser instead.
17941
+ # @param [Google::Apis::RequestOptions] options
17942
+ # Request-specific options
17943
+ #
17944
+ # @yield [result, err] Result & error if block supplied
17945
+ # @yieldparam result [Google::Apis::ComputeV1::PublicDelegatedPrefixList] parsed result object
17946
+ # @yieldparam err [StandardError] error object if request failed
17947
+ #
17948
+ # @return [Google::Apis::ComputeV1::PublicDelegatedPrefixList]
17949
+ #
17950
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17951
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17952
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
17953
+ def list_public_delegated_prefixes(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)
17954
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/publicDelegatedPrefixes', options)
17955
+ command.response_representation = Google::Apis::ComputeV1::PublicDelegatedPrefixList::Representation
17956
+ command.response_class = Google::Apis::ComputeV1::PublicDelegatedPrefixList
17957
+ command.params['project'] = project unless project.nil?
17958
+ command.params['region'] = region unless region.nil?
17959
+ command.query['filter'] = filter unless filter.nil?
17960
+ command.query['maxResults'] = max_results unless max_results.nil?
17961
+ command.query['orderBy'] = order_by unless order_by.nil?
17962
+ command.query['pageToken'] = page_token unless page_token.nil?
17963
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
17964
+ command.query['fields'] = fields unless fields.nil?
17965
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17966
+ command.query['userIp'] = user_ip unless user_ip.nil?
17967
+ execute_or_queue_command(command, &block)
17968
+ end
17969
+
17970
+ # Patches the specified PublicDelegatedPrefix resource with the data included in
17971
+ # the request. This method supports PATCH semantics and uses JSON merge patch
17972
+ # format and processing rules.
17973
+ # @param [String] project
17974
+ # Project ID for this request.
17975
+ # @param [String] region
17976
+ # Name of the region for this request.
17977
+ # @param [String] public_delegated_prefix
17978
+ # Name of the PublicDelegatedPrefix resource to patch.
17979
+ # @param [Google::Apis::ComputeV1::PublicDelegatedPrefix] public_delegated_prefix_object
17980
+ # @param [String] request_id
17981
+ # An optional request ID to identify requests. Specify a unique request ID so
17982
+ # that if you must retry your request, the server will know to ignore the
17983
+ # request if it has already been completed.
17984
+ # For example, consider a situation where you make an initial request and the
17985
+ # request times out. If you make the request again with the same request ID, the
17986
+ # server can check if original operation with the same request ID was received,
17987
+ # and if so, will ignore the second request. This prevents clients from
17988
+ # accidentally creating duplicate commitments.
17989
+ # The request ID must be a valid UUID with the exception that zero UUID is not
17990
+ # supported (00000000-0000-0000-0000-000000000000).
17991
+ # @param [String] fields
17992
+ # Selector specifying which fields to include in a partial response.
17993
+ # @param [String] quota_user
17994
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
17995
+ # characters.
17996
+ # @param [String] user_ip
17997
+ # Deprecated. Please use quotaUser instead.
17998
+ # @param [Google::Apis::RequestOptions] options
17999
+ # Request-specific options
18000
+ #
18001
+ # @yield [result, err] Result & error if block supplied
18002
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
18003
+ # @yieldparam err [StandardError] error object if request failed
18004
+ #
18005
+ # @return [Google::Apis::ComputeV1::Operation]
18006
+ #
18007
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18008
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18009
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18010
+ def patch_public_delegated_prefix(project, region, public_delegated_prefix, public_delegated_prefix_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18011
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/publicDelegatedPrefixes/{publicDelegatedPrefix}', options)
18012
+ command.request_representation = Google::Apis::ComputeV1::PublicDelegatedPrefix::Representation
18013
+ command.request_object = public_delegated_prefix_object
18014
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
18015
+ command.response_class = Google::Apis::ComputeV1::Operation
18016
+ command.params['project'] = project unless project.nil?
18017
+ command.params['region'] = region unless region.nil?
18018
+ command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil?
18019
+ command.query['requestId'] = request_id unless request_id.nil?
18020
+ command.query['fields'] = fields unless fields.nil?
18021
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18022
+ command.query['userIp'] = user_ip unless user_ip.nil?
18023
+ execute_or_queue_command(command, &block)
18024
+ end
18025
+
18026
+ # Deletes the specified autoscaler.
18027
+ # @param [String] project
18028
+ # Project ID for this request.
18029
+ # @param [String] region
18030
+ # Name of the region scoping this request.
18031
+ # @param [String] autoscaler
18032
+ # Name of the autoscaler to delete.
18033
+ # @param [String] request_id
18034
+ # An optional request ID to identify requests. Specify a unique request ID so
18035
+ # that if you must retry your request, the server will know to ignore the
18036
+ # request if it has already been completed.
18037
+ # For example, consider a situation where you make an initial request and the
18038
+ # request times out. If you make the request again with the same request ID, the
18039
+ # server can check if original operation with the same request ID was received,
18040
+ # and if so, will ignore the second request. This prevents clients from
18041
+ # accidentally creating duplicate commitments.
18042
+ # The request ID must be a valid UUID with the exception that zero UUID is not
18043
+ # supported (00000000-0000-0000-0000-000000000000).
18044
+ # @param [String] fields
18045
+ # Selector specifying which fields to include in a partial response.
18046
+ # @param [String] quota_user
18047
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
18048
+ # characters.
18049
+ # @param [String] user_ip
18050
+ # Deprecated. Please use quotaUser instead.
18051
+ # @param [Google::Apis::RequestOptions] options
18052
+ # Request-specific options
18053
+ #
18054
+ # @yield [result, err] Result & error if block supplied
18055
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
18056
+ # @yieldparam err [StandardError] error object if request failed
18057
+ #
18058
+ # @return [Google::Apis::ComputeV1::Operation]
18059
+ #
18060
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18061
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18062
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18063
+ def delete_region_autoscaler(project, region, autoscaler, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18064
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/autoscalers/{autoscaler}', options)
18065
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
18066
+ command.response_class = Google::Apis::ComputeV1::Operation
18067
+ command.params['project'] = project unless project.nil?
18068
+ command.params['region'] = region unless region.nil?
18069
+ command.params['autoscaler'] = autoscaler unless autoscaler.nil?
18070
+ command.query['requestId'] = request_id unless request_id.nil?
18071
+ command.query['fields'] = fields unless fields.nil?
18072
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18073
+ command.query['userIp'] = user_ip unless user_ip.nil?
18074
+ execute_or_queue_command(command, &block)
18075
+ end
18076
+
18077
+ # Returns the specified autoscaler.
18078
+ # @param [String] project
18079
+ # Project ID for this request.
18080
+ # @param [String] region
18081
+ # Name of the region scoping this request.
18082
+ # @param [String] autoscaler
18083
+ # Name of the autoscaler to return.
18084
+ # @param [String] fields
18085
+ # Selector specifying which fields to include in a partial response.
18086
+ # @param [String] quota_user
18087
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
18088
+ # characters.
18089
+ # @param [String] user_ip
18090
+ # Deprecated. Please use quotaUser instead.
18091
+ # @param [Google::Apis::RequestOptions] options
18092
+ # Request-specific options
18093
+ #
18094
+ # @yield [result, err] Result & error if block supplied
18095
+ # @yieldparam result [Google::Apis::ComputeV1::Autoscaler] parsed result object
18096
+ # @yieldparam err [StandardError] error object if request failed
18097
+ #
18098
+ # @return [Google::Apis::ComputeV1::Autoscaler]
18099
+ #
18100
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18101
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18102
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18103
+ def get_region_autoscaler(project, region, autoscaler, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18104
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/autoscalers/{autoscaler}', options)
18105
+ command.response_representation = Google::Apis::ComputeV1::Autoscaler::Representation
18106
+ command.response_class = Google::Apis::ComputeV1::Autoscaler
18107
+ command.params['project'] = project unless project.nil?
18108
+ command.params['region'] = region unless region.nil?
18109
+ command.params['autoscaler'] = autoscaler unless autoscaler.nil?
18110
+ command.query['fields'] = fields unless fields.nil?
18111
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18112
+ command.query['userIp'] = user_ip unless user_ip.nil?
18113
+ execute_or_queue_command(command, &block)
18114
+ end
18115
+
18116
+ # Creates an autoscaler in the specified project using the data included in the
18117
+ # request.
18118
+ # @param [String] project
18119
+ # Project ID for this request.
18120
+ # @param [String] region
18121
+ # Name of the region scoping this request.
18122
+ # @param [Google::Apis::ComputeV1::Autoscaler] autoscaler_object
18123
+ # @param [String] request_id
18124
+ # An optional request ID to identify requests. Specify a unique request ID so
18125
+ # that if you must retry your request, the server will know to ignore the
18126
+ # request if it has already been completed.
18127
+ # For example, consider a situation where you make an initial request and the
18128
+ # request times out. If you make the request again with the same request ID, the
18129
+ # server can check if original operation with the same request ID was received,
18130
+ # and if so, will ignore the second request. This prevents clients from
18131
+ # accidentally creating duplicate commitments.
18132
+ # The request ID must be a valid UUID with the exception that zero UUID is not
18133
+ # supported (00000000-0000-0000-0000-000000000000).
18134
+ # @param [String] fields
18135
+ # Selector specifying which fields to include in a partial response.
18136
+ # @param [String] quota_user
18137
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
18138
+ # characters.
18139
+ # @param [String] user_ip
18140
+ # Deprecated. Please use quotaUser instead.
18141
+ # @param [Google::Apis::RequestOptions] options
18142
+ # Request-specific options
18143
+ #
18144
+ # @yield [result, err] Result & error if block supplied
18145
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
18146
+ # @yieldparam err [StandardError] error object if request failed
18147
+ #
18148
+ # @return [Google::Apis::ComputeV1::Operation]
18149
+ #
18150
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18151
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18152
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18153
+ def insert_region_autoscaler(project, region, autoscaler_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18154
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/autoscalers', options)
18155
+ command.request_representation = Google::Apis::ComputeV1::Autoscaler::Representation
18156
+ command.request_object = autoscaler_object
18157
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
18158
+ command.response_class = Google::Apis::ComputeV1::Operation
18159
+ command.params['project'] = project unless project.nil?
18160
+ command.params['region'] = region unless region.nil?
18161
+ command.query['requestId'] = request_id unless request_id.nil?
18162
+ command.query['fields'] = fields unless fields.nil?
18163
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18164
+ command.query['userIp'] = user_ip unless user_ip.nil?
18165
+ execute_or_queue_command(command, &block)
18166
+ end
18167
+
18168
+ # Retrieves a list of autoscalers contained within the specified region.
18169
+ # @param [String] project
18170
+ # Project ID for this request.
18171
+ # @param [String] region
18172
+ # Name of the region scoping this request.
18173
+ # @param [String] filter
18174
+ # A filter expression that filters resources listed in the response. The
18175
+ # expression must specify the field name, a comparison operator, and the value
18176
+ # that you want to use for filtering. The value must be a string, a number, or a
18177
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
18178
+ # For example, if you are filtering Compute Engine instances, you can exclude
18179
+ # instances named `example-instance` by specifying `name != example-instance`.
18180
+ # You can also filter nested fields. For example, you could specify `scheduling.
18181
+ # automaticRestart = false` to include instances only if they are not scheduled
18182
+ # for automatic restarts. You can use filtering on nested fields to filter based
18183
+ # on resource labels.
18184
+ # To filter on multiple expressions, provide each separate expression within
18185
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
18186
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
18187
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
18188
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
18189
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
18190
+ # @param [Fixnum] max_results
18191
+ # The maximum number of results per page that should be returned. If the number
18192
+ # of available results is larger than `maxResults`, Compute Engine returns a `
18193
+ # nextPageToken` that can be used to get the next page of results in subsequent
18194
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
18195
+ # @param [String] order_by
18196
+ # Sorts list results by a certain order. By default, results are returned in
18197
+ # alphanumerical order based on the resource name.
18198
+ # You can also sort results in descending order based on the creation timestamp
18199
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
18200
+ # creationTimestamp` field in reverse chronological order (newest result first).
18201
+ # Use this to sort resources like operations so that the newest operation is
18202
+ # returned first.
18203
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
18204
+ # @param [String] page_token
18205
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
18206
+ # by a previous list request to get the next page of results.
18207
+ # @param [Boolean] return_partial_success
18208
+ # Opt-in for partial success behavior which provides partial results in case of
18209
+ # failure. The default value is false.
18210
+ # @param [String] fields
18211
+ # Selector specifying which fields to include in a partial response.
18212
+ # @param [String] quota_user
18213
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
18214
+ # characters.
18215
+ # @param [String] user_ip
18216
+ # Deprecated. Please use quotaUser instead.
18217
+ # @param [Google::Apis::RequestOptions] options
18218
+ # Request-specific options
18219
+ #
18220
+ # @yield [result, err] Result & error if block supplied
18221
+ # @yieldparam result [Google::Apis::ComputeV1::RegionAutoscalerList] parsed result object
18222
+ # @yieldparam err [StandardError] error object if request failed
18223
+ #
18224
+ # @return [Google::Apis::ComputeV1::RegionAutoscalerList]
18225
+ #
18226
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18227
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18228
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18229
+ def list_region_autoscalers(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)
18230
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/autoscalers', options)
18231
+ command.response_representation = Google::Apis::ComputeV1::RegionAutoscalerList::Representation
18232
+ command.response_class = Google::Apis::ComputeV1::RegionAutoscalerList
18233
+ command.params['project'] = project unless project.nil?
18234
+ command.params['region'] = region unless region.nil?
18235
+ command.query['filter'] = filter unless filter.nil?
18236
+ command.query['maxResults'] = max_results unless max_results.nil?
18237
+ command.query['orderBy'] = order_by unless order_by.nil?
18238
+ command.query['pageToken'] = page_token unless page_token.nil?
18239
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
18240
+ command.query['fields'] = fields unless fields.nil?
18241
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18242
+ command.query['userIp'] = user_ip unless user_ip.nil?
18243
+ execute_or_queue_command(command, &block)
18244
+ end
18245
+
18246
+ # Updates an autoscaler in the specified project using the data included in the
18247
+ # request. This method supports PATCH semantics and uses the JSON merge patch
18248
+ # format and processing rules.
18249
+ # @param [String] project
18250
+ # Project ID for this request.
18251
+ # @param [String] region
18252
+ # Name of the region scoping this request.
18253
+ # @param [Google::Apis::ComputeV1::Autoscaler] autoscaler_object
18254
+ # @param [String] autoscaler
18255
+ # Name of the autoscaler to patch.
18256
+ # @param [String] request_id
18257
+ # An optional request ID to identify requests. Specify a unique request ID so
18258
+ # that if you must retry your request, the server will know to ignore the
18259
+ # request if it has already been completed.
18260
+ # For example, consider a situation where you make an initial request and the
18261
+ # request times out. If you make the request again with the same request ID, the
18262
+ # server can check if original operation with the same request ID was received,
18263
+ # and if so, will ignore the second request. This prevents clients from
18264
+ # accidentally creating duplicate commitments.
18265
+ # The request ID must be a valid UUID with the exception that zero UUID is not
18266
+ # supported (00000000-0000-0000-0000-000000000000).
18267
+ # @param [String] fields
18268
+ # Selector specifying which fields to include in a partial response.
18269
+ # @param [String] quota_user
18270
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
18271
+ # characters.
18272
+ # @param [String] user_ip
18273
+ # Deprecated. Please use quotaUser instead.
18274
+ # @param [Google::Apis::RequestOptions] options
18275
+ # Request-specific options
18276
+ #
18277
+ # @yield [result, err] Result & error if block supplied
18278
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
18279
+ # @yieldparam err [StandardError] error object if request failed
18280
+ #
18281
+ # @return [Google::Apis::ComputeV1::Operation]
18282
+ #
18283
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18284
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18285
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18286
+ def patch_region_autoscaler(project, region, autoscaler_object = nil, autoscaler: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18287
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/autoscalers', options)
18288
+ command.request_representation = Google::Apis::ComputeV1::Autoscaler::Representation
18289
+ command.request_object = autoscaler_object
18290
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
18291
+ command.response_class = Google::Apis::ComputeV1::Operation
18292
+ command.params['project'] = project unless project.nil?
18293
+ command.params['region'] = region unless region.nil?
18294
+ command.query['autoscaler'] = autoscaler unless autoscaler.nil?
18295
+ command.query['requestId'] = request_id unless request_id.nil?
18296
+ command.query['fields'] = fields unless fields.nil?
18297
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18298
+ command.query['userIp'] = user_ip unless user_ip.nil?
18299
+ execute_or_queue_command(command, &block)
18300
+ end
18301
+
18302
+ # Updates an autoscaler in the specified project using the data included in the
18303
+ # request.
18304
+ # @param [String] project
18305
+ # Project ID for this request.
18306
+ # @param [String] region
18307
+ # Name of the region scoping this request.
18308
+ # @param [Google::Apis::ComputeV1::Autoscaler] autoscaler_object
18309
+ # @param [String] autoscaler
18310
+ # Name of the autoscaler to update.
18311
+ # @param [String] request_id
18312
+ # An optional request ID to identify requests. Specify a unique request ID so
18313
+ # that if you must retry your request, the server will know to ignore the
18314
+ # request if it has already been completed.
18315
+ # For example, consider a situation where you make an initial request and the
18316
+ # request times out. If you make the request again with the same request ID, the
18317
+ # server can check if original operation with the same request ID was received,
18318
+ # and if so, will ignore the second request. This prevents clients from
18319
+ # accidentally creating duplicate commitments.
18320
+ # The request ID must be a valid UUID with the exception that zero UUID is not
18321
+ # supported (00000000-0000-0000-0000-000000000000).
18322
+ # @param [String] fields
18323
+ # Selector specifying which fields to include in a partial response.
18324
+ # @param [String] quota_user
18325
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
18326
+ # characters.
18327
+ # @param [String] user_ip
18328
+ # Deprecated. Please use quotaUser instead.
18329
+ # @param [Google::Apis::RequestOptions] options
18330
+ # Request-specific options
18331
+ #
18332
+ # @yield [result, err] Result & error if block supplied
18333
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
18334
+ # @yieldparam err [StandardError] error object if request failed
18335
+ #
18336
+ # @return [Google::Apis::ComputeV1::Operation]
18337
+ #
18338
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18339
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18340
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18341
+ def update_region_autoscaler(project, region, autoscaler_object = nil, autoscaler: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18342
+ command = make_simple_command(:put, 'projects/{project}/regions/{region}/autoscalers', options)
18343
+ command.request_representation = Google::Apis::ComputeV1::Autoscaler::Representation
18344
+ command.request_object = autoscaler_object
18345
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
18346
+ command.response_class = Google::Apis::ComputeV1::Operation
18347
+ command.params['project'] = project unless project.nil?
18348
+ command.params['region'] = region unless region.nil?
18349
+ command.query['autoscaler'] = autoscaler unless autoscaler.nil?
18350
+ command.query['requestId'] = request_id unless request_id.nil?
18351
+ command.query['fields'] = fields unless fields.nil?
18352
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18353
+ command.query['userIp'] = user_ip unless user_ip.nil?
18354
+ execute_or_queue_command(command, &block)
18355
+ end
18356
+
18357
+ # Deletes the specified regional BackendService resource.
18358
+ # @param [String] project
18359
+ # Project ID for this request.
18360
+ # @param [String] region
18361
+ # Name of the region scoping this request.
18362
+ # @param [String] backend_service
18363
+ # Name of the BackendService resource to delete.
18364
+ # @param [String] request_id
18365
+ # An optional request ID to identify requests. Specify a unique request ID so
18366
+ # that if you must retry your request, the server will know to ignore the
18367
+ # request if it has already been completed.
18368
+ # For example, consider a situation where you make an initial request and the
18369
+ # request times out. If you make the request again with the same request ID, the
18370
+ # server can check if original operation with the same request ID was received,
18371
+ # and if so, will ignore the second request. This prevents clients from
18372
+ # accidentally creating duplicate commitments.
18373
+ # The request ID must be a valid UUID with the exception that zero UUID is not
18374
+ # supported (00000000-0000-0000-0000-000000000000).
18375
+ # @param [String] fields
18376
+ # Selector specifying which fields to include in a partial response.
18377
+ # @param [String] quota_user
18378
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
18379
+ # characters.
18380
+ # @param [String] user_ip
18381
+ # Deprecated. Please use quotaUser instead.
18382
+ # @param [Google::Apis::RequestOptions] options
18383
+ # Request-specific options
18384
+ #
18385
+ # @yield [result, err] Result & error if block supplied
18386
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
18387
+ # @yieldparam err [StandardError] error object if request failed
18388
+ #
18389
+ # @return [Google::Apis::ComputeV1::Operation]
18390
+ #
18391
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18392
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18393
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18394
+ def delete_region_backend_service(project, region, backend_service, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18395
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/backendServices/{backendService}', options)
18396
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
18397
+ command.response_class = Google::Apis::ComputeV1::Operation
18398
+ command.params['project'] = project unless project.nil?
18399
+ command.params['region'] = region unless region.nil?
18400
+ command.params['backendService'] = backend_service unless backend_service.nil?
18401
+ command.query['requestId'] = request_id unless request_id.nil?
18402
+ command.query['fields'] = fields unless fields.nil?
18403
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18404
+ command.query['userIp'] = user_ip unless user_ip.nil?
18405
+ execute_or_queue_command(command, &block)
18406
+ end
18407
+
18408
+ # Returns the specified regional BackendService resource.
18409
+ # @param [String] project
18410
+ # Project ID for this request.
18411
+ # @param [String] region
18412
+ # Name of the region scoping this request.
18413
+ # @param [String] backend_service
18414
+ # Name of the BackendService resource to return.
18415
+ # @param [String] fields
18416
+ # Selector specifying which fields to include in a partial response.
18417
+ # @param [String] quota_user
18418
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
18419
+ # characters.
18420
+ # @param [String] user_ip
18421
+ # Deprecated. Please use quotaUser instead.
18422
+ # @param [Google::Apis::RequestOptions] options
18423
+ # Request-specific options
18424
+ #
18425
+ # @yield [result, err] Result & error if block supplied
18426
+ # @yieldparam result [Google::Apis::ComputeV1::BackendService] parsed result object
18427
+ # @yieldparam err [StandardError] error object if request failed
18428
+ #
18429
+ # @return [Google::Apis::ComputeV1::BackendService]
18430
+ #
18431
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18432
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18433
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18434
+ def get_region_backend_service(project, region, backend_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18435
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/backendServices/{backendService}', options)
18436
+ command.response_representation = Google::Apis::ComputeV1::BackendService::Representation
18437
+ command.response_class = Google::Apis::ComputeV1::BackendService
18438
+ command.params['project'] = project unless project.nil?
18439
+ command.params['region'] = region unless region.nil?
18440
+ command.params['backendService'] = backend_service unless backend_service.nil?
18441
+ command.query['fields'] = fields unless fields.nil?
18442
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18443
+ command.query['userIp'] = user_ip unless user_ip.nil?
18444
+ execute_or_queue_command(command, &block)
18445
+ end
18446
+
18447
+ # Gets the most recent health check results for this regional BackendService.
18448
+ # @param [String] project
18449
+ # @param [String] region
18450
+ # Name of the region scoping this request.
18451
+ # @param [String] backend_service
18452
+ # Name of the BackendService resource for which to get health.
18453
+ # @param [Google::Apis::ComputeV1::ResourceGroupReference] resource_group_reference_object
18454
+ # @param [String] fields
18455
+ # Selector specifying which fields to include in a partial response.
18456
+ # @param [String] quota_user
18457
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
18458
+ # characters.
18459
+ # @param [String] user_ip
18460
+ # Deprecated. Please use quotaUser instead.
18461
+ # @param [Google::Apis::RequestOptions] options
18462
+ # Request-specific options
18463
+ #
18464
+ # @yield [result, err] Result & error if block supplied
18465
+ # @yieldparam result [Google::Apis::ComputeV1::BackendServiceGroupHealth] parsed result object
18466
+ # @yieldparam err [StandardError] error object if request failed
18467
+ #
18468
+ # @return [Google::Apis::ComputeV1::BackendServiceGroupHealth]
18469
+ #
18470
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
18471
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
18472
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
18473
+ def get_region_backend_service_health(project, region, backend_service, resource_group_reference_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
18474
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/backendServices/{backendService}/getHealth', options)
18475
+ command.request_representation = Google::Apis::ComputeV1::ResourceGroupReference::Representation
18476
+ command.request_object = resource_group_reference_object
18477
+ command.response_representation = Google::Apis::ComputeV1::BackendServiceGroupHealth::Representation
18478
+ command.response_class = Google::Apis::ComputeV1::BackendServiceGroupHealth
18479
+ command.params['project'] = project unless project.nil?
18480
+ command.params['region'] = region unless region.nil?
18481
+ command.params['backendService'] = backend_service unless backend_service.nil?
18482
+ command.query['fields'] = fields unless fields.nil?
18483
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
18484
+ command.query['userIp'] = user_ip unless user_ip.nil?
18485
+ execute_or_queue_command(command, &block)
18486
+ end
18487
+
18488
+ # Creates a regional BackendService resource in the specified project using the
18489
+ # data included in the request. For more information, see Backend services
18490
+ # overview.
18491
+ # @param [String] project
18492
+ # Project ID for this request.
18493
+ # @param [String] region
18494
+ # Name of the region scoping this request.
18495
+ # @param [Google::Apis::ComputeV1::BackendService] backend_service_object
18496
+ # @param [String] request_id
17563
18497
  # An optional request ID to identify requests. Specify a unique request ID so
17564
18498
  # that if you must retry your request, the server will know to ignore the
17565
18499
  # request if it has already been completed.
@@ -20266,12 +21200,12 @@ module Google
20266
21200
  execute_or_queue_command(command, &block)
20267
21201
  end
20268
21202
 
20269
- # Flags the specified instances in the managed instance group to be immediately
20270
- # recreated. The instances are deleted and recreated using the current instance
20271
- # template for the managed instance group. This operation is marked as DONE when
20272
- # the flag is set even if the instances have not yet been recreated. You must
20273
- # separately verify the status of the recreating action with the
20274
- # listmanagedinstances method.
21203
+ # Flags the specified VM instances in the managed instance group to be
21204
+ # immediately recreated. Each instance is recreated using the group's current
21205
+ # configuration. This operation is marked as DONE when the flag is set even if
21206
+ # the instances have not yet been recreated. You must separately verify the
21207
+ # status of each instance by checking its currentAction field; for more
21208
+ # information, see Checking the status of managed instances.
20275
21209
  # If the group is part of a backend service that has enabled connection draining,
20276
21210
  # it can take up to 60 seconds after the connection draining duration has
20277
21211
  # elapsed before the VM instance is removed or deleted.
@@ -20816,6 +21750,58 @@ module Google
20816
21750
  execute_or_queue_command(command, &block)
20817
21751
  end
20818
21752
 
21753
+ # Creates multiple instances in a given region. Count specifies the number of
21754
+ # instances to create.
21755
+ # @param [String] project
21756
+ # Project ID for this request.
21757
+ # @param [String] region
21758
+ # The name of the region for this request.
21759
+ # @param [Google::Apis::ComputeV1::BulkInsertInstanceResource] bulk_insert_instance_resource_object
21760
+ # @param [String] request_id
21761
+ # An optional request ID to identify requests. Specify a unique request ID so
21762
+ # that if you must retry your request, the server will know to ignore the
21763
+ # request if it has already been completed.
21764
+ # For example, consider a situation where you make an initial request and the
21765
+ # request times out. If you make the request again with the same request ID, the
21766
+ # server can check if original operation with the same request ID was received,
21767
+ # and if so, will ignore the second request. This prevents clients from
21768
+ # accidentally creating duplicate commitments.
21769
+ # The request ID must be a valid UUID with the exception that zero UUID is not
21770
+ # supported (00000000-0000-0000-0000-000000000000).
21771
+ # @param [String] fields
21772
+ # Selector specifying which fields to include in a partial response.
21773
+ # @param [String] quota_user
21774
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
21775
+ # characters.
21776
+ # @param [String] user_ip
21777
+ # Deprecated. Please use quotaUser instead.
21778
+ # @param [Google::Apis::RequestOptions] options
21779
+ # Request-specific options
21780
+ #
21781
+ # @yield [result, err] Result & error if block supplied
21782
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
21783
+ # @yieldparam err [StandardError] error object if request failed
21784
+ #
21785
+ # @return [Google::Apis::ComputeV1::Operation]
21786
+ #
21787
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
21788
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
21789
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
21790
+ def bulk_region_instance_insert(project, region, bulk_insert_instance_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
21791
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instances/bulkInsert', options)
21792
+ command.request_representation = Google::Apis::ComputeV1::BulkInsertInstanceResource::Representation
21793
+ command.request_object = bulk_insert_instance_resource_object
21794
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
21795
+ command.response_class = Google::Apis::ComputeV1::Operation
21796
+ command.params['project'] = project unless project.nil?
21797
+ command.params['region'] = region unless region.nil?
21798
+ command.query['requestId'] = request_id unless request_id.nil?
21799
+ command.query['fields'] = fields unless fields.nil?
21800
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
21801
+ command.query['userIp'] = user_ip unless user_ip.nil?
21802
+ execute_or_queue_command(command, &block)
21803
+ end
21804
+
20819
21805
  # Deletes the specified network endpoint group. Note that the NEG cannot be
20820
21806
  # deleted if it is configured as a backend of a backend service.
20821
21807
  # @param [String] project