google-apis-compute_v1 0.4.0 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -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.
@@ -10188,8 +10450,8 @@ module Google
10188
10450
  execute_or_queue_command(command, &block)
10189
10451
  end
10190
10452
 
10191
- # Deletes the specified Instance resource. For more information, see Stopping or
10192
- # Deleting an Instance.
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
@@ -17140,13 +17402,11 @@ module Google
17140
17402
  execute_or_queue_command(command, &block)
17141
17403
  end
17142
17404
 
17143
- # Deletes the specified autoscaler.
17405
+ # Deletes the specified PublicAdvertisedPrefix
17144
17406
  # @param [String] project
17145
17407
  # 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 delete.
17408
+ # @param [String] public_advertised_prefix
17409
+ # Name of the PublicAdvertisedPrefix resource to delete.
17150
17410
  # @param [String] request_id
17151
17411
  # An optional request ID to identify requests. Specify a unique request ID so
17152
17412
  # that if you must retry your request, the server will know to ignore the
@@ -17177,13 +17437,12 @@ module Google
17177
17437
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17178
17438
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17179
17439
  # @raise [Google::Apis::AuthorizationError] Authorization is required
17180
- def delete_region_autoscaler(project, region, autoscaler, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17181
- 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)
17182
17442
  command.response_representation = Google::Apis::ComputeV1::Operation::Representation
17183
17443
  command.response_class = Google::Apis::ComputeV1::Operation
17184
17444
  command.params['project'] = project unless project.nil?
17185
- command.params['region'] = region unless region.nil?
17186
- command.params['autoscaler'] = autoscaler unless autoscaler.nil?
17445
+ command.params['publicAdvertisedPrefix'] = public_advertised_prefix unless public_advertised_prefix.nil?
17187
17446
  command.query['requestId'] = request_id unless request_id.nil?
17188
17447
  command.query['fields'] = fields unless fields.nil?
17189
17448
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -17191,13 +17450,11 @@ module Google
17191
17450
  execute_or_queue_command(command, &block)
17192
17451
  end
17193
17452
 
17194
- # Returns the specified autoscaler.
17453
+ # Returns the specified PublicAdvertisedPrefix resource.
17195
17454
  # @param [String] project
17196
17455
  # Project ID for this request.
17197
- # @param [String] region
17198
- # Name of the region scoping this request.
17199
- # @param [String] autoscaler
17200
- # Name of the autoscaler to return.
17456
+ # @param [String] public_advertised_prefix
17457
+ # Name of the PublicAdvertisedPrefix resource to return.
17201
17458
  # @param [String] fields
17202
17459
  # Selector specifying which fields to include in a partial response.
17203
17460
  # @param [String] quota_user
@@ -17209,34 +17466,31 @@ module Google
17209
17466
  # Request-specific options
17210
17467
  #
17211
17468
  # @yield [result, err] Result & error if block supplied
17212
- # @yieldparam result [Google::Apis::ComputeV1::Autoscaler] parsed result object
17469
+ # @yieldparam result [Google::Apis::ComputeV1::PublicAdvertisedPrefix] parsed result object
17213
17470
  # @yieldparam err [StandardError] error object if request failed
17214
17471
  #
17215
- # @return [Google::Apis::ComputeV1::Autoscaler]
17472
+ # @return [Google::Apis::ComputeV1::PublicAdvertisedPrefix]
17216
17473
  #
17217
17474
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17218
17475
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17219
17476
  # @raise [Google::Apis::AuthorizationError] Authorization is required
