google-apis-compute_alpha 0.121.0 → 0.123.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.
@@ -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_kms_key(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/{+firewallPolicy}/forceStartProgressiveRollout', options)
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
@@ -25064,6 +25794,58 @@ module Google
25064
25794
  execute_or_queue_command(command, &block)
25065
25795
  end
25066
25796
 
25797
+ # Cancel requests to remove a peering from the specified network. Applicable
25798
+ # only for PeeringConnection with update_strategy=CONSENSUS. Cancels a request
25799
+ # to remove a peering from the specified network.
25800
+ # @param [String] project
25801
+ # Project ID for this request.
25802
+ # @param [String] network
25803
+ # Name of the network resource to remove peering from.
25804
+ # @param [Google::Apis::ComputeAlpha::NetworksCancelRequestRemovePeeringRequest] networks_cancel_request_remove_peering_request_object
25805
+ # @param [String] request_id
25806
+ # An optional request ID to identify requests. Specify a unique request ID so
25807
+ # that if you must retry your request, the server will know to ignore the
25808
+ # request if it has already been completed. For example, consider a situation
25809
+ # where you make an initial request and the request times out. If you make the
25810
+ # request again with the same request ID, the server can check if original
25811
+ # operation with the same request ID was received, and if so, will ignore the
25812
+ # second request. This prevents clients from accidentally creating duplicate
25813
+ # commitments. The request ID must be a valid UUID with the exception that zero
25814
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
25815
+ # @param [String] fields
25816
+ # Selector specifying which fields to include in a partial response.
25817
+ # @param [String] quota_user
25818
+ # Available to use for quota purposes for server-side applications. Can be any
25819
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
25820
+ # @param [String] user_ip
25821
+ # Legacy name for parameter that has been superseded by `quotaUser`.
25822
+ # @param [Google::Apis::RequestOptions] options
25823
+ # Request-specific options
25824
+ #
25825
+ # @yield [result, err] Result & error if block supplied
25826
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
25827
+ # @yieldparam err [StandardError] error object if request failed
25828
+ #
25829
+ # @return [Google::Apis::ComputeAlpha::Operation]
25830
+ #
25831
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
25832
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
25833
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
25834
+ def cancel_network_request_remove_peering(project, network, networks_cancel_request_remove_peering_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
25835
+ command = make_simple_command(:post, 'projects/{project}/global/networks/{network}/cancelRequestRemovePeering', options)
25836
+ command.request_representation = Google::Apis::ComputeAlpha::NetworksCancelRequestRemovePeeringRequest::Representation
25837
+ command.request_object = networks_cancel_request_remove_peering_request_object
25838
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
25839
+ command.response_class = Google::Apis::ComputeAlpha::Operation
25840
+ command.params['project'] = project unless project.nil?
25841
+ command.params['network'] = network unless network.nil?
25842
+ command.query['requestId'] = request_id unless request_id.nil?
25843
+ command.query['fields'] = fields unless fields.nil?
25844
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
25845
+ command.query['userIp'] = user_ip unless user_ip.nil?
25846
+ execute_or_queue_command(command, &block)
25847
+ end
25848
+
25067
25849
  # Deletes the specified network.
25068
25850
  # @param [String] project
25069
25851
  # Project ID for this request.
@@ -28156,6 +28938,8 @@ module Google
28156
28938
  # second request. This prevents clients from accidentally creating duplicate
28157
28939
  # commitments. The request ID must be a valid UUID with the exception that zero
28158
28940
  # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
28941
+ # @param [String] update_mask
28942
+ # Indicates fields to be cleared as part of this request.
28159
28943
  # @param [String] fields
28160
28944
  # Selector specifying which fields to include in a partial response.
28161
28945
  # @param [String] quota_user
@@ -28175,7 +28959,7 @@ module Google
28175
28959
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28176
28960
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28177
28961
  # @raise [Google::Apis::AuthorizationError] Authorization is required
28178
- def patch_organization_security_policy(security_policy, security_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28962
+ def patch_organization_security_policy(security_policy, security_policy_object = nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28179
28963
  command = make_simple_command(:patch, 'locations/global/securityPolicies/{securityPolicy}', options)
28180
28964
  command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicy::Representation
28181
28965
  command.request_object = security_policy_object
@@ -28183,6 +28967,7 @@ module Google
28183
28967
  command.response_class = Google::Apis::ComputeAlpha::Operation
28184
28968
  command.params['securityPolicy'] = security_policy unless security_policy.nil?
28185
28969
  command.query['requestId'] = request_id unless request_id.nil?
28970
+ command.query['updateMask'] = update_mask unless update_mask.nil?
28186
28971
  command.query['fields'] = fields unless fields.nil?
28187
28972
  command.query['quotaUser'] = quota_user unless quota_user.nil?
28188
28973
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -28206,6 +28991,8 @@ module Google
28206
28991
  # second request. This prevents clients from accidentally creating duplicate
28207
28992
  # commitments. The request ID must be a valid UUID with the exception that zero
28208
28993
  # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
28994
+ # @param [String] update_mask
28995
+ # Indicates fields to be cleared as part of this request.
28209
28996
  # @param [String] fields
28210
28997
  # Selector specifying which fields to include in a partial response.
28211
28998
  # @param [String] quota_user
@@ -28225,7 +29012,7 @@ module Google
28225
29012
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
28226
29013
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
28227
29014
  # @raise [Google::Apis::AuthorizationError] Authorization is required
28228
- def patch_organization_security_policy_rule(security_policy, security_policy_rule_object = nil, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
29015
+ def patch_organization_security_policy_rule(security_policy, security_policy_rule_object = nil, priority: nil, request_id: nil, update_mask: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
28229
29016
  command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/patchRule', options)
28230
29017
  command.request_representation = Google::Apis::ComputeAlpha::SecurityPolicyRule::Representation
28231
29018
  command.request_object = security_policy_rule_object
@@ -28234,6 +29021,7 @@ module Google
28234
29021
  command.params['securityPolicy'] = security_policy unless security_policy.nil?
28235
29022
  command.query['priority'] = priority unless priority.nil?
28236
29023
  command.query['requestId'] = request_id unless request_id.nil?
29024
+ command.query['updateMask'] = update_mask unless update_mask.nil?
28237
29025
  command.query['fields'] = fields unless fields.nil?
28238
29026
  command.query['quotaUser'] = quota_user unless quota_user.nil?
28239
29027
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -29393,7 +30181,14 @@ module Google
29393
30181
  execute_or_queue_command(command, &block)
29394
30182
  end
29395
30183
 
29396
- # Moves a persistent disk from one zone to another.
30184
+ # Starting September 29, 2025, you can't use the moveDisk API on new projects.
30185
+ # To move a disk to a different region or zone, follow the steps in [Change the
30186
+ # location of a disk](https://`$universe.dns_names.final_documentation_domain`/
30187
+ # compute/docs/disks/migrate-to-hyperdisk#migrate-to-hd). Projects that already
30188
+ # use the moveDisk API can continue usage until September 29, 2026. Starting
30189
+ # November 1, 2025, API responses will include a warning message in the response
30190
+ # body about the upcoming deprecation. You can skip the message to continue
30191
+ # using the service without interruption.
29397
30192
  # @param [String] project
29398
30193
  # Project ID for this request.
29399
30194
  # @param [Google::Apis::ComputeAlpha::DiskMoveRequest] disk_move_request_object
@@ -34825,15 +35620,14 @@ module Google
34825
35620
  execute_or_queue_command(command, &block)
34826
35621
  end
34827
35622
 
34828
- # Wait for replication to catch up on the secondary disk.
35623
+ # Rotates the customer-managed encryption key to the latest version for the
35624
+ # specified persistent disk.
34829
35625
  # @param [String] project
34830
35626
  # Project ID for this request.
34831
35627
  # @param [String] region
34832
- # Name of the region for this request.
35628
+ # The name of the region for this request.
34833
35629
  # @param [String] disk
34834
- # The name of the persistent disk. Name should conform to RFC1035 or be an
34835
- # unsigned long integer.
34836
- # @param [Google::Apis::ComputeAlpha::RegionWaitForReplicationCatchUpRequest] region_wait_for_replication_catch_up_request_object
35630
+ # Name of the Disk resource, should conform to RFC1035.
34837
35631
  # @param [String] request_id
34838
35632
  # An optional request ID to identify requests. Specify a unique request ID so
34839
35633
  # that if you must retry your request, the server will know to ignore the
@@ -34863,10 +35657,8 @@ module Google
34863
35657
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
34864
35658
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
34865
35659
  # @raise [Google::Apis::AuthorizationError] Authorization is required
34866
- 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)
34867
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{disk}/waitForReplicationCatchUp', options)
34868
- command.request_representation = Google::Apis::ComputeAlpha::RegionWaitForReplicationCatchUpRequest::Representation
34869
- command.request_object = region_wait_for_replication_catch_up_request_object
35660
+ def update_region_disk_kms_key(project, region, disk, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35661
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{disk}/updateKmsKey', options)
34870
35662
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
34871
35663
  command.response_class = Google::Apis::ComputeAlpha::Operation
34872
35664
  command.params['project'] = project unless project.nil?
@@ -34879,207 +35671,15 @@ module Google
34879
35671
  execute_or_queue_command(command, &block)
34880
35672
  end
34881
35673
 
34882
- # Retrieves the list of all HealthAggregationPolicy resources, regional and
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.
35674
+ # Wait for replication to catch up on the secondary disk.
35078
35675
  # @param [String] project
35079
35676
  # Project ID for this request.
35080
35677
  # @param [String] region
35081
- # Name of the region scoping this request.
35082
- # @param [Google::Apis::ComputeAlpha::HealthAggregationPolicy] health_aggregation_policy_object
35678
+ # Name of the region for this request.
35679
+ # @param [String] disk
35680
+ # The name of the persistent disk. Name should conform to RFC1035 or be an
35681
+ # unsigned long integer.
35682
+ # @param [Google::Apis::ComputeAlpha::RegionWaitForReplicationCatchUpRequest] region_wait_for_replication_catch_up_request_object
35083
35683
  # @param [String] request_id
35084
35684
  # An optional request ID to identify requests. Specify a unique request ID so
35085
35685
  # that if you must retry your request, the server will know to ignore the
@@ -35109,14 +35709,15 @@ module Google
35109
35709
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35110
35710
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35111
35711
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35112
- 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)
35113
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthAggregationPolicies', options)
35114
- command.request_representation = Google::Apis::ComputeAlpha::HealthAggregationPolicy::Representation
35115
- command.request_object = health_aggregation_policy_object
35712
+ 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)
35713
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/disks/{disk}/waitForReplicationCatchUp', options)
35714
+ command.request_representation = Google::Apis::ComputeAlpha::RegionWaitForReplicationCatchUpRequest::Representation
35715
+ command.request_object = region_wait_for_replication_catch_up_request_object
35116
35716
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
35117
35717
  command.response_class = Google::Apis::ComputeAlpha::Operation
35118
35718
  command.params['project'] = project unless project.nil?
35119
35719
  command.params['region'] = region unless region.nil?
35720
+ command.params['disk'] = disk unless disk.nil?
35120
35721
  command.query['requestId'] = request_id unless request_id.nil?
35121
35722
  command.query['fields'] = fields unless fields.nil?
35122
35723
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -35124,11 +35725,11 @@ module Google
35124
35725
  execute_or_queue_command(command, &block)
35125
35726
  end
35126
35727
 
35127
- # Lists the HealthAggregationPolicies for a project in the given region.
35728
+ # Retrieves the list of all HealthAggregationPolicy resources, regional and
35729
+ # global, available to the specified project. To prevent failure, Google
35730
+ # recommends that you set the `returnPartialSuccess` parameter to `true`.
35128
35731
  # @param [String] project
35129
- # Project ID for this request.
35130
- # @param [String] region
35131
- # Name of the region scoping this request.
35732
+ # Name of the project scoping this request.
35132
35733
  # @param [String] filter
35133
35734
  # A filter expression that filters resources listed in the response. Most
35134
35735
  # Compute resources support two types of filter expressions: expressions that
@@ -35161,6 +35762,13 @@ module Google
35161
35762
  # instances that do not end with name "instance", you would use `name ne .*
35162
35763
  # instance`. You cannot combine constraints on multiple fields using regular
35163
35764
  # expressions.
35765
+ # @param [Boolean] include_all_scopes
35766
+ # Indicates whether every visible scope for each scope type (zone, region,
35767
+ # global) should be included in the response. For new resource types added after
35768
+ # this field, the flag has no effect as new resource types will always include
35769
+ # every visible scope for each scope type in response. For resource types which
35770
+ # predate this field, if this flag is omitted or false, only scopes of the scope
35771
+ # types where the resource type is expected to be found will be included.
35164
35772
  # @param [Fixnum] max_results
35165
35773
  # The maximum number of results per page that should be returned. If the number
35166
35774
  # of available results is larger than `maxResults`, Compute Engine returns a `
@@ -35182,6 +35790,9 @@ module Google
35182
35790
  # failure. The default value is false. For example, when partial success
35183
35791
  # behavior is enabled, aggregatedList for a single zone scope either returns all
35184
35792
  # resources in the zone or no resources, with an error code.
35793
+ # @param [Fixnum] service_project_number
35794
+ # The Shared VPC service project id or service project number for which
35795
+ # aggregated list request is invoked for subnetworks list-usable api.
35185
35796
  # @param [String] fields
35186
35797
  # Selector specifying which fields to include in a partial response.
35187
35798
  # @param [String] quota_user
@@ -35193,42 +35804,39 @@ module Google
35193
35804
  # Request-specific options
35194
35805
  #
35195
35806
  # @yield [result, err] Result & error if block supplied
35196
- # @yieldparam result [Google::Apis::ComputeAlpha::HealthAggregationPolicyList] parsed result object
35807
+ # @yieldparam result [Google::Apis::ComputeAlpha::HealthAggregationPolicyAggregatedList] parsed result object
35197
35808
  # @yieldparam err [StandardError] error object if request failed
35198
35809
  #
35199
- # @return [Google::Apis::ComputeAlpha::HealthAggregationPolicyList]
35810
+ # @return [Google::Apis::ComputeAlpha::HealthAggregationPolicyAggregatedList]
35200
35811
  #
35201
35812
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35202
35813
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35203
35814
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35204
- def list_region_health_aggregation_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)
35205
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthAggregationPolicies', options)
35206
- command.response_representation = Google::Apis::ComputeAlpha::HealthAggregationPolicyList::Representation
35207
- command.response_class = Google::Apis::ComputeAlpha::HealthAggregationPolicyList
35815
+ 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)
35816
+ command = make_simple_command(:get, 'projects/{project}/aggregated/healthAggregationPolicies', options)
35817
+ command.response_representation = Google::Apis::ComputeAlpha::HealthAggregationPolicyAggregatedList::Representation
35818
+ command.response_class = Google::Apis::ComputeAlpha::HealthAggregationPolicyAggregatedList
35208
35819
  command.params['project'] = project unless project.nil?
35209
- command.params['region'] = region unless region.nil?
35210
35820
  command.query['filter'] = filter unless filter.nil?
35821
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
35211
35822
  command.query['maxResults'] = max_results unless max_results.nil?
35212
35823
  command.query['orderBy'] = order_by unless order_by.nil?
35213
35824
  command.query['pageToken'] = page_token unless page_token.nil?
35214
35825
  command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
35826
+ command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
35215
35827
  command.query['fields'] = fields unless fields.nil?
35216
35828
  command.query['quotaUser'] = quota_user unless quota_user.nil?
35217
35829
  command.query['userIp'] = user_ip unless user_ip.nil?
35218
35830
  execute_or_queue_command(command, &block)
35219
35831
  end
35220
35832
 
35221
- # Updates the specified regional HealthAggregationPolicy resource with the data
35222
- # included in the request. This method supports PATCH semantics and uses the
35223
- # JSON merge patch format and processing rules.
35833
+ # Deletes the specified HealthAggregationPolicy in the given region.
35224
35834
  # @param [String] project
35225
35835
  # Project ID for this request.
35226
35836
  # @param [String] region
35227
35837
  # Name of the region scoping this request.
35228
35838
  # @param [String] health_aggregation_policy
35229
- # Name of the HealthAggregationPolicy to update. The name must be 1-63
35230
- # characters long, and comply with RFC1035.
35231
- # @param [Google::Apis::ComputeAlpha::HealthAggregationPolicy] health_aggregation_policy_object
35839
+ # Name of the HealthAggregationPolicy resource to delete.
35232
35840
  # @param [String] request_id
35233
35841
  # An optional request ID to identify requests. Specify a unique request ID so
35234
35842
  # that if you must retry your request, the server will know to ignore the
@@ -35258,10 +35866,8 @@ module Google
35258
35866
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35259
35867
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35260
35868
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35261
- def patch_region_health_aggregation_policy(project, region, health_aggregation_policy, health_aggregation_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35262
- command = make_simple_command(:patch, 'projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}', options)
35263
- command.request_representation = Google::Apis::ComputeAlpha::HealthAggregationPolicy::Representation
35264
- command.request_object = health_aggregation_policy_object
35869
+ 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)
35870
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}', options)
35265
35871
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
35266
35872
  command.response_class = Google::Apis::ComputeAlpha::Operation
35267
35873
  command.params['project'] = project unless project.nil?
@@ -35274,14 +35880,13 @@ module Google
35274
35880
  execute_or_queue_command(command, &block)
35275
35881
  end
35276
35882
 
35277
- # Returns permissions that a caller has on the specified resource.
35883
+ # Returns the specified HealthAggregationPolicy resource in the given region.
35278
35884
  # @param [String] project
35279
35885
  # Project ID for this request.
35280
35886
  # @param [String] region
35281
- # The name of the region for this request.
35282
- # @param [String] resource
35283
- # Name or id of the resource for this request.
35284
- # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
35887
+ # Name of the region scoping this request.
35888
+ # @param [String] health_aggregation_policy
35889
+ # Name of the HealthAggregationPolicy resource to return.
35285
35890
  # @param [String] fields
35286
35891
  # Selector specifying which fields to include in a partial response.
35287
35892
  # @param [String] quota_user
@@ -35293,34 +35898,83 @@ module Google
35293
35898
  # Request-specific options
35294
35899
  #
35295
35900
  # @yield [result, err] Result & error if block supplied
35296
- # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
35901
+ # @yieldparam result [Google::Apis::ComputeAlpha::HealthAggregationPolicy] parsed result object
35297
35902
  # @yieldparam err [StandardError] error object if request failed
35298
35903
  #
35299
- # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
35904
+ # @return [Google::Apis::ComputeAlpha::HealthAggregationPolicy]
35300
35905
  #
35301
35906
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35302
35907
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35303
35908
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35304
- def test_region_health_aggregation_policy_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35305
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthAggregationPolicies/{resource}/testIamPermissions', options)
35306
- command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
35307
- command.request_object = test_permissions_request_object
35308
- command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
35309
- command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
35909
+ def get_region_health_aggregation_policy(project, region, health_aggregation_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35910
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}', options)
35911
+ command.response_representation = Google::Apis::ComputeAlpha::HealthAggregationPolicy::Representation
35912
+ command.response_class = Google::Apis::ComputeAlpha::HealthAggregationPolicy
35310
35913
  command.params['project'] = project unless project.nil?
35311
35914
  command.params['region'] = region unless region.nil?
35312
- command.params['resource'] = resource unless resource.nil?
35915
+ command.params['healthAggregationPolicy'] = health_aggregation_policy unless health_aggregation_policy.nil?
35313
35916
  command.query['fields'] = fields unless fields.nil?
35314
35917
  command.query['quotaUser'] = quota_user unless quota_user.nil?
35315
35918
  command.query['userIp'] = user_ip unless user_ip.nil?
35316
35919
  execute_or_queue_command(command, &block)
35317
35920
  end
35318
35921
 
35319
- # Retrieves the list of all HealthCheckService resources, regional and global,
35320
- # available to the specified project. To prevent failure, Google recommends that
35321
- # you set the `returnPartialSuccess` parameter to `true`.
35922
+ # Create a HealthAggregationPolicy in the specified project in the given region
35923
+ # using the parameters that are included in the request.
35322
35924
  # @param [String] project
35323
- # Name of the project scoping this request.
35925
+ # Project ID for this request.
35926
+ # @param [String] region
35927
+ # Name of the region scoping this request.
35928
+ # @param [Google::Apis::ComputeAlpha::HealthAggregationPolicy] health_aggregation_policy_object
35929
+ # @param [String] request_id
35930
+ # An optional request ID to identify requests. Specify a unique request ID so
35931
+ # that if you must retry your request, the server will know to ignore the
35932
+ # request if it has already been completed. For example, consider a situation
35933
+ # where you make an initial request and the request times out. If you make the
35934
+ # request again with the same request ID, the server can check if original
35935
+ # operation with the same request ID was received, and if so, will ignore the
35936
+ # second request. This prevents clients from accidentally creating duplicate
35937
+ # commitments. The request ID must be a valid UUID with the exception that zero
35938
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
35939
+ # @param [String] fields
35940
+ # Selector specifying which fields to include in a partial response.
35941
+ # @param [String] quota_user
35942
+ # Available to use for quota purposes for server-side applications. Can be any
35943
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
35944
+ # @param [String] user_ip
35945
+ # Legacy name for parameter that has been superseded by `quotaUser`.
35946
+ # @param [Google::Apis::RequestOptions] options
35947
+ # Request-specific options
35948
+ #
35949
+ # @yield [result, err] Result & error if block supplied
35950
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
35951
+ # @yieldparam err [StandardError] error object if request failed
35952
+ #
35953
+ # @return [Google::Apis::ComputeAlpha::Operation]
35954
+ #
35955
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35956
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35957
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
35958
+ 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)
35959
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthAggregationPolicies', options)
35960
+ command.request_representation = Google::Apis::ComputeAlpha::HealthAggregationPolicy::Representation
35961
+ command.request_object = health_aggregation_policy_object
35962
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
35963
+ command.response_class = Google::Apis::ComputeAlpha::Operation
35964
+ command.params['project'] = project unless project.nil?
35965
+ command.params['region'] = region unless region.nil?
35966
+ command.query['requestId'] = request_id unless request_id.nil?
35967
+ command.query['fields'] = fields unless fields.nil?
35968
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
35969
+ command.query['userIp'] = user_ip unless user_ip.nil?
35970
+ execute_or_queue_command(command, &block)
35971
+ end
35972
+
35973
+ # Lists the HealthAggregationPolicies for a project in the given region.
35974
+ # @param [String] project
35975
+ # Project ID for this request.
35976
+ # @param [String] region
35977
+ # Name of the region scoping this request.
35324
35978
  # @param [String] filter
