google-apis-compute_alpha 0.6.0 → 0.11.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.
- checksums.yaml +4 -4
- data/CHANGELOG.md +21 -0
- data/lib/google/apis/compute_alpha.rb +1 -1
- data/lib/google/apis/compute_alpha/classes.rb +2622 -633
- data/lib/google/apis/compute_alpha/gem_version.rb +2 -2
- data/lib/google/apis/compute_alpha/representations.rb +791 -40
- data/lib/google/apis/compute_alpha/service.rb +2702 -95
- metadata +4 -4
@@ -5332,6 +5332,417 @@ module Google
|
|
5332
5332
|
execute_or_queue_command(command, &block)
|
5333
5333
|
end
|
5334
5334
|
|
5335
|
+
# Retrieves an aggregated list of future reservations.
|
5336
|
+
# @param [String] project
|
5337
|
+
# Project ID for this request.
|
5338
|
+
# @param [String] filter
|
5339
|
+
# A filter expression that filters resources listed in the response. The
|
5340
|
+
# expression must specify the field name, a comparison operator, and the value
|
5341
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
5342
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
5343
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
5344
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
5345
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
5346
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
5347
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
5348
|
+
# on resource labels.
|
5349
|
+
# To filter on multiple expressions, provide each separate expression within
|
5350
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
5351
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
5352
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
5353
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
5354
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
5355
|
+
# @param [Boolean] include_all_scopes
|
5356
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
5357
|
+
# global) should be included in the response. For new resource types added after
|
5358
|
+
# this field, the flag has no effect as new resource types will always include
|
5359
|
+
# every visible scope for each scope type in response. For resource types which
|
5360
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
5361
|
+
# types where the resource type is expected to be found will be included.
|
5362
|
+
# @param [Fixnum] max_results
|
5363
|
+
# The maximum number of results per page that should be returned. If the number
|
5364
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
5365
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
5366
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
5367
|
+
# @param [String] order_by
|
5368
|
+
# Sorts list results by a certain order. By default, results are returned in
|
5369
|
+
# alphanumerical order based on the resource name.
|
5370
|
+
# You can also sort results in descending order based on the creation timestamp
|
5371
|
+
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
5372
|
+
# creationTimestamp` field in reverse chronological order (newest result first).
|
5373
|
+
# Use this to sort resources like operations so that the newest operation is
|
5374
|
+
# returned first.
|
5375
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
5376
|
+
# @param [String] page_token
|
5377
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
5378
|
+
# by a previous list request to get the next page of results.
|
5379
|
+
# @param [Boolean] return_partial_success
|
5380
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
5381
|
+
# failure. The default value is false.
|
5382
|
+
# @param [String] fields
|
5383
|
+
# Selector specifying which fields to include in a partial response.
|
5384
|
+
# @param [String] quota_user
|
5385
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
5386
|
+
# characters.
|
5387
|
+
# @param [String] user_ip
|
5388
|
+
# Deprecated. Please use quotaUser instead.
|
5389
|
+
# @param [Google::Apis::RequestOptions] options
|
5390
|
+
# Request-specific options
|
5391
|
+
#
|
5392
|
+
# @yield [result, err] Result & error if block supplied
|
5393
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::FutureReservationsAggregatedListResponse] parsed result object
|
5394
|
+
# @yieldparam err [StandardError] error object if request failed
|
5395
|
+
#
|
5396
|
+
# @return [Google::Apis::ComputeAlpha::FutureReservationsAggregatedListResponse]
|
5397
|
+
#
|
5398
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5399
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5400
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5401
|
+
def aggregated_future_reservation_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)
|
5402
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/futureReservations', options)
|
5403
|
+
command.response_representation = Google::Apis::ComputeAlpha::FutureReservationsAggregatedListResponse::Representation
|
5404
|
+
command.response_class = Google::Apis::ComputeAlpha::FutureReservationsAggregatedListResponse
|
5405
|
+
command.params['project'] = project unless project.nil?
|
5406
|
+
command.query['filter'] = filter unless filter.nil?
|
5407
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
5408
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
5409
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
5410
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
5411
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
5412
|
+
command.query['fields'] = fields unless fields.nil?
|
5413
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5414
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5415
|
+
execute_or_queue_command(command, &block)
|
5416
|
+
end
|
5417
|
+
|
5418
|
+
# Cancel the specified future reservation.
|
5419
|
+
# @param [String] project
|
5420
|
+
# Project ID for this request.
|
5421
|
+
# @param [String] zone
|
5422
|
+
# Name of the zone for this request. Name should conform to RFC1035.
|
5423
|
+
# @param [String] future_reservation
|
5424
|
+
# Name of the future reservation to retrieve. Name should conform to RFC1035.
|
5425
|
+
# @param [String] request_id
|
5426
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
5427
|
+
# that if you must retry your request, the server will know to ignore the
|
5428
|
+
# request if it has already been completed.
|
5429
|
+
# For example, consider a situation where you make an initial request and the
|
5430
|
+
# request times out. If you make the request again with the same request ID, the
|
5431
|
+
# server can check if original operation with the same request ID was received,
|
5432
|
+
# and if so, will ignore the second request. This prevents clients from
|
5433
|
+
# accidentally creating duplicate commitments.
|
5434
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
5435
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
5436
|
+
# @param [String] fields
|
5437
|
+
# Selector specifying which fields to include in a partial response.
|
5438
|
+
# @param [String] quota_user
|
5439
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
5440
|
+
# characters.
|
5441
|
+
# @param [String] user_ip
|
5442
|
+
# Deprecated. Please use quotaUser instead.
|
5443
|
+
# @param [Google::Apis::RequestOptions] options
|
5444
|
+
# Request-specific options
|
5445
|
+
#
|
5446
|
+
# @yield [result, err] Result & error if block supplied
|
5447
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
5448
|
+
# @yieldparam err [StandardError] error object if request failed
|
5449
|
+
#
|
5450
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
5451
|
+
#
|
5452
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5453
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5454
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5455
|
+
def cancel_future_reservation(project, zone, future_reservation, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5456
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/futureReservations/{futureReservation}/cancel', options)
|
5457
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
5458
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
5459
|
+
command.params['project'] = project unless project.nil?
|
5460
|
+
command.params['zone'] = zone unless zone.nil?
|
5461
|
+
command.params['futureReservation'] = future_reservation unless future_reservation.nil?
|
5462
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
5463
|
+
command.query['fields'] = fields unless fields.nil?
|
5464
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5465
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5466
|
+
execute_or_queue_command(command, &block)
|
5467
|
+
end
|
5468
|
+
|
5469
|
+
# Deletes the specified future reservation.
|
5470
|
+
# @param [String] project
|
5471
|
+
# Project ID for this request.
|
5472
|
+
# @param [String] zone
|
5473
|
+
# Name of the zone for this request. Name should conform to RFC1035.
|
5474
|
+
# @param [String] future_reservation
|
5475
|
+
# Name of the future reservation to retrieve. Name should conform to RFC1035.
|
5476
|
+
# @param [String] request_id
|
5477
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
5478
|
+
# that if you must retry your request, the server will know to ignore the
|
5479
|
+
# request if it has already been completed.
|
5480
|
+
# For example, consider a situation where you make an initial request and the
|
5481
|
+
# request times out. If you make the request again with the same request ID, the
|
5482
|
+
# server can check if original operation with the same request ID was received,
|
5483
|
+
# and if so, will ignore the second request. This prevents clients from
|
5484
|
+
# accidentally creating duplicate commitments.
|
5485
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
5486
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
5487
|
+
# @param [String] fields
|
5488
|
+
# Selector specifying which fields to include in a partial response.
|
5489
|
+
# @param [String] quota_user
|
5490
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
5491
|
+
# characters.
|
5492
|
+
# @param [String] user_ip
|
5493
|
+
# Deprecated. Please use quotaUser instead.
|
5494
|
+
# @param [Google::Apis::RequestOptions] options
|
5495
|
+
# Request-specific options
|
5496
|
+
#
|
5497
|
+
# @yield [result, err] Result & error if block supplied
|
5498
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
5499
|
+
# @yieldparam err [StandardError] error object if request failed
|
5500
|
+
#
|
5501
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
5502
|
+
#
|
5503
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5504
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5505
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5506
|
+
def delete_future_reservation(project, zone, future_reservation, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5507
|
+
command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/futureReservations/{futureReservation}', options)
|
5508
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
5509
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
5510
|
+
command.params['project'] = project unless project.nil?
|
5511
|
+
command.params['zone'] = zone unless zone.nil?
|
5512
|
+
command.params['futureReservation'] = future_reservation unless future_reservation.nil?
|
5513
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
5514
|
+
command.query['fields'] = fields unless fields.nil?
|
5515
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5516
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5517
|
+
execute_or_queue_command(command, &block)
|
5518
|
+
end
|
5519
|
+
|
5520
|
+
# Retrieves information about the specified future reservation.
|
5521
|
+
# @param [String] project
|
5522
|
+
# Project ID for this request.
|
5523
|
+
# @param [String] zone
|
5524
|
+
# Name of the zone for this request. Name should conform to RFC1035.
|
5525
|
+
# @param [String] future_reservation
|
5526
|
+
# Name of the future reservation to retrieve. Name should conform to RFC1035.
|
5527
|
+
# @param [String] fields
|
5528
|
+
# Selector specifying which fields to include in a partial response.
|
5529
|
+
# @param [String] quota_user
|
5530
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
5531
|
+
# characters.
|
5532
|
+
# @param [String] user_ip
|
5533
|
+
# Deprecated. Please use quotaUser instead.
|
5534
|
+
# @param [Google::Apis::RequestOptions] options
|
5535
|
+
# Request-specific options
|
5536
|
+
#
|
5537
|
+
# @yield [result, err] Result & error if block supplied
|
5538
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::FutureReservation] parsed result object
|
5539
|
+
# @yieldparam err [StandardError] error object if request failed
|
5540
|
+
#
|
5541
|
+
# @return [Google::Apis::ComputeAlpha::FutureReservation]
|
5542
|
+
#
|
5543
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5544
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5545
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5546
|
+
def get_future_reservation(project, zone, future_reservation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5547
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/futureReservations/{futureReservation}', options)
|
5548
|
+
command.response_representation = Google::Apis::ComputeAlpha::FutureReservation::Representation
|
5549
|
+
command.response_class = Google::Apis::ComputeAlpha::FutureReservation
|
5550
|
+
command.params['project'] = project unless project.nil?
|
5551
|
+
command.params['zone'] = zone unless zone.nil?
|
5552
|
+
command.params['futureReservation'] = future_reservation unless future_reservation.nil?
|
5553
|
+
command.query['fields'] = fields unless fields.nil?
|
5554
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5555
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5556
|
+
execute_or_queue_command(command, &block)
|
5557
|
+
end
|
5558
|
+
|
5559
|
+
# Creates a new Future Reservation.
|
5560
|
+
# @param [String] project
|
5561
|
+
# Project ID for this request.
|
5562
|
+
# @param [String] zone
|
5563
|
+
# Name of the zone for this request. Name should conform to RFC1035.
|
5564
|
+
# @param [Google::Apis::ComputeAlpha::FutureReservation] future_reservation_object
|
5565
|
+
# @param [String] request_id
|
5566
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
5567
|
+
# that if you must retry your request, the server will know to ignore the
|
5568
|
+
# request if it has already been completed.
|
5569
|
+
# For example, consider a situation where you make an initial request and the
|
5570
|
+
# request times out. If you make the request again with the same request ID, the
|
5571
|
+
# server can check if original operation with the same request ID was received,
|
5572
|
+
# and if so, will ignore the second request. This prevents clients from
|
5573
|
+
# accidentally creating duplicate commitments.
|
5574
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
5575
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
5576
|
+
# @param [String] fields
|
5577
|
+
# Selector specifying which fields to include in a partial response.
|
5578
|
+
# @param [String] quota_user
|
5579
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
5580
|
+
# characters.
|
5581
|
+
# @param [String] user_ip
|
5582
|
+
# Deprecated. Please use quotaUser instead.
|
5583
|
+
# @param [Google::Apis::RequestOptions] options
|
5584
|
+
# Request-specific options
|
5585
|
+
#
|
5586
|
+
# @yield [result, err] Result & error if block supplied
|
5587
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
5588
|
+
# @yieldparam err [StandardError] error object if request failed
|
5589
|
+
#
|
5590
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
5591
|
+
#
|
5592
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5593
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5594
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5595
|
+
def insert_future_reservation(project, zone, future_reservation_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5596
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/futureReservations', options)
|
5597
|
+
command.request_representation = Google::Apis::ComputeAlpha::FutureReservation::Representation
|
5598
|
+
command.request_object = future_reservation_object
|
5599
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
5600
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
5601
|
+
command.params['project'] = project unless project.nil?
|
5602
|
+
command.params['zone'] = zone unless zone.nil?
|
5603
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
5604
|
+
command.query['fields'] = fields unless fields.nil?
|
5605
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5606
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5607
|
+
execute_or_queue_command(command, &block)
|
5608
|
+
end
|
5609
|
+
|
5610
|
+
# A list of all the future reservations that have been configured for the
|
5611
|
+
# specified project in specified zone.
|
5612
|
+
# @param [String] project
|
5613
|
+
# Project ID for this request.
|
5614
|
+
# @param [String] zone
|
5615
|
+
# Name of the zone for this request. Name should conform to RFC1035.
|
5616
|
+
# @param [String] filter
|
5617
|
+
# A filter expression that filters resources listed in the response. The
|
5618
|
+
# expression must specify the field name, a comparison operator, and the value
|
5619
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
5620
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
5621
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
5622
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
5623
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
5624
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
5625
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
5626
|
+
# on resource labels.
|
5627
|
+
# To filter on multiple expressions, provide each separate expression within
|
5628
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
5629
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
5630
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
5631
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
5632
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
5633
|
+
# @param [Fixnum] max_results
|
5634
|
+
# The maximum number of results per page that should be returned. If the number
|
5635
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
5636
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
5637
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
5638
|
+
# @param [String] order_by
|
5639
|
+
# Sorts list results by a certain order. By default, results are returned in
|
5640
|
+
# alphanumerical order based on the resource name.
|
5641
|
+
# You can also sort results in descending order based on the creation timestamp
|
5642
|
+
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
5643
|
+
# creationTimestamp` field in reverse chronological order (newest result first).
|
5644
|
+
# Use this to sort resources like operations so that the newest operation is
|
5645
|
+
# returned first.
|
5646
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
5647
|
+
# @param [String] page_token
|
5648
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
5649
|
+
# by a previous list request to get the next page of results.
|
5650
|
+
# @param [Boolean] return_partial_success
|
5651
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
5652
|
+
# failure. The default value is false.
|
5653
|
+
# @param [String] fields
|
5654
|
+
# Selector specifying which fields to include in a partial response.
|
5655
|
+
# @param [String] quota_user
|
5656
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
5657
|
+
# characters.
|
5658
|
+
# @param [String] user_ip
|
5659
|
+
# Deprecated. Please use quotaUser instead.
|
5660
|
+
# @param [Google::Apis::RequestOptions] options
|
5661
|
+
# Request-specific options
|
5662
|
+
#
|
5663
|
+
# @yield [result, err] Result & error if block supplied
|
5664
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::FutureReservationsListResponse] parsed result object
|
5665
|
+
# @yieldparam err [StandardError] error object if request failed
|
5666
|
+
#
|
5667
|
+
# @return [Google::Apis::ComputeAlpha::FutureReservationsListResponse]
|
5668
|
+
#
|
5669
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5670
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5671
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5672
|
+
def list_future_reservations(project, zone, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5673
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/futureReservations', options)
|
5674
|
+
command.response_representation = Google::Apis::ComputeAlpha::FutureReservationsListResponse::Representation
|
5675
|
+
command.response_class = Google::Apis::ComputeAlpha::FutureReservationsListResponse
|
5676
|
+
command.params['project'] = project unless project.nil?
|
5677
|
+
command.params['zone'] = zone unless zone.nil?
|
5678
|
+
command.query['filter'] = filter unless filter.nil?
|
5679
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
5680
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
5681
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
5682
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
5683
|
+
command.query['fields'] = fields unless fields.nil?
|
5684
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5685
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5686
|
+
execute_or_queue_command(command, &block)
|
5687
|
+
end
|
5688
|
+
|
5689
|
+
# Updates the specified future reservation.
|
5690
|
+
# @param [String] project
|
5691
|
+
# Project ID for this request.
|
5692
|
+
# @param [String] zone
|
5693
|
+
# Name of the zone for this request. Name should conform to RFC1035.
|
5694
|
+
# @param [String] future_reservation
|
5695
|
+
# Name of the reservation to update. Name should conform to RFC1035.
|
5696
|
+
# @param [Google::Apis::ComputeAlpha::FutureReservation] future_reservation_object
|
5697
|
+
# @param [Array<String>, String] paths
|
5698
|
+
# The set of field mask paths.
|
5699
|
+
# @param [String] request_id
|
5700
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
5701
|
+
# that if you must retry your request, the server will know to ignore the
|
5702
|
+
# request if it has already been completed.
|
5703
|
+
# For example, consider a situation where you make an initial request and the
|
5704
|
+
# request times out. If you make the request again with the same request ID, the
|
5705
|
+
# server can check if original operation with the same request ID was received,
|
5706
|
+
# and if so, will ignore the second request. This prevents clients from
|
5707
|
+
# accidentally creating duplicate commitments.
|
5708
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
5709
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
5710
|
+
# @param [String] fields
|
5711
|
+
# Selector specifying which fields to include in a partial response.
|
5712
|
+
# @param [String] quota_user
|
5713
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
5714
|
+
# characters.
|
5715
|
+
# @param [String] user_ip
|
5716
|
+
# Deprecated. Please use quotaUser instead.
|
5717
|
+
# @param [Google::Apis::RequestOptions] options
|
5718
|
+
# Request-specific options
|
5719
|
+
#
|
5720
|
+
# @yield [result, err] Result & error if block supplied
|
5721
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
5722
|
+
# @yieldparam err [StandardError] error object if request failed
|
5723
|
+
#
|
5724
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
5725
|
+
#
|
5726
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5727
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5728
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5729
|
+
def update_future_reservation(project, zone, future_reservation, future_reservation_object = nil, paths: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5730
|
+
command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/futureReservations/{futureReservation}', options)
|
5731
|
+
command.request_representation = Google::Apis::ComputeAlpha::FutureReservation::Representation
|
5732
|
+
command.request_object = future_reservation_object
|
5733
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
5734
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
5735
|
+
command.params['project'] = project unless project.nil?
|
5736
|
+
command.params['zone'] = zone unless zone.nil?
|
5737
|
+
command.params['futureReservation'] = future_reservation unless future_reservation.nil?
|
5738
|
+
command.query['paths'] = paths unless paths.nil?
|
5739
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
5740
|
+
command.query['fields'] = fields unless fields.nil?
|
5741
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5742
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5743
|
+
execute_or_queue_command(command, &block)
|
5744
|
+
end
|
5745
|
+
|
5335
5746
|
# Deletes the specified address resource.
|
5336
5747
|
# @param [String] project
|
5337
5748
|
# Project ID for this request.
|
@@ -9791,12 +10202,12 @@ module Google
|
|
9791
10202
|
execute_or_queue_command(command, &block)
|
9792
10203
|
end
|
9793
10204
|
|
9794
|
-
# Flags the specified instances in the managed instance group to be
|
9795
|
-
# recreated.
|
9796
|
-
#
|
9797
|
-
# the
|
9798
|
-
#
|
9799
|
-
#
|
10205
|
+
# Flags the specified VM instances in the managed instance group to be
|
10206
|
+
# immediately recreated. Each instance is recreated using the group's current
|
10207
|
+
# configuration. This operation is marked as DONE when the flag is set even if
|
10208
|
+
# the instances have not yet been recreated. You must separately verify the
|
10209
|
+
# status of each instance by checking its currentAction field; for more
|
10210
|
+
# information, see Checking the status of managed instances.
|
9800
10211
|
# If the group is part of a backend service that has enabled connection draining,
|
9801
10212
|
# it can take up to 60 seconds after the connection draining duration has
|
9802
10213
|
# elapsed before the VM instance is removed or deleted.
|
@@ -9990,6 +10401,71 @@ module Google
|
|
9990
10401
|
execute_or_queue_command(command, &block)
|
9991
10402
|
end
|
9992
10403
|
|
10404
|
+
# Flags the specified instances in the managed instance group to be resumed.
|
10405
|
+
# This method increases the targetSize and decreases the targetSuspendedSize of
|
10406
|
+
# the managed instance group by the number of instances that you resume. The
|
10407
|
+
# resumeInstances operation is marked DONE if the resumeInstances request is
|
10408
|
+
# successful. The underlying actions take additional time. You must separately
|
10409
|
+
# verify the status of the RESUMING action with the listmanagedinstances method.
|
10410
|
+
# In this request, you can only specify instances that are suspended. For
|
10411
|
+
# example, if an instance was previously suspended using the suspendInstances
|
10412
|
+
# method, it can be resumed using the resumeInstances method.
|
10413
|
+
# If a health check is attached to the managed instance group, the specified
|
10414
|
+
# instances will be verified as healthy after they are resumed.
|
10415
|
+
# You can specify a maximum of 1000 instances with this method per request.
|
10416
|
+
# @param [String] project
|
10417
|
+
# Project ID for this request.
|
10418
|
+
# @param [String] zone
|
10419
|
+
# The name of the zone where the managed instance group is located.
|
10420
|
+
# @param [String] instance_group_manager
|
10421
|
+
# The name of the managed instance group.
|
10422
|
+
# @param [Google::Apis::ComputeAlpha::InstanceGroupManagersResumeInstancesRequest] instance_group_managers_resume_instances_request_object
|
10423
|
+
# @param [String] request_id
|
10424
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
10425
|
+
# that if you must retry your request, the server will know to ignore the
|
10426
|
+
# request if it has already been completed.
|
10427
|
+
# For example, consider a situation where you make an initial request and the
|
10428
|
+
# request times out. If you make the request again with the same request ID, the
|
10429
|
+
# server can check if original operation with the same request ID was received,
|
10430
|
+
# and if so, will ignore the second request. This prevents clients from
|
10431
|
+
# accidentally creating duplicate commitments.
|
10432
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
10433
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
10434
|
+
# @param [String] fields
|
10435
|
+
# Selector specifying which fields to include in a partial response.
|
10436
|
+
# @param [String] quota_user
|
10437
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
10438
|
+
# characters.
|
10439
|
+
# @param [String] user_ip
|
10440
|
+
# Deprecated. Please use quotaUser instead.
|
10441
|
+
# @param [Google::Apis::RequestOptions] options
|
10442
|
+
# Request-specific options
|
10443
|
+
#
|
10444
|
+
# @yield [result, err] Result & error if block supplied
|
10445
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
10446
|
+
# @yieldparam err [StandardError] error object if request failed
|
10447
|
+
#
|
10448
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
10449
|
+
#
|
10450
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
10451
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
10452
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
10453
|
+
def resume_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_resume_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
10454
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/resumeInstances', options)
|
10455
|
+
command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersResumeInstancesRequest::Representation
|
10456
|
+
command.request_object = instance_group_managers_resume_instances_request_object
|
10457
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
10458
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
10459
|
+
command.params['project'] = project unless project.nil?
|
10460
|
+
command.params['zone'] = zone unless zone.nil?
|
10461
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
10462
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
10463
|
+
command.query['fields'] = fields unless fields.nil?
|
10464
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
10465
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
10466
|
+
execute_or_queue_command(command, &block)
|
10467
|
+
end
|
10468
|
+
|
9993
10469
|
# Motifies the autohealing policy for the instances in this managed instance
|
9994
10470
|
# group. [Deprecated] This method is deprecated. Use instanceGroupManagers.patch
|
9995
10471
|
# instead.
|
@@ -10162,6 +10638,222 @@ module Google
|
|
10162
10638
|
execute_or_queue_command(command, &block)
|
10163
10639
|
end
|
10164
10640
|
|
10641
|
+
# Flags the specified instances in the managed instance group to be started.
|
10642
|
+
# This method increases the targetSize and decreases the targetStoppedSize of
|
10643
|
+
# the managed instance group by the number of instances that you start. The
|
10644
|
+
# startInstances operation is marked DONE if the startInstances request is
|
10645
|
+
# successful. The underlying actions take additional time. You must separately
|
10646
|
+
# verify the status of the STARTING action with the listmanagedinstances method.
|
10647
|
+
# In this request, you can only specify instances that are stopped. For example,
|
10648
|
+
# if an instance was previously stopped using the stopInstances method, it can
|
10649
|
+
# be started using the startInstances method.
|
10650
|
+
# If a health check is attached to the managed instance group, the specified
|
10651
|
+
# instances will be verified as healthy after they are started.
|
10652
|
+
# You can specify a maximum of 1000 instances with this method per request.
|
10653
|
+
# @param [String] project
|
10654
|
+
# Project ID for this request.
|
10655
|
+
# @param [String] zone
|
10656
|
+
# The name of the zone where the managed instance group is located.
|
10657
|
+
# @param [String] instance_group_manager
|
10658
|
+
# The name of the managed instance group.
|
10659
|
+
# @param [Google::Apis::ComputeAlpha::InstanceGroupManagersStartInstancesRequest] instance_group_managers_start_instances_request_object
|
10660
|
+
# @param [String] request_id
|
10661
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
10662
|
+
# that if you must retry your request, the server will know to ignore the
|
10663
|
+
# request if it has already been completed.
|
10664
|
+
# For example, consider a situation where you make an initial request and the
|
10665
|
+
# request times out. If you make the request again with the same request ID, the
|
10666
|
+
# server can check if original operation with the same request ID was received,
|
10667
|
+
# and if so, will ignore the second request. This prevents clients from
|
10668
|
+
# accidentally creating duplicate commitments.
|
10669
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
10670
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
10671
|
+
# @param [String] fields
|
10672
|
+
# Selector specifying which fields to include in a partial response.
|
10673
|
+
# @param [String] quota_user
|
10674
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
10675
|
+
# characters.
|
10676
|
+
# @param [String] user_ip
|
10677
|
+
# Deprecated. Please use quotaUser instead.
|
10678
|
+
# @param [Google::Apis::RequestOptions] options
|
10679
|
+
# Request-specific options
|
10680
|
+
#
|
10681
|
+
# @yield [result, err] Result & error if block supplied
|
10682
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
10683
|
+
# @yieldparam err [StandardError] error object if request failed
|
10684
|
+
#
|
10685
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
10686
|
+
#
|
10687
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
10688
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
10689
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
10690
|
+
def start_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_start_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
10691
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/startInstances', options)
|
10692
|
+
command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersStartInstancesRequest::Representation
|
10693
|
+
command.request_object = instance_group_managers_start_instances_request_object
|
10694
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
10695
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
10696
|
+
command.params['project'] = project unless project.nil?
|
10697
|
+
command.params['zone'] = zone unless zone.nil?
|
10698
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
10699
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
10700
|
+
command.query['fields'] = fields unless fields.nil?
|
10701
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
10702
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
10703
|
+
execute_or_queue_command(command, &block)
|
10704
|
+
end
|
10705
|
+
|
10706
|
+
# Flags the specified instances in the managed instance group to be immediately
|
10707
|
+
# stopped. You can only specify instances that are running in this request. This
|
10708
|
+
# method reduces the targetSize and increases the targetStoppedSize of the
|
10709
|
+
# managed instance group by the number of instances that you stop. The
|
10710
|
+
# stopInstances operation is marked DONE if the stopInstances request is
|
10711
|
+
# successful. The underlying actions take additional time. You must separately
|
10712
|
+
# verify the status of the STOPPING action with the listmanagedinstances method.
|
10713
|
+
# If the instanceLifecyclePolicy.metadataBasedReadinessSignal field is set on
|
10714
|
+
# the Instance Group Manager, each instance will be initialized before it is
|
10715
|
+
# stopped, to give user programs time to perform necessary tasks. To initialize
|
10716
|
+
# an instance, the Instance Group Manager sets the metadata key google-compute-
|
10717
|
+
# initialization-intent to value INITIALIZE_AND_STOP on the instance, and waits
|
10718
|
+
# for the user program to signal it is ready. This is done by setting the guest
|
10719
|
+
# attribute path google-compute/initialization-state to value INITIALIZED. If
|
10720
|
+
# the instance does not signal successful initialization (does not set the guest
|
10721
|
+
# attribute to INITIALIZED) before timeout, the initialization is considered
|
10722
|
+
# failed and the instance is not stopped.
|
10723
|
+
# If the group is part of a backend service that has enabled connection draining,
|
10724
|
+
# it can take up to 60 seconds after the connection draining duration has
|
10725
|
+
# elapsed before the VM instance is suspended.
|
10726
|
+
# Stopped instances can be started using the startInstances method.
|
10727
|
+
# You can specify a maximum of 1000 instances with this method per request.
|
10728
|
+
# @param [String] project
|
10729
|
+
# Project ID for this request.
|
10730
|
+
# @param [String] zone
|
10731
|
+
# The name of the zone where the managed instance group is located.
|
10732
|
+
# @param [String] instance_group_manager
|
10733
|
+
# The name of the managed instance group.
|
10734
|
+
# @param [Google::Apis::ComputeAlpha::InstanceGroupManagersStopInstancesRequest] instance_group_managers_stop_instances_request_object
|
10735
|
+
# @param [String] request_id
|
10736
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
10737
|
+
# that if you must retry your request, the server will know to ignore the
|
10738
|
+
# request if it has already been completed.
|
10739
|
+
# For example, consider a situation where you make an initial request and the
|
10740
|
+
# request times out. If you make the request again with the same request ID, the
|
10741
|
+
# server can check if original operation with the same request ID was received,
|
10742
|
+
# and if so, will ignore the second request. This prevents clients from
|
10743
|
+
# accidentally creating duplicate commitments.
|
10744
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
10745
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
10746
|
+
# @param [String] fields
|
10747
|
+
# Selector specifying which fields to include in a partial response.
|
10748
|
+
# @param [String] quota_user
|
10749
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
10750
|
+
# characters.
|
10751
|
+
# @param [String] user_ip
|
10752
|
+
# Deprecated. Please use quotaUser instead.
|
10753
|
+
# @param [Google::Apis::RequestOptions] options
|
10754
|
+
# Request-specific options
|
10755
|
+
#
|
10756
|
+
# @yield [result, err] Result & error if block supplied
|
10757
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
10758
|
+
# @yieldparam err [StandardError] error object if request failed
|
10759
|
+
#
|
10760
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
10761
|
+
#
|
10762
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
10763
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
10764
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
10765
|
+
def stop_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_stop_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
10766
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/stopInstances', options)
|
10767
|
+
command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersStopInstancesRequest::Representation
|
10768
|
+
command.request_object = instance_group_managers_stop_instances_request_object
|
10769
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
10770
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
10771
|
+
command.params['project'] = project unless project.nil?
|
10772
|
+
command.params['zone'] = zone unless zone.nil?
|
10773
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
10774
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
10775
|
+
command.query['fields'] = fields unless fields.nil?
|
10776
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
10777
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
10778
|
+
execute_or_queue_command(command, &block)
|
10779
|
+
end
|
10780
|
+
|
10781
|
+
# Flags the specified instances in the managed instance group to be immediately
|
10782
|
+
# suspended. You can only specify instances that are running in this request.
|
10783
|
+
# This method reduces the targetSize and increases the targetSuspendedSize of
|
10784
|
+
# the managed instance group by the number of instances that you suspend. The
|
10785
|
+
# suspendInstances operation is marked DONE if the suspendInstances request is
|
10786
|
+
# successful. The underlying actions take additional time. You must separately
|
10787
|
+
# verify the status of the SUSPENDING action with the listmanagedinstances
|
10788
|
+
# method.
|
10789
|
+
# If the instanceLifecyclePolicy.metadataBasedReadinessSignal field is set on
|
10790
|
+
# the Instance Group Manager, each instance will be initialized before it is
|
10791
|
+
# suspended, to give user programs time to perform necessary tasks. To
|
10792
|
+
# initialize an instance, the Instance Group Manager sets the metadata key
|
10793
|
+
# google-compute-initialization-intent to value INITIALIZE_AND_SUSPEND on the
|
10794
|
+
# instance, and waits for the user program to signal it is ready. This is done
|
10795
|
+
# by setting the guest attribute path google-compute/initialization-state to
|
10796
|
+
# value INITIALIZED. If the instance does not signal successful initialization (
|
10797
|
+
# does not set the guest attribute to INITIALIZED) before timeout, the
|
10798
|
+
# initialization is considered failed and the instance is not suspended.
|
10799
|
+
# If the group is part of a backend service that has enabled connection draining,
|
10800
|
+
# it can take up to 60 seconds after the connection draining duration has
|
10801
|
+
# elapsed before the VM instance is suspended.
|
10802
|
+
# Suspended instances can be resumed using the resumeInstances method.
|
10803
|
+
# You can specify a maximum of 1000 instances with this method per request.
|
10804
|
+
# @param [String] project
|
10805
|
+
# Project ID for this request.
|
10806
|
+
# @param [String] zone
|
10807
|
+
# The name of the zone where the managed instance group is located.
|
10808
|
+
# @param [String] instance_group_manager
|
10809
|
+
# The name of the managed instance group.
|
10810
|
+
# @param [Google::Apis::ComputeAlpha::InstanceGroupManagersSuspendInstancesRequest] instance_group_managers_suspend_instances_request_object
|
10811
|
+
# @param [String] request_id
|
10812
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
10813
|
+
# that if you must retry your request, the server will know to ignore the
|
10814
|
+
# request if it has already been completed.
|
10815
|
+
# For example, consider a situation where you make an initial request and the
|
10816
|
+
# request times out. If you make the request again with the same request ID, the
|
10817
|
+
# server can check if original operation with the same request ID was received,
|
10818
|
+
# and if so, will ignore the second request. This prevents clients from
|
10819
|
+
# accidentally creating duplicate commitments.
|
10820
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
10821
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
10822
|
+
# @param [String] fields
|
10823
|
+
# Selector specifying which fields to include in a partial response.
|
10824
|
+
# @param [String] quota_user
|
10825
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
10826
|
+
# characters.
|
10827
|
+
# @param [String] user_ip
|
10828
|
+
# Deprecated. Please use quotaUser instead.
|
10829
|
+
# @param [Google::Apis::RequestOptions] options
|
10830
|
+
# Request-specific options
|
10831
|
+
#
|
10832
|
+
# @yield [result, err] Result & error if block supplied
|
10833
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
10834
|
+
# @yieldparam err [StandardError] error object if request failed
|
10835
|
+
#
|
10836
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
10837
|
+
#
|
10838
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
10839
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
10840
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
10841
|
+
def suspend_instance_group_manager_instances(project, zone, instance_group_manager, instance_group_managers_suspend_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
10842
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instanceGroupManagers/{instanceGroupManager}/suspendInstances', options)
|
10843
|
+
command.request_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersSuspendInstancesRequest::Representation
|
10844
|
+
command.request_object = instance_group_managers_suspend_instances_request_object
|
10845
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
10846
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
10847
|
+
command.params['project'] = project unless project.nil?
|
10848
|
+
command.params['zone'] = zone unless zone.nil?
|
10849
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
10850
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
10851
|
+
command.query['fields'] = fields unless fields.nil?
|
10852
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
10853
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
10854
|
+
execute_or_queue_command(command, &block)
|
10855
|
+
end
|
10856
|
+
|
10165
10857
|
# Returns permissions that a caller has on the specified resource.
|
10166
10858
|
# @param [String] project
|
10167
10859
|
# Project ID for this request.
|
@@ -11569,8 +12261,8 @@ module Google
|
|
11569
12261
|
execute_or_queue_command(command, &block)
|
11570
12262
|
end
|
11571
12263
|
|
11572
|
-
# Deletes the specified Instance resource. For more information, see
|
11573
|
-
#
|
12264
|
+
# Deletes the specified Instance resource. For more information, see Deleting an
|
12265
|
+
# instance.
|
11574
12266
|
# @param [String] project
|
11575
12267
|
# Project ID for this request.
|
11576
12268
|
# @param [String] zone
|
@@ -12094,6 +12786,10 @@ module Google
|
|
12094
12786
|
# accidentally creating duplicate commitments.
|
12095
12787
|
# The request ID must be a valid UUID with the exception that zero UUID is not
|
12096
12788
|
# supported (00000000-0000-0000-0000-000000000000).
|
12789
|
+
# @param [Array<String>, String] secure_tags
|
12790
|
+
# DEPRECATED: Please use resource.secure_tag instead. Secure tags to apply to
|
12791
|
+
# this instance. These can be later modified by the update method. Maximum
|
12792
|
+
# number of secure tags allowed is 50.
|
12097
12793
|
# @param [String] source_instance_template
|
12098
12794
|
# Specifies instance template to create the instance.
|
12099
12795
|
# This field is optional. It can be a full or partial URL. For example, the
|
@@ -12129,7 +12825,7 @@ module Google
|
|
12129
12825
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
12130
12826
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
12131
12827
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
12132
|
-
def insert_instance(project, zone, instance_object = nil, request_id: nil, source_instance_template: nil, source_machine_image: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
12828
|
+
def insert_instance(project, zone, instance_object = nil, request_id: nil, secure_tags: nil, source_instance_template: nil, source_machine_image: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
12133
12829
|
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances', options)
|
12134
12830
|
command.request_representation = Google::Apis::ComputeAlpha::Instance::Representation
|
12135
12831
|
command.request_object = instance_object
|
@@ -12138,6 +12834,7 @@ module Google
|
|
12138
12834
|
command.params['project'] = project unless project.nil?
|
12139
12835
|
command.params['zone'] = zone unless zone.nil?
|
12140
12836
|
command.query['requestId'] = request_id unless request_id.nil?
|
12837
|
+
command.query['secureTags'] = secure_tags unless secure_tags.nil?
|
12141
12838
|
command.query['sourceInstanceTemplate'] = source_instance_template unless source_instance_template.nil?
|
12142
12839
|
command.query['sourceMachineImage'] = source_machine_image unless source_machine_image.nil?
|
12143
12840
|
command.query['fields'] = fields unless fields.nil?
|
@@ -12469,6 +13166,44 @@ module Google
|
|
12469
13166
|
execute_or_queue_command(command, &block)
|
12470
13167
|
end
|
12471
13168
|
|
13169
|
+
# TODO(b/180520210): Add IAM permission for this API. Sends diagnostic interrupt
|
13170
|
+
# to the instance.
|
13171
|
+
# @param [String] project
|
13172
|
+
# Project ID for this request.
|
13173
|
+
# @param [String] zone
|
13174
|
+
# The name of the zone for this request.
|
13175
|
+
# @param [String] instance
|
13176
|
+
# Name of the instance scoping this request.
|
13177
|
+
# @param [String] fields
|
13178
|
+
# Selector specifying which fields to include in a partial response.
|
13179
|
+
# @param [String] quota_user
|
13180
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
13181
|
+
# characters.
|
13182
|
+
# @param [String] user_ip
|
13183
|
+
# Deprecated. Please use quotaUser instead.
|
13184
|
+
# @param [Google::Apis::RequestOptions] options
|
13185
|
+
# Request-specific options
|
13186
|
+
#
|
13187
|
+
# @yield [result, err] Result & error if block supplied
|
13188
|
+
# @yieldparam result [NilClass] No result returned for this method
|
13189
|
+
# @yieldparam err [StandardError] error object if request failed
|
13190
|
+
#
|
13191
|
+
# @return [void]
|
13192
|
+
#
|
13193
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13194
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13195
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13196
|
+
def send_instance_diagnostic_interrupt(project, zone, instance, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
13197
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/sendDiagnosticInterrupt', options)
|
13198
|
+
command.params['project'] = project unless project.nil?
|
13199
|
+
command.params['zone'] = zone unless zone.nil?
|
13200
|
+
command.params['instance'] = instance unless instance.nil?
|
13201
|
+
command.query['fields'] = fields unless fields.nil?
|
13202
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13203
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
13204
|
+
execute_or_queue_command(command, &block)
|
13205
|
+
end
|
13206
|
+
|
12472
13207
|
# Sets deletion protection on the instance.
|
12473
13208
|
# @param [String] project
|
12474
13209
|
# Project ID for this request.
|
@@ -13548,6 +14283,10 @@ module Google
|
|
13548
14283
|
# @param [String] instance
|
13549
14284
|
# Name of the instance resource to update.
|
13550
14285
|
# @param [Google::Apis::ComputeAlpha::Instance] instance_object
|
14286
|
+
# @param [Boolean] clear_secure_tag
|
14287
|
+
# Whether to clear secure tags from the instance.
|
14288
|
+
# This property if set to true will clear secure tags regardless of the resource.
|
14289
|
+
# secure_tags.
|
13551
14290
|
# @param [String] minimal_action
|
13552
14291
|
# Specifies the action to take when updating an instance even if the updated
|
13553
14292
|
# properties do not require it. If not specified, then Compute Engine acts based
|
@@ -13568,6 +14307,9 @@ module Google
|
|
13568
14307
|
# accidentally creating duplicate commitments.
|
13569
14308
|
# The request ID must be a valid UUID with the exception that zero UUID is not
|
13570
14309
|
# supported (00000000-0000-0000-0000-000000000000).
|
14310
|
+
# @param [Array<String>, String] secure_tags
|
14311
|
+
# DEPRECATED: Please use resource.secure_tag instead. Secure tags to apply to
|
14312
|
+
# this instance. Maximum number of secure tags allowed is 50.
|
13571
14313
|
# @param [String] fields
|
13572
14314
|
# Selector specifying which fields to include in a partial response.
|
13573
14315
|
# @param [String] quota_user
|
@@ -13587,7 +14329,7 @@ module Google
|
|
13587
14329
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13588
14330
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13589
14331
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13590
|
-
def update_instance(project, zone, instance, instance_object = nil, minimal_action: nil, most_disruptive_allowed_action: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
14332
|
+
def update_instance(project, zone, instance, instance_object = nil, clear_secure_tag: nil, minimal_action: nil, most_disruptive_allowed_action: nil, request_id: nil, secure_tags: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
13591
14333
|
command = make_simple_command(:put, 'projects/{project}/zones/{zone}/instances/{instance}', options)
|
13592
14334
|
command.request_representation = Google::Apis::ComputeAlpha::Instance::Representation
|
13593
14335
|
command.request_object = instance_object
|
@@ -13596,9 +14338,11 @@ module Google
|
|
13596
14338
|
command.params['project'] = project unless project.nil?
|
13597
14339
|
command.params['zone'] = zone unless zone.nil?
|
13598
14340
|
command.params['instance'] = instance unless instance.nil?
|
14341
|
+
command.query['clearSecureTag'] = clear_secure_tag unless clear_secure_tag.nil?
|
13599
14342
|
command.query['minimalAction'] = minimal_action unless minimal_action.nil?
|
13600
14343
|
command.query['mostDisruptiveAllowedAction'] = most_disruptive_allowed_action unless most_disruptive_allowed_action.nil?
|
13601
14344
|
command.query['requestId'] = request_id unless request_id.nil?
|
14345
|
+
command.query['secureTags'] = secure_tags unless secure_tags.nil?
|
13602
14346
|
command.query['fields'] = fields unless fields.nil?
|
13603
14347
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13604
14348
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -16086,9 +16830,10 @@ module Google
|
|
16086
16830
|
execute_or_queue_command(command, &block)
|
16087
16831
|
end
|
16088
16832
|
|
16089
|
-
# Retrieves the list of
|
16833
|
+
# Retrieves the list of all NetworkEdgeSecurityService resources available to
|
16834
|
+
# the specified project.
|
16090
16835
|
# @param [String] project
|
16091
|
-
#
|
16836
|
+
# Name of the project scoping this request.
|
16092
16837
|
# @param [String] filter
|
16093
16838
|
# A filter expression that filters resources listed in the response. The
|
16094
16839
|
# expression must specify the field name, a comparison operator, and the value
|
@@ -16144,18 +16889,18 @@ module Google
|
|
16144
16889
|
# Request-specific options
|
16145
16890
|
#
|
16146
16891
|
# @yield [result, err] Result & error if block supplied
|
16147
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
16892
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::NetworkEdgeSecurityServiceAggregatedList] parsed result object
|
16148
16893
|
# @yieldparam err [StandardError] error object if request failed
|
16149
16894
|
#
|
16150
|
-
# @return [Google::Apis::ComputeAlpha::
|
16895
|
+
# @return [Google::Apis::ComputeAlpha::NetworkEdgeSecurityServiceAggregatedList]
|
16151
16896
|
#
|
16152
16897
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16153
16898
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16154
16899
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16155
|
-
def
|
16156
|
-
command = make_simple_command(:get, 'projects/{project}/aggregated/
|
16157
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
16158
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
16900
|
+
def aggregated_network_edge_security_service_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)
|
16901
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/networkEdgeSecurityServices', options)
|
16902
|
+
command.response_representation = Google::Apis::ComputeAlpha::NetworkEdgeSecurityServiceAggregatedList::Representation
|
16903
|
+
command.response_class = Google::Apis::ComputeAlpha::NetworkEdgeSecurityServiceAggregatedList
|
16159
16904
|
command.params['project'] = project unless project.nil?
|
16160
16905
|
command.query['filter'] = filter unless filter.nil?
|
16161
16906
|
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
@@ -16169,16 +16914,301 @@ module Google
|
|
16169
16914
|
execute_or_queue_command(command, &block)
|
16170
16915
|
end
|
16171
16916
|
|
16172
|
-
#
|
16917
|
+
# Deletes the specified service.
|
16173
16918
|
# @param [String] project
|
16174
16919
|
# Project ID for this request.
|
16175
|
-
# @param [String]
|
16176
|
-
#
|
16177
|
-
#
|
16178
|
-
#
|
16179
|
-
#
|
16180
|
-
#
|
16181
|
-
#
|
16920
|
+
# @param [String] region
|
16921
|
+
# Name of the region scoping this request.
|
16922
|
+
# @param [String] network_edge_security_service
|
16923
|
+
# Name of the network edge security service to delete.
|
16924
|
+
# @param [String] request_id
|
16925
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
16926
|
+
# that if you must retry your request, the server will know to ignore the
|
16927
|
+
# request if it has already been completed.
|
16928
|
+
# For example, consider a situation where you make an initial request and the
|
16929
|
+
# request times out. If you make the request again with the same request ID, the
|
16930
|
+
# server can check if original operation with the same request ID was received,
|
16931
|
+
# and if so, will ignore the second request. This prevents clients from
|
16932
|
+
# accidentally creating duplicate commitments.
|
16933
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
16934
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
16935
|
+
# @param [String] fields
|
16936
|
+
# Selector specifying which fields to include in a partial response.
|
16937
|
+
# @param [String] quota_user
|
16938
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
16939
|
+
# characters.
|
16940
|
+
# @param [String] user_ip
|
16941
|
+
# Deprecated. Please use quotaUser instead.
|
16942
|
+
# @param [Google::Apis::RequestOptions] options
|
16943
|
+
# Request-specific options
|
16944
|
+
#
|
16945
|
+
# @yield [result, err] Result & error if block supplied
|
16946
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
16947
|
+
# @yieldparam err [StandardError] error object if request failed
|
16948
|
+
#
|
16949
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
16950
|
+
#
|
16951
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16952
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16953
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16954
|
+
def delete_network_edge_security_service(project, region, network_edge_security_service, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16955
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}', options)
|
16956
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
16957
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
16958
|
+
command.params['project'] = project unless project.nil?
|
16959
|
+
command.params['region'] = region unless region.nil?
|
16960
|
+
command.params['networkEdgeSecurityService'] = network_edge_security_service unless network_edge_security_service.nil?
|
16961
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
16962
|
+
command.query['fields'] = fields unless fields.nil?
|
16963
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16964
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
16965
|
+
execute_or_queue_command(command, &block)
|
16966
|
+
end
|
16967
|
+
|
16968
|
+
# Gets a specified NetworkEdgeSecurityService.
|
16969
|
+
# @param [String] project
|
16970
|
+
# Project ID for this request.
|
16971
|
+
# @param [String] region
|
16972
|
+
# Name of the region scoping this request.
|
16973
|
+
# @param [String] network_edge_security_service
|
16974
|
+
# Name of the network edge security service to get.
|
16975
|
+
# @param [String] fields
|
16976
|
+
# Selector specifying which fields to include in a partial response.
|
16977
|
+
# @param [String] quota_user
|
16978
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
16979
|
+
# characters.
|
16980
|
+
# @param [String] user_ip
|
16981
|
+
# Deprecated. Please use quotaUser instead.
|
16982
|
+
# @param [Google::Apis::RequestOptions] options
|
16983
|
+
# Request-specific options
|
16984
|
+
#
|
16985
|
+
# @yield [result, err] Result & error if block supplied
|
16986
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::NetworkEdgeSecurityService] parsed result object
|
16987
|
+
# @yieldparam err [StandardError] error object if request failed
|
16988
|
+
#
|
16989
|
+
# @return [Google::Apis::ComputeAlpha::NetworkEdgeSecurityService]
|
16990
|
+
#
|
16991
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16992
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16993
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16994
|
+
def get_network_edge_security_service(project, region, network_edge_security_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16995
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}', options)
|
16996
|
+
command.response_representation = Google::Apis::ComputeAlpha::NetworkEdgeSecurityService::Representation
|
16997
|
+
command.response_class = Google::Apis::ComputeAlpha::NetworkEdgeSecurityService
|
16998
|
+
command.params['project'] = project unless project.nil?
|
16999
|
+
command.params['region'] = region unless region.nil?
|
17000
|
+
command.params['networkEdgeSecurityService'] = network_edge_security_service unless network_edge_security_service.nil?
|
17001
|
+
command.query['fields'] = fields unless fields.nil?
|
17002
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17003
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17004
|
+
execute_or_queue_command(command, &block)
|
17005
|
+
end
|
17006
|
+
|
17007
|
+
# Creates a new service in the specified project using the data included in the
|
17008
|
+
# request.
|
17009
|
+
# @param [String] project
|
17010
|
+
# Project ID for this request.
|
17011
|
+
# @param [String] region
|
17012
|
+
# Name of the region scoping this request.
|
17013
|
+
# @param [Google::Apis::ComputeAlpha::NetworkEdgeSecurityService] network_edge_security_service_object
|
17014
|
+
# @param [String] request_id
|
17015
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
17016
|
+
# that if you must retry your request, the server will know to ignore the
|
17017
|
+
# request if it has already been completed.
|
17018
|
+
# For example, consider a situation where you make an initial request and the
|
17019
|
+
# request times out. If you make the request again with the same request ID, the
|
17020
|
+
# server can check if original operation with the same request ID was received,
|
17021
|
+
# and if so, will ignore the second request. This prevents clients from
|
17022
|
+
# accidentally creating duplicate commitments.
|
17023
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
17024
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
17025
|
+
# @param [Boolean] validate_only
|
17026
|
+
# If true, the request will not be committed.
|
17027
|
+
# @param [String] fields
|
17028
|
+
# Selector specifying which fields to include in a partial response.
|
17029
|
+
# @param [String] quota_user
|
17030
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
17031
|
+
# characters.
|
17032
|
+
# @param [String] user_ip
|
17033
|
+
# Deprecated. Please use quotaUser instead.
|
17034
|
+
# @param [Google::Apis::RequestOptions] options
|
17035
|
+
# Request-specific options
|
17036
|
+
#
|
17037
|
+
# @yield [result, err] Result & error if block supplied
|
17038
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
17039
|
+
# @yieldparam err [StandardError] error object if request failed
|
17040
|
+
#
|
17041
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
17042
|
+
#
|
17043
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17044
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17045
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17046
|
+
def insert_network_edge_security_service(project, region, network_edge_security_service_object = nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17047
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkEdgeSecurityServices', options)
|
17048
|
+
command.request_representation = Google::Apis::ComputeAlpha::NetworkEdgeSecurityService::Representation
|
17049
|
+
command.request_object = network_edge_security_service_object
|
17050
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
17051
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
17052
|
+
command.params['project'] = project unless project.nil?
|
17053
|
+
command.params['region'] = region unless region.nil?
|
17054
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
17055
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
17056
|
+
command.query['fields'] = fields unless fields.nil?
|
17057
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17058
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17059
|
+
execute_or_queue_command(command, &block)
|
17060
|
+
end
|
17061
|
+
|
17062
|
+
# Patches the specified policy with the data included in the request.
|
17063
|
+
# @param [String] project
|
17064
|
+
# Project ID for this request.
|
17065
|
+
# @param [String] region
|
17066
|
+
# Name of the region scoping this request.
|
17067
|
+
# @param [String] network_edge_security_service
|
17068
|
+
# Name of the network edge security service to update.
|
17069
|
+
# @param [Google::Apis::ComputeAlpha::NetworkEdgeSecurityService] network_edge_security_service_object
|
17070
|
+
# @param [Array<String>, String] paths
|
17071
|
+
# The set of field mask paths.
|
17072
|
+
# @param [String] request_id
|
17073
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
17074
|
+
# that if you must retry your request, the server will know to ignore the
|
17075
|
+
# request if it has already been completed.
|
17076
|
+
# For example, consider a situation where you make an initial request and the
|
17077
|
+
# request times out. If you make the request again with the same request ID, the
|
17078
|
+
# server can check if original operation with the same request ID was received,
|
17079
|
+
# and if so, will ignore the second request. This prevents clients from
|
17080
|
+
# accidentally creating duplicate commitments.
|
17081
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
17082
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
17083
|
+
# @param [String] fields
|
17084
|
+
# Selector specifying which fields to include in a partial response.
|
17085
|
+
# @param [String] quota_user
|
17086
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
17087
|
+
# characters.
|
17088
|
+
# @param [String] user_ip
|
17089
|
+
# Deprecated. Please use quotaUser instead.
|
17090
|
+
# @param [Google::Apis::RequestOptions] options
|
17091
|
+
# Request-specific options
|
17092
|
+
#
|
17093
|
+
# @yield [result, err] Result & error if block supplied
|
17094
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
17095
|
+
# @yieldparam err [StandardError] error object if request failed
|
17096
|
+
#
|
17097
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
17098
|
+
#
|
17099
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17100
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17101
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17102
|
+
def patch_network_edge_security_service(project, region, network_edge_security_service, network_edge_security_service_object = nil, paths: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17103
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}', options)
|
17104
|
+
command.request_representation = Google::Apis::ComputeAlpha::NetworkEdgeSecurityService::Representation
|
17105
|
+
command.request_object = network_edge_security_service_object
|
17106
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
17107
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
17108
|
+
command.params['project'] = project unless project.nil?
|
17109
|
+
command.params['region'] = region unless region.nil?
|
17110
|
+
command.params['networkEdgeSecurityService'] = network_edge_security_service unless network_edge_security_service.nil?
|
17111
|
+
command.query['paths'] = paths unless paths.nil?
|
17112
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
17113
|
+
command.query['fields'] = fields unless fields.nil?
|
17114
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17115
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17116
|
+
execute_or_queue_command(command, &block)
|
17117
|
+
end
|
17118
|
+
|
17119
|
+
# Retrieves the list of network endpoint groups and sorts them by zone.
|
17120
|
+
# @param [String] project
|
17121
|
+
# Project ID for this request.
|
17122
|
+
# @param [String] filter
|
17123
|
+
# A filter expression that filters resources listed in the response. The
|
17124
|
+
# expression must specify the field name, a comparison operator, and the value
|
17125
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
17126
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
17127
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
17128
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
17129
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
17130
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
17131
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
17132
|
+
# on resource labels.
|
17133
|
+
# To filter on multiple expressions, provide each separate expression within
|
17134
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
17135
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
17136
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
17137
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
17138
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
17139
|
+
# @param [Boolean] include_all_scopes
|
17140
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
17141
|
+
# global) should be included in the response. For new resource types added after
|
17142
|
+
# this field, the flag has no effect as new resource types will always include
|
17143
|
+
# every visible scope for each scope type in response. For resource types which
|
17144
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
17145
|
+
# types where the resource type is expected to be found will be included.
|
17146
|
+
# @param [Fixnum] max_results
|
17147
|
+
# The maximum number of results per page that should be returned. If the number
|
17148
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
17149
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
17150
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
17151
|
+
# @param [String] order_by
|
17152
|
+
# Sorts list results by a certain order. By default, results are returned in
|
17153
|
+
# alphanumerical order based on the resource name.
|
17154
|
+
# You can also sort results in descending order based on the creation timestamp
|
17155
|
+
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
17156
|
+
# creationTimestamp` field in reverse chronological order (newest result first).
|
17157
|
+
# Use this to sort resources like operations so that the newest operation is
|
17158
|
+
# returned first.
|
17159
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
17160
|
+
# @param [String] page_token
|
17161
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
17162
|
+
# by a previous list request to get the next page of results.
|
17163
|
+
# @param [Boolean] return_partial_success
|
17164
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
17165
|
+
# failure. The default value is false.
|
17166
|
+
# @param [String] fields
|
17167
|
+
# Selector specifying which fields to include in a partial response.
|
17168
|
+
# @param [String] quota_user
|
17169
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
17170
|
+
# characters.
|
17171
|
+
# @param [String] user_ip
|
17172
|
+
# Deprecated. Please use quotaUser instead.
|
17173
|
+
# @param [Google::Apis::RequestOptions] options
|
17174
|
+
# Request-specific options
|
17175
|
+
#
|
17176
|
+
# @yield [result, err] Result & error if block supplied
|
17177
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::NetworkEndpointGroupAggregatedList] parsed result object
|
17178
|
+
# @yieldparam err [StandardError] error object if request failed
|
17179
|
+
#
|
17180
|
+
# @return [Google::Apis::ComputeAlpha::NetworkEndpointGroupAggregatedList]
|
17181
|
+
#
|
17182
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17183
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17184
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17185
|
+
def aggregated_network_endpoint_group_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)
|
17186
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/networkEndpointGroups', options)
|
17187
|
+
command.response_representation = Google::Apis::ComputeAlpha::NetworkEndpointGroupAggregatedList::Representation
|
17188
|
+
command.response_class = Google::Apis::ComputeAlpha::NetworkEndpointGroupAggregatedList
|
17189
|
+
command.params['project'] = project unless project.nil?
|
17190
|
+
command.query['filter'] = filter unless filter.nil?
|
17191
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
17192
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
17193
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
17194
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
17195
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
17196
|
+
command.query['fields'] = fields unless fields.nil?
|
17197
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17198
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17199
|
+
execute_or_queue_command(command, &block)
|
17200
|
+
end
|
17201
|
+
|
17202
|
+
# Attach a list of network endpoints to the specified network endpoint group.
|
17203
|
+
# @param [String] project
|
17204
|
+
# Project ID for this request.
|
17205
|
+
# @param [String] zone
|
17206
|
+
# The name of the zone where the network endpoint group is located. It should
|
17207
|
+
# comply with RFC1035.
|
17208
|
+
# @param [String] network_endpoint_group
|
17209
|
+
# The name of the network endpoint group where you are attaching network
|
17210
|
+
# endpoints to. It should comply with RFC1035.
|
17211
|
+
# @param [Google::Apis::ComputeAlpha::NetworkEndpointGroupsAttachEndpointsRequest] network_endpoint_groups_attach_endpoints_request_object
|
16182
17212
|
# @param [String] request_id
|
16183
17213
|
# An optional request ID to identify requests. Specify a unique request ID so
|
16184
17214
|
# that if you must retry your request, the server will know to ignore the
|
@@ -23092,6 +24122,65 @@ module Google
|
|
23092
24122
|
execute_or_queue_command(command, &block)
|
23093
24123
|
end
|
23094
24124
|
|
24125
|
+
# Updates the specified commitment with the data included in the request. Update
|
24126
|
+
# is performed only on selected fields included as part of update-mask. Only the
|
24127
|
+
# following fields can be modified: auto_renew.
|
24128
|
+
# @param [String] project
|
24129
|
+
# Project ID for this request.
|
24130
|
+
# @param [String] region
|
24131
|
+
# Name of the region for this request.
|
24132
|
+
# @param [String] commitment
|
24133
|
+
# Name of the commitment for which auto renew is being updated.
|
24134
|
+
# @param [Google::Apis::ComputeAlpha::Commitment] commitment_object
|
24135
|
+
# @param [Array<String>, String] paths
|
24136
|
+
# The set of field mask paths.
|
24137
|
+
# @param [String] request_id
|
24138
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
24139
|
+
# that if you must retry your request, the server will know to ignore the
|
24140
|
+
# request if it has already been completed.
|
24141
|
+
# For example, consider a situation where you make an initial request and the
|
24142
|
+
# request times out. If you make the request again with the same request ID, the
|
24143
|
+
# server can check if original operation with the same request ID was received,
|
24144
|
+
# and if so, will ignore the second request. This prevents clients from
|
24145
|
+
# accidentally creating duplicate commitments.
|
24146
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
24147
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
24148
|
+
# @param [String] fields
|
24149
|
+
# Selector specifying which fields to include in a partial response.
|
24150
|
+
# @param [String] quota_user
|
24151
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
24152
|
+
# characters.
|
24153
|
+
# @param [String] user_ip
|
24154
|
+
# Deprecated. Please use quotaUser instead.
|
24155
|
+
# @param [Google::Apis::RequestOptions] options
|
24156
|
+
# Request-specific options
|
24157
|
+
#
|
24158
|
+
# @yield [result, err] Result & error if block supplied
|
24159
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
24160
|
+
# @yieldparam err [StandardError] error object if request failed
|
24161
|
+
#
|
24162
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
24163
|
+
#
|
24164
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
24165
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
24166
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
24167
|
+
def update_region_commitment(project, region, commitment, commitment_object = nil, paths: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
24168
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/commitments/{commitment}', options)
|
24169
|
+
command.request_representation = Google::Apis::ComputeAlpha::Commitment::Representation
|
24170
|
+
command.request_object = commitment_object
|
24171
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
24172
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
24173
|
+
command.params['project'] = project unless project.nil?
|
24174
|
+
command.params['region'] = region unless region.nil?
|
24175
|
+
command.params['commitment'] = commitment unless commitment.nil?
|
24176
|
+
command.query['paths'] = paths unless paths.nil?
|
24177
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
24178
|
+
command.query['fields'] = fields unless fields.nil?
|
24179
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
24180
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
24181
|
+
execute_or_queue_command(command, &block)
|
24182
|
+
end
|
24183
|
+
|
23095
24184
|
# Transfers GPUs or local SSDs between reservations within commitments.
|
23096
24185
|
# @param [String] project
|
23097
24186
|
# Project ID for this request.
|
@@ -25945,12 +27034,12 @@ module Google
|
|
25945
27034
|
execute_or_queue_command(command, &block)
|
25946
27035
|
end
|
25947
27036
|
|
25948
|
-
# Flags the specified instances in the managed instance group to be
|
25949
|
-
# recreated.
|
25950
|
-
#
|
25951
|
-
# the
|
25952
|
-
#
|
25953
|
-
#
|
27037
|
+
# Flags the specified VM instances in the managed instance group to be
|
27038
|
+
# immediately recreated. Each instance is recreated using the group's current
|
27039
|
+
# configuration. This operation is marked as DONE when the flag is set even if
|
27040
|
+
# the instances have not yet been recreated. You must separately verify the
|
27041
|
+
# status of each instance by checking its currentAction field; for more
|
27042
|
+
# information, see Checking the status of managed instances.
|
25954
27043
|
# If the group is part of a backend service that has enabled connection draining,
|
25955
27044
|
# it can take up to 60 seconds after the connection draining duration has
|
25956
27045
|
# elapsed before the VM instance is removed or deleted.
|
@@ -26138,6 +27227,71 @@ module Google
|
|
26138
27227
|
execute_or_queue_command(command, &block)
|
26139
27228
|
end
|
26140
27229
|
|
27230
|
+
# Flags the specified instances in the managed instance group to be resumed.
|
27231
|
+
# This method increases the targetSize and decreases the targetSuspendedSize of
|
27232
|
+
# the managed instance group by the number of instances that you resume. The
|
27233
|
+
# resumeInstances operation is marked DONE if the resumeInstances request is
|
27234
|
+
# successful. The underlying actions take additional time. You must separately
|
27235
|
+
# verify the status of the RESUMING action with the listmanagedinstances method.
|
27236
|
+
# In this request, you can only specify instances that are suspended. For
|
27237
|
+
# example, if an instance was previously suspended using the suspendInstances
|
27238
|
+
# method, it can be resumed using the resumeInstances method.
|
27239
|
+
# If a health check is attached to the managed instance group, the specified
|
27240
|
+
# instances will be verified as healthy after they are resumed.
|
27241
|
+
# You can specify a maximum of 1000 instances with this method per request.
|
27242
|
+
# @param [String] project
|
27243
|
+
# Project ID for this request.
|
27244
|
+
# @param [String] region
|
27245
|
+
# Name of the region scoping this request.
|
27246
|
+
# @param [String] instance_group_manager
|
27247
|
+
# Name of the managed instance group.
|
27248
|
+
# @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersResumeInstancesRequest] region_instance_group_managers_resume_instances_request_object
|
27249
|
+
# @param [String] request_id
|
27250
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
27251
|
+
# that if you must retry your request, the server will know to ignore the
|
27252
|
+
# request if it has already been completed.
|
27253
|
+
# For example, consider a situation where you make an initial request and the
|
27254
|
+
# request times out. If you make the request again with the same request ID, the
|
27255
|
+
# server can check if original operation with the same request ID was received,
|
27256
|
+
# and if so, will ignore the second request. This prevents clients from
|
27257
|
+
# accidentally creating duplicate commitments.
|
27258
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
27259
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
27260
|
+
# @param [String] fields
|
27261
|
+
# Selector specifying which fields to include in a partial response.
|
27262
|
+
# @param [String] quota_user
|
27263
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
27264
|
+
# characters.
|
27265
|
+
# @param [String] user_ip
|
27266
|
+
# Deprecated. Please use quotaUser instead.
|
27267
|
+
# @param [Google::Apis::RequestOptions] options
|
27268
|
+
# Request-specific options
|
27269
|
+
#
|
27270
|
+
# @yield [result, err] Result & error if block supplied
|
27271
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
27272
|
+
# @yieldparam err [StandardError] error object if request failed
|
27273
|
+
#
|
27274
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
27275
|
+
#
|
27276
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27277
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27278
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27279
|
+
def resume_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_resume_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27280
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resumeInstances', options)
|
27281
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersResumeInstancesRequest::Representation
|
27282
|
+
command.request_object = region_instance_group_managers_resume_instances_request_object
|
27283
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
27284
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27285
|
+
command.params['project'] = project unless project.nil?
|
27286
|
+
command.params['region'] = region unless region.nil?
|
27287
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
27288
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
27289
|
+
command.query['fields'] = fields unless fields.nil?
|
27290
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27291
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27292
|
+
execute_or_queue_command(command, &block)
|
27293
|
+
end
|
27294
|
+
|
26141
27295
|
# Modifies the autohealing policy for the instances in this managed instance
|
26142
27296
|
# group. [Deprecated] This method is deprecated. Use regionInstanceGroupManagers.
|
26143
27297
|
# patch instead.
|
@@ -26304,6 +27458,222 @@ module Google
|
|
26304
27458
|
execute_or_queue_command(command, &block)
|
26305
27459
|
end
|
26306
27460
|
|
27461
|
+
# Flags the specified instances in the managed instance group to be started.
|
27462
|
+
# This method increases the targetSize and decreases the targetStoppedSize of
|
27463
|
+
# the managed instance group by the number of instances that you start. The
|
27464
|
+
# startInstances operation is marked DONE if the startInstances request is
|
27465
|
+
# successful. The underlying actions take additional time. You must separately
|
27466
|
+
# verify the status of the STARTING action with the listmanagedinstances method.
|
27467
|
+
# In this request, you can only specify instances that are stopped. For example,
|
27468
|
+
# if an instance was previously stopped using the stopInstances method, it can
|
27469
|
+
# be started using the startInstances method.
|
27470
|
+
# If a health check is attached to the managed instance group, the specified
|
27471
|
+
# instances will be verified as healthy after they are started.
|
27472
|
+
# You can specify a maximum of 1000 instances with this method per request.
|
27473
|
+
# @param [String] project
|
27474
|
+
# Project ID for this request.
|
27475
|
+
# @param [String] region
|
27476
|
+
# Name of the region scoping this request.
|
27477
|
+
# @param [String] instance_group_manager
|
27478
|
+
# Name of the managed instance group.
|
27479
|
+
# @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersStartInstancesRequest] region_instance_group_managers_start_instances_request_object
|
27480
|
+
# @param [String] request_id
|
27481
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
27482
|
+
# that if you must retry your request, the server will know to ignore the
|
27483
|
+
# request if it has already been completed.
|
27484
|
+
# For example, consider a situation where you make an initial request and the
|
27485
|
+
# request times out. If you make the request again with the same request ID, the
|
27486
|
+
# server can check if original operation with the same request ID was received,
|
27487
|
+
# and if so, will ignore the second request. This prevents clients from
|
27488
|
+
# accidentally creating duplicate commitments.
|
27489
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
27490
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
27491
|
+
# @param [String] fields
|
27492
|
+
# Selector specifying which fields to include in a partial response.
|
27493
|
+
# @param [String] quota_user
|
27494
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
27495
|
+
# characters.
|
27496
|
+
# @param [String] user_ip
|
27497
|
+
# Deprecated. Please use quotaUser instead.
|
27498
|
+
# @param [Google::Apis::RequestOptions] options
|
27499
|
+
# Request-specific options
|
27500
|
+
#
|
27501
|
+
# @yield [result, err] Result & error if block supplied
|
27502
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
27503
|
+
# @yieldparam err [StandardError] error object if request failed
|
27504
|
+
#
|
27505
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
27506
|
+
#
|
27507
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27508
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27509
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27510
|
+
def start_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_start_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27511
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/startInstances', options)
|
27512
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersStartInstancesRequest::Representation
|
27513
|
+
command.request_object = region_instance_group_managers_start_instances_request_object
|
27514
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
27515
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27516
|
+
command.params['project'] = project unless project.nil?
|
27517
|
+
command.params['region'] = region unless region.nil?
|
27518
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
27519
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
27520
|
+
command.query['fields'] = fields unless fields.nil?
|
27521
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27522
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27523
|
+
execute_or_queue_command(command, &block)
|
27524
|
+
end
|
27525
|
+
|
27526
|
+
# Flags the specified instances in the managed instance group to be immediately
|
27527
|
+
# stopped. You can only specify instances that are running in this request. This
|
27528
|
+
# method reduces the targetSize and increases the targetStoppedSize of the
|
27529
|
+
# managed instance group by the number of instances that you stop. The
|
27530
|
+
# stopInstances operation is marked DONE if the stopInstances request is
|
27531
|
+
# successful. The underlying actions take additional time. You must separately
|
27532
|
+
# verify the status of the STOPPING action with the listmanagedinstances method.
|
27533
|
+
# If the instanceLifecyclePolicy.metadataBasedReadinessSignal field is set on
|
27534
|
+
# the Instance Group Manager, each instance will be initialized before it is
|
27535
|
+
# stopped, to give user programs time to perform necessary tasks. To initialize
|
27536
|
+
# an instance, the Instance Group Manager sets the metadata key google-compute-
|
27537
|
+
# initialization-intent to value INITIALIZE_AND_STOP on the instance, and waits
|
27538
|
+
# for the user program to signal it is ready. This is done by setting the guest
|
27539
|
+
# attribute path google-compute/initialization-state to value INITIALIZED. If
|
27540
|
+
# the instance does not signal successful initialization (does not set the guest
|
27541
|
+
# attribute to INITIALIZED) before timeout, the initialization is considered
|
27542
|
+
# failed and the instance is not stopped.
|
27543
|
+
# If the group is part of a backend service that has enabled connection draining,
|
27544
|
+
# it can take up to 60 seconds after the connection draining duration has
|
27545
|
+
# elapsed before the VM instance is suspended.
|
27546
|
+
# Stopped instances can be started using the startInstances method.
|
27547
|
+
# You can specify a maximum of 1000 instances with this method per request.
|
27548
|
+
# @param [String] project
|
27549
|
+
# Project ID for this request.
|
27550
|
+
# @param [String] region
|
27551
|
+
# Name of the region scoping this request.
|
27552
|
+
# @param [String] instance_group_manager
|
27553
|
+
# The name of the managed instance group.
|
27554
|
+
# @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersStopInstancesRequest] region_instance_group_managers_stop_instances_request_object
|
27555
|
+
# @param [String] request_id
|
27556
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
27557
|
+
# that if you must retry your request, the server will know to ignore the
|
27558
|
+
# request if it has already been completed.
|
27559
|
+
# For example, consider a situation where you make an initial request and the
|
27560
|
+
# request times out. If you make the request again with the same request ID, the
|
27561
|
+
# server can check if original operation with the same request ID was received,
|
27562
|
+
# and if so, will ignore the second request. This prevents clients from
|
27563
|
+
# accidentally creating duplicate commitments.
|
27564
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
27565
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
27566
|
+
# @param [String] fields
|
27567
|
+
# Selector specifying which fields to include in a partial response.
|
27568
|
+
# @param [String] quota_user
|
27569
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
27570
|
+
# characters.
|
27571
|
+
# @param [String] user_ip
|
27572
|
+
# Deprecated. Please use quotaUser instead.
|
27573
|
+
# @param [Google::Apis::RequestOptions] options
|
27574
|
+
# Request-specific options
|
27575
|
+
#
|
27576
|
+
# @yield [result, err] Result & error if block supplied
|
27577
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
27578
|
+
# @yieldparam err [StandardError] error object if request failed
|
27579
|
+
#
|
27580
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
27581
|
+
#
|
27582
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27583
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27584
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27585
|
+
def stop_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_stop_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27586
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/stopInstances', options)
|
27587
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersStopInstancesRequest::Representation
|
27588
|
+
command.request_object = region_instance_group_managers_stop_instances_request_object
|
27589
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
27590
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27591
|
+
command.params['project'] = project unless project.nil?
|
27592
|
+
command.params['region'] = region unless region.nil?
|
27593
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
27594
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
27595
|
+
command.query['fields'] = fields unless fields.nil?
|
27596
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27597
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27598
|
+
execute_or_queue_command(command, &block)
|
27599
|
+
end
|
27600
|
+
|
27601
|
+
# Flags the specified instances in the managed instance group to be immediately
|
27602
|
+
# suspended. You can only specify instances that are running in this request.
|
27603
|
+
# This method reduces the targetSize and increases the targetSuspendedSize of
|
27604
|
+
# the managed instance group by the number of instances that you suspend. The
|
27605
|
+
# suspendInstances operation is marked DONE if the suspendInstances request is
|
27606
|
+
# successful. The underlying actions take additional time. You must separately
|
27607
|
+
# verify the status of the SUSPENDING action with the listmanagedinstances
|
27608
|
+
# method.
|
27609
|
+
# If the instanceLifecyclePolicy.metadataBasedReadinessSignal field is set on
|
27610
|
+
# the Instance Group Manager, each instance will be initialized before it is
|
27611
|
+
# suspended, to give user programs time to perform necessary tasks. To
|
27612
|
+
# initialize an instance, the Instance Group Manager sets the metadata key
|
27613
|
+
# google-compute-initialization-intent to value INITIALIZE_AND_SUSPEND on the
|
27614
|
+
# instance, and waits for the user program to signal it is ready. This is done
|
27615
|
+
# by setting the guest attribute path google-compute/initialization-state to
|
27616
|
+
# value INITIALIZED. If the instance does not signal successful initialization (
|
27617
|
+
# does not set the guest attribute to INITIALIZED) before timeout, the
|
27618
|
+
# initialization is considered failed and the instance is not suspended.
|
27619
|
+
# If the group is part of a backend service that has enabled connection draining,
|
27620
|
+
# it can take up to 60 seconds after the connection draining duration has
|
27621
|
+
# elapsed before the VM instance is suspended.
|
27622
|
+
# Suspended instances can be resumed using the resumeInstances method.
|
27623
|
+
# You can specify a maximum of 1000 instances with this method per request.
|
27624
|
+
# @param [String] project
|
27625
|
+
# Project ID for this request.
|
27626
|
+
# @param [String] region
|
27627
|
+
# Name of the region scoping this request.
|
27628
|
+
# @param [String] instance_group_manager
|
27629
|
+
# Name of the managed instance group.
|
27630
|
+
# @param [Google::Apis::ComputeAlpha::RegionInstanceGroupManagersSuspendInstancesRequest] region_instance_group_managers_suspend_instances_request_object
|
27631
|
+
# @param [String] request_id
|
27632
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
27633
|
+
# that if you must retry your request, the server will know to ignore the
|
27634
|
+
# request if it has already been completed.
|
27635
|
+
# For example, consider a situation where you make an initial request and the
|
27636
|
+
# request times out. If you make the request again with the same request ID, the
|
27637
|
+
# server can check if original operation with the same request ID was received,
|
27638
|
+
# and if so, will ignore the second request. This prevents clients from
|
27639
|
+
# accidentally creating duplicate commitments.
|
27640
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
27641
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
27642
|
+
# @param [String] fields
|
27643
|
+
# Selector specifying which fields to include in a partial response.
|
27644
|
+
# @param [String] quota_user
|
27645
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
27646
|
+
# characters.
|
27647
|
+
# @param [String] user_ip
|
27648
|
+
# Deprecated. Please use quotaUser instead.
|
27649
|
+
# @param [Google::Apis::RequestOptions] options
|
27650
|
+
# Request-specific options
|
27651
|
+
#
|
27652
|
+
# @yield [result, err] Result & error if block supplied
|
27653
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
27654
|
+
# @yieldparam err [StandardError] error object if request failed
|
27655
|
+
#
|
27656
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
27657
|
+
#
|
27658
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27659
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27660
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27661
|
+
def suspend_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_suspend_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27662
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/suspendInstances', options)
|
27663
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupManagersSuspendInstancesRequest::Representation
|
27664
|
+
command.request_object = region_instance_group_managers_suspend_instances_request_object
|
27665
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
27666
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27667
|
+
command.params['project'] = project unless project.nil?
|
27668
|
+
command.params['region'] = region unless region.nil?
|
27669
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
27670
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
27671
|
+
command.query['fields'] = fields unless fields.nil?
|
27672
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27673
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
27674
|
+
execute_or_queue_command(command, &block)
|
27675
|
+
end
|
27676
|
+
|
26307
27677
|
# Returns permissions that a caller has on the specified resource.
|
26308
27678
|
# @param [String] project
|
26309
27679
|
# Project ID for this request.
|
@@ -26869,7 +28239,7 @@ module Google
|
|
26869
28239
|
execute_or_queue_command(command, &block)
|
26870
28240
|
end
|
26871
28241
|
|
26872
|
-
# Export the changed blocks between two instant snapshots to a customer
|
28242
|
+
# Export the changed blocks between two instant snapshots to a customer's bucket
|
26873
28243
|
# in the user specified format.
|
26874
28244
|
# @param [String] project
|
26875
28245
|
# Project ID for this request.
|
@@ -27504,6 +28874,824 @@ module Google
|
|
27504
28874
|
execute_or_queue_command(command, &block)
|
27505
28875
|
end
|
27506
28876
|
|
28877
|
+
# Inserts an association for the specified network firewall policy.
|
28878
|
+
# @param [String] project
|
28879
|
+
# Project ID for this request.
|
28880
|
+
# @param [String] region
|
28881
|
+
# Name of the region scoping this request.
|
28882
|
+
# @param [String] firewall_policy
|
28883
|
+
# Name of the firewall policy to update.
|
28884
|
+
# @param [Google::Apis::ComputeAlpha::FirewallPolicyAssociation] firewall_policy_association_object
|
28885
|
+
# @param [Boolean] replace_existing_association
|
28886
|
+
# Indicates whether or not to replace it if an association already exists. This
|
28887
|
+
# is false by default, in which case an error will be returned if an association
|
28888
|
+
# already exists.
|
28889
|
+
# @param [String] request_id
|
28890
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
28891
|
+
# that if you must retry your request, the server will know to ignore the
|
28892
|
+
# request if it has already been completed.
|
28893
|
+
# For example, consider a situation where you make an initial request and the
|
28894
|
+
# request times out. If you make the request again with the same request ID, the
|
28895
|
+
# server can check if original operation with the same request ID was received,
|
28896
|
+
# and if so, will ignore the second request. This prevents clients from
|
28897
|
+
# accidentally creating duplicate commitments.
|
28898
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
28899
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
28900
|
+
# @param [String] fields
|
28901
|
+
# Selector specifying which fields to include in a partial response.
|
28902
|
+
# @param [String] quota_user
|
28903
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
28904
|
+
# characters.
|
28905
|
+
# @param [String] user_ip
|
28906
|
+
# Deprecated. Please use quotaUser instead.
|
28907
|
+
# @param [Google::Apis::RequestOptions] options
|
28908
|
+
# Request-specific options
|
28909
|
+
#
|
28910
|
+
# @yield [result, err] Result & error if block supplied
|
28911
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
28912
|
+
# @yieldparam err [StandardError] error object if request failed
|
28913
|
+
#
|
28914
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
28915
|
+
#
|
28916
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28917
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28918
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28919
|
+
def add_region_network_firewall_policy_association(project, region, firewall_policy, firewall_policy_association_object = nil, replace_existing_association: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28920
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addAssociation', options)
|
28921
|
+
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyAssociation::Representation
|
28922
|
+
command.request_object = firewall_policy_association_object
|
28923
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
28924
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
28925
|
+
command.params['project'] = project unless project.nil?
|
28926
|
+
command.params['region'] = region unless region.nil?
|
28927
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
28928
|
+
command.query['replaceExistingAssociation'] = replace_existing_association unless replace_existing_association.nil?
|
28929
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
28930
|
+
command.query['fields'] = fields unless fields.nil?
|
28931
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28932
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28933
|
+
execute_or_queue_command(command, &block)
|
28934
|
+
end
|
28935
|
+
|
28936
|
+
# Inserts a rule into a network firewall policy.
|
28937
|
+
# @param [String] project
|
28938
|
+
# Project ID for this request.
|
28939
|
+
# @param [String] region
|
28940
|
+
# Name of the region scoping this request.
|
28941
|
+
# @param [String] firewall_policy
|
28942
|
+
# Name of the firewall policy to update.
|
28943
|
+
# @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
|
28944
|
+
# @param [String] request_id
|
28945
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
28946
|
+
# that if you must retry your request, the server will know to ignore the
|
28947
|
+
# request if it has already been completed.
|
28948
|
+
# For example, consider a situation where you make an initial request and the
|
28949
|
+
# request times out. If you make the request again with the same request ID, the
|
28950
|
+
# server can check if original operation with the same request ID was received,
|
28951
|
+
# and if so, will ignore the second request. This prevents clients from
|
28952
|
+
# accidentally creating duplicate commitments.
|
28953
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
28954
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
28955
|
+
# @param [String] fields
|
28956
|
+
# Selector specifying which fields to include in a partial response.
|
28957
|
+
# @param [String] quota_user
|
28958
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
28959
|
+
# characters.
|
28960
|
+
# @param [String] user_ip
|
28961
|
+
# Deprecated. Please use quotaUser instead.
|
28962
|
+
# @param [Google::Apis::RequestOptions] options
|
28963
|
+
# Request-specific options
|
28964
|
+
#
|
28965
|
+
# @yield [result, err] Result & error if block supplied
|
28966
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
28967
|
+
# @yieldparam err [StandardError] error object if request failed
|
28968
|
+
#
|
28969
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
28970
|
+
#
|
28971
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28972
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28973
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28974
|
+
def add_region_network_firewall_policy_rule(project, region, firewall_policy, firewall_policy_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28975
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addRule', options)
|
28976
|
+
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
|
28977
|
+
command.request_object = firewall_policy_rule_object
|
28978
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
28979
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
28980
|
+
command.params['project'] = project unless project.nil?
|
28981
|
+
command.params['region'] = region unless region.nil?
|
28982
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
28983
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
28984
|
+
command.query['fields'] = fields unless fields.nil?
|
28985
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28986
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28987
|
+
execute_or_queue_command(command, &block)
|
28988
|
+
end
|
28989
|
+
|
28990
|
+
# Copies rules to the specified network firewall policy.
|
28991
|
+
# @param [String] project
|
28992
|
+
# Project ID for this request.
|
28993
|
+
# @param [String] region
|
28994
|
+
# Name of the region scoping this request.
|
28995
|
+
# @param [String] firewall_policy
|
28996
|
+
# Name of the firewall policy to update.
|
28997
|
+
# @param [String] request_id
|
28998
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
28999
|
+
# that if you must retry your request, the server will know to ignore the
|
29000
|
+
# request if it has already been completed.
|
29001
|
+
# For example, consider a situation where you make an initial request and the
|
29002
|
+
# request times out. If you make the request again with the same request ID, the
|
29003
|
+
# server can check if original operation with the same request ID was received,
|
29004
|
+
# and if so, will ignore the second request. This prevents clients from
|
29005
|
+
# accidentally creating duplicate commitments.
|
29006
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
29007
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
29008
|
+
# @param [String] source_firewall_policy
|
29009
|
+
# The firewall policy from which to copy rules.
|
29010
|
+
# @param [String] fields
|
29011
|
+
# Selector specifying which fields to include in a partial response.
|
29012
|
+
# @param [String] quota_user
|
29013
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
29014
|
+
# characters.
|
29015
|
+
# @param [String] user_ip
|
29016
|
+
# Deprecated. Please use quotaUser instead.
|
29017
|
+
# @param [Google::Apis::RequestOptions] options
|
29018
|
+
# Request-specific options
|
29019
|
+
#
|
29020
|
+
# @yield [result, err] Result & error if block supplied
|
29021
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
29022
|
+
# @yieldparam err [StandardError] error object if request failed
|
29023
|
+
#
|
29024
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
29025
|
+
#
|
29026
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29027
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29028
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29029
|
+
def clone_region_network_firewall_policy_rules(project, region, firewall_policy, request_id: nil, source_firewall_policy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29030
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/cloneRules', options)
|
29031
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
29032
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
29033
|
+
command.params['project'] = project unless project.nil?
|
29034
|
+
command.params['region'] = region unless region.nil?
|
29035
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
29036
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
29037
|
+
command.query['sourceFirewallPolicy'] = source_firewall_policy unless source_firewall_policy.nil?
|
29038
|
+
command.query['fields'] = fields unless fields.nil?
|
29039
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29040
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29041
|
+
execute_or_queue_command(command, &block)
|
29042
|
+
end
|
29043
|
+
|
29044
|
+
# Deletes the specified network firewall policy.
|
29045
|
+
# @param [String] project
|
29046
|
+
# Project ID for this request.
|
29047
|
+
# @param [String] region
|
29048
|
+
# Name of the region scoping this request.
|
29049
|
+
# @param [String] firewall_policy
|
29050
|
+
# Name of the firewall policy to delete.
|
29051
|
+
# @param [String] request_id
|
29052
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
29053
|
+
# that if you must retry your request, the server will know to ignore the
|
29054
|
+
# request if it has already been completed.
|
29055
|
+
# For example, consider a situation where you make an initial request and the
|
29056
|
+
# request times out. If you make the request again with the same request ID, the
|
29057
|
+
# server can check if original operation with the same request ID was received,
|
29058
|
+
# and if so, will ignore the second request. This prevents clients from
|
29059
|
+
# accidentally creating duplicate commitments.
|
29060
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
29061
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
29062
|
+
# @param [String] fields
|
29063
|
+
# Selector specifying which fields to include in a partial response.
|
29064
|
+
# @param [String] quota_user
|
29065
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
29066
|
+
# characters.
|
29067
|
+
# @param [String] user_ip
|
29068
|
+
# Deprecated. Please use quotaUser instead.
|
29069
|
+
# @param [Google::Apis::RequestOptions] options
|
29070
|
+
# Request-specific options
|
29071
|
+
#
|
29072
|
+
# @yield [result, err] Result & error if block supplied
|
29073
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
29074
|
+
# @yieldparam err [StandardError] error object if request failed
|
29075
|
+
#
|
29076
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
29077
|
+
#
|
29078
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29079
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29080
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29081
|
+
def delete_region_network_firewall_policy(project, region, firewall_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29082
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}', options)
|
29083
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
29084
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
29085
|
+
command.params['project'] = project unless project.nil?
|
29086
|
+
command.params['region'] = region unless region.nil?
|
29087
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
29088
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
29089
|
+
command.query['fields'] = fields unless fields.nil?
|
29090
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29091
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29092
|
+
execute_or_queue_command(command, &block)
|
29093
|
+
end
|
29094
|
+
|
29095
|
+
# Returns the specified network firewall policy.
|
29096
|
+
# @param [String] project
|
29097
|
+
# Project ID for this request.
|
29098
|
+
# @param [String] region
|
29099
|
+
# Name of the region scoping this request.
|
29100
|
+
# @param [String] firewall_policy
|
29101
|
+
# Name of the firewall policy to get.
|
29102
|
+
# @param [String] fields
|
29103
|
+
# Selector specifying which fields to include in a partial response.
|
29104
|
+
# @param [String] quota_user
|
29105
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
29106
|
+
# characters.
|
29107
|
+
# @param [String] user_ip
|
29108
|
+
# Deprecated. Please use quotaUser instead.
|
29109
|
+
# @param [Google::Apis::RequestOptions] options
|
29110
|
+
# Request-specific options
|
29111
|
+
#
|
29112
|
+
# @yield [result, err] Result & error if block supplied
|
29113
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicy] parsed result object
|
29114
|
+
# @yieldparam err [StandardError] error object if request failed
|
29115
|
+
#
|
29116
|
+
# @return [Google::Apis::ComputeAlpha::FirewallPolicy]
|
29117
|
+
#
|
29118
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29119
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29120
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29121
|
+
def get_region_network_firewall_policy(project, region, firewall_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29122
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}', options)
|
29123
|
+
command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation
|
29124
|
+
command.response_class = Google::Apis::ComputeAlpha::FirewallPolicy
|
29125
|
+
command.params['project'] = project unless project.nil?
|
29126
|
+
command.params['region'] = region unless region.nil?
|
29127
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
29128
|
+
command.query['fields'] = fields unless fields.nil?
|
29129
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29130
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29131
|
+
execute_or_queue_command(command, &block)
|
29132
|
+
end
|
29133
|
+
|
29134
|
+
# Gets an association with the specified name.
|
29135
|
+
# @param [String] project
|
29136
|
+
# Project ID for this request.
|
29137
|
+
# @param [String] region
|
29138
|
+
# Name of the region scoping this request.
|
29139
|
+
# @param [String] firewall_policy
|
29140
|
+
# Name of the firewall policy to which the queried association belongs.
|
29141
|
+
# @param [String] name
|
29142
|
+
# The name of the association to get from the firewall policy.
|
29143
|
+
# @param [String] fields
|
29144
|
+
# Selector specifying which fields to include in a partial response.
|
29145
|
+
# @param [String] quota_user
|
29146
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
29147
|
+
# characters.
|
29148
|
+
# @param [String] user_ip
|
29149
|
+
# Deprecated. Please use quotaUser instead.
|
29150
|
+
# @param [Google::Apis::RequestOptions] options
|
29151
|
+
# Request-specific options
|
29152
|
+
#
|
29153
|
+
# @yield [result, err] Result & error if block supplied
|
29154
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyAssociation] parsed result object
|
29155
|
+
# @yieldparam err [StandardError] error object if request failed
|
29156
|
+
#
|
29157
|
+
# @return [Google::Apis::ComputeAlpha::FirewallPolicyAssociation]
|
29158
|
+
#
|
29159
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29160
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29161
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29162
|
+
def get_region_network_firewall_policy_association(project, region, firewall_policy, name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29163
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getAssociation', options)
|
29164
|
+
command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyAssociation::Representation
|
29165
|
+
command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyAssociation
|
29166
|
+
command.params['project'] = project unless project.nil?
|
29167
|
+
command.params['region'] = region unless region.nil?
|
29168
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
29169
|
+
command.query['name'] = name unless name.nil?
|
29170
|
+
command.query['fields'] = fields unless fields.nil?
|
29171
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29172
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29173
|
+
execute_or_queue_command(command, &block)
|
29174
|
+
end
|
29175
|
+
|
29176
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
29177
|
+
# or resource exists.
|
29178
|
+
# @param [String] project
|
29179
|
+
# Project ID for this request.
|
29180
|
+
# @param [String] region
|
29181
|
+
# The name of the region for this request.
|
29182
|
+
# @param [String] resource
|
29183
|
+
# Name or id of the resource for this request.
|
29184
|
+
# @param [Fixnum] options_requested_policy_version
|
29185
|
+
# Requested IAM Policy version.
|
29186
|
+
# @param [String] fields
|
29187
|
+
# Selector specifying which fields to include in a partial response.
|
29188
|
+
# @param [String] quota_user
|
29189
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
29190
|
+
# characters.
|
29191
|
+
# @param [String] user_ip
|
29192
|
+
# Deprecated. Please use quotaUser instead.
|
29193
|
+
# @param [Google::Apis::RequestOptions] options
|
29194
|
+
# Request-specific options
|
29195
|
+
#
|
29196
|
+
# @yield [result, err] Result & error if block supplied
|
29197
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
29198
|
+
# @yieldparam err [StandardError] error object if request failed
|
29199
|
+
#
|
29200
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
29201
|
+
#
|
29202
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29203
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29204
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29205
|
+
def get_region_network_firewall_policy_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29206
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/firewallPolicies/{resource}/getIamPolicy', options)
|
29207
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
29208
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
29209
|
+
command.params['project'] = project unless project.nil?
|
29210
|
+
command.params['region'] = region unless region.nil?
|
29211
|
+
command.params['resource'] = resource unless resource.nil?
|
29212
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
29213
|
+
command.query['fields'] = fields unless fields.nil?
|
29214
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29215
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29216
|
+
execute_or_queue_command(command, &block)
|
29217
|
+
end
|
29218
|
+
|
29219
|
+
# Gets a rule of the specified priority.
|
29220
|
+
# @param [String] project
|
29221
|
+
# Project ID for this request.
|
29222
|
+
# @param [String] region
|
29223
|
+
# Name of the region scoping this request.
|
29224
|
+
# @param [String] firewall_policy
|
29225
|
+
# Name of the firewall policy to which the queried rule belongs.
|
29226
|
+
# @param [Fixnum] priority
|
29227
|
+
# The priority of the rule to get from the firewall policy.
|
29228
|
+
# @param [String] fields
|
29229
|
+
# Selector specifying which fields to include in a partial response.
|
29230
|
+
# @param [String] quota_user
|
29231
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
29232
|
+
# characters.
|
29233
|
+
# @param [String] user_ip
|
29234
|
+
# Deprecated. Please use quotaUser instead.
|
29235
|
+
# @param [Google::Apis::RequestOptions] options
|
29236
|
+
# Request-specific options
|
29237
|
+
#
|
29238
|
+
# @yield [result, err] Result & error if block supplied
|
29239
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyRule] parsed result object
|
29240
|
+
# @yieldparam err [StandardError] error object if request failed
|
29241
|
+
#
|
29242
|
+
# @return [Google::Apis::ComputeAlpha::FirewallPolicyRule]
|
29243
|
+
#
|
29244
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29245
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29246
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29247
|
+
def get_region_network_firewall_policy_rule(project, region, firewall_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29248
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/getRule', options)
|
29249
|
+
command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
|
29250
|
+
command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyRule
|
29251
|
+
command.params['project'] = project unless project.nil?
|
29252
|
+
command.params['region'] = region unless region.nil?
|
29253
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
29254
|
+
command.query['priority'] = priority unless priority.nil?
|
29255
|
+
command.query['fields'] = fields unless fields.nil?
|
29256
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29257
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29258
|
+
execute_or_queue_command(command, &block)
|
29259
|
+
end
|
29260
|
+
|
29261
|
+
# Creates a new network firewall policy in the specified project and region.
|
29262
|
+
# @param [String] project
|
29263
|
+
# Project ID for this request.
|
29264
|
+
# @param [String] region
|
29265
|
+
# Name of the region scoping this request.
|
29266
|
+
# @param [Google::Apis::ComputeAlpha::FirewallPolicy] firewall_policy_object
|
29267
|
+
# @param [String] request_id
|
29268
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
29269
|
+
# that if you must retry your request, the server will know to ignore the
|
29270
|
+
# request if it has already been completed.
|
29271
|
+
# For example, consider a situation where you make an initial request and the
|
29272
|
+
# request times out. If you make the request again with the same request ID, the
|
29273
|
+
# server can check if original operation with the same request ID was received,
|
29274
|
+
# and if so, will ignore the second request. This prevents clients from
|
29275
|
+
# accidentally creating duplicate commitments.
|
29276
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
29277
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
29278
|
+
# @param [String] fields
|
29279
|
+
# Selector specifying which fields to include in a partial response.
|
29280
|
+
# @param [String] quota_user
|
29281
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
29282
|
+
# characters.
|
29283
|
+
# @param [String] user_ip
|
29284
|
+
# Deprecated. Please use quotaUser instead.
|
29285
|
+
# @param [Google::Apis::RequestOptions] options
|
29286
|
+
# Request-specific options
|
29287
|
+
#
|
29288
|
+
# @yield [result, err] Result & error if block supplied
|
29289
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
29290
|
+
# @yieldparam err [StandardError] error object if request failed
|
29291
|
+
#
|
29292
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
29293
|
+
#
|
29294
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29295
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29296
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29297
|
+
def insert_region_network_firewall_policy(project, region, firewall_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29298
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies', options)
|
29299
|
+
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation
|
29300
|
+
command.request_object = firewall_policy_object
|
29301
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
29302
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
29303
|
+
command.params['project'] = project unless project.nil?
|
29304
|
+
command.params['region'] = region unless region.nil?
|
29305
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
29306
|
+
command.query['fields'] = fields unless fields.nil?
|
29307
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29308
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29309
|
+
execute_or_queue_command(command, &block)
|
29310
|
+
end
|
29311
|
+
|
29312
|
+
# Lists all the network firewall policies that have been configured for the
|
29313
|
+
# specified project in the given region.
|
29314
|
+
# @param [String] project
|
29315
|
+
# Project ID for this request.
|
29316
|
+
# @param [String] region
|
29317
|
+
# Name of the region scoping this request.
|
29318
|
+
# @param [String] filter
|
29319
|
+
# A filter expression that filters resources listed in the response. The
|
29320
|
+
# expression must specify the field name, a comparison operator, and the value
|
29321
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
29322
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
29323
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
29324
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
29325
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
29326
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
29327
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
29328
|
+
# on resource labels.
|
29329
|
+
# To filter on multiple expressions, provide each separate expression within
|
29330
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
29331
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
29332
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
29333
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
29334
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
29335
|
+
# @param [Fixnum] max_results
|
29336
|
+
# The maximum number of results per page that should be returned. If the number
|
29337
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
29338
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
29339
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
29340
|
+
# @param [String] order_by
|
29341
|
+
# Sorts list results by a certain order. By default, results are returned in
|
29342
|
+
# alphanumerical order based on the resource name.
|
29343
|
+
# You can also sort results in descending order based on the creation timestamp
|
29344
|
+
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
29345
|
+
# creationTimestamp` field in reverse chronological order (newest result first).
|
29346
|
+
# Use this to sort resources like operations so that the newest operation is
|
29347
|
+
# returned first.
|
29348
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
29349
|
+
# @param [String] page_token
|
29350
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
29351
|
+
# by a previous list request to get the next page of results.
|
29352
|
+
# @param [Boolean] return_partial_success
|
29353
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
29354
|
+
# failure. The default value is false.
|
29355
|
+
# @param [String] fields
|
29356
|
+
# Selector specifying which fields to include in a partial response.
|
29357
|
+
# @param [String] quota_user
|
29358
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
29359
|
+
# characters.
|
29360
|
+
# @param [String] user_ip
|
29361
|
+
# Deprecated. Please use quotaUser instead.
|
29362
|
+
# @param [Google::Apis::RequestOptions] options
|
29363
|
+
# Request-specific options
|
29364
|
+
#
|
29365
|
+
# @yield [result, err] Result & error if block supplied
|
29366
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyList] parsed result object
|
29367
|
+
# @yieldparam err [StandardError] error object if request failed
|
29368
|
+
#
|
29369
|
+
# @return [Google::Apis::ComputeAlpha::FirewallPolicyList]
|
29370
|
+
#
|
29371
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29372
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29373
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29374
|
+
def list_region_network_firewall_policies(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)
|
29375
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/firewallPolicies', options)
|
29376
|
+
command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyList::Representation
|
29377
|
+
command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyList
|
29378
|
+
command.params['project'] = project unless project.nil?
|
29379
|
+
command.params['region'] = region unless region.nil?
|
29380
|
+
command.query['filter'] = filter unless filter.nil?
|
29381
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
29382
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
29383
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
29384
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
29385
|
+
command.query['fields'] = fields unless fields.nil?
|
29386
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29387
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29388
|
+
execute_or_queue_command(command, &block)
|
29389
|
+
end
|
29390
|
+
|
29391
|
+
# Patches the specified network firewall policy.
|
29392
|
+
# @param [String] project
|
29393
|
+
# Project ID for this request.
|
29394
|
+
# @param [String] region
|
29395
|
+
# Name of the region scoping this request.
|
29396
|
+
# @param [String] firewall_policy
|
29397
|
+
# Name of the firewall policy to update.
|
29398
|
+
# @param [Google::Apis::ComputeAlpha::FirewallPolicy] firewall_policy_object
|
29399
|
+
# @param [String] request_id
|
29400
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
29401
|
+
# that if you must retry your request, the server will know to ignore the
|
29402
|
+
# request if it has already been completed.
|
29403
|
+
# For example, consider a situation where you make an initial request and the
|
29404
|
+
# request times out. If you make the request again with the same request ID, the
|
29405
|
+
# server can check if original operation with the same request ID was received,
|
29406
|
+
# and if so, will ignore the second request. This prevents clients from
|
29407
|
+
# accidentally creating duplicate commitments.
|
29408
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
29409
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
29410
|
+
# @param [String] fields
|
29411
|
+
# Selector specifying which fields to include in a partial response.
|
29412
|
+
# @param [String] quota_user
|
29413
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
29414
|
+
# characters.
|
29415
|
+
# @param [String] user_ip
|
29416
|
+
# Deprecated. Please use quotaUser instead.
|
29417
|
+
# @param [Google::Apis::RequestOptions] options
|
29418
|
+
# Request-specific options
|
29419
|
+
#
|
29420
|
+
# @yield [result, err] Result & error if block supplied
|
29421
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
29422
|
+
# @yieldparam err [StandardError] error object if request failed
|
29423
|
+
#
|
29424
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
29425
|
+
#
|
29426
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29427
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29428
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29429
|
+
def patch_region_network_firewall_policy(project, region, firewall_policy, firewall_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29430
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}', options)
|
29431
|
+
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation
|
29432
|
+
command.request_object = firewall_policy_object
|
29433
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
29434
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
29435
|
+
command.params['project'] = project unless project.nil?
|
29436
|
+
command.params['region'] = region unless region.nil?
|
29437
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
29438
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
29439
|
+
command.query['fields'] = fields unless fields.nil?
|
29440
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29441
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29442
|
+
execute_or_queue_command(command, &block)
|
29443
|
+
end
|
29444
|
+
|
29445
|
+
# Patches a rule of the specified priority.
|
29446
|
+
# @param [String] project
|
29447
|
+
# Project ID for this request.
|
29448
|
+
# @param [String] region
|
29449
|
+
# Name of the region scoping this request.
|
29450
|
+
# @param [String] firewall_policy
|
29451
|
+
# Name of the firewall policy to update.
|
29452
|
+
# @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
|
29453
|
+
# @param [Fixnum] priority
|
29454
|
+
# The priority of the rule to patch.
|
29455
|
+
# @param [String] request_id
|
29456
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
29457
|
+
# that if you must retry your request, the server will know to ignore the
|
29458
|
+
# request if it has already been completed.
|
29459
|
+
# For example, consider a situation where you make an initial request and the
|
29460
|
+
# request times out. If you make the request again with the same request ID, the
|
29461
|
+
# server can check if original operation with the same request ID was received,
|
29462
|
+
# and if so, will ignore the second request. This prevents clients from
|
29463
|
+
# accidentally creating duplicate commitments.
|
29464
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
29465
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
29466
|
+
# @param [String] fields
|
29467
|
+
# Selector specifying which fields to include in a partial response.
|
29468
|
+
# @param [String] quota_user
|
29469
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
29470
|
+
# characters.
|
29471
|
+
# @param [String] user_ip
|
29472
|
+
# Deprecated. Please use quotaUser instead.
|
29473
|
+
# @param [Google::Apis::RequestOptions] options
|
29474
|
+
# Request-specific options
|
29475
|
+
#
|
29476
|
+
# @yield [result, err] Result & error if block supplied
|
29477
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
29478
|
+
# @yieldparam err [StandardError] error object if request failed
|
29479
|
+
#
|
29480
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
29481
|
+
#
|
29482
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29483
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29484
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29485
|
+
def patch_region_network_firewall_policy_rule(project, region, firewall_policy, firewall_policy_rule_object = nil, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29486
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule', options)
|
29487
|
+
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
|
29488
|
+
command.request_object = firewall_policy_rule_object
|
29489
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
29490
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
29491
|
+
command.params['project'] = project unless project.nil?
|
29492
|
+
command.params['region'] = region unless region.nil?
|
29493
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
29494
|
+
command.query['priority'] = priority unless priority.nil?
|
29495
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
29496
|
+
command.query['fields'] = fields unless fields.nil?
|
29497
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29498
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29499
|
+
execute_or_queue_command(command, &block)
|
29500
|
+
end
|
29501
|
+
|
29502
|
+
# Removes an association for the specified network firewall policy.
|
29503
|
+
# @param [String] project
|
29504
|
+
# Project ID for this request.
|
29505
|
+
# @param [String] region
|
29506
|
+
# Name of the region scoping this request.
|
29507
|
+
# @param [String] firewall_policy
|
29508
|
+
# Name of the firewall policy to update.
|
29509
|
+
# @param [String] name
|
29510
|
+
# Name for the association that will be removed.
|
29511
|
+
# @param [String] request_id
|
29512
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
29513
|
+
# that if you must retry your request, the server will know to ignore the
|
29514
|
+
# request if it has already been completed.
|
29515
|
+
# For example, consider a situation where you make an initial request and the
|
29516
|
+
# request times out. If you make the request again with the same request ID, the
|
29517
|
+
# server can check if original operation with the same request ID was received,
|
29518
|
+
# and if so, will ignore the second request. This prevents clients from
|
29519
|
+
# accidentally creating duplicate commitments.
|
29520
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
29521
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
29522
|
+
# @param [String] fields
|
29523
|
+
# Selector specifying which fields to include in a partial response.
|
29524
|
+
# @param [String] quota_user
|
29525
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
29526
|
+
# characters.
|
29527
|
+
# @param [String] user_ip
|
29528
|
+
# Deprecated. Please use quotaUser instead.
|
29529
|
+
# @param [Google::Apis::RequestOptions] options
|
29530
|
+
# Request-specific options
|
29531
|
+
#
|
29532
|
+
# @yield [result, err] Result & error if block supplied
|
29533
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
29534
|
+
# @yieldparam err [StandardError] error object if request failed
|
29535
|
+
#
|
29536
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
29537
|
+
#
|
29538
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29539
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29540
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29541
|
+
def remove_region_network_firewall_policy_association(project, region, firewall_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29542
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation', options)
|
29543
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
29544
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
29545
|
+
command.params['project'] = project unless project.nil?
|
29546
|
+
command.params['region'] = region unless region.nil?
|
29547
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
29548
|
+
command.query['name'] = name unless name.nil?
|
29549
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
29550
|
+
command.query['fields'] = fields unless fields.nil?
|
29551
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29552
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29553
|
+
execute_or_queue_command(command, &block)
|
29554
|
+
end
|
29555
|
+
|
29556
|
+
# Deletes a rule of the specified priority.
|
29557
|
+
# @param [String] project
|
29558
|
+
# Project ID for this request.
|
29559
|
+
# @param [String] region
|
29560
|
+
# Name of the region scoping this request.
|
29561
|
+
# @param [String] firewall_policy
|
29562
|
+
# Name of the firewall policy to update.
|
29563
|
+
# @param [Fixnum] priority
|
29564
|
+
# The priority of the rule to remove from the firewall policy.
|
29565
|
+
# @param [String] request_id
|
29566
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
29567
|
+
# that if you must retry your request, the server will know to ignore the
|
29568
|
+
# request if it has already been completed.
|
29569
|
+
# For example, consider a situation where you make an initial request and the
|
29570
|
+
# request times out. If you make the request again with the same request ID, the
|
29571
|
+
# server can check if original operation with the same request ID was received,
|
29572
|
+
# and if so, will ignore the second request. This prevents clients from
|
29573
|
+
# accidentally creating duplicate commitments.
|
29574
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
29575
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
29576
|
+
# @param [String] fields
|
29577
|
+
# Selector specifying which fields to include in a partial response.
|
29578
|
+
# @param [String] quota_user
|
29579
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
29580
|
+
# characters.
|
29581
|
+
# @param [String] user_ip
|
29582
|
+
# Deprecated. Please use quotaUser instead.
|
29583
|
+
# @param [Google::Apis::RequestOptions] options
|
29584
|
+
# Request-specific options
|
29585
|
+
#
|
29586
|
+
# @yield [result, err] Result & error if block supplied
|
29587
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
29588
|
+
# @yieldparam err [StandardError] error object if request failed
|
29589
|
+
#
|
29590
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
29591
|
+
#
|
29592
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29593
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29594
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29595
|
+
def remove_region_network_firewall_policy_rule(project, region, firewall_policy, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29596
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeRule', options)
|
29597
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
29598
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
29599
|
+
command.params['project'] = project unless project.nil?
|
29600
|
+
command.params['region'] = region unless region.nil?
|
29601
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
29602
|
+
command.query['priority'] = priority unless priority.nil?
|
29603
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
29604
|
+
command.query['fields'] = fields unless fields.nil?
|
29605
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29606
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29607
|
+
execute_or_queue_command(command, &block)
|
29608
|
+
end
|
29609
|
+
|
29610
|
+
# Sets the access control policy on the specified resource. Replaces any
|
29611
|
+
# existing policy.
|
29612
|
+
# @param [String] project
|
29613
|
+
# Project ID for this request.
|
29614
|
+
# @param [String] region
|
29615
|
+
# The name of the region for this request.
|
29616
|
+
# @param [String] resource
|
29617
|
+
# Name or id of the resource for this request.
|
29618
|
+
# @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
|
29619
|
+
# @param [String] fields
|
29620
|
+
# Selector specifying which fields to include in a partial response.
|
29621
|
+
# @param [String] quota_user
|
29622
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
29623
|
+
# characters.
|
29624
|
+
# @param [String] user_ip
|
29625
|
+
# Deprecated. Please use quotaUser instead.
|
29626
|
+
# @param [Google::Apis::RequestOptions] options
|
29627
|
+
# Request-specific options
|
29628
|
+
#
|
29629
|
+
# @yield [result, err] Result & error if block supplied
|
29630
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
29631
|
+
# @yieldparam err [StandardError] error object if request failed
|
29632
|
+
#
|
29633
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
29634
|
+
#
|
29635
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29636
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29637
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29638
|
+
def set_region_network_firewall_policy_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29639
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{resource}/setIamPolicy', options)
|
29640
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
|
29641
|
+
command.request_object = region_set_policy_request_object
|
29642
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
29643
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
29644
|
+
command.params['project'] = project unless project.nil?
|
29645
|
+
command.params['region'] = region unless region.nil?
|
29646
|
+
command.params['resource'] = resource unless resource.nil?
|
29647
|
+
command.query['fields'] = fields unless fields.nil?
|
29648
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29649
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29650
|
+
execute_or_queue_command(command, &block)
|
29651
|
+
end
|
29652
|
+
|
29653
|
+
# Returns permissions that a caller has on the specified resource.
|
29654
|
+
# @param [String] project
|
29655
|
+
# Project ID for this request.
|
29656
|
+
# @param [String] region
|
29657
|
+
# The name of the region for this request.
|
29658
|
+
# @param [String] resource
|
29659
|
+
# Name or id of the resource for this request.
|
29660
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
29661
|
+
# @param [String] fields
|
29662
|
+
# Selector specifying which fields to include in a partial response.
|
29663
|
+
# @param [String] quota_user
|
29664
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
29665
|
+
# characters.
|
29666
|
+
# @param [String] user_ip
|
29667
|
+
# Deprecated. Please use quotaUser instead.
|
29668
|
+
# @param [Google::Apis::RequestOptions] options
|
29669
|
+
# Request-specific options
|
29670
|
+
#
|
29671
|
+
# @yield [result, err] Result & error if block supplied
|
29672
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
29673
|
+
# @yieldparam err [StandardError] error object if request failed
|
29674
|
+
#
|
29675
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
29676
|
+
#
|
29677
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29678
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29679
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29680
|
+
def test_region_network_firewall_policy_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
29681
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{resource}/testIamPermissions', options)
|
29682
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
29683
|
+
command.request_object = test_permissions_request_object
|
29684
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
29685
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
29686
|
+
command.params['project'] = project unless project.nil?
|
29687
|
+
command.params['region'] = region unless region.nil?
|
29688
|
+
command.params['resource'] = resource unless resource.nil?
|
29689
|
+
command.query['fields'] = fields unless fields.nil?
|
29690
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29691
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29692
|
+
execute_or_queue_command(command, &block)
|
29693
|
+
end
|
29694
|
+
|
27507
29695
|
# Retrieves the list of all NotificationEndpoint resources, regional and global,
|
27508
29696
|
# available to the specified project.
|
27509
29697
|
# @param [String] project
|
@@ -27783,18 +29971,214 @@ module Google
|
|
27783
29971
|
# Request-specific options
|
27784
29972
|
#
|
27785
29973
|
# @yield [result, err] Result & error if block supplied
|
27786
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::NotificationEndpointList] parsed result object
|
29974
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::NotificationEndpointList] parsed result object
|
29975
|
+
# @yieldparam err [StandardError] error object if request failed
|
29976
|
+
#
|
29977
|
+
# @return [Google::Apis::ComputeAlpha::NotificationEndpointList]
|
29978
|
+
#
|
29979
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29980
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29981
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29982
|
+
def list_region_notification_endpoints(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)
|
29983
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/notificationEndpoints', options)
|
29984
|
+
command.response_representation = Google::Apis::ComputeAlpha::NotificationEndpointList::Representation
|
29985
|
+
command.response_class = Google::Apis::ComputeAlpha::NotificationEndpointList
|
29986
|
+
command.params['project'] = project unless project.nil?
|
29987
|
+
command.params['region'] = region unless region.nil?
|
29988
|
+
command.query['filter'] = filter unless filter.nil?
|
29989
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
29990
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
29991
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
29992
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
29993
|
+
command.query['fields'] = fields unless fields.nil?
|
29994
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29995
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
29996
|
+
execute_or_queue_command(command, &block)
|
29997
|
+
end
|
29998
|
+
|
29999
|
+
# Returns permissions that a caller has on the specified resource.
|
30000
|
+
# @param [String] project
|
30001
|
+
# Project ID for this request.
|
30002
|
+
# @param [String] region
|
30003
|
+
# The name of the region for this request.
|
30004
|
+
# @param [String] resource
|
30005
|
+
# Name or id of the resource for this request.
|
30006
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
30007
|
+
# @param [String] fields
|
30008
|
+
# Selector specifying which fields to include in a partial response.
|
30009
|
+
# @param [String] quota_user
|
30010
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
30011
|
+
# characters.
|
30012
|
+
# @param [String] user_ip
|
30013
|
+
# Deprecated. Please use quotaUser instead.
|
30014
|
+
# @param [Google::Apis::RequestOptions] options
|
30015
|
+
# Request-specific options
|
30016
|
+
#
|
30017
|
+
# @yield [result, err] Result & error if block supplied
|
30018
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
30019
|
+
# @yieldparam err [StandardError] error object if request failed
|
30020
|
+
#
|
30021
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
30022
|
+
#
|
30023
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30024
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30025
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30026
|
+
def test_region_notification_endpoint_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30027
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions', options)
|
30028
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
30029
|
+
command.request_object = test_permissions_request_object
|
30030
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
30031
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
30032
|
+
command.params['project'] = project unless project.nil?
|
30033
|
+
command.params['region'] = region unless region.nil?
|
30034
|
+
command.params['resource'] = resource unless resource.nil?
|
30035
|
+
command.query['fields'] = fields unless fields.nil?
|
30036
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30037
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30038
|
+
execute_or_queue_command(command, &block)
|
30039
|
+
end
|
30040
|
+
|
30041
|
+
# Deletes the specified region-specific Operations resource.
|
30042
|
+
# @param [String] project
|
30043
|
+
# Project ID for this request.
|
30044
|
+
# @param [String] region
|
30045
|
+
# Name of the region for this request.
|
30046
|
+
# @param [String] operation
|
30047
|
+
# Name of the Operations resource to delete.
|
30048
|
+
# @param [String] fields
|
30049
|
+
# Selector specifying which fields to include in a partial response.
|
30050
|
+
# @param [String] quota_user
|
30051
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
30052
|
+
# characters.
|
30053
|
+
# @param [String] user_ip
|
30054
|
+
# Deprecated. Please use quotaUser instead.
|
30055
|
+
# @param [Google::Apis::RequestOptions] options
|
30056
|
+
# Request-specific options
|
30057
|
+
#
|
30058
|
+
# @yield [result, err] Result & error if block supplied
|
30059
|
+
# @yieldparam result [NilClass] No result returned for this method
|
30060
|
+
# @yieldparam err [StandardError] error object if request failed
|
30061
|
+
#
|
30062
|
+
# @return [void]
|
30063
|
+
#
|
30064
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30065
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30066
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30067
|
+
def delete_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30068
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/operations/{operation}', options)
|
30069
|
+
command.params['project'] = project unless project.nil?
|
30070
|
+
command.params['region'] = region unless region.nil?
|
30071
|
+
command.params['operation'] = operation unless operation.nil?
|
30072
|
+
command.query['fields'] = fields unless fields.nil?
|
30073
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30074
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30075
|
+
execute_or_queue_command(command, &block)
|
30076
|
+
end
|
30077
|
+
|
30078
|
+
# Retrieves the specified region-specific Operations resource.
|
30079
|
+
# @param [String] project
|
30080
|
+
# Project ID for this request.
|
30081
|
+
# @param [String] region
|
30082
|
+
# Name of the region for this request.
|
30083
|
+
# @param [String] operation
|
30084
|
+
# Name of the Operations resource to return.
|
30085
|
+
# @param [String] fields
|
30086
|
+
# Selector specifying which fields to include in a partial response.
|
30087
|
+
# @param [String] quota_user
|
30088
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
30089
|
+
# characters.
|
30090
|
+
# @param [String] user_ip
|
30091
|
+
# Deprecated. Please use quotaUser instead.
|
30092
|
+
# @param [Google::Apis::RequestOptions] options
|
30093
|
+
# Request-specific options
|
30094
|
+
#
|
30095
|
+
# @yield [result, err] Result & error if block supplied
|
30096
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
30097
|
+
# @yieldparam err [StandardError] error object if request failed
|
30098
|
+
#
|
30099
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
30100
|
+
#
|
30101
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30102
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30103
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30104
|
+
def get_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30105
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/operations/{operation}', options)
|
30106
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
30107
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
30108
|
+
command.params['project'] = project unless project.nil?
|
30109
|
+
command.params['region'] = region unless region.nil?
|
30110
|
+
command.params['operation'] = operation unless operation.nil?
|
30111
|
+
command.query['fields'] = fields unless fields.nil?
|
30112
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30113
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30114
|
+
execute_or_queue_command(command, &block)
|
30115
|
+
end
|
30116
|
+
|
30117
|
+
# Retrieves a list of Operation resources contained within the specified region.
|
30118
|
+
# @param [String] project
|
30119
|
+
# Project ID for this request.
|
30120
|
+
# @param [String] region
|
30121
|
+
# Name of the region for this request.
|
30122
|
+
# @param [String] filter
|
30123
|
+
# A filter expression that filters resources listed in the response. The
|
30124
|
+
# expression must specify the field name, a comparison operator, and the value
|
30125
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
30126
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
30127
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
30128
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
30129
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
30130
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
30131
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
30132
|
+
# on resource labels.
|
30133
|
+
# To filter on multiple expressions, provide each separate expression within
|
30134
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
30135
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
30136
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
30137
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
30138
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
30139
|
+
# @param [Fixnum] max_results
|
30140
|
+
# The maximum number of results per page that should be returned. If the number
|
30141
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
30142
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
30143
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
30144
|
+
# @param [String] order_by
|
30145
|
+
# Sorts list results by a certain order. By default, results are returned in
|
30146
|
+
# alphanumerical order based on the resource name.
|
30147
|
+
# You can also sort results in descending order based on the creation timestamp
|
30148
|
+
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
30149
|
+
# creationTimestamp` field in reverse chronological order (newest result first).
|
30150
|
+
# Use this to sort resources like operations so that the newest operation is
|
30151
|
+
# returned first.
|
30152
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
30153
|
+
# @param [String] page_token
|
30154
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
30155
|
+
# by a previous list request to get the next page of results.
|
30156
|
+
# @param [Boolean] return_partial_success
|
30157
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
30158
|
+
# failure. The default value is false.
|
30159
|
+
# @param [String] fields
|
30160
|
+
# Selector specifying which fields to include in a partial response.
|
30161
|
+
# @param [String] quota_user
|
30162
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
30163
|
+
# characters.
|
30164
|
+
# @param [String] user_ip
|
30165
|
+
# Deprecated. Please use quotaUser instead.
|
30166
|
+
# @param [Google::Apis::RequestOptions] options
|
30167
|
+
# Request-specific options
|
30168
|
+
#
|
30169
|
+
# @yield [result, err] Result & error if block supplied
|
30170
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::OperationList] parsed result object
|
27787
30171
|
# @yieldparam err [StandardError] error object if request failed
|
27788
30172
|
#
|
27789
|
-
# @return [Google::Apis::ComputeAlpha::
|
30173
|
+
# @return [Google::Apis::ComputeAlpha::OperationList]
|
27790
30174
|
#
|
27791
30175
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27792
30176
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27793
30177
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27794
|
-
def
|
27795
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/
|
27796
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
27797
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
30178
|
+
def list_region_operations(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)
|
30179
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/operations', options)
|
30180
|
+
command.response_representation = Google::Apis::ComputeAlpha::OperationList::Representation
|
30181
|
+
command.response_class = Google::Apis::ComputeAlpha::OperationList
|
27798
30182
|
command.params['project'] = project unless project.nil?
|
27799
30183
|
command.params['region'] = region unless region.nil?
|
27800
30184
|
command.query['filter'] = filter unless filter.nil?
|
@@ -27808,14 +30192,23 @@ module Google
|
|
27808
30192
|
execute_or_queue_command(command, &block)
|
27809
30193
|
end
|
27810
30194
|
|
27811
|
-
#
|
30195
|
+
# Waits for the specified Operation resource to return as `DONE` or for the
|
30196
|
+
# request to approach the 2 minute deadline, and retrieves the specified
|
30197
|
+
# Operation resource. This method differs from the `GET` method in that it waits
|
30198
|
+
# for no more than the default deadline (2 minutes) and then returns the current
|
30199
|
+
# state of the operation, which might be `DONE` or still in progress.
|
30200
|
+
# This method is called on a best-effort basis. Specifically:
|
30201
|
+
# - In uncommon cases, when the server is overloaded, the request might return
|
30202
|
+
# before the default deadline is reached, or might return after zero seconds.
|
30203
|
+
# - If the default deadline is reached, there is no guarantee that the operation
|
30204
|
+
# is actually done when the method returns. Be prepared to retry if the
|
30205
|
+
# operation is not `DONE`.
|
27812
30206
|
# @param [String] project
|
27813
30207
|
# Project ID for this request.
|
27814
30208
|
# @param [String] region
|
27815
|
-
#
|
27816
|
-
# @param [String]
|
27817
|
-
# Name
|
27818
|
-
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
30209
|
+
# Name of the region for this request.
|
30210
|
+
# @param [String] operation
|
30211
|
+
# Name of the Operations resource to return.
|
27819
30212
|
# @param [String] fields
|
27820
30213
|
# Selector specifying which fields to include in a partial response.
|
27821
30214
|
# @param [String] quota_user
|
@@ -27827,36 +30220,45 @@ module Google
|
|
27827
30220
|
# Request-specific options
|
27828
30221
|
#
|
27829
30222
|
# @yield [result, err] Result & error if block supplied
|
27830
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
30223
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
27831
30224
|
# @yieldparam err [StandardError] error object if request failed
|
27832
30225
|
#
|
27833
|
-
# @return [Google::Apis::ComputeAlpha::
|
30226
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
27834
30227
|
#
|
27835
30228
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27836
30229
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27837
30230
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27838
|
-
def
|
27839
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/
|
27840
|
-
command.
|
27841
|
-
command.
|
27842
|
-
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
27843
|
-
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
30231
|
+
def wait_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30232
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/operations/{operation}/wait', options)
|
30233
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
30234
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27844
30235
|
command.params['project'] = project unless project.nil?
|
27845
30236
|
command.params['region'] = region unless region.nil?
|
27846
|
-
command.params['
|
30237
|
+
command.params['operation'] = operation unless operation.nil?
|
27847
30238
|
command.query['fields'] = fields unless fields.nil?
|
27848
30239
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27849
30240
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
27850
30241
|
execute_or_queue_command(command, &block)
|
27851
30242
|
end
|
27852
30243
|
|
27853
|
-
# Deletes the specified
|
30244
|
+
# Deletes the specified policy.
|
27854
30245
|
# @param [String] project
|
27855
30246
|
# Project ID for this request.
|
27856
30247
|
# @param [String] region
|
27857
|
-
# Name of the region
|
27858
|
-
# @param [String]
|
27859
|
-
# Name of the
|
30248
|
+
# Name of the region scoping this request.
|
30249
|
+
# @param [String] security_policy
|
30250
|
+
# Name of the security policy to delete.
|
30251
|
+
# @param [String] request_id
|
30252
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
30253
|
+
# that if you must retry your request, the server will know to ignore the
|
30254
|
+
# request if it has already been completed.
|
30255
|
+
# For example, consider a situation where you make an initial request and the
|
30256
|
+
# request times out. If you make the request again with the same request ID, the
|
30257
|
+
# server can check if original operation with the same request ID was received,
|
30258
|
+
# and if so, will ignore the second request. This prevents clients from
|
30259
|
+
# accidentally creating duplicate commitments.
|
30260
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
30261
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
27860
30262
|
# @param [String] fields
|
27861
30263
|
# Selector specifying which fields to include in a partial response.
|
27862
30264
|
# @param [String] quota_user
|
@@ -27868,32 +30270,87 @@ module Google
|
|
27868
30270
|
# Request-specific options
|
27869
30271
|
#
|
27870
30272
|
# @yield [result, err] Result & error if block supplied
|
27871
|
-
# @yieldparam result [
|
30273
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
27872
30274
|
# @yieldparam err [StandardError] error object if request failed
|
27873
30275
|
#
|
27874
|
-
# @return [
|
30276
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
27875
30277
|
#
|
27876
30278
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27877
30279
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27878
30280
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27879
|
-
def
|
27880
|
-
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/
|
30281
|
+
def delete_region_security_policy(project, region, security_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30282
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
|
30283
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
30284
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27881
30285
|
command.params['project'] = project unless project.nil?
|
27882
30286
|
command.params['region'] = region unless region.nil?
|
27883
|
-
command.params['
|
30287
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
30288
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
27884
30289
|
command.query['fields'] = fields unless fields.nil?
|
27885
30290
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27886
30291
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
27887
30292
|
execute_or_queue_command(command, &block)
|
27888
30293
|
end
|
27889
30294
|
|
27890
|
-
#
|
30295
|
+
# List all of the ordered rules present in a single specified policy.
|
27891
30296
|
# @param [String] project
|
27892
30297
|
# Project ID for this request.
|
27893
30298
|
# @param [String] region
|
27894
|
-
# Name of the region
|
27895
|
-
# @param [String]
|
27896
|
-
# Name of the
|
30299
|
+
# Name of the region scoping this request.
|
30300
|
+
# @param [String] security_policy
|
30301
|
+
# Name of the security policy to get.
|
30302
|
+
# @param [String] fields
|
30303
|
+
# Selector specifying which fields to include in a partial response.
|
30304
|
+
# @param [String] quota_user
|
30305
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
30306
|
+
# characters.
|
30307
|
+
# @param [String] user_ip
|
30308
|
+
# Deprecated. Please use quotaUser instead.
|
30309
|
+
# @param [Google::Apis::RequestOptions] options
|
30310
|
+
# Request-specific options
|
30311
|
+
#
|
30312
|
+
# @yield [result, err] Result & error if block supplied
|
30313
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::SecurityPolicy] parsed result object
|
30314
|
+
# @yieldparam err [StandardError] error object if request failed
|
30315
|
+
#
|
30316
|
+
# @return [Google::Apis::ComputeAlpha::SecurityPolicy]
|
30317
|
+
#
|
30318
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30319
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30320
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30321
|
+
def get_region_security_policy(project, region, security_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30322
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
|
30323
|
+
command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
|
30324
|
+
command.response_class = Google::Apis::ComputeAlpha::SecurityPolicy
|
30325
|
+
command.params['project'] = project unless project.nil?
|
30326
|
+
command.params['region'] = region unless region.nil?
|
30327
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
30328
|
+
command.query['fields'] = fields unless fields.nil?
|
30329
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30330
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30331
|
+
execute_or_queue_command(command, &block)
|
30332
|
+
end
|
30333
|
+
|
30334
|
+
# Creates a new policy in the specified project using the data included in the
|
30335
|
+
# request.
|
30336
|
+
# @param [String] project
|
30337
|
+
# Project ID for this request.
|
30338
|
+
# @param [String] region
|
30339
|
+
# Name of the region scoping this request.
|
30340
|
+
# @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
|
30341
|
+
# @param [String] request_id
|
30342
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
30343
|
+
# that if you must retry your request, the server will know to ignore the
|
30344
|
+
# request if it has already been completed.
|
30345
|
+
# For example, consider a situation where you make an initial request and the
|
30346
|
+
# request times out. If you make the request again with the same request ID, the
|
30347
|
+
# server can check if original operation with the same request ID was received,
|
30348
|
+
# and if so, will ignore the second request. This prevents clients from
|
30349
|
+
# accidentally creating duplicate commitments.
|
30350
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
30351
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
30352
|
+
# @param [Boolean] validate_only
|
30353
|
+
# If true, the request will not be committed.
|
27897
30354
|
# @param [String] fields
|
27898
30355
|
# Selector specifying which fields to include in a partial response.
|
27899
30356
|
# @param [String] quota_user
|
@@ -27913,24 +30370,28 @@ module Google
|
|
27913
30370
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27914
30371
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27915
30372
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27916
|
-
def
|
27917
|
-
command = make_simple_command(:
|
30373
|
+
def insert_region_security_policy(project, region, security_policy_object = nil, request_id: nil, validate_only: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30374
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies', options)
|
30375
|
+
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
|
30376
|
+
command.request_object = security_policy_object
|
27918
30377
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
27919
30378
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27920
30379
|
command.params['project'] = project unless project.nil?
|
27921
30380
|
command.params['region'] = region unless region.nil?
|
27922
|
-
command.
|
30381
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
30382
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
27923
30383
|
command.query['fields'] = fields unless fields.nil?
|
27924
30384
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27925
30385
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
27926
30386
|
execute_or_queue_command(command, &block)
|
27927
30387
|
end
|
27928
30388
|
|
27929
|
-
#
|
30389
|
+
# List all the policies that have been configured for the specified project and
|
30390
|
+
# region.
|
27930
30391
|
# @param [String] project
|
27931
30392
|
# Project ID for this request.
|
27932
30393
|
# @param [String] region
|
27933
|
-
# Name of the region
|
30394
|
+
# Name of the region scoping this request.
|
27934
30395
|
# @param [String] filter
|
27935
30396
|
# A filter expression that filters resources listed in the response. The
|
27936
30397
|
# expression must specify the field name, a comparison operator, and the value
|
@@ -27979,18 +30440,18 @@ module Google
|
|
27979
30440
|
# Request-specific options
|
27980
30441
|
#
|
27981
30442
|
# @yield [result, err] Result & error if block supplied
|
27982
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
30443
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::SecurityPolicyList] parsed result object
|
27983
30444
|
# @yieldparam err [StandardError] error object if request failed
|
27984
30445
|
#
|
27985
|
-
# @return [Google::Apis::ComputeAlpha::
|
30446
|
+
# @return [Google::Apis::ComputeAlpha::SecurityPolicyList]
|
27986
30447
|
#
|
27987
30448
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27988
30449
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27989
30450
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27990
|
-
def
|
27991
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/
|
27992
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
27993
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
30451
|
+
def list_region_security_policies(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)
|
30452
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/securityPolicies', options)
|
30453
|
+
command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicyList::Representation
|
30454
|
+
command.response_class = Google::Apis::ComputeAlpha::SecurityPolicyList
|
27994
30455
|
command.params['project'] = project unless project.nil?
|
27995
30456
|
command.params['region'] = region unless region.nil?
|
27996
30457
|
command.query['filter'] = filter unless filter.nil?
|
@@ -28004,23 +30465,25 @@ module Google
|
|
28004
30465
|
execute_or_queue_command(command, &block)
|
28005
30466
|
end
|
28006
30467
|
|
28007
|
-
#
|
28008
|
-
# request to approach the 2 minute deadline, and retrieves the specified
|
28009
|
-
# Operation resource. This method differs from the `GET` method in that it waits
|
28010
|
-
# for no more than the default deadline (2 minutes) and then returns the current
|
28011
|
-
# state of the operation, which might be `DONE` or still in progress.
|
28012
|
-
# This method is called on a best-effort basis. Specifically:
|
28013
|
-
# - In uncommon cases, when the server is overloaded, the request might return
|
28014
|
-
# before the default deadline is reached, or might return after zero seconds.
|
28015
|
-
# - If the default deadline is reached, there is no guarantee that the operation
|
28016
|
-
# is actually done when the method returns. Be prepared to retry if the
|
28017
|
-
# operation is not `DONE`.
|
30468
|
+
# Patches the specified policy with the data included in the request.
|
28018
30469
|
# @param [String] project
|
28019
30470
|
# Project ID for this request.
|
28020
30471
|
# @param [String] region
|
28021
|
-
# Name of the region
|
28022
|
-
# @param [String]
|
28023
|
-
# Name of the
|
30472
|
+
# Name of the region scoping this request.
|
30473
|
+
# @param [String] security_policy
|
30474
|
+
# Name of the security policy to update.
|
30475
|
+
# @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
|
30476
|
+
# @param [String] request_id
|
30477
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
30478
|
+
# that if you must retry your request, the server will know to ignore the
|
30479
|
+
# request if it has already been completed.
|
30480
|
+
# For example, consider a situation where you make an initial request and the
|
30481
|
+
# request times out. If you make the request again with the same request ID, the
|
30482
|
+
# server can check if original operation with the same request ID was received,
|
30483
|
+
# and if so, will ignore the second request. This prevents clients from
|
30484
|
+
# accidentally creating duplicate commitments.
|
30485
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
30486
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
28024
30487
|
# @param [String] fields
|
28025
30488
|
# Selector specifying which fields to include in a partial response.
|
28026
30489
|
# @param [String] quota_user
|
@@ -28040,13 +30503,16 @@ module Google
|
|
28040
30503
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28041
30504
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28042
30505
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28043
|
-
def
|
28044
|
-
command = make_simple_command(:
|
30506
|
+
def patch_region_security_policy(project, region, security_policy, security_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30507
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
|
30508
|
+
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
|
30509
|
+
command.request_object = security_policy_object
|
28045
30510
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
28046
30511
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
28047
30512
|
command.params['project'] = project unless project.nil?
|
28048
30513
|
command.params['region'] = region unless region.nil?
|
28049
|
-
command.params['
|
30514
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
30515
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
28050
30516
|
command.query['fields'] = fields unless fields.nil?
|
28051
30517
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28052
30518
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -31384,6 +33850,90 @@ module Google
|
|
31384
33850
|
execute_or_queue_command(command, &block)
|
31385
33851
|
end
|
31386
33852
|
|
33853
|
+
# Retrieves the list of all SecurityPolicy resources, regional and global,
|
33854
|
+
# available to the specified project.
|
33855
|
+
# @param [String] project
|
33856
|
+
# Name of the project scoping this request.
|
33857
|
+
# @param [String] filter
|
33858
|
+
# A filter expression that filters resources listed in the response. The
|
33859
|
+
# expression must specify the field name, a comparison operator, and the value
|
33860
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
33861
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
33862
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
33863
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
33864
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
33865
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
33866
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
33867
|
+
# on resource labels.
|
33868
|
+
# To filter on multiple expressions, provide each separate expression within
|
33869
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
33870
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
33871
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
33872
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
33873
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
33874
|
+
# @param [Boolean] include_all_scopes
|
33875
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
33876
|
+
# global) should be included in the response. For new resource types added after
|
33877
|
+
# this field, the flag has no effect as new resource types will always include
|
33878
|
+
# every visible scope for each scope type in response. For resource types which
|
33879
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
33880
|
+
# types where the resource type is expected to be found will be included.
|
33881
|
+
# @param [Fixnum] max_results
|
33882
|
+
# The maximum number of results per page that should be returned. If the number
|
33883
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
33884
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
33885
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
33886
|
+
# @param [String] order_by
|
33887
|
+
# Sorts list results by a certain order. By default, results are returned in
|
33888
|
+
# alphanumerical order based on the resource name.
|
33889
|
+
# You can also sort results in descending order based on the creation timestamp
|
33890
|
+
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
33891
|
+
# creationTimestamp` field in reverse chronological order (newest result first).
|
33892
|
+
# Use this to sort resources like operations so that the newest operation is
|
33893
|
+
# returned first.
|
33894
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
33895
|
+
# @param [String] page_token
|
33896
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
33897
|
+
# by a previous list request to get the next page of results.
|
33898
|
+
# @param [Boolean] return_partial_success
|
33899
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
33900
|
+
# failure. The default value is false.
|
33901
|
+
# @param [String] fields
|
33902
|
+
# Selector specifying which fields to include in a partial response.
|
33903
|
+
# @param [String] quota_user
|
33904
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
33905
|
+
# characters.
|
33906
|
+
# @param [String] user_ip
|
33907
|
+
# Deprecated. Please use quotaUser instead.
|
33908
|
+
# @param [Google::Apis::RequestOptions] options
|
33909
|
+
# Request-specific options
|
33910
|
+
#
|
33911
|
+
# @yield [result, err] Result & error if block supplied
|
33912
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::SecurityPoliciesAggregatedList] parsed result object
|
33913
|
+
# @yieldparam err [StandardError] error object if request failed
|
33914
|
+
#
|
33915
|
+
# @return [Google::Apis::ComputeAlpha::SecurityPoliciesAggregatedList]
|
33916
|
+
#
|
33917
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33918
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33919
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33920
|
+
def aggregated_security_policy_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)
|
33921
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/securityPolicies', options)
|
33922
|
+
command.response_representation = Google::Apis::ComputeAlpha::SecurityPoliciesAggregatedList::Representation
|
33923
|
+
command.response_class = Google::Apis::ComputeAlpha::SecurityPoliciesAggregatedList
|
33924
|
+
command.params['project'] = project unless project.nil?
|
33925
|
+
command.query['filter'] = filter unless filter.nil?
|
33926
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
33927
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
33928
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
33929
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
33930
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
33931
|
+
command.query['fields'] = fields unless fields.nil?
|
33932
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33933
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33934
|
+
execute_or_queue_command(command, &block)
|
33935
|
+
end
|
33936
|
+
|
31387
33937
|
# Deletes the specified policy.
|
31388
33938
|
# @param [String] project
|
31389
33939
|
# Project ID for this request.
|
@@ -32273,6 +34823,63 @@ module Google
|
|
32273
34823
|
execute_or_queue_command(command, &block)
|
32274
34824
|
end
|
32275
34825
|
|
34826
|
+
# Patches the specified ServiceAttachment resource with the data included in the
|
34827
|
+
# request. This method supports PATCH semantics and uses JSON merge patch format
|
34828
|
+
# and processing rules.
|
34829
|
+
# @param [String] project
|
34830
|
+
# Project ID for this request.
|
34831
|
+
# @param [String] region
|
34832
|
+
# The region scoping this request and should conform to RFC1035.
|
34833
|
+
# @param [String] service_attachment
|
34834
|
+
# The resource id of the ServiceAttachment to patch. It should conform to
|
34835
|
+
# RFC1035 resource name or be a string form on an unsigned long number.
|
34836
|
+
# @param [Google::Apis::ComputeAlpha::ServiceAttachment] service_attachment_object
|
34837
|
+
# @param [String] request_id
|
34838
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
34839
|
+
# that if you must retry your request, the server will know to ignore the
|
34840
|
+
# request if it has already been completed.
|
34841
|
+
# For example, consider a situation where you make an initial request and the
|
34842
|
+
# request times out. If you make the request again with the same request ID, the
|
34843
|
+
# server can check if original operation with the same request ID was received,
|
34844
|
+
# and if so, will ignore the second request. This prevents clients from
|
34845
|
+
# accidentally creating duplicate commitments.
|
34846
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
34847
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
34848
|
+
# @param [String] fields
|
34849
|
+
# Selector specifying which fields to include in a partial response.
|
34850
|
+
# @param [String] quota_user
|
34851
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
34852
|
+
# characters.
|
34853
|
+
# @param [String] user_ip
|
34854
|
+
# Deprecated. Please use quotaUser instead.
|
34855
|
+
# @param [Google::Apis::RequestOptions] options
|
34856
|
+
# Request-specific options
|
34857
|
+
#
|
34858
|
+
# @yield [result, err] Result & error if block supplied
|
34859
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
34860
|
+
# @yieldparam err [StandardError] error object if request failed
|
34861
|
+
#
|
34862
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
34863
|
+
#
|
34864
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34865
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34866
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34867
|
+
def patch_service_attachment(project, region, service_attachment, service_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
34868
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}', options)
|
34869
|
+
command.request_representation = Google::Apis::ComputeAlpha::ServiceAttachment::Representation
|
34870
|
+
command.request_object = service_attachment_object
|
34871
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
34872
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
34873
|
+
command.params['project'] = project unless project.nil?
|
34874
|
+
command.params['region'] = region unless region.nil?
|
34875
|
+
command.params['serviceAttachment'] = service_attachment unless service_attachment.nil?
|
34876
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
34877
|
+
command.query['fields'] = fields unless fields.nil?
|
34878
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34879
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34880
|
+
execute_or_queue_command(command, &block)
|
34881
|
+
end
|
34882
|
+
|
32276
34883
|
# Sets the access control policy on the specified resource. Replaces any
|
32277
34884
|
# existing policy.
|
32278
34885
|
# @param [String] project
|
@@ -39615,7 +42222,7 @@ module Google
|
|
39615
42222
|
execute_or_queue_command(command, &block)
|
39616
42223
|
end
|
39617
42224
|
|
39618
|
-
# Export the changed blocks between two instant snapshots to a customer
|
42225
|
+
# Export the changed blocks between two instant snapshots to a customer's bucket
|
39619
42226
|
# in the user specified format.
|
39620
42227
|
# @param [String] project
|
39621
42228
|
# Project ID for this request.
|