google-apis-compute_alpha 0.9.0 → 0.14.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/lib/google/apis/compute_alpha/classes.rb +1634 -143
- data/lib/google/apis/compute_alpha/gem_version.rb +3 -3
- data/lib/google/apis/compute_alpha/representations.rb +584 -16
- data/lib/google/apis/compute_alpha/service.rb +1830 -437
- metadata +13 -7
@@ -2015,6 +2015,46 @@ module Google
|
|
2015
2015
|
execute_or_queue_command(command, &block)
|
2016
2016
|
end
|
2017
2017
|
|
2018
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
2019
|
+
# or resource exists.
|
2020
|
+
# @param [String] project
|
2021
|
+
# Project ID for this request.
|
2022
|
+
# @param [String] resource
|
2023
|
+
# Name or id of the resource for this request.
|
2024
|
+
# @param [Fixnum] options_requested_policy_version
|
2025
|
+
# Requested IAM Policy version.
|
2026
|
+
# @param [String] fields
|
2027
|
+
# Selector specifying which fields to include in a partial response.
|
2028
|
+
# @param [String] quota_user
|
2029
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
2030
|
+
# characters.
|
2031
|
+
# @param [String] user_ip
|
2032
|
+
# Deprecated. Please use quotaUser instead.
|
2033
|
+
# @param [Google::Apis::RequestOptions] options
|
2034
|
+
# Request-specific options
|
2035
|
+
#
|
2036
|
+
# @yield [result, err] Result & error if block supplied
|
2037
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
2038
|
+
# @yieldparam err [StandardError] error object if request failed
|
2039
|
+
#
|
2040
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
2041
|
+
#
|
2042
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2043
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2044
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2045
|
+
def get_backend_service_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2046
|
+
command = make_simple_command(:get, 'projects/{project}/global/backendServices/{resource}/getIamPolicy', options)
|
2047
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
2048
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
2049
|
+
command.params['project'] = project unless project.nil?
|
2050
|
+
command.params['resource'] = resource unless resource.nil?
|
2051
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
2052
|
+
command.query['fields'] = fields unless fields.nil?
|
2053
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2054
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
2055
|
+
execute_or_queue_command(command, &block)
|
2056
|
+
end
|
2057
|
+
|
2018
2058
|
# Creates a BackendService resource in the specified project using the data
|
2019
2059
|
# included in the request. For more information, see Backend services overview.
|
2020
2060
|
# @param [String] project
|
@@ -2246,6 +2286,46 @@ module Google
|
|
2246
2286
|
execute_or_queue_command(command, &block)
|
2247
2287
|
end
|
2248
2288
|
|
2289
|
+
# Sets the access control policy on the specified resource. Replaces any
|
2290
|
+
# existing policy.
|
2291
|
+
# @param [String] project
|
2292
|
+
# Project ID for this request.
|
2293
|
+
# @param [String] resource
|
2294
|
+
# Name or id of the resource for this request.
|
2295
|
+
# @param [Google::Apis::ComputeAlpha::GlobalSetPolicyRequest] global_set_policy_request_object
|
2296
|
+
# @param [String] fields
|
2297
|
+
# Selector specifying which fields to include in a partial response.
|
2298
|
+
# @param [String] quota_user
|
2299
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
2300
|
+
# characters.
|
2301
|
+
# @param [String] user_ip
|
2302
|
+
# Deprecated. Please use quotaUser instead.
|
2303
|
+
# @param [Google::Apis::RequestOptions] options
|
2304
|
+
# Request-specific options
|
2305
|
+
#
|
2306
|
+
# @yield [result, err] Result & error if block supplied
|
2307
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
2308
|
+
# @yieldparam err [StandardError] error object if request failed
|
2309
|
+
#
|
2310
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
2311
|
+
#
|
2312
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
2313
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
2314
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
2315
|
+
def set_backend_service_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
2316
|
+
command = make_simple_command(:post, 'projects/{project}/global/backendServices/{resource}/setIamPolicy', options)
|
2317
|
+
command.request_representation = Google::Apis::ComputeAlpha::GlobalSetPolicyRequest::Representation
|
2318
|
+
command.request_object = global_set_policy_request_object
|
2319
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
2320
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
2321
|
+
command.params['project'] = project unless project.nil?
|
2322
|
+
command.params['resource'] = resource unless resource.nil?
|
2323
|
+
command.query['fields'] = fields unless fields.nil?
|
2324
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
2325
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
2326
|
+
execute_or_queue_command(command, &block)
|
2327
|
+
end
|
2328
|
+
|
2249
2329
|
# Sets the Google Cloud Armor security policy for the specified backend service.
|
2250
2330
|
# For more information, see Google Cloud Armor Overview
|
2251
2331
|
# @param [String] project
|
@@ -4043,7 +4123,8 @@ module Google
|
|
4043
4123
|
execute_or_queue_command(command, &block)
|
4044
4124
|
end
|
4045
4125
|
|
4046
|
-
# Lists all the policies that have been configured for the specified
|
4126
|
+
# Lists all the policies that have been configured for the specified folder or
|
4127
|
+
# organization.
|
4047
4128
|
# @param [String] filter
|
4048
4129
|
# A filter expression that filters resources listed in the response. The
|
4049
4130
|
# expression must specify the field name, a comparison operator, and the value
|
@@ -5332,11 +5413,96 @@ module Google
|
|
5332
5413
|
execute_or_queue_command(command, &block)
|
5333
5414
|
end
|
5334
5415
|
|
5335
|
-
#
|
5416
|
+
# Retrieves an aggregated list of future reservations.
|
5336
5417
|
# @param [String] project
|
5337
5418
|
# Project ID for this request.
|
5338
|
-
# @param [String]
|
5339
|
-
#
|
5419
|
+
# @param [String] filter
|
5420
|
+
# A filter expression that filters resources listed in the response. The
|
5421
|
+
# expression must specify the field name, a comparison operator, and the value
|
5422
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
5423
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
5424
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
5425
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
5426
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
5427
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
5428
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
5429
|
+
# on resource labels.
|
5430
|
+
# To filter on multiple expressions, provide each separate expression within
|
5431
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
5432
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
5433
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
5434
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
5435
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
5436
|
+
# @param [Boolean] include_all_scopes
|
5437
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
5438
|
+
# global) should be included in the response. For new resource types added after
|
5439
|
+
# this field, the flag has no effect as new resource types will always include
|
5440
|
+
# every visible scope for each scope type in response. For resource types which
|
5441
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
5442
|
+
# types where the resource type is expected to be found will be included.
|
5443
|
+
# @param [Fixnum] max_results
|
5444
|
+
# The maximum number of results per page that should be returned. If the number
|
5445
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
5446
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
5447
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
5448
|
+
# @param [String] order_by
|
5449
|
+
# Sorts list results by a certain order. By default, results are returned in
|
5450
|
+
# alphanumerical order based on the resource name.
|
5451
|
+
# You can also sort results in descending order based on the creation timestamp
|
5452
|
+
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
5453
|
+
# creationTimestamp` field in reverse chronological order (newest result first).
|
5454
|
+
# Use this to sort resources like operations so that the newest operation is
|
5455
|
+
# returned first.
|
5456
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
5457
|
+
# @param [String] page_token
|
5458
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
5459
|
+
# by a previous list request to get the next page of results.
|
5460
|
+
# @param [Boolean] return_partial_success
|
5461
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
5462
|
+
# failure. The default value is false.
|
5463
|
+
# @param [String] fields
|
5464
|
+
# Selector specifying which fields to include in a partial response.
|
5465
|
+
# @param [String] quota_user
|
5466
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
5467
|
+
# characters.
|
5468
|
+
# @param [String] user_ip
|
5469
|
+
# Deprecated. Please use quotaUser instead.
|
5470
|
+
# @param [Google::Apis::RequestOptions] options
|
5471
|
+
# Request-specific options
|
5472
|
+
#
|
5473
|
+
# @yield [result, err] Result & error if block supplied
|
5474
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::FutureReservationsAggregatedListResponse] parsed result object
|
5475
|
+
# @yieldparam err [StandardError] error object if request failed
|
5476
|
+
#
|
5477
|
+
# @return [Google::Apis::ComputeAlpha::FutureReservationsAggregatedListResponse]
|
5478
|
+
#
|
5479
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5480
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5481
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5482
|
+
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)
|
5483
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/futureReservations', options)
|
5484
|
+
command.response_representation = Google::Apis::ComputeAlpha::FutureReservationsAggregatedListResponse::Representation
|
5485
|
+
command.response_class = Google::Apis::ComputeAlpha::FutureReservationsAggregatedListResponse
|
5486
|
+
command.params['project'] = project unless project.nil?
|
5487
|
+
command.query['filter'] = filter unless filter.nil?
|
5488
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
5489
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
5490
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
5491
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
5492
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
5493
|
+
command.query['fields'] = fields unless fields.nil?
|
5494
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5495
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5496
|
+
execute_or_queue_command(command, &block)
|
5497
|
+
end
|
5498
|
+
|
5499
|
+
# Cancel the specified future reservation.
|
5500
|
+
# @param [String] project
|
5501
|
+
# Project ID for this request.
|
5502
|
+
# @param [String] zone
|
5503
|
+
# Name of the zone for this request. Name should conform to RFC1035.
|
5504
|
+
# @param [String] future_reservation
|
5505
|
+
# Name of the future reservation to retrieve. Name should conform to RFC1035.
|
5340
5506
|
# @param [String] request_id
|
5341
5507
|
# An optional request ID to identify requests. Specify a unique request ID so
|
5342
5508
|
# that if you must retry your request, the server will know to ignore the
|
@@ -5367,12 +5533,13 @@ module Google
|
|
5367
5533
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5368
5534
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5369
5535
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5370
|
-
def
|
5371
|
-
command = make_simple_command(:
|
5536
|
+
def cancel_future_reservation(project, zone, future_reservation, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5537
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/futureReservations/{futureReservation}/cancel', options)
|
5372
5538
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
5373
5539
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
5374
5540
|
command.params['project'] = project unless project.nil?
|
5375
|
-
command.params['
|
5541
|
+
command.params['zone'] = zone unless zone.nil?
|
5542
|
+
command.params['futureReservation'] = future_reservation unless future_reservation.nil?
|
5376
5543
|
command.query['requestId'] = request_id unless request_id.nil?
|
5377
5544
|
command.query['fields'] = fields unless fields.nil?
|
5378
5545
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -5380,12 +5547,24 @@ module Google
|
|
5380
5547
|
execute_or_queue_command(command, &block)
|
5381
5548
|
end
|
5382
5549
|
|
5383
|
-
#
|
5384
|
-
# making a list() request.
|
5550
|
+
# Deletes the specified future reservation.
|
5385
5551
|
# @param [String] project
|
5386
5552
|
# Project ID for this request.
|
5387
|
-
# @param [String]
|
5388
|
-
# Name of the
|
5553
|
+
# @param [String] zone
|
5554
|
+
# Name of the zone for this request. Name should conform to RFC1035.
|
5555
|
+
# @param [String] future_reservation
|
5556
|
+
# Name of the future reservation to retrieve. Name should conform to RFC1035.
|
5557
|
+
# @param [String] request_id
|
5558
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
5559
|
+
# that if you must retry your request, the server will know to ignore the
|
5560
|
+
# request if it has already been completed.
|
5561
|
+
# For example, consider a situation where you make an initial request and the
|
5562
|
+
# request times out. If you make the request again with the same request ID, the
|
5563
|
+
# server can check if original operation with the same request ID was received,
|
5564
|
+
# and if so, will ignore the second request. This prevents clients from
|
5565
|
+
# accidentally creating duplicate commitments.
|
5566
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
5567
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
5389
5568
|
# @param [String] fields
|
5390
5569
|
# Selector specifying which fields to include in a partial response.
|
5391
5570
|
# @param [String] quota_user
|
@@ -5397,32 +5576,35 @@ module Google
|
|
5397
5576
|
# Request-specific options
|
5398
5577
|
#
|
5399
5578
|
# @yield [result, err] Result & error if block supplied
|
5400
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
5579
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
5401
5580
|
# @yieldparam err [StandardError] error object if request failed
|
5402
5581
|
#
|
5403
|
-
# @return [Google::Apis::ComputeAlpha::
|
5582
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
5404
5583
|
#
|
5405
5584
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5406
5585
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5407
5586
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5408
|
-
def
|
5409
|
-
command = make_simple_command(:
|
5410
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
5411
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
5587
|
+
def delete_future_reservation(project, zone, future_reservation, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5588
|
+
command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/futureReservations/{futureReservation}', options)
|
5589
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
5590
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
5412
5591
|
command.params['project'] = project unless project.nil?
|
5413
|
-
command.params['
|
5592
|
+
command.params['zone'] = zone unless zone.nil?
|
5593
|
+
command.params['futureReservation'] = future_reservation unless future_reservation.nil?
|
5594
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
5414
5595
|
command.query['fields'] = fields unless fields.nil?
|
5415
5596
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5416
5597
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
5417
5598
|
execute_or_queue_command(command, &block)
|
5418
5599
|
end
|
5419
5600
|
|
5420
|
-
#
|
5601
|
+
# Retrieves information about the specified future reservation.
|
5421
5602
|
# @param [String] project
|
5422
5603
|
# Project ID for this request.
|
5423
|
-
# @param [String]
|
5424
|
-
#
|
5425
|
-
#
|
5604
|
+
# @param [String] zone
|
5605
|
+
# Name of the zone for this request. Name should conform to RFC1035.
|
5606
|
+
# @param [String] future_reservation
|
5607
|
+
# Name of the future reservation to retrieve. Name should conform to RFC1035.
|
5426
5608
|
# @param [String] fields
|
5427
5609
|
# Selector specifying which fields to include in a partial response.
|
5428
5610
|
# @param [String] quota_user
|
@@ -5434,31 +5616,33 @@ module Google
|
|
5434
5616
|
# Request-specific options
|
5435
5617
|
#
|
5436
5618
|
# @yield [result, err] Result & error if block supplied
|
5437
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
5619
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::FutureReservation] parsed result object
|
5438
5620
|
# @yieldparam err [StandardError] error object if request failed
|
5439
5621
|
#
|
5440
|
-
# @return [Google::Apis::ComputeAlpha::
|
5622
|
+
# @return [Google::Apis::ComputeAlpha::FutureReservation]
|
5441
5623
|
#
|
5442
5624
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5443
5625
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5444
5626
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5445
|
-
def
|
5446
|
-
command = make_simple_command(:get, 'projects/{project}/
|
5447
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
5448
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
5627
|
+
def get_future_reservation(project, zone, future_reservation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5628
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/futureReservations/{futureReservation}', options)
|
5629
|
+
command.response_representation = Google::Apis::ComputeAlpha::FutureReservation::Representation
|
5630
|
+
command.response_class = Google::Apis::ComputeAlpha::FutureReservation
|
5449
5631
|
command.params['project'] = project unless project.nil?
|
5450
|
-
command.
|
5632
|
+
command.params['zone'] = zone unless zone.nil?
|
5633
|
+
command.params['futureReservation'] = future_reservation unless future_reservation.nil?
|
5451
5634
|
command.query['fields'] = fields unless fields.nil?
|
5452
5635
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5453
5636
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
5454
5637
|
execute_or_queue_command(command, &block)
|
5455
5638
|
end
|
5456
5639
|
|
5457
|
-
# Creates
|
5458
|
-
# included in the request.
|
5640
|
+
# Creates a new Future Reservation.
|
5459
5641
|
# @param [String] project
|
5460
5642
|
# Project ID for this request.
|
5461
|
-
# @param [
|
5643
|
+
# @param [String] zone
|
5644
|
+
# Name of the zone for this request. Name should conform to RFC1035.
|
5645
|
+
# @param [Google::Apis::ComputeAlpha::FutureReservation] future_reservation_object
|
5462
5646
|
# @param [String] request_id
|
5463
5647
|
# An optional request ID to identify requests. Specify a unique request ID so
|
5464
5648
|
# that if you must retry your request, the server will know to ignore the
|
@@ -5489,13 +5673,14 @@ module Google
|
|
5489
5673
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5490
5674
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5491
5675
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5492
|
-
def
|
5493
|
-
command = make_simple_command(:post, 'projects/{project}/
|
5494
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
5495
|
-
command.request_object =
|
5676
|
+
def insert_future_reservation(project, zone, future_reservation_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5677
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/futureReservations', options)
|
5678
|
+
command.request_representation = Google::Apis::ComputeAlpha::FutureReservation::Representation
|
5679
|
+
command.request_object = future_reservation_object
|
5496
5680
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
5497
5681
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
5498
5682
|
command.params['project'] = project unless project.nil?
|
5683
|
+
command.params['zone'] = zone unless zone.nil?
|
5499
5684
|
command.query['requestId'] = request_id unless request_id.nil?
|
5500
5685
|
command.query['fields'] = fields unless fields.nil?
|
5501
5686
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -5503,9 +5688,12 @@ module Google
|
|
5503
5688
|
execute_or_queue_command(command, &block)
|
5504
5689
|
end
|
5505
5690
|
|
5506
|
-
#
|
5691
|
+
# A list of all the future reservations that have been configured for the
|
5692
|
+
# specified project in specified zone.
|
5507
5693
|
# @param [String] project
|
5508
5694
|
# Project ID for this request.
|
5695
|
+
# @param [String] zone
|
5696
|
+
# Name of the zone for this request. Name should conform to RFC1035.
|
5509
5697
|
# @param [String] filter
|
5510
5698
|
# A filter expression that filters resources listed in the response. The
|
5511
5699
|
# expression must specify the field name, a comparison operator, and the value
|
@@ -5554,19 +5742,20 @@ module Google
|
|
5554
5742
|
# Request-specific options
|
5555
5743
|
#
|
5556
5744
|
# @yield [result, err] Result & error if block supplied
|
5557
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
5745
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::FutureReservationsListResponse] parsed result object
|
5558
5746
|
# @yieldparam err [StandardError] error object if request failed
|
5559
5747
|
#
|
5560
|
-
# @return [Google::Apis::ComputeAlpha::
|
5748
|
+
# @return [Google::Apis::ComputeAlpha::FutureReservationsListResponse]
|
5561
5749
|
#
|
5562
5750
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5563
5751
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5564
5752
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5565
|
-
def
|
5566
|
-
command = make_simple_command(:get, 'projects/{project}/
|
5567
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
5568
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
5753
|
+
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)
|
5754
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/futureReservations', options)
|
5755
|
+
command.response_representation = Google::Apis::ComputeAlpha::FutureReservationsListResponse::Representation
|
5756
|
+
command.response_class = Google::Apis::ComputeAlpha::FutureReservationsListResponse
|
5569
5757
|
command.params['project'] = project unless project.nil?
|
5758
|
+
command.params['zone'] = zone unless zone.nil?
|
5570
5759
|
command.query['filter'] = filter unless filter.nil?
|
5571
5760
|
command.query['maxResults'] = max_results unless max_results.nil?
|
5572
5761
|
command.query['orderBy'] = order_by unless order_by.nil?
|
@@ -5578,13 +5767,27 @@ module Google
|
|
5578
5767
|
execute_or_queue_command(command, &block)
|
5579
5768
|
end
|
5580
5769
|
|
5581
|
-
#
|
5582
|
-
# Labeling Resources documentation.
|
5770
|
+
# Updates the specified future reservation.
|
5583
5771
|
# @param [String] project
|
5584
5772
|
# Project ID for this request.
|
5585
|
-
# @param [String]
|
5586
|
-
# Name
|
5587
|
-
# @param [
|
5773
|
+
# @param [String] zone
|
5774
|
+
# Name of the zone for this request. Name should conform to RFC1035.
|
5775
|
+
# @param [String] future_reservation
|
5776
|
+
# Name of the reservation to update. Name should conform to RFC1035.
|
5777
|
+
# @param [Google::Apis::ComputeAlpha::FutureReservation] future_reservation_object
|
5778
|
+
# @param [Array<String>, String] paths
|
5779
|
+
# The set of field mask paths.
|
5780
|
+
# @param [String] request_id
|
5781
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
5782
|
+
# that if you must retry your request, the server will know to ignore the
|
5783
|
+
# request if it has already been completed.
|
5784
|
+
# For example, consider a situation where you make an initial request and the
|
5785
|
+
# request times out. If you make the request again with the same request ID, the
|
5786
|
+
# server can check if original operation with the same request ID was received,
|
5787
|
+
# and if so, will ignore the second request. This prevents clients from
|
5788
|
+
# accidentally creating duplicate commitments.
|
5789
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
5790
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
5588
5791
|
# @param [String] fields
|
5589
5792
|
# Selector specifying which fields to include in a partial response.
|
5590
5793
|
# @param [String] quota_user
|
@@ -5604,28 +5807,41 @@ module Google
|
|
5604
5807
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5605
5808
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5606
5809
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5607
|
-
def
|
5608
|
-
command = make_simple_command(:
|
5609
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
5610
|
-
command.request_object =
|
5810
|
+
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)
|
5811
|
+
command = make_simple_command(:patch, 'projects/{project}/zones/{zone}/futureReservations/{futureReservation}', options)
|
5812
|
+
command.request_representation = Google::Apis::ComputeAlpha::FutureReservation::Representation
|
5813
|
+
command.request_object = future_reservation_object
|
5611
5814
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
5612
5815
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
5613
5816
|
command.params['project'] = project unless project.nil?
|
5614
|
-
command.params['
|
5817
|
+
command.params['zone'] = zone unless zone.nil?
|
5818
|
+
command.params['futureReservation'] = future_reservation unless future_reservation.nil?
|
5819
|
+
command.query['paths'] = paths unless paths.nil?
|
5820
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
5615
5821
|
command.query['fields'] = fields unless fields.nil?
|
5616
5822
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5617
5823
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
5618
5824
|
execute_or_queue_command(command, &block)
|
5619
5825
|
end
|
5620
5826
|
|
5621
|
-
#
|
5827
|
+
# Deletes the specified address resource.
|
5622
5828
|
# @param [String] project
|
5623
5829
|
# Project ID for this request.
|
5624
|
-
# @param [String]
|
5625
|
-
# Name
|
5626
|
-
# @param [
|
5627
|
-
#
|
5628
|
-
#
|
5830
|
+
# @param [String] address
|
5831
|
+
# Name of the address resource to delete.
|
5832
|
+
# @param [String] request_id
|
5833
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
5834
|
+
# that if you must retry your request, the server will know to ignore the
|
5835
|
+
# request if it has already been completed.
|
5836
|
+
# For example, consider a situation where you make an initial request and the
|
5837
|
+
# request times out. If you make the request again with the same request ID, the
|
5838
|
+
# server can check if original operation with the same request ID was received,
|
5839
|
+
# and if so, will ignore the second request. This prevents clients from
|
5840
|
+
# accidentally creating duplicate commitments.
|
5841
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
5842
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
5843
|
+
# @param [String] fields
|
5844
|
+
# Selector specifying which fields to include in a partial response.
|
5629
5845
|
# @param [String] quota_user
|
5630
5846
|
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
5631
5847
|
# characters.
|
@@ -5635,44 +5851,33 @@ module Google
|
|
5635
5851
|
# Request-specific options
|
5636
5852
|
#
|
5637
5853
|
# @yield [result, err] Result & error if block supplied
|
5638
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
5854
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
5639
5855
|
# @yieldparam err [StandardError] error object if request failed
|
5640
5856
|
#
|
5641
|
-
# @return [Google::Apis::ComputeAlpha::
|
5857
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
5642
5858
|
#
|
5643
5859
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5644
5860
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5645
5861
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5646
|
-
def
|
5647
|
-
command = make_simple_command(:
|
5648
|
-
command.
|
5649
|
-
command.
|
5650
|
-
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
5651
|
-
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
5862
|
+
def delete_global_address(project, address, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5863
|
+
command = make_simple_command(:delete, 'projects/{project}/global/addresses/{address}', options)
|
5864
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
5865
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
5652
5866
|
command.params['project'] = project unless project.nil?
|
5653
|
-
command.params['
|
5867
|
+
command.params['address'] = address unless address.nil?
|
5868
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
5654
5869
|
command.query['fields'] = fields unless fields.nil?
|
5655
5870
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5656
5871
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
5657
5872
|
execute_or_queue_command(command, &block)
|
5658
5873
|
end
|
5659
5874
|
|
5660
|
-
#
|
5875
|
+
# Returns the specified address resource. Gets a list of available addresses by
|
5876
|
+
# making a list() request.
|
5661
5877
|
# @param [String] project
|
5662
5878
|
# Project ID for this request.
|
5663
|
-
# @param [String]
|
5664
|
-
# Name of the
|
5665
|
-
# @param [String] request_id
|
5666
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
5667
|
-
# that if you must retry your request, the server will know to ignore the
|
5668
|
-
# request if it has already been completed.
|
5669
|
-
# For example, consider a situation where you make an initial request and the
|
5670
|
-
# request times out. If you make the request again with the same request ID, the
|
5671
|
-
# server can check if original operation with the same request ID was received,
|
5672
|
-
# and if so, will ignore the second request. This prevents clients from
|
5673
|
-
# accidentally creating duplicate commitments.
|
5674
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not
|
5675
|
-
# supported (00000000-0000-0000-0000-000000000000).
|
5879
|
+
# @param [String] address
|
5880
|
+
# Name of the address resource to return.
|
5676
5881
|
# @param [String] fields
|
5677
5882
|
# Selector specifying which fields to include in a partial response.
|
5678
5883
|
# @param [String] quota_user
|
@@ -5684,33 +5889,32 @@ module Google
|
|
5684
5889
|
# Request-specific options
|
5685
5890
|
#
|
5686
5891
|
# @yield [result, err] Result & error if block supplied
|
5687
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
5892
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Address] parsed result object
|
5688
5893
|
# @yieldparam err [StandardError] error object if request failed
|
5689
5894
|
#
|
5690
|
-
# @return [Google::Apis::ComputeAlpha::
|
5895
|
+
# @return [Google::Apis::ComputeAlpha::Address]
|
5691
5896
|
#
|
5692
5897
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5693
5898
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5694
5899
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5695
|
-
def
|
5696
|
-
command = make_simple_command(:
|
5697
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
5698
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
5900
|
+
def get_global_address(project, address, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5901
|
+
command = make_simple_command(:get, 'projects/{project}/global/addresses/{address}', options)
|
5902
|
+
command.response_representation = Google::Apis::ComputeAlpha::Address::Representation
|
5903
|
+
command.response_class = Google::Apis::ComputeAlpha::Address
|
5699
5904
|
command.params['project'] = project unless project.nil?
|
5700
|
-
command.params['
|
5701
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
5905
|
+
command.params['address'] = address unless address.nil?
|
5702
5906
|
command.query['fields'] = fields unless fields.nil?
|
5703
5907
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5704
5908
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
5705
5909
|
execute_or_queue_command(command, &block)
|
5706
5910
|
end
|
5707
5911
|
|
5708
|
-
#
|
5709
|
-
# forwarding rules by making a list() request.
|
5912
|
+
# Find owner instance from given ip address
|
5710
5913
|
# @param [String] project
|
5711
5914
|
# Project ID for this request.
|
5712
|
-
# @param [String]
|
5713
|
-
#
|
5915
|
+
# @param [String] ip_address
|
5916
|
+
# The ip_address could be external IPv4, or internal IPv4 within IPv6 form of
|
5917
|
+
# virtual_network_id with internal IPv4. IPv6 is not supported yet.
|
5714
5918
|
# @param [String] fields
|
5715
5919
|
# Selector specifying which fields to include in a partial response.
|
5716
5920
|
# @param [String] quota_user
|
@@ -5722,31 +5926,31 @@ module Google
|
|
5722
5926
|
# Request-specific options
|
5723
5927
|
#
|
5724
5928
|
# @yield [result, err] Result & error if block supplied
|
5725
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
5929
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::GetOwnerInstanceResponse] parsed result object
|
5726
5930
|
# @yieldparam err [StandardError] error object if request failed
|
5727
5931
|
#
|
5728
|
-
# @return [Google::Apis::ComputeAlpha::
|
5932
|
+
# @return [Google::Apis::ComputeAlpha::GetOwnerInstanceResponse]
|
5729
5933
|
#
|
5730
5934
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5731
5935
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5732
5936
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5733
|
-
def
|
5734
|
-
command = make_simple_command(:get, 'projects/{project}/global/
|
5735
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
5736
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
5937
|
+
def get_global_address_owner_instance(project, ip_address: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5938
|
+
command = make_simple_command(:get, 'projects/{project}/global/addresses/getOwnerInstance', options)
|
5939
|
+
command.response_representation = Google::Apis::ComputeAlpha::GetOwnerInstanceResponse::Representation
|
5940
|
+
command.response_class = Google::Apis::ComputeAlpha::GetOwnerInstanceResponse
|
5737
5941
|
command.params['project'] = project unless project.nil?
|
5738
|
-
command.
|
5942
|
+
command.query['ipAddress'] = ip_address unless ip_address.nil?
|
5739
5943
|
command.query['fields'] = fields unless fields.nil?
|
5740
5944
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5741
5945
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
5742
5946
|
execute_or_queue_command(command, &block)
|
5743
5947
|
end
|
5744
5948
|
|
5745
|
-
# Creates
|
5746
|
-
#
|
5949
|
+
# Creates an address resource in the specified project by using the data
|
5950
|
+
# included in the request.
|
5747
5951
|
# @param [String] project
|
5748
5952
|
# Project ID for this request.
|
5749
|
-
# @param [Google::Apis::ComputeAlpha::
|
5953
|
+
# @param [Google::Apis::ComputeAlpha::Address] address_object
|
5750
5954
|
# @param [String] request_id
|
5751
5955
|
# An optional request ID to identify requests. Specify a unique request ID so
|
5752
5956
|
# that if you must retry your request, the server will know to ignore the
|
@@ -5777,10 +5981,10 @@ module Google
|
|
5777
5981
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5778
5982
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5779
5983
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5780
|
-
def
|
5781
|
-
command = make_simple_command(:post, 'projects/{project}/global/
|
5782
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
5783
|
-
command.request_object =
|
5984
|
+
def insert_global_address(project, address_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5985
|
+
command = make_simple_command(:post, 'projects/{project}/global/addresses', options)
|
5986
|
+
command.request_representation = Google::Apis::ComputeAlpha::Address::Representation
|
5987
|
+
command.request_object = address_object
|
5784
5988
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
5785
5989
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
5786
5990
|
command.params['project'] = project unless project.nil?
|
@@ -5791,8 +5995,7 @@ module Google
|
|
5791
5995
|
execute_or_queue_command(command, &block)
|
5792
5996
|
end
|
5793
5997
|
|
5794
|
-
# Retrieves a list of
|
5795
|
-
# project.
|
5998
|
+
# Retrieves a list of global addresses.
|
5796
5999
|
# @param [String] project
|
5797
6000
|
# Project ID for this request.
|
5798
6001
|
# @param [String] filter
|
@@ -5843,18 +6046,18 @@ module Google
|
|
5843
6046
|
# Request-specific options
|
5844
6047
|
#
|
5845
6048
|
# @yield [result, err] Result & error if block supplied
|
5846
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
6049
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::AddressList] parsed result object
|
5847
6050
|
# @yieldparam err [StandardError] error object if request failed
|
5848
6051
|
#
|
5849
|
-
# @return [Google::Apis::ComputeAlpha::
|
6052
|
+
# @return [Google::Apis::ComputeAlpha::AddressList]
|
5850
6053
|
#
|
5851
6054
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5852
6055
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5853
6056
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5854
|
-
def
|
5855
|
-
command = make_simple_command(:get, 'projects/{project}/global/
|
5856
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
5857
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
6057
|
+
def list_global_addresses(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
6058
|
+
command = make_simple_command(:get, 'projects/{project}/global/addresses', options)
|
6059
|
+
command.response_representation = Google::Apis::ComputeAlpha::AddressList::Representation
|
6060
|
+
command.response_class = Google::Apis::ComputeAlpha::AddressList
|
5858
6061
|
command.params['project'] = project unless project.nil?
|
5859
6062
|
command.query['filter'] = filter unless filter.nil?
|
5860
6063
|
command.query['maxResults'] = max_results unless max_results.nil?
|
@@ -5867,25 +6070,13 @@ module Google
|
|
5867
6070
|
execute_or_queue_command(command, &block)
|
5868
6071
|
end
|
5869
6072
|
|
5870
|
-
#
|
5871
|
-
#
|
5872
|
-
# processing rules. Currently, you can only patch the network_tier field.
|
6073
|
+
# Sets the labels on a GlobalAddress. To learn more about labels, read the
|
6074
|
+
# Labeling Resources documentation.
|
5873
6075
|
# @param [String] project
|
5874
6076
|
# Project ID for this request.
|
5875
|
-
# @param [String]
|
5876
|
-
# Name of the
|
5877
|
-
# @param [Google::Apis::ComputeAlpha::
|
5878
|
-
# @param [String] request_id
|
5879
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
5880
|
-
# that if you must retry your request, the server will know to ignore the
|
5881
|
-
# request if it has already been completed.
|
5882
|
-
# For example, consider a situation where you make an initial request and the
|
5883
|
-
# request times out. If you make the request again with the same request ID, the
|
5884
|
-
# server can check if original operation with the same request ID was received,
|
5885
|
-
# and if so, will ignore the second request. This prevents clients from
|
5886
|
-
# accidentally creating duplicate commitments.
|
5887
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not
|
5888
|
-
# supported (00000000-0000-0000-0000-000000000000).
|
6077
|
+
# @param [String] resource
|
6078
|
+
# Name or id of the resource for this request.
|
6079
|
+
# @param [Google::Apis::ComputeAlpha::GlobalSetLabelsRequest] global_set_labels_request_object
|
5889
6080
|
# @param [String] fields
|
5890
6081
|
# Selector specifying which fields to include in a partial response.
|
5891
6082
|
# @param [String] quota_user
|
@@ -5905,28 +6096,26 @@ module Google
|
|
5905
6096
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5906
6097
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5907
6098
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5908
|
-
def
|
5909
|
-
command = make_simple_command(:
|
5910
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
5911
|
-
command.request_object =
|
6099
|
+
def set_global_address_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
6100
|
+
command = make_simple_command(:post, 'projects/{project}/global/addresses/{resource}/setLabels', options)
|
6101
|
+
command.request_representation = Google::Apis::ComputeAlpha::GlobalSetLabelsRequest::Representation
|
6102
|
+
command.request_object = global_set_labels_request_object
|
5912
6103
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
5913
6104
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
5914
6105
|
command.params['project'] = project unless project.nil?
|
5915
|
-
command.params['
|
5916
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
6106
|
+
command.params['resource'] = resource unless resource.nil?
|
5917
6107
|
command.query['fields'] = fields unless fields.nil?
|
5918
6108
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5919
6109
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
5920
6110
|
execute_or_queue_command(command, &block)
|
5921
6111
|
end
|
5922
6112
|
|
5923
|
-
#
|
5924
|
-
# the Labeling Resources documentation.
|
6113
|
+
# Returns permissions that a caller has on the specified resource.
|
5925
6114
|
# @param [String] project
|
5926
6115
|
# Project ID for this request.
|
5927
6116
|
# @param [String] resource
|
5928
6117
|
# Name or id of the resource for this request.
|
5929
|
-
# @param [Google::Apis::ComputeAlpha::
|
6118
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
5930
6119
|
# @param [String] fields
|
5931
6120
|
# Selector specifying which fields to include in a partial response.
|
5932
6121
|
# @param [String] quota_user
|
@@ -5938,20 +6127,20 @@ module Google
|
|
5938
6127
|
# Request-specific options
|
5939
6128
|
#
|
5940
6129
|
# @yield [result, err] Result & error if block supplied
|
5941
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
6130
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
5942
6131
|
# @yieldparam err [StandardError] error object if request failed
|
5943
6132
|
#
|
5944
|
-
# @return [Google::Apis::ComputeAlpha::
|
6133
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
5945
6134
|
#
|
5946
6135
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5947
6136
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5948
6137
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5949
|
-
def
|
5950
|
-
command = make_simple_command(:post, 'projects/{project}/global/
|
5951
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
5952
|
-
command.request_object =
|
5953
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
5954
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
6138
|
+
def test_global_address_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
6139
|
+
command = make_simple_command(:post, 'projects/{project}/global/addresses/{resource}/testIamPermissions', options)
|
6140
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
6141
|
+
command.request_object = test_permissions_request_object
|
6142
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
6143
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
5955
6144
|
command.params['project'] = project unless project.nil?
|
5956
6145
|
command.params['resource'] = resource unless resource.nil?
|
5957
6146
|
command.query['fields'] = fields unless fields.nil?
|
@@ -5960,13 +6149,11 @@ module Google
|
|
5960
6149
|
execute_or_queue_command(command, &block)
|
5961
6150
|
end
|
5962
6151
|
|
5963
|
-
#
|
5964
|
-
# should be of the same type as the old target.
|
6152
|
+
# Deletes the specified GlobalForwardingRule resource.
|
5965
6153
|
# @param [String] project
|
5966
6154
|
# Project ID for this request.
|
5967
6155
|
# @param [String] forwarding_rule
|
5968
|
-
# Name of the ForwardingRule resource
|
5969
|
-
# @param [Google::Apis::ComputeAlpha::TargetReference] target_reference_object
|
6156
|
+
# Name of the ForwardingRule resource to delete.
|
5970
6157
|
# @param [String] request_id
|
5971
6158
|
# An optional request ID to identify requests. Specify a unique request ID so
|
5972
6159
|
# that if you must retry your request, the server will know to ignore the
|
@@ -5997,10 +6184,8 @@ module Google
|
|
5997
6184
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5998
6185
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5999
6186
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6000
|
-
def
|
6001
|
-
command = make_simple_command(:
|
6002
|
-
command.request_representation = Google::Apis::ComputeAlpha::TargetReference::Representation
|
6003
|
-
command.request_object = target_reference_object
|
6187
|
+
def delete_global_forwarding_rule(project, forwarding_rule, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
6188
|
+
command = make_simple_command(:delete, 'projects/{project}/global/forwardingRules/{forwardingRule}', options)
|
6004
6189
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
6005
6190
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
6006
6191
|
command.params['project'] = project unless project.nil?
|
@@ -6012,12 +6197,12 @@ module Google
|
|
6012
6197
|
execute_or_queue_command(command, &block)
|
6013
6198
|
end
|
6014
6199
|
|
6015
|
-
# Returns
|
6200
|
+
# Returns the specified GlobalForwardingRule resource. Gets a list of available
|
6201
|
+
# forwarding rules by making a list() request.
|
6016
6202
|
# @param [String] project
|
6017
6203
|
# Project ID for this request.
|
6018
|
-
# @param [String]
|
6019
|
-
# Name
|
6020
|
-
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
6204
|
+
# @param [String] forwarding_rule
|
6205
|
+
# Name of the ForwardingRule resource to return.
|
6021
6206
|
# @param [String] fields
|
6022
6207
|
# Selector specifying which fields to include in a partial response.
|
6023
6208
|
# @param [String] quota_user
|
@@ -6029,35 +6214,31 @@ module Google
|
|
6029
6214
|
# Request-specific options
|
6030
6215
|
#
|
6031
6216
|
# @yield [result, err] Result & error if block supplied
|
6032
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
6217
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::ForwardingRule] parsed result object
|
6033
6218
|
# @yieldparam err [StandardError] error object if request failed
|
6034
6219
|
#
|
6035
|
-
# @return [Google::Apis::ComputeAlpha::
|
6220
|
+
# @return [Google::Apis::ComputeAlpha::ForwardingRule]
|
6036
6221
|
#
|
6037
6222
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6038
6223
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6039
6224
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6040
|
-
def
|
6041
|
-
command = make_simple_command(:
|
6042
|
-
command.
|
6043
|
-
command.
|
6044
|
-
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
6045
|
-
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
6225
|
+
def get_global_forwarding_rule(project, forwarding_rule, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
6226
|
+
command = make_simple_command(:get, 'projects/{project}/global/forwardingRules/{forwardingRule}', options)
|
6227
|
+
command.response_representation = Google::Apis::ComputeAlpha::ForwardingRule::Representation
|
6228
|
+
command.response_class = Google::Apis::ComputeAlpha::ForwardingRule
|
6046
6229
|
command.params['project'] = project unless project.nil?
|
6047
|
-
command.params['
|
6230
|
+
command.params['forwardingRule'] = forwarding_rule unless forwarding_rule.nil?
|
6048
6231
|
command.query['fields'] = fields unless fields.nil?
|
6049
6232
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6050
6233
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
6051
6234
|
execute_or_queue_command(command, &block)
|
6052
6235
|
end
|
6053
6236
|
|
6054
|
-
#
|
6237
|
+
# Creates a GlobalForwardingRule resource in the specified project using the
|
6238
|
+
# data included in the request.
|
6055
6239
|
# @param [String] project
|
6056
6240
|
# Project ID for this request.
|
6057
|
-
# @param [
|
6058
|
-
# The name of the network endpoint group where you are attaching network
|
6059
|
-
# endpoints to. It should comply with RFC1035.
|
6060
|
-
# @param [Google::Apis::ComputeAlpha::GlobalNetworkEndpointGroupsAttachEndpointsRequest] global_network_endpoint_groups_attach_endpoints_request_object
|
6241
|
+
# @param [Google::Apis::ComputeAlpha::ForwardingRule] forwarding_rule_object
|
6061
6242
|
# @param [String] request_id
|
6062
6243
|
# An optional request ID to identify requests. Specify a unique request ID so
|
6063
6244
|
# that if you must retry your request, the server will know to ignore the
|
@@ -6088,14 +6269,13 @@ module Google
|
|
6088
6269
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6089
6270
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6090
6271
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6091
|
-
def
|
6092
|
-
command = make_simple_command(:post, 'projects/{project}/global/
|
6093
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
6094
|
-
command.request_object =
|
6272
|
+
def insert_global_forwarding_rule(project, forwarding_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
6273
|
+
command = make_simple_command(:post, 'projects/{project}/global/forwardingRules', options)
|
6274
|
+
command.request_representation = Google::Apis::ComputeAlpha::ForwardingRule::Representation
|
6275
|
+
command.request_object = forwarding_rule_object
|
6095
6276
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
6096
6277
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
6097
6278
|
command.params['project'] = project unless project.nil?
|
6098
|
-
command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
|
6099
6279
|
command.query['requestId'] = request_id unless request_id.nil?
|
6100
6280
|
command.query['fields'] = fields unless fields.nil?
|
6101
6281
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -6103,39 +6283,351 @@ module Google
|
|
6103
6283
|
execute_or_queue_command(command, &block)
|
6104
6284
|
end
|
6105
6285
|
|
6106
|
-
#
|
6107
|
-
#
|
6286
|
+
# Retrieves a list of GlobalForwardingRule resources available to the specified
|
6287
|
+
# project.
|
6108
6288
|
# @param [String] project
|
6109
6289
|
# Project ID for this request.
|
6110
|
-
# @param [String]
|
6111
|
-
#
|
6112
|
-
#
|
6113
|
-
#
|
6114
|
-
#
|
6115
|
-
#
|
6116
|
-
#
|
6117
|
-
#
|
6118
|
-
#
|
6119
|
-
#
|
6120
|
-
#
|
6121
|
-
#
|
6122
|
-
#
|
6123
|
-
#
|
6124
|
-
#
|
6125
|
-
#
|
6126
|
-
#
|
6127
|
-
#
|
6128
|
-
#
|
6129
|
-
#
|
6130
|
-
#
|
6131
|
-
#
|
6132
|
-
#
|
6133
|
-
#
|
6134
|
-
#
|
6135
|
-
#
|
6136
|
-
#
|
6137
|
-
#
|
6138
|
-
#
|
6290
|
+
# @param [String] filter
|
6291
|
+
# A filter expression that filters resources listed in the response. The
|
6292
|
+
# expression must specify the field name, a comparison operator, and the value
|
6293
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
6294
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
6295
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
6296
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
6297
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
6298
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
6299
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
6300
|
+
# on resource labels.
|
6301
|
+
# To filter on multiple expressions, provide each separate expression within
|
6302
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
6303
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
6304
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
6305
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
6306
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
6307
|
+
# @param [Fixnum] max_results
|
6308
|
+
# The maximum number of results per page that should be returned. If the number
|
6309
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
6310
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
6311
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
6312
|
+
# @param [String] order_by
|
6313
|
+
# Sorts list results by a certain order. By default, results are returned in
|
6314
|
+
# alphanumerical order based on the resource name.
|
6315
|
+
# You can also sort results in descending order based on the creation timestamp
|
6316
|
+
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
6317
|
+
# creationTimestamp` field in reverse chronological order (newest result first).
|
6318
|
+
# Use this to sort resources like operations so that the newest operation is
|
6319
|
+
# returned first.
|
6320
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
6321
|
+
# @param [String] page_token
|
6322
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
6323
|
+
# by a previous list request to get the next page of results.
|
6324
|
+
# @param [Boolean] return_partial_success
|
6325
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
6326
|
+
# failure. The default value is false.
|
6327
|
+
# @param [String] fields
|
6328
|
+
# Selector specifying which fields to include in a partial response.
|
6329
|
+
# @param [String] quota_user
|
6330
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
6331
|
+
# characters.
|
6332
|
+
# @param [String] user_ip
|
6333
|
+
# Deprecated. Please use quotaUser instead.
|
6334
|
+
# @param [Google::Apis::RequestOptions] options
|
6335
|
+
# Request-specific options
|
6336
|
+
#
|
6337
|
+
# @yield [result, err] Result & error if block supplied
|
6338
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::ForwardingRuleList] parsed result object
|
6339
|
+
# @yieldparam err [StandardError] error object if request failed
|
6340
|
+
#
|
6341
|
+
# @return [Google::Apis::ComputeAlpha::ForwardingRuleList]
|
6342
|
+
#
|
6343
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6344
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6345
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6346
|
+
def list_global_forwarding_rules(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
6347
|
+
command = make_simple_command(:get, 'projects/{project}/global/forwardingRules', options)
|
6348
|
+
command.response_representation = Google::Apis::ComputeAlpha::ForwardingRuleList::Representation
|
6349
|
+
command.response_class = Google::Apis::ComputeAlpha::ForwardingRuleList
|
6350
|
+
command.params['project'] = project unless project.nil?
|
6351
|
+
command.query['filter'] = filter unless filter.nil?
|
6352
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
6353
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
6354
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
6355
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
6356
|
+
command.query['fields'] = fields unless fields.nil?
|
6357
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6358
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
6359
|
+
execute_or_queue_command(command, &block)
|
6360
|
+
end
|
6361
|
+
|
6362
|
+
# Updates the specified forwarding rule with the data included in the request.
|
6363
|
+
# This method supports PATCH semantics and uses the JSON merge patch format and
|
6364
|
+
# processing rules. Currently, you can only patch the network_tier field.
|
6365
|
+
# @param [String] project
|
6366
|
+
# Project ID for this request.
|
6367
|
+
# @param [String] forwarding_rule
|
6368
|
+
# Name of the ForwardingRule resource to patch.
|
6369
|
+
# @param [Google::Apis::ComputeAlpha::ForwardingRule] forwarding_rule_object
|
6370
|
+
# @param [String] request_id
|
6371
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
6372
|
+
# that if you must retry your request, the server will know to ignore the
|
6373
|
+
# request if it has already been completed.
|
6374
|
+
# For example, consider a situation where you make an initial request and the
|
6375
|
+
# request times out. If you make the request again with the same request ID, the
|
6376
|
+
# server can check if original operation with the same request ID was received,
|
6377
|
+
# and if so, will ignore the second request. This prevents clients from
|
6378
|
+
# accidentally creating duplicate commitments.
|
6379
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
6380
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
6381
|
+
# @param [String] fields
|
6382
|
+
# Selector specifying which fields to include in a partial response.
|
6383
|
+
# @param [String] quota_user
|
6384
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
6385
|
+
# characters.
|
6386
|
+
# @param [String] user_ip
|
6387
|
+
# Deprecated. Please use quotaUser instead.
|
6388
|
+
# @param [Google::Apis::RequestOptions] options
|
6389
|
+
# Request-specific options
|
6390
|
+
#
|
6391
|
+
# @yield [result, err] Result & error if block supplied
|
6392
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
6393
|
+
# @yieldparam err [StandardError] error object if request failed
|
6394
|
+
#
|
6395
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
6396
|
+
#
|
6397
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6398
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6399
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6400
|
+
def patch_global_forwarding_rule(project, forwarding_rule, forwarding_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
6401
|
+
command = make_simple_command(:patch, 'projects/{project}/global/forwardingRules/{forwardingRule}', options)
|
6402
|
+
command.request_representation = Google::Apis::ComputeAlpha::ForwardingRule::Representation
|
6403
|
+
command.request_object = forwarding_rule_object
|
6404
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
6405
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
6406
|
+
command.params['project'] = project unless project.nil?
|
6407
|
+
command.params['forwardingRule'] = forwarding_rule unless forwarding_rule.nil?
|
6408
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
6409
|
+
command.query['fields'] = fields unless fields.nil?
|
6410
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6411
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
6412
|
+
execute_or_queue_command(command, &block)
|
6413
|
+
end
|
6414
|
+
|
6415
|
+
# Sets the labels on the specified resource. To learn more about labels, read
|
6416
|
+
# the Labeling Resources documentation.
|
6417
|
+
# @param [String] project
|
6418
|
+
# Project ID for this request.
|
6419
|
+
# @param [String] resource
|
6420
|
+
# Name or id of the resource for this request.
|
6421
|
+
# @param [Google::Apis::ComputeAlpha::GlobalSetLabelsRequest] global_set_labels_request_object
|
6422
|
+
# @param [String] fields
|
6423
|
+
# Selector specifying which fields to include in a partial response.
|
6424
|
+
# @param [String] quota_user
|
6425
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
6426
|
+
# characters.
|
6427
|
+
# @param [String] user_ip
|
6428
|
+
# Deprecated. Please use quotaUser instead.
|
6429
|
+
# @param [Google::Apis::RequestOptions] options
|
6430
|
+
# Request-specific options
|
6431
|
+
#
|
6432
|
+
# @yield [result, err] Result & error if block supplied
|
6433
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
6434
|
+
# @yieldparam err [StandardError] error object if request failed
|
6435
|
+
#
|
6436
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
6437
|
+
#
|
6438
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6439
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6440
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6441
|
+
def set_global_forwarding_rule_labels(project, resource, global_set_labels_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
6442
|
+
command = make_simple_command(:post, 'projects/{project}/global/forwardingRules/{resource}/setLabels', options)
|
6443
|
+
command.request_representation = Google::Apis::ComputeAlpha::GlobalSetLabelsRequest::Representation
|
6444
|
+
command.request_object = global_set_labels_request_object
|
6445
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
6446
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
6447
|
+
command.params['project'] = project unless project.nil?
|
6448
|
+
command.params['resource'] = resource unless resource.nil?
|
6449
|
+
command.query['fields'] = fields unless fields.nil?
|
6450
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6451
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
6452
|
+
execute_or_queue_command(command, &block)
|
6453
|
+
end
|
6454
|
+
|
6455
|
+
# Changes target URL for the GlobalForwardingRule resource. The new target
|
6456
|
+
# should be of the same type as the old target.
|
6457
|
+
# @param [String] project
|
6458
|
+
# Project ID for this request.
|
6459
|
+
# @param [String] forwarding_rule
|
6460
|
+
# Name of the ForwardingRule resource in which target is to be set.
|
6461
|
+
# @param [Google::Apis::ComputeAlpha::TargetReference] target_reference_object
|
6462
|
+
# @param [String] request_id
|
6463
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
6464
|
+
# that if you must retry your request, the server will know to ignore the
|
6465
|
+
# request if it has already been completed.
|
6466
|
+
# For example, consider a situation where you make an initial request and the
|
6467
|
+
# request times out. If you make the request again with the same request ID, the
|
6468
|
+
# server can check if original operation with the same request ID was received,
|
6469
|
+
# and if so, will ignore the second request. This prevents clients from
|
6470
|
+
# accidentally creating duplicate commitments.
|
6471
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
6472
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
6473
|
+
# @param [String] fields
|
6474
|
+
# Selector specifying which fields to include in a partial response.
|
6475
|
+
# @param [String] quota_user
|
6476
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
6477
|
+
# characters.
|
6478
|
+
# @param [String] user_ip
|
6479
|
+
# Deprecated. Please use quotaUser instead.
|
6480
|
+
# @param [Google::Apis::RequestOptions] options
|
6481
|
+
# Request-specific options
|
6482
|
+
#
|
6483
|
+
# @yield [result, err] Result & error if block supplied
|
6484
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
6485
|
+
# @yieldparam err [StandardError] error object if request failed
|
6486
|
+
#
|
6487
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
6488
|
+
#
|
6489
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6490
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6491
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6492
|
+
def set_global_forwarding_rule_target(project, forwarding_rule, target_reference_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
6493
|
+
command = make_simple_command(:post, 'projects/{project}/global/forwardingRules/{forwardingRule}/setTarget', options)
|
6494
|
+
command.request_representation = Google::Apis::ComputeAlpha::TargetReference::Representation
|
6495
|
+
command.request_object = target_reference_object
|
6496
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
6497
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
6498
|
+
command.params['project'] = project unless project.nil?
|
6499
|
+
command.params['forwardingRule'] = forwarding_rule unless forwarding_rule.nil?
|
6500
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
6501
|
+
command.query['fields'] = fields unless fields.nil?
|
6502
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6503
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
6504
|
+
execute_or_queue_command(command, &block)
|
6505
|
+
end
|
6506
|
+
|
6507
|
+
# Returns permissions that a caller has on the specified resource.
|
6508
|
+
# @param [String] project
|
6509
|
+
# Project ID for this request.
|
6510
|
+
# @param [String] resource
|
6511
|
+
# Name or id of the resource for this request.
|
6512
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
6513
|
+
# @param [String] fields
|
6514
|
+
# Selector specifying which fields to include in a partial response.
|
6515
|
+
# @param [String] quota_user
|
6516
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
6517
|
+
# characters.
|
6518
|
+
# @param [String] user_ip
|
6519
|
+
# Deprecated. Please use quotaUser instead.
|
6520
|
+
# @param [Google::Apis::RequestOptions] options
|
6521
|
+
# Request-specific options
|
6522
|
+
#
|
6523
|
+
# @yield [result, err] Result & error if block supplied
|
6524
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
6525
|
+
# @yieldparam err [StandardError] error object if request failed
|
6526
|
+
#
|
6527
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
6528
|
+
#
|
6529
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6530
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6531
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6532
|
+
def test_global_forwarding_rule_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
6533
|
+
command = make_simple_command(:post, 'projects/{project}/global/forwardingRules/{resource}/testIamPermissions', options)
|
6534
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
6535
|
+
command.request_object = test_permissions_request_object
|
6536
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
6537
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
6538
|
+
command.params['project'] = project unless project.nil?
|
6539
|
+
command.params['resource'] = resource unless resource.nil?
|
6540
|
+
command.query['fields'] = fields unless fields.nil?
|
6541
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6542
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
6543
|
+
execute_or_queue_command(command, &block)
|
6544
|
+
end
|
6545
|
+
|
6546
|
+
# Attach a network endpoint to the specified network endpoint group.
|
6547
|
+
# @param [String] project
|
6548
|
+
# Project ID for this request.
|
6549
|
+
# @param [String] network_endpoint_group
|
6550
|
+
# The name of the network endpoint group where you are attaching network
|
6551
|
+
# endpoints to. It should comply with RFC1035.
|
6552
|
+
# @param [Google::Apis::ComputeAlpha::GlobalNetworkEndpointGroupsAttachEndpointsRequest] global_network_endpoint_groups_attach_endpoints_request_object
|
6553
|
+
# @param [String] request_id
|
6554
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
6555
|
+
# that if you must retry your request, the server will know to ignore the
|
6556
|
+
# request if it has already been completed.
|
6557
|
+
# For example, consider a situation where you make an initial request and the
|
6558
|
+
# request times out. If you make the request again with the same request ID, the
|
6559
|
+
# server can check if original operation with the same request ID was received,
|
6560
|
+
# and if so, will ignore the second request. This prevents clients from
|
6561
|
+
# accidentally creating duplicate commitments.
|
6562
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
6563
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
6564
|
+
# @param [String] fields
|
6565
|
+
# Selector specifying which fields to include in a partial response.
|
6566
|
+
# @param [String] quota_user
|
6567
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
6568
|
+
# characters.
|
6569
|
+
# @param [String] user_ip
|
6570
|
+
# Deprecated. Please use quotaUser instead.
|
6571
|
+
# @param [Google::Apis::RequestOptions] options
|
6572
|
+
# Request-specific options
|
6573
|
+
#
|
6574
|
+
# @yield [result, err] Result & error if block supplied
|
6575
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
6576
|
+
# @yieldparam err [StandardError] error object if request failed
|
6577
|
+
#
|
6578
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
6579
|
+
#
|
6580
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6581
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
6582
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
6583
|
+
def attach_global_network_endpoint_group_network_endpoints(project, network_endpoint_group, global_network_endpoint_groups_attach_endpoints_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
6584
|
+
command = make_simple_command(:post, 'projects/{project}/global/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints', options)
|
6585
|
+
command.request_representation = Google::Apis::ComputeAlpha::GlobalNetworkEndpointGroupsAttachEndpointsRequest::Representation
|
6586
|
+
command.request_object = global_network_endpoint_groups_attach_endpoints_request_object
|
6587
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
6588
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
6589
|
+
command.params['project'] = project unless project.nil?
|
6590
|
+
command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
|
6591
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
6592
|
+
command.query['fields'] = fields unless fields.nil?
|
6593
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
6594
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
6595
|
+
execute_or_queue_command(command, &block)
|
6596
|
+
end
|
6597
|
+
|
6598
|
+
# Deletes the specified network endpoint group.Note that the NEG cannot be
|
6599
|
+
# deleted if there are backend services referencing it.
|
6600
|
+
# @param [String] project
|
6601
|
+
# Project ID for this request.
|
6602
|
+
# @param [String] network_endpoint_group
|
6603
|
+
# The name of the network endpoint group to delete. It should comply with
|
6604
|
+
# RFC1035.
|
6605
|
+
# @param [String] request_id
|
6606
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
6607
|
+
# that if you must retry your request, the server will know to ignore the
|
6608
|
+
# request if it has already been completed.
|
6609
|
+
# For example, consider a situation where you make an initial request and the
|
6610
|
+
# request times out. If you make the request again with the same request ID, the
|
6611
|
+
# server can check if original operation with the same request ID was received,
|
6612
|
+
# and if so, will ignore the second request. This prevents clients from
|
6613
|
+
# accidentally creating duplicate commitments.
|
6614
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
6615
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
6616
|
+
# @param [String] fields
|
6617
|
+
# Selector specifying which fields to include in a partial response.
|
6618
|
+
# @param [String] quota_user
|
6619
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
6620
|
+
# characters.
|
6621
|
+
# @param [String] user_ip
|
6622
|
+
# Deprecated. Please use quotaUser instead.
|
6623
|
+
# @param [Google::Apis::RequestOptions] options
|
6624
|
+
# Request-specific options
|
6625
|
+
#
|
6626
|
+
# @yield [result, err] Result & error if block supplied
|
6627
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
6628
|
+
# @yieldparam err [StandardError] error object if request failed
|
6629
|
+
#
|
6630
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
6139
6631
|
#
|
6140
6632
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
6141
6633
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
@@ -12376,8 +12868,9 @@ module Google
|
|
12376
12868
|
# The request ID must be a valid UUID with the exception that zero UUID is not
|
12377
12869
|
# supported (00000000-0000-0000-0000-000000000000).
|
12378
12870
|
# @param [Array<String>, String] secure_tags
|
12379
|
-
#
|
12380
|
-
#
|
12871
|
+
# DEPRECATED: Please use resource.secure_tag instead. Secure tags to apply to
|
12872
|
+
# this instance. These can be later modified by the update method. Maximum
|
12873
|
+
# number of secure tags allowed is 50.
|
12381
12874
|
# @param [String] source_instance_template
|
12382
12875
|
# Specifies instance template to create the instance.
|
12383
12876
|
# This field is optional. It can be a full or partial URL. For example, the
|
@@ -12594,6 +13087,57 @@ module Google
|
|
12594
13087
|
execute_or_queue_command(command, &block)
|
12595
13088
|
end
|
12596
13089
|
|
13090
|
+
# Perform a manual maintenance on the instance.
|
13091
|
+
# @param [String] project
|
13092
|
+
# Project ID for this request.
|
13093
|
+
# @param [String] zone
|
13094
|
+
# The name of the zone for this request.
|
13095
|
+
# @param [String] instance
|
13096
|
+
# Name of the instance scoping this request.
|
13097
|
+
# @param [String] request_id
|
13098
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
13099
|
+
# that if you must retry your request, the server will know to ignore the
|
13100
|
+
# request if it has already been completed.
|
13101
|
+
# For example, consider a situation where you make an initial request and the
|
13102
|
+
# request times out. If you make the request again with the same request ID, the
|
13103
|
+
# server can check if original operation with the same request ID was received,
|
13104
|
+
# and if so, will ignore the second request. This prevents clients from
|
13105
|
+
# accidentally creating duplicate commitments.
|
13106
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
13107
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
13108
|
+
# @param [String] fields
|
13109
|
+
# Selector specifying which fields to include in a partial response.
|
13110
|
+
# @param [String] quota_user
|
13111
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
13112
|
+
# characters.
|
13113
|
+
# @param [String] user_ip
|
13114
|
+
# Deprecated. Please use quotaUser instead.
|
13115
|
+
# @param [Google::Apis::RequestOptions] options
|
13116
|
+
# Request-specific options
|
13117
|
+
#
|
13118
|
+
# @yield [result, err] Result & error if block supplied
|
13119
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
13120
|
+
# @yieldparam err [StandardError] error object if request failed
|
13121
|
+
#
|
13122
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
13123
|
+
#
|
13124
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13125
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13126
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13127
|
+
def perform_instance_maintenance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
13128
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/performMaintenance', options)
|
13129
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
13130
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
13131
|
+
command.params['project'] = project unless project.nil?
|
13132
|
+
command.params['zone'] = zone unless zone.nil?
|
13133
|
+
command.params['instance'] = instance unless instance.nil?
|
13134
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
13135
|
+
command.query['fields'] = fields unless fields.nil?
|
13136
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13137
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
13138
|
+
execute_or_queue_command(command, &block)
|
13139
|
+
end
|
13140
|
+
|
12597
13141
|
# Removes resource policies from an instance.
|
12598
13142
|
# @param [String] project
|
12599
13143
|
# Project ID for this request.
|
@@ -13873,8 +14417,8 @@ module Google
|
|
13873
14417
|
# @param [Google::Apis::ComputeAlpha::Instance] instance_object
|
13874
14418
|
# @param [Boolean] clear_secure_tag
|
13875
14419
|
# Whether to clear secure tags from the instance.
|
13876
|
-
# This property
|
13877
|
-
#
|
14420
|
+
# This property if set to true will clear secure tags regardless of the resource.
|
14421
|
+
# secure_tags.
|
13878
14422
|
# @param [String] minimal_action
|
13879
14423
|
# Specifies the action to take when updating an instance even if the updated
|
13880
14424
|
# properties do not require it. If not specified, then Compute Engine acts based
|
@@ -13896,8 +14440,8 @@ module Google
|
|
13896
14440
|
# The request ID must be a valid UUID with the exception that zero UUID is not
|
13897
14441
|
# supported (00000000-0000-0000-0000-000000000000).
|
13898
14442
|
# @param [Array<String>, String] secure_tags
|
13899
|
-
#
|
13900
|
-
# is
|
14443
|
+
# DEPRECATED: Please use resource.secure_tag instead. Secure tags to apply to
|
14444
|
+
# this instance. Maximum number of secure tags allowed is 50.
|
13901
14445
|
# @param [String] fields
|
13902
14446
|
# Selector specifying which fields to include in a partial response.
|
13903
14447
|
# @param [String] quota_user
|
@@ -15968,14 +16512,183 @@ module Google
|
|
15968
16512
|
execute_or_queue_command(command, &block)
|
15969
16513
|
end
|
15970
16514
|
|
15971
|
-
# Gets the access control policy for a resource. May be empty if no such policy
|
15972
|
-
# or resource exists.
|
16515
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
16516
|
+
# or resource exists.
|
16517
|
+
# @param [String] project
|
16518
|
+
# Project ID for this request.
|
16519
|
+
# @param [String] resource
|
16520
|
+
# Name or id of the resource for this request.
|
16521
|
+
# @param [Fixnum] options_requested_policy_version
|
16522
|
+
# Requested IAM Policy version.
|
16523
|
+
# @param [String] fields
|
16524
|
+
# Selector specifying which fields to include in a partial response.
|
16525
|
+
# @param [String] quota_user
|
16526
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
16527
|
+
# characters.
|
16528
|
+
# @param [String] user_ip
|
16529
|
+
# Deprecated. Please use quotaUser instead.
|
16530
|
+
# @param [Google::Apis::RequestOptions] options
|
16531
|
+
# Request-specific options
|
16532
|
+
#
|
16533
|
+
# @yield [result, err] Result & error if block supplied
|
16534
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
16535
|
+
# @yieldparam err [StandardError] error object if request failed
|
16536
|
+
#
|
16537
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
16538
|
+
#
|
16539
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16540
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16541
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16542
|
+
def get_machine_image_iam_policy(project, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16543
|
+
command = make_simple_command(:get, 'projects/{project}/global/machineImages/{resource}/getIamPolicy', options)
|
16544
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
16545
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
16546
|
+
command.params['project'] = project unless project.nil?
|
16547
|
+
command.params['resource'] = resource unless resource.nil?
|
16548
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
16549
|
+
command.query['fields'] = fields unless fields.nil?
|
16550
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16551
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
16552
|
+
execute_or_queue_command(command, &block)
|
16553
|
+
end
|
16554
|
+
|
16555
|
+
# Creates a machine image in the specified project using the data that is
|
16556
|
+
# included in the request. If you are creating a new machine image to update an
|
16557
|
+
# existing instance, your new machine image should use the same network or, if
|
16558
|
+
# applicable, the same subnetwork as the original instance.
|
16559
|
+
# @param [String] project
|
16560
|
+
# Project ID for this request.
|
16561
|
+
# @param [Google::Apis::ComputeAlpha::MachineImage] machine_image_object
|
16562
|
+
# @param [String] request_id
|
16563
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
16564
|
+
# that if you must retry your request, the server will know to ignore the
|
16565
|
+
# request if it has already been completed.
|
16566
|
+
# For example, consider a situation where you make an initial request and the
|
16567
|
+
# request times out. If you make the request again with the same request ID, the
|
16568
|
+
# server can check if original operation with the same request ID was received,
|
16569
|
+
# and if so, will ignore the second request. This prevents clients from
|
16570
|
+
# accidentally creating duplicate commitments.
|
16571
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
16572
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
16573
|
+
# @param [String] source_instance
|
16574
|
+
# Required. Source instance that is used to create the machine image from.
|
16575
|
+
# @param [String] fields
|
16576
|
+
# Selector specifying which fields to include in a partial response.
|
16577
|
+
# @param [String] quota_user
|
16578
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
16579
|
+
# characters.
|
16580
|
+
# @param [String] user_ip
|
16581
|
+
# Deprecated. Please use quotaUser instead.
|
16582
|
+
# @param [Google::Apis::RequestOptions] options
|
16583
|
+
# Request-specific options
|
16584
|
+
#
|
16585
|
+
# @yield [result, err] Result & error if block supplied
|
16586
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
16587
|
+
# @yieldparam err [StandardError] error object if request failed
|
16588
|
+
#
|
16589
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
16590
|
+
#
|
16591
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16592
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16593
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16594
|
+
def insert_machine_image(project, machine_image_object = nil, request_id: nil, source_instance: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16595
|
+
command = make_simple_command(:post, 'projects/{project}/global/machineImages', options)
|
16596
|
+
command.request_representation = Google::Apis::ComputeAlpha::MachineImage::Representation
|
16597
|
+
command.request_object = machine_image_object
|
16598
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
16599
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
16600
|
+
command.params['project'] = project unless project.nil?
|
16601
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
16602
|
+
command.query['sourceInstance'] = source_instance unless source_instance.nil?
|
16603
|
+
command.query['fields'] = fields unless fields.nil?
|
16604
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16605
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
16606
|
+
execute_or_queue_command(command, &block)
|
16607
|
+
end
|
16608
|
+
|
16609
|
+
# Retrieves a list of machine images that are contained within the specified
|
16610
|
+
# project.
|
16611
|
+
# @param [String] project
|
16612
|
+
# Project ID for this request.
|
16613
|
+
# @param [String] filter
|
16614
|
+
# A filter expression that filters resources listed in the response. The
|
16615
|
+
# expression must specify the field name, a comparison operator, and the value
|
16616
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
16617
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
16618
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
16619
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
16620
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
16621
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
16622
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
16623
|
+
# on resource labels.
|
16624
|
+
# To filter on multiple expressions, provide each separate expression within
|
16625
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
16626
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
16627
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
16628
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
16629
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
16630
|
+
# @param [Fixnum] max_results
|
16631
|
+
# The maximum number of results per page that should be returned. If the number
|
16632
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
16633
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
16634
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
16635
|
+
# @param [String] order_by
|
16636
|
+
# Sorts list results by a certain order. By default, results are returned in
|
16637
|
+
# alphanumerical order based on the resource name.
|
16638
|
+
# You can also sort results in descending order based on the creation timestamp
|
16639
|
+
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
16640
|
+
# creationTimestamp` field in reverse chronological order (newest result first).
|
16641
|
+
# Use this to sort resources like operations so that the newest operation is
|
16642
|
+
# returned first.
|
16643
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
16644
|
+
# @param [String] page_token
|
16645
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
16646
|
+
# by a previous list request to get the next page of results.
|
16647
|
+
# @param [Boolean] return_partial_success
|
16648
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
16649
|
+
# failure. The default value is false.
|
16650
|
+
# @param [String] fields
|
16651
|
+
# Selector specifying which fields to include in a partial response.
|
16652
|
+
# @param [String] quota_user
|
16653
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
16654
|
+
# characters.
|
16655
|
+
# @param [String] user_ip
|
16656
|
+
# Deprecated. Please use quotaUser instead.
|
16657
|
+
# @param [Google::Apis::RequestOptions] options
|
16658
|
+
# Request-specific options
|
16659
|
+
#
|
16660
|
+
# @yield [result, err] Result & error if block supplied
|
16661
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::MachineImageList] parsed result object
|
16662
|
+
# @yieldparam err [StandardError] error object if request failed
|
16663
|
+
#
|
16664
|
+
# @return [Google::Apis::ComputeAlpha::MachineImageList]
|
16665
|
+
#
|
16666
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16667
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16668
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16669
|
+
def list_machine_images(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16670
|
+
command = make_simple_command(:get, 'projects/{project}/global/machineImages', options)
|
16671
|
+
command.response_representation = Google::Apis::ComputeAlpha::MachineImageList::Representation
|
16672
|
+
command.response_class = Google::Apis::ComputeAlpha::MachineImageList
|
16673
|
+
command.params['project'] = project unless project.nil?
|
16674
|
+
command.query['filter'] = filter unless filter.nil?
|
16675
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
16676
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
16677
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
16678
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
16679
|
+
command.query['fields'] = fields unless fields.nil?
|
16680
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16681
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
16682
|
+
execute_or_queue_command(command, &block)
|
16683
|
+
end
|
16684
|
+
|
16685
|
+
# Sets the access control policy on the specified resource. Replaces any
|
16686
|
+
# existing policy.
|
15973
16687
|
# @param [String] project
|
15974
16688
|
# Project ID for this request.
|
15975
16689
|
# @param [String] resource
|
15976
16690
|
# Name or id of the resource for this request.
|
15977
|
-
# @param [
|
15978
|
-
# Requested IAM Policy version.
|
16691
|
+
# @param [Google::Apis::ComputeAlpha::GlobalSetPolicyRequest] global_set_policy_request_object
|
15979
16692
|
# @param [String] fields
|
15980
16693
|
# Selector specifying which fields to include in a partial response.
|
15981
16694
|
# @param [String] quota_user
|
@@ -15995,39 +16708,26 @@ module Google
|
|
15995
16708
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
15996
16709
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
15997
16710
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
15998
|
-
def
|
15999
|
-
command = make_simple_command(:
|
16711
|
+
def set_machine_image_iam_policy(project, resource, global_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16712
|
+
command = make_simple_command(:post, 'projects/{project}/global/machineImages/{resource}/setIamPolicy', options)
|
16713
|
+
command.request_representation = Google::Apis::ComputeAlpha::GlobalSetPolicyRequest::Representation
|
16714
|
+
command.request_object = global_set_policy_request_object
|
16000
16715
|
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
16001
16716
|
command.response_class = Google::Apis::ComputeAlpha::Policy
|
16002
16717
|
command.params['project'] = project unless project.nil?
|
16003
16718
|
command.params['resource'] = resource unless resource.nil?
|
16004
|
-
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
16005
16719
|
command.query['fields'] = fields unless fields.nil?
|
16006
16720
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16007
16721
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
16008
16722
|
execute_or_queue_command(command, &block)
|
16009
16723
|
end
|
16010
16724
|
|
16011
|
-
#
|
16012
|
-
# included in the request. If you are creating a new machine image to update an
|
16013
|
-
# existing instance, your new machine image should use the same network or, if
|
16014
|
-
# applicable, the same subnetwork as the original instance.
|
16725
|
+
# Returns permissions that a caller has on the specified resource.
|
16015
16726
|
# @param [String] project
|
16016
16727
|
# Project ID for this request.
|
16017
|
-
# @param [
|
16018
|
-
#
|
16019
|
-
#
|
16020
|
-
# that if you must retry your request, the server will know to ignore the
|
16021
|
-
# request if it has already been completed.
|
16022
|
-
# For example, consider a situation where you make an initial request and the
|
16023
|
-
# request times out. If you make the request again with the same request ID, the
|
16024
|
-
# server can check if original operation with the same request ID was received,
|
16025
|
-
# and if so, will ignore the second request. This prevents clients from
|
16026
|
-
# accidentally creating duplicate commitments.
|
16027
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not
|
16028
|
-
# supported (00000000-0000-0000-0000-000000000000).
|
16029
|
-
# @param [String] source_instance
|
16030
|
-
# Required. Source instance that is used to create the machine image from.
|
16728
|
+
# @param [String] resource
|
16729
|
+
# Name or id of the resource for this request.
|
16730
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
16031
16731
|
# @param [String] fields
|
16032
16732
|
# Selector specifying which fields to include in a partial response.
|
16033
16733
|
# @param [String] quota_user
|
@@ -16039,31 +16739,29 @@ module Google
|
|
16039
16739
|
# Request-specific options
|
16040
16740
|
#
|
16041
16741
|
# @yield [result, err] Result & error if block supplied
|
16042
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
16742
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
16043
16743
|
# @yieldparam err [StandardError] error object if request failed
|
16044
16744
|
#
|
16045
|
-
# @return [Google::Apis::ComputeAlpha::
|
16745
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
16046
16746
|
#
|
16047
16747
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16048
16748
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16049
16749
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16050
|
-
def
|
16051
|
-
command = make_simple_command(:post, 'projects/{project}/global/machineImages', options)
|
16052
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
16053
|
-
command.request_object =
|
16054
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
16055
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
16750
|
+
def test_machine_image_iam_permissions(project, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16751
|
+
command = make_simple_command(:post, 'projects/{project}/global/machineImages/{resource}/testIamPermissions', options)
|
16752
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
16753
|
+
command.request_object = test_permissions_request_object
|
16754
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
16755
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
16056
16756
|
command.params['project'] = project unless project.nil?
|
16057
|
-
command.
|
16058
|
-
command.query['sourceInstance'] = source_instance unless source_instance.nil?
|
16757
|
+
command.params['resource'] = resource unless resource.nil?
|
16059
16758
|
command.query['fields'] = fields unless fields.nil?
|
16060
16759
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16061
16760
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
16062
16761
|
execute_or_queue_command(command, &block)
|
16063
16762
|
end
|
16064
16763
|
|
16065
|
-
# Retrieves
|
16066
|
-
# project.
|
16764
|
+
# Retrieves an aggregated list of machine types.
|
16067
16765
|
# @param [String] project
|
16068
16766
|
# Project ID for this request.
|
16069
16767
|
# @param [String] filter
|
@@ -16083,6 +16781,13 @@ module Google
|
|
16083
16781
|
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
16084
16782
|
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
16085
16783
|
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
16784
|
+
# @param [Boolean] include_all_scopes
|
16785
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
16786
|
+
# global) should be included in the response. For new resource types added after
|
16787
|
+
# this field, the flag has no effect as new resource types will always include
|
16788
|
+
# every visible scope for each scope type in response. For resource types which
|
16789
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
16790
|
+
# types where the resource type is expected to be found will be included.
|
16086
16791
|
# @param [Fixnum] max_results
|
16087
16792
|
# The maximum number of results per page that should be returned. If the number
|
16088
16793
|
# of available results is larger than `maxResults`, Compute Engine returns a `
|
@@ -16114,20 +16819,21 @@ module Google
|
|
16114
16819
|
# Request-specific options
|
16115
16820
|
#
|
16116
16821
|
# @yield [result, err] Result & error if block supplied
|
16117
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
16822
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::MachineTypeAggregatedList] parsed result object
|
16118
16823
|
# @yieldparam err [StandardError] error object if request failed
|
16119
16824
|
#
|
16120
|
-
# @return [Google::Apis::ComputeAlpha::
|
16825
|
+
# @return [Google::Apis::ComputeAlpha::MachineTypeAggregatedList]
|
16121
16826
|
#
|
16122
16827
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16123
16828
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16124
16829
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16125
|
-
def
|
16126
|
-
command = make_simple_command(:get, 'projects/{project}/
|
16127
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
16128
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
16830
|
+
def aggregated_machine_type_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)
|
16831
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/machineTypes', options)
|
16832
|
+
command.response_representation = Google::Apis::ComputeAlpha::MachineTypeAggregatedList::Representation
|
16833
|
+
command.response_class = Google::Apis::ComputeAlpha::MachineTypeAggregatedList
|
16129
16834
|
command.params['project'] = project unless project.nil?
|
16130
16835
|
command.query['filter'] = filter unless filter.nil?
|
16836
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
16131
16837
|
command.query['maxResults'] = max_results unless max_results.nil?
|
16132
16838
|
command.query['orderBy'] = order_by unless order_by.nil?
|
16133
16839
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -16138,13 +16844,14 @@ module Google
|
|
16138
16844
|
execute_or_queue_command(command, &block)
|
16139
16845
|
end
|
16140
16846
|
|
16141
|
-
#
|
16142
|
-
#
|
16847
|
+
# Returns the specified machine type. Gets a list of available machine types by
|
16848
|
+
# making a list() request.
|
16143
16849
|
# @param [String] project
|
16144
16850
|
# Project ID for this request.
|
16145
|
-
# @param [String]
|
16146
|
-
#
|
16147
|
-
# @param [
|
16851
|
+
# @param [String] zone
|
16852
|
+
# The name of the zone for this request.
|
16853
|
+
# @param [String] machine_type
|
16854
|
+
# Name of the machine type to return.
|
16148
16855
|
# @param [String] fields
|
16149
16856
|
# Selector specifying which fields to include in a partial response.
|
16150
16857
|
# @param [String] quota_user
|
@@ -16156,34 +16863,69 @@ module Google
|
|
16156
16863
|
# Request-specific options
|
16157
16864
|
#
|
16158
16865
|
# @yield [result, err] Result & error if block supplied
|
16159
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
16866
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::MachineType] parsed result object
|
16160
16867
|
# @yieldparam err [StandardError] error object if request failed
|
16161
16868
|
#
|
16162
|
-
# @return [Google::Apis::ComputeAlpha::
|
16869
|
+
# @return [Google::Apis::ComputeAlpha::MachineType]
|
16163
16870
|
#
|
16164
16871
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16165
16872
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16166
16873
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16167
|
-
def
|
16168
|
-
command = make_simple_command(:
|
16169
|
-
command.
|
16170
|
-
command.
|
16171
|
-
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
16172
|
-
command.response_class = Google::Apis::ComputeAlpha::Policy
|
16874
|
+
def get_machine_type(project, zone, machine_type, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
16875
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/machineTypes/{machineType}', options)
|
16876
|
+
command.response_representation = Google::Apis::ComputeAlpha::MachineType::Representation
|
16877
|
+
command.response_class = Google::Apis::ComputeAlpha::MachineType
|
16173
16878
|
command.params['project'] = project unless project.nil?
|
16174
|
-
command.params['
|
16879
|
+
command.params['zone'] = zone unless zone.nil?
|
16880
|
+
command.params['machineType'] = machine_type unless machine_type.nil?
|
16175
16881
|
command.query['fields'] = fields unless fields.nil?
|
16176
16882
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16177
16883
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
16178
16884
|
execute_or_queue_command(command, &block)
|
16179
16885
|
end
|
16180
16886
|
|
16181
|
-
#
|
16887
|
+
# Retrieves a list of machine types available to the specified project.
|
16182
16888
|
# @param [String] project
|
16183
16889
|
# Project ID for this request.
|
16184
|
-
# @param [String]
|
16185
|
-
#
|
16186
|
-
# @param [
|
16890
|
+
# @param [String] zone
|
16891
|
+
# The name of the zone for this request.
|
16892
|
+
# @param [String] filter
|
16893
|
+
# A filter expression that filters resources listed in the response. The
|
16894
|
+
# expression must specify the field name, a comparison operator, and the value
|
16895
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
16896
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
16897
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
16898
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
16899
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
16900
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
16901
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
16902
|
+
# on resource labels.
|
16903
|
+
# To filter on multiple expressions, provide each separate expression within
|
16904
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
16905
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
16906
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
16907
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
16908
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
16909
|
+
# @param [Fixnum] max_results
|
16910
|
+
# The maximum number of results per page that should be returned. If the number
|
16911
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
16912
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
16913
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
16914
|
+
# @param [String] order_by
|
16915
|
+
# Sorts list results by a certain order. By default, results are returned in
|
16916
|
+
# alphanumerical order based on the resource name.
|
16917
|
+
# You can also sort results in descending order based on the creation timestamp
|
16918
|
+
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
16919
|
+
# creationTimestamp` field in reverse chronological order (newest result first).
|
16920
|
+
# Use this to sort resources like operations so that the newest operation is
|
16921
|
+
# returned first.
|
16922
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
16923
|
+
# @param [String] page_token
|
16924
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
16925
|
+
# by a previous list request to get the next page of results.
|
16926
|
+
# @param [Boolean] return_partial_success
|
16927
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
16928
|
+
# failure. The default value is false.
|
16187
16929
|
# @param [String] fields
|
16188
16930
|
# Selector specifying which fields to include in a partial response.
|
16189
16931
|
# @param [String] quota_user
|
@@ -16195,31 +16937,35 @@ module Google
|
|
16195
16937
|
# Request-specific options
|
16196
16938
|
#
|
16197
16939
|
# @yield [result, err] Result & error if block supplied
|
16198
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
16940
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::MachineTypeList] parsed result object
|
16199
16941
|
# @yieldparam err [StandardError] error object if request failed
|
16200
16942
|
#
|
16201
|
-
# @return [Google::Apis::ComputeAlpha::
|
16943
|
+
# @return [Google::Apis::ComputeAlpha::MachineTypeList]
|
16202
16944
|
#
|
16203
16945
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16204
16946
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16205
16947
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16206
|
-
def
|
16207
|
-
command = make_simple_command(:
|
16208
|
-
command.
|
16209
|
-
command.
|
16210
|
-
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
16211
|
-
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
16948
|
+
def list_machine_types(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)
|
16949
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/machineTypes', options)
|
16950
|
+
command.response_representation = Google::Apis::ComputeAlpha::MachineTypeList::Representation
|
16951
|
+
command.response_class = Google::Apis::ComputeAlpha::MachineTypeList
|
16212
16952
|
command.params['project'] = project unless project.nil?
|
16213
|
-
command.params['
|
16953
|
+
command.params['zone'] = zone unless zone.nil?
|
16954
|
+
command.query['filter'] = filter unless filter.nil?
|
16955
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
16956
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
16957
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
16958
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
16214
16959
|
command.query['fields'] = fields unless fields.nil?
|
16215
16960
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16216
16961
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
16217
16962
|
execute_or_queue_command(command, &block)
|
16218
16963
|
end
|
16219
16964
|
|
16220
|
-
# Retrieves
|
16965
|
+
# Retrieves the list of all NetworkEdgeSecurityService resources available to
|
16966
|
+
# the specified project.
|
16221
16967
|
# @param [String] project
|
16222
|
-
#
|
16968
|
+
# Name of the project scoping this request.
|
16223
16969
|
# @param [String] filter
|
16224
16970
|
# A filter expression that filters resources listed in the response. The
|
16225
16971
|
# expression must specify the field name, a comparison operator, and the value
|
@@ -16275,39 +17021,141 @@ module Google
|
|
16275
17021
|
# Request-specific options
|
16276
17022
|
#
|
16277
17023
|
# @yield [result, err] Result & error if block supplied
|
16278
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
17024
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::NetworkEdgeSecurityServiceAggregatedList] parsed result object
|
17025
|
+
# @yieldparam err [StandardError] error object if request failed
|
17026
|
+
#
|
17027
|
+
# @return [Google::Apis::ComputeAlpha::NetworkEdgeSecurityServiceAggregatedList]
|
17028
|
+
#
|
17029
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17030
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17031
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17032
|
+
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)
|
17033
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/networkEdgeSecurityServices', options)
|
17034
|
+
command.response_representation = Google::Apis::ComputeAlpha::NetworkEdgeSecurityServiceAggregatedList::Representation
|
17035
|
+
command.response_class = Google::Apis::ComputeAlpha::NetworkEdgeSecurityServiceAggregatedList
|
17036
|
+
command.params['project'] = project unless project.nil?
|
17037
|
+
command.query['filter'] = filter unless filter.nil?
|
17038
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
17039
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
17040
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
17041
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
17042
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
17043
|
+
command.query['fields'] = fields unless fields.nil?
|
17044
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17045
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17046
|
+
execute_or_queue_command(command, &block)
|
17047
|
+
end
|
17048
|
+
|
17049
|
+
# Deletes the specified service.
|
17050
|
+
# @param [String] project
|
17051
|
+
# Project ID for this request.
|
17052
|
+
# @param [String] region
|
17053
|
+
# Name of the region scoping this request.
|
17054
|
+
# @param [String] network_edge_security_service
|
17055
|
+
# Name of the network edge security service to delete.
|
17056
|
+
# @param [String] request_id
|
17057
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
17058
|
+
# that if you must retry your request, the server will know to ignore the
|
17059
|
+
# request if it has already been completed.
|
17060
|
+
# For example, consider a situation where you make an initial request and the
|
17061
|
+
# request times out. If you make the request again with the same request ID, the
|
17062
|
+
# server can check if original operation with the same request ID was received,
|
17063
|
+
# and if so, will ignore the second request. This prevents clients from
|
17064
|
+
# accidentally creating duplicate commitments.
|
17065
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
17066
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
17067
|
+
# @param [String] fields
|
17068
|
+
# Selector specifying which fields to include in a partial response.
|
17069
|
+
# @param [String] quota_user
|
17070
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
17071
|
+
# characters.
|
17072
|
+
# @param [String] user_ip
|
17073
|
+
# Deprecated. Please use quotaUser instead.
|
17074
|
+
# @param [Google::Apis::RequestOptions] options
|
17075
|
+
# Request-specific options
|
17076
|
+
#
|
17077
|
+
# @yield [result, err] Result & error if block supplied
|
17078
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
17079
|
+
# @yieldparam err [StandardError] error object if request failed
|
17080
|
+
#
|
17081
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
17082
|
+
#
|
17083
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17084
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17085
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17086
|
+
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)
|
17087
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}', options)
|
17088
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
17089
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
17090
|
+
command.params['project'] = project unless project.nil?
|
17091
|
+
command.params['region'] = region unless region.nil?
|
17092
|
+
command.params['networkEdgeSecurityService'] = network_edge_security_service unless network_edge_security_service.nil?
|
17093
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
17094
|
+
command.query['fields'] = fields unless fields.nil?
|
17095
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17096
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17097
|
+
execute_or_queue_command(command, &block)
|
17098
|
+
end
|
17099
|
+
|
17100
|
+
# Gets a specified NetworkEdgeSecurityService.
|
17101
|
+
# @param [String] project
|
17102
|
+
# Project ID for this request.
|
17103
|
+
# @param [String] region
|
17104
|
+
# Name of the region scoping this request.
|
17105
|
+
# @param [String] network_edge_security_service
|
17106
|
+
# Name of the network edge security service to get.
|
17107
|
+
# @param [String] fields
|
17108
|
+
# Selector specifying which fields to include in a partial response.
|
17109
|
+
# @param [String] quota_user
|
17110
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
17111
|
+
# characters.
|
17112
|
+
# @param [String] user_ip
|
17113
|
+
# Deprecated. Please use quotaUser instead.
|
17114
|
+
# @param [Google::Apis::RequestOptions] options
|
17115
|
+
# Request-specific options
|
17116
|
+
#
|
17117
|
+
# @yield [result, err] Result & error if block supplied
|
17118
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::NetworkEdgeSecurityService] parsed result object
|
16279
17119
|
# @yieldparam err [StandardError] error object if request failed
|
16280
17120
|
#
|
16281
|
-
# @return [Google::Apis::ComputeAlpha::
|
17121
|
+
# @return [Google::Apis::ComputeAlpha::NetworkEdgeSecurityService]
|
16282
17122
|
#
|
16283
17123
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16284
17124
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16285
17125
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16286
|
-
def
|
16287
|
-
command = make_simple_command(:get, 'projects/{project}/
|
16288
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
16289
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
17126
|
+
def get_network_edge_security_service(project, region, network_edge_security_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17127
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}', options)
|
17128
|
+
command.response_representation = Google::Apis::ComputeAlpha::NetworkEdgeSecurityService::Representation
|
17129
|
+
command.response_class = Google::Apis::ComputeAlpha::NetworkEdgeSecurityService
|
16290
17130
|
command.params['project'] = project unless project.nil?
|
16291
|
-
command.
|
16292
|
-
command.
|
16293
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
16294
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
16295
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
16296
|
-
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
17131
|
+
command.params['region'] = region unless region.nil?
|
17132
|
+
command.params['networkEdgeSecurityService'] = network_edge_security_service unless network_edge_security_service.nil?
|
16297
17133
|
command.query['fields'] = fields unless fields.nil?
|
16298
17134
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16299
17135
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
16300
17136
|
execute_or_queue_command(command, &block)
|
16301
17137
|
end
|
16302
17138
|
|
16303
|
-
#
|
16304
|
-
#
|
17139
|
+
# Creates a new service in the specified project using the data included in the
|
17140
|
+
# request.
|
16305
17141
|
# @param [String] project
|
16306
17142
|
# Project ID for this request.
|
16307
|
-
# @param [String]
|
16308
|
-
#
|
16309
|
-
# @param [
|
16310
|
-
#
|
17143
|
+
# @param [String] region
|
17144
|
+
# Name of the region scoping this request.
|
17145
|
+
# @param [Google::Apis::ComputeAlpha::NetworkEdgeSecurityService] network_edge_security_service_object
|
17146
|
+
# @param [String] request_id
|
17147
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
17148
|
+
# that if you must retry your request, the server will know to ignore the
|
17149
|
+
# request if it has already been completed.
|
17150
|
+
# For example, consider a situation where you make an initial request and the
|
17151
|
+
# request times out. If you make the request again with the same request ID, the
|
17152
|
+
# server can check if original operation with the same request ID was received,
|
17153
|
+
# and if so, will ignore the second request. This prevents clients from
|
17154
|
+
# accidentally creating duplicate commitments.
|
17155
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
17156
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
17157
|
+
# @param [Boolean] validate_only
|
17158
|
+
# If true, the request will not be committed.
|
16311
17159
|
# @param [String] fields
|
16312
17160
|
# Selector specifying which fields to include in a partial response.
|
16313
17161
|
# @param [String] quota_user
|
@@ -16319,69 +17167,51 @@ module Google
|
|
16319
17167
|
# Request-specific options
|
16320
17168
|
#
|
16321
17169
|
# @yield [result, err] Result & error if block supplied
|
16322
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
17170
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
16323
17171
|
# @yieldparam err [StandardError] error object if request failed
|
16324
17172
|
#
|
16325
|
-
# @return [Google::Apis::ComputeAlpha::
|
17173
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
16326
17174
|
#
|
16327
17175
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16328
17176
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16329
17177
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16330
|
-
def
|
16331
|
-
command = make_simple_command(:
|
16332
|
-
command.
|
16333
|
-
command.
|
17178
|
+
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)
|
17179
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkEdgeSecurityServices', options)
|
17180
|
+
command.request_representation = Google::Apis::ComputeAlpha::NetworkEdgeSecurityService::Representation
|
17181
|
+
command.request_object = network_edge_security_service_object
|
17182
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
17183
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
16334
17184
|
command.params['project'] = project unless project.nil?
|
16335
|
-
command.params['
|
16336
|
-
command.
|
17185
|
+
command.params['region'] = region unless region.nil?
|
17186
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
17187
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
16337
17188
|
command.query['fields'] = fields unless fields.nil?
|
16338
17189
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16339
17190
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
16340
17191
|
execute_or_queue_command(command, &block)
|
16341
17192
|
end
|
16342
17193
|
|
16343
|
-
#
|
17194
|
+
# Patches the specified policy with the data included in the request.
|
16344
17195
|
# @param [String] project
|
16345
17196
|
# Project ID for this request.
|
16346
|
-
# @param [String]
|
16347
|
-
#
|
16348
|
-
# @param [String]
|
16349
|
-
#
|
16350
|
-
#
|
16351
|
-
#
|
16352
|
-
#
|
16353
|
-
#
|
16354
|
-
#
|
16355
|
-
#
|
16356
|
-
#
|
16357
|
-
#
|
16358
|
-
#
|
16359
|
-
#
|
16360
|
-
#
|
16361
|
-
#
|
16362
|
-
#
|
16363
|
-
#
|
16364
|
-
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
16365
|
-
# @param [Fixnum] max_results
|
16366
|
-
# The maximum number of results per page that should be returned. If the number
|
16367
|
-
# of available results is larger than `maxResults`, Compute Engine returns a `
|
16368
|
-
# nextPageToken` that can be used to get the next page of results in subsequent
|
16369
|
-
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
16370
|
-
# @param [String] order_by
|
16371
|
-
# Sorts list results by a certain order. By default, results are returned in
|
16372
|
-
# alphanumerical order based on the resource name.
|
16373
|
-
# You can also sort results in descending order based on the creation timestamp
|
16374
|
-
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
16375
|
-
# creationTimestamp` field in reverse chronological order (newest result first).
|
16376
|
-
# Use this to sort resources like operations so that the newest operation is
|
16377
|
-
# returned first.
|
16378
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
16379
|
-
# @param [String] page_token
|
16380
|
-
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
16381
|
-
# by a previous list request to get the next page of results.
|
16382
|
-
# @param [Boolean] return_partial_success
|
16383
|
-
# Opt-in for partial success behavior which provides partial results in case of
|
16384
|
-
# failure. The default value is false.
|
17197
|
+
# @param [String] region
|
17198
|
+
# Name of the region scoping this request.
|
17199
|
+
# @param [String] network_edge_security_service
|
17200
|
+
# Name of the network edge security service to update.
|
17201
|
+
# @param [Google::Apis::ComputeAlpha::NetworkEdgeSecurityService] network_edge_security_service_object
|
17202
|
+
# @param [Array<String>, String] paths
|
17203
|
+
# The set of field mask paths.
|
17204
|
+
# @param [String] request_id
|
17205
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
17206
|
+
# that if you must retry your request, the server will know to ignore the
|
17207
|
+
# request if it has already been completed.
|
17208
|
+
# For example, consider a situation where you make an initial request and the
|
17209
|
+
# request times out. If you make the request again with the same request ID, the
|
17210
|
+
# server can check if original operation with the same request ID was received,
|
17211
|
+
# and if so, will ignore the second request. This prevents clients from
|
17212
|
+
# accidentally creating duplicate commitments.
|
17213
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
17214
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
16385
17215
|
# @param [String] fields
|
16386
17216
|
# Selector specifying which fields to include in a partial response.
|
16387
17217
|
# @param [String] quota_user
|
@@ -16393,25 +17223,25 @@ module Google
|
|
16393
17223
|
# Request-specific options
|
16394
17224
|
#
|
16395
17225
|
# @yield [result, err] Result & error if block supplied
|
16396
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
17226
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
16397
17227
|
# @yieldparam err [StandardError] error object if request failed
|
16398
17228
|
#
|
16399
|
-
# @return [Google::Apis::ComputeAlpha::
|
17229
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
16400
17230
|
#
|
16401
17231
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16402
17232
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16403
17233
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16404
|
-
def
|
16405
|
-
command = make_simple_command(:
|
16406
|
-
command.
|
16407
|
-
command.
|
17234
|
+
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)
|
17235
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/networkEdgeSecurityServices/{networkEdgeSecurityService}', options)
|
17236
|
+
command.request_representation = Google::Apis::ComputeAlpha::NetworkEdgeSecurityService::Representation
|
17237
|
+
command.request_object = network_edge_security_service_object
|
17238
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
17239
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
16408
17240
|
command.params['project'] = project unless project.nil?
|
16409
|
-
command.params['
|
16410
|
-
command.
|
16411
|
-
command.query['
|
16412
|
-
command.query['
|
16413
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
16414
|
-
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
17241
|
+
command.params['region'] = region unless region.nil?
|
17242
|
+
command.params['networkEdgeSecurityService'] = network_edge_security_service unless network_edge_security_service.nil?
|
17243
|
+
command.query['paths'] = paths unless paths.nil?
|
17244
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
16415
17245
|
command.query['fields'] = fields unless fields.nil?
|
16416
17246
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16417
17247
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -17033,6 +17863,12 @@ module Google
|
|
17033
17863
|
# @param [String] firewall_policy
|
17034
17864
|
# Name of the firewall policy to update.
|
17035
17865
|
# @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
|
17866
|
+
# @param [Fixnum] max_priority
|
17867
|
+
# When rule.priority is not specified, auto choose a unused priority between
|
17868
|
+
# minPriority and maxPriority>. This field is exclusive with rule.priority.
|
17869
|
+
# @param [Fixnum] min_priority
|
17870
|
+
# When rule.priority is not specified, auto choose a unused priority between
|
17871
|
+
# minPriority and maxPriority>. This field is exclusive with rule.priority.
|
17036
17872
|
# @param [String] request_id
|
17037
17873
|
# An optional request ID to identify requests. Specify a unique request ID so
|
17038
17874
|
# that if you must retry your request, the server will know to ignore the
|
@@ -17063,7 +17899,7 @@ module Google
|
|
17063
17899
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17064
17900
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17065
17901
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17066
|
-
def add_network_firewall_policy_rule(project, firewall_policy, firewall_policy_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17902
|
+
def add_network_firewall_policy_rule(project, firewall_policy, firewall_policy_rule_object = nil, max_priority: nil, min_priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
17067
17903
|
command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule', options)
|
17068
17904
|
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
|
17069
17905
|
command.request_object = firewall_policy_rule_object
|
@@ -17071,6 +17907,8 @@ module Google
|
|
17071
17907
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
17072
17908
|
command.params['project'] = project unless project.nil?
|
17073
17909
|
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
17910
|
+
command.query['maxPriority'] = max_priority unless max_priority.nil?
|
17911
|
+
command.query['minPriority'] = min_priority unless min_priority.nil?
|
17074
17912
|
command.query['requestId'] = request_id unless request_id.nil?
|
17075
17913
|
command.query['fields'] = fields unless fields.nil?
|
17076
17914
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -22843,6 +23681,49 @@ module Google
|
|
22843
23681
|
execute_or_queue_command(command, &block)
|
22844
23682
|
end
|
22845
23683
|
|
23684
|
+
# Gets the access control policy for a resource. May be empty if no such policy
|
23685
|
+
# or resource exists.
|
23686
|
+
# @param [String] project
|
23687
|
+
# Project ID for this request.
|
23688
|
+
# @param [String] region
|
23689
|
+
# The name of the region for this request.
|
23690
|
+
# @param [String] resource
|
23691
|
+
# Name or id of the resource for this request.
|
23692
|
+
# @param [Fixnum] options_requested_policy_version
|
23693
|
+
# Requested IAM Policy version.
|
23694
|
+
# @param [String] fields
|
23695
|
+
# Selector specifying which fields to include in a partial response.
|
23696
|
+
# @param [String] quota_user
|
23697
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
23698
|
+
# characters.
|
23699
|
+
# @param [String] user_ip
|
23700
|
+
# Deprecated. Please use quotaUser instead.
|
23701
|
+
# @param [Google::Apis::RequestOptions] options
|
23702
|
+
# Request-specific options
|
23703
|
+
#
|
23704
|
+
# @yield [result, err] Result & error if block supplied
|
23705
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
23706
|
+
# @yieldparam err [StandardError] error object if request failed
|
23707
|
+
#
|
23708
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
23709
|
+
#
|
23710
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
23711
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
23712
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
23713
|
+
def get_region_backend_service_iam_policy(project, region, resource, options_requested_policy_version: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
23714
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/backendServices/{resource}/getIamPolicy', options)
|
23715
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
23716
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
23717
|
+
command.params['project'] = project unless project.nil?
|
23718
|
+
command.params['region'] = region unless region.nil?
|
23719
|
+
command.params['resource'] = resource unless resource.nil?
|
23720
|
+
command.query['optionsRequestedPolicyVersion'] = options_requested_policy_version unless options_requested_policy_version.nil?
|
23721
|
+
command.query['fields'] = fields unless fields.nil?
|
23722
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
23723
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
23724
|
+
execute_or_queue_command(command, &block)
|
23725
|
+
end
|
23726
|
+
|
22846
23727
|
# Creates a regional BackendService resource in the specified project using the
|
22847
23728
|
# data included in the request. For more information, see Backend services
|
22848
23729
|
# overview.
|
@@ -23032,6 +23913,49 @@ module Google
|
|
23032
23913
|
execute_or_queue_command(command, &block)
|
23033
23914
|
end
|
23034
23915
|
|
23916
|
+
# Sets the access control policy on the specified resource. Replaces any
|
23917
|
+
# existing policy.
|
23918
|
+
# @param [String] project
|
23919
|
+
# Project ID for this request.
|
23920
|
+
# @param [String] region
|
23921
|
+
# The name of the region for this request.
|
23922
|
+
# @param [String] resource
|
23923
|
+
# Name or id of the resource for this request.
|
23924
|
+
# @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
|
23925
|
+
# @param [String] fields
|
23926
|
+
# Selector specifying which fields to include in a partial response.
|
23927
|
+
# @param [String] quota_user
|
23928
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
23929
|
+
# characters.
|
23930
|
+
# @param [String] user_ip
|
23931
|
+
# Deprecated. Please use quotaUser instead.
|
23932
|
+
# @param [Google::Apis::RequestOptions] options
|
23933
|
+
# Request-specific options
|
23934
|
+
#
|
23935
|
+
# @yield [result, err] Result & error if block supplied
|
23936
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
23937
|
+
# @yieldparam err [StandardError] error object if request failed
|
23938
|
+
#
|
23939
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
23940
|
+
#
|
23941
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
23942
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
23943
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
23944
|
+
def set_region_backend_service_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
23945
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/backendServices/{resource}/setIamPolicy', options)
|
23946
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
|
23947
|
+
command.request_object = region_set_policy_request_object
|
23948
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
23949
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
23950
|
+
command.params['project'] = project unless project.nil?
|
23951
|
+
command.params['region'] = region unless region.nil?
|
23952
|
+
command.params['resource'] = resource unless resource.nil?
|
23953
|
+
command.query['fields'] = fields unless fields.nil?
|
23954
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
23955
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
23956
|
+
execute_or_queue_command(command, &block)
|
23957
|
+
end
|
23958
|
+
|
23035
23959
|
# Returns permissions that a caller has on the specified resource.
|
23036
23960
|
# @param [String] project
|
23037
23961
|
# Project ID for this request.
|
@@ -23417,7 +24341,66 @@ module Google
|
|
23417
24341
|
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
23418
24342
|
command.params['project'] = project unless project.nil?
|
23419
24343
|
command.params['region'] = region unless region.nil?
|
23420
|
-
command.params['resource'] = resource unless resource.nil?
|
24344
|
+
command.params['resource'] = resource unless resource.nil?
|
24345
|
+
command.query['fields'] = fields unless fields.nil?
|
24346
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
24347
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
24348
|
+
execute_or_queue_command(command, &block)
|
24349
|
+
end
|
24350
|
+
|
24351
|
+
# Updates the specified commitment with the data included in the request. Update
|
24352
|
+
# is performed only on selected fields included as part of update-mask. Only the
|
24353
|
+
# following fields can be modified: auto_renew.
|
24354
|
+
# @param [String] project
|
24355
|
+
# Project ID for this request.
|
24356
|
+
# @param [String] region
|
24357
|
+
# Name of the region for this request.
|
24358
|
+
# @param [String] commitment
|
24359
|
+
# Name of the commitment for which auto renew is being updated.
|
24360
|
+
# @param [Google::Apis::ComputeAlpha::Commitment] commitment_object
|
24361
|
+
# @param [Array<String>, String] paths
|
24362
|
+
# The set of field mask paths.
|
24363
|
+
# @param [String] request_id
|
24364
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
24365
|
+
# that if you must retry your request, the server will know to ignore the
|
24366
|
+
# request if it has already been completed.
|
24367
|
+
# For example, consider a situation where you make an initial request and the
|
24368
|
+
# request times out. If you make the request again with the same request ID, the
|
24369
|
+
# server can check if original operation with the same request ID was received,
|
24370
|
+
# and if so, will ignore the second request. This prevents clients from
|
24371
|
+
# accidentally creating duplicate commitments.
|
24372
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
24373
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
24374
|
+
# @param [String] fields
|
24375
|
+
# Selector specifying which fields to include in a partial response.
|
24376
|
+
# @param [String] quota_user
|
24377
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
24378
|
+
# characters.
|
24379
|
+
# @param [String] user_ip
|
24380
|
+
# Deprecated. Please use quotaUser instead.
|
24381
|
+
# @param [Google::Apis::RequestOptions] options
|
24382
|
+
# Request-specific options
|
24383
|
+
#
|
24384
|
+
# @yield [result, err] Result & error if block supplied
|
24385
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
24386
|
+
# @yieldparam err [StandardError] error object if request failed
|
24387
|
+
#
|
24388
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
24389
|
+
#
|
24390
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
24391
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
24392
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
24393
|
+
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)
|
24394
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/commitments/{commitment}', options)
|
24395
|
+
command.request_representation = Google::Apis::ComputeAlpha::Commitment::Representation
|
24396
|
+
command.request_object = commitment_object
|
24397
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
24398
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
24399
|
+
command.params['project'] = project unless project.nil?
|
24400
|
+
command.params['region'] = region unless region.nil?
|
24401
|
+
command.params['commitment'] = commitment unless commitment.nil?
|
24402
|
+
command.query['paths'] = paths unless paths.nil?
|
24403
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
23421
24404
|
command.query['fields'] = fields unless fields.nil?
|
23422
24405
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
23423
24406
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -27426,6 +28409,46 @@ module Google
|
|
27426
28409
|
execute_or_queue_command(command, &block)
|
27427
28410
|
end
|
27428
28411
|
|
28412
|
+
# Returns recommended locations (zones in a region) for specified sets of
|
28413
|
+
# homogenous instances.
|
28414
|
+
# @param [String] project
|
28415
|
+
# Project ID for this request.
|
28416
|
+
# @param [String] region
|
28417
|
+
# The name of the region for this request.
|
28418
|
+
# @param [Google::Apis::ComputeAlpha::RegionInstancesRecommendLocationsResource] region_instances_recommend_locations_resource_object
|
28419
|
+
# @param [String] fields
|
28420
|
+
# Selector specifying which fields to include in a partial response.
|
28421
|
+
# @param [String] quota_user
|
28422
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
28423
|
+
# characters.
|
28424
|
+
# @param [String] user_ip
|
28425
|
+
# Deprecated. Please use quotaUser instead.
|
28426
|
+
# @param [Google::Apis::RequestOptions] options
|
28427
|
+
# Request-specific options
|
28428
|
+
#
|
28429
|
+
# @yield [result, err] Result & error if block supplied
|
28430
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::RegionInstancesRecommendLocationsResponse] parsed result object
|
28431
|
+
# @yieldparam err [StandardError] error object if request failed
|
28432
|
+
#
|
28433
|
+
# @return [Google::Apis::ComputeAlpha::RegionInstancesRecommendLocationsResponse]
|
28434
|
+
#
|
28435
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28436
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28437
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28438
|
+
def recommend_region_instance_locations(project, region, region_instances_recommend_locations_resource_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28439
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instances/recommendLocations', options)
|
28440
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionInstancesRecommendLocationsResource::Representation
|
28441
|
+
command.request_object = region_instances_recommend_locations_resource_object
|
28442
|
+
command.response_representation = Google::Apis::ComputeAlpha::RegionInstancesRecommendLocationsResponse::Representation
|
28443
|
+
command.response_class = Google::Apis::ComputeAlpha::RegionInstancesRecommendLocationsResponse
|
28444
|
+
command.params['project'] = project unless project.nil?
|
28445
|
+
command.params['region'] = region unless region.nil?
|
28446
|
+
command.query['fields'] = fields unless fields.nil?
|
28447
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28448
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28449
|
+
execute_or_queue_command(command, &block)
|
28450
|
+
end
|
28451
|
+
|
27429
28452
|
# Deletes the specified InstantSnapshot resource. Keep in mind that deleting a
|
27430
28453
|
# single instantSnapshot might not necessarily delete all the data on that
|
27431
28454
|
# instantSnapshot. If any data on the instantSnapshot that is marked for
|
@@ -28184,6 +29207,12 @@ module Google
|
|
28184
29207
|
# @param [String] firewall_policy
|
28185
29208
|
# Name of the firewall policy to update.
|
28186
29209
|
# @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
|
29210
|
+
# @param [Fixnum] max_priority
|
29211
|
+
# When rule.priority is not specified, auto choose a unused priority between
|
29212
|
+
# minPriority and maxPriority>. This field is exclusive with rule.priority.
|
29213
|
+
# @param [Fixnum] min_priority
|
29214
|
+
# When rule.priority is not specified, auto choose a unused priority between
|
29215
|
+
# minPriority and maxPriority>. This field is exclusive with rule.priority.
|
28187
29216
|
# @param [String] request_id
|
28188
29217
|
# An optional request ID to identify requests. Specify a unique request ID so
|
28189
29218
|
# that if you must retry your request, the server will know to ignore the
|
@@ -28214,7 +29243,7 @@ module Google
|
|
28214
29243
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28215
29244
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28216
29245
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28217
|
-
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)
|
29246
|
+
def add_region_network_firewall_policy_rule(project, region, firewall_policy, firewall_policy_rule_object = nil, max_priority: nil, min_priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28218
29247
|
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addRule', options)
|
28219
29248
|
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
|
28220
29249
|
command.request_object = firewall_policy_rule_object
|
@@ -28223,6 +29252,8 @@ module Google
|
|
28223
29252
|
command.params['project'] = project unless project.nil?
|
28224
29253
|
command.params['region'] = region unless region.nil?
|
28225
29254
|
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
29255
|
+
command.query['maxPriority'] = max_priority unless max_priority.nil?
|
29256
|
+
command.query['minPriority'] = min_priority unless min_priority.nil?
|
28226
29257
|
command.query['requestId'] = request_id unless request_id.nil?
|
28227
29258
|
command.query['fields'] = fields unless fields.nil?
|
28228
29259
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -29214,39 +30245,294 @@ module Google
|
|
29214
30245
|
# Request-specific options
|
29215
30246
|
#
|
29216
30247
|
# @yield [result, err] Result & error if block supplied
|
29217
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::NotificationEndpointList] parsed result object
|
30248
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::NotificationEndpointList] parsed result object
|
30249
|
+
# @yieldparam err [StandardError] error object if request failed
|
30250
|
+
#
|
30251
|
+
# @return [Google::Apis::ComputeAlpha::NotificationEndpointList]
|
30252
|
+
#
|
30253
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30254
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30255
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30256
|
+
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)
|
30257
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/notificationEndpoints', options)
|
30258
|
+
command.response_representation = Google::Apis::ComputeAlpha::NotificationEndpointList::Representation
|
30259
|
+
command.response_class = Google::Apis::ComputeAlpha::NotificationEndpointList
|
30260
|
+
command.params['project'] = project unless project.nil?
|
30261
|
+
command.params['region'] = region unless region.nil?
|
30262
|
+
command.query['filter'] = filter unless filter.nil?
|
30263
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
30264
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
30265
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
30266
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
30267
|
+
command.query['fields'] = fields unless fields.nil?
|
30268
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30269
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30270
|
+
execute_or_queue_command(command, &block)
|
30271
|
+
end
|
30272
|
+
|
30273
|
+
# Returns permissions that a caller has on the specified resource.
|
30274
|
+
# @param [String] project
|
30275
|
+
# Project ID for this request.
|
30276
|
+
# @param [String] region
|
30277
|
+
# The name of the region for this request.
|
30278
|
+
# @param [String] resource
|
30279
|
+
# Name or id of the resource for this request.
|
30280
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
30281
|
+
# @param [String] fields
|
30282
|
+
# Selector specifying which fields to include in a partial response.
|
30283
|
+
# @param [String] quota_user
|
30284
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
30285
|
+
# characters.
|
30286
|
+
# @param [String] user_ip
|
30287
|
+
# Deprecated. Please use quotaUser instead.
|
30288
|
+
# @param [Google::Apis::RequestOptions] options
|
30289
|
+
# Request-specific options
|
30290
|
+
#
|
30291
|
+
# @yield [result, err] Result & error if block supplied
|
30292
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
30293
|
+
# @yieldparam err [StandardError] error object if request failed
|
30294
|
+
#
|
30295
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
30296
|
+
#
|
30297
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30298
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30299
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30300
|
+
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)
|
30301
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/notificationEndpoints/{resource}/testIamPermissions', options)
|
30302
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
30303
|
+
command.request_object = test_permissions_request_object
|
30304
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
30305
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
30306
|
+
command.params['project'] = project unless project.nil?
|
30307
|
+
command.params['region'] = region unless region.nil?
|
30308
|
+
command.params['resource'] = resource unless resource.nil?
|
30309
|
+
command.query['fields'] = fields unless fields.nil?
|
30310
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30311
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30312
|
+
execute_or_queue_command(command, &block)
|
30313
|
+
end
|
30314
|
+
|
30315
|
+
# Deletes the specified region-specific Operations resource.
|
30316
|
+
# @param [String] project
|
30317
|
+
# Project ID for this request.
|
30318
|
+
# @param [String] region
|
30319
|
+
# Name of the region for this request.
|
30320
|
+
# @param [String] operation
|
30321
|
+
# Name of the Operations resource to delete.
|
30322
|
+
# @param [String] fields
|
30323
|
+
# Selector specifying which fields to include in a partial response.
|
30324
|
+
# @param [String] quota_user
|
30325
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
30326
|
+
# characters.
|
30327
|
+
# @param [String] user_ip
|
30328
|
+
# Deprecated. Please use quotaUser instead.
|
30329
|
+
# @param [Google::Apis::RequestOptions] options
|
30330
|
+
# Request-specific options
|
30331
|
+
#
|
30332
|
+
# @yield [result, err] Result & error if block supplied
|
30333
|
+
# @yieldparam result [NilClass] No result returned for this method
|
30334
|
+
# @yieldparam err [StandardError] error object if request failed
|
30335
|
+
#
|
30336
|
+
# @return [void]
|
30337
|
+
#
|
30338
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30339
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30340
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30341
|
+
def delete_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30342
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/operations/{operation}', options)
|
30343
|
+
command.params['project'] = project unless project.nil?
|
30344
|
+
command.params['region'] = region unless region.nil?
|
30345
|
+
command.params['operation'] = operation unless operation.nil?
|
30346
|
+
command.query['fields'] = fields unless fields.nil?
|
30347
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30348
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30349
|
+
execute_or_queue_command(command, &block)
|
30350
|
+
end
|
30351
|
+
|
30352
|
+
# Retrieves the specified region-specific Operations resource.
|
30353
|
+
# @param [String] project
|
30354
|
+
# Project ID for this request.
|
30355
|
+
# @param [String] region
|
30356
|
+
# Name of the region for this request.
|
30357
|
+
# @param [String] operation
|
30358
|
+
# Name of the Operations resource to return.
|
30359
|
+
# @param [String] fields
|
30360
|
+
# Selector specifying which fields to include in a partial response.
|
30361
|
+
# @param [String] quota_user
|
30362
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
30363
|
+
# characters.
|
30364
|
+
# @param [String] user_ip
|
30365
|
+
# Deprecated. Please use quotaUser instead.
|
30366
|
+
# @param [Google::Apis::RequestOptions] options
|
30367
|
+
# Request-specific options
|
30368
|
+
#
|
30369
|
+
# @yield [result, err] Result & error if block supplied
|
30370
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
30371
|
+
# @yieldparam err [StandardError] error object if request failed
|
30372
|
+
#
|
30373
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
30374
|
+
#
|
30375
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30376
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30377
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30378
|
+
def get_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30379
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/operations/{operation}', options)
|
30380
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
30381
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
30382
|
+
command.params['project'] = project unless project.nil?
|
30383
|
+
command.params['region'] = region unless region.nil?
|
30384
|
+
command.params['operation'] = operation unless operation.nil?
|
30385
|
+
command.query['fields'] = fields unless fields.nil?
|
30386
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30387
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30388
|
+
execute_or_queue_command(command, &block)
|
30389
|
+
end
|
30390
|
+
|
30391
|
+
# Retrieves a list of Operation resources contained within the specified region.
|
30392
|
+
# @param [String] project
|
30393
|
+
# Project ID for this request.
|
30394
|
+
# @param [String] region
|
30395
|
+
# Name of the region for this request.
|
30396
|
+
# @param [String] filter
|
30397
|
+
# A filter expression that filters resources listed in the response. The
|
30398
|
+
# expression must specify the field name, a comparison operator, and the value
|
30399
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
30400
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
30401
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
30402
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
30403
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
30404
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
30405
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
30406
|
+
# on resource labels.
|
30407
|
+
# To filter on multiple expressions, provide each separate expression within
|
30408
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
30409
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
30410
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
30411
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
30412
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
30413
|
+
# @param [Fixnum] max_results
|
30414
|
+
# The maximum number of results per page that should be returned. If the number
|
30415
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
30416
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
30417
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
30418
|
+
# @param [String] order_by
|
30419
|
+
# Sorts list results by a certain order. By default, results are returned in
|
30420
|
+
# alphanumerical order based on the resource name.
|
30421
|
+
# You can also sort results in descending order based on the creation timestamp
|
30422
|
+
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
30423
|
+
# creationTimestamp` field in reverse chronological order (newest result first).
|
30424
|
+
# Use this to sort resources like operations so that the newest operation is
|
30425
|
+
# returned first.
|
30426
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
30427
|
+
# @param [String] page_token
|
30428
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
30429
|
+
# by a previous list request to get the next page of results.
|
30430
|
+
# @param [Boolean] return_partial_success
|
30431
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
30432
|
+
# failure. The default value is false.
|
30433
|
+
# @param [String] fields
|
30434
|
+
# Selector specifying which fields to include in a partial response.
|
30435
|
+
# @param [String] quota_user
|
30436
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
30437
|
+
# characters.
|
30438
|
+
# @param [String] user_ip
|
30439
|
+
# Deprecated. Please use quotaUser instead.
|
30440
|
+
# @param [Google::Apis::RequestOptions] options
|
30441
|
+
# Request-specific options
|
30442
|
+
#
|
30443
|
+
# @yield [result, err] Result & error if block supplied
|
30444
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::OperationList] parsed result object
|
30445
|
+
# @yieldparam err [StandardError] error object if request failed
|
30446
|
+
#
|
30447
|
+
# @return [Google::Apis::ComputeAlpha::OperationList]
|
30448
|
+
#
|
30449
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30450
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30451
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30452
|
+
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)
|
30453
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/operations', options)
|
30454
|
+
command.response_representation = Google::Apis::ComputeAlpha::OperationList::Representation
|
30455
|
+
command.response_class = Google::Apis::ComputeAlpha::OperationList
|
30456
|
+
command.params['project'] = project unless project.nil?
|
30457
|
+
command.params['region'] = region unless region.nil?
|
30458
|
+
command.query['filter'] = filter unless filter.nil?
|
30459
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
30460
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
30461
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
30462
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
30463
|
+
command.query['fields'] = fields unless fields.nil?
|
30464
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30465
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30466
|
+
execute_or_queue_command(command, &block)
|
30467
|
+
end
|
30468
|
+
|
30469
|
+
# Waits for the specified Operation resource to return as `DONE` or for the
|
30470
|
+
# request to approach the 2 minute deadline, and retrieves the specified
|
30471
|
+
# Operation resource. This method differs from the `GET` method in that it waits
|
30472
|
+
# for no more than the default deadline (2 minutes) and then returns the current
|
30473
|
+
# state of the operation, which might be `DONE` or still in progress.
|
30474
|
+
# This method is called on a best-effort basis. Specifically:
|
30475
|
+
# - In uncommon cases, when the server is overloaded, the request might return
|
30476
|
+
# before the default deadline is reached, or might return after zero seconds.
|
30477
|
+
# - If the default deadline is reached, there is no guarantee that the operation
|
30478
|
+
# is actually done when the method returns. Be prepared to retry if the
|
30479
|
+
# operation is not `DONE`.
|
30480
|
+
# @param [String] project
|
30481
|
+
# Project ID for this request.
|
30482
|
+
# @param [String] region
|
30483
|
+
# Name of the region for this request.
|
30484
|
+
# @param [String] operation
|
30485
|
+
# Name of the Operations resource to return.
|
30486
|
+
# @param [String] fields
|
30487
|
+
# Selector specifying which fields to include in a partial response.
|
30488
|
+
# @param [String] quota_user
|
30489
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
30490
|
+
# characters.
|
30491
|
+
# @param [String] user_ip
|
30492
|
+
# Deprecated. Please use quotaUser instead.
|
30493
|
+
# @param [Google::Apis::RequestOptions] options
|
30494
|
+
# Request-specific options
|
30495
|
+
#
|
30496
|
+
# @yield [result, err] Result & error if block supplied
|
30497
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
29218
30498
|
# @yieldparam err [StandardError] error object if request failed
|
29219
30499
|
#
|
29220
|
-
# @return [Google::Apis::ComputeAlpha::
|
30500
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
29221
30501
|
#
|
29222
30502
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29223
30503
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29224
30504
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29225
|
-
def
|
29226
|
-
command = make_simple_command(:
|
29227
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
29228
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
30505
|
+
def wait_region_operation(project, region, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30506
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/operations/{operation}/wait', options)
|
30507
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
30508
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
29229
30509
|
command.params['project'] = project unless project.nil?
|
29230
30510
|
command.params['region'] = region unless region.nil?
|
29231
|
-
command.
|
29232
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
29233
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
29234
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
29235
|
-
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
30511
|
+
command.params['operation'] = operation unless operation.nil?
|
29236
30512
|
command.query['fields'] = fields unless fields.nil?
|
29237
30513
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29238
30514
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
29239
30515
|
execute_or_queue_command(command, &block)
|
29240
30516
|
end
|
29241
30517
|
|
29242
|
-
#
|
30518
|
+
# Deletes the specified policy.
|
29243
30519
|
# @param [String] project
|
29244
30520
|
# Project ID for this request.
|
29245
30521
|
# @param [String] region
|
29246
|
-
#
|
29247
|
-
# @param [String]
|
29248
|
-
# Name
|
29249
|
-
# @param [
|
30522
|
+
# Name of the region scoping this request.
|
30523
|
+
# @param [String] security_policy
|
30524
|
+
# Name of the security policy to delete.
|
30525
|
+
# @param [String] request_id
|
30526
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
30527
|
+
# that if you must retry your request, the server will know to ignore the
|
30528
|
+
# request if it has already been completed.
|
30529
|
+
# For example, consider a situation where you make an initial request and the
|
30530
|
+
# request times out. If you make the request again with the same request ID, the
|
30531
|
+
# server can check if original operation with the same request ID was received,
|
30532
|
+
# and if so, will ignore the second request. This prevents clients from
|
30533
|
+
# accidentally creating duplicate commitments.
|
30534
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
30535
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
29250
30536
|
# @param [String] fields
|
29251
30537
|
# Selector specifying which fields to include in a partial response.
|
29252
30538
|
# @param [String] quota_user
|
@@ -29258,36 +30544,35 @@ module Google
|
|
29258
30544
|
# Request-specific options
|
29259
30545
|
#
|
29260
30546
|
# @yield [result, err] Result & error if block supplied
|
29261
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
30547
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
29262
30548
|
# @yieldparam err [StandardError] error object if request failed
|
29263
30549
|
#
|
29264
|
-
# @return [Google::Apis::ComputeAlpha::
|
30550
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
29265
30551
|
#
|
29266
30552
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29267
30553
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29268
30554
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29269
|
-
def
|
29270
|
-
command = make_simple_command(:
|
29271
|
-
command.
|
29272
|
-
command.
|
29273
|
-
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
29274
|
-
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
30555
|
+
def delete_region_security_policy(project, region, security_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30556
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
|
30557
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
30558
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
29275
30559
|
command.params['project'] = project unless project.nil?
|
29276
30560
|
command.params['region'] = region unless region.nil?
|
29277
|
-
command.params['
|
30561
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
30562
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
29278
30563
|
command.query['fields'] = fields unless fields.nil?
|
29279
30564
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29280
30565
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
29281
30566
|
execute_or_queue_command(command, &block)
|
29282
30567
|
end
|
29283
30568
|
|
29284
|
-
#
|
30569
|
+
# List all of the ordered rules present in a single specified policy.
|
29285
30570
|
# @param [String] project
|
29286
30571
|
# Project ID for this request.
|
29287
30572
|
# @param [String] region
|
29288
|
-
# Name of the region
|
29289
|
-
# @param [String]
|
29290
|
-
# Name of the
|
30573
|
+
# Name of the region scoping this request.
|
30574
|
+
# @param [String] security_policy
|
30575
|
+
# Name of the security policy to get.
|
29291
30576
|
# @param [String] fields
|
29292
30577
|
# Selector specifying which fields to include in a partial response.
|
29293
30578
|
# @param [String] quota_user
|
@@ -29299,32 +30584,47 @@ module Google
|
|
29299
30584
|
# Request-specific options
|
29300
30585
|
#
|
29301
30586
|
# @yield [result, err] Result & error if block supplied
|
29302
|
-
# @yieldparam result [
|
30587
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::SecurityPolicy] parsed result object
|
29303
30588
|
# @yieldparam err [StandardError] error object if request failed
|
29304
30589
|
#
|
29305
|
-
# @return [
|
30590
|
+
# @return [Google::Apis::ComputeAlpha::SecurityPolicy]
|
29306
30591
|
#
|
29307
30592
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29308
30593
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29309
30594
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29310
|
-
def
|
29311
|
-
command = make_simple_command(:
|
30595
|
+
def get_region_security_policy(project, region, security_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
30596
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
|
30597
|
+
command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
|
30598
|
+
command.response_class = Google::Apis::ComputeAlpha::SecurityPolicy
|
29312
30599
|
command.params['project'] = project unless project.nil?
|
29313
30600
|
command.params['region'] = region unless region.nil?
|
29314
|
-
command.params['
|
30601
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
29315
30602
|
command.query['fields'] = fields unless fields.nil?
|
29316
30603
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29317
30604
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
29318
30605
|
execute_or_queue_command(command, &block)
|
29319
30606
|
end
|
29320
30607
|
|
29321
|
-
#
|
30608
|
+
# Creates a new policy in the specified project using the data included in the
|
30609
|
+
# request.
|
29322
30610
|
# @param [String] project
|
29323
30611
|
# Project ID for this request.
|
29324
30612
|
# @param [String] region
|
29325
|
-
# Name of the region
|
29326
|
-
# @param [
|
29327
|
-
#
|
30613
|
+
# Name of the region scoping this request.
|
30614
|
+
# @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
|
30615
|
+
# @param [String] request_id
|
30616
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
30617
|
+
# that if you must retry your request, the server will know to ignore the
|
30618
|
+
# request if it has already been completed.
|
30619
|
+
# For example, consider a situation where you make an initial request and the
|
30620
|
+
# request times out. If you make the request again with the same request ID, the
|
30621
|
+
# server can check if original operation with the same request ID was received,
|
30622
|
+
# and if so, will ignore the second request. This prevents clients from
|
30623
|
+
# accidentally creating duplicate commitments.
|
30624
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
30625
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
30626
|
+
# @param [Boolean] validate_only
|
30627
|
+
# If true, the request will not be committed.
|
29328
30628
|
# @param [String] fields
|
29329
30629
|
# Selector specifying which fields to include in a partial response.
|
29330
30630
|
# @param [String] quota_user
|
@@ -29344,24 +30644,28 @@ module Google
|
|
29344
30644
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29345
30645
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29346
30646
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29347
|
-
def
|
29348
|
-
command = make_simple_command(:
|
30647
|
+
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)
|
30648
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies', options)
|
30649
|
+
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
|
30650
|
+
command.request_object = security_policy_object
|
29349
30651
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
29350
30652
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
29351
30653
|
command.params['project'] = project unless project.nil?
|
29352
30654
|
command.params['region'] = region unless region.nil?
|
29353
|
-
command.
|
30655
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
30656
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
29354
30657
|
command.query['fields'] = fields unless fields.nil?
|
29355
30658
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29356
30659
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
29357
30660
|
execute_or_queue_command(command, &block)
|
29358
30661
|
end
|
29359
30662
|
|
29360
|
-
#
|
30663
|
+
# List all the policies that have been configured for the specified project and
|
30664
|
+
# region.
|
29361
30665
|
# @param [String] project
|
29362
30666
|
# Project ID for this request.
|
29363
30667
|
# @param [String] region
|
29364
|
-
# Name of the region
|
30668
|
+
# Name of the region scoping this request.
|
29365
30669
|
# @param [String] filter
|
29366
30670
|
# A filter expression that filters resources listed in the response. The
|
29367
30671
|
# expression must specify the field name, a comparison operator, and the value
|
@@ -29410,18 +30714,18 @@ module Google
|
|
29410
30714
|
# Request-specific options
|
29411
30715
|
#
|
29412
30716
|
# @yield [result, err] Result & error if block supplied
|
29413
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
30717
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::SecurityPolicyList] parsed result object
|
29414
30718
|
# @yieldparam err [StandardError] error object if request failed
|
29415
30719
|
#
|
29416
|
-
# @return [Google::Apis::ComputeAlpha::
|
30720
|
+
# @return [Google::Apis::ComputeAlpha::SecurityPolicyList]
|
29417
30721
|
#
|
29418
30722
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29419
30723
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29420
30724
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29421
|
-
def
|
29422
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/
|
29423
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
29424
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
30725
|
+
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)
|
30726
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/securityPolicies', options)
|
30727
|
+
command.response_representation = Google::Apis::ComputeAlpha::SecurityPolicyList::Representation
|
30728
|
+
command.response_class = Google::Apis::ComputeAlpha::SecurityPolicyList
|
29425
30729
|
command.params['project'] = project unless project.nil?
|
29426
30730
|
command.params['region'] = region unless region.nil?
|
29427
30731
|
command.query['filter'] = filter unless filter.nil?
|
@@ -29435,23 +30739,25 @@ module Google
|
|
29435
30739
|
execute_or_queue_command(command, &block)
|
29436
30740
|
end
|
29437
30741
|
|
29438
|
-
#
|
29439
|
-
# request to approach the 2 minute deadline, and retrieves the specified
|
29440
|
-
# Operation resource. This method differs from the `GET` method in that it waits
|
29441
|
-
# for no more than the default deadline (2 minutes) and then returns the current
|
29442
|
-
# state of the operation, which might be `DONE` or still in progress.
|
29443
|
-
# This method is called on a best-effort basis. Specifically:
|
29444
|
-
# - In uncommon cases, when the server is overloaded, the request might return
|
29445
|
-
# before the default deadline is reached, or might return after zero seconds.
|
29446
|
-
# - If the default deadline is reached, there is no guarantee that the operation
|
29447
|
-
# is actually done when the method returns. Be prepared to retry if the
|
29448
|
-
# operation is not `DONE`.
|
30742
|
+
# Patches the specified policy with the data included in the request.
|
29449
30743
|
# @param [String] project
|
29450
30744
|
# Project ID for this request.
|
29451
30745
|
# @param [String] region
|
29452
|
-
# Name of the region
|
29453
|
-
# @param [String]
|
29454
|
-
# Name of the
|
30746
|
+
# Name of the region scoping this request.
|
30747
|
+
# @param [String] security_policy
|
30748
|
+
# Name of the security policy to update.
|
30749
|
+
# @param [Google::Apis::ComputeAlpha::SecurityPolicy] security_policy_object
|
30750
|
+
# @param [String] request_id
|
30751
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
30752
|
+
# that if you must retry your request, the server will know to ignore the
|
30753
|
+
# request if it has already been completed.
|
30754
|
+
# For example, consider a situation where you make an initial request and the
|
30755
|
+
# request times out. If you make the request again with the same request ID, the
|
30756
|
+
# server can check if original operation with the same request ID was received,
|
30757
|
+
# and if so, will ignore the second request. This prevents clients from
|
30758
|
+
# accidentally creating duplicate commitments.
|
30759
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
30760
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
29455
30761
|
# @param [String] fields
|
29456
30762
|
# Selector specifying which fields to include in a partial response.
|
29457
30763
|
# @param [String] quota_user
|
@@ -29471,13 +30777,16 @@ module Google
|
|
29471
30777
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29472
30778
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29473
30779
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29474
|
-
def
|
29475
|
-
command = make_simple_command(:
|
30780
|
+
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)
|
30781
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/securityPolicies/{securityPolicy}', options)
|
30782
|
+
command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
|
30783
|
+
command.request_object = security_policy_object
|
29476
30784
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
29477
30785
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
29478
30786
|
command.params['project'] = project unless project.nil?
|
29479
30787
|
command.params['region'] = region unless region.nil?
|
29480
|
-
command.params['
|
30788
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
30789
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
29481
30790
|
command.query['fields'] = fields unless fields.nil?
|
29482
30791
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29483
30792
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -32815,6 +34124,90 @@ module Google
|
|
32815
34124
|
execute_or_queue_command(command, &block)
|
32816
34125
|
end
|
32817
34126
|
|
34127
|
+
# Retrieves the list of all SecurityPolicy resources, regional and global,
|
34128
|
+
# available to the specified project.
|
34129
|
+
# @param [String] project
|
34130
|
+
# Name of the project scoping this request.
|
34131
|
+
# @param [String] filter
|
34132
|
+
# A filter expression that filters resources listed in the response. The
|
34133
|
+
# expression must specify the field name, a comparison operator, and the value
|
34134
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
34135
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
34136
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
34137
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
34138
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
34139
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
34140
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
34141
|
+
# on resource labels.
|
34142
|
+
# To filter on multiple expressions, provide each separate expression within
|
34143
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
34144
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
34145
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
34146
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
34147
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
34148
|
+
# @param [Boolean] include_all_scopes
|
34149
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
34150
|
+
# global) should be included in the response. For new resource types added after
|
34151
|
+
# this field, the flag has no effect as new resource types will always include
|
34152
|
+
# every visible scope for each scope type in response. For resource types which
|
34153
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
34154
|
+
# types where the resource type is expected to be found will be included.
|
34155
|
+
# @param [Fixnum] max_results
|
34156
|
+
# The maximum number of results per page that should be returned. If the number
|
34157
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
34158
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
34159
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
34160
|
+
# @param [String] order_by
|
34161
|
+
# Sorts list results by a certain order. By default, results are returned in
|
34162
|
+
# alphanumerical order based on the resource name.
|
34163
|
+
# You can also sort results in descending order based on the creation timestamp
|
34164
|
+
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
34165
|
+
# creationTimestamp` field in reverse chronological order (newest result first).
|
34166
|
+
# Use this to sort resources like operations so that the newest operation is
|
34167
|
+
# returned first.
|
34168
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
34169
|
+
# @param [String] page_token
|
34170
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
34171
|
+
# by a previous list request to get the next page of results.
|
34172
|
+
# @param [Boolean] return_partial_success
|
34173
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
34174
|
+
# failure. The default value is false.
|
34175
|
+
# @param [String] fields
|
34176
|
+
# Selector specifying which fields to include in a partial response.
|
34177
|
+
# @param [String] quota_user
|
34178
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
34179
|
+
# characters.
|
34180
|
+
# @param [String] user_ip
|
34181
|
+
# Deprecated. Please use quotaUser instead.
|
34182
|
+
# @param [Google::Apis::RequestOptions] options
|
34183
|
+
# Request-specific options
|
34184
|
+
#
|
34185
|
+
# @yield [result, err] Result & error if block supplied
|
34186
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::SecurityPoliciesAggregatedList] parsed result object
|
34187
|
+
# @yieldparam err [StandardError] error object if request failed
|
34188
|
+
#
|
34189
|
+
# @return [Google::Apis::ComputeAlpha::SecurityPoliciesAggregatedList]
|
34190
|
+
#
|
34191
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34192
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34193
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34194
|
+
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)
|
34195
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/securityPolicies', options)
|
34196
|
+
command.response_representation = Google::Apis::ComputeAlpha::SecurityPoliciesAggregatedList::Representation
|
34197
|
+
command.response_class = Google::Apis::ComputeAlpha::SecurityPoliciesAggregatedList
|
34198
|
+
command.params['project'] = project unless project.nil?
|
34199
|
+
command.query['filter'] = filter unless filter.nil?
|
34200
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
34201
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
34202
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
34203
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
34204
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
34205
|
+
command.query['fields'] = fields unless fields.nil?
|
34206
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34207
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
34208
|
+
execute_or_queue_command(command, &block)
|
34209
|
+
end
|
34210
|
+
|
32818
34211
|
# Deletes the specified policy.
|
32819
34212
|
# @param [String] project
|
32820
34213
|
# Project ID for this request.
|