35325
35979
  # A filter expression that filters resources listed in the response. Most
35326
35980
  # Compute resources support two types of filter expressions: expressions that
@@ -35353,13 +36007,6 @@ module Google
35353
36007
  # instances that do not end with name "instance", you would use `name ne .*
35354
36008
  # instance`. You cannot combine constraints on multiple fields using regular
35355
36009
  # expressions.
35356
- # @param [Boolean] include_all_scopes
35357
- # Indicates whether every visible scope for each scope type (zone, region,
35358
- # global) should be included in the response. For new resource types added after
35359
- # this field, the flag has no effect as new resource types will always include
35360
- # every visible scope for each scope type in response. For resource types which
35361
- # predate this field, if this flag is omitted or false, only scopes of the scope
35362
- # types where the resource type is expected to be found will be included.
35363
36010
  # @param [Fixnum] max_results
35364
36011
  # The maximum number of results per page that should be returned. If the number
35365
36012
  # of available results is larger than `maxResults`, Compute Engine returns a `
@@ -35381,9 +36028,6 @@ module Google
35381
36028
  # failure. The default value is false. For example, when partial success
35382
36029
  # behavior is enabled, aggregatedList for a single zone scope either returns all
35383
36030
  # resources in the zone or no resources, with an error code.
35384
- # @param [Fixnum] service_project_number
35385
- # The Shared VPC service project id or service project number for which
35386
- # aggregated list request is invoked for subnetworks list-usable api.
35387
36031
  # @param [String] fields
35388
36032
  # Selector specifying which fields to include in a partial response.
35389
36033
  # @param [String] quota_user
@@ -35395,40 +36039,42 @@ module Google
35395
36039
  # Request-specific options
35396
36040
  #
35397
36041
  # @yield [result, err] Result & error if block supplied
35398
- # @yieldparam result [Google::Apis::ComputeAlpha::HealthCheckServiceAggregatedList] parsed result object
36042
+ # @yieldparam result [Google::Apis::ComputeAlpha::HealthAggregationPolicyList] parsed result object
35399
36043
  # @yieldparam err [StandardError] error object if request failed
35400
36044
  #
35401
- # @return [Google::Apis::ComputeAlpha::HealthCheckServiceAggregatedList]
36045
+ # @return [Google::Apis::ComputeAlpha::HealthAggregationPolicyList]
35402
36046
  #
35403
36047
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35404
36048
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35405
36049
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35406
- def aggregated_region_health_check_service_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)
35407
- command = make_simple_command(:get, 'projects/{project}/aggregated/healthCheckServices', options)
35408
- command.response_representation = Google::Apis::ComputeAlpha::HealthCheckServiceAggregatedList::Representation
35409
- command.response_class = Google::Apis::ComputeAlpha::HealthCheckServiceAggregatedList
36050
+ def list_region_health_aggregation_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)
36051
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthAggregationPolicies', options)
36052
+ command.response_representation = Google::Apis::ComputeAlpha::HealthAggregationPolicyList::Representation
36053
+ command.response_class = Google::Apis::ComputeAlpha::HealthAggregationPolicyList
35410
36054
  command.params['project'] = project unless project.nil?
36055
+ command.params['region'] = region unless region.nil?
35411
36056
  command.query['filter'] = filter unless filter.nil?
35412
- command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
35413
36057
  command.query['maxResults'] = max_results unless max_results.nil?
35414
36058
  command.query['orderBy'] = order_by unless order_by.nil?
35415
36059
  command.query['pageToken'] = page_token unless page_token.nil?
35416
36060
  command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
35417
- command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
35418
36061
  command.query['fields'] = fields unless fields.nil?
35419
36062
  command.query['quotaUser'] = quota_user unless quota_user.nil?
35420
36063
  command.query['userIp'] = user_ip unless user_ip.nil?
35421
36064
  execute_or_queue_command(command, &block)
35422
36065
  end
35423
36066
 
35424
- # Deletes the specified regional HealthCheckService.
36067
+ # Updates the specified regional HealthAggregationPolicy resource with the data
36068
+ # included in the request. This method supports PATCH semantics and uses the
36069
+ # JSON merge patch format and processing rules.
35425
36070
  # @param [String] project
35426
36071
  # Project ID for this request.
35427
36072
  # @param [String] region
35428
36073
  # Name of the region scoping this request.
35429
- # @param [String] health_check_service
35430
- # Name of the HealthCheckService to delete. The name must be 1-63 characters
35431
- # long, and comply with RFC1035.
36074
+ # @param [String] health_aggregation_policy
36075
+ # Name of the HealthAggregationPolicy to update. The name must be 1-63
36076
+ # characters long, and comply with RFC1035.
36077
+ # @param [Google::Apis::ComputeAlpha::HealthAggregationPolicy] health_aggregation_policy_object
35432
36078
  # @param [String] request_id
35433
36079
  # An optional request ID to identify requests. Specify a unique request ID so
35434
36080
  # that if you must retry your request, the server will know to ignore the
