google-apis-compute_alpha 0.121.0 → 0.122.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 +4 -0
- data/lib/google/apis/compute_alpha/classes.rb +2580 -857
- data/lib/google/apis/compute_alpha/gem_version.rb +2 -2
- data/lib/google/apis/compute_alpha/representations.rb +745 -11
- data/lib/google/apis/compute_alpha/service.rb +2018 -394
- metadata +2 -2
@@ -1404,6 +1404,111 @@ module Google
|
|
1404
1404
|
execute_or_queue_command(command, &block)
|
1405
1405
|
end
|
1406
1406
|
|
1407
|
+
# Retrieves the list of all BackendBucket resources, regional and global,
|
1408
|
+
# available to the specified project. To prevent failure, Google recommends that
|
1409
|
+
# you set the `returnPartialSuccess` parameter to `true`.
|
1410
|
+
# @param [String] project
|
1411
|
+
# Name of the project scoping this request.
|
1412
|
+
# @param [String] filter
|
1413
|
+
# A filter expression that filters resources listed in the response. Most
|
1414
|
+
# Compute resources support two types of filter expressions: expressions that
|
1415
|
+
# support regular expressions and expressions that follow API improvement
|
1416
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
1417
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
1418
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
1419
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
1420
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
1421
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
1422
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
1423
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
1424
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
1425
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
1426
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
1427
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
1428
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
1429
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
1430
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
1431
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
1432
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
1433
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
1434
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
1435
|
+
# un-parenthesized expression with or without quotes or against multiple
|
1436
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
1437
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
1438
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
1439
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
1440
|
+
# literal value must match the entire field. For example, to filter for
|
1441
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
1442
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
1443
|
+
# expressions.
|
1444
|
+
# @param [Boolean] include_all_scopes
|
1445
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
1446
|
+
# global) should be included in the response. For new resource types added after
|
1447
|
+
# this field, the flag has no effect as new resource types will always include
|
1448
|
+
# every visible scope for each scope type in response. For resource types which
|
1449
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
1450
|
+
# types where the resource type is expected to be found will be included.
|
1451
|
+
# @param [Fixnum] max_results
|
1452
|
+
# The maximum number of results per page that should be returned. If the number
|
1453
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
1454
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
1455
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
1456
|
+
# @param [String] order_by
|
1457
|
+
# Sorts list results by a certain order. By default, results are returned in
|
1458
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
1459
|
+
# descending order based on the creation timestamp using `orderBy="
|
1460
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
1461
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
1462
|
+
# resources like operations so that the newest operation is returned first.
|
1463
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
1464
|
+
# @param [String] page_token
|
1465
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
1466
|
+
# by a previous list request to get the next page of results.
|
1467
|
+
# @param [Boolean] return_partial_success
|
1468
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
1469
|
+
# failure. The default value is false. For example, when partial success
|
1470
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
1471
|
+
# resources in the zone or no resources, with an error code.
|
1472
|
+
# @param [Fixnum] service_project_number
|
1473
|
+
# The Shared VPC service project id or service project number for which
|
1474
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
1475
|
+
# @param [String] fields
|
1476
|
+
# Selector specifying which fields to include in a partial response.
|
1477
|
+
# @param [String] quota_user
|
1478
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
1479
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
1480
|
+
# @param [String] user_ip
|
1481
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
1482
|
+
# @param [Google::Apis::RequestOptions] options
|
1483
|
+
# Request-specific options
|
1484
|
+
#
|
1485
|
+
# @yield [result, err] Result & error if block supplied
|
1486
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::BackendBucketAggregatedList] parsed result object
|
1487
|
+
# @yieldparam err [StandardError] error object if request failed
|
1488
|
+
#
|
1489
|
+
# @return [Google::Apis::ComputeAlpha::BackendBucketAggregatedList]
|
1490
|
+
#
|
1491
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
1492
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
1493
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
1494
|
+
def aggregated_backend_bucket_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
1495
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/backendBuckets', options)
|
1496
|
+
command.response_representation = Google::Apis::ComputeAlpha::BackendBucketAggregatedList::Representation
|
1497
|
+
command.response_class = Google::Apis::ComputeAlpha::BackendBucketAggregatedList
|
1498
|
+
command.params['project'] = project unless project.nil?
|
1499
|
+
command.query['filter'] = filter unless filter.nil?
|
1500
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
1501
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
1502
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
1503
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
1504
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
1505
|
+
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
1506
|
+
command.query['fields'] = fields unless fields.nil?
|
1507
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
1508
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
1509
|
+
execute_or_queue_command(command, &block)
|
1510
|
+
end
|
1511
|
+
|
1407
1512
|
# Deletes the specified BackendBucket resource.
|
1408
1513
|
# @param [String] project
|
1409
1514
|
# Project ID for this request.
|
@@ -4687,6 +4792,57 @@ module Google
|
|
4687
4792
|
execute_or_queue_command(command, &block)
|
4688
4793
|
end
|
4689
4794
|
|
4795
|
+
# Rotates the customer-managed encryption key to the latest version for the
|
4796
|
+
# specified persistent disk.
|
4797
|
+
# @param [String] project
|
4798
|
+
# Project ID for this request.
|
4799
|
+
# @param [String] zone
|
4800
|
+
# The name of the zone for this request.
|
4801
|
+
# @param [String] disk
|
4802
|
+
# Name of the Disk resource, should conform to RFC1035.
|
4803
|
+
# @param [String] request_id
|
4804
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
4805
|
+
# that if you must retry your request, the server will know to ignore the
|
4806
|
+
# request if it has already been completed. For example, consider a situation
|
4807
|
+
# where you make an initial request and the request times out. If you make the
|
4808
|
+
# request again with the same request ID, the server can check if original
|
4809
|
+
# operation with the same request ID was received, and if so, will ignore the
|
4810
|
+
# second request. This prevents clients from accidentally creating duplicate
|
4811
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
4812
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
4813
|
+
# @param [String] fields
|
4814
|
+
# Selector specifying which fields to include in a partial response.
|
4815
|
+
# @param [String] quota_user
|
4816
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4817
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4818
|
+
# @param [String] user_ip
|
4819
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
4820
|
+
# @param [Google::Apis::RequestOptions] options
|
4821
|
+
# Request-specific options
|
4822
|
+
#
|
4823
|
+
# @yield [result, err] Result & error if block supplied
|
4824
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
4825
|
+
# @yieldparam err [StandardError] error object if request failed
|
4826
|
+
#
|
4827
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
4828
|
+
#
|
4829
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4830
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4831
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4832
|
+
def update_disk_kmskey(project, zone, disk, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
4833
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/disks/{disk}/updateKmsKey', options)
|
4834
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
4835
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
4836
|
+
command.params['project'] = project unless project.nil?
|
4837
|
+
command.params['zone'] = zone unless zone.nil?
|
4838
|
+
command.params['disk'] = disk unless disk.nil?
|
4839
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
4840
|
+
command.query['fields'] = fields unless fields.nil?
|
4841
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4842
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
4843
|
+
execute_or_queue_command(command, &block)
|
4844
|
+
end
|
4845
|
+
|
4690
4846
|
# Wait for replication to catch up on the secondary disk.
|
4691
4847
|
# @param [String] project
|
4692
4848
|
# Project ID for this request.
|
@@ -5304,7 +5460,7 @@ module Google
|
|
5304
5460
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5305
5461
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5306
5462
|
def force_firewall_policy_start_progressive_rollout(firewall_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5307
|
-
command = make_simple_command(:post, 'locations/global/{
|
5463
|
+
command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/forceStartProgressiveRollout', options)
|
5308
5464
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
5309
5465
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
5310
5466
|
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
@@ -5637,6 +5793,10 @@ module Google
|
|
5637
5793
|
end
|
5638
5794
|
|
5639
5795
|
# Lists associations of a specified target, i.e., organization or folder.
|
5796
|
+
# @param [Boolean] include_inherited_policies
|
5797
|
+
# If set to "true", the response will contain a list of all associations for the
|
5798
|
+
# containing folders and the containing organization of the target. The
|
5799
|
+
# parameter has no effect if the target is an organization.
|
5640
5800
|
# @param [String] target_resource
|
5641
5801
|
# The target resource to list associations. It is an organization, or a folder.
|
5642
5802
|
# @param [String] fields
|
@@ -5658,10 +5818,11 @@ module Google
|
|
5658
5818
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5659
5819
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5660
5820
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5661
|
-
def list_firewall_policy_associations(target_resource: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5821
|
+
def list_firewall_policy_associations(include_inherited_policies: nil, target_resource: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5662
5822
|
command = make_simple_command(:get, 'locations/global/firewallPolicies/listAssociations', options)
|
5663
5823
|
command.response_representation = Google::Apis::ComputeAlpha::FirewallPoliciesListAssociationsResponse::Representation
|
5664
5824
|
command.response_class = Google::Apis::ComputeAlpha::FirewallPoliciesListAssociationsResponse
|
5825
|
+
command.query['includeInheritedPolicies'] = include_inherited_policies unless include_inherited_policies.nil?
|
5665
5826
|
command.query['targetResource'] = target_resource unless target_resource.nil?
|
5666
5827
|
command.query['fields'] = fields unless fields.nil?
|
5667
5828
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -7821,6 +7982,133 @@ module Google
|
|
7821
7982
|
execute_or_queue_command(command, &block)
|
7822
7983
|
end
|
7823
7984
|
|
7985
|
+
# Retrieves the specified Operations resource.
|
7986
|
+
# @param [String] folder
|
7987
|
+
# Folder ID for this request.
|
7988
|
+
# @param [String] operation
|
7989
|
+
# Name of the Operations resource to return.
|
7990
|
+
# @param [String] fields
|
7991
|
+
# Selector specifying which fields to include in a partial response.
|
7992
|
+
# @param [String] quota_user
|
7993
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
7994
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
7995
|
+
# @param [String] user_ip
|
7996
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
7997
|
+
# @param [Google::Apis::RequestOptions] options
|
7998
|
+
# Request-specific options
|
7999
|
+
#
|
8000
|
+
# @yield [result, err] Result & error if block supplied
|
8001
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
8002
|
+
# @yieldparam err [StandardError] error object if request failed
|
8003
|
+
#
|
8004
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
8005
|
+
#
|
8006
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
8007
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
8008
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
8009
|
+
def get_global_folder_operation(folder, operation, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
8010
|
+
command = make_simple_command(:get, '{+folder}/global/operations/{operation}', options)
|
8011
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
8012
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
8013
|
+
command.params['folder'] = folder unless folder.nil?
|
8014
|
+
command.params['operation'] = operation unless operation.nil?
|
8015
|
+
command.query['fields'] = fields unless fields.nil?
|
8016
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
8017
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
8018
|
+
execute_or_queue_command(command, &block)
|
8019
|
+
end
|
8020
|
+
|
8021
|
+
# Retrieves a list of Operation resources contained within the specified folder.
|
8022
|
+
# @param [String] folder
|
8023
|
+
# Folder ID for this request.
|
8024
|
+
# @param [String] filter
|
8025
|
+
# A filter expression that filters resources listed in the response. Most
|
8026
|
+
# Compute resources support two types of filter expressions: expressions that
|
8027
|
+
# support regular expressions and expressions that follow API improvement
|
8028
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
8029
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
8030
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
8031
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
8032
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
8033
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
8034
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
8035
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
8036
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
8037
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
8038
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
8039
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
8040
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
8041
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
8042
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
8043
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
8044
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
8045
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
8046
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
8047
|
+
# un-parenthesized expression with or without quotes or against multiple
|
8048
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
8049
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
8050
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
8051
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
8052
|
+
# literal value must match the entire field. For example, to filter for
|
8053
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
8054
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
8055
|
+
# expressions.
|
8056
|
+
# @param [Fixnum] max_results
|
8057
|
+
# The maximum number of results per page that should be returned. If the number
|
8058
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
8059
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
8060
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
8061
|
+
# @param [String] order_by
|
8062
|
+
# Sorts list results by a certain order. By default, results are returned in
|
8063
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
8064
|
+
# descending order based on the creation timestamp using `orderBy="
|
8065
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
8066
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
8067
|
+
# resources like operations so that the newest operation is returned first.
|
8068
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
8069
|
+
# @param [String] page_token
|
8070
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
8071
|
+
# by a previous list request to get the next page of results.
|
8072
|
+
# @param [Boolean] return_partial_success
|
8073
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
8074
|
+
# failure. The default value is false. For example, when partial success
|
8075
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
8076
|
+
# resources in the zone or no resources, with an error code.
|
8077
|
+
# @param [String] fields
|
8078
|
+
# Selector specifying which fields to include in a partial response.
|
8079
|
+
# @param [String] quota_user
|
8080
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
8081
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
8082
|
+
# @param [String] user_ip
|
8083
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
8084
|
+
# @param [Google::Apis::RequestOptions] options
|
8085
|
+
# Request-specific options
|
8086
|
+
#
|
8087
|
+
# @yield [result, err] Result & error if block supplied
|
8088
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::OperationList] parsed result object
|
8089
|
+
# @yieldparam err [StandardError] error object if request failed
|
8090
|
+
#
|
8091
|
+
# @return [Google::Apis::ComputeAlpha::OperationList]
|
8092
|
+
#
|
8093
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
8094
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
8095
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
8096
|
+
def list_global_folder_operations(folder, 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)
|
8097
|
+
command = make_simple_command(:get, '{+folder}/global/operations', options)
|
8098
|
+
command.response_representation = Google::Apis::ComputeAlpha::OperationList::Representation
|
8099
|
+
command.response_class = Google::Apis::ComputeAlpha::OperationList
|
8100
|
+
command.params['folder'] = folder unless folder.nil?
|
8101
|
+
command.query['filter'] = filter unless filter.nil?
|
8102
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
8103
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
8104
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
8105
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
8106
|
+
command.query['fields'] = fields unless fields.nil?
|
8107
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
8108
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
8109
|
+
execute_or_queue_command(command, &block)
|
8110
|
+
end
|
8111
|
+
|
7824
8112
|
# Deletes the specified GlobalForwardingRule resource.
|
7825
8113
|
# @param [String] project
|
7826
8114
|
# Project ID for this request.
|
@@ -9396,6 +9684,408 @@ module Google
|
|
9396
9684
|
execute_or_queue_command(command, &block)
|
9397
9685
|
end
|
9398
9686
|
|
9687
|
+
# Retrieves the list of all VM Extension Policy resources available to the
|
9688
|
+
# specified project. To prevent failure, it's recommended that you set the `
|
9689
|
+
# returnPartialSuccess` parameter to `true`.
|
9690
|
+
# @param [String] project
|
9691
|
+
# Name of the project scoping this request.
|
9692
|
+
# @param [String] filter
|
9693
|
+
# A filter expression that filters resources listed in the response. Most
|
9694
|
+
# Compute resources support two types of filter expressions: expressions that
|
9695
|
+
# support regular expressions and expressions that follow API improvement
|
9696
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
9697
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
9698
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
9699
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
9700
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
9701
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
9702
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
9703
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
9704
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
9705
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
9706
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
9707
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
9708
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
9709
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
9710
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
9711
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
9712
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
9713
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
9714
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
9715
|
+
# un-parenthesized expression with or without quotes or against multiple
|
9716
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
9717
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
9718
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
9719
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
9720
|
+
# literal value must match the entire field. For example, to filter for
|
9721
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
9722
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
9723
|
+
# expressions.
|
9724
|
+
# @param [Boolean] include_all_scopes
|
9725
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
9726
|
+
# global) should be included in the response. For new resource types added after
|
9727
|
+
# this field, the flag has no effect as new resource types will always include
|
9728
|
+
# every visible scope for each scope type in response. For resource types which
|
9729
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
9730
|
+
# types where the resource type is expected to be found will be included.
|
9731
|
+
# @param [Fixnum] max_results
|
9732
|
+
# The maximum number of results per page that should be returned. If the number
|
9733
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
9734
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
9735
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
9736
|
+
# @param [String] order_by
|
9737
|
+
# Sorts list results by a certain order. By default, results are returned in
|
9738
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
9739
|
+
# descending order based on the creation timestamp using `orderBy="
|
9740
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
9741
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
9742
|
+
# resources like operations so that the newest operation is returned first.
|
9743
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
9744
|
+
# @param [String] page_token
|
9745
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
9746
|
+
# by a previous list request to get the next page of results.
|
9747
|
+
# @param [Boolean] return_partial_success
|
9748
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
9749
|
+
# failure. The default value is false. For example, when partial success
|
9750
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
9751
|
+
# resources in the zone or no resources, with an error code.
|
9752
|
+
# @param [Fixnum] service_project_number
|
9753
|
+
# The Shared VPC service project id or service project number for which
|
9754
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
9755
|
+
# @param [String] fields
|
9756
|
+
# Selector specifying which fields to include in a partial response.
|
9757
|
+
# @param [String] quota_user
|
9758
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
9759
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
9760
|
+
# @param [String] user_ip
|
9761
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
9762
|
+
# @param [Google::Apis::RequestOptions] options
|
9763
|
+
# Request-specific options
|
9764
|
+
#
|
9765
|
+
# @yield [result, err] Result & error if block supplied
|
9766
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::VmExtensionPolicyAggregatedListResponse] parsed result object
|
9767
|
+
# @yieldparam err [StandardError] error object if request failed
|
9768
|
+
#
|
9769
|
+
# @return [Google::Apis::ComputeAlpha::VmExtensionPolicyAggregatedListResponse]
|
9770
|
+
#
|
9771
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
9772
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
9773
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
9774
|
+
def aggregated_global_vm_extension_policy_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
9775
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/vmExtensionPolicies', options)
|
9776
|
+
command.response_representation = Google::Apis::ComputeAlpha::VmExtensionPolicyAggregatedListResponse::Representation
|
9777
|
+
command.response_class = Google::Apis::ComputeAlpha::VmExtensionPolicyAggregatedListResponse
|
9778
|
+
command.params['project'] = project unless project.nil?
|
9779
|
+
command.query['filter'] = filter unless filter.nil?
|
9780
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
9781
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
9782
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
9783
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
9784
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
9785
|
+
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
9786
|
+
command.query['fields'] = fields unless fields.nil?
|
9787
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
9788
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
9789
|
+
execute_or_queue_command(command, &block)
|
9790
|
+
end
|
9791
|
+
|
9792
|
+
# Purge scoped resources (zonal policies) from a global VM extension policy, and
|
9793
|
+
# then delete the global VM extension policy. Purge of the scoped resources is a
|
9794
|
+
# pre-condition of the global VM extension policy deletion. The deletion of the
|
9795
|
+
# global VM extension policy happens after the purge rollout is done, so it's
|
9796
|
+
# not a part of the LRO. It's an automatic process that triggers in the backend.
|
9797
|
+
# @param [String] project
|
9798
|
+
# Project ID for this request.
|
9799
|
+
# @param [String] global_vm_extension_policy
|
9800
|
+
# Name of the global VM extension policy to purge scoped resources for.
|
9801
|
+
# @param [String] request_id
|
9802
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
9803
|
+
# that if you must retry your request, the server will know to ignore the
|
9804
|
+
# request if it has already been completed. For example, consider a situation
|
9805
|
+
# where you make an initial request and the request times out. If you make the
|
9806
|
+
# request again with the same request ID, the server can check if original
|
9807
|
+
# operation with the same request ID was received, and if so, will ignore the
|
9808
|
+
# second request. This prevents clients from accidentally creating duplicate
|
9809
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
9810
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
9811
|
+
# @param [String] rollout_input_conflict_behavior
|
9812
|
+
# Optional. [Optional] Specifies the behavior of the Rollout if a conflict is
|
9813
|
+
# detected in a project during a Rollout. It can be one of the following values:
|
9814
|
+
# 1) empty : don't overwrite the local value if conflict happens. This is the
|
9815
|
+
# default behavior. 2) "overwrite" : Overwrite the local value with the rollout
|
9816
|
+
# value. The concept of "conflict" applies to: 1) Insert action. If the zonal
|
9817
|
+
# policy already exists when Insert happens, it's a conflict. 2) Update action.
|
9818
|
+
# If the zonal policy was updated out of band by a zonal API, it's a conflict.
|
9819
|
+
# @param [String] rollout_input_name
|
9820
|
+
# Optional. The name of the rollout plan. Ex. projects//locations/global/
|
9821
|
+
# rolloutPlans/.
|
9822
|
+
# @param [String] rollout_input_predefined_rollout_plan
|
9823
|
+
# Optional. Predefined rollout plan.
|
9824
|
+
# @param [String] rollout_input_retry_uuid
|
9825
|
+
# Optional. The UUID of the retry action. Only set it if this is a retry for an
|
9826
|
+
# existing resource. This is for the user re-populate the resource without
|
9827
|
+
# changes. An error will be returned if the retry_uuid is set but the resource
|
9828
|
+
# get modified.
|
9829
|
+
# @param [String] fields
|
9830
|
+
# Selector specifying which fields to include in a partial response.
|
9831
|
+
# @param [String] quota_user
|
9832
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
9833
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
9834
|
+
# @param [String] user_ip
|
9835
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
9836
|
+
# @param [Google::Apis::RequestOptions] options
|
9837
|
+
# Request-specific options
|
9838
|
+
#
|
9839
|
+
# @yield [result, err] Result & error if block supplied
|
9840
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
9841
|
+
# @yieldparam err [StandardError] error object if request failed
|
9842
|
+
#
|
9843
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
9844
|
+
#
|
9845
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
9846
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
9847
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
9848
|
+
def delete_global_vm_extension_policy(project, global_vm_extension_policy, request_id: nil, rollout_input_conflict_behavior: nil, rollout_input_name: nil, rollout_input_predefined_rollout_plan: nil, rollout_input_retry_uuid: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
9849
|
+
command = make_simple_command(:patch, 'projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}', options)
|
9850
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
9851
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
9852
|
+
command.params['project'] = project unless project.nil?
|
9853
|
+
command.params['globalVmExtensionPolicy'] = global_vm_extension_policy unless global_vm_extension_policy.nil?
|
9854
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
9855
|
+
command.query['rolloutInput.conflictBehavior'] = rollout_input_conflict_behavior unless rollout_input_conflict_behavior.nil?
|
9856
|
+
command.query['rolloutInput.name'] = rollout_input_name unless rollout_input_name.nil?
|
9857
|
+
command.query['rolloutInput.predefinedRolloutPlan'] = rollout_input_predefined_rollout_plan unless rollout_input_predefined_rollout_plan.nil?
|
9858
|
+
command.query['rolloutInput.retryUuid'] = rollout_input_retry_uuid unless rollout_input_retry_uuid.nil?
|
9859
|
+
command.query['fields'] = fields unless fields.nil?
|
9860
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
9861
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
9862
|
+
execute_or_queue_command(command, &block)
|
9863
|
+
end
|
9864
|
+
|
9865
|
+
# Gets details of a global VM extension policy.
|
9866
|
+
# @param [String] project
|
9867
|
+
# Project ID for this request.
|
9868
|
+
# @param [String] global_vm_extension_policy
|
9869
|
+
# Name of the GlobalVmExtensionPolicy resource to return.
|
9870
|
+
# @param [String] fields
|
9871
|
+
# Selector specifying which fields to include in a partial response.
|
9872
|
+
# @param [String] quota_user
|
9873
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
9874
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
9875
|
+
# @param [String] user_ip
|
9876
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
9877
|
+
# @param [Google::Apis::RequestOptions] options
|
9878
|
+
# Request-specific options
|
9879
|
+
#
|
9880
|
+
# @yield [result, err] Result & error if block supplied
|
9881
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::GlobalVmExtensionPolicy] parsed result object
|
9882
|
+
# @yieldparam err [StandardError] error object if request failed
|
9883
|
+
#
|
9884
|
+
# @return [Google::Apis::ComputeAlpha::GlobalVmExtensionPolicy]
|
9885
|
+
#
|
9886
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
9887
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
9888
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
9889
|
+
def get_global_vm_extension_policy(project, global_vm_extension_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
9890
|
+
command = make_simple_command(:get, 'projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}', options)
|
9891
|
+
command.response_representation = Google::Apis::ComputeAlpha::GlobalVmExtensionPolicy::Representation
|
9892
|
+
command.response_class = Google::Apis::ComputeAlpha::GlobalVmExtensionPolicy
|
9893
|
+
command.params['project'] = project unless project.nil?
|
9894
|
+
command.params['globalVmExtensionPolicy'] = global_vm_extension_policy unless global_vm_extension_policy.nil?
|
9895
|
+
command.query['fields'] = fields unless fields.nil?
|
9896
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
9897
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
9898
|
+
execute_or_queue_command(command, &block)
|
9899
|
+
end
|
9900
|
+
|
9901
|
+
# Creates a new project level GlobalVmExtensionPolicy.
|
9902
|
+
# @param [String] project
|
9903
|
+
# Project ID for this request.
|
9904
|
+
# @param [Google::Apis::ComputeAlpha::GlobalVmExtensionPolicy] global_vm_extension_policy_object
|
9905
|
+
# @param [String] request_id
|
9906
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
9907
|
+
# that if you must retry your request, the server will know to ignore the
|
9908
|
+
# request if it has already been completed. For example, consider a situation
|
9909
|
+
# where you make an initial request and the request times out. If you make the
|
9910
|
+
# request again with the same request ID, the server can check if original
|
9911
|
+
# operation with the same request ID was received, and if so, will ignore the
|
9912
|
+
# second request. This prevents clients from accidentally creating duplicate
|
9913
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
9914
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
9915
|
+
# @param [String] fields
|
9916
|
+
# Selector specifying which fields to include in a partial response.
|
9917
|
+
# @param [String] quota_user
|
9918
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
9919
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
9920
|
+
# @param [String] user_ip
|
9921
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
9922
|
+
# @param [Google::Apis::RequestOptions] options
|
9923
|
+
# Request-specific options
|
9924
|
+
#
|
9925
|
+
# @yield [result, err] Result & error if block supplied
|
9926
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
9927
|
+
# @yieldparam err [StandardError] error object if request failed
|
9928
|
+
#
|
9929
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
9930
|
+
#
|
9931
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
9932
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
9933
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
9934
|
+
def insert_global_vm_extension_policy(project, global_vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
9935
|
+
command = make_simple_command(:post, 'projects/{project}/global/vmExtensionPolicies', options)
|
9936
|
+
command.request_representation = Google::Apis::ComputeAlpha::GlobalVmExtensionPolicy::Representation
|
9937
|
+
command.request_object = global_vm_extension_policy_object
|
9938
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
9939
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
9940
|
+
command.params['project'] = project unless project.nil?
|
9941
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
9942
|
+
command.query['fields'] = fields unless fields.nil?
|
9943
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
9944
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
9945
|
+
execute_or_queue_command(command, &block)
|
9946
|
+
end
|
9947
|
+
|
9948
|
+
# Lists global VM extension policies.
|
9949
|
+
# @param [String] project
|
9950
|
+
# Project ID for this request.
|
9951
|
+
# @param [String] filter
|
9952
|
+
# A filter expression that filters resources listed in the response. Most
|
9953
|
+
# Compute resources support two types of filter expressions: expressions that
|
9954
|
+
# support regular expressions and expressions that follow API improvement
|
9955
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
9956
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
9957
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
9958
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
9959
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
9960
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
9961
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
9962
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
9963
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
9964
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
9965
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
9966
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
9967
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
9968
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
9969
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
9970
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
9971
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
9972
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
9973
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
9974
|
+
# un-parenthesized expression with or without quotes or against multiple
|
9975
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
9976
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
9977
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
9978
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
9979
|
+
# literal value must match the entire field. For example, to filter for
|
9980
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
9981
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
9982
|
+
# expressions.
|
9983
|
+
# @param [Fixnum] max_results
|
9984
|
+
# The maximum number of results per page that should be returned. If the number
|
9985
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
9986
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
9987
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
9988
|
+
# @param [String] order_by
|
9989
|
+
# Sorts list results by a certain order. By default, results are returned in
|
9990
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
9991
|
+
# descending order based on the creation timestamp using `orderBy="
|
9992
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
9993
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
9994
|
+
# resources like operations so that the newest operation is returned first.
|
9995
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
9996
|
+
# @param [String] page_token
|
9997
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
9998
|
+
# by a previous list request to get the next page of results.
|
9999
|
+
# @param [Boolean] return_partial_success
|
10000
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
10001
|
+
# failure. The default value is false. For example, when partial success
|
10002
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
10003
|
+
# resources in the zone or no resources, with an error code.
|
10004
|
+
# @param [String] fields
|
10005
|
+
# Selector specifying which fields to include in a partial response.
|
10006
|
+
# @param [String] quota_user
|
10007
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
10008
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
10009
|
+
# @param [String] user_ip
|
10010
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
10011
|
+
# @param [Google::Apis::RequestOptions] options
|
10012
|
+
# Request-specific options
|
10013
|
+
#
|
10014
|
+
# @yield [result, err] Result & error if block supplied
|
10015
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::GlobalVmExtensionPolicyList] parsed result object
|
10016
|
+
# @yieldparam err [StandardError] error object if request failed
|
10017
|
+
#
|
10018
|
+
# @return [Google::Apis::ComputeAlpha::GlobalVmExtensionPolicyList]
|
10019
|
+
#
|
10020
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
10021
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
10022
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
10023
|
+
def list_global_vm_extension_policies(project, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
10024
|
+
command = make_simple_command(:get, 'projects/{project}/global/vmExtensionPolicies', options)
|
10025
|
+
command.response_representation = Google::Apis::ComputeAlpha::GlobalVmExtensionPolicyList::Representation
|
10026
|
+
command.response_class = Google::Apis::ComputeAlpha::GlobalVmExtensionPolicyList
|
10027
|
+
command.params['project'] = project unless project.nil?
|
10028
|
+
command.query['filter'] = filter unless filter.nil?
|
10029
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
10030
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
10031
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
10032
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
10033
|
+
command.query['fields'] = fields unless fields.nil?
|
10034
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
10035
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
10036
|
+
execute_or_queue_command(command, &block)
|
10037
|
+
end
|
10038
|
+
|
10039
|
+
# Updates a global VM extension policy.
|
10040
|
+
# @param [String] project
|
10041
|
+
# Project ID for this request.
|
10042
|
+
# @param [String] global_vm_extension_policy
|
10043
|
+
# Name of the global VM extension policy to update.
|
10044
|
+
# @param [Google::Apis::ComputeAlpha::GlobalVmExtensionPolicy] global_vm_extension_policy_object
|
10045
|
+
# @param [String] request_id
|
10046
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
10047
|
+
# that if you must retry your request, the server will know to ignore the
|
10048
|
+
# request if it has already been completed. For example, consider a situation
|
10049
|
+
# where you make an initial request and the request times out. If you make the
|
10050
|
+
# request again with the same request ID, the server can check if original
|
10051
|
+
# operation with the same request ID was received, and if so, will ignore the
|
10052
|
+
# second request. This prevents clients from accidentally creating duplicate
|
10053
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
10054
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
10055
|
+
# @param [String] fields
|
10056
|
+
# Selector specifying which fields to include in a partial response.
|
10057
|
+
# @param [String] quota_user
|
10058
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
10059
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
10060
|
+
# @param [String] user_ip
|
10061
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
10062
|
+
# @param [Google::Apis::RequestOptions] options
|
10063
|
+
# Request-specific options
|
10064
|
+
#
|
10065
|
+
# @yield [result, err] Result & error if block supplied
|
10066
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
10067
|
+
# @yieldparam err [StandardError] error object if request failed
|
10068
|
+
#
|
10069
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
10070
|
+
#
|
10071
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
10072
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
10073
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
10074
|
+
def update_global_vm_extension_policy(project, global_vm_extension_policy, global_vm_extension_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
10075
|
+
command = make_simple_command(:patch, 'projects/{project}/global/vmExtensionPolicies/{globalVmExtensionPolicy}', options)
|
10076
|
+
command.request_representation = Google::Apis::ComputeAlpha::GlobalVmExtensionPolicy::Representation
|
10077
|
+
command.request_object = global_vm_extension_policy_object
|
10078
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
10079
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
10080
|
+
command.params['project'] = project unless project.nil?
|
10081
|
+
command.params['globalVmExtensionPolicy'] = global_vm_extension_policy unless global_vm_extension_policy.nil?
|
10082
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
10083
|
+
command.query['fields'] = fields unless fields.nil?
|
10084
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
10085
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
10086
|
+
execute_or_queue_command(command, &block)
|
10087
|
+
end
|
10088
|
+
|
9399
10089
|
# Deletes an HaController in the specified project.
|
9400
10090
|
# @param [String] project
|
9401
10091
|
# Project ID for this request.
|
@@ -12270,6 +12960,46 @@ module Google
|
|
12270
12960
|
execute_or_queue_command(command, &block)
|
12271
12961
|
end
|
12272
12962
|
|
12963
|
+
# Returns information about available accelerator topologies for a given MIG.
|
12964
|
+
# @param [String] project
|
12965
|
+
# Required. Project ID for this request.
|
12966
|
+
# @param [String] zone
|
12967
|
+
# Required. The name of the zone where the managed instance group is located.
|
12968
|
+
# Name should conform to RFC1035.
|
12969
|
+
# @param [String] resource_id
|
12970
|
+
# Required. The name of the managed instance group. It should conform to RFC1035.
|
12971
|
+
# @param [String] fields
|
12972
|
+
# Selector specifying which fields to include in a partial response.
|
12973
|
+
# @param [String] quota_user
|
12974
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
12975
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
12976
|
+
# @param [String] user_ip
|
12977
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
12978
|
+
# @param [Google::Apis::RequestOptions] options
|
12979
|
+
# Request-specific options
|
12980
|
+
#
|
12981
|
+
# @yield [result, err] Result & error if block supplied
|
12982
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse] parsed result object
|
12983
|
+
# @yieldparam err [StandardError] error object if request failed
|
12984
|
+
#
|
12985
|
+
# @return [Google::Apis::ComputeAlpha::InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse]
|
12986
|
+
#
|
12987
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
12988
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
12989
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
12990
|
+
def get_instance_group_manager_available_accelerator_topologies(project, zone, resource_id, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
12991
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/instanceGroupManagers/{resourceId}/getAvailableAcceleratorTopologies', options)
|
12992
|
+
command.response_representation = Google::Apis::ComputeAlpha::InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse::Representation
|
12993
|
+
command.response_class = Google::Apis::ComputeAlpha::InstanceGroupManagersGetAvailableAcceleratorTopologiesResponse
|
12994
|
+
command.params['project'] = project unless project.nil?
|
12995
|
+
command.params['zone'] = zone unless zone.nil?
|
12996
|
+
command.params['resourceId'] = resource_id unless resource_id.nil?
|
12997
|
+
command.query['fields'] = fields unless fields.nil?
|
12998
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
12999
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
13000
|
+
execute_or_queue_command(command, &block)
|
13001
|
+
end
|
13002
|
+
|
12273
13003
|
# Creates a managed instance group using the information that you specify in the
|
12274
13004
|
# request. After the group is created, instances in the group are created using
|
12275
13005
|
# the specified instance template. This operation is marked as DONE when the
|
@@ -34825,15 +35555,14 @@ module Google
|
|
34825
35555
|
execute_or_queue_command(command, &block)
|
34826
35556
|
end
|
34827
35557
|
|
34828
|
-
#
|
35558
|
+
# Rotates the customer-managed encryption key to the latest version for the
|
35559
|
+
# specified persistent disk.
|
34829
35560
|
# @param [String] project
|
34830
35561
|
# Project ID for this request.
|
34831
35562
|
# @param [String] region
|
34832
|
-
#
|
35563
|
+
# The name of the region for this request.
|
34833
35564
|
# @param [String] disk
|
34834
|
-
#
|
34835
|
-
# unsigned long integer.
|
34836
|
-
# @param [Google::Apis::ComputeAlpha::RegionWaitForReplicationCatchUpRequest] region_wait_for_replication_catch_up_request_object
|
35565
|
+
# Name of the Disk resource, should conform to RFC1035.
|
34837
35566
|
# @param [String] request_id
|
34838
35567
|
# An optional request ID to identify requests. Specify a unique request ID so
|
34839
35568
|
# that if you must retry your request, the server will know to ignore the
|
@@ -34863,10 +35592,8 @@ module Google
|
|
34863
35592
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34864
35593
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34865
35594
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34866
|
-
def
|
34867
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{disk}/
|
34868
|
-
command.request_representation = Google::Apis::ComputeAlpha::RegionWaitForReplicationCatchUpRequest::Representation
|
34869
|
-
command.request_object = region_wait_for_replication_catch_up_request_object
|
35595
|
+
def update_region_disk_kms_key(project, region, disk, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
35596
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{disk}/updateKmsKey', options)
|
34870
35597
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
34871
35598
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
34872
35599
|
command.params['project'] = project unless project.nil?
|
@@ -34879,207 +35606,15 @@ module Google
|
|
34879
35606
|
execute_or_queue_command(command, &block)
|
34880
35607
|
end
|
34881
35608
|
|
34882
|
-
#
|
34883
|
-
# global, available to the specified project. To prevent failure, Google
|
34884
|
-
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
34885
|
-
# @param [String] project
|
34886
|
-
# Name of the project scoping this request.
|
34887
|
-
# @param [String] filter
|
34888
|
-
# A filter expression that filters resources listed in the response. Most
|
34889
|
-
# Compute resources support two types of filter expressions: expressions that
|
34890
|
-
# support regular expressions and expressions that follow API improvement
|
34891
|
-
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
34892
|
-
# request. If you want to use AIP-160, your expression must specify the field
|
34893
|
-
# name, an operator, and the value that you want to use for filtering. The value
|
34894
|
-
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
34895
|
-
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
34896
|
-
# Engine instances, you can exclude instances named `example-instance` by
|
34897
|
-
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
34898
|
-
# whether a key has been defined. For example, to find all objects with `owner`
|
34899
|
-
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
34900
|
-
# example, you could specify `scheduling.automaticRestart = false` to include
|
34901
|
-
# instances only if they are not scheduled for automatic restarts. You can use
|
34902
|
-
# filtering on nested fields to filter based on resource labels. To filter on
|
34903
|
-
# multiple expressions, provide each separate expression within parentheses. For
|
34904
|
-
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
34905
|
-
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
34906
|
-
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
34907
|
-
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
34908
|
-
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
34909
|
-
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
34910
|
-
# un-parenthesized expression with or without quotes or against multiple
|
34911
|
-
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
34912
|
-
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
34913
|
-
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
34914
|
-
# interpreted as a regular expression using Google RE2 library syntax. The
|
34915
|
-
# literal value must match the entire field. For example, to filter for
|
34916
|
-
# instances that do not end with name "instance", you would use `name ne .*
|
34917
|
-
# instance`. You cannot combine constraints on multiple fields using regular
|
34918
|
-
# expressions.
|
34919
|
-
# @param [Boolean] include_all_scopes
|
34920
|
-
# Indicates whether every visible scope for each scope type (zone, region,
|
34921
|
-
# global) should be included in the response. For new resource types added after
|
34922
|
-
# this field, the flag has no effect as new resource types will always include
|
34923
|
-
# every visible scope for each scope type in response. For resource types which
|
34924
|
-
# predate this field, if this flag is omitted or false, only scopes of the scope
|
34925
|
-
# types where the resource type is expected to be found will be included.
|
34926
|
-
# @param [Fixnum] max_results
|
34927
|
-
# The maximum number of results per page that should be returned. If the number
|
34928
|
-
# of available results is larger than `maxResults`, Compute Engine returns a `
|
34929
|
-
# nextPageToken` that can be used to get the next page of results in subsequent
|
34930
|
-
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
34931
|
-
# @param [String] order_by
|
34932
|
-
# Sorts list results by a certain order. By default, results are returned in
|
34933
|
-
# alphanumerical order based on the resource name. You can also sort results in
|
34934
|
-
# descending order based on the creation timestamp using `orderBy="
|
34935
|
-
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
34936
|
-
# field in reverse chronological order (newest result first). Use this to sort
|
34937
|
-
# resources like operations so that the newest operation is returned first.
|
34938
|
-
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
34939
|
-
# @param [String] page_token
|
34940
|
-
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
34941
|
-
# by a previous list request to get the next page of results.
|
34942
|
-
# @param [Boolean] return_partial_success
|
34943
|
-
# Opt-in for partial success behavior which provides partial results in case of
|
34944
|
-
# failure. The default value is false. For example, when partial success
|
34945
|
-
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
34946
|
-
# resources in the zone or no resources, with an error code.
|
34947
|
-
# @param [Fixnum] service_project_number
|
34948
|
-
# The Shared VPC service project id or service project number for which
|
34949
|
-
# aggregated list request is invoked for subnetworks list-usable api.
|
34950
|
-
# @param [String] fields
|
34951
|
-
# Selector specifying which fields to include in a partial response.
|
34952
|
-
# @param [String] quota_user
|
34953
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
34954
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
34955
|
-
# @param [String] user_ip
|
34956
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
34957
|
-
# @param [Google::Apis::RequestOptions] options
|
34958
|
-
# Request-specific options
|
34959
|
-
#
|
34960
|
-
# @yield [result, err] Result & error if block supplied
|
34961
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::HealthAggregationPolicyAggregatedList] parsed result object
|
34962
|
-
# @yieldparam err [StandardError] error object if request failed
|
34963
|
-
#
|
34964
|
-
# @return [Google::Apis::ComputeAlpha::HealthAggregationPolicyAggregatedList]
|
34965
|
-
#
|
34966
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
34967
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
34968
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
34969
|
-
def aggregated_region_health_aggregation_policy_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
34970
|
-
command = make_simple_command(:get, 'projects/{project}/aggregated/healthAggregationPolicies', options)
|
34971
|
-
command.response_representation = Google::Apis::ComputeAlpha::HealthAggregationPolicyAggregatedList::Representation
|
34972
|
-
command.response_class = Google::Apis::ComputeAlpha::HealthAggregationPolicyAggregatedList
|
34973
|
-
command.params['project'] = project unless project.nil?
|
34974
|
-
command.query['filter'] = filter unless filter.nil?
|
34975
|
-
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
34976
|
-
command.query['maxResults'] = max_results unless max_results.nil?
|
34977
|
-
command.query['orderBy'] = order_by unless order_by.nil?
|
34978
|
-
command.query['pageToken'] = page_token unless page_token.nil?
|
34979
|
-
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
34980
|
-
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
34981
|
-
command.query['fields'] = fields unless fields.nil?
|
34982
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
34983
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
34984
|
-
execute_or_queue_command(command, &block)
|
34985
|
-
end
|
34986
|
-
|
34987
|
-
# Deletes the specified HealthAggregationPolicy in the given region.
|
34988
|
-
# @param [String] project
|
34989
|
-
# Project ID for this request.
|
34990
|
-
# @param [String] region
|
34991
|
-
# Name of the region scoping this request.
|
34992
|
-
# @param [String] health_aggregation_policy
|
34993
|
-
# Name of the HealthAggregationPolicy resource to delete.
|
34994
|
-
# @param [String] request_id
|
34995
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
34996
|
-
# that if you must retry your request, the server will know to ignore the
|
34997
|
-
# request if it has already been completed. For example, consider a situation
|
34998
|
-
# where you make an initial request and the request times out. If you make the
|
34999
|
-
# request again with the same request ID, the server can check if original
|
35000
|
-
# operation with the same request ID was received, and if so, will ignore the
|
35001
|
-
# second request. This prevents clients from accidentally creating duplicate
|
35002
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
35003
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
35004
|
-
# @param [String] fields
|
35005
|
-
# Selector specifying which fields to include in a partial response.
|
35006
|
-
# @param [String] quota_user
|
35007
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
35008
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
35009
|
-
# @param [String] user_ip
|
35010
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
35011
|
-
# @param [Google::Apis::RequestOptions] options
|
35012
|
-
# Request-specific options
|
35013
|
-
#
|
35014
|
-
# @yield [result, err] Result & error if block supplied
|
35015
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
35016
|
-
# @yieldparam err [StandardError] error object if request failed
|
35017
|
-
#
|
35018
|
-
# @return [Google::Apis::ComputeAlpha::Operation]
|
35019
|
-
#
|
35020
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
35021
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
35022
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
35023
|
-
def delete_region_health_aggregation_policy(project, region, health_aggregation_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
35024
|
-
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}', options)
|
35025
|
-
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
35026
|
-
command.response_class = Google::Apis::ComputeAlpha::Operation
|
35027
|
-
command.params['project'] = project unless project.nil?
|
35028
|
-
command.params['region'] = region unless region.nil?
|
35029
|
-
command.params['healthAggregationPolicy'] = health_aggregation_policy unless health_aggregation_policy.nil?
|
35030
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
35031
|
-
command.query['fields'] = fields unless fields.nil?
|
35032
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
35033
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
35034
|
-
execute_or_queue_command(command, &block)
|
35035
|
-
end
|
35036
|
-
|
35037
|
-
# Returns the specified HealthAggregationPolicy resource in the given region.
|
35038
|
-
# @param [String] project
|
35039
|
-
# Project ID for this request.
|
35040
|
-
# @param [String] region
|
35041
|
-
# Name of the region scoping this request.
|
35042
|
-
# @param [String] health_aggregation_policy
|
35043
|
-
# Name of the HealthAggregationPolicy resource to return.
|
35044
|
-
# @param [String] fields
|
35045
|
-
# Selector specifying which fields to include in a partial response.
|
35046
|
-
# @param [String] quota_user
|
35047
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
35048
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
35049
|
-
# @param [String] user_ip
|
35050
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
35051
|
-
# @param [Google::Apis::RequestOptions] options
|
35052
|
-
# Request-specific options
|
35053
|
-
#
|
35054
|
-
# @yield [result, err] Result & error if block supplied
|
35055
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::HealthAggregationPolicy] parsed result object
|
35056
|
-
# @yieldparam err [StandardError] error object if request failed
|
35057
|
-
#
|
35058
|
-
# @return [Google::Apis::ComputeAlpha::HealthAggregationPolicy]
|
35059
|
-
#
|
35060
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
35061
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
35062
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
35063
|
-
def get_region_health_aggregation_policy(project, region, health_aggregation_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
35064
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}', options)
|
35065
|
-
command.response_representation = Google::Apis::ComputeAlpha::HealthAggregationPolicy::Representation
|
35066
|
-
command.response_class = Google::Apis::ComputeAlpha::HealthAggregationPolicy
|
35067
|
-
command.params['project'] = project unless project.nil?
|
35068
|
-
command.params['region'] = region unless region.nil?
|
35069
|
-
command.params['healthAggregationPolicy'] = health_aggregation_policy unless health_aggregation_policy.nil?
|
35070
|
-
command.query['fields'] = fields unless fields.nil?
|
35071
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
35072
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
35073
|
-
execute_or_queue_command(command, &block)
|
35074
|
-
end
|
35075
|
-
|
35076
|
-
# Create a HealthAggregationPolicy in the specified project in the given region
|
35077
|
-
# using the parameters that are included in the request.
|
35609
|
+
# Wait for replication to catch up on the secondary disk.
|
35078
35610
|
# @param [String] project
|
35079
35611
|
# Project ID for this request.
|
35080
35612
|
# @param [String] region
|
35081
|
-
# Name of the region
|
35082
|
-
# @param [
|
35613
|
+
# Name of the region for this request.
|
35614
|
+
# @param [String] disk
|
35615
|
+
# The name of the persistent disk. Name should conform to RFC1035 or be an
|
35616
|
+
# unsigned long integer.
|
35617
|
+
# @param [Google::Apis::ComputeAlpha::RegionWaitForReplicationCatchUpRequest] region_wait_for_replication_catch_up_request_object
|
35083
35618
|
# @param [String] request_id
|
35084
35619
|
# An optional request ID to identify requests. Specify a unique request ID so
|
35085
35620
|
# that if you must retry your request, the server will know to ignore the
|
@@ -35109,14 +35644,15 @@ module Google
|
|
35109
35644
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
35110
35645
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
35111
35646
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
35112
|
-
def
|
35113
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/
|
35114
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
35115
|
-
command.request_object =
|
35647
|
+
def wait_region_disk_for_replication_catch_up(project, region, disk, region_wait_for_replication_catch_up_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
35648
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{disk}/waitForReplicationCatchUp', options)
|
35649
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionWaitForReplicationCatchUpRequest::Representation
|
35650
|
+
command.request_object = region_wait_for_replication_catch_up_request_object
|
35116
35651
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
35117
35652
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
35118
35653
|
command.params['project'] = project unless project.nil?
|
35119
35654
|
command.params['region'] = region unless region.nil?
|
35655
|
+
command.params['disk'] = disk unless disk.nil?
|
35120
35656
|
command.query['requestId'] = request_id unless request_id.nil?
|
35121
35657
|
command.query['fields'] = fields unless fields.nil?
|
35122
35658
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -35124,11 +35660,256 @@ module Google
|
|
35124
35660
|
execute_or_queue_command(command, &block)
|
35125
35661
|
end
|
35126
35662
|
|
35127
|
-
#
|
35663
|
+
# Retrieves the list of all HealthAggregationPolicy resources, regional and
|
35664
|
+
# global, available to the specified project. To prevent failure, Google
|
35665
|
+
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
35128
35666
|
# @param [String] project
|
35129
|
-
#
|
35130
|
-
# @param [String]
|
35131
|
-
#
|
35667
|
+
# Name of the project scoping this request.
|
35668
|
+
# @param [String] filter
|
35669
|
+
# A filter expression that filters resources listed in the response. Most
|
35670
|
+
# Compute resources support two types of filter expressions: expressions that
|
35671
|
+
# support regular expressions and expressions that follow API improvement
|
35672
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
35673
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
35674
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
35675
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
35676
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
35677
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
35678
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
35679
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
35680
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
35681
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
35682
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
35683
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
35684
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
35685
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
35686
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
35687
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
35688
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
35689
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
35690
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
35691
|
+
# un-parenthesized expression with or without quotes or against multiple
|
35692
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
35693
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
35694
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
35695
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
35696
|
+
# literal value must match the entire field. For example, to filter for
|
35697
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
35698
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
35699
|
+
# expressions.
|
35700
|
+
# @param [Boolean] include_all_scopes
|
35701
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
35702
|
+
# global) should be included in the response. For new resource types added after
|
35703
|
+
# this field, the flag has no effect as new resource types will always include
|
35704
|
+
# every visible scope for each scope type in response. For resource types which
|
35705
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
35706
|
+
# types where the resource type is expected to be found will be included.
|
35707
|
+
# @param [Fixnum] max_results
|
35708
|
+
# The maximum number of results per page that should be returned. If the number
|
35709
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
35710
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
35711
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
35712
|
+
# @param [String] order_by
|
35713
|
+
# Sorts list results by a certain order. By default, results are returned in
|
35714
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
35715
|
+
# descending order based on the creation timestamp using `orderBy="
|
35716
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
35717
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
35718
|
+
# resources like operations so that the newest operation is returned first.
|
35719
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
35720
|
+
# @param [String] page_token
|
35721
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
35722
|
+
# by a previous list request to get the next page of results.
|
35723
|
+
# @param [Boolean] return_partial_success
|
35724
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
35725
|
+
# failure. The default value is false. For example, when partial success
|
35726
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
35727
|
+
# resources in the zone or no resources, with an error code.
|
35728
|
+
# @param [Fixnum] service_project_number
|
35729
|
+
# The Shared VPC service project id or service project number for which
|
35730
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
35731
|
+
# @param [String] fields
|
35732
|
+
# Selector specifying which fields to include in a partial response.
|
35733
|
+
# @param [String] quota_user
|
35734
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
35735
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
35736
|
+
# @param [String] user_ip
|
35737
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
35738
|
+
# @param [Google::Apis::RequestOptions] options
|
35739
|
+
# Request-specific options
|
35740
|
+
#
|
35741
|
+
# @yield [result, err] Result & error if block supplied
|
35742
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::HealthAggregationPolicyAggregatedList] parsed result object
|
35743
|
+
# @yieldparam err [StandardError] error object if request failed
|
35744
|
+
#
|
35745
|
+
# @return [Google::Apis::ComputeAlpha::HealthAggregationPolicyAggregatedList]
|
35746
|
+
#
|
35747
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
35748
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
35749
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
35750
|
+
def aggregated_region_health_aggregation_policy_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
35751
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/healthAggregationPolicies', options)
|
35752
|
+
command.response_representation = Google::Apis::ComputeAlpha::HealthAggregationPolicyAggregatedList::Representation
|
35753
|
+
command.response_class = Google::Apis::ComputeAlpha::HealthAggregationPolicyAggregatedList
|
35754
|
+
command.params['project'] = project unless project.nil?
|
35755
|
+
command.query['filter'] = filter unless filter.nil?
|
35756
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
35757
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
35758
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
35759
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
35760
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
35761
|
+
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
35762
|
+
command.query['fields'] = fields unless fields.nil?
|
35763
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
35764
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
35765
|
+
execute_or_queue_command(command, &block)
|
35766
|
+
end
|
35767
|
+
|
35768
|
+
# Deletes the specified HealthAggregationPolicy in the given region.
|
35769
|
+
# @param [String] project
|
35770
|
+
# Project ID for this request.
|
35771
|
+
# @param [String] region
|
35772
|
+
# Name of the region scoping this request.
|
35773
|
+
# @param [String] health_aggregation_policy
|
35774
|
+
# Name of the HealthAggregationPolicy resource to delete.
|
35775
|
+
# @param [String] request_id
|
35776
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
35777
|
+
# that if you must retry your request, the server will know to ignore the
|
35778
|
+
# request if it has already been completed. For example, consider a situation
|
35779
|
+
# where you make an initial request and the request times out. If you make the
|
35780
|
+
# request again with the same request ID, the server can check if original
|
35781
|
+
# operation with the same request ID was received, and if so, will ignore the
|
35782
|
+
# second request. This prevents clients from accidentally creating duplicate
|
35783
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
35784
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
35785
|
+
# @param [String] fields
|
35786
|
+
# Selector specifying which fields to include in a partial response.
|
35787
|
+
# @param [String] quota_user
|
35788
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
35789
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
35790
|
+
# @param [String] user_ip
|
35791
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
35792
|
+
# @param [Google::Apis::RequestOptions] options
|
35793
|
+
# Request-specific options
|
35794
|
+
#
|
35795
|
+
# @yield [result, err] Result & error if block supplied
|
35796
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
35797
|
+
# @yieldparam err [StandardError] error object if request failed
|
35798
|
+
#
|
35799
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
35800
|
+
#
|
35801
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
35802
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
35803
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
35804
|
+
def delete_region_health_aggregation_policy(project, region, health_aggregation_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
35805
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}', options)
|
35806
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
35807
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
35808
|
+
command.params['project'] = project unless project.nil?
|
35809
|
+
command.params['region'] = region unless region.nil?
|
35810
|
+
command.params['healthAggregationPolicy'] = health_aggregation_policy unless health_aggregation_policy.nil?
|
35811
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
35812
|
+
command.query['fields'] = fields unless fields.nil?
|
35813
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
35814
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
35815
|
+
execute_or_queue_command(command, &block)
|
35816
|
+
end
|
35817
|
+
|
35818
|
+
# Returns the specified HealthAggregationPolicy resource in the given region.
|
35819
|
+
# @param [String] project
|
35820
|
+
# Project ID for this request.
|
35821
|
+
# @param [String] region
|
35822
|
+
# Name of the region scoping this request.
|
35823
|
+
# @param [String] health_aggregation_policy
|
35824
|
+
# Name of the HealthAggregationPolicy resource to return.
|
35825
|
+
# @param [String] fields
|
35826
|
+
# Selector specifying which fields to include in a partial response.
|
35827
|
+
# @param [String] quota_user
|
35828
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
35829
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
35830
|
+
# @param [String] user_ip
|
35831
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
35832
|
+
# @param [Google::Apis::RequestOptions] options
|
35833
|
+
# Request-specific options
|
35834
|
+
#
|
35835
|
+
# @yield [result, err] Result & error if block supplied
|
35836
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::HealthAggregationPolicy] parsed result object
|
35837
|
+
# @yieldparam err [StandardError] error object if request failed
|
35838
|
+
#
|
35839
|
+
# @return [Google::Apis::ComputeAlpha::HealthAggregationPolicy]
|
35840
|
+
#
|
35841
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
35842
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
35843
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
35844
|
+
def get_region_health_aggregation_policy(project, region, health_aggregation_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
35845
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}', options)
|
35846
|
+
command.response_representation = Google::Apis::ComputeAlpha::HealthAggregationPolicy::Representation
|
35847
|
+
command.response_class = Google::Apis::ComputeAlpha::HealthAggregationPolicy
|
35848
|
+
command.params['project'] = project unless project.nil?
|
35849
|
+
command.params['region'] = region unless region.nil?
|
35850
|
+
command.params['healthAggregationPolicy'] = health_aggregation_policy unless health_aggregation_policy.nil?
|
35851
|
+
command.query['fields'] = fields unless fields.nil?
|
35852
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
35853
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
35854
|
+
execute_or_queue_command(command, &block)
|
35855
|
+
end
|
35856
|
+
|
35857
|
+
# Create a HealthAggregationPolicy in the specified project in the given region
|
35858
|
+
# using the parameters that are included in the request.
|
35859
|
+
# @param [String] project
|
35860
|
+
# Project ID for this request.
|
35861
|
+
# @param [String] region
|
35862
|
+
# Name of the region scoping this request.
|
35863
|
+
# @param [Google::Apis::ComputeAlpha::HealthAggregationPolicy] health_aggregation_policy_object
|
35864
|
+
# @param [String] request_id
|
35865
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
35866
|
+
# that if you must retry your request, the server will know to ignore the
|
35867
|
+
# request if it has already been completed. For example, consider a situation
|
35868
|
+
# where you make an initial request and the request times out. If you make the
|
35869
|
+
# request again with the same request ID, the server can check if original
|
35870
|
+
# operation with the same request ID was received, and if so, will ignore the
|
35871
|
+
# second request. This prevents clients from accidentally creating duplicate
|
35872
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
35873
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
35874
|
+
# @param [String] fields
|
35875
|
+
# Selector specifying which fields to include in a partial response.
|
35876
|
+
# @param [String] quota_user
|
35877
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
35878
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
35879
|
+
# @param [String] user_ip
|
35880
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
35881
|
+
# @param [Google::Apis::RequestOptions] options
|
35882
|
+
# Request-specific options
|
35883
|
+
#
|
35884
|
+
# @yield [result, err] Result & error if block supplied
|
35885
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
35886
|
+
# @yieldparam err [StandardError] error object if request failed
|
35887
|
+
#
|
35888
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
35889
|
+
#
|
35890
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
35891
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
35892
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
35893
|
+
def insert_region_health_aggregation_policy(project, region, health_aggregation_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
35894
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthAggregationPolicies', options)
|
35895
|
+
command.request_representation = Google::Apis::ComputeAlpha::HealthAggregationPolicy::Representation
|
35896
|
+
command.request_object = health_aggregation_policy_object
|
35897
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
35898
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
35899
|
+
command.params['project'] = project unless project.nil?
|
35900
|
+
command.params['region'] = region unless region.nil?
|
35901
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
35902
|
+
command.query['fields'] = fields unless fields.nil?
|
35903
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
35904
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
35905
|
+
execute_or_queue_command(command, &block)
|
35906
|
+
end
|
35907
|
+
|
35908
|
+
# Lists the HealthAggregationPolicies for a project in the given region.
|
35909
|
+
# @param [String] project
|
35910
|
+
# Project ID for this request.
|
35911
|
+
# @param [String] region
|
35912
|
+
# Name of the region scoping this request.
|
35132
35913
|
# @param [String] filter
|
35133
35914
|
# A filter expression that filters resources listed in the response. Most
|
35134
35915
|
# Compute resources support two types of filter expressions: expressions that
|
@@ -41379,18 +42160,900 @@ module Google
|
|
41379
42160
|
# Request-specific options
|
41380
42161
|
#
|
41381
42162
|
# @yield [result, err] Result & error if block supplied
|
41382
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyList] parsed result object
|
42163
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::FirewallPolicyList] parsed result object
|
42164
|
+
# @yieldparam err [StandardError] error object if request failed
|
42165
|
+
#
|
42166
|
+
# @return [Google::Apis::ComputeAlpha::FirewallPolicyList]
|
42167
|
+
#
|
42168
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
42169
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
42170
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
42171
|
+
def list_region_network_firewall_policies(project, region, filter: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
42172
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/firewallPolicies', options)
|
42173
|
+
command.response_representation = Google::Apis::ComputeAlpha::FirewallPolicyList::Representation
|
42174
|
+
command.response_class = Google::Apis::ComputeAlpha::FirewallPolicyList
|
42175
|
+
command.params['project'] = project unless project.nil?
|
42176
|
+
command.params['region'] = region unless region.nil?
|
42177
|
+
command.query['filter'] = filter unless filter.nil?
|
42178
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
42179
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
42180
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
42181
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
42182
|
+
command.query['fields'] = fields unless fields.nil?
|
42183
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
42184
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
42185
|
+
execute_or_queue_command(command, &block)
|
42186
|
+
end
|
42187
|
+
|
42188
|
+
# Patches the specified network firewall policy.
|
42189
|
+
# @param [String] project
|
42190
|
+
# Project ID for this request.
|
42191
|
+
# @param [String] region
|
42192
|
+
# Name of the region scoping this request.
|
42193
|
+
# @param [String] firewall_policy
|
42194
|
+
# Name of the firewall policy to update.
|
42195
|
+
# @param [Google::Apis::ComputeAlpha::FirewallPolicy] firewall_policy_object
|
42196
|
+
# @param [String] request_id
|
42197
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
42198
|
+
# that if you must retry your request, the server will know to ignore the
|
42199
|
+
# request if it has already been completed. For example, consider a situation
|
42200
|
+
# where you make an initial request and the request times out. If you make the
|
42201
|
+
# request again with the same request ID, the server can check if original
|
42202
|
+
# operation with the same request ID was received, and if so, will ignore the
|
42203
|
+
# second request. This prevents clients from accidentally creating duplicate
|
42204
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
42205
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
42206
|
+
# @param [String] fields
|
42207
|
+
# Selector specifying which fields to include in a partial response.
|
42208
|
+
# @param [String] quota_user
|
42209
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42210
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
42211
|
+
# @param [String] user_ip
|
42212
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
42213
|
+
# @param [Google::Apis::RequestOptions] options
|
42214
|
+
# Request-specific options
|
42215
|
+
#
|
42216
|
+
# @yield [result, err] Result & error if block supplied
|
42217
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
42218
|
+
# @yieldparam err [StandardError] error object if request failed
|
42219
|
+
#
|
42220
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
42221
|
+
#
|
42222
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
42223
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
42224
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
42225
|
+
def patch_region_network_firewall_policy(project, region, firewall_policy, firewall_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
42226
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}', options)
|
42227
|
+
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation
|
42228
|
+
command.request_object = firewall_policy_object
|
42229
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
42230
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
42231
|
+
command.params['project'] = project unless project.nil?
|
42232
|
+
command.params['region'] = region unless region.nil?
|
42233
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
42234
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
42235
|
+
command.query['fields'] = fields unless fields.nil?
|
42236
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
42237
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
42238
|
+
execute_or_queue_command(command, &block)
|
42239
|
+
end
|
42240
|
+
|
42241
|
+
# Updates an association for the specified network firewall policy.
|
42242
|
+
# @param [String] project
|
42243
|
+
# Project ID for this request.
|
42244
|
+
# @param [String] region
|
42245
|
+
# Name of the region scoping this request.
|
42246
|
+
# @param [String] firewall_policy
|
42247
|
+
# Name of the firewall policy to update.
|
42248
|
+
# @param [Google::Apis::ComputeAlpha::FirewallPolicyAssociation] firewall_policy_association_object
|
42249
|
+
# @param [String] request_id
|
42250
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
42251
|
+
# that if you must retry your request, the server will know to ignore the
|
42252
|
+
# request if it has already been completed. For example, consider a situation
|
42253
|
+
# where you make an initial request and the request times out. If you make the
|
42254
|
+
# request again with the same request ID, the server can check if original
|
42255
|
+
# operation with the same request ID was received, and if so, will ignore the
|
42256
|
+
# second request. This prevents clients from accidentally creating duplicate
|
42257
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
42258
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
42259
|
+
# @param [String] fields
|
42260
|
+
# Selector specifying which fields to include in a partial response.
|
42261
|
+
# @param [String] quota_user
|
42262
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42263
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
42264
|
+
# @param [String] user_ip
|
42265
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
42266
|
+
# @param [Google::Apis::RequestOptions] options
|
42267
|
+
# Request-specific options
|
42268
|
+
#
|
42269
|
+
# @yield [result, err] Result & error if block supplied
|
42270
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
42271
|
+
# @yieldparam err [StandardError] error object if request failed
|
42272
|
+
#
|
42273
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
42274
|
+
#
|
42275
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
42276
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
42277
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
42278
|
+
def patch_region_network_firewall_policy_association(project, region, firewall_policy, firewall_policy_association_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
42279
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchAssociation', options)
|
42280
|
+
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyAssociation::Representation
|
42281
|
+
command.request_object = firewall_policy_association_object
|
42282
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
42283
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
42284
|
+
command.params['project'] = project unless project.nil?
|
42285
|
+
command.params['region'] = region unless region.nil?
|
42286
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
42287
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
42288
|
+
command.query['fields'] = fields unless fields.nil?
|
42289
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
42290
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
42291
|
+
execute_or_queue_command(command, &block)
|
42292
|
+
end
|
42293
|
+
|
42294
|
+
# Patches a rule of the specified priority.
|
42295
|
+
# @param [String] project
|
42296
|
+
# Project ID for this request.
|
42297
|
+
# @param [String] region
|
42298
|
+
# Name of the region scoping this request.
|
42299
|
+
# @param [String] firewall_policy
|
42300
|
+
# Name of the firewall policy to update.
|
42301
|
+
# @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
|
42302
|
+
# @param [Fixnum] priority
|
42303
|
+
# The priority of the rule to patch.
|
42304
|
+
# @param [String] request_id
|
42305
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
42306
|
+
# that if you must retry your request, the server will know to ignore the
|
42307
|
+
# request if it has already been completed. For example, consider a situation
|
42308
|
+
# where you make an initial request and the request times out. If you make the
|
42309
|
+
# request again with the same request ID, the server can check if original
|
42310
|
+
# operation with the same request ID was received, and if so, will ignore the
|
42311
|
+
# second request. This prevents clients from accidentally creating duplicate
|
42312
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
42313
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
42314
|
+
# @param [String] fields
|
42315
|
+
# Selector specifying which fields to include in a partial response.
|
42316
|
+
# @param [String] quota_user
|
42317
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42318
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
42319
|
+
# @param [String] user_ip
|
42320
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
42321
|
+
# @param [Google::Apis::RequestOptions] options
|
42322
|
+
# Request-specific options
|
42323
|
+
#
|
42324
|
+
# @yield [result, err] Result & error if block supplied
|
42325
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
42326
|
+
# @yieldparam err [StandardError] error object if request failed
|
42327
|
+
#
|
42328
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
42329
|
+
#
|
42330
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
42331
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
42332
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
42333
|
+
def patch_region_network_firewall_policy_rule(project, region, firewall_policy, firewall_policy_rule_object = nil, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
42334
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule', options)
|
42335
|
+
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
|
42336
|
+
command.request_object = firewall_policy_rule_object
|
42337
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
42338
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
42339
|
+
command.params['project'] = project unless project.nil?
|
42340
|
+
command.params['region'] = region unless region.nil?
|
42341
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
42342
|
+
command.query['priority'] = priority unless priority.nil?
|
42343
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
42344
|
+
command.query['fields'] = fields unless fields.nil?
|
42345
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
42346
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
42347
|
+
execute_or_queue_command(command, &block)
|
42348
|
+
end
|
42349
|
+
|
42350
|
+
# Removes an association for the specified network firewall policy.
|
42351
|
+
# @param [String] project
|
42352
|
+
# Project ID for this request.
|
42353
|
+
# @param [String] region
|
42354
|
+
# Name of the region scoping this request.
|
42355
|
+
# @param [String] firewall_policy
|
42356
|
+
# Name of the firewall policy to update.
|
42357
|
+
# @param [String] name
|
42358
|
+
# Name for the association that will be removed.
|
42359
|
+
# @param [String] request_id
|
42360
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
42361
|
+
# that if you must retry your request, the server will know to ignore the
|
42362
|
+
# request if it has already been completed. For example, consider a situation
|
42363
|
+
# where you make an initial request and the request times out. If you make the
|
42364
|
+
# request again with the same request ID, the server can check if original
|
42365
|
+
# operation with the same request ID was received, and if so, will ignore the
|
42366
|
+
# second request. This prevents clients from accidentally creating duplicate
|
42367
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
42368
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
42369
|
+
# @param [String] fields
|
42370
|
+
# Selector specifying which fields to include in a partial response.
|
42371
|
+
# @param [String] quota_user
|
42372
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42373
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
42374
|
+
# @param [String] user_ip
|
42375
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
42376
|
+
# @param [Google::Apis::RequestOptions] options
|
42377
|
+
# Request-specific options
|
42378
|
+
#
|
42379
|
+
# @yield [result, err] Result & error if block supplied
|
42380
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
42381
|
+
# @yieldparam err [StandardError] error object if request failed
|
42382
|
+
#
|
42383
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
42384
|
+
#
|
42385
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
42386
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
42387
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
42388
|
+
def remove_region_network_firewall_policy_association(project, region, firewall_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
42389
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation', options)
|
42390
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
42391
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
42392
|
+
command.params['project'] = project unless project.nil?
|
42393
|
+
command.params['region'] = region unless region.nil?
|
42394
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
42395
|
+
command.query['name'] = name unless name.nil?
|
42396
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
42397
|
+
command.query['fields'] = fields unless fields.nil?
|
42398
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
42399
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
42400
|
+
execute_or_queue_command(command, &block)
|
42401
|
+
end
|
42402
|
+
|
42403
|
+
# Deletes a rule of the specified priority.
|
42404
|
+
# @param [String] project
|
42405
|
+
# Project ID for this request.
|
42406
|
+
# @param [String] region
|
42407
|
+
# Name of the region scoping this request.
|
42408
|
+
# @param [String] firewall_policy
|
42409
|
+
# Name of the firewall policy to update.
|
42410
|
+
# @param [Fixnum] priority
|
42411
|
+
# The priority of the rule to remove from the firewall policy.
|
42412
|
+
# @param [String] request_id
|
42413
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
42414
|
+
# that if you must retry your request, the server will know to ignore the
|
42415
|
+
# request if it has already been completed. For example, consider a situation
|
42416
|
+
# where you make an initial request and the request times out. If you make the
|
42417
|
+
# request again with the same request ID, the server can check if original
|
42418
|
+
# operation with the same request ID was received, and if so, will ignore the
|
42419
|
+
# second request. This prevents clients from accidentally creating duplicate
|
42420
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
42421
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
42422
|
+
# @param [String] fields
|
42423
|
+
# Selector specifying which fields to include in a partial response.
|
42424
|
+
# @param [String] quota_user
|
42425
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42426
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
42427
|
+
# @param [String] user_ip
|
42428
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
42429
|
+
# @param [Google::Apis::RequestOptions] options
|
42430
|
+
# Request-specific options
|
42431
|
+
#
|
42432
|
+
# @yield [result, err] Result & error if block supplied
|
42433
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
42434
|
+
# @yieldparam err [StandardError] error object if request failed
|
42435
|
+
#
|
42436
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
42437
|
+
#
|
42438
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
42439
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
42440
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
42441
|
+
def remove_region_network_firewall_policy_rule(project, region, firewall_policy, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
42442
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeRule', options)
|
42443
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
42444
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
42445
|
+
command.params['project'] = project unless project.nil?
|
42446
|
+
command.params['region'] = region unless region.nil?
|
42447
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
42448
|
+
command.query['priority'] = priority unless priority.nil?
|
42449
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
42450
|
+
command.query['fields'] = fields unless fields.nil?
|
42451
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
42452
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
42453
|
+
execute_or_queue_command(command, &block)
|
42454
|
+
end
|
42455
|
+
|
42456
|
+
# Sets the access control policy on the specified resource. Replaces any
|
42457
|
+
# existing policy.
|
42458
|
+
# @param [String] project
|
42459
|
+
# Project ID for this request.
|
42460
|
+
# @param [String] region
|
42461
|
+
# The name of the region for this request.
|
42462
|
+
# @param [String] resource
|
42463
|
+
# Name or id of the resource for this request.
|
42464
|
+
# @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
|
42465
|
+
# @param [String] fields
|
42466
|
+
# Selector specifying which fields to include in a partial response.
|
42467
|
+
# @param [String] quota_user
|
42468
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42469
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
42470
|
+
# @param [String] user_ip
|
42471
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
42472
|
+
# @param [Google::Apis::RequestOptions] options
|
42473
|
+
# Request-specific options
|
42474
|
+
#
|
42475
|
+
# @yield [result, err] Result & error if block supplied
|
42476
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
42477
|
+
# @yieldparam err [StandardError] error object if request failed
|
42478
|
+
#
|
42479
|
+
# @return [Google::Apis::ComputeAlpha::Policy]
|
42480
|
+
#
|
42481
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
42482
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
42483
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
42484
|
+
def set_region_network_firewall_policy_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
42485
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{resource}/setIamPolicy', options)
|
42486
|
+
command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
|
42487
|
+
command.request_object = region_set_policy_request_object
|
42488
|
+
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
42489
|
+
command.response_class = Google::Apis::ComputeAlpha::Policy
|
42490
|
+
command.params['project'] = project unless project.nil?
|
42491
|
+
command.params['region'] = region unless region.nil?
|
42492
|
+
command.params['resource'] = resource unless resource.nil?
|
42493
|
+
command.query['fields'] = fields unless fields.nil?
|
42494
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
42495
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
42496
|
+
execute_or_queue_command(command, &block)
|
42497
|
+
end
|
42498
|
+
|
42499
|
+
# Returns permissions that a caller has on the specified resource.
|
42500
|
+
# @param [String] project
|
42501
|
+
# Project ID for this request.
|
42502
|
+
# @param [String] region
|
42503
|
+
# The name of the region for this request.
|
42504
|
+
# @param [String] resource
|
42505
|
+
# Name or id of the resource for this request.
|
42506
|
+
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
42507
|
+
# @param [String] fields
|
42508
|
+
# Selector specifying which fields to include in a partial response.
|
42509
|
+
# @param [String] quota_user
|
42510
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42511
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
42512
|
+
# @param [String] user_ip
|
42513
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
42514
|
+
# @param [Google::Apis::RequestOptions] options
|
42515
|
+
# Request-specific options
|
42516
|
+
#
|
42517
|
+
# @yield [result, err] Result & error if block supplied
|
42518
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
42519
|
+
# @yieldparam err [StandardError] error object if request failed
|
42520
|
+
#
|
42521
|
+
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
42522
|
+
#
|
42523
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
42524
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
42525
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
42526
|
+
def test_region_network_firewall_policy_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
42527
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{resource}/testIamPermissions', options)
|
42528
|
+
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
42529
|
+
command.request_object = test_permissions_request_object
|
42530
|
+
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
42531
|
+
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
42532
|
+
command.params['project'] = project unless project.nil?
|
42533
|
+
command.params['region'] = region unless region.nil?
|
42534
|
+
command.params['resource'] = resource unless resource.nil?
|
42535
|
+
command.query['fields'] = fields unless fields.nil?
|
42536
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
42537
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
42538
|
+
execute_or_queue_command(command, &block)
|
42539
|
+
end
|
42540
|
+
|
42541
|
+
# Inserts an association for the specified network policy.
|
42542
|
+
# @param [String] project
|
42543
|
+
# Project ID for this request.
|
42544
|
+
# @param [String] region
|
42545
|
+
# Name of the region of this request.
|
42546
|
+
# @param [String] network_policy
|
42547
|
+
# Name of the network policy resource to update.
|
42548
|
+
# @param [Google::Apis::ComputeAlpha::NetworkPolicyAssociation] network_policy_association_object
|
42549
|
+
# @param [String] request_id
|
42550
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
42551
|
+
# that if you must retry your request, the server will know to ignore the
|
42552
|
+
# request if it has already been completed. For example, consider a situation
|
42553
|
+
# where you make an initial request and the request times out. If you make the
|
42554
|
+
# request again with the same request ID, the server can check if original
|
42555
|
+
# operation with the same request ID was received, and if so, will ignore the
|
42556
|
+
# second request. This prevents clients from accidentally creating duplicate
|
42557
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
42558
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
42559
|
+
# @param [String] fields
|
42560
|
+
# Selector specifying which fields to include in a partial response.
|
42561
|
+
# @param [String] quota_user
|
42562
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42563
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
42564
|
+
# @param [String] user_ip
|
42565
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
42566
|
+
# @param [Google::Apis::RequestOptions] options
|
42567
|
+
# Request-specific options
|
42568
|
+
#
|
42569
|
+
# @yield [result, err] Result & error if block supplied
|
42570
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
42571
|
+
# @yieldparam err [StandardError] error object if request failed
|
42572
|
+
#
|
42573
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
42574
|
+
#
|
42575
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
42576
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
42577
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
42578
|
+
def add_region_network_policy_association(project, region, network_policy, network_policy_association_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
42579
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/addAssociation', options)
|
42580
|
+
command.request_representation = Google::Apis::ComputeAlpha::NetworkPolicyAssociation::Representation
|
42581
|
+
command.request_object = network_policy_association_object
|
42582
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
42583
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
42584
|
+
command.params['project'] = project unless project.nil?
|
42585
|
+
command.params['region'] = region unless region.nil?
|
42586
|
+
command.params['networkPolicy'] = network_policy unless network_policy.nil?
|
42587
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
42588
|
+
command.query['fields'] = fields unless fields.nil?
|
42589
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
42590
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
42591
|
+
execute_or_queue_command(command, &block)
|
42592
|
+
end
|
42593
|
+
|
42594
|
+
# Inserts a rule into a network policy.
|
42595
|
+
# @param [String] project
|
42596
|
+
# Project ID for this request.
|
42597
|
+
# @param [String] region
|
42598
|
+
# Name of the region of this request.
|
42599
|
+
# @param [String] network_policy
|
42600
|
+
# Name of the network policy resource to update.
|
42601
|
+
# @param [Google::Apis::ComputeAlpha::NetworkPolicyTrafficClassificationRule] network_policy_traffic_classification_rule_object
|
42602
|
+
# @param [String] request_id
|
42603
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
42604
|
+
# that if you must retry your request, the server will know to ignore the
|
42605
|
+
# request if it has already been completed. For example, consider a situation
|
42606
|
+
# where you make an initial request and the request times out. If you make the
|
42607
|
+
# request again with the same request ID, the server can check if original
|
42608
|
+
# operation with the same request ID was received, and if so, will ignore the
|
42609
|
+
# second request. This prevents clients from accidentally creating duplicate
|
42610
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
42611
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
42612
|
+
# @param [String] fields
|
42613
|
+
# Selector specifying which fields to include in a partial response.
|
42614
|
+
# @param [String] quota_user
|
42615
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42616
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
42617
|
+
# @param [String] user_ip
|
42618
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
42619
|
+
# @param [Google::Apis::RequestOptions] options
|
42620
|
+
# Request-specific options
|
42621
|
+
#
|
42622
|
+
# @yield [result, err] Result & error if block supplied
|
42623
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
42624
|
+
# @yieldparam err [StandardError] error object if request failed
|
42625
|
+
#
|
42626
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
42627
|
+
#
|
42628
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
42629
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
42630
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
42631
|
+
def add_region_network_policy_traffic_classification_rule(project, region, network_policy, network_policy_traffic_classification_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
42632
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/addTrafficClassificationRule', options)
|
42633
|
+
command.request_representation = Google::Apis::ComputeAlpha::NetworkPolicyTrafficClassificationRule::Representation
|
42634
|
+
command.request_object = network_policy_traffic_classification_rule_object
|
42635
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
42636
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
42637
|
+
command.params['project'] = project unless project.nil?
|
42638
|
+
command.params['region'] = region unless region.nil?
|
42639
|
+
command.params['networkPolicy'] = network_policy unless network_policy.nil?
|
42640
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
42641
|
+
command.query['fields'] = fields unless fields.nil?
|
42642
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
42643
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
42644
|
+
execute_or_queue_command(command, &block)
|
42645
|
+
end
|
42646
|
+
|
42647
|
+
# Retrieves an aggregated list of network policies. To prevent failure, Google
|
42648
|
+
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
42649
|
+
# @param [String] project
|
42650
|
+
# Project ID for this request.
|
42651
|
+
# @param [String] filter
|
42652
|
+
# A filter expression that filters resources listed in the response. Most
|
42653
|
+
# Compute resources support two types of filter expressions: expressions that
|
42654
|
+
# support regular expressions and expressions that follow API improvement
|
42655
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
42656
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
42657
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
42658
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
42659
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
42660
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
42661
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
42662
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
42663
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
42664
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
42665
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
42666
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
42667
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
42668
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
42669
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
42670
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
42671
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
42672
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
42673
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
42674
|
+
# un-parenthesized expression with or without quotes or against multiple
|
42675
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
42676
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
42677
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
42678
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
42679
|
+
# literal value must match the entire field. For example, to filter for
|
42680
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
42681
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
42682
|
+
# expressions.
|
42683
|
+
# @param [Boolean] include_all_scopes
|
42684
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
42685
|
+
# global) should be included in the response. For new resource types added after
|
42686
|
+
# this field, the flag has no effect as new resource types will always include
|
42687
|
+
# every visible scope for each scope type in response. For resource types which
|
42688
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
42689
|
+
# types where the resource type is expected to be found will be included.
|
42690
|
+
# @param [Fixnum] max_results
|
42691
|
+
# The maximum number of results per page that should be returned. If the number
|
42692
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
42693
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
42694
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
42695
|
+
# @param [String] order_by
|
42696
|
+
# Sorts list results by a certain order. By default, results are returned in
|
42697
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
42698
|
+
# descending order based on the creation timestamp using `orderBy="
|
42699
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
42700
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
42701
|
+
# resources like operations so that the newest operation is returned first.
|
42702
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
42703
|
+
# @param [String] page_token
|
42704
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
42705
|
+
# by a previous list request to get the next page of results.
|
42706
|
+
# @param [Boolean] return_partial_success
|
42707
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
42708
|
+
# failure. The default value is false. For example, when partial success
|
42709
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
42710
|
+
# resources in the zone or no resources, with an error code.
|
42711
|
+
# @param [Fixnum] service_project_number
|
42712
|
+
# The Shared VPC service project id or service project number for which
|
42713
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
42714
|
+
# @param [String] fields
|
42715
|
+
# Selector specifying which fields to include in a partial response.
|
42716
|
+
# @param [String] quota_user
|
42717
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42718
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
42719
|
+
# @param [String] user_ip
|
42720
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
42721
|
+
# @param [Google::Apis::RequestOptions] options
|
42722
|
+
# Request-specific options
|
42723
|
+
#
|
42724
|
+
# @yield [result, err] Result & error if block supplied
|
42725
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::NetworkPolicyAggregatedList] parsed result object
|
42726
|
+
# @yieldparam err [StandardError] error object if request failed
|
42727
|
+
#
|
42728
|
+
# @return [Google::Apis::ComputeAlpha::NetworkPolicyAggregatedList]
|
42729
|
+
#
|
42730
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
42731
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
42732
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
42733
|
+
def aggregated_region_network_policy_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
42734
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/networkPolicies', options)
|
42735
|
+
command.response_representation = Google::Apis::ComputeAlpha::NetworkPolicyAggregatedList::Representation
|
42736
|
+
command.response_class = Google::Apis::ComputeAlpha::NetworkPolicyAggregatedList
|
42737
|
+
command.params['project'] = project unless project.nil?
|
42738
|
+
command.query['filter'] = filter unless filter.nil?
|
42739
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
42740
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
42741
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
42742
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
42743
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
42744
|
+
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
42745
|
+
command.query['fields'] = fields unless fields.nil?
|
42746
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
42747
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
42748
|
+
execute_or_queue_command(command, &block)
|
42749
|
+
end
|
42750
|
+
|
42751
|
+
# Deletes the specified policy.
|
42752
|
+
# @param [String] project
|
42753
|
+
# Project ID for this request.
|
42754
|
+
# @param [String] region
|
42755
|
+
# Name of the region of this request.
|
42756
|
+
# @param [String] network_policy
|
42757
|
+
# Name of the network policy resource to delete.
|
42758
|
+
# @param [String] request_id
|
42759
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
42760
|
+
# that if you must retry your request, the server will know to ignore the
|
42761
|
+
# request if it has already been completed. For example, consider a situation
|
42762
|
+
# where you make an initial request and the request times out. If you make the
|
42763
|
+
# request again with the same request ID, the server can check if original
|
42764
|
+
# operation with the same request ID was received, and if so, will ignore the
|
42765
|
+
# second request. This prevents clients from accidentally creating duplicate
|
42766
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
42767
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
42768
|
+
# @param [String] fields
|
42769
|
+
# Selector specifying which fields to include in a partial response.
|
42770
|
+
# @param [String] quota_user
|
42771
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42772
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
42773
|
+
# @param [String] user_ip
|
42774
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
42775
|
+
# @param [Google::Apis::RequestOptions] options
|
42776
|
+
# Request-specific options
|
42777
|
+
#
|
42778
|
+
# @yield [result, err] Result & error if block supplied
|
42779
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
42780
|
+
# @yieldparam err [StandardError] error object if request failed
|
42781
|
+
#
|
42782
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
42783
|
+
#
|
42784
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
42785
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
42786
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
42787
|
+
def delete_region_network_policy(project, region, network_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
42788
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/networkPolicies/{networkPolicy}', options)
|
42789
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
42790
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
42791
|
+
command.params['project'] = project unless project.nil?
|
42792
|
+
command.params['region'] = region unless region.nil?
|
42793
|
+
command.params['networkPolicy'] = network_policy unless network_policy.nil?
|
42794
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
42795
|
+
command.query['fields'] = fields unless fields.nil?
|
42796
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
42797
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
42798
|
+
execute_or_queue_command(command, &block)
|
42799
|
+
end
|
42800
|
+
|
42801
|
+
# Returns the specified network policy.
|
42802
|
+
# @param [String] project
|
42803
|
+
# Project ID for this request.
|
42804
|
+
# @param [String] region
|
42805
|
+
# Name of the region of this request.
|
42806
|
+
# @param [String] network_policy
|
42807
|
+
# Name of the network policy resource to return.
|
42808
|
+
# @param [String] fields
|
42809
|
+
# Selector specifying which fields to include in a partial response.
|
42810
|
+
# @param [String] quota_user
|
42811
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42812
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
42813
|
+
# @param [String] user_ip
|
42814
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
42815
|
+
# @param [Google::Apis::RequestOptions] options
|
42816
|
+
# Request-specific options
|
42817
|
+
#
|
42818
|
+
# @yield [result, err] Result & error if block supplied
|
42819
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::NetworkPolicy] parsed result object
|
42820
|
+
# @yieldparam err [StandardError] error object if request failed
|
42821
|
+
#
|
42822
|
+
# @return [Google::Apis::ComputeAlpha::NetworkPolicy]
|
42823
|
+
#
|
42824
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
42825
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
42826
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
42827
|
+
def get_region_network_policy(project, region, network_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
42828
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkPolicies/{networkPolicy}', options)
|
42829
|
+
command.response_representation = Google::Apis::ComputeAlpha::NetworkPolicy::Representation
|
42830
|
+
command.response_class = Google::Apis::ComputeAlpha::NetworkPolicy
|
42831
|
+
command.params['project'] = project unless project.nil?
|
42832
|
+
command.params['region'] = region unless region.nil?
|
42833
|
+
command.params['networkPolicy'] = network_policy unless network_policy.nil?
|
42834
|
+
command.query['fields'] = fields unless fields.nil?
|
42835
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
42836
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
42837
|
+
execute_or_queue_command(command, &block)
|
42838
|
+
end
|
42839
|
+
|
42840
|
+
# Gets an association with the specified name.
|
42841
|
+
# @param [String] project
|
42842
|
+
# Project ID for this request.
|
42843
|
+
# @param [String] region
|
42844
|
+
# Name of the region of this request.
|
42845
|
+
# @param [String] network_policy
|
42846
|
+
# Name of the network policy to which the queried association belongs.
|
42847
|
+
# @param [String] name
|
42848
|
+
# The name of the association to get from the network policy.
|
42849
|
+
# @param [String] fields
|
42850
|
+
# Selector specifying which fields to include in a partial response.
|
42851
|
+
# @param [String] quota_user
|
42852
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42853
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
42854
|
+
# @param [String] user_ip
|
42855
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
42856
|
+
# @param [Google::Apis::RequestOptions] options
|
42857
|
+
# Request-specific options
|
42858
|
+
#
|
42859
|
+
# @yield [result, err] Result & error if block supplied
|
42860
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::NetworkPolicyAssociation] parsed result object
|
42861
|
+
# @yieldparam err [StandardError] error object if request failed
|
42862
|
+
#
|
42863
|
+
# @return [Google::Apis::ComputeAlpha::NetworkPolicyAssociation]
|
42864
|
+
#
|
42865
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
42866
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
42867
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
42868
|
+
def get_region_network_policy_association(project, region, network_policy, name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
42869
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/getAssociation', options)
|
42870
|
+
command.response_representation = Google::Apis::ComputeAlpha::NetworkPolicyAssociation::Representation
|
42871
|
+
command.response_class = Google::Apis::ComputeAlpha::NetworkPolicyAssociation
|
42872
|
+
command.params['project'] = project unless project.nil?
|
42873
|
+
command.params['region'] = region unless region.nil?
|
42874
|
+
command.params['networkPolicy'] = network_policy unless network_policy.nil?
|
42875
|
+
command.query['name'] = name unless name.nil?
|
42876
|
+
command.query['fields'] = fields unless fields.nil?
|
42877
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
42878
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
42879
|
+
execute_or_queue_command(command, &block)
|
42880
|
+
end
|
42881
|
+
|
42882
|
+
# Gets a rule of the specified priority.
|
42883
|
+
# @param [String] project
|
42884
|
+
# Project ID for this request.
|
42885
|
+
# @param [String] region
|
42886
|
+
# Name of the region of this request.
|
42887
|
+
# @param [String] network_policy
|
42888
|
+
# Name of the network policy to which the queried rule belongs.
|
42889
|
+
# @param [Fixnum] priority
|
42890
|
+
# The priority of the rule to get from the network policy.
|
42891
|
+
# @param [String] fields
|
42892
|
+
# Selector specifying which fields to include in a partial response.
|
42893
|
+
# @param [String] quota_user
|
42894
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42895
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
42896
|
+
# @param [String] user_ip
|
42897
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
42898
|
+
# @param [Google::Apis::RequestOptions] options
|
42899
|
+
# Request-specific options
|
42900
|
+
#
|
42901
|
+
# @yield [result, err] Result & error if block supplied
|
42902
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::NetworkPolicyTrafficClassificationRule] parsed result object
|
42903
|
+
# @yieldparam err [StandardError] error object if request failed
|
42904
|
+
#
|
42905
|
+
# @return [Google::Apis::ComputeAlpha::NetworkPolicyTrafficClassificationRule]
|
42906
|
+
#
|
42907
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
42908
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
42909
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
42910
|
+
def get_region_network_policy_traffic_classification_rule(project, region, network_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
42911
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/getTrafficClassificationRule', options)
|
42912
|
+
command.response_representation = Google::Apis::ComputeAlpha::NetworkPolicyTrafficClassificationRule::Representation
|
42913
|
+
command.response_class = Google::Apis::ComputeAlpha::NetworkPolicyTrafficClassificationRule
|
42914
|
+
command.params['project'] = project unless project.nil?
|
42915
|
+
command.params['region'] = region unless region.nil?
|
42916
|
+
command.params['networkPolicy'] = network_policy unless network_policy.nil?
|
42917
|
+
command.query['priority'] = priority unless priority.nil?
|
42918
|
+
command.query['fields'] = fields unless fields.nil?
|
42919
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
42920
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
42921
|
+
execute_or_queue_command(command, &block)
|
42922
|
+
end
|
42923
|
+
|
42924
|
+
# Creates a new policy in the specified project using the data included in the
|
42925
|
+
# request.
|
42926
|
+
# @param [String] project
|
42927
|
+
# Project ID for this request.
|
42928
|
+
# @param [String] region
|
42929
|
+
# Name of the region of this request.
|
42930
|
+
# @param [Google::Apis::ComputeAlpha::NetworkPolicy] network_policy_object
|
42931
|
+
# @param [String] request_id
|
42932
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
42933
|
+
# that if you must retry your request, the server will know to ignore the
|
42934
|
+
# request if it has already been completed. For example, consider a situation
|
42935
|
+
# where you make an initial request and the request times out. If you make the
|
42936
|
+
# request again with the same request ID, the server can check if original
|
42937
|
+
# operation with the same request ID was received, and if so, will ignore the
|
42938
|
+
# second request. This prevents clients from accidentally creating duplicate
|
42939
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
42940
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
42941
|
+
# @param [String] fields
|
42942
|
+
# Selector specifying which fields to include in a partial response.
|
42943
|
+
# @param [String] quota_user
|
42944
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
42945
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
42946
|
+
# @param [String] user_ip
|
42947
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
42948
|
+
# @param [Google::Apis::RequestOptions] options
|
42949
|
+
# Request-specific options
|
42950
|
+
#
|
42951
|
+
# @yield [result, err] Result & error if block supplied
|
42952
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
42953
|
+
# @yieldparam err [StandardError] error object if request failed
|
42954
|
+
#
|
42955
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
42956
|
+
#
|
42957
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
42958
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
42959
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
42960
|
+
def insert_region_network_policy(project, region, network_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
42961
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkPolicies', options)
|
42962
|
+
command.request_representation = Google::Apis::ComputeAlpha::NetworkPolicy::Representation
|
42963
|
+
command.request_object = network_policy_object
|
42964
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
42965
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
42966
|
+
command.params['project'] = project unless project.nil?
|
42967
|
+
command.params['region'] = region unless region.nil?
|
42968
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
42969
|
+
command.query['fields'] = fields unless fields.nil?
|
42970
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
42971
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
42972
|
+
execute_or_queue_command(command, &block)
|
42973
|
+
end
|
42974
|
+
|
42975
|
+
# Lists all the policies that have been configured for the specified project in
|
42976
|
+
# the given region.
|
42977
|
+
# @param [String] project
|
42978
|
+
# Project ID for this request.
|
42979
|
+
# @param [String] region
|
42980
|
+
# Name of the region of this request.
|
42981
|
+
# @param [String] filter
|
42982
|
+
# A filter expression that filters resources listed in the response. Most
|
42983
|
+
# Compute resources support two types of filter expressions: expressions that
|
42984
|
+
# support regular expressions and expressions that follow API improvement
|
42985
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
42986
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
42987
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
42988
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
42989
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
42990
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
42991
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
42992
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
42993
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
42994
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
42995
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
42996
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
42997
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
42998
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
42999
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
43000
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
43001
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
43002
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
43003
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
43004
|
+
# un-parenthesized expression with or without quotes or against multiple
|
43005
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
43006
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
43007
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
43008
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
43009
|
+
# literal value must match the entire field. For example, to filter for
|
43010
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
43011
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
43012
|
+
# expressions.
|
43013
|
+
# @param [Fixnum] max_results
|
43014
|
+
# The maximum number of results per page that should be returned. If the number
|
43015
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
43016
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
43017
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
43018
|
+
# @param [String] order_by
|
43019
|
+
# Sorts list results by a certain order. By default, results are returned in
|
43020
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
43021
|
+
# descending order based on the creation timestamp using `orderBy="
|
43022
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
43023
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
43024
|
+
# resources like operations so that the newest operation is returned first.
|
43025
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
43026
|
+
# @param [String] page_token
|
43027
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
43028
|
+
# by a previous list request to get the next page of results.
|
43029
|
+
# @param [Boolean] return_partial_success
|
43030
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
43031
|
+
# failure. The default value is false. For example, when partial success
|
43032
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
43033
|
+
# resources in the zone or no resources, with an error code.
|
43034
|
+
# @param [String] fields
|
43035
|
+
# Selector specifying which fields to include in a partial response.
|
43036
|
+
# @param [String] quota_user
|
43037
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
43038
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
43039
|
+
# @param [String] user_ip
|
43040
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
43041
|
+
# @param [Google::Apis::RequestOptions] options
|
43042
|
+
# Request-specific options
|
43043
|
+
#
|
43044
|
+
# @yield [result, err] Result & error if block supplied
|
43045
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::NetworkPolicyList] parsed result object
|
41383
43046
|
# @yieldparam err [StandardError] error object if request failed
|
41384
43047
|
#
|
41385
|
-
# @return [Google::Apis::ComputeAlpha::
|
43048
|
+
# @return [Google::Apis::ComputeAlpha::NetworkPolicyList]
|
41386
43049
|
#
|
41387
43050
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
41388
43051
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
41389
43052
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
41390
|
-
def
|
41391
|
-
command = make_simple_command(:get, 'projects/{project}/regions/{region}/
|
41392
|
-
command.response_representation = Google::Apis::ComputeAlpha::
|
41393
|
-
command.response_class = Google::Apis::ComputeAlpha::
|
43053
|
+
def list_region_network_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)
|
43054
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkPolicies', options)
|
43055
|
+
command.response_representation = Google::Apis::ComputeAlpha::NetworkPolicyList::Representation
|
43056
|
+
command.response_class = Google::Apis::ComputeAlpha::NetworkPolicyList
|
41394
43057
|
command.params['project'] = project unless project.nil?
|
41395
43058
|
command.params['region'] = region unless region.nil?
|
41396
43059
|
command.query['filter'] = filter unless filter.nil?
|
@@ -41404,67 +43067,14 @@ module Google
|
|
41404
43067
|
execute_or_queue_command(command, &block)
|
41405
43068
|
end
|
41406
43069
|
|
41407
|
-
# Patches the specified
|
41408
|
-
# @param [String] project
|
41409
|
-
# Project ID for this request.
|
41410
|
-
# @param [String] region
|
41411
|
-
# Name of the region scoping this request.
|
41412
|
-
# @param [String] firewall_policy
|
41413
|
-
# Name of the firewall policy to update.
|
41414
|
-
# @param [Google::Apis::ComputeAlpha::FirewallPolicy] firewall_policy_object
|
41415
|
-
# @param [String] request_id
|
41416
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
41417
|
-
# that if you must retry your request, the server will know to ignore the
|
41418
|
-
# request if it has already been completed. For example, consider a situation
|
41419
|
-
# where you make an initial request and the request times out. If you make the
|
41420
|
-
# request again with the same request ID, the server can check if original
|
41421
|
-
# operation with the same request ID was received, and if so, will ignore the
|
41422
|
-
# second request. This prevents clients from accidentally creating duplicate
|
41423
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
41424
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
41425
|
-
# @param [String] fields
|
41426
|
-
# Selector specifying which fields to include in a partial response.
|
41427
|
-
# @param [String] quota_user
|
41428
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
41429
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
41430
|
-
# @param [String] user_ip
|
41431
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
41432
|
-
# @param [Google::Apis::RequestOptions] options
|
41433
|
-
# Request-specific options
|
41434
|
-
#
|
41435
|
-
# @yield [result, err] Result & error if block supplied
|
41436
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
41437
|
-
# @yieldparam err [StandardError] error object if request failed
|
41438
|
-
#
|
41439
|
-
# @return [Google::Apis::ComputeAlpha::Operation]
|
41440
|
-
#
|
41441
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
41442
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
41443
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
41444
|
-
def patch_region_network_firewall_policy(project, region, firewall_policy, firewall_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
41445
|
-
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}', options)
|
41446
|
-
command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicy::Representation
|
41447
|
-
command.request_object = firewall_policy_object
|
41448
|
-
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
41449
|
-
command.response_class = Google::Apis::ComputeAlpha::Operation
|
41450
|
-
command.params['project'] = project unless project.nil?
|
41451
|
-
command.params['region'] = region unless region.nil?
|
41452
|
-
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
41453
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
41454
|
-
command.query['fields'] = fields unless fields.nil?
|
41455
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
41456
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
41457
|
-
execute_or_queue_command(command, &block)
|
41458
|
-
end
|
41459
|
-
|
41460
|
-
# Updates an association for the specified network firewall policy.
|
43070
|
+
# Patches the specified policy with the data included in the request.
|
41461
43071
|
# @param [String] project
|
41462
43072
|
# Project ID for this request.
|
41463
43073
|
# @param [String] region
|
41464
|
-
# Name of the region
|
41465
|
-
# @param [String]
|
41466
|
-
# Name of the
|
41467
|
-
# @param [Google::Apis::ComputeAlpha::
|
43074
|
+
# Name of the region of this request.
|
43075
|
+
# @param [String] network_policy
|
43076
|
+
# Name of the network policy resource to update.
|
43077
|
+
# @param [Google::Apis::ComputeAlpha::NetworkPolicy] network_policy_object
|
41468
43078
|
# @param [String] request_id
|
41469
43079
|
# An optional request ID to identify requests. Specify a unique request ID so
|
41470
43080
|
# that if you must retry your request, the server will know to ignore the
|
@@ -41494,15 +43104,15 @@ module Google
|
|
41494
43104
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
41495
43105
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
41496
43106
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
41497
|
-
def
|
41498
|
-
command = make_simple_command(:
|
41499
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
41500
|
-
command.request_object =
|
43107
|
+
def patch_region_network_policy(project, region, network_policy, network_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
43108
|
+
command = make_simple_command(:patch, 'projects/{project}/regions/{region}/networkPolicies/{networkPolicy}', options)
|
43109
|
+
command.request_representation = Google::Apis::ComputeAlpha::NetworkPolicy::Representation
|
43110
|
+
command.request_object = network_policy_object
|
41501
43111
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
41502
43112
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
41503
43113
|
command.params['project'] = project unless project.nil?
|
41504
43114
|
command.params['region'] = region unless region.nil?
|
41505
|
-
command.params['
|
43115
|
+
command.params['networkPolicy'] = network_policy unless network_policy.nil?
|
41506
43116
|
command.query['requestId'] = request_id unless request_id.nil?
|
41507
43117
|
command.query['fields'] = fields unless fields.nil?
|
41508
43118
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -41514,10 +43124,10 @@ module Google
|
|
41514
43124
|
# @param [String] project
|
41515
43125
|
# Project ID for this request.
|
41516
43126
|
# @param [String] region
|
41517
|
-
# Name of the region
|
41518
|
-
# @param [String]
|
41519
|
-
# Name of the
|
41520
|
-
# @param [Google::Apis::ComputeAlpha::
|
43127
|
+
# Name of the region of this request.
|
43128
|
+
# @param [String] network_policy
|
43129
|
+
# Name of the network policy resource to update.
|
43130
|
+
# @param [Google::Apis::ComputeAlpha::NetworkPolicyTrafficClassificationRule] network_policy_traffic_classification_rule_object
|
41521
43131
|
# @param [Fixnum] priority
|
41522
43132
|
# The priority of the rule to patch.
|
41523
43133
|
# @param [String] request_id
|
@@ -41549,15 +43159,15 @@ module Google
|
|
41549
43159
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
41550
43160
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
41551
43161
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
41552
|
-
def
|
41553
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/
|
41554
|
-
command.request_representation = Google::Apis::ComputeAlpha::
|
41555
|
-
command.request_object =
|
43162
|
+
def patch_region_network_policy_traffic_classification_rule(project, region, network_policy, network_policy_traffic_classification_rule_object = nil, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
43163
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/patchTrafficClassificationRule', options)
|
43164
|
+
command.request_representation = Google::Apis::ComputeAlpha::NetworkPolicyTrafficClassificationRule::Representation
|
43165
|
+
command.request_object = network_policy_traffic_classification_rule_object
|
41556
43166
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
41557
43167
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
41558
43168
|
command.params['project'] = project unless project.nil?
|
41559
43169
|
command.params['region'] = region unless region.nil?
|
41560
|
-
command.params['
|
43170
|
+
command.params['networkPolicy'] = network_policy unless network_policy.nil?
|
41561
43171
|
command.query['priority'] = priority unless priority.nil?
|
41562
43172
|
command.query['requestId'] = request_id unless request_id.nil?
|
41563
43173
|
command.query['fields'] = fields unless fields.nil?
|
@@ -41566,13 +43176,13 @@ module Google
|
|
41566
43176
|
execute_or_queue_command(command, &block)
|
41567
43177
|
end
|
41568
43178
|
|
41569
|
-
# Removes an association for the specified network
|
43179
|
+
# Removes an association for the specified network policy.
|
41570
43180
|
# @param [String] project
|
41571
43181
|
# Project ID for this request.
|
41572
43182
|
# @param [String] region
|
41573
|
-
# Name of the region
|
41574
|
-
# @param [String]
|
41575
|
-
# Name of the
|
43183
|
+
# Name of the region of this request.
|
43184
|
+
# @param [String] network_policy
|
43185
|
+
# Name of the network policy resource to update.
|
41576
43186
|
# @param [String] name
|
41577
43187
|
# Name for the association that will be removed.
|
41578
43188
|
# @param [String] request_id
|
@@ -41604,13 +43214,13 @@ module Google
|
|
41604
43214
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
41605
43215
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
41606
43216
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
41607
|
-
def
|
41608
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/
|
43217
|
+
def remove_region_network_policy_association(project, region, network_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
43218
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/removeAssociation', options)
|
41609
43219
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
41610
43220
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
41611
43221
|
command.params['project'] = project unless project.nil?
|
41612
43222
|
command.params['region'] = region unless region.nil?
|
41613
|
-
command.params['
|
43223
|
+
command.params['networkPolicy'] = network_policy unless network_policy.nil?
|
41614
43224
|
command.query['name'] = name unless name.nil?
|
41615
43225
|
command.query['requestId'] = request_id unless request_id.nil?
|
41616
43226
|
command.query['fields'] = fields unless fields.nil?
|
@@ -41623,11 +43233,11 @@ module Google
|
|
41623
43233
|
# @param [String] project
|
41624
43234
|
# Project ID for this request.
|
41625
43235
|
# @param [String] region
|
41626
|
-
# Name of the region
|
41627
|
-
# @param [String]
|
41628
|
-
# Name of the
|
43236
|
+
# Name of the region of this request.
|
43237
|
+
# @param [String] network_policy
|
43238
|
+
# Name of the network policy resource to update.
|
41629
43239
|
# @param [Fixnum] priority
|
41630
|
-
# The priority of the rule to remove from the
|
43240
|
+
# The priority of the rule to remove from the network policy.
|
41631
43241
|
# @param [String] request_id
|
41632
43242
|
# An optional request ID to identify requests. Specify a unique request ID so
|
41633
43243
|
# that if you must retry your request, the server will know to ignore the
|
@@ -41657,13 +43267,13 @@ module Google
|
|
41657
43267
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
41658
43268
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
41659
43269
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
41660
|
-
def
|
41661
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/
|
43270
|
+
def remove_region_network_policy_traffic_classification_rule(project, region, network_policy, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
43271
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/removeTrafficClassificationRule', options)
|
41662
43272
|
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
41663
43273
|
command.response_class = Google::Apis::ComputeAlpha::Operation
|
41664
43274
|
command.params['project'] = project unless project.nil?
|
41665
43275
|
command.params['region'] = region unless region.nil?
|
41666
|
-
command.params['
|
43276
|
+
command.params['networkPolicy'] = network_policy unless network_policy.nil?
|
41667
43277
|
command.query['priority'] = priority unless priority.nil?
|
41668
43278
|
command.query['requestId'] = request_id unless request_id.nil?
|
41669
43279
|
command.query['fields'] = fields unless fields.nil?
|
@@ -41672,91 +43282,6 @@ module Google
|
|
41672
43282
|
execute_or_queue_command(command, &block)
|
41673
43283
|
end
|
41674
43284
|
|
41675
|
-
# Sets the access control policy on the specified resource. Replaces any
|
41676
|
-
# existing policy.
|
41677
|
-
# @param [String] project
|
41678
|
-
# Project ID for this request.
|
41679
|
-
# @param [String] region
|
41680
|
-
# The name of the region for this request.
|
41681
|
-
# @param [String] resource
|
41682
|
-
# Name or id of the resource for this request.
|
41683
|
-
# @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
|
41684
|
-
# @param [String] fields
|
41685
|
-
# Selector specifying which fields to include in a partial response.
|
41686
|
-
# @param [String] quota_user
|
41687
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
41688
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
41689
|
-
# @param [String] user_ip
|
41690
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
41691
|
-
# @param [Google::Apis::RequestOptions] options
|
41692
|
-
# Request-specific options
|
41693
|
-
#
|
41694
|
-
# @yield [result, err] Result & error if block supplied
|
41695
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
|
41696
|
-
# @yieldparam err [StandardError] error object if request failed
|
41697
|
-
#
|
41698
|
-
# @return [Google::Apis::ComputeAlpha::Policy]
|
41699
|
-
#
|
41700
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
41701
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
41702
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
41703
|
-
def set_region_network_firewall_policy_iam_policy(project, region, resource, region_set_policy_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
41704
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{resource}/setIamPolicy', options)
|
41705
|
-
command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
|
41706
|
-
command.request_object = region_set_policy_request_object
|
41707
|
-
command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
|
41708
|
-
command.response_class = Google::Apis::ComputeAlpha::Policy
|
41709
|
-
command.params['project'] = project unless project.nil?
|
41710
|
-
command.params['region'] = region unless region.nil?
|
41711
|
-
command.params['resource'] = resource unless resource.nil?
|
41712
|
-
command.query['fields'] = fields unless fields.nil?
|
41713
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
41714
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
41715
|
-
execute_or_queue_command(command, &block)
|
41716
|
-
end
|
41717
|
-
|
41718
|
-
# Returns permissions that a caller has on the specified resource.
|
41719
|
-
# @param [String] project
|
41720
|
-
# Project ID for this request.
|
41721
|
-
# @param [String] region
|
41722
|
-
# The name of the region for this request.
|
41723
|
-
# @param [String] resource
|
41724
|
-
# Name or id of the resource for this request.
|
41725
|
-
# @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
|
41726
|
-
# @param [String] fields
|
41727
|
-
# Selector specifying which fields to include in a partial response.
|
41728
|
-
# @param [String] quota_user
|
41729
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
41730
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
41731
|
-
# @param [String] user_ip
|
41732
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
41733
|
-
# @param [Google::Apis::RequestOptions] options
|
41734
|
-
# Request-specific options
|
41735
|
-
#
|
41736
|
-
# @yield [result, err] Result & error if block supplied
|
41737
|
-
# @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
|
41738
|
-
# @yieldparam err [StandardError] error object if request failed
|
41739
|
-
#
|
41740
|
-
# @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
|
41741
|
-
#
|
41742
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
41743
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
41744
|
-
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
41745
|
-
def test_region_network_firewall_policy_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
41746
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{resource}/testIamPermissions', options)
|
41747
|
-
command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
|
41748
|
-
command.request_object = test_permissions_request_object
|
41749
|
-
command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
|
41750
|
-
command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
|
41751
|
-
command.params['project'] = project unless project.nil?
|
41752
|
-
command.params['region'] = region unless region.nil?
|
41753
|
-
command.params['resource'] = resource unless resource.nil?
|
41754
|
-
command.query['fields'] = fields unless fields.nil?
|
41755
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
41756
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
41757
|
-
execute_or_queue_command(command, &block)
|
41758
|
-
end
|
41759
|
-
|
41760
43285
|
# Retrieves the list of all NotificationEndpoint resources, regional and global,
|
41761
43286
|
# available to the specified project.
|
41762
43287
|
# @param [String] project
|
@@ -43398,6 +44923,57 @@ module Google
|
|
43398
44923
|
execute_or_queue_command(command, &block)
|
43399
44924
|
end
|
43400
44925
|
|
44926
|
+
# Rotates the customer-managed encryption key to the latest version for the
|
44927
|
+
# specified snapshot.
|
44928
|
+
# @param [String] project
|
44929
|
+
# Project ID for this request.
|
44930
|
+
# @param [String] region
|
44931
|
+
# Name of the region for this request.
|
44932
|
+
# @param [String] snapshot
|
44933
|
+
# Name of the snapshot resource to update. Should conform to RFC1035.
|
44934
|
+
# @param [String] request_id
|
44935
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
44936
|
+
# that if you must retry your request, the server will know to ignore the
|
44937
|
+
# request if it has already been completed. For example, consider a situation
|
44938
|
+
# where you make an initial request and the request times out. If you make the
|
44939
|
+
# request again with the same request ID, the server can check if original
|
44940
|
+
# operation with the same request ID was received, and if so, will ignore the
|
44941
|
+
# second request. This prevents clients from accidentally creating duplicate
|
44942
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
44943
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
44944
|
+
# @param [String] fields
|
44945
|
+
# Selector specifying which fields to include in a partial response.
|
44946
|
+
# @param [String] quota_user
|
44947
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
44948
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
44949
|
+
# @param [String] user_ip
|
44950
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
44951
|
+
# @param [Google::Apis::RequestOptions] options
|
44952
|
+
# Request-specific options
|
44953
|
+
#
|
44954
|
+
# @yield [result, err] Result & error if block supplied
|
44955
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
44956
|
+
# @yieldparam err [StandardError] error object if request failed
|
44957
|
+
#
|
44958
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
44959
|
+
#
|
44960
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
44961
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
44962
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
44963
|
+
def update_region_snapshot_kms_key(project, region, snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
44964
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/snapshots/{snapshot}/updateKmsKey', options)
|
44965
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
44966
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
44967
|
+
command.params['project'] = project unless project.nil?
|
44968
|
+
command.params['region'] = region unless region.nil?
|
44969
|
+
command.params['snapshot'] = snapshot unless snapshot.nil?
|
44970
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
44971
|
+
command.query['fields'] = fields unless fields.nil?
|
44972
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
44973
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
44974
|
+
execute_or_queue_command(command, &block)
|
44975
|
+
end
|
44976
|
+
|
43401
44977
|
# Deletes the specified SslCertificate resource in the region.
|
43402
44978
|
# @param [String] project
|
43403
44979
|
# Project ID for this request.
|
@@ -51449,6 +53025,54 @@ module Google
|
|
51449
53025
|
execute_or_queue_command(command, &block)
|
51450
53026
|
end
|
51451
53027
|
|
53028
|
+
# Rotates the customer-managed encryption key to the latest version for the
|
53029
|
+
# specified snapshot.
|
53030
|
+
# @param [String] project
|
53031
|
+
# Project ID for this request.
|
53032
|
+
# @param [String] snapshot
|
53033
|
+
# Name of the snapshot resource to update. Should conform to RFC1035.
|
53034
|
+
# @param [String] request_id
|
53035
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
53036
|
+
# that if you must retry your request, the server will know to ignore the
|
53037
|
+
# request if it has already been completed. For example, consider a situation
|
53038
|
+
# where you make an initial request and the request times out. If you make the
|
53039
|
+
# request again with the same request ID, the server can check if original
|
53040
|
+
# operation with the same request ID was received, and if so, will ignore the
|
53041
|
+
# second request. This prevents clients from accidentally creating duplicate
|
53042
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
53043
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
53044
|
+
# @param [String] fields
|
53045
|
+
# Selector specifying which fields to include in a partial response.
|
53046
|
+
# @param [String] quota_user
|
53047
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
53048
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
53049
|
+
# @param [String] user_ip
|
53050
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
53051
|
+
# @param [Google::Apis::RequestOptions] options
|
53052
|
+
# Request-specific options
|
53053
|
+
#
|
53054
|
+
# @yield [result, err] Result & error if block supplied
|
53055
|
+
# @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
|
53056
|
+
# @yieldparam err [StandardError] error object if request failed
|
53057
|
+
#
|
53058
|
+
# @return [Google::Apis::ComputeAlpha::Operation]
|
53059
|
+
#
|
53060
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
53061
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
53062
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
53063
|
+
def update_snapshot_kms_key(project, snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
53064
|
+
command = make_simple_command(:post, 'projects/{project}/global/snapshots/{snapshot}/updateKmsKey', options)
|
53065
|
+
command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
|
53066
|
+
command.response_class = Google::Apis::ComputeAlpha::Operation
|
53067
|
+
command.params['project'] = project unless project.nil?
|
53068
|
+
command.params['snapshot'] = snapshot unless snapshot.nil?
|
53069
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
53070
|
+
command.query['fields'] = fields unless fields.nil?
|
53071
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
53072
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
53073
|
+
execute_or_queue_command(command, &block)
|
53074
|
+
end
|
53075
|
+
|
51452
53076
|
# Retrieves the list of all SslCertificate resources, regional and global,
|
51453
53077
|
# available to the specified project. To prevent failure, Google recommends that
|
51454
53078
|
# you set the `returnPartialSuccess` parameter to `true`.
|