17220
- def get_region_autoscaler(project, region, autoscaler, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17221
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/autoscalers/{autoscaler}', options)
17222
- command.response_representation = Google::Apis::ComputeV1::Autoscaler::Representation
17223
- 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
17224
17481
  command.params['project'] = project unless project.nil?
17225
- command.params['region'] = region unless region.nil?
17226
- command.params['autoscaler'] = autoscaler unless autoscaler.nil?
17482
+ command.params['publicAdvertisedPrefix'] = public_advertised_prefix unless public_advertised_prefix.nil?
17227
17483
  command.query['fields'] = fields unless fields.nil?
17228
17484
  command.query['quotaUser'] = quota_user unless quota_user.nil?
17229
17485
  command.query['userIp'] = user_ip unless user_ip.nil?
17230
17486
  execute_or_queue_command(command, &block)
17231
17487
  end
17232
17488
 
17233
- # Creates an autoscaler in the specified project using the data included in the
17234
- # request.
17489
+ # Creates a PublicAdvertisedPrefix in the specified project using the parameters
17490
+ # that are included in the request.
17235
17491
  # @param [String] project
17236
17492
  # Project ID for this request.
17237
- # @param [String] region
17238
- # Name of the region scoping this request.
17239
- # @param [Google::Apis::ComputeV1::Autoscaler] autoscaler_object
17493
+ # @param [Google::Apis::ComputeV1::PublicAdvertisedPrefix] public_advertised_prefix_object
17240
17494
  # @param [String] request_id
17241
17495
  # An optional request ID to identify requests. Specify a unique request ID so
17242
17496
  # that if you must retry your request, the server will know to ignore the
@@ -17267,10 +17521,639 @@ module Google
17267
17521
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17268
17522
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17269
17523
  # @raise [Google::Apis::AuthorizationError] Authorization is required
17270
- def insert_region_autoscaler(project, region, autoscaler_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
17271
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/autoscalers', options)
17272
- command.request_representation = Google::Apis::ComputeV1::Autoscaler::Representation
17273
- 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
17528
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
17529
+ command.response_class = Google::Apis::ComputeV1::Operation
17530
+ command.params['project'] = project unless project.nil?
17531
+ command.query['requestId'] = request_id unless request_id.nil?
17532
+ command.query['fields'] = fields unless fields.nil?
17533
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17534
+ command.query['userIp'] = user_ip unless user_ip.nil?
17535
+ execute_or_queue_command(command, &block)
17536
+ end
17537
+
17538
+ # Lists the PublicAdvertisedPrefixes for a project.
17539
+ # @param [String] project
17540
+ # Project ID for this request.
17541
+ # @param [String] filter
17542
+ # A filter expression that filters resources listed in the response. The
17543
+ # expression must specify the field name, a comparison operator, and the value
17544
+ # that you want to use for filtering. The value must be a string, a number, or a
17545
+ # boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
17546
+ # For example, if you are filtering Compute Engine instances, you can exclude
17547
+ # instances named `example-instance` by specifying `name != example-instance`.
17548
+ # You can also filter nested fields. For example, you could specify `scheduling.
17549
+ # automaticRestart = false` to include instances only if they are not scheduled
17550
+ # for automatic restarts. You can use filtering on nested fields to filter based
17551
+ # on resource labels.
17552
+ # To filter on multiple expressions, provide each separate expression within
17553
+ # parentheses. For example: ``` (scheduling.automaticRestart = true) (
17554
+ # cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
17555
+ # expression. However, you can include `AND` and `OR` expressions explicitly.
17556
+ # For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
17557
+ # Broadwell") AND (scheduling.automaticRestart = true) ```
17558
+ # @param [Fixnum] max_results
17559
+ # The maximum number of results per page that should be returned. If the number
17560
+ # of available results is larger than `maxResults`, Compute Engine returns a `
17561
+ # nextPageToken` that can be used to get the next page of results in subsequent
17562
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
17563
+ # @param [String] order_by
17564
+ # Sorts list results by a certain order. By default, results are returned in
17565
+ # alphanumerical order based on the resource name.
17566
+ # You can also sort results in descending order based on the creation timestamp
17567
+ # using `orderBy="creationTimestamp desc"`. This sorts results based on the `
17568
+ # creationTimestamp` field in reverse chronological order (newest result first).
17569
+ # Use this to sort resources like operations so that the newest operation is
17570
+ # returned first.
17571
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
17572
+ # @param [String] page_token
17573
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
17574
+ # by a previous list request to get the next page of results.
17575
+ # @param [Boolean] return_partial_success
17576
+ # Opt-in for partial success behavior which provides partial results in case of
17577
+ # failure. The default value is false.
17578
+ # @param [String] fields
17579
+ # Selector specifying which fields to include in a partial response.
17580
+ # @param [String] quota_user
17581
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
17582
+ # characters.
17583
+ # @param [String] user_ip
17584
+ # Deprecated. Please use quotaUser instead.
17585
+ # @param [Google::Apis::RequestOptions] options
17586
+ # Request-specific options
17587
+ #
17588
+ # @yield [result, err] Result & error if block supplied
17589
+ # @yieldparam result [Google::Apis::ComputeV1::PublicAdvertisedPrefixList] parsed result object
17590
+ # @yieldparam err [StandardError] error object if request failed
17591
+ #
17592
+ # @return [Google::Apis::ComputeV1::PublicAdvertisedPrefixList]
17593
+ #
17594
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17595
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17596
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
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
17601
+ command.params['project'] = project unless project.nil?
17602
+ command.query['filter'] = filter unless filter.nil?
17603
+ command.query['maxResults'] = max_results unless max_results.nil?
17604
+ command.query['orderBy'] = order_by unless order_by.nil?
17605
+ command.query['pageToken'] = page_token unless page_token.nil?
17606
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
17607
+ command.query['fields'] = fields unless fields.nil?
17608
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17609
+ command.query['userIp'] = user_ip unless user_ip.nil?
17610
+ execute_or_queue_command(command, &block)
17611
+ end
17612
+
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.
17616
+ # @param [String] project
17617
+ # Project ID for this request.
17618
+ # @param [String] public_advertised_prefix
17619
+ # Name of the PublicAdvertisedPrefix resource to patch.
17620
+ # @param [Google::Apis::ComputeV1::PublicAdvertisedPrefix] public_advertised_prefix_object
17621
+ # @param [String] request_id
17622
+ # An optional request ID to identify requests. Specify a unique request ID so
17623
+ # that if you must retry your request, the server will know to ignore the
17624
+ # request if it has already been completed.
17625
+ # For example, consider a situation where you make an initial request and the
17626
+ # request times out. If you make the request again with the same request ID, the
17627
+ # server can check if original operation with the same request ID was received,
17628
+ # and if so, will ignore the second request. This prevents clients from
17629
+ # accidentally creating duplicate commitments.
17630
+ # The request ID must be a valid UUID with the exception that zero UUID is not
17631
+ # supported (00000000-0000-0000-0000-000000000000).
17632
+ # @param [String] fields
17633
+ # Selector specifying which fields to include in a partial response.
17634
+ # @param [String] quota_user
17635
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
17636
+ # characters.
17637
+ # @param [String] user_ip
17638
+ # Deprecated. Please use quotaUser instead.
17639
+ # @param [Google::Apis::RequestOptions] options
17640
+ # Request-specific options
17641
+ #
17642
+ # @yield [result, err] Result & error if block supplied
17643
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
17644
+ # @yieldparam err [StandardError] error object if request failed
17645
+ #
17646
+ # @return [Google::Apis::ComputeV1::Operation]
17647
+ #
17648
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17649
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17650
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
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
17655
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
17656
+ command.response_class = Google::Apis::ComputeV1::Operation
17657
+ command.params['project'] = project unless project.nil?
17658
+ command.params['publicAdvertisedPrefix'] = public_advertised_prefix unless public_advertised_prefix.nil?
17659
+ command.query['requestId'] = request_id unless request_id.nil?
17660
+ command.query['fields'] = fields unless fields.nil?
17661
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17662
+ command.query['userIp'] = user_ip unless user_ip.nil?
17663
+ execute_or_queue_command(command, &block)
17664
+ end
17665
+
17666
+ # Lists all PublicDelegatedPrefix resources owned by the specific project across
17667
+ # all scopes.
17668
+ # @param [String] project
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.
17714
+ # @param [String] fields
17715
+ # Selector specifying which fields to include in a partial response.
17716
+ # @param [String] quota_user
17717
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
17718
+ # characters.
17719
+ # @param [String] user_ip
17720
+ # Deprecated. Please use quotaUser instead.
17721
+ # @param [Google::Apis::RequestOptions] options
17722
+ # Request-specific options
17723
+ #
17724
+ # @yield [result, err] Result & error if block supplied
17725
+ # @yieldparam result [Google::Apis::ComputeV1::PublicDelegatedPrefixAggregatedList] parsed result object
17726
+ # @yieldparam err [StandardError] error object if request failed
17727
+ #
17728
+ # @return [Google::Apis::ComputeV1::PublicDelegatedPrefixAggregatedList]
17729
+ #
17730
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17731
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17732
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
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
17737
+ command.params['project'] = project unless project.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?
17744
+ command.query['fields'] = fields unless fields.nil?
17745
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17746
+ command.query['userIp'] = user_ip unless user_ip.nil?
17747
+ execute_or_queue_command(command, &block)
17748
+ end
17749
+
17750
+ # Deletes the specified PublicDelegatedPrefix in the given region.
17751
+ # @param [String] project
17752
+ # Project ID for this request.
17753
+ # @param [String] region
17754
+ # Name of the region of this request.
17755
+ # @param [String] public_delegated_prefix
17756
+ # Name of the PublicDelegatedPrefix resource to delete.
17757
+ # @param [String] request_id
17758
+ # An optional request ID to identify requests. Specify a unique request ID so
17759
+ # that if you must retry your request, the server will know to ignore the
17760
+ # request if it has already been completed.
17761
+ # For example, consider a situation where you make an initial request and the
17762
+ # request times out. If you make the request again with the same request ID, the
17763
+ # server can check if original operation with the same request ID was received,
17764
+ # and if so, will ignore the second request. This prevents clients from
17765
+ # accidentally creating duplicate commitments.
17766
+ # The request ID must be a valid UUID with the exception that zero UUID is not
17767
+ # supported (00000000-0000-0000-0000-000000000000).
17768
+ # @param [String] fields
17769
+ # Selector specifying which fields to include in a partial response.
17770
+ # @param [String] quota_user
17771
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
17772
+ # characters.
17773
+ # @param [String] user_ip
17774
+ # Deprecated. Please use quotaUser instead.
17775
+ # @param [Google::Apis::RequestOptions] options
17776
+ # Request-specific options
17777
+ #
17778
+ # @yield [result, err] Result & error if block supplied
17779
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
17780
+ # @yieldparam err [StandardError] error object if request failed
17781
+ #
17782
+ # @return [Google::Apis::ComputeV1::Operation]
17783
+ #
17784
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17785
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17786
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
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)
17789
+ command.response_representation = Google::Apis::ComputeV1::Operation::Representation
17790
+ command.response_class = Google::Apis::ComputeV1::Operation
17791
+ command.params['project'] = project unless project.nil?
17792
+ command.params['region'] = region unless region.nil?
17793
+ command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil?
17794
+ command.query['requestId'] = request_id unless request_id.nil?
17795
+ command.query['fields'] = fields unless fields.nil?
17796
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17797
+ command.query['userIp'] = user_ip unless user_ip.nil?
17798
+ execute_or_queue_command(command, &block)
17799
+ end
17800
+
17801
+ # Returns the specified PublicDelegatedPrefix resource in the given region.
17802
+ # @param [String] project
17803
+ # Project ID for this request.
17804
+ # @param [String] region
17805
+ # Name of the region of this request.
17806
+ # @param [String] public_delegated_prefix
17807
+ # Name of the PublicDelegatedPrefix resource to return.
17808
+ # @param [String] fields
17809
+ # Selector specifying which fields to include in a partial response.
17810
+ # @param [String] quota_user
17811
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
17812
+ # characters.
17813
+ # @param [String] user_ip
17814
+ # Deprecated. Please use quotaUser instead.
17815
+ # @param [Google::Apis::RequestOptions] options
17816
+ # Request-specific options
17817
+ #
17818
+ # @yield [result, err] Result & error if block supplied
17819
+ # @yieldparam result [Google::Apis::ComputeV1::PublicDelegatedPrefix] parsed result object
17820
+ # @yieldparam err [StandardError] error object if request failed
17821
+ #
17822
+ # @return [Google::Apis::ComputeV1::PublicDelegatedPrefix]
17823
+ #
17824
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17825
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17826
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
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
17831
+ command.params['project'] = project unless project.nil?
17832
+ command.params['region'] = region unless region.nil?
17833
+ command.params['publicDelegatedPrefix'] = public_delegated_prefix unless public_delegated_prefix.nil?
17834
+ command.query['fields'] = fields unless fields.nil?
17835
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17836
+ command.query['userIp'] = user_ip unless user_ip.nil?
17837
+ execute_or_queue_command(command, &block)
17838
+ end
17839
+
17840
+ # Creates a PublicDelegatedPrefix in the specified project in the given region
17841
+ # using the parameters that are included in the request.
17842
+ # @param [String] project
17843
+ # Project ID for this request.
17844
+ # @param [String] region
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).
17858
+ # @param [String] fields
17859
+ # Selector specifying which fields to include in a partial response.
17860
+ # @param [String] quota_user
17861
+ # An opaque string that represents a user for quota purposes. Must not exceed 40
17862
+ # characters.
17863
+ # @param [String] user_ip
17864
+ # Deprecated. Please use quotaUser instead.
17865
+ # @param [Google::Apis::RequestOptions] options
17866
+ # Request-specific options
17867
+ #
17868
+ # @yield [result, err] Result & error if block supplied
17869
+ # @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
17870
+ # @yieldparam err [StandardError] error object if request failed
17871
+ #
17872
+ # @return [Google::Apis::ComputeV1::Operation]
17873
+ #
17874
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
17875
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
17876
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
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
17883
+ command.params['project'] = project unless project.nil?
17884
+ command.params['region'] = region unless region.nil?
17885
+ command.query['requestId'] = request_id unless request_id.nil?
17886
+ command.query['fields'] = fields unless fields.nil?
17887
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
17888
+ command.query['userIp'] = user_ip unless user_ip.nil?
17889
+ execute_or_queue_command(command, &block)
17890
+ end
17891
+
17892
+ # Lists the PublicDelegatedPrefixes for a project in the given region.
17893
+ # @param [String] project
17894
+ # Project ID for this request.
17895
+ # @param [String] region
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
17274
18157
  command.response_representation = Google::Apis::ComputeV1::Operation::Representation
17275
18158
  command.response_class = Google::Apis::ComputeV1::Operation
17276
18159
  command.params['project'] = project unless project.nil?
@@ -20317,12 +21200,12 @@ module Google
20317
21200
  execute_or_queue_command(command, &block)
20318
21201
  end
20319
21202
 
20320
- # Flags the specified instances in the managed instance group to be immediately
20321
- # recreated. The instances are deleted and recreated using the current instance
20322
- # template for the managed instance group. This operation is marked as DONE when
20323
- # the flag is set even if the instances have not yet been recreated. You must
20324
- # separately verify the status of the recreating action with the
20325
- # 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.
20326
21209
  # If the group is part of a backend service that has enabled connection draining,
20327
21210
  # it can take up to 60 seconds after the connection draining duration has
20328
21211
  # elapsed before the VM instance is removed or deleted.