@@ -35458,13 +36104,15 @@ module Google
35458
36104
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35459
36105
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35460
36106
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35461
- def delete_region_health_check_service(project, region, health_check_service, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35462
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}', options)
36107
+ def patch_region_health_aggregation_policy(project, region, health_aggregation_policy, health_aggregation_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36108
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/healthAggregationPolicies/{healthAggregationPolicy}', options)
36109
+ command.request_representation = Google::Apis::ComputeAlpha::HealthAggregationPolicy::Representation
36110
+ command.request_object = health_aggregation_policy_object
35463
36111
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
35464
36112
  command.response_class = Google::Apis::ComputeAlpha::Operation
35465
36113
  command.params['project'] = project unless project.nil?
35466
36114
  command.params['region'] = region unless region.nil?
35467
- command.params['healthCheckService'] = health_check_service unless health_check_service.nil?
36115
+ command.params['healthAggregationPolicy'] = health_aggregation_policy unless health_aggregation_policy.nil?
35468
36116
  command.query['requestId'] = request_id unless request_id.nil?
35469
36117
  command.query['fields'] = fields unless fields.nil?
35470
36118
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -35472,63 +36120,14 @@ module Google
35472
36120
  execute_or_queue_command(command, &block)
35473
36121
  end
35474
36122
 
35475
- # Returns the specified regional HealthCheckService resource.
35476
- # @param [String] project
35477
- # Project ID for this request.
35478
- # @param [String] region
35479
- # Name of the region scoping this request.
35480
- # @param [String] health_check_service
35481
- # Name of the HealthCheckService to update. The name must be 1-63 characters
35482
- # long, and comply with RFC1035.
35483
- # @param [String] fields
35484
- # Selector specifying which fields to include in a partial response.
35485
- # @param [String] quota_user
35486
- # Available to use for quota purposes for server-side applications. Can be any
35487
- # arbitrary string assigned to a user, but should not exceed 40 characters.
35488
- # @param [String] user_ip
35489
- # Legacy name for parameter that has been superseded by `quotaUser`.
35490
- # @param [Google::Apis::RequestOptions] options
35491
- # Request-specific options
35492
- #
35493
- # @yield [result, err] Result & error if block supplied
35494
- # @yieldparam result [Google::Apis::ComputeAlpha::HealthCheckService] parsed result object
35495
- # @yieldparam err [StandardError] error object if request failed
35496
- #
35497
- # @return [Google::Apis::ComputeAlpha::HealthCheckService]
35498
- #
35499
- # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35500
- # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35501
- # @raise [Google::Apis::AuthorizationError] Authorization is required
35502
- def get_region_health_check_service(project, region, health_check_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35503
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}', options)
35504
- command.response_representation = Google::Apis::ComputeAlpha::HealthCheckService::Representation
35505
- command.response_class = Google::Apis::ComputeAlpha::HealthCheckService
35506
- command.params['project'] = project unless project.nil?
35507
- command.params['region'] = region unless region.nil?
35508
- command.params['healthCheckService'] = health_check_service unless health_check_service.nil?
35509
- command.query['fields'] = fields unless fields.nil?
35510
- command.query['quotaUser'] = quota_user unless quota_user.nil?
35511
- command.query['userIp'] = user_ip unless user_ip.nil?
35512
- execute_or_queue_command(command, &block)
35513
- end
35514
-
35515
- # Creates a regional HealthCheckService resource in the specified project and
35516
- # region using the data included in the request.
36123
+ # Returns permissions that a caller has on the specified resource.
35517
36124
  # @param [String] project
35518
36125
  # Project ID for this request.
35519
36126
  # @param [String] region
35520
- # Name of the region scoping this request.
35521
- # @param [Google::Apis::ComputeAlpha::HealthCheckService] health_check_service_object
35522
- # @param [String] request_id
35523
- # An optional request ID to identify requests. Specify a unique request ID so
35524
- # that if you must retry your request, the server will know to ignore the
35525
- # request if it has already been completed. For example, consider a situation
35526
- # where you make an initial request and the request times out. If you make the
35527
- # request again with the same request ID, the server can check if original
35528
- # operation with the same request ID was received, and if so, will ignore the
35529
- # second request. This prevents clients from accidentally creating duplicate
35530
- # commitments. The request ID must be a valid UUID with the exception that zero
35531
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
36127
+ # The name of the region for this request.
36128
+ # @param [String] resource
36129
+ # Name or id of the resource for this request.
36130
+ # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
35532
36131
  # @param [String] fields
35533
36132
  # Selector specifying which fields to include in a partial response.
35534
36133
  # @param [String] quota_user
@@ -35540,35 +36139,34 @@ module Google
35540
36139
  # Request-specific options
35541
36140
  #
35542
36141
  # @yield [result, err] Result & error if block supplied
35543
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
36142
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
35544
36143
  # @yieldparam err [StandardError] error object if request failed
35545
36144
  #
35546
- # @return [Google::Apis::ComputeAlpha::Operation]
36145
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
35547
36146
  #
35548
36147
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35549
36148
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35550
36149
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35551
- def insert_region_health_check_service(project, region, health_check_service_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35552
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthCheckServices', options)
35553
- command.request_representation = Google::Apis::ComputeAlpha::HealthCheckService::Representation
35554
- command.request_object = health_check_service_object
35555
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
35556
- command.response_class = Google::Apis::ComputeAlpha::Operation
36150
+ def test_region_health_aggregation_policy_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36151
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthAggregationPolicies/{resource}/testIamPermissions', options)
36152
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
36153
+ command.request_object = test_permissions_request_object
36154
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
36155
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
35557
36156
  command.params['project'] = project unless project.nil?
35558
36157
  command.params['region'] = region unless region.nil?
35559
- command.query['requestId'] = request_id unless request_id.nil?
36158
+ command.params['resource'] = resource unless resource.nil?
35560
36159
  command.query['fields'] = fields unless fields.nil?
35561
36160
  command.query['quotaUser'] = quota_user unless quota_user.nil?
35562
36161
  command.query['userIp'] = user_ip unless user_ip.nil?
35563
36162
  execute_or_queue_command(command, &block)
35564
36163
  end
35565
36164
 
35566
- # Lists all the HealthCheckService resources that have been configured for the
35567
- # specified project in the given region.
36165
+ # Retrieves the list of all HealthCheckService resources, regional and global,
36166
+ # available to the specified project. To prevent failure, Google recommends that
36167
+ # you set the `returnPartialSuccess` parameter to `true`.
35568
36168
  # @param [String] project
35569
- # Project ID for this request.
35570
- # @param [String] region
35571
- # Name of the region scoping this request.
36169
+ # Name of the project scoping this request.
35572
36170
  # @param [String] filter
35573
36171
  # A filter expression that filters resources listed in the response. Most
35574
36172
  # Compute resources support two types of filter expressions: expressions that
@@ -35601,6 +36199,13 @@ module Google
35601
36199
  # instances that do not end with name "instance", you would use `name ne .*
35602
36200
  # instance`. You cannot combine constraints on multiple fields using regular
35603
36201
  # expressions.
36202
+ # @param [Boolean] include_all_scopes
36203
+ # Indicates whether every visible scope for each scope type (zone, region,
36204
+ # global) should be included in the response. For new resource types added after
36205
+ # this field, the flag has no effect as new resource types will always include
36206
+ # every visible scope for each scope type in response. For resource types which
36207
+ # predate this field, if this flag is omitted or false, only scopes of the scope
36208
+ # types where the resource type is expected to be found will be included.
35604
36209
  # @param [Fixnum] max_results
35605
36210
  # The maximum number of results per page that should be returned. If the number
35606
36211
  # of available results is larger than `maxResults`, Compute Engine returns a `
@@ -35622,6 +36227,9 @@ module Google
35622
36227
  # failure. The default value is false. For example, when partial success
35623
36228
  # behavior is enabled, aggregatedList for a single zone scope either returns all
35624
36229
  # resources in the zone or no resources, with an error code.
36230
+ # @param [Fixnum] service_project_number
36231
+ # The Shared VPC service project id or service project number for which
36232
+ # aggregated list request is invoked for subnetworks list-usable api.
35625
36233
  # @param [String] fields
35626
36234
  # Selector specifying which fields to include in a partial response.
35627
36235
  # @param [String] quota_user
@@ -35633,42 +36241,40 @@ module Google
35633
36241
  # Request-specific options
35634
36242
  #
35635
36243
  # @yield [result, err] Result & error if block supplied
35636
- # @yieldparam result [Google::Apis::ComputeAlpha::HealthCheckServicesList] parsed result object
36244
+ # @yieldparam result [Google::Apis::ComputeAlpha::HealthCheckServiceAggregatedList] parsed result object
35637
36245
  # @yieldparam err [StandardError] error object if request failed
35638
36246
  #
35639
- # @return [Google::Apis::ComputeAlpha::HealthCheckServicesList]
36247
+ # @return [Google::Apis::ComputeAlpha::HealthCheckServiceAggregatedList]
35640
36248
  #
35641
36249
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35642
36250
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35643
36251
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35644
- def list_region_health_check_services(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)
35645
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthCheckServices', options)
35646
- command.response_representation = Google::Apis::ComputeAlpha::HealthCheckServicesList::Representation
35647
- command.response_class = Google::Apis::ComputeAlpha::HealthCheckServicesList
36252
+ def aggregated_region_health_check_service_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)
36253
+ command = make_simple_command(:get, 'projects/{project}/aggregated/healthCheckServices', options)
36254
+ command.response_representation = Google::Apis::ComputeAlpha::HealthCheckServiceAggregatedList::Representation
36255
+ command.response_class = Google::Apis::ComputeAlpha::HealthCheckServiceAggregatedList
35648
36256
  command.params['project'] = project unless project.nil?
35649
- command.params['region'] = region unless region.nil?
35650
36257
  command.query['filter'] = filter unless filter.nil?
36258
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
35651
36259
  command.query['maxResults'] = max_results unless max_results.nil?
35652
36260
  command.query['orderBy'] = order_by unless order_by.nil?
35653
36261
  command.query['pageToken'] = page_token unless page_token.nil?
35654
36262
  command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
36263
+ command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
35655
36264
  command.query['fields'] = fields unless fields.nil?
35656
36265
  command.query['quotaUser'] = quota_user unless quota_user.nil?
35657
36266
  command.query['userIp'] = user_ip unless user_ip.nil?
35658
36267
  execute_or_queue_command(command, &block)
35659
36268
  end
35660
36269
 
35661
- # Updates the specified regional HealthCheckService resource with the data
35662
- # included in the request. This method supports PATCH semantics and uses the
35663
- # JSON merge patch format and processing rules.
36270
+ # Deletes the specified regional HealthCheckService.
35664
36271
  # @param [String] project
35665
36272
  # Project ID for this request.
35666
36273
  # @param [String] region
35667
36274
  # Name of the region scoping this request.
35668
36275
  # @param [String] health_check_service
35669
- # Name of the HealthCheckService to update. The name must be 1-63 characters
36276
+ # Name of the HealthCheckService to delete. The name must be 1-63 characters
35670
36277
  # long, and comply with RFC1035.
35671
- # @param [Google::Apis::ComputeAlpha::HealthCheckService] health_check_service_object
35672
36278
  # @param [String] request_id
35673
36279
  # An optional request ID to identify requests. Specify a unique request ID so
35674
36280
  # that if you must retry your request, the server will know to ignore the
@@ -35698,10 +36304,8 @@ module Google
35698
36304
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35699
36305
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35700
36306
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35701
- def patch_region_health_check_service(project, region, health_check_service, health_check_service_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35702
- command = make_simple_command(:patch, 'projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}', options)
35703
- command.request_representation = Google::Apis::ComputeAlpha::HealthCheckService::Representation
35704
- command.request_object = health_check_service_object
36307
+ def delete_region_health_check_service(project, region, health_check_service, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36308
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}', options)
35705
36309
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
35706
36310
  command.response_class = Google::Apis::ComputeAlpha::Operation
35707
36311
  command.params['project'] = project unless project.nil?
@@ -35714,14 +36318,14 @@ module Google
35714
36318
  execute_or_queue_command(command, &block)
35715
36319
  end
35716
36320
 
35717
- # Returns permissions that a caller has on the specified resource.
36321
+ # Returns the specified regional HealthCheckService resource.
35718
36322
  # @param [String] project
35719
36323
  # Project ID for this request.
35720
36324
  # @param [String] region
35721
- # The name of the region for this request.
35722
- # @param [String] resource
35723
- # Name or id of the resource for this request.
35724
- # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
36325
+ # Name of the region scoping this request.
36326
+ # @param [String] health_check_service
36327
+ # Name of the HealthCheckService to update. The name must be 1-63 characters
36328
+ # long, and comply with RFC1035.
35725
36329
  # @param [String] fields
35726
36330
  # Selector specifying which fields to include in a partial response.
35727
36331
  # @param [String] quota_user
@@ -35733,36 +36337,34 @@ module Google
35733
36337
  # Request-specific options
35734
36338
  #
35735
36339
  # @yield [result, err] Result & error if block supplied
35736
- # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
36340
+ # @yieldparam result [Google::Apis::ComputeAlpha::HealthCheckService] parsed result object
35737
36341
  # @yieldparam err [StandardError] error object if request failed
35738
36342
  #
35739
- # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
36343
+ # @return [Google::Apis::ComputeAlpha::HealthCheckService]
35740
36344
  #
35741
36345
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35742
36346
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35743
36347
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35744
- def test_region_health_check_service_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35745
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthCheckServices/{resource}/testIamPermissions', options)
35746
- command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
35747
- command.request_object = test_permissions_request_object
35748
- command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
35749
- command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
36348
+ def get_region_health_check_service(project, region, health_check_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36349
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}', options)
36350
+ command.response_representation = Google::Apis::ComputeAlpha::HealthCheckService::Representation
36351
+ command.response_class = Google::Apis::ComputeAlpha::HealthCheckService
35750
36352
  command.params['project'] = project unless project.nil?
35751
36353
  command.params['region'] = region unless region.nil?
35752
- command.params['resource'] = resource unless resource.nil?
36354
+ command.params['healthCheckService'] = health_check_service unless health_check_service.nil?
35753
36355
  command.query['fields'] = fields unless fields.nil?
35754
36356
  command.query['quotaUser'] = quota_user unless quota_user.nil?
35755
36357
  command.query['userIp'] = user_ip unless user_ip.nil?
35756
36358
  execute_or_queue_command(command, &block)
35757
36359
  end
35758
36360
 
35759
- # Deletes the specified HealthCheck resource.
36361
+ # Creates a regional HealthCheckService resource in the specified project and
36362
+ # region using the data included in the request.
35760
36363
  # @param [String] project
35761
36364
  # Project ID for this request.
35762
36365
  # @param [String] region
35763
36366
  # Name of the region scoping this request.
35764
- # @param [String] health_check
35765
- # Name of the HealthCheck resource to delete.
36367
+ # @param [Google::Apis::ComputeAlpha::HealthCheckService] health_check_service_object
35766
36368
  # @param [String] request_id
35767
36369
  # An optional request ID to identify requests. Specify a unique request ID so
35768
36370
  # that if you must retry your request, the server will know to ignore the
@@ -35792,13 +36394,14 @@ module Google
35792
36394
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35793
36395
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35794
36396
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35795
- def delete_region_health_check(project, region, health_check, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35796
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options)
36397
+ def insert_region_health_check_service(project, region, health_check_service_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36398
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthCheckServices', options)
36399
+ command.request_representation = Google::Apis::ComputeAlpha::HealthCheckService::Representation
36400
+ command.request_object = health_check_service_object
35797
36401
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
35798
36402
  command.response_class = Google::Apis::ComputeAlpha::Operation
35799
36403
  command.params['project'] = project unless project.nil?
35800
36404
  command.params['region'] = region unless region.nil?
35801
- command.params['healthCheck'] = health_check unless health_check.nil?
35802
36405
  command.query['requestId'] = request_id unless request_id.nil?
35803
36406
  command.query['fields'] = fields unless fields.nil?
35804
36407
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -35806,13 +36409,65 @@ module Google
35806
36409
  execute_or_queue_command(command, &block)
35807
36410
  end
35808
36411
 
35809
- # Returns the specified HealthCheck resource.
36412
+ # Lists all the HealthCheckService resources that have been configured for the
36413
+ # specified project in the given region.
35810
36414
  # @param [String] project
35811
36415
  # Project ID for this request.
35812
36416
  # @param [String] region
35813
36417
  # Name of the region scoping this request.
35814
- # @param [String] health_check
35815
- # Name of the HealthCheck resource to return.
36418
+ # @param [String] filter
36419
+ # A filter expression that filters resources listed in the response. Most
36420
+ # Compute resources support two types of filter expressions: expressions that
36421
+ # support regular expressions and expressions that follow API improvement
36422
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
36423
+ # request. If you want to use AIP-160, your expression must specify the field
36424
+ # name, an operator, and the value that you want to use for filtering. The value
36425
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
36426
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
36427
+ # Engine instances, you can exclude instances named `example-instance` by
36428
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
36429
+ # whether a key has been defined. For example, to find all objects with `owner`
36430
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
36431
+ # example, you could specify `scheduling.automaticRestart = false` to include
36432
+ # instances only if they are not scheduled for automatic restarts. You can use
36433
+ # filtering on nested fields to filter based on resource labels. To filter on
36434
+ # multiple expressions, provide each separate expression within parentheses. For
36435
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
36436
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
36437
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
36438
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
36439
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
36440
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
36441
+ # un-parenthesized expression with or without quotes or against multiple
36442
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
36443
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
36444
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
36445
+ # interpreted as a regular expression using Google RE2 library syntax. The
36446
+ # literal value must match the entire field. For example, to filter for
36447
+ # instances that do not end with name "instance", you would use `name ne .*
36448
+ # instance`. You cannot combine constraints on multiple fields using regular
36449
+ # expressions.
36450
+ # @param [Fixnum] max_results
36451
+ # The maximum number of results per page that should be returned. If the number
36452
+ # of available results is larger than `maxResults`, Compute Engine returns a `
36453
+ # nextPageToken` that can be used to get the next page of results in subsequent
36454
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
36455
+ # @param [String] order_by
36456
+ # Sorts list results by a certain order. By default, results are returned in
36457
+ # alphanumerical order based on the resource name. You can also sort results in
36458
+ # descending order based on the creation timestamp using `orderBy="
36459
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
36460
+ # field in reverse chronological order (newest result first). Use this to sort
36461
+ # resources like operations so that the newest operation is returned first.
36462
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
36463
+ # @param [String] page_token
36464
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
36465
+ # by a previous list request to get the next page of results.
36466
+ # @param [Boolean] return_partial_success
36467
+ # Opt-in for partial success behavior which provides partial results in case of
36468
+ # failure. The default value is false. For example, when partial success
36469
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
36470
+ # resources in the zone or no resources, with an error code.
35816
36471
  # @param [String] fields
35817
36472
  # Selector specifying which fields to include in a partial response.
35818
36473
  # @param [String] quota_user
@@ -35824,34 +36479,42 @@ module Google
35824
36479
  # Request-specific options
35825
36480
  #
35826
36481
  # @yield [result, err] Result & error if block supplied
35827
- # @yieldparam result [Google::Apis::ComputeAlpha::HealthCheck] parsed result object
36482
+ # @yieldparam result [Google::Apis::ComputeAlpha::HealthCheckServicesList] parsed result object
35828
36483
  # @yieldparam err [StandardError] error object if request failed
35829
36484
  #
35830
- # @return [Google::Apis::ComputeAlpha::HealthCheck]
36485
+ # @return [Google::Apis::ComputeAlpha::HealthCheckServicesList]
35831
36486
  #
35832
36487
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35833
36488
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35834
36489
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35835
- def get_region_health_check(project, region, health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35836
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options)
35837
- command.response_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation
35838
- command.response_class = Google::Apis::ComputeAlpha::HealthCheck
36490
+ def list_region_health_check_services(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)
36491
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthCheckServices', options)
36492
+ command.response_representation = Google::Apis::ComputeAlpha::HealthCheckServicesList::Representation
36493
+ command.response_class = Google::Apis::ComputeAlpha::HealthCheckServicesList
35839
36494
  command.params['project'] = project unless project.nil?
35840
36495
  command.params['region'] = region unless region.nil?
35841
- command.params['healthCheck'] = health_check unless health_check.nil?
36496
+ command.query['filter'] = filter unless filter.nil?
36497
+ command.query['maxResults'] = max_results unless max_results.nil?
36498
+ command.query['orderBy'] = order_by unless order_by.nil?
36499
+ command.query['pageToken'] = page_token unless page_token.nil?
36500
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
35842
36501
  command.query['fields'] = fields unless fields.nil?
35843
36502
  command.query['quotaUser'] = quota_user unless quota_user.nil?
35844
36503
  command.query['userIp'] = user_ip unless user_ip.nil?
35845
36504
  execute_or_queue_command(command, &block)
35846
36505
  end
35847
36506
 
35848
- # Creates a HealthCheck resource in the specified project using the data
35849
- # included in the request.
36507
+ # Updates the specified regional HealthCheckService resource with the data
36508
+ # included in the request. This method supports PATCH semantics and uses the
36509
+ # JSON merge patch format and processing rules.
35850
36510
  # @param [String] project
35851
36511
  # Project ID for this request.
35852
36512
  # @param [String] region
35853
36513
  # Name of the region scoping this request.
35854
- # @param [Google::Apis::ComputeAlpha::HealthCheck] health_check_object
36514
+ # @param [String] health_check_service
36515
+ # Name of the HealthCheckService to update. The name must be 1-63 characters
36516
+ # long, and comply with RFC1035.
36517
+ # @param [Google::Apis::ComputeAlpha::HealthCheckService] health_check_service_object
35855
36518
  # @param [String] request_id
35856
36519
  # An optional request ID to identify requests. Specify a unique request ID so
35857
36520
  # that if you must retry your request, the server will know to ignore the
@@ -35881,14 +36544,15 @@ module Google
35881
36544
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35882
36545
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35883
36546
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35884
- def insert_region_health_check(project, region, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35885
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthChecks', options)
35886
- command.request_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation
35887
- command.request_object = health_check_object
36547
+ def patch_region_health_check_service(project, region, health_check_service, health_check_service_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36548
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/healthCheckServices/{healthCheckService}', options)
36549
+ command.request_representation = Google::Apis::ComputeAlpha::HealthCheckService::Representation
36550
+ command.request_object = health_check_service_object
35888
36551
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
35889
36552
  command.response_class = Google::Apis::ComputeAlpha::Operation
35890
36553
  command.params['project'] = project unless project.nil?
35891
36554
  command.params['region'] = region unless region.nil?
36555
+ command.params['healthCheckService'] = health_check_service unless health_check_service.nil?
35892
36556
  command.query['requestId'] = request_id unless request_id.nil?
35893
36557
  command.query['fields'] = fields unless fields.nil?
35894
36558
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -35896,64 +36560,14 @@ module Google
35896
36560
  execute_or_queue_command(command, &block)
35897
36561
  end
35898
36562
 
35899
- # Retrieves the list of HealthCheck resources available to the specified project.
36563
+ # Returns permissions that a caller has on the specified resource.
35900
36564
  # @param [String] project
35901
36565
  # Project ID for this request.
35902
36566
  # @param [String] region
35903
- # Name of the region scoping this request.
35904
- # @param [String] filter
35905
- # A filter expression that filters resources listed in the response. Most
35906
- # Compute resources support two types of filter expressions: expressions that
35907
- # support regular expressions and expressions that follow API improvement
35908
- # proposal AIP-160. These two types of filter expressions cannot be mixed in one
35909
- # request. If you want to use AIP-160, your expression must specify the field
35910
- # name, an operator, and the value that you want to use for filtering. The value
35911
- # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
35912
- # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
35913
- # Engine instances, you can exclude instances named `example-instance` by
35914
- # specifying `name != example-instance`. The `:*` comparison can be used to test
35915
- # whether a key has been defined. For example, to find all objects with `owner`
35916
- # label use: ``` labels.owner:* ``` You can also filter nested fields. For
35917
- # example, you could specify `scheduling.automaticRestart = false` to include
35918
- # instances only if they are not scheduled for automatic restarts. You can use
35919
- # filtering on nested fields to filter based on resource labels. To filter on
35920
- # multiple expressions, provide each separate expression within parentheses. For
35921
- # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
35922
- # Skylake") ``` By default, each expression is an `AND` expression. However, you
35923
- # can include `AND` and `OR` expressions explicitly. For example: ``` (
35924
- # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
35925
- # scheduling.automaticRestart = true) ``` If you want to use a regular
35926
- # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
35927
- # un-parenthesized expression with or without quotes or against multiple
35928
- # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
35929
- # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
35930
- # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
35931
- # interpreted as a regular expression using Google RE2 library syntax. The
35932
- # literal value must match the entire field. For example, to filter for
35933
- # instances that do not end with name "instance", you would use `name ne .*
35934
- # instance`. You cannot combine constraints on multiple fields using regular
35935
- # expressions.
35936
- # @param [Fixnum] max_results
35937
- # The maximum number of results per page that should be returned. If the number
35938
- # of available results is larger than `maxResults`, Compute Engine returns a `
35939
- # nextPageToken` that can be used to get the next page of results in subsequent
35940
- # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
35941
- # @param [String] order_by
35942
- # Sorts list results by a certain order. By default, results are returned in
35943
- # alphanumerical order based on the resource name. You can also sort results in
35944
- # descending order based on the creation timestamp using `orderBy="
35945
- # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
35946
- # field in reverse chronological order (newest result first). Use this to sort
35947
- # resources like operations so that the newest operation is returned first.
35948
- # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
35949
- # @param [String] page_token
35950
- # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
35951
- # by a previous list request to get the next page of results.
35952
- # @param [Boolean] return_partial_success
35953
- # Opt-in for partial success behavior which provides partial results in case of
35954
- # failure. The default value is false. For example, when partial success
35955
- # behavior is enabled, aggregatedList for a single zone scope either returns all
35956
- # resources in the zone or no resources, with an error code.
36567
+ # The name of the region for this request.
36568
+ # @param [String] resource
36569
+ # Name or id of the resource for this request.
36570
+ # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
35957
36571
  # @param [String] fields
35958
36572
  # Selector specifying which fields to include in a partial response.
35959
36573
  # @param [String] quota_user
@@ -35965,41 +36579,36 @@ module Google
35965
36579
  # Request-specific options
35966
36580
  #
35967
36581
  # @yield [result, err] Result & error if block supplied
35968
- # @yieldparam result [Google::Apis::ComputeAlpha::HealthCheckList] parsed result object
36582
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
35969
36583
  # @yieldparam err [StandardError] error object if request failed
35970
36584
  #
35971
- # @return [Google::Apis::ComputeAlpha::HealthCheckList]
36585
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
35972
36586
  #
35973
36587
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35974
36588
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35975
36589
  # @raise [Google::Apis::AuthorizationError] Authorization is required
35976
- def list_region_health_checks(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)
35977
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthChecks', options)
35978
- command.response_representation = Google::Apis::ComputeAlpha::HealthCheckList::Representation
35979
- command.response_class = Google::Apis::ComputeAlpha::HealthCheckList
36590
+ def test_region_health_check_service_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36591
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthCheckServices/{resource}/testIamPermissions', options)
36592
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
36593
+ command.request_object = test_permissions_request_object
36594
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
36595
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
35980
36596
  command.params['project'] = project unless project.nil?
35981
36597
  command.params['region'] = region unless region.nil?
35982
- command.query['filter'] = filter unless filter.nil?
35983
- command.query['maxResults'] = max_results unless max_results.nil?
35984
- command.query['orderBy'] = order_by unless order_by.nil?
35985
- command.query['pageToken'] = page_token unless page_token.nil?
35986
- command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
36598
+ command.params['resource'] = resource unless resource.nil?
35987
36599
  command.query['fields'] = fields unless fields.nil?
35988
36600
  command.query['quotaUser'] = quota_user unless quota_user.nil?
35989
36601
  command.query['userIp'] = user_ip unless user_ip.nil?
35990
36602
  execute_or_queue_command(command, &block)
35991
36603
  end
35992
36604
 
35993
- # Updates a HealthCheck resource in the specified project using the data
35994
- # included in the request. This method supports PATCH semantics and uses the
35995
- # JSON merge patch format and processing rules.
36605
+ # Deletes the specified HealthCheck resource.
35996
36606
  # @param [String] project
35997
36607
  # Project ID for this request.
35998
36608
  # @param [String] region
35999
36609
  # Name of the region scoping this request.
36000
36610
  # @param [String] health_check
36001
- # Name of the HealthCheck resource to patch.
36002
- # @param [Google::Apis::ComputeAlpha::HealthCheck] health_check_object
36611
+ # Name of the HealthCheck resource to delete.
36003
36612
  # @param [String] request_id
36004
36613
  # An optional request ID to identify requests. Specify a unique request ID so
36005
36614
  # that if you must retry your request, the server will know to ignore the
@@ -36029,10 +36638,8 @@ module Google
36029
36638
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36030
36639
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36031
36640
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36032
- def patch_region_health_check(project, region, health_check, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36033
- command = make_simple_command(:patch, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options)
36034
- command.request_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation
36035
- command.request_object = health_check_object
36641
+ def delete_region_health_check(project, region, health_check, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36642
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options)
36036
36643
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
36037
36644
  command.response_class = Google::Apis::ComputeAlpha::Operation
36038
36645
  command.params['project'] = project unless project.nil?
@@ -36045,14 +36652,13 @@ module Google
36045
36652
  execute_or_queue_command(command, &block)
36046
36653
  end
36047
36654
 
36048
- # Returns permissions that a caller has on the specified resource.
36655
+ # Returns the specified HealthCheck resource.
36049
36656
  # @param [String] project
36050
36657
  # Project ID for this request.
36051
36658
  # @param [String] region
36052
- # The name of the region for this request.
36053
- # @param [String] resource
36054
- # Name or id of the resource for this request.
36055
- # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
36659
+ # Name of the region scoping this request.
36660
+ # @param [String] health_check
36661
+ # Name of the HealthCheck resource to return.
36056
36662
  # @param [String] fields
36057
36663
  # Selector specifying which fields to include in a partial response.
36058
36664
  # @param [String] quota_user
@@ -36064,37 +36670,33 @@ module Google
36064
36670
  # Request-specific options
36065
36671
  #
36066
36672
  # @yield [result, err] Result & error if block supplied
36067
- # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
36673
+ # @yieldparam result [Google::Apis::ComputeAlpha::HealthCheck] parsed result object
36068
36674
  # @yieldparam err [StandardError] error object if request failed
36069
36675
  #
36070
- # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
36676
+ # @return [Google::Apis::ComputeAlpha::HealthCheck]
36071
36677
  #
36072
36678
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36073
36679
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36074
36680
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36075
- def test_region_health_check_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36076
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthChecks/{resource}/testIamPermissions', options)
36077
- command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
36078
- command.request_object = test_permissions_request_object
36079
- command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
36080
- command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
36681
+ def get_region_health_check(project, region, health_check, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36682
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options)
36683
+ command.response_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation
36684
+ command.response_class = Google::Apis::ComputeAlpha::HealthCheck
36081
36685
  command.params['project'] = project unless project.nil?
36082
36686
  command.params['region'] = region unless region.nil?
36083
- command.params['resource'] = resource unless resource.nil?
36687
+ command.params['healthCheck'] = health_check unless health_check.nil?
36084
36688
  command.query['fields'] = fields unless fields.nil?
36085
36689
  command.query['quotaUser'] = quota_user unless quota_user.nil?
36086
36690
  command.query['userIp'] = user_ip unless user_ip.nil?
36087
36691
  execute_or_queue_command(command, &block)
36088
36692
  end
36089
36693
 
36090
- # Updates a HealthCheck resource in the specified project using the data
36694
+ # Creates a HealthCheck resource in the specified project using the data
36091
36695
  # included in the request.
36092
36696
  # @param [String] project
36093
36697
  # Project ID for this request.
36094
36698
  # @param [String] region
36095
36699
  # Name of the region scoping this request.
36096
- # @param [String] health_check
36097
- # Name of the HealthCheck resource to update.
36098
36700
  # @param [Google::Apis::ComputeAlpha::HealthCheck] health_check_object
36099
36701
  # @param [String] request_id
36100
36702
  # An optional request ID to identify requests. Specify a unique request ID so
@@ -36125,15 +36727,14 @@ module Google
36125
36727
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36126
36728
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36127
36729
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36128
- def update_region_health_check(project, region, health_check, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36129
- command = make_simple_command(:put, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options)
36730
+ def insert_region_health_check(project, region, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36731
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthChecks', options)
36130
36732
  command.request_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation
36131
36733
  command.request_object = health_check_object
36132
36734
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
36133
36735
  command.response_class = Google::Apis::ComputeAlpha::Operation
36134
36736
  command.params['project'] = project unless project.nil?
36135
36737
  command.params['region'] = region unless region.nil?
36136
- command.params['healthCheck'] = health_check unless health_check.nil?
36137
36738
  command.query['requestId'] = request_id unless request_id.nil?
36138
36739
  command.query['fields'] = fields unless fields.nil?
36139
36740
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -36141,11 +36742,11 @@ module Google
36141
36742
  execute_or_queue_command(command, &block)
36142
36743
  end
36143
36744
 
36144
- # Retrieves the list of all HealthSource resources (all regional) available to
36145
- # the specified project. To prevent failure, Google recommends that you set the `
36146
- # returnPartialSuccess` parameter to `true`.
36745
+ # Retrieves the list of HealthCheck resources available to the specified project.
36147
36746
  # @param [String] project
36148
- # Name of the project scoping this request.
36747
+ # Project ID for this request.
36748
+ # @param [String] region
36749
+ # Name of the region scoping this request.
36149
36750
  # @param [String] filter
36150
36751
  # A filter expression that filters resources listed in the response. Most
36151
36752
  # Compute resources support two types of filter expressions: expressions that
@@ -36178,13 +36779,6 @@ module Google
36178
36779
  # instances that do not end with name "instance", you would use `name ne .*
36179
36780
  # instance`. You cannot combine constraints on multiple fields using regular
36180
36781
  # expressions.
36181
- # @param [Boolean] include_all_scopes
36182
- # Indicates whether every visible scope for each scope type (zone, region,
36183
- # global) should be included in the response. For new resource types added after
36184
- # this field, the flag has no effect as new resource types will always include
36185
- # every visible scope for each scope type in response. For resource types which
36186
- # predate this field, if this flag is omitted or false, only scopes of the scope
36187
- # types where the resource type is expected to be found will be included.
36188
36782
  # @param [Fixnum] max_results
36189
36783
  # The maximum number of results per page that should be returned. If the number
36190
36784
  # of available results is larger than `maxResults`, Compute Engine returns a `
@@ -36206,9 +36800,6 @@ module Google
36206
36800
  # failure. The default value is false. For example, when partial success
36207
36801
  # behavior is enabled, aggregatedList for a single zone scope either returns all
36208
36802
  # resources in the zone or no resources, with an error code.
36209
- # @param [Fixnum] service_project_number
36210
- # The Shared VPC service project id or service project number for which
36211
- # aggregated list request is invoked for subnetworks list-usable api.
36212
36803
  # @param [String] fields
36213
36804
  # Selector specifying which fields to include in a partial response.
36214
36805
  # @param [String] quota_user
@@ -36220,39 +36811,41 @@ module Google
36220
36811
  # Request-specific options
36221
36812
  #
36222
36813
  # @yield [result, err] Result & error if block supplied
36223
- # @yieldparam result [Google::Apis::ComputeAlpha::HealthSourceAggregatedList] parsed result object
36814
+ # @yieldparam result [Google::Apis::ComputeAlpha::HealthCheckList] parsed result object
36224
36815
  # @yieldparam err [StandardError] error object if request failed
36225
36816
  #
36226
- # @return [Google::Apis::ComputeAlpha::HealthSourceAggregatedList]
36817
+ # @return [Google::Apis::ComputeAlpha::HealthCheckList]
36227
36818
  #
36228
36819
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36229
36820
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36230
36821
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36231
- def aggregated_region_health_source_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)
36232
- command = make_simple_command(:get, 'projects/{project}/aggregated/healthSources', options)
36233
- command.response_representation = Google::Apis::ComputeAlpha::HealthSourceAggregatedList::Representation
36234
- command.response_class = Google::Apis::ComputeAlpha::HealthSourceAggregatedList
36822
+ def list_region_health_checks(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)
36823
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthChecks', options)
36824
+ command.response_representation = Google::Apis::ComputeAlpha::HealthCheckList::Representation
36825
+ command.response_class = Google::Apis::ComputeAlpha::HealthCheckList
36235
36826
  command.params['project'] = project unless project.nil?
36827
+ command.params['region'] = region unless region.nil?
36236
36828
  command.query['filter'] = filter unless filter.nil?
36237
- command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
36238
36829
  command.query['maxResults'] = max_results unless max_results.nil?
36239
36830
  command.query['orderBy'] = order_by unless order_by.nil?
36240
36831
  command.query['pageToken'] = page_token unless page_token.nil?
36241
36832
  command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
36242
- command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
36243
36833
  command.query['fields'] = fields unless fields.nil?
36244
36834
  command.query['quotaUser'] = quota_user unless quota_user.nil?
36245
36835
  command.query['userIp'] = user_ip unless user_ip.nil?
36246
36836
  execute_or_queue_command(command, &block)
36247
36837
  end
36248
36838
 
36249
- # Deletes the specified HealthSource in the given region
36839
+ # Updates a HealthCheck resource in the specified project using the data
36840
+ # included in the request. This method supports PATCH semantics and uses the
36841
+ # JSON merge patch format and processing rules.
36250
36842
  # @param [String] project
36251
36843
  # Project ID for this request.
36252
36844
  # @param [String] region
36253
36845
  # Name of the region scoping this request.
36254
- # @param [String] health_source
36255
- # Name of the HealthSource resource to delete.
36846
+ # @param [String] health_check
36847
+ # Name of the HealthCheck resource to patch.
36848
+ # @param [Google::Apis::ComputeAlpha::HealthCheck] health_check_object
36256
36849
  # @param [String] request_id
36257
36850
  # An optional request ID to identify requests. Specify a unique request ID so
36258
36851
  # that if you must retry your request, the server will know to ignore the
@@ -36282,13 +36875,15 @@ module Google
36282
36875
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36283
36876
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36284
36877
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36285
- def delete_region_health_source(project, region, health_source, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36286
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/healthSources/{healthSource}', options)
36878
+ def patch_region_health_check(project, region, health_check, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36879
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options)
36880
+ command.request_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation
36881
+ command.request_object = health_check_object
36287
36882
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
36288
36883
  command.response_class = Google::Apis::ComputeAlpha::Operation
36289
36884
  command.params['project'] = project unless project.nil?
36290
36885
  command.params['region'] = region unless region.nil?
36291
- command.params['healthSource'] = health_source unless health_source.nil?
36886
+ command.params['healthCheck'] = health_check unless health_check.nil?
36292
36887
  command.query['requestId'] = request_id unless request_id.nil?
36293
36888
  command.query['fields'] = fields unless fields.nil?
36294
36889
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -36296,13 +36891,14 @@ module Google
36296
36891
  execute_or_queue_command(command, &block)
36297
36892
  end
36298
36893
 
36299
- # Returns the specified HealthSource resource in the given region.
36894
+ # Returns permissions that a caller has on the specified resource.
36300
36895
  # @param [String] project
36301
36896
  # Project ID for this request.
36302
36897
  # @param [String] region
36303
- # Name of the region scoping this request.
36304
- # @param [String] health_source
36305
- # Name of the HealthSource resource to return.
36898
+ # The name of the region for this request.
36899
+ # @param [String] resource
36900
+ # Name or id of the resource for this request.
36901
+ # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
36306
36902
  # @param [String] fields
36307
36903
  # Selector specifying which fields to include in a partial response.
36308
36904
  # @param [String] quota_user
@@ -36314,34 +36910,38 @@ module Google
36314
36910
  # Request-specific options
36315
36911
  #
36316
36912
  # @yield [result, err] Result & error if block supplied
36317
- # @yieldparam result [Google::Apis::ComputeAlpha::HealthSource] parsed result object
36913
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
36318
36914
  # @yieldparam err [StandardError] error object if request failed
36319
36915
  #
36320
- # @return [Google::Apis::ComputeAlpha::HealthSource]
36916
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
36321
36917
  #
36322
36918
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36323
36919
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36324
36920
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36325
- def get_region_health_source(project, region, health_source, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36326
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthSources/{healthSource}', options)
36327
- command.response_representation = Google::Apis::ComputeAlpha::HealthSource::Representation
36328
- command.response_class = Google::Apis::ComputeAlpha::HealthSource
36921
+ def test_region_health_check_iam_permissions(project, region, resource, test_permissions_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36922
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthChecks/{resource}/testIamPermissions', options)
36923
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
36924
+ command.request_object = test_permissions_request_object
36925
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
36926
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
36329
36927
  command.params['project'] = project unless project.nil?
36330
36928
  command.params['region'] = region unless region.nil?
36331
- command.params['healthSource'] = health_source unless health_source.nil?
36929
+ command.params['resource'] = resource unless resource.nil?
36332
36930
  command.query['fields'] = fields unless fields.nil?
36333
36931
  command.query['quotaUser'] = quota_user unless quota_user.nil?
36334
36932
  command.query['userIp'] = user_ip unless user_ip.nil?
36335
36933
  execute_or_queue_command(command, &block)
36336
36934
  end
36337
36935
 
36338
- # Create a HealthSource in the specified project in the given region using the
36339
- # parameters that are included in the request.
36936
+ # Updates a HealthCheck resource in the specified project using the data
36937
+ # included in the request.
36340
36938
  # @param [String] project
36341
36939
  # Project ID for this request.
36342
36940
  # @param [String] region
36343
36941
  # Name of the region scoping this request.
36344
- # @param [Google::Apis::ComputeAlpha::HealthSource] health_source_object
36942
+ # @param [String] health_check
36943
+ # Name of the HealthCheck resource to update.
36944
+ # @param [Google::Apis::ComputeAlpha::HealthCheck] health_check_object
36345
36945
  # @param [String] request_id
36346
36946
  # An optional request ID to identify requests. Specify a unique request ID so
36347
36947
  # that if you must retry your request, the server will know to ignore the
@@ -36371,14 +36971,15 @@ module Google
36371
36971
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36372
36972
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36373
36973
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36374
- def insert_region_health_source(project, region, health_source_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36375
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthSources', options)
36376
- command.request_representation = Google::Apis::ComputeAlpha::HealthSource::Representation
36377
- command.request_object = health_source_object
36974
+ def update_region_health_check(project, region, health_check, health_check_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
36975
+ command = make_simple_command(:put, 'projects/{project}/regions/{region}/healthChecks/{healthCheck}', options)
36976
+ command.request_representation = Google::Apis::ComputeAlpha::HealthCheck::Representation
36977
+ command.request_object = health_check_object
36378
36978
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
36379
36979
  command.response_class = Google::Apis::ComputeAlpha::Operation
36380
36980
  command.params['project'] = project unless project.nil?
36381
36981
  command.params['region'] = region unless region.nil?
36982
+ command.params['healthCheck'] = health_check unless health_check.nil?
36382
36983
  command.query['requestId'] = request_id unless request_id.nil?
36383
36984
  command.query['fields'] = fields unless fields.nil?
36384
36985
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -36386,11 +36987,11 @@ module Google
36386
36987
  execute_or_queue_command(command, &block)
36387
36988
  end
36388
36989
 
36389
- # Lists the HealthSources for a project in the given region.
36990
+ # Retrieves the list of all HealthSource resources (all regional) available to
36991
+ # the specified project. To prevent failure, Google recommends that you set the `
36992
+ # returnPartialSuccess` parameter to `true`.
36390
36993
  # @param [String] project
36391
- # Project ID for this request.
36392
- # @param [String] region
36393
- # Name of the region scoping this request.
36994
+ # Name of the project scoping this request.
36394
36995
  # @param [String] filter
36395
36996
  # A filter expression that filters resources listed in the response. Most
36396
36997
  # Compute resources support two types of filter expressions: expressions that
@@ -36423,6 +37024,13 @@ module Google
36423
37024
  # instances that do not end with name "instance", you would use `name ne .*
36424
37025
  # instance`. You cannot combine constraints on multiple fields using regular
36425
37026
  # expressions.
37027
+ # @param [Boolean] include_all_scopes
37028
+ # Indicates whether every visible scope for each scope type (zone, region,
37029
+ # global) should be included in the response. For new resource types added after
37030
+ # this field, the flag has no effect as new resource types will always include
37031
+ # every visible scope for each scope type in response. For resource types which
37032
+ # predate this field, if this flag is omitted or false, only scopes of the scope
37033
+ # types where the resource type is expected to be found will be included.
36426
37034
  # @param [Fixnum] max_results
36427
37035
  # The maximum number of results per page that should be returned. If the number
36428
37036
  # of available results is larger than `maxResults`, Compute Engine returns a `
@@ -36444,6 +37052,9 @@ module Google
36444
37052
  # failure. The default value is false. For example, when partial success
36445
37053
  # behavior is enabled, aggregatedList for a single zone scope either returns all
36446
37054
  # resources in the zone or no resources, with an error code.
37055
+ # @param [Fixnum] service_project_number
37056
+ # The Shared VPC service project id or service project number for which
37057
+ # aggregated list request is invoked for subnetworks list-usable api.
36447
37058
  # @param [String] fields
36448
37059
  # Selector specifying which fields to include in a partial response.
36449
37060
  # @param [String] quota_user
@@ -36455,42 +37066,277 @@ module Google
36455
37066
  # Request-specific options
36456
37067
  #
36457
37068
  # @yield [result, err] Result & error if block supplied
36458
- # @yieldparam result [Google::Apis::ComputeAlpha::HealthSourceList] parsed result object
37069
+ # @yieldparam result [Google::Apis::ComputeAlpha::HealthSourceAggregatedList] parsed result object
36459
37070
  # @yieldparam err [StandardError] error object if request failed
36460
37071
  #
36461
- # @return [Google::Apis::ComputeAlpha::HealthSourceList]
37072
+ # @return [Google::Apis::ComputeAlpha::HealthSourceAggregatedList]
36462
37073
  #
36463
37074
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
36464
37075
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
36465
37076
  # @raise [Google::Apis::AuthorizationError] Authorization is required
36466
- def list_region_health_sources(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)
36467
- command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthSources', options)
36468
- command.response_representation = Google::Apis::ComputeAlpha::HealthSourceList::Representation
36469
- command.response_class = Google::Apis::ComputeAlpha::HealthSourceList
37077
+ def aggregated_region_health_source_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)
37078
+ command = make_simple_command(:get, 'projects/{project}/aggregated/healthSources', options)
37079
+ command.response_representation = Google::Apis::ComputeAlpha::HealthSourceAggregatedList::Representation
37080
+ command.response_class = Google::Apis::ComputeAlpha::HealthSourceAggregatedList
36470
37081
  command.params['project'] = project unless project.nil?
36471
- command.params['region'] = region unless region.nil?
36472
37082
  command.query['filter'] = filter unless filter.nil?
37083
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
36473
37084
  command.query['maxResults'] = max_results unless max_results.nil?
36474
37085
  command.query['orderBy'] = order_by unless order_by.nil?
36475
37086
  command.query['pageToken'] = page_token unless page_token.nil?
36476
37087
  command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
37088
+ command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
36477
37089
  command.query['fields'] = fields unless fields.nil?
36478
37090
  command.query['quotaUser'] = quota_user unless quota_user.nil?
36479
37091
  command.query['userIp'] = user_ip unless user_ip.nil?
36480
37092
  execute_or_queue_command(command, &block)
36481
37093
  end
36482
37094
 
36483
- # Updates the specified regional HealthSource resource with the data included in
36484
- # the request. This method supports PATCH semantics and uses the JSON merge
36485
- # patch format and processing rules.
37095
+ # Deletes the specified HealthSource in the given region
36486
37096
  # @param [String] project
36487
37097
  # Project ID for this request.
36488
37098
  # @param [String] region
36489
37099
  # Name of the region scoping this request.
36490
37100
  # @param [String] health_source
36491
- # Name of the HealthSource to update. The name must be 1-63 characters long, and
36492
- # comply with RFC1035.
36493
- # @param [Google::Apis::ComputeAlpha::HealthSource] health_source_object
37101
+ # Name of the HealthSource resource to delete.
37102
+ # @param [String] request_id
37103
+ # An optional request ID to identify requests. Specify a unique request ID so
37104
+ # that if you must retry your request, the server will know to ignore the
37105
+ # request if it has already been completed. For example, consider a situation
37106
+ # where you make an initial request and the request times out. If you make the
37107
+ # request again with the same request ID, the server can check if original
37108
+ # operation with the same request ID was received, and if so, will ignore the
37109
+ # second request. This prevents clients from accidentally creating duplicate
37110
+ # commitments. The request ID must be a valid UUID with the exception that zero
37111
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
37112
+ # @param [String] fields
37113
+ # Selector specifying which fields to include in a partial response.
37114
+ # @param [String] quota_user
37115
+ # Available to use for quota purposes for server-side applications. Can be any
37116
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
37117
+ # @param [String] user_ip
37118
+ # Legacy name for parameter that has been superseded by `quotaUser`.
37119
+ # @param [Google::Apis::RequestOptions] options
37120
+ # Request-specific options
37121
+ #
37122
+ # @yield [result, err] Result & error if block supplied
37123
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
37124
+ # @yieldparam err [StandardError] error object if request failed
37125
+ #
37126
+ # @return [Google::Apis::ComputeAlpha::Operation]
37127
+ #
37128
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37129
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37130
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
37131
+ def delete_region_health_source(project, region, health_source, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37132
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/healthSources/{healthSource}', options)
37133
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
37134
+ command.response_class = Google::Apis::ComputeAlpha::Operation
37135
+ command.params['project'] = project unless project.nil?
37136
+ command.params['region'] = region unless region.nil?
37137
+ command.params['healthSource'] = health_source unless health_source.nil?
37138
+ command.query['requestId'] = request_id unless request_id.nil?
37139
+ command.query['fields'] = fields unless fields.nil?
37140
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
37141
+ command.query['userIp'] = user_ip unless user_ip.nil?
37142
+ execute_or_queue_command(command, &block)
37143
+ end
37144
+
37145
+ # Returns the specified HealthSource resource in the given region.
37146
+ # @param [String] project
37147
+ # Project ID for this request.
37148
+ # @param [String] region
37149
+ # Name of the region scoping this request.
37150
+ # @param [String] health_source
37151
+ # Name of the HealthSource resource to return.
37152
+ # @param [String] fields
37153
+ # Selector specifying which fields to include in a partial response.
37154
+ # @param [String] quota_user
37155
+ # Available to use for quota purposes for server-side applications. Can be any
37156
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
37157
+ # @param [String] user_ip
37158
+ # Legacy name for parameter that has been superseded by `quotaUser`.
37159
+ # @param [Google::Apis::RequestOptions] options
37160
+ # Request-specific options
37161
+ #
37162
+ # @yield [result, err] Result & error if block supplied
37163
+ # @yieldparam result [Google::Apis::ComputeAlpha::HealthSource] parsed result object
37164
+ # @yieldparam err [StandardError] error object if request failed
37165
+ #
37166
+ # @return [Google::Apis::ComputeAlpha::HealthSource]
37167
+ #
37168
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37169
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37170
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
37171
+ def get_region_health_source(project, region, health_source, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37172
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthSources/{healthSource}', options)
37173
+ command.response_representation = Google::Apis::ComputeAlpha::HealthSource::Representation
37174
+ command.response_class = Google::Apis::ComputeAlpha::HealthSource
37175
+ command.params['project'] = project unless project.nil?
37176
+ command.params['region'] = region unless region.nil?
37177
+ command.params['healthSource'] = health_source unless health_source.nil?
37178
+ command.query['fields'] = fields unless fields.nil?
37179
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
37180
+ command.query['userIp'] = user_ip unless user_ip.nil?
37181
+ execute_or_queue_command(command, &block)
37182
+ end
37183
+
37184
+ # Create a HealthSource in the specified project in the given region using the
37185
+ # parameters that are included in the request.
37186
+ # @param [String] project
37187
+ # Project ID for this request.
37188
+ # @param [String] region
37189
+ # Name of the region scoping this request.
37190
+ # @param [Google::Apis::ComputeAlpha::HealthSource] health_source_object
37191
+ # @param [String] request_id
37192
+ # An optional request ID to identify requests. Specify a unique request ID so
37193
+ # that if you must retry your request, the server will know to ignore the
37194
+ # request if it has already been completed. For example, consider a situation
37195
+ # where you make an initial request and the request times out. If you make the
37196
+ # request again with the same request ID, the server can check if original
37197
+ # operation with the same request ID was received, and if so, will ignore the
37198
+ # second request. This prevents clients from accidentally creating duplicate
37199
+ # commitments. The request ID must be a valid UUID with the exception that zero
37200
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
37201
+ # @param [String] fields
37202
+ # Selector specifying which fields to include in a partial response.
37203
+ # @param [String] quota_user
37204
+ # Available to use for quota purposes for server-side applications. Can be any
37205
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
37206
+ # @param [String] user_ip
37207
+ # Legacy name for parameter that has been superseded by `quotaUser`.
37208
+ # @param [Google::Apis::RequestOptions] options
37209
+ # Request-specific options
37210
+ #
37211
+ # @yield [result, err] Result & error if block supplied
37212
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
37213
+ # @yieldparam err [StandardError] error object if request failed
37214
+ #
37215
+ # @return [Google::Apis::ComputeAlpha::Operation]
37216
+ #
37217
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37218
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37219
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
37220
+ def insert_region_health_source(project, region, health_source_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
37221
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/healthSources', options)
37222
+ command.request_representation = Google::Apis::ComputeAlpha::HealthSource::Representation
37223
+ command.request_object = health_source_object
37224
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
37225
+ command.response_class = Google::Apis::ComputeAlpha::Operation
37226
+ command.params['project'] = project unless project.nil?
37227
+ command.params['region'] = region unless region.nil?
37228
+ command.query['requestId'] = request_id unless request_id.nil?
37229
+ command.query['fields'] = fields unless fields.nil?
37230
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
37231
+ command.query['userIp'] = user_ip unless user_ip.nil?
37232
+ execute_or_queue_command(command, &block)
37233
+ end
37234
+
37235
+ # Lists the HealthSources for a project in the given region.
37236
+ # @param [String] project
37237
+ # Project ID for this request.
37238
+ # @param [String] region
37239
+ # Name of the region scoping this request.
37240
+ # @param [String] filter
37241
+ # A filter expression that filters resources listed in the response. Most
37242
+ # Compute resources support two types of filter expressions: expressions that
37243
+ # support regular expressions and expressions that follow API improvement
37244
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
37245
+ # request. If you want to use AIP-160, your expression must specify the field
37246
+ # name, an operator, and the value that you want to use for filtering. The value
37247
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
37248
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
37249
+ # Engine instances, you can exclude instances named `example-instance` by
37250
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
37251
+ # whether a key has been defined. For example, to find all objects with `owner`
37252
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
37253
+ # example, you could specify `scheduling.automaticRestart = false` to include
37254
+ # instances only if they are not scheduled for automatic restarts. You can use
37255
+ # filtering on nested fields to filter based on resource labels. To filter on
37256
+ # multiple expressions, provide each separate expression within parentheses. For
37257
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
37258
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
37259
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
37260
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
37261
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
37262
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
37263
+ # un-parenthesized expression with or without quotes or against multiple
37264
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
37265
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
37266
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
37267
+ # interpreted as a regular expression using Google RE2 library syntax. The
37268
+ # literal value must match the entire field. For example, to filter for
37269
+ # instances that do not end with name "instance", you would use `name ne .*
37270
+ # instance`. You cannot combine constraints on multiple fields using regular
37271
+ # expressions.
37272
+ # @param [Fixnum] max_results
37273
+ # The maximum number of results per page that should be returned. If the number
37274
+ # of available results is larger than `maxResults`, Compute Engine returns a `
37275
+ # nextPageToken` that can be used to get the next page of results in subsequent
37276
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
37277
+ # @param [String] order_by
37278
+ # Sorts list results by a certain order. By default, results are returned in
37279
+ # alphanumerical order based on the resource name. You can also sort results in
37280
+ # descending order based on the creation timestamp using `orderBy="
37281
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
37282
+ # field in reverse chronological order (newest result first). Use this to sort
37283
+ # resources like operations so that the newest operation is returned first.
37284
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
37285
+ # @param [String] page_token
37286
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
37287
+ # by a previous list request to get the next page of results.
37288
+ # @param [Boolean] return_partial_success
37289
+ # Opt-in for partial success behavior which provides partial results in case of
37290
+ # failure. The default value is false. For example, when partial success
37291
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
37292
+ # resources in the zone or no resources, with an error code.
37293
+ # @param [String] fields
37294
+ # Selector specifying which fields to include in a partial response.
37295
+ # @param [String] quota_user
37296
+ # Available to use for quota purposes for server-side applications. Can be any
37297
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
37298
+ # @param [String] user_ip
37299
+ # Legacy name for parameter that has been superseded by `quotaUser`.
37300
+ # @param [Google::Apis::RequestOptions] options
37301
+ # Request-specific options
37302
+ #
37303
+ # @yield [result, err] Result & error if block supplied
37304
+ # @yieldparam result [Google::Apis::ComputeAlpha::HealthSourceList] parsed result object
37305
+ # @yieldparam err [StandardError] error object if request failed
37306
+ #
37307
+ # @return [Google::Apis::ComputeAlpha::HealthSourceList]
37308
+ #
37309
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
37310
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
37311
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
37312
+ def list_region_health_sources(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)
37313
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/healthSources', options)
37314
+ command.response_representation = Google::Apis::ComputeAlpha::HealthSourceList::Representation
37315
+ command.response_class = Google::Apis::ComputeAlpha::HealthSourceList
37316
+ command.params['project'] = project unless project.nil?
37317
+ command.params['region'] = region unless region.nil?
37318
+ command.query['filter'] = filter unless filter.nil?
37319
+ command.query['maxResults'] = max_results unless max_results.nil?
37320
+ command.query['orderBy'] = order_by unless order_by.nil?
37321
+ command.query['pageToken'] = page_token unless page_token.nil?
37322
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
37323
+ command.query['fields'] = fields unless fields.nil?
37324
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
37325
+ command.query['userIp'] = user_ip unless user_ip.nil?
37326
+ execute_or_queue_command(command, &block)
37327
+ end
37328
+
37329
+ # Updates the specified regional HealthSource resource with the data included in
37330
+ # the request. This method supports PATCH semantics and uses the JSON merge
37331
+ # patch format and processing rules.
37332
+ # @param [String] project
37333
+ # Project ID for this request.
37334
+ # @param [String] region
37335
+ # Name of the region scoping this request.
37336
+ # @param [String] health_source
37337
+ # Name of the HealthSource to update. The name must be 1-63 characters long, and
37338
+ # comply with RFC1035.
37339
+ # @param [Google::Apis::ComputeAlpha::HealthSource] health_source_object
36494
37340
  # @param [String] request_id
36495
37341
  # An optional request ID to identify requests. Specify a unique request ID so
36496
37342
  # that if you must retry your request, the server will know to ignore the
@@ -41494,15 +42340,696 @@ module Google
41494
42340
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41495
42341
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41496
42342
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41497
- 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)
41498
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchAssociation', options)
41499
- command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyAssociation::Representation
41500
- command.request_object = firewall_policy_association_object
42343
+ 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)
42344
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchAssociation', options)
42345
+ command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyAssociation::Representation
42346
+ command.request_object = firewall_policy_association_object
42347
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
42348
+ command.response_class = Google::Apis::ComputeAlpha::Operation
42349
+ command.params['project'] = project unless project.nil?
42350
+ command.params['region'] = region unless region.nil?
42351
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
42352
+ command.query['requestId'] = request_id unless request_id.nil?
42353
+ command.query['fields'] = fields unless fields.nil?
42354
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42355
+ command.query['userIp'] = user_ip unless user_ip.nil?
42356
+ execute_or_queue_command(command, &block)
42357
+ end
42358
+
42359
+ # Patches a rule of the specified priority.
42360
+ # @param [String] project
42361
+ # Project ID for this request.
42362
+ # @param [String] region
42363
+ # Name of the region scoping this request.
42364
+ # @param [String] firewall_policy
42365
+ # Name of the firewall policy to update.
42366
+ # @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
42367
+ # @param [Fixnum] priority
42368
+ # The priority of the rule to patch.
42369
+ # @param [String] request_id
42370
+ # An optional request ID to identify requests. Specify a unique request ID so
42371
+ # that if you must retry your request, the server will know to ignore the
42372
+ # request if it has already been completed. For example, consider a situation
42373
+ # where you make an initial request and the request times out. If you make the
42374
+ # request again with the same request ID, the server can check if original
42375
+ # operation with the same request ID was received, and if so, will ignore the
42376
+ # second request. This prevents clients from accidentally creating duplicate
42377
+ # commitments. The request ID must be a valid UUID with the exception that zero
42378
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
42379
+ # @param [String] fields
42380
+ # Selector specifying which fields to include in a partial response.
42381
+ # @param [String] quota_user
42382
+ # Available to use for quota purposes for server-side applications. Can be any
42383
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42384
+ # @param [String] user_ip
42385
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42386
+ # @param [Google::Apis::RequestOptions] options
42387
+ # Request-specific options
42388
+ #
42389
+ # @yield [result, err] Result & error if block supplied
42390
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
42391
+ # @yieldparam err [StandardError] error object if request failed
42392
+ #
42393
+ # @return [Google::Apis::ComputeAlpha::Operation]
42394
+ #
42395
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42396
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42397
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42398
+ 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)
42399
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule', options)
42400
+ command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
42401
+ command.request_object = firewall_policy_rule_object
42402
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
42403
+ command.response_class = Google::Apis::ComputeAlpha::Operation
42404
+ command.params['project'] = project unless project.nil?
42405
+ command.params['region'] = region unless region.nil?
42406
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
42407
+ command.query['priority'] = priority unless priority.nil?
42408
+ command.query['requestId'] = request_id unless request_id.nil?
42409
+ command.query['fields'] = fields unless fields.nil?
42410
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42411
+ command.query['userIp'] = user_ip unless user_ip.nil?
42412
+ execute_or_queue_command(command, &block)
42413
+ end
42414
+
42415
+ # Removes an association for the specified network firewall policy.
42416
+ # @param [String] project
42417
+ # Project ID for this request.
42418
+ # @param [String] region
42419
+ # Name of the region scoping this request.
42420
+ # @param [String] firewall_policy
42421
+ # Name of the firewall policy to update.
42422
+ # @param [String] name
42423
+ # Name for the association that will be removed.
42424
+ # @param [String] request_id
42425
+ # An optional request ID to identify requests. Specify a unique request ID so
42426
+ # that if you must retry your request, the server will know to ignore the
42427
+ # request if it has already been completed. For example, consider a situation
42428
+ # where you make an initial request and the request times out. If you make the
42429
+ # request again with the same request ID, the server can check if original
42430
+ # operation with the same request ID was received, and if so, will ignore the
42431
+ # second request. This prevents clients from accidentally creating duplicate
42432
+ # commitments. The request ID must be a valid UUID with the exception that zero
42433
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
42434
+ # @param [String] fields
42435
+ # Selector specifying which fields to include in a partial response.
42436
+ # @param [String] quota_user
42437
+ # Available to use for quota purposes for server-side applications. Can be any
42438
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42439
+ # @param [String] user_ip
42440
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42441
+ # @param [Google::Apis::RequestOptions] options
42442
+ # Request-specific options
42443
+ #
42444
+ # @yield [result, err] Result & error if block supplied
42445
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
42446
+ # @yieldparam err [StandardError] error object if request failed
42447
+ #
42448
+ # @return [Google::Apis::ComputeAlpha::Operation]
42449
+ #
42450
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42451
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42452
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42453
+ 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)
42454
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation', options)
42455
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
42456
+ command.response_class = Google::Apis::ComputeAlpha::Operation
42457
+ command.params['project'] = project unless project.nil?
42458
+ command.params['region'] = region unless region.nil?
42459
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
42460
+ command.query['name'] = name unless name.nil?
42461
+ command.query['requestId'] = request_id unless request_id.nil?
42462
+ command.query['fields'] = fields unless fields.nil?
42463
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42464
+ command.query['userIp'] = user_ip unless user_ip.nil?
42465
+ execute_or_queue_command(command, &block)
42466
+ end
42467
+
42468
+ # Deletes a rule of the specified priority.
42469
+ # @param [String] project
42470
+ # Project ID for this request.
42471
+ # @param [String] region
42472
+ # Name of the region scoping this request.
42473
+ # @param [String] firewall_policy
42474
+ # Name of the firewall policy to update.
42475
+ # @param [Fixnum] priority
42476
+ # The priority of the rule to remove from the firewall policy.
42477
+ # @param [String] request_id
42478
+ # An optional request ID to identify requests. Specify a unique request ID so
42479
+ # that if you must retry your request, the server will know to ignore the
42480
+ # request if it has already been completed. For example, consider a situation
42481
+ # where you make an initial request and the request times out. If you make the
42482
+ # request again with the same request ID, the server can check if original
42483
+ # operation with the same request ID was received, and if so, will ignore the
42484
+ # second request. This prevents clients from accidentally creating duplicate
42485
+ # commitments. The request ID must be a valid UUID with the exception that zero
42486
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
42487
+ # @param [String] fields
42488
+ # Selector specifying which fields to include in a partial response.
42489
+ # @param [String] quota_user
42490
+ # Available to use for quota purposes for server-side applications. Can be any
42491
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42492
+ # @param [String] user_ip
42493
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42494
+ # @param [Google::Apis::RequestOptions] options
42495
+ # Request-specific options
42496
+ #
42497
+ # @yield [result, err] Result & error if block supplied
42498
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
42499
+ # @yieldparam err [StandardError] error object if request failed
42500
+ #
42501
+ # @return [Google::Apis::ComputeAlpha::Operation]
42502
+ #
42503
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42504
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42505
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42506
+ 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)
42507
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeRule', options)
42508
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
42509
+ command.response_class = Google::Apis::ComputeAlpha::Operation
42510
+ command.params['project'] = project unless project.nil?
42511
+ command.params['region'] = region unless region.nil?
42512
+ command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
42513
+ command.query['priority'] = priority unless priority.nil?
42514
+ command.query['requestId'] = request_id unless request_id.nil?
42515
+ command.query['fields'] = fields unless fields.nil?
42516
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42517
+ command.query['userIp'] = user_ip unless user_ip.nil?
42518
+ execute_or_queue_command(command, &block)
42519
+ end
42520
+
42521
+ # Sets the access control policy on the specified resource. Replaces any
42522
+ # existing policy.
42523
+ # @param [String] project
42524
+ # Project ID for this request.
42525
+ # @param [String] region
42526
+ # The name of the region for this request.
42527
+ # @param [String] resource
42528
+ # Name or id of the resource for this request.
42529
+ # @param [Google::Apis::ComputeAlpha::RegionSetPolicyRequest] region_set_policy_request_object
42530
+ # @param [String] fields
42531
+ # Selector specifying which fields to include in a partial response.
42532
+ # @param [String] quota_user
42533
+ # Available to use for quota purposes for server-side applications. Can be any
42534
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42535
+ # @param [String] user_ip
42536
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42537
+ # @param [Google::Apis::RequestOptions] options
42538
+ # Request-specific options
42539
+ #
42540
+ # @yield [result, err] Result & error if block supplied
42541
+ # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
42542
+ # @yieldparam err [StandardError] error object if request failed
42543
+ #
42544
+ # @return [Google::Apis::ComputeAlpha::Policy]
42545
+ #
42546
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42547
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42548
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42549
+ 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)
42550
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{resource}/setIamPolicy', options)
42551
+ command.request_representation = Google::Apis::ComputeAlpha::RegionSetPolicyRequest::Representation
42552
+ command.request_object = region_set_policy_request_object
42553
+ command.response_representation = Google::Apis::ComputeAlpha::Policy::Representation
42554
+ command.response_class = Google::Apis::ComputeAlpha::Policy
42555
+ command.params['project'] = project unless project.nil?
42556
+ command.params['region'] = region unless region.nil?
42557
+ command.params['resource'] = resource unless resource.nil?
42558
+ command.query['fields'] = fields unless fields.nil?
42559
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42560
+ command.query['userIp'] = user_ip unless user_ip.nil?
42561
+ execute_or_queue_command(command, &block)
42562
+ end
42563
+
42564
+ # Returns permissions that a caller has on the specified resource.
42565
+ # @param [String] project
42566
+ # Project ID for this request.
42567
+ # @param [String] region
42568
+ # The name of the region for this request.
42569
+ # @param [String] resource
42570
+ # Name or id of the resource for this request.
42571
+ # @param [Google::Apis::ComputeAlpha::TestPermissionsRequest] test_permissions_request_object
42572
+ # @param [String] fields
42573
+ # Selector specifying which fields to include in a partial response.
42574
+ # @param [String] quota_user
42575
+ # Available to use for quota purposes for server-side applications. Can be any
42576
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42577
+ # @param [String] user_ip
42578
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42579
+ # @param [Google::Apis::RequestOptions] options
42580
+ # Request-specific options
42581
+ #
42582
+ # @yield [result, err] Result & error if block supplied
42583
+ # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
42584
+ # @yieldparam err [StandardError] error object if request failed
42585
+ #
42586
+ # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
42587
+ #
42588
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42589
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42590
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42591
+ 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)
42592
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{resource}/testIamPermissions', options)
42593
+ command.request_representation = Google::Apis::ComputeAlpha::TestPermissionsRequest::Representation
42594
+ command.request_object = test_permissions_request_object
42595
+ command.response_representation = Google::Apis::ComputeAlpha::TestPermissionsResponse::Representation
42596
+ command.response_class = Google::Apis::ComputeAlpha::TestPermissionsResponse
42597
+ command.params['project'] = project unless project.nil?
42598
+ command.params['region'] = region unless region.nil?
42599
+ command.params['resource'] = resource unless resource.nil?
42600
+ command.query['fields'] = fields unless fields.nil?
42601
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42602
+ command.query['userIp'] = user_ip unless user_ip.nil?
42603
+ execute_or_queue_command(command, &block)
42604
+ end
42605
+
42606
+ # Inserts an association for the specified network policy.
42607
+ # @param [String] project
42608
+ # Project ID for this request.
42609
+ # @param [String] region
42610
+ # Name of the region of this request.
42611
+ # @param [String] network_policy
42612
+ # Name of the network policy resource to update.
42613
+ # @param [Google::Apis::ComputeAlpha::NetworkPolicyAssociation] network_policy_association_object
42614
+ # @param [String] request_id
42615
+ # An optional request ID to identify requests. Specify a unique request ID so
42616
+ # that if you must retry your request, the server will know to ignore the
42617
+ # request if it has already been completed. For example, consider a situation
42618
+ # where you make an initial request and the request times out. If you make the
42619
+ # request again with the same request ID, the server can check if original
42620
+ # operation with the same request ID was received, and if so, will ignore the
42621
+ # second request. This prevents clients from accidentally creating duplicate
42622
+ # commitments. The request ID must be a valid UUID with the exception that zero
42623
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
42624
+ # @param [String] fields
42625
+ # Selector specifying which fields to include in a partial response.
42626
+ # @param [String] quota_user
42627
+ # Available to use for quota purposes for server-side applications. Can be any
42628
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42629
+ # @param [String] user_ip
42630
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42631
+ # @param [Google::Apis::RequestOptions] options
42632
+ # Request-specific options
42633
+ #
42634
+ # @yield [result, err] Result & error if block supplied
42635
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
42636
+ # @yieldparam err [StandardError] error object if request failed
42637
+ #
42638
+ # @return [Google::Apis::ComputeAlpha::Operation]
42639
+ #
42640
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42641
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42642
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42643
+ 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)
42644
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/addAssociation', options)
42645
+ command.request_representation = Google::Apis::ComputeAlpha::NetworkPolicyAssociation::Representation
42646
+ command.request_object = network_policy_association_object
42647
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
42648
+ command.response_class = Google::Apis::ComputeAlpha::Operation
42649
+ command.params['project'] = project unless project.nil?
42650
+ command.params['region'] = region unless region.nil?
42651
+ command.params['networkPolicy'] = network_policy unless network_policy.nil?
42652
+ command.query['requestId'] = request_id unless request_id.nil?
42653
+ command.query['fields'] = fields unless fields.nil?
42654
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42655
+ command.query['userIp'] = user_ip unless user_ip.nil?
42656
+ execute_or_queue_command(command, &block)
42657
+ end
42658
+
42659
+ # Inserts a rule into a network policy.
42660
+ # @param [String] project
42661
+ # Project ID for this request.
42662
+ # @param [String] region
42663
+ # Name of the region of this request.
42664
+ # @param [String] network_policy
42665
+ # Name of the network policy resource to update.
42666
+ # @param [Google::Apis::ComputeAlpha::NetworkPolicyTrafficClassificationRule] network_policy_traffic_classification_rule_object
42667
+ # @param [String] request_id
42668
+ # An optional request ID to identify requests. Specify a unique request ID so
42669
+ # that if you must retry your request, the server will know to ignore the
42670
+ # request if it has already been completed. For example, consider a situation
42671
+ # where you make an initial request and the request times out. If you make the
42672
+ # request again with the same request ID, the server can check if original
42673
+ # operation with the same request ID was received, and if so, will ignore the
42674
+ # second request. This prevents clients from accidentally creating duplicate
42675
+ # commitments. The request ID must be a valid UUID with the exception that zero
42676
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
42677
+ # @param [String] fields
42678
+ # Selector specifying which fields to include in a partial response.
42679
+ # @param [String] quota_user
42680
+ # Available to use for quota purposes for server-side applications. Can be any
42681
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42682
+ # @param [String] user_ip
42683
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42684
+ # @param [Google::Apis::RequestOptions] options
42685
+ # Request-specific options
42686
+ #
42687
+ # @yield [result, err] Result & error if block supplied
42688
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
42689
+ # @yieldparam err [StandardError] error object if request failed
42690
+ #
42691
+ # @return [Google::Apis::ComputeAlpha::Operation]
42692
+ #
42693
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42694
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42695
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42696
+ 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)
42697
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/addTrafficClassificationRule', options)
42698
+ command.request_representation = Google::Apis::ComputeAlpha::NetworkPolicyTrafficClassificationRule::Representation
42699
+ command.request_object = network_policy_traffic_classification_rule_object
42700
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
42701
+ command.response_class = Google::Apis::ComputeAlpha::Operation
42702
+ command.params['project'] = project unless project.nil?
42703
+ command.params['region'] = region unless region.nil?
42704
+ command.params['networkPolicy'] = network_policy unless network_policy.nil?
42705
+ command.query['requestId'] = request_id unless request_id.nil?
42706
+ command.query['fields'] = fields unless fields.nil?
42707
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42708
+ command.query['userIp'] = user_ip unless user_ip.nil?
42709
+ execute_or_queue_command(command, &block)
42710
+ end
42711
+
42712
+ # Retrieves an aggregated list of network policies. To prevent failure, it's
42713
+ # recommended that you set the `returnPartialSuccess` parameter to `true`.
42714
+ # @param [String] project
42715
+ # Project ID for this request.
42716
+ # @param [String] filter
42717
+ # A filter expression that filters resources listed in the response. Most
42718
+ # Compute resources support two types of filter expressions: expressions that
42719
+ # support regular expressions and expressions that follow API improvement
42720
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
42721
+ # request. If you want to use AIP-160, your expression must specify the field
42722
+ # name, an operator, and the value that you want to use for filtering. The value
42723
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
42724
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
42725
+ # Engine instances, you can exclude instances named `example-instance` by
42726
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
42727
+ # whether a key has been defined. For example, to find all objects with `owner`
42728
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
42729
+ # example, you could specify `scheduling.automaticRestart = false` to include
42730
+ # instances only if they are not scheduled for automatic restarts. You can use
42731
+ # filtering on nested fields to filter based on resource labels. To filter on
42732
+ # multiple expressions, provide each separate expression within parentheses. For
42733
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
42734
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
42735
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
42736
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
42737
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
42738
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
42739
+ # un-parenthesized expression with or without quotes or against multiple
42740
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
42741
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
42742
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
42743
+ # interpreted as a regular expression using Google RE2 library syntax. The
42744
+ # literal value must match the entire field. For example, to filter for
42745
+ # instances that do not end with name "instance", you would use `name ne .*
42746
+ # instance`. You cannot combine constraints on multiple fields using regular
42747
+ # expressions.
42748
+ # @param [Boolean] include_all_scopes
42749
+ # Indicates whether every visible scope for each scope type (zone, region,
42750
+ # global) should be included in the response. For new resource types added after
42751
+ # this field, the flag has no effect as new resource types will always include
42752
+ # every visible scope for each scope type in response. For resource types which
42753
+ # predate this field, if this flag is omitted or false, only scopes of the scope
42754
+ # types where the resource type is expected to be found will be included.
42755
+ # @param [Fixnum] max_results
42756
+ # The maximum number of results per page that should be returned. If the number
42757
+ # of available results is larger than `maxResults`, Compute Engine returns a `
42758
+ # nextPageToken` that can be used to get the next page of results in subsequent
42759
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
42760
+ # @param [String] order_by
42761
+ # Sorts list results by a certain order. By default, results are returned in
42762
+ # alphanumerical order based on the resource name. You can also sort results in
42763
+ # descending order based on the creation timestamp using `orderBy="
42764
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
42765
+ # field in reverse chronological order (newest result first). Use this to sort
42766
+ # resources like operations so that the newest operation is returned first.
42767
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
42768
+ # @param [String] page_token
42769
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
42770
+ # by a previous list request to get the next page of results.
42771
+ # @param [Boolean] return_partial_success
42772
+ # Opt-in for partial success behavior which provides partial results in case of
42773
+ # failure. The default value is false. For example, when partial success
42774
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
42775
+ # resources in the zone or no resources, with an error code.
42776
+ # @param [Fixnum] service_project_number
42777
+ # The Shared VPC service project id or service project number for which
42778
+ # aggregated list request is invoked for subnetworks list-usable api.
42779
+ # @param [String] fields
42780
+ # Selector specifying which fields to include in a partial response.
42781
+ # @param [String] quota_user
42782
+ # Available to use for quota purposes for server-side applications. Can be any
42783
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42784
+ # @param [String] user_ip
42785
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42786
+ # @param [Google::Apis::RequestOptions] options
42787
+ # Request-specific options
42788
+ #
42789
+ # @yield [result, err] Result & error if block supplied
42790
+ # @yieldparam result [Google::Apis::ComputeAlpha::NetworkPolicyAggregatedList] parsed result object
42791
+ # @yieldparam err [StandardError] error object if request failed
42792
+ #
42793
+ # @return [Google::Apis::ComputeAlpha::NetworkPolicyAggregatedList]
42794
+ #
42795
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42796
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42797
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42798
+ 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)
42799
+ command = make_simple_command(:get, 'projects/{project}/aggregated/networkPolicies', options)
42800
+ command.response_representation = Google::Apis::ComputeAlpha::NetworkPolicyAggregatedList::Representation
42801
+ command.response_class = Google::Apis::ComputeAlpha::NetworkPolicyAggregatedList
42802
+ command.params['project'] = project unless project.nil?
42803
+ command.query['filter'] = filter unless filter.nil?
42804
+ command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
42805
+ command.query['maxResults'] = max_results unless max_results.nil?
42806
+ command.query['orderBy'] = order_by unless order_by.nil?
42807
+ command.query['pageToken'] = page_token unless page_token.nil?
42808
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
42809
+ command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
42810
+ command.query['fields'] = fields unless fields.nil?
42811
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42812
+ command.query['userIp'] = user_ip unless user_ip.nil?
42813
+ execute_or_queue_command(command, &block)
42814
+ end
42815
+
42816
+ # Deletes the specified policy.
42817
+ # @param [String] project
42818
+ # Project ID for this request.
42819
+ # @param [String] region
42820
+ # Name of the region of this request.
42821
+ # @param [String] network_policy
42822
+ # Name of the network policy resource to delete.
42823
+ # @param [String] request_id
42824
+ # An optional request ID to identify requests. Specify a unique request ID so
42825
+ # that if you must retry your request, the server will know to ignore the
42826
+ # request if it has already been completed. For example, consider a situation
42827
+ # where you make an initial request and the request times out. If you make the
42828
+ # request again with the same request ID, the server can check if original
42829
+ # operation with the same request ID was received, and if so, will ignore the
42830
+ # second request. This prevents clients from accidentally creating duplicate
42831
+ # commitments. The request ID must be a valid UUID with the exception that zero
42832
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
42833
+ # @param [String] fields
42834
+ # Selector specifying which fields to include in a partial response.
42835
+ # @param [String] quota_user
42836
+ # Available to use for quota purposes for server-side applications. Can be any
42837
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42838
+ # @param [String] user_ip
42839
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42840
+ # @param [Google::Apis::RequestOptions] options
42841
+ # Request-specific options
42842
+ #
42843
+ # @yield [result, err] Result & error if block supplied
42844
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
42845
+ # @yieldparam err [StandardError] error object if request failed
42846
+ #
42847
+ # @return [Google::Apis::ComputeAlpha::Operation]
42848
+ #
42849
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42850
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42851
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42852
+ def delete_region_network_policy(project, region, network_policy, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42853
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/networkPolicies/{networkPolicy}', options)
42854
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
42855
+ command.response_class = Google::Apis::ComputeAlpha::Operation
42856
+ command.params['project'] = project unless project.nil?
42857
+ command.params['region'] = region unless region.nil?
42858
+ command.params['networkPolicy'] = network_policy unless network_policy.nil?
42859
+ command.query['requestId'] = request_id unless request_id.nil?
42860
+ command.query['fields'] = fields unless fields.nil?
42861
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42862
+ command.query['userIp'] = user_ip unless user_ip.nil?
42863
+ execute_or_queue_command(command, &block)
42864
+ end
42865
+
42866
+ # Returns the specified network policy.
42867
+ # @param [String] project
42868
+ # Project ID for this request.
42869
+ # @param [String] region
42870
+ # Name of the region of this request.
42871
+ # @param [String] network_policy
42872
+ # Name of the network policy resource to return.
42873
+ # @param [String] fields
42874
+ # Selector specifying which fields to include in a partial response.
42875
+ # @param [String] quota_user
42876
+ # Available to use for quota purposes for server-side applications. Can be any
42877
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42878
+ # @param [String] user_ip
42879
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42880
+ # @param [Google::Apis::RequestOptions] options
42881
+ # Request-specific options
42882
+ #
42883
+ # @yield [result, err] Result & error if block supplied
42884
+ # @yieldparam result [Google::Apis::ComputeAlpha::NetworkPolicy] parsed result object
42885
+ # @yieldparam err [StandardError] error object if request failed
42886
+ #
42887
+ # @return [Google::Apis::ComputeAlpha::NetworkPolicy]
42888
+ #
42889
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42890
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42891
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42892
+ def get_region_network_policy(project, region, network_policy, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42893
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkPolicies/{networkPolicy}', options)
42894
+ command.response_representation = Google::Apis::ComputeAlpha::NetworkPolicy::Representation
42895
+ command.response_class = Google::Apis::ComputeAlpha::NetworkPolicy
42896
+ command.params['project'] = project unless project.nil?
42897
+ command.params['region'] = region unless region.nil?
42898
+ command.params['networkPolicy'] = network_policy unless network_policy.nil?
42899
+ command.query['fields'] = fields unless fields.nil?
42900
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42901
+ command.query['userIp'] = user_ip unless user_ip.nil?
42902
+ execute_or_queue_command(command, &block)
42903
+ end
42904
+
42905
+ # Gets an association with the specified name.
42906
+ # @param [String] project
42907
+ # Project ID for this request.
42908
+ # @param [String] region
42909
+ # Name of the region of this request.
42910
+ # @param [String] network_policy
42911
+ # Name of the network policy to which the queried association belongs.
42912
+ # @param [String] name
42913
+ # The name of the association to get from the network policy.
42914
+ # @param [String] fields
42915
+ # Selector specifying which fields to include in a partial response.
42916
+ # @param [String] quota_user
42917
+ # Available to use for quota purposes for server-side applications. Can be any
42918
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42919
+ # @param [String] user_ip
42920
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42921
+ # @param [Google::Apis::RequestOptions] options
42922
+ # Request-specific options
42923
+ #
42924
+ # @yield [result, err] Result & error if block supplied
42925
+ # @yieldparam result [Google::Apis::ComputeAlpha::NetworkPolicyAssociation] parsed result object
42926
+ # @yieldparam err [StandardError] error object if request failed
42927
+ #
42928
+ # @return [Google::Apis::ComputeAlpha::NetworkPolicyAssociation]
42929
+ #
42930
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42931
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42932
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42933
+ def get_region_network_policy_association(project, region, network_policy, name: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
42934
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/getAssociation', options)
42935
+ command.response_representation = Google::Apis::ComputeAlpha::NetworkPolicyAssociation::Representation
42936
+ command.response_class = Google::Apis::ComputeAlpha::NetworkPolicyAssociation
42937
+ command.params['project'] = project unless project.nil?
42938
+ command.params['region'] = region unless region.nil?
42939
+ command.params['networkPolicy'] = network_policy unless network_policy.nil?
42940
+ command.query['name'] = name unless name.nil?
42941
+ command.query['fields'] = fields unless fields.nil?
42942
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42943
+ command.query['userIp'] = user_ip unless user_ip.nil?
42944
+ execute_or_queue_command(command, &block)
42945
+ end
42946
+
42947
+ # Gets a rule of the specified priority.
42948
+ # @param [String] project
42949
+ # Project ID for this request.
42950
+ # @param [String] region
42951
+ # Name of the region of this request.
42952
+ # @param [String] network_policy
42953
+ # Name of the network policy to which the queried rule belongs.
42954
+ # @param [Fixnum] priority
42955
+ # The priority of the rule to get from the network policy.
42956
+ # @param [String] fields
42957
+ # Selector specifying which fields to include in a partial response.
42958
+ # @param [String] quota_user
42959
+ # Available to use for quota purposes for server-side applications. Can be any
42960
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
42961
+ # @param [String] user_ip
42962
+ # Legacy name for parameter that has been superseded by `quotaUser`.
42963
+ # @param [Google::Apis::RequestOptions] options
42964
+ # Request-specific options
42965
+ #
42966
+ # @yield [result, err] Result & error if block supplied
42967
+ # @yieldparam result [Google::Apis::ComputeAlpha::NetworkPolicyTrafficClassificationRule] parsed result object
42968
+ # @yieldparam err [StandardError] error object if request failed
42969
+ #
42970
+ # @return [Google::Apis::ComputeAlpha::NetworkPolicyTrafficClassificationRule]
42971
+ #
42972
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
42973
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
42974
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
42975
+ 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)
42976
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/getTrafficClassificationRule', options)
42977
+ command.response_representation = Google::Apis::ComputeAlpha::NetworkPolicyTrafficClassificationRule::Representation
42978
+ command.response_class = Google::Apis::ComputeAlpha::NetworkPolicyTrafficClassificationRule
42979
+ command.params['project'] = project unless project.nil?
42980
+ command.params['region'] = region unless region.nil?
42981
+ command.params['networkPolicy'] = network_policy unless network_policy.nil?
42982
+ command.query['priority'] = priority unless priority.nil?
42983
+ command.query['fields'] = fields unless fields.nil?
42984
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
42985
+ command.query['userIp'] = user_ip unless user_ip.nil?
42986
+ execute_or_queue_command(command, &block)
42987
+ end
42988
+
42989
+ # Creates a new policy in the specified project using the data included in the
42990
+ # request.
42991
+ # @param [String] project
42992
+ # Project ID for this request.
42993
+ # @param [String] region
42994
+ # Name of the region of this request.
42995
+ # @param [Google::Apis::ComputeAlpha::NetworkPolicy] network_policy_object
42996
+ # @param [String] request_id
42997
+ # An optional request ID to identify requests. Specify a unique request ID so
42998
+ # that if you must retry your request, the server will know to ignore the
42999
+ # request if it has already been completed. For example, consider a situation
43000
+ # where you make an initial request and the request times out. If you make the
43001
+ # request again with the same request ID, the server can check if original
43002
+ # operation with the same request ID was received, and if so, will ignore the
43003
+ # second request. This prevents clients from accidentally creating duplicate
43004
+ # commitments. The request ID must be a valid UUID with the exception that zero
43005
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
43006
+ # @param [String] fields
43007
+ # Selector specifying which fields to include in a partial response.
43008
+ # @param [String] quota_user
43009
+ # Available to use for quota purposes for server-side applications. Can be any
43010
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
43011
+ # @param [String] user_ip
43012
+ # Legacy name for parameter that has been superseded by `quotaUser`.
43013
+ # @param [Google::Apis::RequestOptions] options
43014
+ # Request-specific options
43015
+ #
43016
+ # @yield [result, err] Result & error if block supplied
43017
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
43018
+ # @yieldparam err [StandardError] error object if request failed
43019
+ #
43020
+ # @return [Google::Apis::ComputeAlpha::Operation]
43021
+ #
43022
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
43023
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
43024
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
43025
+ 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)
43026
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkPolicies', options)
43027
+ command.request_representation = Google::Apis::ComputeAlpha::NetworkPolicy::Representation
43028
+ command.request_object = network_policy_object
41501
43029
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
41502
43030
  command.response_class = Google::Apis::ComputeAlpha::Operation
41503
43031
  command.params['project'] = project unless project.nil?
41504
43032
  command.params['region'] = region unless region.nil?
41505
- command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
41506
43033
  command.query['requestId'] = request_id unless request_id.nil?
41507
43034
  command.query['fields'] = fields unless fields.nil?
41508
43035
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -41510,26 +43037,65 @@ module Google
41510
43037
  execute_or_queue_command(command, &block)
41511
43038
  end
41512
43039
 
41513
- # Patches a rule of the specified priority.
43040
+ # Lists all the policies that have been configured for the specified project in
43041
+ # the given region.
41514
43042
  # @param [String] project
41515
43043
  # Project ID for this request.
41516
43044
  # @param [String] region
41517
- # Name of the region scoping this request.
41518
- # @param [String] firewall_policy
41519
- # Name of the firewall policy to update.
41520
- # @param [Google::Apis::ComputeAlpha::FirewallPolicyRule] firewall_policy_rule_object
41521
- # @param [Fixnum] priority
41522
- # The priority of the rule to patch.
41523
- # @param [String] request_id
41524
- # An optional request ID to identify requests. Specify a unique request ID so
41525
- # that if you must retry your request, the server will know to ignore the
41526
- # request if it has already been completed. For example, consider a situation
41527
- # where you make an initial request and the request times out. If you make the
41528
- # request again with the same request ID, the server can check if original
41529
- # operation with the same request ID was received, and if so, will ignore the
41530
- # second request. This prevents clients from accidentally creating duplicate
41531
- # commitments. The request ID must be a valid UUID with the exception that zero
41532
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
43045
+ # Name of the region of this request.
43046
+ # @param [String] filter
43047
+ # A filter expression that filters resources listed in the response. Most
43048
+ # Compute resources support two types of filter expressions: expressions that
43049
+ # support regular expressions and expressions that follow API improvement
43050
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
43051
+ # request. If you want to use AIP-160, your expression must specify the field
43052
+ # name, an operator, and the value that you want to use for filtering. The value
43053
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
43054
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
43055
+ # Engine instances, you can exclude instances named `example-instance` by
43056
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
43057
+ # whether a key has been defined. For example, to find all objects with `owner`
43058
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
43059
+ # example, you could specify `scheduling.automaticRestart = false` to include
43060
+ # instances only if they are not scheduled for automatic restarts. You can use
43061
+ # filtering on nested fields to filter based on resource labels. To filter on
43062
+ # multiple expressions, provide each separate expression within parentheses. For
43063
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
43064
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
43065
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
43066
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
43067
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
43068
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
43069
+ # un-parenthesized expression with or without quotes or against multiple
43070
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
43071
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
43072
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
43073
+ # interpreted as a regular expression using Google RE2 library syntax. The
43074
+ # literal value must match the entire field. For example, to filter for
43075
+ # instances that do not end with name "instance", you would use `name ne .*
43076
+ # instance`. You cannot combine constraints on multiple fields using regular
43077
+ # expressions.
43078
+ # @param [Fixnum] max_results
43079
+ # The maximum number of results per page that should be returned. If the number
43080
+ # of available results is larger than `maxResults`, Compute Engine returns a `
43081
+ # nextPageToken` that can be used to get the next page of results in subsequent
43082
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
43083
+ # @param [String] order_by
43084
+ # Sorts list results by a certain order. By default, results are returned in
43085
+ # alphanumerical order based on the resource name. You can also sort results in
43086
+ # descending order based on the creation timestamp using `orderBy="
43087
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
43088
+ # field in reverse chronological order (newest result first). Use this to sort
43089
+ # resources like operations so that the newest operation is returned first.
43090
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
43091
+ # @param [String] page_token
43092
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
43093
+ # by a previous list request to get the next page of results.
43094
+ # @param [Boolean] return_partial_success
43095
+ # Opt-in for partial success behavior which provides partial results in case of
43096
+ # failure. The default value is false. For example, when partial success
43097
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
43098
+ # resources in the zone or no resources, with an error code.
41533
43099
  # @param [String] fields
41534
43100
  # Selector specifying which fields to include in a partial response.
41535
43101
  # @param [String] quota_user
@@ -41541,40 +43107,39 @@ module Google
41541
43107
  # Request-specific options
41542
43108
  #
41543
43109
  # @yield [result, err] Result & error if block supplied
41544
- # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
43110
+ # @yieldparam result [Google::Apis::ComputeAlpha::NetworkPolicyList] parsed result object
41545
43111
  # @yieldparam err [StandardError] error object if request failed
41546
43112
  #
41547
- # @return [Google::Apis::ComputeAlpha::Operation]
43113
+ # @return [Google::Apis::ComputeAlpha::NetworkPolicyList]
41548
43114
  #
41549
43115
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41550
43116
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41551
43117
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41552
- 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)
41553
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/patchRule', options)
41554
- command.request_representation = Google::Apis::ComputeAlpha::FirewallPolicyRule::Representation
41555
- command.request_object = firewall_policy_rule_object
41556
- command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
41557
- command.response_class = Google::Apis::ComputeAlpha::Operation
43118
+ 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)
43119
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/networkPolicies', options)
43120
+ command.response_representation = Google::Apis::ComputeAlpha::NetworkPolicyList::Representation
43121
+ command.response_class = Google::Apis::ComputeAlpha::NetworkPolicyList
41558
43122
  command.params['project'] = project unless project.nil?
41559
43123
  command.params['region'] = region unless region.nil?
41560
- command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
41561
- command.query['priority'] = priority unless priority.nil?
41562
- command.query['requestId'] = request_id unless request_id.nil?
43124
+ command.query['filter'] = filter unless filter.nil?
43125
+ command.query['maxResults'] = max_results unless max_results.nil?
43126
+ command.query['orderBy'] = order_by unless order_by.nil?
43127
+ command.query['pageToken'] = page_token unless page_token.nil?
43128
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
41563
43129
  command.query['fields'] = fields unless fields.nil?
41564
43130
  command.query['quotaUser'] = quota_user unless quota_user.nil?
41565
43131
  command.query['userIp'] = user_ip unless user_ip.nil?
41566
43132
  execute_or_queue_command(command, &block)
41567
43133
  end
41568
43134
 
41569
- # Removes an association for the specified network firewall policy.
43135
+ # Patches the specified policy with the data included in the request.
41570
43136
  # @param [String] project
41571
43137
  # Project ID for this request.
41572
43138
  # @param [String] region
41573
- # Name of the region scoping this request.
41574
- # @param [String] firewall_policy
41575
- # Name of the firewall policy to update.
41576
- # @param [String] name
41577
- # Name for the association that will be removed.
43139
+ # Name of the region of this request.
43140
+ # @param [String] network_policy
43141
+ # Name of the network policy resource to update.
43142
+ # @param [Google::Apis::ComputeAlpha::NetworkPolicy] network_policy_object
41578
43143
  # @param [String] request_id
41579
43144
  # An optional request ID to identify requests. Specify a unique request ID so
41580
43145
  # that if you must retry your request, the server will know to ignore the
@@ -41604,14 +43169,15 @@ module Google
41604
43169
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41605
43170
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41606
43171
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41607
- 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)
41608
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeAssociation', options)
43172
+ 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)
43173
+ command = make_simple_command(:patch, 'projects/{project}/regions/{region}/networkPolicies/{networkPolicy}', options)
43174
+ command.request_representation = Google::Apis::ComputeAlpha::NetworkPolicy::Representation
43175
+ command.request_object = network_policy_object
41609
43176
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
41610
43177
  command.response_class = Google::Apis::ComputeAlpha::Operation
41611
43178
  command.params['project'] = project unless project.nil?
41612
43179
  command.params['region'] = region unless region.nil?
41613
- command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
41614
- command.query['name'] = name unless name.nil?
43180
+ command.params['networkPolicy'] = network_policy unless network_policy.nil?
41615
43181
  command.query['requestId'] = request_id unless request_id.nil?
41616
43182
  command.query['fields'] = fields unless fields.nil?
41617
43183
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -41619,15 +43185,17 @@ module Google
41619
43185
  execute_or_queue_command(command, &block)
41620
43186
  end
41621
43187
 
41622
- # Deletes a rule of the specified priority.
43188
+ # Patches a rule of the specified priority.
41623
43189
  # @param [String] project
41624
43190
  # Project ID for this request.
41625
43191
  # @param [String] region
41626
- # Name of the region scoping this request.
41627
- # @param [String] firewall_policy
41628
- # Name of the firewall policy to update.
43192
+ # Name of the region of this request.
43193
+ # @param [String] network_policy
43194
+ # Name of the network policy resource to update.
43195
+ # @param [Google::Apis::ComputeAlpha::NetworkPolicyTrafficClassificationRule] network_policy_traffic_classification_rule_object
41629
43196
  # @param [Fixnum] priority
41630
- # The priority of the rule to remove from the firewall policy.
43197
+ # The priority of the traffic classification rule to patch. Only rules with a
43198
+ # priority value between 1 and 2147482647 (inclusive) can be patched.
41631
43199
  # @param [String] request_id
41632
43200
  # An optional request ID to identify requests. Specify a unique request ID so
41633
43201
  # that if you must retry your request, the server will know to ignore the
@@ -41657,13 +43225,15 @@ module Google
41657
43225
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41658
43226
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41659
43227
  # @raise [Google::Apis::AuthorizationError] Authorization is required
41660
- 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)
41661
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/firewallPolicies/{firewallPolicy}/removeRule', options)
43228
+ 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)
43229
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/patchTrafficClassificationRule', options)
43230
+ command.request_representation = Google::Apis::ComputeAlpha::NetworkPolicyTrafficClassificationRule::Representation
43231
+ command.request_object = network_policy_traffic_classification_rule_object
41662
43232
  command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
