google-apis-compute_alpha 0.7.0 → 0.12.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +22 -0
- data/lib/google/apis/compute_alpha/classes.rb +2226 -533
- data/lib/google/apis/compute_alpha/gem_version.rb +3 -3
- data/lib/google/apis/compute_alpha/representations.rb +706 -67
- data/lib/google/apis/compute_alpha/service.rb +1937 -474
- metadata +4 -4
@@ -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,178 +5413,589 @@ module Google
|
|
5332
5413
|
execute_or_queue_command(command, &block)
|
5333
5414
|
end
|
5334
5415
|
|
5335
|
-
#
|
5336
|
-
# @param [String] project
|
5337
|
-
# Project ID for this request.
|
5338
|
-
# @param [String]
|
5339
|
-
#
|
5340
|
-
#
|
5341
|
-
#
|
5342
|
-
#
|
5343
|
-
#
|
5344
|
-
#
|
5345
|
-
#
|
5346
|
-
#
|
5347
|
-
#
|
5348
|
-
#
|
5349
|
-
#
|
5350
|
-
#
|
5351
|
-
#
|
5352
|
-
#
|
5353
|
-
#
|
5354
|
-
#
|
5355
|
-
#
|
5356
|
-
#
|
5357
|
-
#
|
5358
|
-
#
|
5359
|
-
#
|
5360
|
-
#
|
5361
|
-
#
|
5362
|
-
# @
|
5363
|
-
#
|
5364
|
-
#
|
5365
|
-
#
|
5366
|
-
#
|
5367
|
-
# @
|
5368
|
-
#
|
5369
|
-
#
|
5370
|
-
|
5371
|
-
|
5372
|
-
|
5373
|
-
|
5374
|
-
|
5375
|
-
|
5376
|
-
|
5377
|
-
|
5378
|
-
|
5379
|
-
|
5380
|
-
|
5381
|
-
|
5382
|
-
|
5383
|
-
#
|
5384
|
-
#
|
5385
|
-
#
|
5386
|
-
#
|
5387
|
-
# @param [String]
|
5388
|
-
#
|
5389
|
-
# @param [
|
5390
|
-
#
|
5391
|
-
#
|
5392
|
-
#
|
5393
|
-
#
|
5394
|
-
# @
|
5395
|
-
#
|
5396
|
-
# @
|
5397
|
-
#
|
5398
|
-
#
|
5399
|
-
# @
|
5400
|
-
# @
|
5401
|
-
|
5402
|
-
|
5403
|
-
|
5404
|
-
|
5405
|
-
|
5406
|
-
|
5407
|
-
|
5408
|
-
|
5409
|
-
command =
|
5410
|
-
command.
|
5411
|
-
command.
|
5412
|
-
command.
|
5413
|
-
command.
|
5414
|
-
command.query['
|
5415
|
-
command
|
5416
|
-
|
5417
|
-
|
5418
|
-
|
5419
|
-
|
5420
|
-
#
|
5421
|
-
# @param [String]
|
5422
|
-
#
|
5423
|
-
# @param [String]
|
5424
|
-
#
|
5425
|
-
#
|
5426
|
-
#
|
5427
|
-
#
|
5428
|
-
#
|
5429
|
-
#
|
5430
|
-
#
|
5431
|
-
#
|
5432
|
-
#
|
5433
|
-
#
|
5434
|
-
#
|
5435
|
-
#
|
5436
|
-
# @
|
5437
|
-
#
|
5438
|
-
# @
|
5439
|
-
#
|
5440
|
-
#
|
5441
|
-
#
|
5442
|
-
#
|
5443
|
-
# @
|
5444
|
-
#
|
5445
|
-
|
5446
|
-
|
5447
|
-
|
5448
|
-
|
5449
|
-
|
5450
|
-
|
5451
|
-
|
5452
|
-
|
5453
|
-
|
5454
|
-
|
5455
|
-
|
5456
|
-
|
5457
|
-
|
5458
|
-
|
5459
|
-
|
5460
|
-
|
5461
|
-
|
5462
|
-
|
5463
|
-
|
5464
|
-
|
5465
|
-
|
5466
|
-
|
5467
|
-
|
5468
|
-
|
5469
|
-
#
|
5470
|
-
#
|
5471
|
-
#
|
5472
|
-
#
|
5473
|
-
#
|
5474
|
-
#
|
5475
|
-
#
|
5476
|
-
#
|
5477
|
-
#
|
5478
|
-
#
|
5479
|
-
#
|
5480
|
-
#
|
5481
|
-
#
|
5482
|
-
#
|
5483
|
-
#
|
5484
|
-
#
|
5485
|
-
#
|
5486
|
-
#
|
5487
|
-
# @
|
5488
|
-
#
|
5489
|
-
# @
|
5490
|
-
#
|
5491
|
-
#
|
5492
|
-
|
5493
|
-
|
5494
|
-
|
5495
|
-
|
5496
|
-
|
5497
|
-
|
5498
|
-
|
5499
|
-
|
5500
|
-
|
5501
|
-
|
5502
|
-
|
5503
|
-
|
5504
|
-
|
5505
|
-
|
5506
|
-
|
5416
|
+
# Retrieves an aggregated list of future reservations.
|
5417
|
+
# @param [String] project
|
5418
|
+
# Project ID for this request.
|
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.
|
5506
|
+
# @param [String] request_id
|
5507
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
5508
|
+
# that if you must retry your request, the server will know to ignore the
|
5509
|
+
# request if it has already been completed.
|
5510
|
+
# For example, consider a situation where you make an initial request and the
|
5511
|
+
# request times out. If you make the request again with the same request ID, the
|
5512
|
+
# server can check if original operation with the same request ID was received,
|
5513
|
+
# and if so, will ignore the second request. This prevents clients from
|
5514
|
+
# accidentally creating duplicate commitments.
|
5515
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
5516
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
5517
|
+
# @param [String] fields
|
5518
|
+
# Selector specifying which fields to include in a partial response.
|
5519
|
+
# @param [String] quota_user
|
5520
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
5521
|
+
# characters.
|
5522
|
+
# @param [String] user_ip
|
5523
|
+
# Deprecated. Please use quotaUser instead.
|
5524
|
+
# @param [Google::Apis::RequestOptions] options
|
5525
|
+
# Request-specific options
|
5526
|
+
#
|
5527
|
+
# @yield [result, err] Result & error if block supplied
|
5528
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
5529
|
+
# @yieldparam err [StandardError] error object if request failed
|
5530
|
+
#
|
5531
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
5532
|
+
#
|
5533
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5534
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5535
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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)
|
5538
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
5539
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
5540
|
+
command.params['project'] = project unless project.nil?
|
5541
|
+
command.params['zone'] = zone unless zone.nil?
|
5542
|
+
command.params['futureReservation'] = future_reservation unless future_reservation.nil?
|
5543
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
5544
|
+
command.query['fields'] = fields unless fields.nil?
|
5545
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5546
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5547
|
+
execute_or_queue_command(command, &block)
|
5548
|
+
end
|
5549
|
+
|
5550
|
+
# Deletes the specified future reservation.
|
5551
|
+
# @param [String] project
|
5552
|
+
# Project ID for this request.
|
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).
|
5568
|
+
# @param [String] fields
|
5569
|
+
# Selector specifying which fields to include in a partial response.
|
5570
|
+
# @param [String] quota_user
|
5571
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
5572
|
+
# characters.
|
5573
|
+
# @param [String] user_ip
|
5574
|
+
# Deprecated. Please use quotaUser instead.
|
5575
|
+
# @param [Google::Apis::RequestOptions] options
|
5576
|
+
# Request-specific options
|
5577
|
+
#
|
5578
|
+
# @yield [result, err] Result & error if block supplied
|
5579
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
5580
|
+
# @yieldparam err [StandardError] error object if request failed
|
5581
|
+
#
|
5582
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
5583
|
+
#
|
5584
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5585
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5586
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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
|
5591
|
+
command.params['project'] = project unless project.nil?
|
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?
|
5595
|
+
command.query['fields'] = fields unless fields.nil?
|
5596
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5597
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5598
|
+
execute_or_queue_command(command, &block)
|
5599
|
+
end
|
5600
|
+
|
5601
|
+
# Retrieves information about the specified future reservation.
|
5602
|
+
# @param [String] project
|
5603
|
+
# Project ID for this request.
|
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.
|
5608
|
+
# @param [String] fields
|
5609
|
+
# Selector specifying which fields to include in a partial response.
|
5610
|
+
# @param [String] quota_user
|
5611
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
5612
|
+
# characters.
|
5613
|
+
# @param [String] user_ip
|
5614
|
+
# Deprecated. Please use quotaUser instead.
|
5615
|
+
# @param [Google::Apis::RequestOptions] options
|
5616
|
+
# Request-specific options
|
5617
|
+
#
|
5618
|
+
# @yield [result, err] Result & error if block supplied
|
5619
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::FutureReservation] parsed result object
|
5620
|
+
# @yieldparam err [StandardError] error object if request failed
|
5621
|
+
#
|
5622
|
+
# @return [Google::Apis::ComputeAlpha::FutureReservation]
|
5623
|
+
#
|
5624
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5625
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5626
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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
|
5631
|
+
command.params['project'] = project unless project.nil?
|
5632
|
+
command.params['zone'] = zone unless zone.nil?
|
5633
|
+
command.params['futureReservation'] = future_reservation unless future_reservation.nil?
|
5634
|
+
command.query['fields'] = fields unless fields.nil?
|
5635
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5636
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5637
|
+
execute_or_queue_command(command, &block)
|
5638
|
+
end
|
5639
|
+
|
5640
|
+
# Creates a new Future Reservation.
|
5641
|
+
# @param [String] project
|
5642
|
+
# Project ID for this request.
|
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
|
5646
|
+
# @param [String] request_id
|
5647
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
5648
|
+
# that if you must retry your request, the server will know to ignore the
|
5649
|
+
# request if it has already been completed.
|
5650
|
+
# For example, consider a situation where you make an initial request and the
|
5651
|
+
# request times out. If you make the request again with the same request ID, the
|
5652
|
+
# server can check if original operation with the same request ID was received,
|
5653
|
+
# and if so, will ignore the second request. This prevents clients from
|
5654
|
+
# accidentally creating duplicate commitments.
|
5655
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
5656
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
5657
|
+
# @param [String] fields
|
5658
|
+
# Selector specifying which fields to include in a partial response.
|
5659
|
+
# @param [String] quota_user
|
5660
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
5661
|
+
# characters.
|
5662
|
+
# @param [String] user_ip
|
5663
|
+
# Deprecated. Please use quotaUser instead.
|
5664
|
+
# @param [Google::Apis::RequestOptions] options
|
5665
|
+
# Request-specific options
|
5666
|
+
#
|
5667
|
+
# @yield [result, err] Result & error if block supplied
|
5668
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
5669
|
+
# @yieldparam err [StandardError] error object if request failed
|
5670
|
+
#
|
5671
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
5672
|
+
#
|
5673
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5674
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5675
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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
|
5680
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
5681
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
5682
|
+
command.params['project'] = project unless project.nil?
|
5683
|
+
command.params['zone'] = zone unless zone.nil?
|
5684
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
5685
|
+
command.query['fields'] = fields unless fields.nil?
|
5686
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5687
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5688
|
+
execute_or_queue_command(command, &block)
|
5689
|
+
end
|
5690
|
+
|
5691
|
+
# A list of all the future reservations that have been configured for the
|
5692
|
+
# specified project in specified zone.
|
5693
|
+
# @param [String] project
|
5694
|
+
# Project ID for this request.
|
5695
|
+
# @param [String] zone
|
5696
|
+
# Name of the zone for this request. Name should conform to RFC1035.
|
5697
|
+
# @param [String] filter
|
5698
|
+
# A filter expression that filters resources listed in the response. The
|
5699
|
+
# expression must specify the field name, a comparison operator, and the value
|
5700
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
5701
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
5702
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
5703
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
5704
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
5705
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
5706
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
5707
|
+
# on resource labels.
|
5708
|
+
# To filter on multiple expressions, provide each separate expression within
|
5709
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
5710
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
5711
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
5712
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
5713
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
5714
|
+
# @param [Fixnum] max_results
|
5715
|
+
# The maximum number of results per page that should be returned. If the number
|
5716
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
5717
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
5718
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
5719
|
+
# @param [String] order_by
|
5720
|
+
# Sorts list results by a certain order. By default, results are returned in
|
5721
|
+
# alphanumerical order based on the resource name.
|
5722
|
+
# You can also sort results in descending order based on the creation timestamp
|
5723
|
+
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
5724
|
+
# creationTimestamp` field in reverse chronological order (newest result first).
|
5725
|
+
# Use this to sort resources like operations so that the newest operation is
|
5726
|
+
# returned first.
|
5727
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
5728
|
+
# @param [String] page_token
|
5729
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
5730
|
+
# by a previous list request to get the next page of results.
|
5731
|
+
# @param [Boolean] return_partial_success
|
5732
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
5733
|
+
# failure. The default value is false.
|
5734
|
+
# @param [String] fields
|
5735
|
+
# Selector specifying which fields to include in a partial response.
|
5736
|
+
# @param [String] quota_user
|
5737
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
5738
|
+
# characters.
|
5739
|
+
# @param [String] user_ip
|
5740
|
+
# Deprecated. Please use quotaUser instead.
|
5741
|
+
# @param [Google::Apis::RequestOptions] options
|
5742
|
+
# Request-specific options
|
5743
|
+
#
|
5744
|
+
# @yield [result, err] Result & error if block supplied
|
5745
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::FutureReservationsListResponse] parsed result object
|
5746
|
+
# @yieldparam err [StandardError] error object if request failed
|
5747
|
+
#
|
5748
|
+
# @return [Google::Apis::ComputeAlpha::FutureReservationsListResponse]
|
5749
|
+
#
|
5750
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5751
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5752
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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
|
5757
|
+
command.params['project'] = project unless project.nil?
|
5758
|
+
command.params['zone'] = zone unless zone.nil?
|
5759
|
+
command.query['filter'] = filter unless filter.nil?
|
5760
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
5761
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
5762
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
5763
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
5764
|
+
command.query['fields'] = fields unless fields.nil?
|
5765
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5766
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5767
|
+
execute_or_queue_command(command, &block)
|
5768
|
+
end
|
5769
|
+
|
5770
|
+
# Updates the specified future reservation.
|
5771
|
+
# @param [String] project
|
5772
|
+
# Project ID for this request.
|
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).
|
5791
|
+
# @param [String] fields
|
5792
|
+
# Selector specifying which fields to include in a partial response.
|
5793
|
+
# @param [String] quota_user
|
5794
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
5795
|
+
# characters.
|
5796
|
+
# @param [String] user_ip
|
5797
|
+
# Deprecated. Please use quotaUser instead.
|
5798
|
+
# @param [Google::Apis::RequestOptions] options
|
5799
|
+
# Request-specific options
|
5800
|
+
#
|
5801
|
+
# @yield [result, err] Result & error if block supplied
|
5802
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
5803
|
+
# @yieldparam err [StandardError] error object if request failed
|
5804
|
+
#
|
5805
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
5806
|
+
#
|
5807
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5808
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5809
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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
|
5814
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
5815
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
5816
|
+
command.params['project'] = project unless project.nil?
|
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?
|
5821
|
+
command.query['fields'] = fields unless fields.nil?
|
5822
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5823
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5824
|
+
execute_or_queue_command(command, &block)
|
5825
|
+
end
|
5826
|
+
|
5827
|
+
# Deletes the specified address resource.
|
5828
|
+
# @param [String] project
|
5829
|
+
# Project ID for this request.
|
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.
|
5845
|
+
# @param [String] quota_user
|
5846
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
5847
|
+
# characters.
|
5848
|
+
# @param [String] user_ip
|
5849
|
+
# Deprecated. Please use quotaUser instead.
|
5850
|
+
# @param [Google::Apis::RequestOptions] options
|
5851
|
+
# Request-specific options
|
5852
|
+
#
|
5853
|
+
# @yield [result, err] Result & error if block supplied
|
5854
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
5855
|
+
# @yieldparam err [StandardError] error object if request failed
|
5856
|
+
#
|
5857
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
5858
|
+
#
|
5859
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5860
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5861
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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
|
5866
|
+
command.params['project'] = project unless project.nil?
|
5867
|
+
command.params['address'] = address unless address.nil?
|
5868
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
5869
|
+
command.query['fields'] = fields unless fields.nil?
|
5870
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5871
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5872
|
+
execute_or_queue_command(command, &block)
|
5873
|
+
end
|
5874
|
+
|
5875
|
+
# Returns the specified address resource. Gets a list of available addresses by
|
5876
|
+
# making a list() request.
|
5877
|
+
# @param [String] project
|
5878
|
+
# Project ID for this request.
|
5879
|
+
# @param [String] address
|
5880
|
+
# Name of the address resource to return.
|
5881
|
+
# @param [String] fields
|
5882
|
+
# Selector specifying which fields to include in a partial response.
|
5883
|
+
# @param [String] quota_user
|
5884
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
5885
|
+
# characters.
|
5886
|
+
# @param [String] user_ip
|
5887
|
+
# Deprecated. Please use quotaUser instead.
|
5888
|
+
# @param [Google::Apis::RequestOptions] options
|
5889
|
+
# Request-specific options
|
5890
|
+
#
|
5891
|
+
# @yield [result, err] Result & error if block supplied
|
5892
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Address] parsed result object
|
5893
|
+
# @yieldparam err [StandardError] error object if request failed
|
5894
|
+
#
|
5895
|
+
# @return [Google::Apis::ComputeAlpha::Address]
|
5896
|
+
#
|
5897
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5898
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5899
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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
|
5904
|
+
command.params['project'] = project unless project.nil?
|
5905
|
+
command.params['address'] = address unless address.nil?
|
5906
|
+
command.query['fields'] = fields unless fields.nil?
|
5907
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5908
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5909
|
+
execute_or_queue_command(command, &block)
|
5910
|
+
end
|
5911
|
+
|
5912
|
+
# Find owner instance from given ip address
|
5913
|
+
# @param [String] project
|
5914
|
+
# Project ID for this request.
|
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.
|
5918
|
+
# @param [String] fields
|
5919
|
+
# Selector specifying which fields to include in a partial response.
|
5920
|
+
# @param [String] quota_user
|
5921
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
5922
|
+
# characters.
|
5923
|
+
# @param [String] user_ip
|
5924
|
+
# Deprecated. Please use quotaUser instead.
|
5925
|
+
# @param [Google::Apis::RequestOptions] options
|
5926
|
+
# Request-specific options
|
5927
|
+
#
|
5928
|
+
# @yield [result, err] Result & error if block supplied
|
5929
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::GetOwnerInstanceResponse] parsed result object
|
5930
|
+
# @yieldparam err [StandardError] error object if request failed
|
5931
|
+
#
|
5932
|
+
# @return [Google::Apis::ComputeAlpha::GetOwnerInstanceResponse]
|
5933
|
+
#
|
5934
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5935
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5936
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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
|
5941
|
+
command.params['project'] = project unless project.nil?
|
5942
|
+
command.query['ipAddress'] = ip_address unless ip_address.nil?
|
5943
|
+
command.query['fields'] = fields unless fields.nil?
|
5944
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5945
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5946
|
+
execute_or_queue_command(command, &block)
|
5947
|
+
end
|
5948
|
+
|
5949
|
+
# Creates an address resource in the specified project by using the data
|
5950
|
+
# included in the request.
|
5951
|
+
# @param [String] project
|
5952
|
+
# Project ID for this request.
|
5953
|
+
# @param [Google::Apis::ComputeAlpha::Address] address_object
|
5954
|
+
# @param [String] request_id
|
5955
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
5956
|
+
# that if you must retry your request, the server will know to ignore the
|
5957
|
+
# request if it has already been completed.
|
5958
|
+
# For example, consider a situation where you make an initial request and the
|
5959
|
+
# request times out. If you make the request again with the same request ID, the
|
5960
|
+
# server can check if original operation with the same request ID was received,
|
5961
|
+
# and if so, will ignore the second request. This prevents clients from
|
5962
|
+
# accidentally creating duplicate commitments.
|
5963
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
5964
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
5965
|
+
# @param [String] fields
|
5966
|
+
# Selector specifying which fields to include in a partial response.
|
5967
|
+
# @param [String] quota_user
|
5968
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
5969
|
+
# characters.
|
5970
|
+
# @param [String] user_ip
|
5971
|
+
# Deprecated. Please use quotaUser instead.
|
5972
|
+
# @param [Google::Apis::RequestOptions] options
|
5973
|
+
# Request-specific options
|
5974
|
+
#
|
5975
|
+
# @yield [result, err] Result & error if block supplied
|
5976
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
5977
|
+
# @yieldparam err [StandardError] error object if request failed
|
5978
|
+
#
|
5979
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
5980
|
+
#
|
5981
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5982
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5983
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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
|
5988
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
5989
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
5990
|
+
command.params['project'] = project unless project.nil?
|
5991
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
5992
|
+
command.query['fields'] = fields unless fields.nil?
|
5993
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5994
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5995
|
+
execute_or_queue_command(command, &block)
|
5996
|
+
end
|
5997
|
+
|
5998
|
+
# Retrieves a list of global addresses.
|
5507
5999
|
# @param [String] project
|
5508
6000
|
# Project ID for this request.
|
5509
6001
|
# @param [String] filter
|
@@ -9791,12 +10283,12 @@ module Google
|
|
9791
10283
|
execute_or_queue_command(command, &block)
|
9792
10284
|
end
|
9793
10285
|
|
9794
|
-
# Flags the specified instances in the managed instance group to be
|
9795
|
-
# recreated.
|
9796
|
-
#
|
9797
|
-
# the
|
9798
|
-
#
|
9799
|
-
#
|
10286
|
+
# Flags the specified VM instances in the managed instance group to be
|
10287
|
+
# immediately recreated. Each instance is recreated using the group's current
|
10288
|
+
# configuration. This operation is marked as DONE when the flag is set even if
|
10289
|
+
# the instances have not yet been recreated. You must separately verify the
|
10290
|
+
# status of each instance by checking its currentAction field; for more
|
10291
|
+
# information, see Checking the status of managed instances.
|
9800
10292
|
# If the group is part of a backend service that has enabled connection draining,
|
9801
10293
|
# it can take up to 60 seconds after the connection draining duration has
|
9802
10294
|
# elapsed before the VM instance is removed or deleted.
|
@@ -11850,8 +12342,8 @@ module Google
|
|
11850
12342
|
execute_or_queue_command(command, &block)
|
11851
12343
|
end
|
11852
12344
|
|
11853
|
-
# Deletes the specified Instance resource. For more information, see
|
11854
|
-
#
|
12345
|
+
# Deletes the specified Instance resource. For more information, see Deleting an
|
12346
|
+
# instance.
|
11855
12347
|
# @param [String] project
|
11856
12348
|
# Project ID for this request.
|
11857
12349
|
# @param [String] zone
|
@@ -12375,6 +12867,10 @@ module Google
|
|
12375
12867
|
# accidentally creating duplicate commitments.
|
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).
|
12870
|
+
# @param [Array<String>, String] secure_tags
|
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.
|
12378
12874
|
# @param [String] source_instance_template
|
12379
12875
|
# Specifies instance template to create the instance.
|
12380
12876
|
# This field is optional. It can be a full or partial URL. For example, the
|
@@ -12410,7 +12906,7 @@ module Google
|
|
12410
12906
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
12411
12907
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
12412
12908
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
12413
|
-
def insert_instance(project, zone, instance_object = nil, request_id: nil, source_instance_template: nil, source_machine_image: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
12909
|
+
def insert_instance(project, zone, instance_object = nil, request_id: nil, secure_tags: nil, source_instance_template: nil, source_machine_image: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
12414
12910
|
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances', options)
|
12415
12911
|
command.request_representation = Google::Apis::ComputeAlpha::Instance::Representation
|
12416
12912
|
command.request_object = instance_object
|
@@ -12419,6 +12915,7 @@ module Google
|
|
12419
12915
|
command.params['project'] = project unless project.nil?
|
12420
12916
|
command.params['zone'] = zone unless zone.nil?
|
12421
12917
|
command.query['requestId'] = request_id unless request_id.nil?
|
12918
|
+
command.query['secureTags'] = secure_tags unless secure_tags.nil?
|
12422
12919
|
command.query['sourceInstanceTemplate'] = source_instance_template unless source_instance_template.nil?
|
12423
12920
|
command.query['sourceMachineImage'] = source_machine_image unless source_machine_image.nil?
|
12424
12921
|
command.query['fields'] = fields unless fields.nil?
|
@@ -12590,6 +13087,57 @@ module Google
|
|
12590
13087
|
execute_or_queue_command(command, &block)
|
12591
13088
|
end
|
12592
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
|
+
|
12593
13141
|
# Removes resource policies from an instance.
|
12594
13142
|
# @param [String] project
|
12595
13143
|
# Project ID for this request.
|
@@ -13867,6 +14415,10 @@ module Google
|
|
13867
14415
|
# @param [String] instance
|
13868
14416
|
# Name of the instance resource to update.
|
13869
14417
|
# @param [Google::Apis::ComputeAlpha::Instance] instance_object
|
14418
|
+
# @param [Boolean] clear_secure_tag
|
14419
|
+
# Whether to clear secure tags from the instance.
|
14420
|
+
# This property if set to true will clear secure tags regardless of the resource.
|
14421
|
+
# secure_tags.
|
13870
14422
|
# @param [String] minimal_action
|
13871
14423
|
# Specifies the action to take when updating an instance even if the updated
|
13872
14424
|
# properties do not require it. If not specified, then Compute Engine acts based
|
@@ -13887,6 +14439,9 @@ module Google
|
|
13887
14439
|
# accidentally creating duplicate commitments.
|
13888
14440
|
# The request ID must be a valid UUID with the exception that zero UUID is not
|
13889
14441
|
# supported (00000000-0000-0000-0000-000000000000).
|
14442
|
+
# @param [Array<String>, String] secure_tags
|
14443
|
+
# DEPRECATED: Please use resource.secure_tag instead. Secure tags to apply to
|
14444
|
+
# this instance. Maximum number of secure tags allowed is 50.
|
13890
14445
|
# @param [String] fields
|
13891
14446
|
# Selector specifying which fields to include in a partial response.
|
13892
14447
|
# @param [String] quota_user
|
@@ -13906,7 +14461,7 @@ module Google
|
|
13906
14461
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13907
14462
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13908
14463
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13909
|
-
def update_instance(project, zone, instance, instance_object = nil, minimal_action: nil, most_disruptive_allowed_action: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
14464
|
+
def update_instance(project, zone, instance, instance_object = nil, clear_secure_tag: nil, minimal_action: nil, most_disruptive_allowed_action: nil, request_id: nil, secure_tags: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
13910
14465
|
command = make_simple_command(:put, 'projects/{project}/zones/{zone}/instances/{instance}', options)
|
13911
14466
|
command.request_representation = Google::Apis::ComputeAlpha::Instance::Representation
|
13912
14467
|
command.request_object = instance_object
|
@@ -13915,9 +14470,11 @@ module Google
|
|
13915
14470
|
command.params['project'] = project unless project.nil?
|
13916
14471
|
command.params['zone'] = zone unless zone.nil?
|
13917
14472
|
command.params['instance'] = instance unless instance.nil?
|
14473
|
+
command.query['clearSecureTag'] = clear_secure_tag unless clear_secure_tag.nil?
|
13918
14474
|
command.query['minimalAction'] = minimal_action unless minimal_action.nil?
|
13919
14475
|
command.query['mostDisruptiveAllowedAction'] = most_disruptive_allowed_action unless most_disruptive_allowed_action.nil?
|
13920
14476
|
command.query['requestId'] = request_id unless request_id.nil?
|
14477
|
+
command.query['secureTags'] = secure_tags unless secure_tags.nil?
|
13921
14478
|
command.query['fields'] = fields unless fields.nil?
|
13922
14479
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13923
14480
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -16380,21 +16937,105 @@ module Google
|
|
16380
16937
|
# Request-specific options
|
16381
16938
|
#
|
16382
16939
|
# @yield [result, err] Result & error if block supplied
|
16383
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::MachineTypeList] parsed result object
|
16940
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::MachineTypeList] parsed result object
|
16941
|
+
# @yieldparam err [StandardError] error object if request failed
|
16942
|
+
#
|
16943
|
+
# @return [Google::Apis::ComputeAlpha::MachineTypeList]
|
16944
|
+
#
|
16945
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16946
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16947
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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
|
16952
|
+
command.params['project'] = project unless project.nil?
|
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?
|
16959
|
+
command.query['fields'] = fields unless fields.nil?
|
16960
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
16961
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
16962
|
+
execute_or_queue_command(command, &block)
|
16963
|
+
end
|
16964
|
+
|
16965
|
+
# Retrieves the list of all NetworkEdgeSecurityService resources available to
|
16966
|
+
# the specified project.
|
16967
|
+
# @param [String] project
|
16968
|
+
# Name of the project scoping this request.
|
16969
|
+
# @param [String] filter
|
16970
|
+
# A filter expression that filters resources listed in the response. The
|
16971
|
+
# expression must specify the field name, a comparison operator, and the value
|
16972
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
16973
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
16974
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
16975
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
16976
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
16977
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
16978
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
16979
|
+
# on resource labels.
|
16980
|
+
# To filter on multiple expressions, provide each separate expression within
|
16981
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
16982
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
16983
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
16984
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
16985
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
16986
|
+
# @param [Boolean] include_all_scopes
|
16987
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
16988
|
+
# global) should be included in the response. For new resource types added after
|
16989
|
+
# this field, the flag has no effect as new resource types will always include
|
16990
|
+
# every visible scope for each scope type in response. For resource types which
|
16991
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
16992
|
+
# types where the resource type is expected to be found will be included.
|
16993
|
+
# @param [Fixnum] max_results
|
16994
|
+
# The maximum number of results per page that should be returned. If the number
|
16995
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
16996
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
16997
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
16998
|
+
# @param [String] order_by
|
16999
|
+
# Sorts list results by a certain order. By default, results are returned in
|
17000
|
+
# alphanumerical order based on the resource name.
|
17001
|
+
# You can also sort results in descending order based on the creation timestamp
|
17002
|
+
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
17003
|
+
# creationTimestamp` field in reverse chronological order (newest result first).
|
17004
|
+
# Use this to sort resources like operations so that the newest operation is
|
17005
|
+
# returned first.
|
17006
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
17007
|
+
# @param [String] page_token
|
17008
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
17009
|
+
# by a previous list request to get the next page of results.
|
17010
|
+
# @param [Boolean] return_partial_success
|
17011
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
17012
|
+
# failure. The default value is false.
|
17013
|
+
# @param [String] fields
|
17014
|
+
# Selector specifying which fields to include in a partial response.
|
17015
|
+
# @param [String] quota_user
|
17016
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
17017
|
+
# characters.
|
17018
|
+
# @param [String] user_ip
|
17019
|
+
# Deprecated. Please use quotaUser instead.
|
17020
|
+
# @param [Google::Apis::RequestOptions] options
|
17021
|
+
# Request-specific options
|
17022
|
+
#
|
17023
|
+
# @yield [result, err] Result & error if block supplied
|
17024
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::NetworkEdgeSecurityServiceAggregatedList] parsed result object
|
16384
17025
|
# @yieldparam err [StandardError] error object if request failed
|
16385
17026
|
#
|
16386
|
-
# @return [Google::Apis::ComputeAlpha::
|
17027
|
+
# @return [Google::Apis::ComputeAlpha::NetworkEdgeSecurityServiceAggregatedList]
|
16387
17028
|
#
|
16388
17029
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
16389
17030
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
16390
17031
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
16391
|
-
def
|
16392
|
-
command = make_simple_command(:get, 'projects/{project}/
|
16393
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
16394
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
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
|
16395
17036
|
command.params['project'] = project unless project.nil?
|
16396
|
-
command.params['zone'] = zone unless zone.nil?
|
16397
17037
|
command.query['filter'] = filter unless filter.nil?
|
17038
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
16398
17039
|
command.query['maxResults'] = max_results unless max_results.nil?
|
16399
17040
|
command.query['orderBy'] = order_by unless order_by.nil?
|
16400
17041
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -16405,6 +17046,208 @@ module Google
|
|
16405
17046
|
execute_or_queue_command(command, &block)
|
16406
17047
|
end
|
16407
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
|
17119
|
+
# @yieldparam err [StandardError] error object if request failed
|
17120
|
+
#
|
17121
|
+
# @return [Google::Apis::ComputeAlpha::NetworkEdgeSecurityService]
|
17122
|
+
#
|
17123
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17124
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17125
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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
|
17130
|
+
command.params['project'] = project unless project.nil?
|
17131
|
+
command.params['region'] = region unless region.nil?
|
17132
|
+
command.params['networkEdgeSecurityService'] = network_edge_security_service unless network_edge_security_service.nil?
|
17133
|
+
command.query['fields'] = fields unless fields.nil?
|
17134
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17135
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17136
|
+
execute_or_queue_command(command, &block)
|
17137
|
+
end
|
17138
|
+
|
17139
|
+
# Creates a new service in the specified project using the data included in the
|
17140
|
+
# request.
|
17141
|
+
# @param [String] project
|
17142
|
+
# Project ID for this request.
|
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.
|
17159
|
+
# @param [String] fields
|
17160
|
+
# Selector specifying which fields to include in a partial response.
|
17161
|
+
# @param [String] quota_user
|
17162
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
17163
|
+
# characters.
|
17164
|
+
# @param [String] user_ip
|
17165
|
+
# Deprecated. Please use quotaUser instead.
|
17166
|
+
# @param [Google::Apis::RequestOptions] options
|
17167
|
+
# Request-specific options
|
17168
|
+
#
|
17169
|
+
# @yield [result, err] Result & error if block supplied
|
17170
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
17171
|
+
# @yieldparam err [StandardError] error object if request failed
|
17172
|
+
#
|
17173
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
17174
|
+
#
|
17175
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17176
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17177
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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
|
17184
|
+
command.params['project'] = project unless project.nil?
|
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?
|
17188
|
+
command.query['fields'] = fields unless fields.nil?
|
17189
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17190
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17191
|
+
execute_or_queue_command(command, &block)
|
17192
|
+
end
|
17193
|
+
|
17194
|
+
# Patches the specified policy with the data included in the request.
|
17195
|
+
# @param [String] project
|
17196
|
+
# Project ID for this request.
|
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).
|
17215
|
+
# @param [String] fields
|
17216
|
+
# Selector specifying which fields to include in a partial response.
|
17217
|
+
# @param [String] quota_user
|
17218
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
17219
|
+
# characters.
|
17220
|
+
# @param [String] user_ip
|
17221
|
+
# Deprecated. Please use quotaUser instead.
|
17222
|
+
# @param [Google::Apis::RequestOptions] options
|
17223
|
+
# Request-specific options
|
17224
|
+
#
|
17225
|
+
# @yield [result, err] Result & error if block supplied
|
17226
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
17227
|
+
# @yieldparam err [StandardError] error object if request failed
|
17228
|
+
#
|
17229
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
17230
|
+
#
|
17231
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17232
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17233
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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
|
17240
|
+
command.params['project'] = project unless project.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?
|
17245
|
+
command.query['fields'] = fields unless fields.nil?
|
17246
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
17247
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
17248
|
+
execute_or_queue_command(command, &block)
|
17249
|
+
end
|
17250
|
+
|
16408
17251
|
# Retrieves the list of network endpoint groups and sorts them by zone.
|
16409
17252
|
# @param [String] project
|
16410
17253
|
# Project ID for this request.
|
@@ -17020,6 +17863,12 @@ module Google
|
|
17020
17863
|
# @param [String] firewall_policy
|
17021
17864
|
# Name of the firewall policy to update.
|
17022
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.
|
17023
17872
|
# @param [String] request_id
|
17024
17873
|
# An optional request ID to identify requests. Specify a unique request ID so
|
17025
17874
|
# that if you must retry your request, the server will know to ignore the
|
@@ -17050,7 +17899,7 @@ module Google
|
|
17050
17899
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
17051
17900
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
17052
17901
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
17053
|
-
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)
|
17054
17903
|
command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/addRule', options)
|
17055
17904
|
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
|
17056
17905
|
command.request_object = firewall_policy_rule_object
|
@@ -17058,6 +17907,8 @@ module Google
|
|
17058
17907
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
17059
17908
|
command.params['project'] = project unless project.nil?
|
17060
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?
|
17061
17912
|
command.query['requestId'] = request_id unless request_id.nil?
|
17062
17913
|
command.query['fields'] = fields unless fields.nil?
|
17063
17914
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -22830,6 +23681,49 @@ module Google
|
|
22830
23681
|
execute_or_queue_command(command, &block)
|
22831
23682
|
end
|
22832
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
|
+
|
22833
23727
|
# Creates a regional BackendService resource in the specified project using the
|
22834
23728
|
# data included in the request. For more information, see Backend services
|
22835
23729
|
# overview.
|
@@ -23019,6 +23913,49 @@ module Google
|
|
23019
23913
|
execute_or_queue_command(command, &block)
|
23020
23914
|
end
|
23021
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
|
+
|
23022
23959
|
# Returns permissions that a caller has on the specified resource.
|
23023
23960
|
# @param [String] project
|
23024
23961
|
# Project ID for this request.
|
@@ -23174,21 +24111,191 @@ module Google
|
|
23174
24111
|
# Request-specific options
|
23175
24112
|
#
|
23176
24113
|
# @yield [result, err] Result & error if block supplied
|
23177
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::CommitmentAggregatedList] parsed result object
|
24114
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::CommitmentAggregatedList] parsed result object
|
24115
|
+
# @yieldparam err [StandardError] error object if request failed
|
24116
|
+
#
|
24117
|
+
# @return [Google::Apis::ComputeAlpha::CommitmentAggregatedList]
|
24118
|
+
#
|
24119
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
24120
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
24121
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
24122
|
+
def aggregated_region_commitment_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)
|
24123
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/commitments', options)
|
24124
|
+
command.response_representation = Google::Apis::ComputeAlpha::CommitmentAggregatedList::Representation
|
24125
|
+
command.response_class = Google::Apis::ComputeAlpha::CommitmentAggregatedList
|
24126
|
+
command.params['project'] = project unless project.nil?
|
24127
|
+
command.query['filter'] = filter unless filter.nil?
|
24128
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
24129
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
24130
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
24131
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
24132
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
24133
|
+
command.query['fields'] = fields unless fields.nil?
|
24134
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
24135
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
24136
|
+
execute_or_queue_command(command, &block)
|
24137
|
+
end
|
24138
|
+
|
24139
|
+
# Returns the specified commitment resource. Gets a list of available
|
24140
|
+
# commitments by making a list() request.
|
24141
|
+
# @param [String] project
|
24142
|
+
# Project ID for this request.
|
24143
|
+
# @param [String] region
|
24144
|
+
# Name of the region for this request.
|
24145
|
+
# @param [String] commitment
|
24146
|
+
# Name of the commitment to return.
|
24147
|
+
# @param [String] fields
|
24148
|
+
# Selector specifying which fields to include in a partial response.
|
24149
|
+
# @param [String] quota_user
|
24150
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
24151
|
+
# characters.
|
24152
|
+
# @param [String] user_ip
|
24153
|
+
# Deprecated. Please use quotaUser instead.
|
24154
|
+
# @param [Google::Apis::RequestOptions] options
|
24155
|
+
# Request-specific options
|
24156
|
+
#
|
24157
|
+
# @yield [result, err] Result & error if block supplied
|
24158
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Commitment] parsed result object
|
24159
|
+
# @yieldparam err [StandardError] error object if request failed
|
24160
|
+
#
|
24161
|
+
# @return [Google::Apis::ComputeAlpha::Commitment]
|
24162
|
+
#
|
24163
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
24164
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
24165
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
24166
|
+
def get_region_commitment(project, region, commitment, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
24167
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/commitments/{commitment}', options)
|
24168
|
+
command.response_representation = Google::Apis::ComputeAlpha::Commitment::Representation
|
24169
|
+
command.response_class = Google::Apis::ComputeAlpha::Commitment
|
24170
|
+
command.params['project'] = project unless project.nil?
|
24171
|
+
command.params['region'] = region unless region.nil?
|
24172
|
+
command.params['commitment'] = commitment unless commitment.nil?
|
24173
|
+
command.query['fields'] = fields unless fields.nil?
|
24174
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
24175
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
24176
|
+
execute_or_queue_command(command, &block)
|
24177
|
+
end
|
24178
|
+
|
24179
|
+
# Creates a commitment in the specified project using the data included in the
|
24180
|
+
# request.
|
24181
|
+
# @param [String] project
|
24182
|
+
# Project ID for this request.
|
24183
|
+
# @param [String] region
|
24184
|
+
# Name of the region for this request.
|
24185
|
+
# @param [Google::Apis::ComputeAlpha::Commitment] commitment_object
|
24186
|
+
# @param [String] request_id
|
24187
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
24188
|
+
# that if you must retry your request, the server will know to ignore the
|
24189
|
+
# request if it has already been completed.
|
24190
|
+
# For example, consider a situation where you make an initial request and the
|
24191
|
+
# request times out. If you make the request again with the same request ID, the
|
24192
|
+
# server can check if original operation with the same request ID was received,
|
24193
|
+
# and if so, will ignore the second request. This prevents clients from
|
24194
|
+
# accidentally creating duplicate commitments.
|
24195
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
24196
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
24197
|
+
# @param [String] fields
|
24198
|
+
# Selector specifying which fields to include in a partial response.
|
24199
|
+
# @param [String] quota_user
|
24200
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
24201
|
+
# characters.
|
24202
|
+
# @param [String] user_ip
|
24203
|
+
# Deprecated. Please use quotaUser instead.
|
24204
|
+
# @param [Google::Apis::RequestOptions] options
|
24205
|
+
# Request-specific options
|
24206
|
+
#
|
24207
|
+
# @yield [result, err] Result & error if block supplied
|
24208
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
24209
|
+
# @yieldparam err [StandardError] error object if request failed
|
24210
|
+
#
|
24211
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
24212
|
+
#
|
24213
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
24214
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
24215
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
24216
|
+
def insert_region_commitment(project, region, commitment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
24217
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/commitments', options)
|
24218
|
+
command.request_representation = Google::Apis::ComputeAlpha::Commitment::Representation
|
24219
|
+
command.request_object = commitment_object
|
24220
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
24221
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
24222
|
+
command.params['project'] = project unless project.nil?
|
24223
|
+
command.params['region'] = region unless region.nil?
|
24224
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
24225
|
+
command.query['fields'] = fields unless fields.nil?
|
24226
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
24227
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
24228
|
+
execute_or_queue_command(command, &block)
|
24229
|
+
end
|
24230
|
+
|
24231
|
+
# Retrieves a list of commitments contained within the specified region.
|
24232
|
+
# @param [String] project
|
24233
|
+
# Project ID for this request.
|
24234
|
+
# @param [String] region
|
24235
|
+
# Name of the region for this request.
|
24236
|
+
# @param [String] filter
|
24237
|
+
# A filter expression that filters resources listed in the response. The
|
24238
|
+
# expression must specify the field name, a comparison operator, and the value
|
24239
|
+
# that you want to use for filtering. The value must be a string, a number, or a
|
24240
|
+
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
24241
|
+
# For example, if you are filtering Compute Engine instances, you can exclude
|
24242
|
+
# instances named `example-instance` by specifying `name != example-instance`.
|
24243
|
+
# You can also filter nested fields. For example, you could specify `scheduling.
|
24244
|
+
# automaticRestart = false` to include instances only if they are not scheduled
|
24245
|
+
# for automatic restarts. You can use filtering on nested fields to filter based
|
24246
|
+
# on resource labels.
|
24247
|
+
# To filter on multiple expressions, provide each separate expression within
|
24248
|
+
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
24249
|
+
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
24250
|
+
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
24251
|
+
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
24252
|
+
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
24253
|
+
# @param [Fixnum] max_results
|
24254
|
+
# The maximum number of results per page that should be returned. If the number
|
24255
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
24256
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
24257
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
24258
|
+
# @param [String] order_by
|
24259
|
+
# Sorts list results by a certain order. By default, results are returned in
|
24260
|
+
# alphanumerical order based on the resource name.
|
24261
|
+
# You can also sort results in descending order based on the creation timestamp
|
24262
|
+
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
24263
|
+
# creationTimestamp` field in reverse chronological order (newest result first).
|
24264
|
+
# Use this to sort resources like operations so that the newest operation is
|
24265
|
+
# returned first.
|
24266
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
24267
|
+
# @param [String] page_token
|
24268
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
24269
|
+
# by a previous list request to get the next page of results.
|
24270
|
+
# @param [Boolean] return_partial_success
|
24271
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
24272
|
+
# failure. The default value is false.
|
24273
|
+
# @param [String] fields
|
24274
|
+
# Selector specifying which fields to include in a partial response.
|
24275
|
+
# @param [String] quota_user
|
24276
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
24277
|
+
# characters.
|
24278
|
+
# @param [String] user_ip
|
24279
|
+
# Deprecated. Please use quotaUser instead.
|
24280
|
+
# @param [Google::Apis::RequestOptions] options
|
24281
|
+
# Request-specific options
|
24282
|
+
#
|
24283
|
+
# @yield [result, err] Result & error if block supplied
|
24284
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::CommitmentList] parsed result object
|
23178
24285
|
# @yieldparam err [StandardError] error object if request failed
|
23179
24286
|
#
|
23180
|
-
# @return [Google::Apis::ComputeAlpha::
|
24287
|
+
# @return [Google::Apis::ComputeAlpha::CommitmentList]
|
23181
24288
|
#
|
23182
24289
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
23183
24290
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
23184
24291
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
23185
|
-
def
|
23186
|
-
command = make_simple_command(:get, 'projects/{project}/
|
23187
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
23188
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
24292
|
+
def list_region_commitments(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)
|
24293
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/commitments', options)
|
24294
|
+
command.response_representation = Google::Apis::ComputeAlpha::CommitmentList::Representation
|
24295
|
+
command.response_class = Google::Apis::ComputeAlpha::CommitmentList
|
23189
24296
|
command.params['project'] = project unless project.nil?
|
24297
|
+
command.params['region'] = region unless region.nil?
|
23190
24298
|
command.query['filter'] = filter unless filter.nil?
|
23191
|
-
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
23192
24299
|
command.query['maxResults'] = max_results unless max_results.nil?
|
23193
24300
|
command.query['orderBy'] = order_by unless order_by.nil?
|
23194
24301
|
command.query['pageToken'] = page_token unless page_token.nil?
|
@@ -23199,14 +24306,14 @@ module Google
|
|
23199
24306
|
execute_or_queue_command(command, &block)
|
23200
24307
|
end
|
23201
24308
|
|
23202
|
-
# Returns
|
23203
|
-
# commitments by making a list() request.
|
24309
|
+
# Returns permissions that a caller has on the specified resource.
|
23204
24310
|
# @param [String] project
|
23205
24311
|
# Project ID for this request.
|
23206
24312
|
# @param [String] region
|
23207
|
-
#
|
23208
|
-
# @param [String]
|
23209
|
-
# Name of the
|
24313
|
+
# The name of the region for this request.
|
24314
|
+
# @param [String] resource
|
24315
|
+
# Name or id of the resource for this request.
|
24316
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
23210
24317
|
# @param [String] fields
|
23211
24318
|
# Selector specifying which fields to include in a partial response.
|
23212
24319
|
# @param [String] quota_user
|
@@ -23218,34 +24325,41 @@ module Google
|
|
23218
24325
|
# Request-specific options
|
23219
24326
|
#
|
23220
24327
|
# @yield [result, err] Result & error if block supplied
|
23221
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
24328
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
23222
24329
|
# @yieldparam err [StandardError] error object if request failed
|
23223
24330
|
#
|
23224
|
-
# @return [Google::Apis::ComputeAlpha::
|
24331
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
23225
24332
|
#
|
23226
24333
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
23227
24334
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
23228
24335
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
23229
|
-
def
|
23230
|
-
command = make_simple_command(:
|
23231
|
-
command.
|
23232
|
-
command.
|
24336
|
+
def test_region_commitment_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
24337
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/commitments/{resource}/testIamPermissions', options)
|
24338
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
24339
|
+
command.request_object = test_permissions_request_object
|
24340
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
24341
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
23233
24342
|
command.params['project'] = project unless project.nil?
|
23234
24343
|
command.params['region'] = region unless region.nil?
|
23235
|
-
command.params['
|
24344
|
+
command.params['resource'] = resource unless resource.nil?
|
23236
24345
|
command.query['fields'] = fields unless fields.nil?
|
23237
24346
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
23238
24347
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
23239
24348
|
execute_or_queue_command(command, &block)
|
23240
24349
|
end
|
23241
24350
|
|
23242
|
-
#
|
23243
|
-
#
|
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.
|
23244
24354
|
# @param [String] project
|
23245
24355
|
# Project ID for this request.
|
23246
24356
|
# @param [String] region
|
23247
24357
|
# Name of the region for this request.
|
24358
|
+
# @param [String] commitment
|
24359
|
+
# Name of the commitment for which auto renew is being updated.
|
23248
24360
|
# @param [Google::Apis::ComputeAlpha::Commitment] commitment_object
|
24361
|
+
# @param [Array<String>, String] paths
|
24362
|
+
# The set of field mask paths.
|
23249
24363
|
# @param [String] request_id
|
23250
24364
|
# An optional request ID to identify requests. Specify a unique request ID so
|
23251
24365
|
# that if you must retry your request, the server will know to ignore the
|
@@ -23276,14 +24390,16 @@ module Google
|
|
23276
24390
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
23277
24391
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
23278
24392
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
23279
|
-
def
|
23280
|
-
command = make_simple_command(:
|
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)
|
23281
24395
|
command.request_representation = Google::Apis::ComputeAlpha::Commitment::Representation
|
23282
24396
|
command.request_object = commitment_object
|
23283
24397
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
23284
24398
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
23285
24399
|
command.params['project'] = project unless project.nil?
|
23286
24400
|
command.params['region'] = region unless region.nil?
|
24401
|
+
command.params['commitment'] = commitment unless commitment.nil?
|
24402
|
+
command.query['paths'] = paths unless paths.nil?
|
23287
24403
|
command.query['requestId'] = request_id unless request_id.nil?
|
23288
24404
|
command.query['fields'] = fields unless fields.nil?
|
23289
24405
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -23291,126 +24407,6 @@ module Google
|
|
23291
24407
|
execute_or_queue_command(command, &block)
|
23292
24408
|
end
|
23293
24409
|
|
23294
|
-
# Retrieves a list of commitments contained within the specified region.
|
23295
|
-
# @param [String] project
|
23296
|
-
# Project ID for this request.
|
23297
|
-
# @param [String] region
|
23298
|
-
# Name of the region for this request.
|
23299
|
-
# @param [String] filter
|
23300
|
-
# A filter expression that filters resources listed in the response. The
|
23301
|
-
# expression must specify the field name, a comparison operator, and the value
|
23302
|
-
# that you want to use for filtering. The value must be a string, a number, or a
|
23303
|
-
# boolean. The comparison operator must be either `=`, `!=`, `>`, or `<`.
|
23304
|
-
# For example, if you are filtering Compute Engine instances, you can exclude
|
23305
|
-
# instances named `example-instance` by specifying `name != example-instance`.
|
23306
|
-
# You can also filter nested fields. For example, you could specify `scheduling.
|
23307
|
-
# automaticRestart = false` to include instances only if they are not scheduled
|
23308
|
-
# for automatic restarts. You can use filtering on nested fields to filter based
|
23309
|
-
# on resource labels.
|
23310
|
-
# To filter on multiple expressions, provide each separate expression within
|
23311
|
-
# parentheses. For example: ``` (scheduling.automaticRestart = true) (
|
23312
|
-
# cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND`
|
23313
|
-
# expression. However, you can include `AND` and `OR` expressions explicitly.
|
23314
|
-
# For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel
|
23315
|
-
# Broadwell") AND (scheduling.automaticRestart = true) ```
|
23316
|
-
# @param [Fixnum] max_results
|
23317
|
-
# The maximum number of results per page that should be returned. If the number
|
23318
|
-
# of available results is larger than `maxResults`, Compute Engine returns a `
|
23319
|
-
# nextPageToken` that can be used to get the next page of results in subsequent
|
23320
|
-
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
23321
|
-
# @param [String] order_by
|
23322
|
-
# Sorts list results by a certain order. By default, results are returned in
|
23323
|
-
# alphanumerical order based on the resource name.
|
23324
|
-
# You can also sort results in descending order based on the creation timestamp
|
23325
|
-
# using `orderBy="creationTimestamp desc"`. This sorts results based on the `
|
23326
|
-
# creationTimestamp` field in reverse chronological order (newest result first).
|
23327
|
-
# Use this to sort resources like operations so that the newest operation is
|
23328
|
-
# returned first.
|
23329
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
23330
|
-
# @param [String] page_token
|
23331
|
-
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
23332
|
-
# by a previous list request to get the next page of results.
|
23333
|
-
# @param [Boolean] return_partial_success
|
23334
|
-
# Opt-in for partial success behavior which provides partial results in case of
|
23335
|
-
# failure. The default value is false.
|
23336
|
-
# @param [String] fields
|
23337
|
-
# Selector specifying which fields to include in a partial response.
|
23338
|
-
# @param [String] quota_user
|
23339
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
23340
|
-
# characters.
|
23341
|
-
# @param [String] user_ip
|
23342
|
-
# Deprecated. Please use quotaUser instead.
|
23343
|
-
# @param [Google::Apis::RequestOptions] options
|
23344
|
-
# Request-specific options
|
23345
|
-
#
|
23346
|
-
# @yield [result, err] Result & error if block supplied
|
23347
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::CommitmentList] parsed result object
|
23348
|
-
# @yieldparam err [StandardError] error object if request failed
|
23349
|
-
#
|
23350
|
-
# @return [Google::Apis::ComputeAlpha::CommitmentList]
|
23351
|
-
#
|
23352
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
23353
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
23354
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
23355
|
-
def list_region_commitments(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)
|
23356
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/commitments', options)
|
23357
|
-
command.response_representation = Google::Apis::ComputeAlpha::CommitmentList::Representation
|
23358
|
-
command.response_class = Google::Apis::ComputeAlpha::CommitmentList
|
23359
|
-
command.params['project'] = project unless project.nil?
|
23360
|
-
command.params['region'] = region unless region.nil?
|
23361
|
-
command.query['filter'] = filter unless filter.nil?
|
23362
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
23363
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
23364
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
23365
|
-
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
23366
|
-
command.query['fields'] = fields unless fields.nil?
|
23367
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
23368
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
23369
|
-
execute_or_queue_command(command, &block)
|
23370
|
-
end
|
23371
|
-
|
23372
|
-
# Returns permissions that a caller has on the specified resource.
|
23373
|
-
# @param [String] project
|
23374
|
-
# Project ID for this request.
|
23375
|
-
# @param [String] region
|
23376
|
-
# The name of the region for this request.
|
23377
|
-
# @param [String] resource
|
23378
|
-
# Name or id of the resource for this request.
|
23379
|
-
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
23380
|
-
# @param [String] fields
|
23381
|
-
# Selector specifying which fields to include in a partial response.
|
23382
|
-
# @param [String] quota_user
|
23383
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
23384
|
-
# characters.
|
23385
|
-
# @param [String] user_ip
|
23386
|
-
# Deprecated. Please use quotaUser instead.
|
23387
|
-
# @param [Google::Apis::RequestOptions] options
|
23388
|
-
# Request-specific options
|
23389
|
-
#
|
23390
|
-
# @yield [result, err] Result & error if block supplied
|
23391
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
23392
|
-
# @yieldparam err [StandardError] error object if request failed
|
23393
|
-
#
|
23394
|
-
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
23395
|
-
#
|
23396
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
23397
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
23398
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
23399
|
-
def test_region_commitment_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
23400
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/commitments/{resource}/testIamPermissions', options)
|
23401
|
-
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
23402
|
-
command.request_object = test_permissions_request_object
|
23403
|
-
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
23404
|
-
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
23405
|
-
command.params['project'] = project unless project.nil?
|
23406
|
-
command.params['region'] = region unless region.nil?
|
23407
|
-
command.params['resource'] = resource unless resource.nil?
|
23408
|
-
command.query['fields'] = fields unless fields.nil?
|
23409
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
23410
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
23411
|
-
execute_or_queue_command(command, &block)
|
23412
|
-
end
|
23413
|
-
|
23414
24410
|
# Transfers GPUs or local SSDs between reservations within commitments.
|
23415
24411
|
# @param [String] project
|
23416
24412
|
# Project ID for this request.
|
@@ -26264,12 +27260,12 @@ module Google
|
|
26264
27260
|
execute_or_queue_command(command, &block)
|
26265
27261
|
end
|
26266
27262
|
|
26267
|
-
# Flags the specified instances in the managed instance group to be
|
26268
|
-
# recreated.
|
26269
|
-
#
|
26270
|
-
# the
|
26271
|
-
#
|
26272
|
-
#
|
27263
|
+
# Flags the specified VM instances in the managed instance group to be
|
27264
|
+
# immediately recreated. Each instance is recreated using the group's current
|
27265
|
+
# configuration. This operation is marked as DONE when the flag is set even if
|
27266
|
+
# the instances have not yet been recreated. You must separately verify the
|
27267
|
+
# status of each instance by checking its currentAction field; for more
|
27268
|
+
# information, see Checking the status of managed instances.
|
26273
27269
|
# If the group is part of a backend service that has enabled connection draining,
|
26274
27270
|
# it can take up to 60 seconds after the connection draining duration has
|
26275
27271
|
# elapsed before the VM instance is removed or deleted.
|
@@ -27303,15 +28299,109 @@ module Google
|
|
27303
28299
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27304
28300
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27305
28301
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27306
|
-
def set_region_instance_group_named_ports(project, region, instance_group, region_instance_groups_set_named_ports_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27307
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts', options)
|
27308
|
-
command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupsSetNamedPortsRequest::Representation
|
27309
|
-
command.request_object = region_instance_groups_set_named_ports_request_object
|
28302
|
+
def set_region_instance_group_named_ports(project, region, instance_group, region_instance_groups_set_named_ports_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28303
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroups/{instanceGroup}/setNamedPorts', options)
|
28304
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionInstanceGroupsSetNamedPortsRequest::Representation
|
28305
|
+
command.request_object = region_instance_groups_set_named_ports_request_object
|
28306
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
28307
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
28308
|
+
command.params['project'] = project unless project.nil?
|
28309
|
+
command.params['region'] = region unless region.nil?
|
28310
|
+
command.params['instanceGroup'] = instance_group unless instance_group.nil?
|
28311
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
28312
|
+
command.query['fields'] = fields unless fields.nil?
|
28313
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28314
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28315
|
+
execute_or_queue_command(command, &block)
|
28316
|
+
end
|
28317
|
+
|
28318
|
+
# Returns permissions that a caller has on the specified resource.
|
28319
|
+
# @param [String] project
|
28320
|
+
# Project ID for this request.
|
28321
|
+
# @param [String] region
|
28322
|
+
# The name of the region for this request.
|
28323
|
+
# @param [String] resource
|
28324
|
+
# Name or id of the resource for this request.
|
28325
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
28326
|
+
# @param [String] fields
|
28327
|
+
# Selector specifying which fields to include in a partial response.
|
28328
|
+
# @param [String] quota_user
|
28329
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
28330
|
+
# characters.
|
28331
|
+
# @param [String] user_ip
|
28332
|
+
# Deprecated. Please use quotaUser instead.
|
28333
|
+
# @param [Google::Apis::RequestOptions] options
|
28334
|
+
# Request-specific options
|
28335
|
+
#
|
28336
|
+
# @yield [result, err] Result & error if block supplied
|
28337
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
28338
|
+
# @yieldparam err [StandardError] error object if request failed
|
28339
|
+
#
|
28340
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
28341
|
+
#
|
28342
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28343
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28344
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28345
|
+
def test_region_instance_group_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28346
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroups/{resource}/testIamPermissions', options)
|
28347
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
28348
|
+
command.request_object = test_permissions_request_object
|
28349
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
28350
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
28351
|
+
command.params['project'] = project unless project.nil?
|
28352
|
+
command.params['region'] = region unless region.nil?
|
28353
|
+
command.params['resource'] = resource unless resource.nil?
|
28354
|
+
command.query['fields'] = fields unless fields.nil?
|
28355
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
28356
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
28357
|
+
execute_or_queue_command(command, &block)
|
28358
|
+
end
|
28359
|
+
|
28360
|
+
# Creates multiple instances in a given region. Count specifies the number of
|
28361
|
+
# instances to create.
|
28362
|
+
# @param [String] project
|
28363
|
+
# Project ID for this request.
|
28364
|
+
# @param [String] region
|
28365
|
+
# The name of the region for this request.
|
28366
|
+
# @param [Google::Apis::ComputeAlpha::BulkInsertInstanceResource] bulk_insert_instance_resource_object
|
28367
|
+
# @param [String] request_id
|
28368
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
28369
|
+
# that if you must retry your request, the server will know to ignore the
|
28370
|
+
# request if it has already been completed.
|
28371
|
+
# For example, consider a situation where you make an initial request and the
|
28372
|
+
# request times out. If you make the request again with the same request ID, the
|
28373
|
+
# server can check if original operation with the same request ID was received,
|
28374
|
+
# and if so, will ignore the second request. This prevents clients from
|
28375
|
+
# accidentally creating duplicate commitments.
|
28376
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
28377
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
28378
|
+
# @param [String] fields
|
28379
|
+
# Selector specifying which fields to include in a partial response.
|
28380
|
+
# @param [String] quota_user
|
28381
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
28382
|
+
# characters.
|
28383
|
+
# @param [String] user_ip
|
28384
|
+
# Deprecated. Please use quotaUser instead.
|
28385
|
+
# @param [Google::Apis::RequestOptions] options
|
28386
|
+
# Request-specific options
|
28387
|
+
#
|
28388
|
+
# @yield [result, err] Result & error if block supplied
|
28389
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
28390
|
+
# @yieldparam err [StandardError] error object if request failed
|
28391
|
+
#
|
28392
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
28393
|
+
#
|
28394
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28395
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28396
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28397
|
+
def bulk_region_instance_insert(project, region, bulk_insert_instance_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
28398
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instances/bulkInsert', options)
|
28399
|
+
command.request_representation = Google::Apis::ComputeAlpha::BulkInsertInstanceResource::Representation
|
28400
|
+
command.request_object = bulk_insert_instance_resource_object
|
27310
28401
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
27311
28402
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27312
28403
|
command.params['project'] = project unless project.nil?
|
27313
28404
|
command.params['region'] = region unless region.nil?
|
27314
|
-
command.params['instanceGroup'] = instance_group unless instance_group.nil?
|
27315
28405
|
command.query['requestId'] = request_id unless request_id.nil?
|
27316
28406
|
command.query['fields'] = fields unless fields.nil?
|
27317
28407
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -27319,14 +28409,13 @@ module Google
|
|
27319
28409
|
execute_or_queue_command(command, &block)
|
27320
28410
|
end
|
27321
28411
|
|
27322
|
-
# Returns
|
28412
|
+
# Returns recommended locations (zones in a region) for specified sets of
|
28413
|
+
# homogenous instances.
|
27323
28414
|
# @param [String] project
|
27324
28415
|
# Project ID for this request.
|
27325
28416
|
# @param [String] region
|
27326
28417
|
# The name of the region for this request.
|
27327
|
-
# @param [
|
27328
|
-
# Name or id of the resource for this request.
|
27329
|
-
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
28418
|
+
# @param [Google::Apis::ComputeAlpha::RegionInstancesRecommendLocationsResource] region_instances_recommend_locations_resource_object
|
27330
28419
|
# @param [String] fields
|
27331
28420
|
# Selector specifying which fields to include in a partial response.
|
27332
28421
|
# @param [String] quota_user
|
@@ -27338,75 +28427,22 @@ module Google
|
|
27338
28427
|
# Request-specific options
|
27339
28428
|
#
|
27340
28429
|
# @yield [result, err] Result & error if block supplied
|
27341
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
28430
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::RegionInstancesRecommendLocationsResponse] parsed result object
|
27342
28431
|
# @yieldparam err [StandardError] error object if request failed
|
27343
28432
|
#
|
27344
|
-
# @return [Google::Apis::ComputeAlpha::
|
28433
|
+
# @return [Google::Apis::ComputeAlpha::RegionInstancesRecommendLocationsResponse]
|
27345
28434
|
#
|
27346
28435
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27347
28436
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27348
28437
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27349
|
-
def
|
27350
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/
|
27351
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
27352
|
-
command.request_object =
|
27353
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
27354
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
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
|
27355
28444
|
command.params['project'] = project unless project.nil?
|
27356
28445
|
command.params['region'] = region unless region.nil?
|
27357
|
-
command.params['resource'] = resource unless resource.nil?
|
27358
|
-
command.query['fields'] = fields unless fields.nil?
|
27359
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27360
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
27361
|
-
execute_or_queue_command(command, &block)
|
27362
|
-
end
|
27363
|
-
|
27364
|
-
# Creates multiple instances in a given region. Count specifies the number of
|
27365
|
-
# instances to create.
|
27366
|
-
# @param [String] project
|
27367
|
-
# Project ID for this request.
|
27368
|
-
# @param [String] region
|
27369
|
-
# The name of the region for this request.
|
27370
|
-
# @param [Google::Apis::ComputeAlpha::BulkInsertInstanceResource] bulk_insert_instance_resource_object
|
27371
|
-
# @param [String] request_id
|
27372
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
27373
|
-
# that if you must retry your request, the server will know to ignore the
|
27374
|
-
# request if it has already been completed.
|
27375
|
-
# For example, consider a situation where you make an initial request and the
|
27376
|
-
# request times out. If you make the request again with the same request ID, the
|
27377
|
-
# server can check if original operation with the same request ID was received,
|
27378
|
-
# and if so, will ignore the second request. This prevents clients from
|
27379
|
-
# accidentally creating duplicate commitments.
|
27380
|
-
# The request ID must be a valid UUID with the exception that zero UUID is not
|
27381
|
-
# supported (00000000-0000-0000-0000-000000000000).
|
27382
|
-
# @param [String] fields
|
27383
|
-
# Selector specifying which fields to include in a partial response.
|
27384
|
-
# @param [String] quota_user
|
27385
|
-
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
27386
|
-
# characters.
|
27387
|
-
# @param [String] user_ip
|
27388
|
-
# Deprecated. Please use quotaUser instead.
|
27389
|
-
# @param [Google::Apis::RequestOptions] options
|
27390
|
-
# Request-specific options
|
27391
|
-
#
|
27392
|
-
# @yield [result, err] Result & error if block supplied
|
27393
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
27394
|
-
# @yieldparam err [StandardError] error object if request failed
|
27395
|
-
#
|
27396
|
-
# @return [Google::Apis::ComputeAlpha::Operation]
|
27397
|
-
#
|
27398
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
27399
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
27400
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
27401
|
-
def bulk_region_instance_insert(project, region, bulk_insert_instance_resource_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
27402
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instances/bulkInsert', options)
|
27403
|
-
command.request_representation = Google::Apis::ComputeAlpha::BulkInsertInstanceResource::Representation
|
27404
|
-
command.request_object = bulk_insert_instance_resource_object
|
27405
|
-
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
27406
|
-
command.response_class = Google::Apis::ComputeAlpha::Operation
|
27407
|
-
command.params['project'] = project unless project.nil?
|
27408
|
-
command.params['region'] = region unless region.nil?
|
27409
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
27410
28446
|
command.query['fields'] = fields unless fields.nil?
|
27411
28447
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
27412
28448
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -27469,7 +28505,7 @@ module Google
|
|
27469
28505
|
execute_or_queue_command(command, &block)
|
27470
28506
|
end
|
27471
28507
|
|
27472
|
-
# Export the changed blocks between two instant snapshots to a customer
|
28508
|
+
# Export the changed blocks between two instant snapshots to a customer's bucket
|
27473
28509
|
# in the user specified format.
|
27474
28510
|
# @param [String] project
|
27475
28511
|
# Project ID for this request.
|
@@ -28171,6 +29207,12 @@ module Google
|
|
28171
29207
|
# @param [String] firewall_policy
|
28172
29208
|
# Name of the firewall policy to update.
|
28173
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.
|
28174
29216
|
# @param [String] request_id
|
28175
29217
|
# An optional request ID to identify requests. Specify a unique request ID so
|
28176
29218
|
# that if you must retry your request, the server will know to ignore the
|
@@ -28201,7 +29243,7 @@ module Google
|
|
28201
29243
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
28202
29244
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
28203
29245
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
28204
|
-
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)
|
28205
29247
|
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/addRule', options)
|
28206
29248
|
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
|
28207
29249
|
command.request_object = firewall_policy_rule_object
|
@@ -28210,6 +29252,8 @@ module Google
|
|
28210
29252
|
command.params['project'] = project unless project.nil?
|
28211
29253
|
command.params['region'] = region unless region.nil?
|
28212
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?
|
28213
29257
|
command.query['requestId'] = request_id unless request_id.nil?
|
28214
29258
|
command.query['fields'] = fields unless fields.nil?
|
28215
29259
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -29201,18 +30245,214 @@ module Google
|
|
29201
30245
|
# Request-specific options
|
29202
30246
|
#
|
29203
30247
|
# @yield [result, err] Result & error if block supplied
|
29204
|
-
# @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
|
29205
30445
|
# @yieldparam err [StandardError] error object if request failed
|
29206
30446
|
#
|
29207
|
-
# @return [Google::Apis::ComputeAlpha::
|
30447
|
+
# @return [Google::Apis::ComputeAlpha::OperationList]
|
29208
30448
|
#
|
29209
30449
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29210
30450
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29211
30451
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29212
|
-
def
|
29213
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/
|
29214
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
29215
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
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
|
29216
30456
|
command.params['project'] = project unless project.nil?
|
29217
30457
|
command.params['region'] = region unless region.nil?
|
29218
30458
|
command.query['filter'] = filter unless filter.nil?
|
@@ -29226,14 +30466,23 @@ module Google
|
|
29226
30466
|
execute_or_queue_command(command, &block)
|
29227
30467
|
end
|
29228
30468
|
|
29229
|
-
#
|
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`.
|
29230
30480
|
# @param [String] project
|
29231
30481
|
# Project ID for this request.
|
29232
30482
|
# @param [String] region
|
29233
|
-
#
|
29234
|
-
# @param [String]
|
29235
|
-
# Name
|
29236
|
-
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
30483
|
+
# Name of the region for this request.
|
30484
|
+
# @param [String] operation
|
30485
|
+
# Name of the Operations resource to return.
|
29237
30486
|
# @param [String] fields
|
29238
30487
|
# Selector specifying which fields to include in a partial response.
|
29239
30488
|
# @param [String] quota_user
|
@@ -29245,36 +30494,45 @@ module Google
|
|
29245
30494
|
# Request-specific options
|
29246
30495
|
#
|
29247
30496
|
# @yield [result, err] Result & error if block supplied
|
29248
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
30497
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
29249
30498
|
# @yieldparam err [StandardError] error object if request failed
|
29250
30499
|
#
|
29251
|
-
# @return [Google::Apis::ComputeAlpha::
|
30500
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
29252
30501
|
#
|
29253
30502
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29254
30503
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29255
30504
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29256
|
-
def
|
29257
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/
|
29258
|
-
command.
|
29259
|
-
command.
|
29260
|
-
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
29261
|
-
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
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
|
29262
30509
|
command.params['project'] = project unless project.nil?
|
29263
30510
|
command.params['region'] = region unless region.nil?
|
29264
|
-
command.params['
|
30511
|
+
command.params['operation'] = operation unless operation.nil?
|
29265
30512
|
command.query['fields'] = fields unless fields.nil?
|
29266
30513
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29267
30514
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
29268
30515
|
execute_or_queue_command(command, &block)
|
29269
30516
|
end
|
29270
30517
|
|
29271
|
-
# Deletes the specified
|
30518
|
+
# Deletes the specified policy.
|
29272
30519
|
# @param [String] project
|
29273
30520
|
# Project ID for this request.
|
29274
30521
|
# @param [String] region
|
29275
|
-
# Name of the region
|
29276
|
-
# @param [String]
|
29277
|
-
# Name of the
|
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).
|
29278
30536
|
# @param [String] fields
|
29279
30537
|
# Selector specifying which fields to include in a partial response.
|
29280
30538
|
# @param [String] quota_user
|
@@ -29286,32 +30544,87 @@ module Google
|
|
29286
30544
|
# Request-specific options
|
29287
30545
|
#
|
29288
30546
|
# @yield [result, err] Result & error if block supplied
|
29289
|
-
# @yieldparam result [
|
30547
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
29290
30548
|
# @yieldparam err [StandardError] error object if request failed
|
29291
30549
|
#
|
29292
|
-
# @return [
|
30550
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
29293
30551
|
#
|
29294
30552
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29295
30553
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29296
30554
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29297
|
-
def
|
29298
|
-
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/
|
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
|
29299
30559
|
command.params['project'] = project unless project.nil?
|
29300
30560
|
command.params['region'] = region unless region.nil?
|
29301
|
-
command.params['
|
30561
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
30562
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
29302
30563
|
command.query['fields'] = fields unless fields.nil?
|
29303
30564
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29304
30565
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
29305
30566
|
execute_or_queue_command(command, &block)
|
29306
30567
|
end
|
29307
30568
|
|
29308
|
-
#
|
30569
|
+
# List all of the ordered rules present in a single specified policy.
|
29309
30570
|
# @param [String] project
|
29310
30571
|
# Project ID for this request.
|
29311
30572
|
# @param [String] region
|
29312
|
-
# Name of the region
|
29313
|
-
# @param [String]
|
29314
|
-
# Name of the
|
30573
|
+
# Name of the region scoping this request.
|
30574
|
+
# @param [String] security_policy
|
30575
|
+
# Name of the security policy to get.
|
30576
|
+
# @param [String] fields
|
30577
|
+
# Selector specifying which fields to include in a partial response.
|
30578
|
+
# @param [String] quota_user
|
30579
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
30580
|
+
# characters.
|
30581
|
+
# @param [String] user_ip
|
30582
|
+
# Deprecated. Please use quotaUser instead.
|
30583
|
+
# @param [Google::Apis::RequestOptions] options
|
30584
|
+
# Request-specific options
|
30585
|
+
#
|
30586
|
+
# @yield [result, err] Result & error if block supplied
|
30587
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::SecurityPolicy] parsed result object
|
30588
|
+
# @yieldparam err [StandardError] error object if request failed
|
30589
|
+
#
|
30590
|
+
# @return [Google::Apis::ComputeAlpha::SecurityPolicy]
|
30591
|
+
#
|
30592
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30593
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30594
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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
|
30599
|
+
command.params['project'] = project unless project.nil?
|
30600
|
+
command.params['region'] = region unless region.nil?
|
30601
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
30602
|
+
command.query['fields'] = fields unless fields.nil?
|
30603
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30604
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30605
|
+
execute_or_queue_command(command, &block)
|
30606
|
+
end
|
30607
|
+
|
30608
|
+
# Creates a new policy in the specified project using the data included in the
|
30609
|
+
# request.
|
30610
|
+
# @param [String] project
|
30611
|
+
# Project ID for this request.
|
30612
|
+
# @param [String] region
|
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.
|
29315
30628
|
# @param [String] fields
|
29316
30629
|
# Selector specifying which fields to include in a partial response.
|
29317
30630
|
# @param [String] quota_user
|
@@ -29331,24 +30644,28 @@ module Google
|
|
29331
30644
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29332
30645
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29333
30646
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29334
|
-
def
|
29335
|
-
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
|
29336
30651
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
29337
30652
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
29338
30653
|
command.params['project'] = project unless project.nil?
|
29339
30654
|
command.params['region'] = region unless region.nil?
|
29340
|
-
command.
|
30655
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
30656
|
+
command.query['validateOnly'] = validate_only unless validate_only.nil?
|
29341
30657
|
command.query['fields'] = fields unless fields.nil?
|
29342
30658
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29343
30659
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
29344
30660
|
execute_or_queue_command(command, &block)
|
29345
30661
|
end
|
29346
30662
|
|
29347
|
-
#
|
30663
|
+
# List all the policies that have been configured for the specified project and
|
30664
|
+
# region.
|
29348
30665
|
# @param [String] project
|
29349
30666
|
# Project ID for this request.
|
29350
30667
|
# @param [String] region
|
29351
|
-
# Name of the region
|
30668
|
+
# Name of the region scoping this request.
|
29352
30669
|
# @param [String] filter
|
29353
30670
|
# A filter expression that filters resources listed in the response. The
|
29354
30671
|
# expression must specify the field name, a comparison operator, and the value
|
@@ -29397,18 +30714,18 @@ module Google
|
|
29397
30714
|
# Request-specific options
|
29398
30715
|
#
|
29399
30716
|
# @yield [result, err] Result & error if block supplied
|
29400
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::
|
30717
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::SecurityPolicyList] parsed result object
|
29401
30718
|
# @yieldparam err [StandardError] error object if request failed
|
29402
30719
|
#
|
29403
|
-
# @return [Google::Apis::ComputeAlpha::
|
30720
|
+
# @return [Google::Apis::ComputeAlpha::SecurityPolicyList]
|
29404
30721
|
#
|
29405
30722
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29406
30723
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29407
30724
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29408
|
-
def
|
29409
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/
|
29410
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
29411
|
-
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
|
29412
30729
|
command.params['project'] = project unless project.nil?
|
29413
30730
|
command.params['region'] = region unless region.nil?
|
29414
30731
|
command.query['filter'] = filter unless filter.nil?
|
@@ -29422,23 +30739,25 @@ module Google
|
|
29422
30739
|
execute_or_queue_command(command, &block)
|
29423
30740
|
end
|
29424
30741
|
|
29425
|
-
#
|
29426
|
-
# request to approach the 2 minute deadline, and retrieves the specified
|
29427
|
-
# Operation resource. This method differs from the `GET` method in that it waits
|
29428
|
-
# for no more than the default deadline (2 minutes) and then returns the current
|
29429
|
-
# state of the operation, which might be `DONE` or still in progress.
|
29430
|
-
# This method is called on a best-effort basis. Specifically:
|
29431
|
-
# - In uncommon cases, when the server is overloaded, the request might return
|
29432
|
-
# before the default deadline is reached, or might return after zero seconds.
|
29433
|
-
# - If the default deadline is reached, there is no guarantee that the operation
|
29434
|
-
# is actually done when the method returns. Be prepared to retry if the
|
29435
|
-
# operation is not `DONE`.
|
30742
|
+
# Patches the specified policy with the data included in the request.
|
29436
30743
|
# @param [String] project
|
29437
30744
|
# Project ID for this request.
|
29438
30745
|
# @param [String] region
|
29439
|
-
# Name of the region
|
29440
|
-
# @param [String]
|
29441
|
-
# 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).
|
29442
30761
|
# @param [String] fields
|
29443
30762
|
# Selector specifying which fields to include in a partial response.
|
29444
30763
|
# @param [String] quota_user
|
@@ -29458,13 +30777,16 @@ module Google
|
|
29458
30777
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
29459
30778
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
29460
30779
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
29461
|
-
def
|
29462
|
-
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
|
29463
30784
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
29464
30785
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
29465
30786
|
command.params['project'] = project unless project.nil?
|
29466
30787
|
command.params['region'] = region unless region.nil?
|
29467
|
-
command.params['
|
30788
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
30789
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
29468
30790
|
command.query['fields'] = fields unless fields.nil?
|
29469
30791
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
29470
30792
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
@@ -32802,6 +34124,90 @@ module Google
|
|
32802
34124
|
execute_or_queue_command(command, &block)
|
32803
34125
|
end
|
32804
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
|
+
|
32805
34211
|
# Deletes the specified policy.
|
32806
34212
|
# @param [String] project
|
32807
34213
|
# Project ID for this request.
|
@@ -33691,6 +35097,63 @@ module Google
|
|
33691
35097
|
execute_or_queue_command(command, &block)
|
33692
35098
|
end
|
33693
35099
|
|
35100
|
+
# Patches the specified ServiceAttachment resource with the data included in the
|
35101
|
+
# request. This method supports PATCH semantics and uses JSON merge patch format
|
35102
|
+
# and processing rules.
|
35103
|
+
# @param [String] project
|
35104
|
+
# Project ID for this request.
|
35105
|
+
# @param [String] region
|
35106
|
+
# The region scoping this request and should conform to RFC1035.
|
35107
|
+
# @param [String] service_attachment
|
35108
|
+
# The resource id of the ServiceAttachment to patch. It should conform to
|
35109
|
+
# RFC1035 resource name or be a string form on an unsigned long number.
|
35110
|
+
# @param [Google::Apis::ComputeAlpha::ServiceAttachment] service_attachment_object
|
35111
|
+
# @param [String] request_id
|
35112
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
35113
|
+
# that if you must retry your request, the server will know to ignore the
|
35114
|
+
# request if it has already been completed.
|
35115
|
+
# For example, consider a situation where you make an initial request and the
|
35116
|
+
# request times out. If you make the request again with the same request ID, the
|
35117
|
+
# server can check if original operation with the same request ID was received,
|
35118
|
+
# and if so, will ignore the second request. This prevents clients from
|
35119
|
+
# accidentally creating duplicate commitments.
|
35120
|
+
# The request ID must be a valid UUID with the exception that zero UUID is not
|
35121
|
+
# supported (00000000-0000-0000-0000-000000000000).
|
35122
|
+
# @param [String] fields
|
35123
|
+
# Selector specifying which fields to include in a partial response.
|
35124
|
+
# @param [String] quota_user
|
35125
|
+
# An opaque string that represents a user for quota purposes. Must not exceed 40
|
35126
|
+
# characters.
|
35127
|
+
# @param [String] user_ip
|
35128
|
+
# Deprecated. Please use quotaUser instead.
|
35129
|
+
# @param [Google::Apis::RequestOptions] options
|
35130
|
+
# Request-specific options
|
35131
|
+
#
|
35132
|
+
# @yield [result, err] Result & error if block supplied
|
35133
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
35134
|
+
# @yieldparam err [StandardError] error object if request failed
|
35135
|
+
#
|
35136
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
35137
|
+
#
|
35138
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
35139
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
35140
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
35141
|
+
def patch_service_attachment(project, region, service_attachment, service_attachment_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
35142
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/serviceAttachments/{serviceAttachment}', options)
|
35143
|
+
command.request_representation = Google::Apis::ComputeAlpha::ServiceAttachment::Representation
|
35144
|
+
command.request_object = service_attachment_object
|
35145
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
35146
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
35147
|
+
command.params['project'] = project unless project.nil?
|
35148
|
+
command.params['region'] = region unless region.nil?
|
35149
|
+
command.params['serviceAttachment'] = service_attachment unless service_attachment.nil?
|
35150
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
35151
|
+
command.query['fields'] = fields unless fields.nil?
|
35152
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
35153
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
35154
|
+
execute_or_queue_command(command, &block)
|
35155
|
+
end
|
35156
|
+
|
33694
35157
|
# Sets the access control policy on the specified resource. Replaces any
|
33695
35158
|
# existing policy.
|
33696
35159
|
# @param [String] project
|
@@ -41033,7 +42496,7 @@ module Google
|
|
41033
42496
|
execute_or_queue_command(command, &block)
|
41034
42497
|
end
|
41035
42498
|
|
41036
|
-
# Export the changed blocks between two instant snapshots to a customer
|
42499
|
+
# Export the changed blocks between two instant snapshots to a customer's bucket
|
41037
42500
|
# in the user specified format.
|
41038
42501
|
# @param [String] project
|
41039
42502
|
# Project ID for this request.
|