41663
43233
  command.response_class = Google::Apis::ComputeAlpha::Operation
41664
43234
  command.params['project'] = project unless project.nil?
41665
43235
  command.params['region'] = region unless region.nil?
41666
- command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
43236
+ command.params['networkPolicy'] = network_policy unless network_policy.nil?
41667
43237
  command.query['priority'] = priority unless priority.nil?
41668
43238
  command.query['requestId'] = request_id unless request_id.nil?
41669
43239
  command.query['fields'] = fields unless fields.nil?
@@ -41672,15 +43242,25 @@ module Google
41672
43242
  execute_or_queue_command(command, &block)
41673
43243
  end
41674
43244
 
41675
- # Sets the access control policy on the specified resource. Replaces any
41676
- # existing policy.
43245
+ # Removes an association for the specified network policy.
41677
43246
  # @param [String] project
41678
43247
  # Project ID for this request.
41679
43248
  # @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
43249
+ # Name of the region of this request.
43250
+ # @param [String] network_policy
43251
+ # Name of the network policy resource to update.
43252
+ # @param [String] name
43253
+ # Name for the association that will be removed.
43254
+ # @param [String] request_id
43255
+ # An optional request ID to identify requests. Specify a unique request ID so
43256
+ # that if you must retry your request, the server will know to ignore the
43257
+ # request if it has already been completed. For example, consider a situation
43258
+ # where you make an initial request and the request times out. If you make the
43259
+ # request again with the same request ID, the server can check if original
43260
+ # operation with the same request ID was received, and if so, will ignore the
43261
+ # second request. This prevents clients from accidentally creating duplicate
43262
+ # commitments. The request ID must be a valid UUID with the exception that zero
43263
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
41684
43264
  # @param [String] fields
41685
43265
  # Selector specifying which fields to include in a partial response.
41686
43266
  # @param [String] quota_user
@@ -41692,37 +43272,48 @@ module Google
41692
43272
  # Request-specific options
41693
43273
  #
41694
43274
  # @yield [result, err] Result & error if block supplied
41695
- # @yieldparam result [Google::Apis::ComputeAlpha::Policy] parsed result object
43275
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
41696
43276
  # @yieldparam err [StandardError] error object if request failed
41697
43277
  #
41698
- # @return [Google::Apis::ComputeAlpha::Policy]
43278
+ # @return [Google::Apis::ComputeAlpha::Operation]
41699
43279
  #
41700
43280
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41701
43281
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41702
43282
  # @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
43283
+ 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)
43284
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/removeAssociation', options)
43285
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
43286
+ command.response_class = Google::Apis::ComputeAlpha::Operation
41709
43287
  command.params['project'] = project unless project.nil?
41710
43288
  command.params['region'] = region unless region.nil?
41711
- command.params['resource'] = resource unless resource.nil?
43289
+ command.params['networkPolicy'] = network_policy unless network_policy.nil?
43290
+ command.query['name'] = name unless name.nil?
43291
+ command.query['requestId'] = request_id unless request_id.nil?
41712
43292
  command.query['fields'] = fields unless fields.nil?
41713
43293
  command.query['quotaUser'] = quota_user unless quota_user.nil?
41714
43294
  command.query['userIp'] = user_ip unless user_ip.nil?
41715
43295
  execute_or_queue_command(command, &block)
41716
43296
  end
41717
43297
 
41718
- # Returns permissions that a caller has on the specified resource.
43298
+ # Deletes a rule of the specified priority.
41719
43299
  # @param [String] project
41720
43300
  # Project ID for this request.
41721
43301
  # @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
43302
+ # Name of the region of this request.
43303
+ # @param [String] network_policy
43304
+ # Name of the network policy resource to update.
43305
+ # @param [Fixnum] priority
43306
+ # The priority of the rule to remove from the network policy.
43307
+ # @param [String] request_id
43308
+ # An optional request ID to identify requests. Specify a unique request ID so
43309
+ # that if you must retry your request, the server will know to ignore the
43310
+ # request if it has already been completed. For example, consider a situation
43311
+ # where you make an initial request and the request times out. If you make the
43312
+ # request again with the same request ID, the server can check if original
43313
+ # operation with the same request ID was received, and if so, will ignore the
43314
+ # second request. This prevents clients from accidentally creating duplicate
43315
+ # commitments. The request ID must be a valid UUID with the exception that zero
43316
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
41726
43317
  # @param [String] fields
41727
43318
  # Selector specifying which fields to include in a partial response.
41728
43319
  # @param [String] quota_user
@@ -41734,23 +43325,23 @@ module Google
41734
43325
  # Request-specific options
41735
43326
  #
41736
43327
  # @yield [result, err] Result & error if block supplied
41737
- # @yieldparam result [Google::Apis::ComputeAlpha::TestPermissionsResponse] parsed result object
43328
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
41738
43329
  # @yieldparam err [StandardError] error object if request failed
41739
43330
  #
41740
- # @return [Google::Apis::ComputeAlpha::TestPermissionsResponse]
43331
+ # @return [Google::Apis::ComputeAlpha::Operation]
41741
43332
  #
41742
43333
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
41743
43334
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
41744
43335
  # @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
43336
+ 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)
43337
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkPolicies/{networkPolicy}/removeTrafficClassificationRule', options)
43338
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
43339
+ command.response_class = Google::Apis::ComputeAlpha::Operation
41751
43340
  command.params['project'] = project unless project.nil?
41752
43341
  command.params['region'] = region unless region.nil?
41753
- command.params['resource'] = resource unless resource.nil?
43342
+ command.params['networkPolicy'] = network_policy unless network_policy.nil?
43343
+ command.query['priority'] = priority unless priority.nil?
43344
+ command.query['requestId'] = request_id unless request_id.nil?
41754
43345
  command.query['fields'] = fields unless fields.nil?
41755
43346
  command.query['quotaUser'] = quota_user unless quota_user.nil?
41756
43347
  command.query['userIp'] = user_ip unless user_ip.nil?
@@ -43398,6 +44989,57 @@ module Google
43398
44989
  execute_or_queue_command(command, &block)
43399
44990
  end
43400
44991
 
44992
+ # Rotates the customer-managed encryption key to the latest version for the
44993
+ # specified snapshot.
44994
+ # @param [String] project
44995
+ # Project ID for this request.
44996
+ # @param [String] region
44997
+ # Name of the region for this request.
44998
+ # @param [String] snapshot
44999
+ # Name of the snapshot resource to update. Should conform to RFC1035.
45000
+ # @param [String] request_id
45001
+ # An optional request ID to identify requests. Specify a unique request ID so
45002
+ # that if you must retry your request, the server will know to ignore the
45003
+ # request if it has already been completed. For example, consider a situation
45004
+ # where you make an initial request and the request times out. If you make the
45005
+ # request again with the same request ID, the server can check if original
45006
+ # operation with the same request ID was received, and if so, will ignore the
45007
+ # second request. This prevents clients from accidentally creating duplicate
45008
+ # commitments. The request ID must be a valid UUID with the exception that zero
45009
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
45010
+ # @param [String] fields
45011
+ # Selector specifying which fields to include in a partial response.
45012
+ # @param [String] quota_user
45013
+ # Available to use for quota purposes for server-side applications. Can be any
45014
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
45015
+ # @param [String] user_ip
45016
+ # Legacy name for parameter that has been superseded by `quotaUser`.
45017
+ # @param [Google::Apis::RequestOptions] options
45018
+ # Request-specific options
45019
+ #
45020
+ # @yield [result, err] Result & error if block supplied
45021
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
45022
+ # @yieldparam err [StandardError] error object if request failed
45023
+ #
45024
+ # @return [Google::Apis::ComputeAlpha::Operation]
45025
+ #
45026
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
45027
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
45028
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
45029
+ def update_region_snapshot_kms_key(project, region, snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
45030
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/snapshots/{snapshot}/updateKmsKey', options)
45031
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
45032
+ command.response_class = Google::Apis::ComputeAlpha::Operation
45033
+ command.params['project'] = project unless project.nil?
45034
+ command.params['region'] = region unless region.nil?
45035
+ command.params['snapshot'] = snapshot unless snapshot.nil?
45036
+ command.query['requestId'] = request_id unless request_id.nil?
45037
+ command.query['fields'] = fields unless fields.nil?
45038
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
45039
+ command.query['userIp'] = user_ip unless user_ip.nil?
45040
+ execute_or_queue_command(command, &block)
45041
+ end
45042
+
43401
45043
  # Deletes the specified SslCertificate resource in the region.
43402
45044
  # @param [String] project
43403
45045
  # Project ID for this request.
@@ -51449,6 +53091,54 @@ module Google
51449
53091
  execute_or_queue_command(command, &block)
51450
53092
  end
51451
53093
 
53094
+ # Rotates the customer-managed encryption key to the latest version for the
53095
+ # specified snapshot.
53096
+ # @param [String] project
53097
+ # Project ID for this request.
53098
+ # @param [String] snapshot
53099
+ # Name of the snapshot resource to update. Should conform to RFC1035.
53100
+ # @param [String] request_id
53101
+ # An optional request ID to identify requests. Specify a unique request ID so
53102
+ # that if you must retry your request, the server will know to ignore the
53103
+ # request if it has already been completed. For example, consider a situation
53104
+ # where you make an initial request and the request times out. If you make the
53105
+ # request again with the same request ID, the server can check if original
53106
+ # operation with the same request ID was received, and if so, will ignore the
53107
+ # second request. This prevents clients from accidentally creating duplicate
53108
+ # commitments. The request ID must be a valid UUID with the exception that zero
53109
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
53110
+ # @param [String] fields
53111
+ # Selector specifying which fields to include in a partial response.
53112
+ # @param [String] quota_user
53113
+ # Available to use for quota purposes for server-side applications. Can be any
53114
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
53115
+ # @param [String] user_ip
53116
+ # Legacy name for parameter that has been superseded by `quotaUser`.
53117
+ # @param [Google::Apis::RequestOptions] options
53118
+ # Request-specific options
53119
+ #
53120
+ # @yield [result, err] Result & error if block supplied
53121
+ # @yieldparam result [Google::Apis::ComputeAlpha::Operation] parsed result object
53122
+ # @yieldparam err [StandardError] error object if request failed
53123
+ #
53124
+ # @return [Google::Apis::ComputeAlpha::Operation]
53125
+ #
53126
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
53127
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
53128
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
53129
+ def update_snapshot_kms_key(project, snapshot, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
53130
+ command = make_simple_command(:post, 'projects/{project}/global/snapshots/{snapshot}/updateKmsKey', options)
53131
+ command.response_representation = Google::Apis::ComputeAlpha::Operation::Representation
53132
+ command.response_class = Google::Apis::ComputeAlpha::Operation
53133
+ command.params['project'] = project unless project.nil?
53134
+ command.params['snapshot'] = snapshot unless snapshot.nil?
53135
+ command.query['requestId'] = request_id unless request_id.nil?
53136
+ command.query['fields'] = fields unless fields.nil?
53137
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
53138
+ command.query['userIp'] = user_ip unless user_ip.nil?
53139
+ execute_or_queue_command(command, &block)
53140
+ end
53141
+
51452
53142
  # Retrieves the list of all SslCertificate resources, regional and global,
51453
53143
  # available to the specified project. To prevent failure, Google recommends that
51454
53144
  # you set the `returnPartialSuccess` parameter to `true`.