google-apis-compute_beta 0.106.0 → 0.108.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.
@@ -2158,6 +2158,42 @@ module Google
2158
2158
  execute_or_queue_command(command, &block)
2159
2159
  end
2160
2160
 
2161
+ # Returns effective security policies applied to this backend service.
2162
+ # @param [String] project
2163
+ # Project ID for this request.
2164
+ # @param [String] backend_service
2165
+ # Name of the Backend Service for this request.
2166
+ # @param [String] fields
2167
+ # Selector specifying which fields to include in a partial response.
2168
+ # @param [String] quota_user
2169
+ # Available to use for quota purposes for server-side applications. Can be any
2170
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
2171
+ # @param [String] user_ip
2172
+ # Legacy name for parameter that has been superseded by `quotaUser`.
2173
+ # @param [Google::Apis::RequestOptions] options
2174
+ # Request-specific options
2175
+ #
2176
+ # @yield [result, err] Result & error if block supplied
2177
+ # @yieldparam result [Google::Apis::ComputeBeta::BackendServicesGetEffectiveSecurityPoliciesResponse] parsed result object
2178
+ # @yieldparam err [StandardError] error object if request failed
2179
+ #
2180
+ # @return [Google::Apis::ComputeBeta::BackendServicesGetEffectiveSecurityPoliciesResponse]
2181
+ #
2182
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
2183
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
2184
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
2185
+ def get_backend_service_effective_security_policies(project, backend_service, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
2186
+ command = make_simple_command(:get, 'projects/{project}/global/backendServices/{backendService}/getEffectiveSecurityPolicies', options)
2187
+ command.response_representation = Google::Apis::ComputeBeta::BackendServicesGetEffectiveSecurityPoliciesResponse::Representation
2188
+ command.response_class = Google::Apis::ComputeBeta::BackendServicesGetEffectiveSecurityPoliciesResponse
2189
+ command.params['project'] = project unless project.nil?
2190
+ command.params['backendService'] = backend_service unless backend_service.nil?
2191
+ command.query['fields'] = fields unless fields.nil?
2192
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
2193
+ command.query['userIp'] = user_ip unless user_ip.nil?
2194
+ execute_or_queue_command(command, &block)
2195
+ end
2196
+
2161
2197
  # Gets the most recent health check results for this BackendService. Example
2162
2198
  # request body: ` "group": "/zones/us-east1-b/instanceGroups/lb-backend-example"
2163
2199
  # `
@@ -2378,8 +2414,7 @@ module Google
2378
2414
  execute_or_queue_command(command, &block)
2379
2415
  end
2380
2416
 
2381
- # Retrieves an aggregated list of all usable backend services in the specified
2382
- # project.
2417
+ # Retrieves a list of all usable backend services in the specified project.
2383
2418
  # @param [String] project
2384
2419
  # Project ID for this request.
2385
2420
  # @param [String] filter
@@ -7952,7 +7987,7 @@ module Google
7952
7987
  # @param [String] project
7953
7988
  # Project ID for this request.
7954
7989
  # @param [String] operation
7955
- # Name of the Operations resource to delete.
7990
+ # Name of the Operations resource to delete, or its unique numeric identifier.
7956
7991
  # @param [String] fields
7957
7992
  # Selector specifying which fields to include in a partial response.
7958
7993
  # @param [String] quota_user
@@ -7986,7 +8021,7 @@ module Google
7986
8021
  # @param [String] project
7987
8022
  # Project ID for this request.
7988
8023
  # @param [String] operation
7989
- # Name of the Operations resource to return.
8024
+ # Name of the Operations resource to return, or its unique numeric identifier.
7990
8025
  # @param [String] fields
7991
8026
  # Selector specifying which fields to include in a partial response.
7992
8027
  # @param [String] quota_user
@@ -8122,7 +8157,7 @@ module Google
8122
8157
  # @param [String] project
8123
8158
  # Project ID for this request.
8124
8159
  # @param [String] operation
8125
- # Name of the Operations resource to return.
8160
+ # Name of the Operations resource to return, or its unique numeric identifier.
8126
8161
  # @param [String] fields
8127
8162
  # Selector specifying which fields to include in a partial response.
8128
8163
  # @param [String] quota_user
@@ -8156,7 +8191,7 @@ module Google
8156
8191
 
8157
8192
  # Deletes the specified Operations resource.
8158
8193
  # @param [String] operation
8159
- # Name of the Operations resource to delete.
8194
+ # Name of the Operations resource to delete, or its unique numeric identifier.
8160
8195
  # @param [String] parent_id
8161
8196
  # Parent ID for this request.
8162
8197
  # @param [String] fields
@@ -8191,7 +8226,7 @@ module Google
8191
8226
  # Retrieves the specified Operations resource. Gets a list of operations by
8192
8227
  # making a `list()` request.
8193
8228
  # @param [String] operation
8194
- # Name of the Operations resource to return.
8229
+ # Name of the Operations resource to return, or its unique numeric identifier.
8195
8230
  # @param [String] parent_id
8196
8231
  # Parent ID for this request.
8197
8232
  # @param [String] fields
@@ -14048,6 +14083,8 @@ module Google
14048
14083
  # The name of the zone for this request.
14049
14084
  # @param [String] instance
14050
14085
  # Name of the instance resource to delete.
14086
+ # @param [Boolean] no_graceful_shutdown
14087
+ # If set to true, Graceful Shutdown is skipped.
14051
14088
  # @param [String] request_id
14052
14089
  # An optional request ID to identify requests. Specify a unique request ID so
14053
14090
  # that if you must retry your request, the server will know to ignore the
@@ -14077,13 +14114,14 @@ module Google
14077
14114
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
14078
14115
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
14079
14116
  # @raise [Google::Apis::AuthorizationError] Authorization is required
14080
- def delete_instance(project, zone, instance, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14117
+ def delete_instance(project, zone, instance, no_graceful_shutdown: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
14081
14118
  command = make_simple_command(:delete, 'projects/{project}/zones/{zone}/instances/{instance}', options)
14082
14119
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
14083
14120
  command.response_class = Google::Apis::ComputeBeta::Operation
14084
14121
  command.params['project'] = project unless project.nil?
14085
14122
  command.params['zone'] = zone unless zone.nil?
14086
14123
  command.params['instance'] = instance unless instance.nil?
14124
+ command.query['noGracefulShutdown'] = no_graceful_shutdown unless no_graceful_shutdown.nil?
14087
14125
  command.query['requestId'] = request_id unless request_id.nil?
14088
14126
  command.query['fields'] = fields unless fields.nil?
14089
14127
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -14474,7 +14512,9 @@ module Google
14474
14512
  # and the adjusted start position is returned as the `start` property value. You
14475
14513
  # can also provide a negative start position, which translates to the most
14476
14514
  # recent number of bytes written to the serial port. For example, -3 is
14477
- # interpreted as the most recent 3 bytes written to the serial console.
14515
+ # interpreted as the most recent 3 bytes written to the serial console. Note
14516
+ # that the negative start is bounded by the retained buffer size, and the
14517
+ # returned serial console output will not exceed the max buffer size.
14478
14518
  # @param [String] fields
14479
14519
  # Selector specifying which fields to include in a partial response.
14480
14520
  # @param [String] quota_user
@@ -16128,6 +16168,8 @@ module Google
16128
16168
  # This property is required if the instance has any attached Local SSD disks. If
16129
16169
  # false, Local SSD data will be preserved when the instance is suspended. If
16130
16170
  # true, the contents of any attached Local SSD disks will be discarded.
16171
+ # @param [Boolean] no_graceful_shutdown
16172
+ # If set to true, Graceful Shutdown is skipped.
16131
16173
  # @param [String] request_id
16132
16174
  # An optional request ID to identify requests. Specify a unique request ID so
16133
16175
  # that if you must retry your request, the server will know to ignore the
@@ -16157,7 +16199,7 @@ module Google
16157
16199
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
16158
16200
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
16159
16201
  # @raise [Google::Apis::AuthorizationError] Authorization is required
16160
- def stop_instance(project, zone, instance, discard_local_ssd: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16202
+ def stop_instance(project, zone, instance, discard_local_ssd: nil, no_graceful_shutdown: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
16161
16203
  command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/stop', options)
16162
16204
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
16163
16205
  command.response_class = Google::Apis::ComputeBeta::Operation
@@ -16165,6 +16207,7 @@ module Google
16165
16207
  command.params['zone'] = zone unless zone.nil?
16166
16208
  command.params['instance'] = instance unless instance.nil?
16167
16209
  command.query['discardLocalSsd'] = discard_local_ssd unless discard_local_ssd.nil?
16210
+ command.query['noGracefulShutdown'] = no_graceful_shutdown unless no_graceful_shutdown.nil?
16168
16211
  command.query['requestId'] = request_id unless request_id.nil?
16169
16212
  command.query['fields'] = fields unless fields.nil?
16170
16213
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -21768,6 +21811,133 @@ module Google
21768
21811
  execute_or_queue_command(command, &block)
21769
21812
  end
21770
21813
 
21814
+ # Returns the specified network profile.
21815
+ # @param [String] project
21816
+ # Project ID for this request.
21817
+ # @param [String] network_profile
21818
+ # Name of the network profile to return.
21819
+ # @param [String] fields
21820
+ # Selector specifying which fields to include in a partial response.
21821
+ # @param [String] quota_user
21822
+ # Available to use for quota purposes for server-side applications. Can be any
21823
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
21824
+ # @param [String] user_ip
21825
+ # Legacy name for parameter that has been superseded by `quotaUser`.
21826
+ # @param [Google::Apis::RequestOptions] options
21827
+ # Request-specific options
21828
+ #
21829
+ # @yield [result, err] Result & error if block supplied
21830
+ # @yieldparam result [Google::Apis::ComputeBeta::NetworkProfile] parsed result object
21831
+ # @yieldparam err [StandardError] error object if request failed
21832
+ #
21833
+ # @return [Google::Apis::ComputeBeta::NetworkProfile]
21834
+ #
21835
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
21836
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
21837
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
21838
+ def get_network_profile(project, network_profile, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
21839
+ command = make_simple_command(:get, 'projects/{project}/global/networkProfiles/{networkProfile}', options)
21840
+ command.response_representation = Google::Apis::ComputeBeta::NetworkProfile::Representation
21841
+ command.response_class = Google::Apis::ComputeBeta::NetworkProfile
21842
+ command.params['project'] = project unless project.nil?
21843
+ command.params['networkProfile'] = network_profile unless network_profile.nil?
21844
+ command.query['fields'] = fields unless fields.nil?
21845
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
21846
+ command.query['userIp'] = user_ip unless user_ip.nil?
21847
+ execute_or_queue_command(command, &block)
21848
+ end
21849
+
21850
+ # Retrieves a list of network profiles available to the specified project.
21851
+ # @param [String] project
21852
+ # Project ID for this request.
21853
+ # @param [String] filter
21854
+ # A filter expression that filters resources listed in the response. Most
21855
+ # Compute resources support two types of filter expressions: expressions that
21856
+ # support regular expressions and expressions that follow API improvement
21857
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
21858
+ # request. If you want to use AIP-160, your expression must specify the field
21859
+ # name, an operator, and the value that you want to use for filtering. The value
21860
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
21861
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
21862
+ # Engine instances, you can exclude instances named `example-instance` by
21863
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
21864
+ # whether a key has been defined. For example, to find all objects with `owner`
21865
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
21866
+ # example, you could specify `scheduling.automaticRestart = false` to include
21867
+ # instances only if they are not scheduled for automatic restarts. You can use
21868
+ # filtering on nested fields to filter based on resource labels. To filter on
21869
+ # multiple expressions, provide each separate expression within parentheses. For
21870
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
21871
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
21872
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
21873
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
21874
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
21875
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
21876
+ # un-parenthesized expression with or without quotes or against multiple
21877
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
21878
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
21879
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
21880
+ # interpreted as a regular expression using Google RE2 library syntax. The
21881
+ # literal value must match the entire field. For example, to filter for
21882
+ # instances that do not end with name "instance", you would use `name ne .*
21883
+ # instance`. You cannot combine constraints on multiple fields using regular
21884
+ # expressions.
21885
+ # @param [Fixnum] max_results
21886
+ # The maximum number of results per page that should be returned. If the number
21887
+ # of available results is larger than `maxResults`, Compute Engine returns a `
21888
+ # nextPageToken` that can be used to get the next page of results in subsequent
21889
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
21890
+ # @param [String] order_by
21891
+ # Sorts list results by a certain order. By default, results are returned in
21892
+ # alphanumerical order based on the resource name. You can also sort results in
21893
+ # descending order based on the creation timestamp using `orderBy="
21894
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
21895
+ # field in reverse chronological order (newest result first). Use this to sort
21896
+ # resources like operations so that the newest operation is returned first.
21897
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
21898
+ # @param [String] page_token
21899
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
21900
+ # by a previous list request to get the next page of results.
21901
+ # @param [Boolean] return_partial_success
21902
+ # Opt-in for partial success behavior which provides partial results in case of
21903
+ # failure. The default value is false. For example, when partial success
21904
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
21905
+ # resources in the zone or no resources, with an error code.
21906
+ # @param [String] fields
21907
+ # Selector specifying which fields to include in a partial response.
21908
+ # @param [String] quota_user
21909
+ # Available to use for quota purposes for server-side applications. Can be any
21910
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
21911
+ # @param [String] user_ip
21912
+ # Legacy name for parameter that has been superseded by `quotaUser`.
21913
+ # @param [Google::Apis::RequestOptions] options
21914
+ # Request-specific options
21915
+ #
21916
+ # @yield [result, err] Result & error if block supplied
21917
+ # @yieldparam result [Google::Apis::ComputeBeta::NetworkProfilesListResponse] parsed result object
21918
+ # @yieldparam err [StandardError] error object if request failed
21919
+ #
21920
+ # @return [Google::Apis::ComputeBeta::NetworkProfilesListResponse]
21921
+ #
21922
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
21923
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
21924
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
21925
+ def list_network_profiles(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)
21926
+ command = make_simple_command(:get, 'projects/{project}/global/networkProfiles', options)
21927
+ command.response_representation = Google::Apis::ComputeBeta::NetworkProfilesListResponse::Representation
21928
+ command.response_class = Google::Apis::ComputeBeta::NetworkProfilesListResponse
21929
+ command.params['project'] = project unless project.nil?
21930
+ command.query['filter'] = filter unless filter.nil?
21931
+ command.query['maxResults'] = max_results unless max_results.nil?
21932
+ command.query['orderBy'] = order_by unless order_by.nil?
21933
+ command.query['pageToken'] = page_token unless page_token.nil?
21934
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
21935
+ command.query['fields'] = fields unless fields.nil?
21936
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
21937
+ command.query['userIp'] = user_ip unless user_ip.nil?
21938
+ execute_or_queue_command(command, &block)
21939
+ end
21940
+
21771
21941
  # Adds a peering to the specified network.
21772
21942
  # @param [String] project
21773
21943
  # Project ID for this request.
@@ -24480,21 +24650,63 @@ module Google
24480
24650
  execute_or_queue_command(command, &block)
24481
24651
  end
24482
24652
 
24483
- # Moves the specified security policy.
24484
- # @param [String] security_policy
24485
- # Name of the security policy to update.
24653
+ # Gets the current list of preconfigured Web Application Firewall (WAF)
24654
+ # expressions.
24655
+ # @param [String] filter
24656
+ # A filter expression that filters resources listed in the response. Most
24657
+ # Compute resources support two types of filter expressions: expressions that
24658
+ # support regular expressions and expressions that follow API improvement
24659
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
24660
+ # request. If you want to use AIP-160, your expression must specify the field
24661
+ # name, an operator, and the value that you want to use for filtering. The value
24662
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
24663
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
24664
+ # Engine instances, you can exclude instances named `example-instance` by
24665
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
24666
+ # whether a key has been defined. For example, to find all objects with `owner`
24667
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
24668
+ # example, you could specify `scheduling.automaticRestart = false` to include
24669
+ # instances only if they are not scheduled for automatic restarts. You can use
24670
+ # filtering on nested fields to filter based on resource labels. To filter on
24671
+ # multiple expressions, provide each separate expression within parentheses. For
24672
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
24673
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
24674
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
24675
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
24676
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
24677
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
24678
+ # un-parenthesized expression with or without quotes or against multiple
24679
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
24680
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
24681
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
24682
+ # interpreted as a regular expression using Google RE2 library syntax. The
24683
+ # literal value must match the entire field. For example, to filter for
24684
+ # instances that do not end with name "instance", you would use `name ne .*
24685
+ # instance`. You cannot combine constraints on multiple fields using regular
24686
+ # expressions.
24687
+ # @param [Fixnum] max_results
24688
+ # The maximum number of results per page that should be returned. If the number
24689
+ # of available results is larger than `maxResults`, Compute Engine returns a `
24690
+ # nextPageToken` that can be used to get the next page of results in subsequent
24691
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
24692
+ # @param [String] order_by
24693
+ # Sorts list results by a certain order. By default, results are returned in
24694
+ # alphanumerical order based on the resource name. You can also sort results in
24695
+ # descending order based on the creation timestamp using `orderBy="
24696
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
24697
+ # field in reverse chronological order (newest result first). Use this to sort
24698
+ # resources like operations so that the newest operation is returned first.
24699
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
24700
+ # @param [String] page_token
24701
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
24702
+ # by a previous list request to get the next page of results.
24486
24703
  # @param [String] parent_id
24487
- # The new parent of the security policy.
24488
- # @param [String] request_id
24489
- # An optional request ID to identify requests. Specify a unique request ID so
24490
- # that if you must retry your request, the server will know to ignore the
24491
- # request if it has already been completed. For example, consider a situation
24492
- # where you make an initial request and the request times out. If you make the
24493
- # request again with the same request ID, the server can check if original
24494
- # operation with the same request ID was received, and if so, will ignore the
24495
- # second request. This prevents clients from accidentally creating duplicate
24496
- # commitments. The request ID must be a valid UUID with the exception that zero
24497
- # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
24704
+ # Parent ID for this request.
24705
+ # @param [Boolean] return_partial_success
24706
+ # Opt-in for partial success behavior which provides partial results in case of
24707
+ # failure. The default value is false. For example, when partial success
24708
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
24709
+ # resources in the zone or no resources, with an error code.
24498
24710
  # @param [String] fields
24499
24711
  # Selector specifying which fields to include in a partial response.
24500
24712
  # @param [String] quota_user
@@ -24506,31 +24718,35 @@ module Google
24506
24718
  # Request-specific options
24507
24719
  #
24508
24720
  # @yield [result, err] Result & error if block supplied
24509
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
24721
+ # @yieldparam result [Google::Apis::ComputeBeta::SecurityPoliciesListPreconfiguredExpressionSetsResponse] parsed result object
24510
24722
  # @yieldparam err [StandardError] error object if request failed
24511
24723
  #
24512
- # @return [Google::Apis::ComputeBeta::Operation]
24724
+ # @return [Google::Apis::ComputeBeta::SecurityPoliciesListPreconfiguredExpressionSetsResponse]
24513
24725
  #
24514
24726
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24515
24727
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24516
24728
  # @raise [Google::Apis::AuthorizationError] Authorization is required
24517
- def move_organization_security_policy(security_policy, parent_id: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24518
- command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/move', options)
24519
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
24520
- command.response_class = Google::Apis::ComputeBeta::Operation
24521
- command.params['securityPolicy'] = security_policy unless security_policy.nil?
24729
+ def list_organization_security_policy_preconfigured_expression_sets(filter: nil, max_results: nil, order_by: nil, page_token: nil, parent_id: nil, return_partial_success: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24730
+ command = make_simple_command(:get, 'locations/global/securityPolicies/listPreconfiguredExpressionSets', options)
24731
+ command.response_representation = Google::Apis::ComputeBeta::SecurityPoliciesListPreconfiguredExpressionSetsResponse::Representation
24732
+ command.response_class = Google::Apis::ComputeBeta::SecurityPoliciesListPreconfiguredExpressionSetsResponse
24733
+ command.query['filter'] = filter unless filter.nil?
24734
+ command.query['maxResults'] = max_results unless max_results.nil?
24735
+ command.query['orderBy'] = order_by unless order_by.nil?
24736
+ command.query['pageToken'] = page_token unless page_token.nil?
24522
24737
  command.query['parentId'] = parent_id unless parent_id.nil?
24523
- command.query['requestId'] = request_id unless request_id.nil?
24738
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
24524
24739
  command.query['fields'] = fields unless fields.nil?
24525
24740
  command.query['quotaUser'] = quota_user unless quota_user.nil?
24526
24741
  command.query['userIp'] = user_ip unless user_ip.nil?
24527
24742
  execute_or_queue_command(command, &block)
24528
24743
  end
24529
24744
 
24530
- # Patches the specified policy with the data included in the request.
24745
+ # Moves the specified security policy.
24531
24746
  # @param [String] security_policy
24532
24747
  # Name of the security policy to update.
24533
- # @param [Google::Apis::ComputeBeta::SecurityPolicy] security_policy_object
24748
+ # @param [String] parent_id
24749
+ # The new parent of the security policy.
24534
24750
  # @param [String] request_id
24535
24751
  # An optional request ID to identify requests. Specify a unique request ID so
24536
24752
  # that if you must retry your request, the server will know to ignore the
@@ -24560,13 +24776,12 @@ module Google
24560
24776
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24561
24777
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24562
24778
  # @raise [Google::Apis::AuthorizationError] Authorization is required
24563
- 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)
24564
- command = make_simple_command(:patch, 'locations/global/securityPolicies/{securityPolicy}', options)
24565
- command.request_representation = Google::Apis::ComputeBeta::SecurityPolicy::Representation
24566
- command.request_object = security_policy_object
24779
+ def move_organization_security_policy(security_policy, parent_id: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
24780
+ command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/move', options)
24567
24781
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
24568
24782
  command.response_class = Google::Apis::ComputeBeta::Operation
24569
24783
  command.params['securityPolicy'] = security_policy unless security_policy.nil?
24784
+ command.query['parentId'] = parent_id unless parent_id.nil?
24570
24785
  command.query['requestId'] = request_id unless request_id.nil?
24571
24786
  command.query['fields'] = fields unless fields.nil?
24572
24787
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -24574,12 +24789,10 @@ module Google
24574
24789
  execute_or_queue_command(command, &block)
24575
24790
  end
24576
24791
 
24577
- # Patches a rule at the specified priority.
24792
+ # Patches the specified policy with the data included in the request.
24578
24793
  # @param [String] security_policy
24579
24794
  # Name of the security policy to update.
24580
- # @param [Google::Apis::ComputeBeta::SecurityPolicyRule] security_policy_rule_object
24581
- # @param [Fixnum] priority
24582
- # The priority of the rule to patch.
24795
+ # @param [Google::Apis::ComputeBeta::SecurityPolicy] security_policy_object
24583
24796
  # @param [String] request_id
24584
24797
  # An optional request ID to identify requests. Specify a unique request ID so
24585
24798
  # that if you must retry your request, the server will know to ignore the
@@ -24609,14 +24822,13 @@ module Google
24609
24822
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24610
24823
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24611
24824
  # @raise [Google::Apis::AuthorizationError] Authorization is required
24612
- 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)
24613
- command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/patchRule', options)
24614
- command.request_representation = Google::Apis::ComputeBeta::SecurityPolicyRule::Representation
24615
- command.request_object = security_policy_rule_object
24825
+ 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)
24826
+ command = make_simple_command(:patch, 'locations/global/securityPolicies/{securityPolicy}', options)
24827
+ command.request_representation = Google::Apis::ComputeBeta::SecurityPolicy::Representation
24828
+ command.request_object = security_policy_object
24616
24829
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
24617
24830
  command.response_class = Google::Apis::ComputeBeta::Operation
24618
24831
  command.params['securityPolicy'] = security_policy unless security_policy.nil?
24619
- command.query['priority'] = priority unless priority.nil?
24620
24832
  command.query['requestId'] = request_id unless request_id.nil?
24621
24833
  command.query['fields'] = fields unless fields.nil?
24622
24834
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -24624,11 +24836,61 @@ module Google
24624
24836
  execute_or_queue_command(command, &block)
24625
24837
  end
24626
24838
 
24627
- # Removes an association for the specified security policy.
24839
+ # Patches a rule at the specified priority.
24628
24840
  # @param [String] security_policy
24629
24841
  # Name of the security policy to update.
24630
- # @param [String] name
24631
- # Name for the attachment that will be removed.
24842
+ # @param [Google::Apis::ComputeBeta::SecurityPolicyRule] security_policy_rule_object
24843
+ # @param [Fixnum] priority
24844
+ # The priority of the rule to patch.
24845
+ # @param [String] request_id
24846
+ # An optional request ID to identify requests. Specify a unique request ID so
24847
+ # that if you must retry your request, the server will know to ignore the
24848
+ # request if it has already been completed. For example, consider a situation
24849
+ # where you make an initial request and the request times out. If you make the
24850
+ # request again with the same request ID, the server can check if original
24851
+ # operation with the same request ID was received, and if so, will ignore the
24852
+ # second request. This prevents clients from accidentally creating duplicate
24853
+ # commitments. The request ID must be a valid UUID with the exception that zero
24854
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
24855
+ # @param [String] fields
24856
+ # Selector specifying which fields to include in a partial response.
24857
+ # @param [String] quota_user
24858
+ # Available to use for quota purposes for server-side applications. Can be any
24859
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
24860
+ # @param [String] user_ip
24861
+ # Legacy name for parameter that has been superseded by `quotaUser`.
24862
+ # @param [Google::Apis::RequestOptions] options
24863
+ # Request-specific options
24864
+ #
24865
+ # @yield [result, err] Result & error if block supplied
24866
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
24867
+ # @yieldparam err [StandardError] error object if request failed
24868
+ #
24869
+ # @return [Google::Apis::ComputeBeta::Operation]
24870
+ #
24871
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
24872
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
24873
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
24874
+ 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)
24875
+ command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/patchRule', options)
24876
+ command.request_representation = Google::Apis::ComputeBeta::SecurityPolicyRule::Representation
24877
+ command.request_object = security_policy_rule_object
24878
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
24879
+ command.response_class = Google::Apis::ComputeBeta::Operation
24880
+ command.params['securityPolicy'] = security_policy unless security_policy.nil?
24881
+ command.query['priority'] = priority unless priority.nil?
24882
+ command.query['requestId'] = request_id unless request_id.nil?
24883
+ command.query['fields'] = fields unless fields.nil?
24884
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
24885
+ command.query['userIp'] = user_ip unless user_ip.nil?
24886
+ execute_or_queue_command(command, &block)
24887
+ end
24888
+
24889
+ # Removes an association for the specified security policy.
24890
+ # @param [String] security_policy
24891
+ # Name of the security policy to update.
24892
+ # @param [String] name
24893
+ # Name for the attachment that will be removed.
24632
24894
  # @param [String] request_id
24633
24895
  # An optional request ID to identify requests. Specify a unique request ID so
24634
24896
  # that if you must retry your request, the server will know to ignore the
@@ -27511,8 +27773,8 @@ module Google
27511
27773
  execute_or_queue_command(command, &block)
27512
27774
  end
27513
27775
 
27514
- # Retrieves an aggregated list of all usable backend services in the specified
27515
- # project in the given region.
27776
+ # Retrieves a list of all usable backend services in the specified project in
27777
+ # the given region.
27516
27778
  # @param [String] project
27517
27779
  # Project ID for this request.
27518
27780
  # @param [String] region
@@ -30056,25 +30318,19 @@ module Google
30056
30318
  execute_or_queue_command(command, &block)
30057
30319
  end
30058
30320
 
30059
- # Flags the specified instances to be immediately removed from the managed
30060
- # instance group. Abandoning an instance does not delete the instance, but it
30061
- # does remove the instance from any target pools that are applied by the managed
30062
- # instance group. This method reduces the targetSize of the managed instance
30063
- # group by the number of instances that you abandon. This operation is marked as
30064
- # DONE when the action is scheduled even if the instances have not yet been
30065
- # removed from the group. You must separately verify the status of the
30066
- # abandoning action with the listmanagedinstances method. If the group is part
30067
- # of a backend service that has enabled connection draining, it can take up to
30068
- # 60 seconds after the connection draining duration has elapsed before the VM
30069
- # instance is removed or deleted. You can specify a maximum of 1000 instances
30070
- # with this method per request.
30321
+ # Cancels the specified resize request. Cancelled resize request no longer waits
30322
+ # for the resources to be provisioned. Cancel is only possible for requests that
30323
+ # are in accepted state.
30071
30324
  # @param [String] project
30072
30325
  # Project ID for this request.
30073
30326
  # @param [String] region
30074
- # Name of the region scoping this request.
30327
+ # The name of the region scoping this request. Name should conform to RFC1035.
30075
30328
  # @param [String] instance_group_manager
30076
- # Name of the managed instance group.
30077
- # @param [Google::Apis::ComputeBeta::RegionInstanceGroupManagersAbandonInstancesRequest] region_instance_group_managers_abandon_instances_request_object
30329
+ # The name of the managed instance group. Name should conform to RFC1035 or be a
30330
+ # resource ID.
30331
+ # @param [String] resize_request
30332
+ # The name of the resize request to cancel. Name should conform to RFC1035 or be
30333
+ # a resource ID.
30078
30334
  # @param [String] request_id
30079
30335
  # An optional request ID to identify requests. Specify a unique request ID so
30080
30336
  # that if you must retry your request, the server will know to ignore the
@@ -30104,15 +30360,14 @@ module Google
30104
30360
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30105
30361
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30106
30362
  # @raise [Google::Apis::AuthorizationError] Authorization is required
30107
- def abandon_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_abandon_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30108
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances', options)
30109
- command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersAbandonInstancesRequest::Representation
30110
- command.request_object = region_instance_group_managers_abandon_instances_request_object
30363
+ def cancel_region_instance_group_manager_resize_request(project, region, instance_group_manager, resize_request, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30364
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel', options)
30111
30365
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
30112
30366
  command.response_class = Google::Apis::ComputeBeta::Operation
30113
30367
  command.params['project'] = project unless project.nil?
30114
30368
  command.params['region'] = region unless region.nil?
30115
30369
  command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
30370
+ command.params['resizeRequest'] = resize_request unless resize_request.nil?
30116
30371
  command.query['requestId'] = request_id unless request_id.nil?
30117
30372
  command.query['fields'] = fields unless fields.nil?
30118
30373
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -30120,14 +30375,29 @@ module Google
30120
30375
  execute_or_queue_command(command, &block)
30121
30376
  end
30122
30377
 
30123
- # Apply updates to selected instances the managed instance group.
30378
+ # Deletes the specified, inactive resize request. Requests that are still active
30379
+ # cannot be deleted. Deleting request does not delete instances that were
30380
+ # provisioned previously.
30124
30381
  # @param [String] project
30125
30382
  # Project ID for this request.
30126
30383
  # @param [String] region
30127
- # Name of the region scoping this request, should conform to RFC1035.
30384
+ # The name of the region scoping this request. Name should conform to RFC1035.
30128
30385
  # @param [String] instance_group_manager
30129
- # The name of the managed instance group, should conform to RFC1035.
30130
- # @param [Google::Apis::ComputeBeta::RegionInstanceGroupManagersApplyUpdatesRequest] region_instance_group_managers_apply_updates_request_object
30386
+ # The name of the managed instance group. Name should conform to RFC1035 or be a
30387
+ # resource ID.
30388
+ # @param [String] resize_request
30389
+ # The name of the resize request to delete. Name should conform to RFC1035 or be
30390
+ # a resource ID.
30391
+ # @param [String] request_id
30392
+ # An optional request ID to identify requests. Specify a unique request ID so
30393
+ # that if you must retry your request, the server will know to ignore the
30394
+ # request if it has already been completed. For example, consider a situation
30395
+ # where you make an initial request and the request times out. If you make the
30396
+ # request again with the same request ID, the server can check if original
30397
+ # operation with the same request ID was received, and if so, will ignore the
30398
+ # second request. This prevents clients from accidentally creating duplicate
30399
+ # commitments. The request ID must be a valid UUID with the exception that zero
30400
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
30131
30401
  # @param [String] fields
30132
30402
  # Selector specifying which fields to include in a partial response.
30133
30403
  # @param [String] quota_user
@@ -30147,44 +30417,32 @@ module Google
30147
30417
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30148
30418
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30149
30419
  # @raise [Google::Apis::AuthorizationError] Authorization is required
30150
- def apply_region_instance_group_manager_updates_to_instances(project, region, instance_group_manager, region_instance_group_managers_apply_updates_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30151
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances', options)
30152
- command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersApplyUpdatesRequest::Representation
30153
- command.request_object = region_instance_group_managers_apply_updates_request_object
30420
+ def delete_region_instance_group_manager_resize_request(project, region, instance_group_manager, resize_request, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30421
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}', options)
30154
30422
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
30155
30423
  command.response_class = Google::Apis::ComputeBeta::Operation
30156
30424
  command.params['project'] = project unless project.nil?
30157
30425
  command.params['region'] = region unless region.nil?
30158
30426
  command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
30427
+ command.params['resizeRequest'] = resize_request unless resize_request.nil?
30428
+ command.query['requestId'] = request_id unless request_id.nil?
30159
30429
  command.query['fields'] = fields unless fields.nil?
30160
30430
  command.query['quotaUser'] = quota_user unless quota_user.nil?
30161
30431
  command.query['userIp'] = user_ip unless user_ip.nil?
30162
30432
  execute_or_queue_command(command, &block)
30163
30433
  end
30164
30434
 
30165
- # Creates instances with per-instance configurations in this regional managed
30166
- # instance group. Instances are created using the current instance template. The
30167
- # create instances operation is marked DONE if the createInstances request is
30168
- # successful. The underlying actions take additional time. You must separately
30169
- # verify the status of the creating or actions with the listmanagedinstances
30170
- # method.
30435
+ # Returns all of the details about the specified resize request.
30171
30436
  # @param [String] project
30172
30437
  # Project ID for this request.
30173
30438
  # @param [String] region
30174
- # The name of the region where the managed instance group is located. It should
30175
- # conform to RFC1035.
30439
+ # The name of the region scoping this request. Name should conform to RFC1035.
30176
30440
  # @param [String] instance_group_manager
30177
- # The name of the managed instance group. It should conform to RFC1035.
30178
- # @param [Google::Apis::ComputeBeta::RegionInstanceGroupManagersCreateInstancesRequest] region_instance_group_managers_create_instances_request_object
30179
- # @param [String] request_id
30180
- # An optional request ID to identify requests. Specify a unique request ID so
30181
- # that if you must retry your request, the server will know to ignore the
30182
- # request if it has already been completed. For example, consider a situation
30183
- # where you make an initial request and the request times out. If you make the
30184
- # request again with the same request ID, the server can check if original
30185
- # operation with the same request ID was received, and if so, will ignore the
30186
- # second request. The request ID must be a valid UUID with the exception that
30187
- # zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
30441
+ # The name of the managed instance group. Name should conform to RFC1035 or be a
30442
+ # resource ID.
30443
+ # @param [String] resize_request
30444
+ # The name of the resize request. Name should conform to RFC1035 or be a
30445
+ # resource ID.
30188
30446
  # @param [String] fields
30189
30447
  # Selector specifying which fields to include in a partial response.
30190
30448
  # @param [String] quota_user
@@ -30196,38 +30454,38 @@ module Google
30196
30454
  # Request-specific options
30197
30455
  #
30198
30456
  # @yield [result, err] Result & error if block supplied
30199
- # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
30457
+ # @yieldparam result [Google::Apis::ComputeBeta::InstanceGroupManagerResizeRequest] parsed result object
30200
30458
  # @yieldparam err [StandardError] error object if request failed
30201
30459
  #
30202
- # @return [Google::Apis::ComputeBeta::Operation]
30460
+ # @return [Google::Apis::ComputeBeta::InstanceGroupManagerResizeRequest]
30203
30461
  #
30204
30462
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30205
30463
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30206
30464
  # @raise [Google::Apis::AuthorizationError] Authorization is required
30207
- def create_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_create_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30208
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances', options)
30209
- command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersCreateInstancesRequest::Representation
30210
- command.request_object = region_instance_group_managers_create_instances_request_object
30211
- command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
30212
- command.response_class = Google::Apis::ComputeBeta::Operation
30465
+ def get_region_instance_group_manager_resize_request(project, region, instance_group_manager, resize_request, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30466
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}', options)
30467
+ command.response_representation = Google::Apis::ComputeBeta::InstanceGroupManagerResizeRequest::Representation
30468
+ command.response_class = Google::Apis::ComputeBeta::InstanceGroupManagerResizeRequest
30213
30469
  command.params['project'] = project unless project.nil?
30214
30470
  command.params['region'] = region unless region.nil?
30215
30471
  command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
30216
- command.query['requestId'] = request_id unless request_id.nil?
30472
+ command.params['resizeRequest'] = resize_request unless resize_request.nil?
30217
30473
  command.query['fields'] = fields unless fields.nil?
30218
30474
  command.query['quotaUser'] = quota_user unless quota_user.nil?
30219
30475
  command.query['userIp'] = user_ip unless user_ip.nil?
30220
30476
  execute_or_queue_command(command, &block)
30221
30477
  end
30222
30478
 
30223
- # Deletes the specified managed instance group and all of the instances in that
30224
- # group.
30479
+ # Creates a new Resize Request that starts provisioning VMs immediately or
30480
+ # queues VM creation.
30225
30481
  # @param [String] project
30226
30482
  # Project ID for this request.
30227
30483
  # @param [String] region
30228
- # Name of the region scoping this request.
30484
+ # Name of the region scoping this request. Name should conform to RFC1035.
30229
30485
  # @param [String] instance_group_manager
30230
- # Name of the managed instance group to delete.
30486
+ # Name of the managed instance group to which the resize request is scoped. Name
30487
+ # should conform to RFC1035 or be a resource ID.
30488
+ # @param [Google::Apis::ComputeBeta::InstanceGroupManagerResizeRequest] instance_group_manager_resize_request_object
30231
30489
  # @param [String] request_id
30232
30490
  # An optional request ID to identify requests. Specify a unique request ID so
30233
30491
  # that if you must retry your request, the server will know to ignore the
@@ -30257,8 +30515,10 @@ module Google
30257
30515
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30258
30516
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30259
30517
  # @raise [Google::Apis::AuthorizationError] Authorization is required
30260
- def delete_region_instance_group_manager(project, region, instance_group_manager, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30261
- command = make_simple_command(:delete, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options)
30518
+ def insert_region_instance_group_manager_resize_request(project, region, instance_group_manager, instance_group_manager_resize_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30519
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests', options)
30520
+ command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManagerResizeRequest::Representation
30521
+ command.request_object = instance_group_manager_resize_request_object
30262
30522
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
30263
30523
  command.response_class = Google::Apis::ComputeBeta::Operation
30264
30524
  command.params['project'] = project unless project.nil?
@@ -30271,15 +30531,114 @@ module Google
30271
30531
  execute_or_queue_command(command, &block)
30272
30532
  end
30273
30533
 
30274
- # Flags the specified instances in the managed instance group to be immediately
30275
- # deleted. The instances are also removed from any target pools of which they
30276
- # were a member. This method reduces the targetSize of the managed instance
30277
- # group by the number of instances that you delete. The deleteInstances
30278
- # operation is marked DONE if the deleteInstances request is successful. The
30279
- # underlying actions take additional time. You must separately verify the status
30280
- # of the deleting action with the listmanagedinstances method. If the group is
30281
- # part of a backend service that has enabled connection draining, it can take up
30282
- # to 60 seconds after the connection draining duration has elapsed before the VM
30534
+ # Retrieves a list of Resize Requests that are contained in the managed instance
30535
+ # group.
30536
+ # @param [String] project
30537
+ # Project ID for this request.
30538
+ # @param [String] region
30539
+ # Name of the region scoping this request. Name should conform to RFC1035.
30540
+ # @param [String] instance_group_manager
30541
+ # The name of the managed instance group. The name should conform to RFC1035.
30542
+ # @param [String] filter
30543
+ # A filter expression that filters resources listed in the response. Most
30544
+ # Compute resources support two types of filter expressions: expressions that
30545
+ # support regular expressions and expressions that follow API improvement
30546
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
30547
+ # request. If you want to use AIP-160, your expression must specify the field
30548
+ # name, an operator, and the value that you want to use for filtering. The value
30549
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
30550
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
30551
+ # Engine instances, you can exclude instances named `example-instance` by
30552
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
30553
+ # whether a key has been defined. For example, to find all objects with `owner`
30554
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
30555
+ # example, you could specify `scheduling.automaticRestart = false` to include
30556
+ # instances only if they are not scheduled for automatic restarts. You can use
30557
+ # filtering on nested fields to filter based on resource labels. To filter on
30558
+ # multiple expressions, provide each separate expression within parentheses. For
30559
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
30560
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
30561
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
30562
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
30563
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
30564
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
30565
+ # un-parenthesized expression with or without quotes or against multiple
30566
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
30567
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
30568
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
30569
+ # interpreted as a regular expression using Google RE2 library syntax. The
30570
+ # literal value must match the entire field. For example, to filter for
30571
+ # instances that do not end with name "instance", you would use `name ne .*
30572
+ # instance`. You cannot combine constraints on multiple fields using regular
30573
+ # expressions.
30574
+ # @param [Fixnum] max_results
30575
+ # The maximum number of results per page that should be returned. If the number
30576
+ # of available results is larger than `maxResults`, Compute Engine returns a `
30577
+ # nextPageToken` that can be used to get the next page of results in subsequent
30578
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
30579
+ # @param [String] order_by
30580
+ # Sorts list results by a certain order. By default, results are returned in
30581
+ # alphanumerical order based on the resource name. You can also sort results in
30582
+ # descending order based on the creation timestamp using `orderBy="
30583
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
30584
+ # field in reverse chronological order (newest result first). Use this to sort
30585
+ # resources like operations so that the newest operation is returned first.
30586
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
30587
+ # @param [String] page_token
30588
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
30589
+ # by a previous list request to get the next page of results.
30590
+ # @param [Boolean] return_partial_success
30591
+ # Opt-in for partial success behavior which provides partial results in case of
30592
+ # failure. The default value is false. For example, when partial success
30593
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
30594
+ # resources in the zone or no resources, with an error code.
30595
+ # @param [String] fields
30596
+ # Selector specifying which fields to include in a partial response.
30597
+ # @param [String] quota_user
30598
+ # Available to use for quota purposes for server-side applications. Can be any
30599
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30600
+ # @param [String] user_ip
30601
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30602
+ # @param [Google::Apis::RequestOptions] options
30603
+ # Request-specific options
30604
+ #
30605
+ # @yield [result, err] Result & error if block supplied
30606
+ # @yieldparam result [Google::Apis::ComputeBeta::RegionInstanceGroupManagerResizeRequestsListResponse] parsed result object
30607
+ # @yieldparam err [StandardError] error object if request failed
30608
+ #
30609
+ # @return [Google::Apis::ComputeBeta::RegionInstanceGroupManagerResizeRequestsListResponse]
30610
+ #
30611
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30612
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30613
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30614
+ def list_region_instance_group_manager_resize_requests(project, region, instance_group_manager, 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)
30615
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests', options)
30616
+ command.response_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagerResizeRequestsListResponse::Representation
30617
+ command.response_class = Google::Apis::ComputeBeta::RegionInstanceGroupManagerResizeRequestsListResponse
30618
+ command.params['project'] = project unless project.nil?
30619
+ command.params['region'] = region unless region.nil?
30620
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
30621
+ command.query['filter'] = filter unless filter.nil?
30622
+ command.query['maxResults'] = max_results unless max_results.nil?
30623
+ command.query['orderBy'] = order_by unless order_by.nil?
30624
+ command.query['pageToken'] = page_token unless page_token.nil?
30625
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
30626
+ command.query['fields'] = fields unless fields.nil?
30627
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30628
+ command.query['userIp'] = user_ip unless user_ip.nil?
30629
+ execute_or_queue_command(command, &block)
30630
+ end
30631
+
30632
+ # Flags the specified instances to be immediately removed from the managed
30633
+ # instance group. Abandoning an instance does not delete the instance, but it
30634
+ # does remove the instance from any target pools that are applied by the managed
30635
+ # instance group. This method reduces the targetSize of the managed instance
30636
+ # group by the number of instances that you abandon. This operation is marked as
30637
+ # DONE when the action is scheduled even if the instances have not yet been
30638
+ # removed from the group. You must separately verify the status of the
30639
+ # abandoning action with the listmanagedinstances method. If the group is part
30640
+ # of a backend service that has enabled connection draining, it can take up to
30641
+ # 60 seconds after the connection draining duration has elapsed before the VM
30283
30642
  # instance is removed or deleted. You can specify a maximum of 1000 instances
30284
30643
  # with this method per request.
30285
30644
  # @param [String] project
@@ -30288,7 +30647,221 @@ module Google
30288
30647
  # Name of the region scoping this request.
30289
30648
  # @param [String] instance_group_manager
30290
30649
  # Name of the managed instance group.
30291
- # @param [Google::Apis::ComputeBeta::RegionInstanceGroupManagersDeleteInstancesRequest] region_instance_group_managers_delete_instances_request_object
30650
+ # @param [Google::Apis::ComputeBeta::RegionInstanceGroupManagersAbandonInstancesRequest] region_instance_group_managers_abandon_instances_request_object
30651
+ # @param [String] request_id
30652
+ # An optional request ID to identify requests. Specify a unique request ID so
30653
+ # that if you must retry your request, the server will know to ignore the
30654
+ # request if it has already been completed. For example, consider a situation
30655
+ # where you make an initial request and the request times out. If you make the
30656
+ # request again with the same request ID, the server can check if original
30657
+ # operation with the same request ID was received, and if so, will ignore the
30658
+ # second request. This prevents clients from accidentally creating duplicate
30659
+ # commitments. The request ID must be a valid UUID with the exception that zero
30660
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
30661
+ # @param [String] fields
30662
+ # Selector specifying which fields to include in a partial response.
30663
+ # @param [String] quota_user
30664
+ # Available to use for quota purposes for server-side applications. Can be any
30665
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30666
+ # @param [String] user_ip
30667
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30668
+ # @param [Google::Apis::RequestOptions] options
30669
+ # Request-specific options
30670
+ #
30671
+ # @yield [result, err] Result & error if block supplied
30672
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
30673
+ # @yieldparam err [StandardError] error object if request failed
30674
+ #
30675
+ # @return [Google::Apis::ComputeBeta::Operation]
30676
+ #
30677
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30678
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30679
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30680
+ def abandon_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_abandon_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30681
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances', options)
30682
+ command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersAbandonInstancesRequest::Representation
30683
+ command.request_object = region_instance_group_managers_abandon_instances_request_object
30684
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
30685
+ command.response_class = Google::Apis::ComputeBeta::Operation
30686
+ command.params['project'] = project unless project.nil?
30687
+ command.params['region'] = region unless region.nil?
30688
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
30689
+ command.query['requestId'] = request_id unless request_id.nil?
30690
+ command.query['fields'] = fields unless fields.nil?
30691
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30692
+ command.query['userIp'] = user_ip unless user_ip.nil?
30693
+ execute_or_queue_command(command, &block)
30694
+ end
30695
+
30696
+ # Apply updates to selected instances the managed instance group.
30697
+ # @param [String] project
30698
+ # Project ID for this request.
30699
+ # @param [String] region
30700
+ # Name of the region scoping this request, should conform to RFC1035.
30701
+ # @param [String] instance_group_manager
30702
+ # The name of the managed instance group, should conform to RFC1035.
30703
+ # @param [Google::Apis::ComputeBeta::RegionInstanceGroupManagersApplyUpdatesRequest] region_instance_group_managers_apply_updates_request_object
30704
+ # @param [String] fields
30705
+ # Selector specifying which fields to include in a partial response.
30706
+ # @param [String] quota_user
30707
+ # Available to use for quota purposes for server-side applications. Can be any
30708
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30709
+ # @param [String] user_ip
30710
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30711
+ # @param [Google::Apis::RequestOptions] options
30712
+ # Request-specific options
30713
+ #
30714
+ # @yield [result, err] Result & error if block supplied
30715
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
30716
+ # @yieldparam err [StandardError] error object if request failed
30717
+ #
30718
+ # @return [Google::Apis::ComputeBeta::Operation]
30719
+ #
30720
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30721
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30722
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30723
+ def apply_region_instance_group_manager_updates_to_instances(project, region, instance_group_manager, region_instance_group_managers_apply_updates_request_object = nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30724
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances', options)
30725
+ command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersApplyUpdatesRequest::Representation
30726
+ command.request_object = region_instance_group_managers_apply_updates_request_object
30727
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
30728
+ command.response_class = Google::Apis::ComputeBeta::Operation
30729
+ command.params['project'] = project unless project.nil?
30730
+ command.params['region'] = region unless region.nil?
30731
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
30732
+ command.query['fields'] = fields unless fields.nil?
30733
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30734
+ command.query['userIp'] = user_ip unless user_ip.nil?
30735
+ execute_or_queue_command(command, &block)
30736
+ end
30737
+
30738
+ # Creates instances with per-instance configurations in this regional managed
30739
+ # instance group. Instances are created using the current instance template. The
30740
+ # create instances operation is marked DONE if the createInstances request is
30741
+ # successful. The underlying actions take additional time. You must separately
30742
+ # verify the status of the creating or actions with the listmanagedinstances
30743
+ # method.
30744
+ # @param [String] project
30745
+ # Project ID for this request.
30746
+ # @param [String] region
30747
+ # The name of the region where the managed instance group is located. It should
30748
+ # conform to RFC1035.
30749
+ # @param [String] instance_group_manager
30750
+ # The name of the managed instance group. It should conform to RFC1035.
30751
+ # @param [Google::Apis::ComputeBeta::RegionInstanceGroupManagersCreateInstancesRequest] region_instance_group_managers_create_instances_request_object
30752
+ # @param [String] request_id
30753
+ # An optional request ID to identify requests. Specify a unique request ID so
30754
+ # that if you must retry your request, the server will know to ignore the
30755
+ # request if it has already been completed. For example, consider a situation
30756
+ # where you make an initial request and the request times out. If you make the
30757
+ # request again with the same request ID, the server can check if original
30758
+ # operation with the same request ID was received, and if so, will ignore the
30759
+ # second request. The request ID must be a valid UUID with the exception that
30760
+ # zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
30761
+ # @param [String] fields
30762
+ # Selector specifying which fields to include in a partial response.
30763
+ # @param [String] quota_user
30764
+ # Available to use for quota purposes for server-side applications. Can be any
30765
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30766
+ # @param [String] user_ip
30767
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30768
+ # @param [Google::Apis::RequestOptions] options
30769
+ # Request-specific options
30770
+ #
30771
+ # @yield [result, err] Result & error if block supplied
30772
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
30773
+ # @yieldparam err [StandardError] error object if request failed
30774
+ #
30775
+ # @return [Google::Apis::ComputeBeta::Operation]
30776
+ #
30777
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30778
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30779
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30780
+ def create_region_instance_group_manager_instances(project, region, instance_group_manager, region_instance_group_managers_create_instances_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30781
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances', options)
30782
+ command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersCreateInstancesRequest::Representation
30783
+ command.request_object = region_instance_group_managers_create_instances_request_object
30784
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
30785
+ command.response_class = Google::Apis::ComputeBeta::Operation
30786
+ command.params['project'] = project unless project.nil?
30787
+ command.params['region'] = region unless region.nil?
30788
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
30789
+ command.query['requestId'] = request_id unless request_id.nil?
30790
+ command.query['fields'] = fields unless fields.nil?
30791
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30792
+ command.query['userIp'] = user_ip unless user_ip.nil?
30793
+ execute_or_queue_command(command, &block)
30794
+ end
30795
+
30796
+ # Deletes the specified managed instance group and all of the instances in that
30797
+ # group.
30798
+ # @param [String] project
30799
+ # Project ID for this request.
30800
+ # @param [String] region
30801
+ # Name of the region scoping this request.
30802
+ # @param [String] instance_group_manager
30803
+ # Name of the managed instance group to delete.
30804
+ # @param [String] request_id
30805
+ # An optional request ID to identify requests. Specify a unique request ID so
30806
+ # that if you must retry your request, the server will know to ignore the
30807
+ # request if it has already been completed. For example, consider a situation
30808
+ # where you make an initial request and the request times out. If you make the
30809
+ # request again with the same request ID, the server can check if original
30810
+ # operation with the same request ID was received, and if so, will ignore the
30811
+ # second request. This prevents clients from accidentally creating duplicate
30812
+ # commitments. The request ID must be a valid UUID with the exception that zero
30813
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
30814
+ # @param [String] fields
30815
+ # Selector specifying which fields to include in a partial response.
30816
+ # @param [String] quota_user
30817
+ # Available to use for quota purposes for server-side applications. Can be any
30818
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
30819
+ # @param [String] user_ip
30820
+ # Legacy name for parameter that has been superseded by `quotaUser`.
30821
+ # @param [Google::Apis::RequestOptions] options
30822
+ # Request-specific options
30823
+ #
30824
+ # @yield [result, err] Result & error if block supplied
30825
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
30826
+ # @yieldparam err [StandardError] error object if request failed
30827
+ #
30828
+ # @return [Google::Apis::ComputeBeta::Operation]
30829
+ #
30830
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
30831
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
30832
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
30833
+ def delete_region_instance_group_manager(project, region, instance_group_manager, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
30834
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options)
30835
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
30836
+ command.response_class = Google::Apis::ComputeBeta::Operation
30837
+ command.params['project'] = project unless project.nil?
30838
+ command.params['region'] = region unless region.nil?
30839
+ command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
30840
+ command.query['requestId'] = request_id unless request_id.nil?
30841
+ command.query['fields'] = fields unless fields.nil?
30842
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
30843
+ command.query['userIp'] = user_ip unless user_ip.nil?
30844
+ execute_or_queue_command(command, &block)
30845
+ end
30846
+
30847
+ # Flags the specified instances in the managed instance group to be immediately
30848
+ # deleted. The instances are also removed from any target pools of which they
30849
+ # were a member. This method reduces the targetSize of the managed instance
30850
+ # group by the number of instances that you delete. The deleteInstances
30851
+ # operation is marked DONE if the deleteInstances request is successful. The
30852
+ # underlying actions take additional time. You must separately verify the status
30853
+ # of the deleting action with the listmanagedinstances method. If the group is
30854
+ # part of a backend service that has enabled connection draining, it can take up
30855
+ # to 60 seconds after the connection draining duration has elapsed before the VM
30856
+ # instance is removed or deleted. You can specify a maximum of 1000 instances
30857
+ # with this method per request.
30858
+ # @param [String] project
30859
+ # Project ID for this request.
30860
+ # @param [String] region
30861
+ # Name of the region scoping this request.
30862
+ # @param [String] instance_group_manager
30863
+ # Name of the managed instance group.
30864
+ # @param [Google::Apis::ComputeBeta::RegionInstanceGroupManagersDeleteInstancesRequest] region_instance_group_managers_delete_instances_request_object
30292
30865
  # @param [String] request_id
30293
30866
  # An optional request ID to identify requests. Specify a unique request ID so
30294
30867
  # that if you must retry your request, the server will know to ignore the
@@ -32805,16 +33378,13 @@ module Google
32805
33378
  execute_or_queue_command(command, &block)
32806
33379
  end
32807
33380
 
32808
- # Attach a list of network endpoints to the specified network endpoint group.
33381
+ # Deletes a multi-MIG in the specified project.
32809
33382
  # @param [String] project
32810
33383
  # Project ID for this request.
32811
33384
  # @param [String] region
32812
- # The name of the region where you want to create the network endpoint group. It
32813
- # should comply with RFC1035.
32814
- # @param [String] network_endpoint_group
32815
- # The name of the network endpoint group where you are attaching network
32816
- # endpoints to. It should comply with RFC1035.
32817
- # @param [Google::Apis::ComputeBeta::RegionNetworkEndpointGroupsAttachEndpointsRequest] region_network_endpoint_groups_attach_endpoints_request_object
33385
+ # Name of the region for this request.
33386
+ # @param [String] multi_mig
33387
+ # Name of the multi-MIG to delete.
32818
33388
  # @param [String] request_id
32819
33389
  # An optional request ID to identify requests. Specify a unique request ID so
32820
33390
  # that if you must retry your request, the server will know to ignore the
@@ -32844,15 +33414,13 @@ module Google
32844
33414
  # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
32845
33415
  # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
32846
33416
  # @raise [Google::Apis::AuthorizationError] Authorization is required
32847
- def attach_region_network_endpoint_group_network_endpoints(project, region, network_endpoint_group, region_network_endpoint_groups_attach_endpoints_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
32848
- command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints', options)
32849
- command.request_representation = Google::Apis::ComputeBeta::RegionNetworkEndpointGroupsAttachEndpointsRequest::Representation
32850
- command.request_object = region_network_endpoint_groups_attach_endpoints_request_object
33417
+ def delete_region_multi_mig(project, region, multi_mig, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33418
+ command = make_simple_command(:delete, 'projects/{project}/regions/{region}/multiMigs/{multiMig}', options)
32851
33419
  command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
32852
33420
  command.response_class = Google::Apis::ComputeBeta::Operation
32853
33421
  command.params['project'] = project unless project.nil?
32854
33422
  command.params['region'] = region unless region.nil?
32855
- command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
33423
+ command.params['multiMig'] = multi_mig unless multi_mig.nil?
32856
33424
  command.query['requestId'] = request_id unless request_id.nil?
32857
33425
  command.query['fields'] = fields unless fields.nil?
32858
33426
  command.query['quotaUser'] = quota_user unless quota_user.nil?
@@ -32860,16 +33428,51 @@ module Google
32860
33428
  execute_or_queue_command(command, &block)
32861
33429
  end
32862
33430
 
32863
- # Deletes the specified network endpoint group. Note that the NEG cannot be
32864
- # deleted if it is configured as a backend of a backend service.
33431
+ # Returns all the details of a specific multi-MIG.
32865
33432
  # @param [String] project
32866
33433
  # Project ID for this request.
32867
33434
  # @param [String] region
32868
- # The name of the region where the network endpoint group is located. It should
32869
- # comply with RFC1035.
32870
- # @param [String] network_endpoint_group
32871
- # The name of the network endpoint group to delete. It should comply with
32872
- # RFC1035.
33435
+ # Name of the region for this request.
33436
+ # @param [String] multi_mig
33437
+ # Name of the multi-MIG resource to return.
33438
+ # @param [String] fields
33439
+ # Selector specifying which fields to include in a partial response.
33440
+ # @param [String] quota_user
33441
+ # Available to use for quota purposes for server-side applications. Can be any
33442
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33443
+ # @param [String] user_ip
33444
+ # Legacy name for parameter that has been superseded by `quotaUser`.
33445
+ # @param [Google::Apis::RequestOptions] options
33446
+ # Request-specific options
33447
+ #
33448
+ # @yield [result, err] Result & error if block supplied
33449
+ # @yieldparam result [Google::Apis::ComputeBeta::MultiMig] parsed result object
33450
+ # @yieldparam err [StandardError] error object if request failed
33451
+ #
33452
+ # @return [Google::Apis::ComputeBeta::MultiMig]
33453
+ #
33454
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33455
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33456
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33457
+ def get_region_multi_mig(project, region, multi_mig, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33458
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/multiMigs/{multiMig}', options)
33459
+ command.response_representation = Google::Apis::ComputeBeta::MultiMig::Representation
33460
+ command.response_class = Google::Apis::ComputeBeta::MultiMig
33461
+ command.params['project'] = project unless project.nil?
33462
+ command.params['region'] = region unless region.nil?
33463
+ command.params['multiMig'] = multi_mig unless multi_mig.nil?
33464
+ command.query['fields'] = fields unless fields.nil?
33465
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33466
+ command.query['userIp'] = user_ip unless user_ip.nil?
33467
+ execute_or_queue_command(command, &block)
33468
+ end
33469
+
33470
+ # Creates a multi-MIG in the specified project.
33471
+ # @param [String] project
33472
+ # Project ID for this request.
33473
+ # @param [String] region
33474
+ # Name of the region for this request.
33475
+ # @param [Google::Apis::ComputeBeta::MultiMig] multi_mig_object
32873
33476
  # @param [String] request_id
32874
33477
  # An optional request ID to identify requests. Specify a unique request ID so
32875
33478
  # that if you must retry your request, the server will know to ignore the
@@ -32877,7 +33480,210 @@ module Google
32877
33480
  # where you make an initial request and the request times out. If you make the
32878
33481
  # request again with the same request ID, the server can check if original
32879
33482
  # operation with the same request ID was received, and if so, will ignore the
32880
- # second request. This prevents clients from accidentally creating duplicate
33483
+ # second request. This prevents you from accidentally creating duplicate
33484
+ # commitments. The request ID must be a valid UUID with the exception that zero
33485
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
33486
+ # @param [String] fields
33487
+ # Selector specifying which fields to include in a partial response.
33488
+ # @param [String] quota_user
33489
+ # Available to use for quota purposes for server-side applications. Can be any
33490
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33491
+ # @param [String] user_ip
33492
+ # Legacy name for parameter that has been superseded by `quotaUser`.
33493
+ # @param [Google::Apis::RequestOptions] options
33494
+ # Request-specific options
33495
+ #
33496
+ # @yield [result, err] Result & error if block supplied
33497
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
33498
+ # @yieldparam err [StandardError] error object if request failed
33499
+ #
33500
+ # @return [Google::Apis::ComputeBeta::Operation]
33501
+ #
33502
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33503
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33504
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33505
+ def insert_region_multi_mig(project, region, multi_mig_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33506
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/multiMigs', options)
33507
+ command.request_representation = Google::Apis::ComputeBeta::MultiMig::Representation
33508
+ command.request_object = multi_mig_object
33509
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
33510
+ command.response_class = Google::Apis::ComputeBeta::Operation
33511
+ command.params['project'] = project unless project.nil?
33512
+ command.params['region'] = region unless region.nil?
33513
+ command.query['requestId'] = request_id unless request_id.nil?
33514
+ command.query['fields'] = fields unless fields.nil?
33515
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33516
+ command.query['userIp'] = user_ip unless user_ip.nil?
33517
+ execute_or_queue_command(command, &block)
33518
+ end
33519
+
33520
+ # Retrieves a list of multi-MIGs in a project and region.
33521
+ # @param [String] project
33522
+ # Project ID for this request.
33523
+ # @param [String] region
33524
+ # Name of the region for this request.
33525
+ # @param [String] filter
33526
+ # A filter expression that filters resources listed in the response. Most
33527
+ # Compute resources support two types of filter expressions: expressions that
33528
+ # support regular expressions and expressions that follow API improvement
33529
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
33530
+ # request. If you want to use AIP-160, your expression must specify the field
33531
+ # name, an operator, and the value that you want to use for filtering. The value
33532
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
33533
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
33534
+ # Engine instances, you can exclude instances named `example-instance` by
33535
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
33536
+ # whether a key has been defined. For example, to find all objects with `owner`
33537
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
33538
+ # example, you could specify `scheduling.automaticRestart = false` to include
33539
+ # instances only if they are not scheduled for automatic restarts. You can use
33540
+ # filtering on nested fields to filter based on resource labels. To filter on
33541
+ # multiple expressions, provide each separate expression within parentheses. For
33542
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
33543
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
33544
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
33545
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
33546
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
33547
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
33548
+ # un-parenthesized expression with or without quotes or against multiple
33549
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
33550
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
33551
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
33552
+ # interpreted as a regular expression using Google RE2 library syntax. The
33553
+ # literal value must match the entire field. For example, to filter for
33554
+ # instances that do not end with name "instance", you would use `name ne .*
33555
+ # instance`. You cannot combine constraints on multiple fields using regular
33556
+ # expressions.
33557
+ # @param [Fixnum] max_results
33558
+ # The maximum number of results per page that should be returned. If the number
33559
+ # of available results is larger than `maxResults`, Compute Engine returns a `
33560
+ # nextPageToken` that can be used to get the next page of results in subsequent
33561
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
33562
+ # @param [String] order_by
33563
+ # Sorts list results by a certain order. By default, results are returned in
33564
+ # alphanumerical order based on the resource name. You can also sort results in
33565
+ # descending order based on the creation timestamp using `orderBy="
33566
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
33567
+ # field in reverse chronological order (newest result first). Use this to sort
33568
+ # resources like operations so that the newest operation is returned first.
33569
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
33570
+ # @param [String] page_token
33571
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
33572
+ # by a previous list request to get the next page of results.
33573
+ # @param [Boolean] return_partial_success
33574
+ # Opt-in for partial success behavior which provides partial results in case of
33575
+ # failure. The default value is false. For example, when partial success
33576
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
33577
+ # resources in the zone or no resources, with an error code.
33578
+ # @param [String] fields
33579
+ # Selector specifying which fields to include in a partial response.
33580
+ # @param [String] quota_user
33581
+ # Available to use for quota purposes for server-side applications. Can be any
33582
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33583
+ # @param [String] user_ip
33584
+ # Legacy name for parameter that has been superseded by `quotaUser`.
33585
+ # @param [Google::Apis::RequestOptions] options
33586
+ # Request-specific options
33587
+ #
33588
+ # @yield [result, err] Result & error if block supplied
33589
+ # @yieldparam result [Google::Apis::ComputeBeta::MultiMigsList] parsed result object
33590
+ # @yieldparam err [StandardError] error object if request failed
33591
+ #
33592
+ # @return [Google::Apis::ComputeBeta::MultiMigsList]
33593
+ #
33594
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33595
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33596
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33597
+ def list_region_multi_migs(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)
33598
+ command = make_simple_command(:get, 'projects/{project}/regions/{region}/multiMigs', options)
33599
+ command.response_representation = Google::Apis::ComputeBeta::MultiMigsList::Representation
33600
+ command.response_class = Google::Apis::ComputeBeta::MultiMigsList
33601
+ command.params['project'] = project unless project.nil?
33602
+ command.params['region'] = region unless region.nil?
33603
+ command.query['filter'] = filter unless filter.nil?
33604
+ command.query['maxResults'] = max_results unless max_results.nil?
33605
+ command.query['orderBy'] = order_by unless order_by.nil?
33606
+ command.query['pageToken'] = page_token unless page_token.nil?
33607
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
33608
+ command.query['fields'] = fields unless fields.nil?
33609
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33610
+ command.query['userIp'] = user_ip unless user_ip.nil?
33611
+ execute_or_queue_command(command, &block)
33612
+ end
33613
+
33614
+ # Attach a list of network endpoints to the specified network endpoint group.
33615
+ # @param [String] project
33616
+ # Project ID for this request.
33617
+ # @param [String] region
33618
+ # The name of the region where you want to create the network endpoint group. It
33619
+ # should comply with RFC1035.
33620
+ # @param [String] network_endpoint_group
33621
+ # The name of the network endpoint group where you are attaching network
33622
+ # endpoints to. It should comply with RFC1035.
33623
+ # @param [Google::Apis::ComputeBeta::RegionNetworkEndpointGroupsAttachEndpointsRequest] region_network_endpoint_groups_attach_endpoints_request_object
33624
+ # @param [String] request_id
33625
+ # An optional request ID to identify requests. Specify a unique request ID so
33626
+ # that if you must retry your request, the server will know to ignore the
33627
+ # request if it has already been completed. For example, consider a situation
33628
+ # where you make an initial request and the request times out. If you make the
33629
+ # request again with the same request ID, the server can check if original
33630
+ # operation with the same request ID was received, and if so, will ignore the
33631
+ # second request. This prevents clients from accidentally creating duplicate
33632
+ # commitments. The request ID must be a valid UUID with the exception that zero
33633
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
33634
+ # @param [String] fields
33635
+ # Selector specifying which fields to include in a partial response.
33636
+ # @param [String] quota_user
33637
+ # Available to use for quota purposes for server-side applications. Can be any
33638
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
33639
+ # @param [String] user_ip
33640
+ # Legacy name for parameter that has been superseded by `quotaUser`.
33641
+ # @param [Google::Apis::RequestOptions] options
33642
+ # Request-specific options
33643
+ #
33644
+ # @yield [result, err] Result & error if block supplied
33645
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
33646
+ # @yieldparam err [StandardError] error object if request failed
33647
+ #
33648
+ # @return [Google::Apis::ComputeBeta::Operation]
33649
+ #
33650
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
33651
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
33652
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
33653
+ def attach_region_network_endpoint_group_network_endpoints(project, region, network_endpoint_group, region_network_endpoint_groups_attach_endpoints_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
33654
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints', options)
33655
+ command.request_representation = Google::Apis::ComputeBeta::RegionNetworkEndpointGroupsAttachEndpointsRequest::Representation
33656
+ command.request_object = region_network_endpoint_groups_attach_endpoints_request_object
33657
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
33658
+ command.response_class = Google::Apis::ComputeBeta::Operation
33659
+ command.params['project'] = project unless project.nil?
33660
+ command.params['region'] = region unless region.nil?
33661
+ command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
33662
+ command.query['requestId'] = request_id unless request_id.nil?
33663
+ command.query['fields'] = fields unless fields.nil?
33664
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
33665
+ command.query['userIp'] = user_ip unless user_ip.nil?
33666
+ execute_or_queue_command(command, &block)
33667
+ end
33668
+
33669
+ # Deletes the specified network endpoint group. Note that the NEG cannot be
33670
+ # deleted if it is configured as a backend of a backend service.
33671
+ # @param [String] project
33672
+ # Project ID for this request.
33673
+ # @param [String] region
33674
+ # The name of the region where the network endpoint group is located. It should
33675
+ # comply with RFC1035.
33676
+ # @param [String] network_endpoint_group
33677
+ # The name of the network endpoint group to delete. It should comply with
33678
+ # RFC1035.
33679
+ # @param [String] request_id
33680
+ # An optional request ID to identify requests. Specify a unique request ID so
33681
+ # that if you must retry your request, the server will know to ignore the
33682
+ # request if it has already been completed. For example, consider a situation
33683
+ # where you make an initial request and the request times out. If you make the
33684
+ # request again with the same request ID, the server can check if original
33685
+ # operation with the same request ID was received, and if so, will ignore the
33686
+ # second request. This prevents clients from accidentally creating duplicate
32881
33687
  # commitments. The request ID must be a valid UUID with the exception that zero
32882
33688
  # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
32883
33689
  # @param [String] fields
@@ -34410,7 +35216,7 @@ module Google
34410
35216
  # @param [String] region
34411
35217
  # Name of the region for this request.
34412
35218
  # @param [String] operation
34413
- # Name of the Operations resource to delete.
35219
+ # Name of the Operations resource to delete, or its unique numeric identifier.
34414
35220
  # @param [String] fields
34415
35221
  # Selector specifying which fields to include in a partial response.
34416
35222
  # @param [String] quota_user
@@ -34447,7 +35253,7 @@ module Google
34447
35253
  # @param [String] region
34448
35254
  # Name of the region for this request.
34449
35255
  # @param [String] operation
34450
- # Name of the Operations resource to return.
35256
+ # Name of the Operations resource to return, or its unique numeric identifier.
34451
35257
  # @param [String] fields
34452
35258
  # Selector specifying which fields to include in a partial response.
34453
35259
  # @param [String] quota_user
@@ -34589,7 +35395,7 @@ module Google
34589
35395
  # @param [String] region
34590
35396
  # Name of the region for this request.
34591
35397
  # @param [String] operation
34592
- # Name of the Operations resource to return.
35398
+ # Name of the Operations resource to return, or its unique numeric identifier.
34593
35399
  # @param [String] fields
34594
35400
  # Selector specifying which fields to include in a partial response.
34595
35401
  # @param [String] quota_user
@@ -35100,6 +35906,60 @@ module Google
35100
35906
  execute_or_queue_command(command, &block)
35101
35907
  end
35102
35908
 
35909
+ # Sets the labels on a security policy. To learn more about labels, read the
35910
+ # Labeling Resources documentation.
35911
+ # @param [String] project
35912
+ # Project ID for this request.
35913
+ # @param [String] region
35914
+ # The region for this request.
35915
+ # @param [String] resource
35916
+ # Name or id of the resource for this request.
35917
+ # @param [Google::Apis::ComputeBeta::RegionSetLabelsRequest] region_set_labels_request_object
35918
+ # @param [String] request_id
35919
+ # An optional request ID to identify requests. Specify a unique request ID so
35920
+ # that if you must retry your request, the server will know to ignore the
35921
+ # request if it has already been completed. For example, consider a situation
35922
+ # where you make an initial request and the request times out. If you make the
35923
+ # request again with the same request ID, the server can check if original
35924
+ # operation with the same request ID was received, and if so, will ignore the
35925
+ # second request. This prevents clients from accidentally creating duplicate
35926
+ # commitments. The request ID must be a valid UUID with the exception that zero
35927
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
35928
+ # @param [String] fields
35929
+ # Selector specifying which fields to include in a partial response.
35930
+ # @param [String] quota_user
35931
+ # Available to use for quota purposes for server-side applications. Can be any
35932
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
35933
+ # @param [String] user_ip
35934
+ # Legacy name for parameter that has been superseded by `quotaUser`.
35935
+ # @param [Google::Apis::RequestOptions] options
35936
+ # Request-specific options
35937
+ #
35938
+ # @yield [result, err] Result & error if block supplied
35939
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
35940
+ # @yieldparam err [StandardError] error object if request failed
35941
+ #
35942
+ # @return [Google::Apis::ComputeBeta::Operation]
35943
+ #
35944
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
35945
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
35946
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
35947
+ def set_region_security_policy_labels(project, region, resource, region_set_labels_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
35948
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/securityPolicies/{resource}/setLabels', options)
35949
+ command.request_representation = Google::Apis::ComputeBeta::RegionSetLabelsRequest::Representation
35950
+ command.request_object = region_set_labels_request_object
35951
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
35952
+ command.response_class = Google::Apis::ComputeBeta::Operation
35953
+ command.params['project'] = project unless project.nil?
35954
+ command.params['region'] = region unless region.nil?
35955
+ command.params['resource'] = resource unless resource.nil?
35956
+ command.query['requestId'] = request_id unless request_id.nil?
35957
+ command.query['fields'] = fields unless fields.nil?
35958
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
35959
+ command.query['userIp'] = user_ip unless user_ip.nil?
35960
+ execute_or_queue_command(command, &block)
35961
+ end
35962
+
35103
35963
  # Deletes the specified SslCertificate resource in the region.
35104
35964
  # @param [String] project
35105
35965
  # Project ID for this request.
@@ -37542,6 +38402,148 @@ module Google
37542
38402
  execute_or_queue_command(command, &block)
37543
38403
  end
37544
38404
 
38405
+ # Retrieves information about the specified reservation block.
38406
+ # @param [String] project
38407
+ # Project ID for this request.
38408
+ # @param [String] zone
38409
+ # Name of the zone for this request. Zone name should conform to RFC1035.
38410
+ # @param [String] reservation
38411
+ # The name of the reservation. Name should conform to RFC1035 or be a resource
38412
+ # ID.
38413
+ # @param [String] reservation_block
38414
+ # The name of the reservation block. Name should conform to RFC1035 or be a
38415
+ # resource ID.
38416
+ # @param [String] fields
38417
+ # Selector specifying which fields to include in a partial response.
38418
+ # @param [String] quota_user
38419
+ # Available to use for quota purposes for server-side applications. Can be any
38420
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
38421
+ # @param [String] user_ip
38422
+ # Legacy name for parameter that has been superseded by `quotaUser`.
38423
+ # @param [Google::Apis::RequestOptions] options
38424
+ # Request-specific options
38425
+ #
38426
+ # @yield [result, err] Result & error if block supplied
38427
+ # @yieldparam result [Google::Apis::ComputeBeta::ReservationBlocksGetResponse] parsed result object
38428
+ # @yieldparam err [StandardError] error object if request failed
38429
+ #
38430
+ # @return [Google::Apis::ComputeBeta::ReservationBlocksGetResponse]
38431
+ #
38432
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
38433
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
38434
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
38435
+ def get_reservation_block(project, zone, reservation, reservation_block, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
38436
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}', options)
38437
+ command.response_representation = Google::Apis::ComputeBeta::ReservationBlocksGetResponse::Representation
38438
+ command.response_class = Google::Apis::ComputeBeta::ReservationBlocksGetResponse
38439
+ command.params['project'] = project unless project.nil?
38440
+ command.params['zone'] = zone unless zone.nil?
38441
+ command.params['reservation'] = reservation unless reservation.nil?
38442
+ command.params['reservationBlock'] = reservation_block unless reservation_block.nil?
38443
+ command.query['fields'] = fields unless fields.nil?
38444
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
38445
+ command.query['userIp'] = user_ip unless user_ip.nil?
38446
+ execute_or_queue_command(command, &block)
38447
+ end
38448
+
38449
+ # Retrieves a list of reservation blocks under a single reservation.
38450
+ # @param [String] project
38451
+ # Project ID for this request.
38452
+ # @param [String] zone
38453
+ # Name of the zone for this request. Zone name should conform to RFC1035.
38454
+ # @param [String] reservation
38455
+ # The name of the reservation. Name should conform to RFC1035 or be a resource
38456
+ # ID.
38457
+ # @param [String] filter
38458
+ # A filter expression that filters resources listed in the response. Most
38459
+ # Compute resources support two types of filter expressions: expressions that
38460
+ # support regular expressions and expressions that follow API improvement
38461
+ # proposal AIP-160. These two types of filter expressions cannot be mixed in one
38462
+ # request. If you want to use AIP-160, your expression must specify the field
38463
+ # name, an operator, and the value that you want to use for filtering. The value
38464
+ # must be a string, a number, or a boolean. The operator must be either `=`, `!=`
38465
+ # , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
38466
+ # Engine instances, you can exclude instances named `example-instance` by
38467
+ # specifying `name != example-instance`. The `:*` comparison can be used to test
38468
+ # whether a key has been defined. For example, to find all objects with `owner`
38469
+ # label use: ``` labels.owner:* ``` You can also filter nested fields. For
38470
+ # example, you could specify `scheduling.automaticRestart = false` to include
38471
+ # instances only if they are not scheduled for automatic restarts. You can use
38472
+ # filtering on nested fields to filter based on resource labels. To filter on
38473
+ # multiple expressions, provide each separate expression within parentheses. For
38474
+ # example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
38475
+ # Skylake") ``` By default, each expression is an `AND` expression. However, you
38476
+ # can include `AND` and `OR` expressions explicitly. For example: ``` (
38477
+ # cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
38478
+ # scheduling.automaticRestart = true) ``` If you want to use a regular
38479
+ # expression, use the `eq` (equal) or `ne` (not equal) operator against a single
38480
+ # un-parenthesized expression with or without quotes or against multiple
38481
+ # parenthesized expressions. Examples: `fieldname eq unquoted literal` `
38482
+ # fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
38483
+ # fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
38484
+ # interpreted as a regular expression using Google RE2 library syntax. The
38485
+ # literal value must match the entire field. For example, to filter for
38486
+ # instances that do not end with name "instance", you would use `name ne .*
38487
+ # instance`. You cannot combine constraints on multiple fields using regular
38488
+ # expressions.
38489
+ # @param [Fixnum] max_results
38490
+ # The maximum number of results per page that should be returned. If the number
38491
+ # of available results is larger than `maxResults`, Compute Engine returns a `
38492
+ # nextPageToken` that can be used to get the next page of results in subsequent
38493
+ # list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
38494
+ # @param [String] order_by
38495
+ # Sorts list results by a certain order. By default, results are returned in
38496
+ # alphanumerical order based on the resource name. You can also sort results in
38497
+ # descending order based on the creation timestamp using `orderBy="
38498
+ # creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
38499
+ # field in reverse chronological order (newest result first). Use this to sort
38500
+ # resources like operations so that the newest operation is returned first.
38501
+ # Currently, only sorting by `name` or `creationTimestamp desc` is supported.
38502
+ # @param [String] page_token
38503
+ # Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
38504
+ # by a previous list request to get the next page of results.
38505
+ # @param [Boolean] return_partial_success
38506
+ # Opt-in for partial success behavior which provides partial results in case of
38507
+ # failure. The default value is false. For example, when partial success
38508
+ # behavior is enabled, aggregatedList for a single zone scope either returns all
38509
+ # resources in the zone or no resources, with an error code.
38510
+ # @param [String] fields
38511
+ # Selector specifying which fields to include in a partial response.
38512
+ # @param [String] quota_user
38513
+ # Available to use for quota purposes for server-side applications. Can be any
38514
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
38515
+ # @param [String] user_ip
38516
+ # Legacy name for parameter that has been superseded by `quotaUser`.
38517
+ # @param [Google::Apis::RequestOptions] options
38518
+ # Request-specific options
38519
+ #
38520
+ # @yield [result, err] Result & error if block supplied
38521
+ # @yieldparam result [Google::Apis::ComputeBeta::ReservationBlocksListResponse] parsed result object
38522
+ # @yieldparam err [StandardError] error object if request failed
38523
+ #
38524
+ # @return [Google::Apis::ComputeBeta::ReservationBlocksListResponse]
38525
+ #
38526
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
38527
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
38528
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
38529
+ def list_reservation_blocks(project, zone, reservation, 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)
38530
+ command = make_simple_command(:get, 'projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks', options)
38531
+ command.response_representation = Google::Apis::ComputeBeta::ReservationBlocksListResponse::Representation
38532
+ command.response_class = Google::Apis::ComputeBeta::ReservationBlocksListResponse
38533
+ command.params['project'] = project unless project.nil?
38534
+ command.params['zone'] = zone unless zone.nil?
38535
+ command.params['reservation'] = reservation unless reservation.nil?
38536
+ command.query['filter'] = filter unless filter.nil?
38537
+ command.query['maxResults'] = max_results unless max_results.nil?
38538
+ command.query['orderBy'] = order_by unless order_by.nil?
38539
+ command.query['pageToken'] = page_token unless page_token.nil?
38540
+ command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
38541
+ command.query['fields'] = fields unless fields.nil?
38542
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
38543
+ command.query['userIp'] = user_ip unless user_ip.nil?
38544
+ execute_or_queue_command(command, &block)
38545
+ end
38546
+
37545
38547
  # Retrieves an aggregated list of reservations. To prevent failure, Google
37546
38548
  # recommends that you set the `returnPartialSuccess` parameter to `true`.
37547
38549
  # @param [String] project
@@ -39530,6 +40532,59 @@ module Google
39530
40532
  execute_or_queue_command(command, &block)
39531
40533
  end
39532
40534
 
40535
+ # Patches Route Policy
40536
+ # @param [String] project
40537
+ # Project ID for this request.
40538
+ # @param [String] region
40539
+ # Name of the region for this request.
40540
+ # @param [String] router
40541
+ # Name of the Router resource where Route Policy is defined.
40542
+ # @param [Google::Apis::ComputeBeta::RoutePolicy] route_policy_object
40543
+ # @param [String] request_id
40544
+ # An optional request ID to identify requests. Specify a unique request ID so
40545
+ # that if you must retry your request, the server will know to ignore the
40546
+ # request if it has already been completed. For example, consider a situation
40547
+ # where you make an initial request and the request times out. If you make the
40548
+ # request again with the same request ID, the server can check if original
40549
+ # operation with the same request ID was received, and if so, will ignore the
40550
+ # second request. This prevents clients from accidentally creating duplicate
40551
+ # commitments. The request ID must be a valid UUID with the exception that zero
40552
+ # UUID is not supported ( 00000000-0000-0000-0000-000000000000).
40553
+ # @param [String] fields
40554
+ # Selector specifying which fields to include in a partial response.
40555
+ # @param [String] quota_user
40556
+ # Available to use for quota purposes for server-side applications. Can be any
40557
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
40558
+ # @param [String] user_ip
40559
+ # Legacy name for parameter that has been superseded by `quotaUser`.
40560
+ # @param [Google::Apis::RequestOptions] options
40561
+ # Request-specific options
40562
+ #
40563
+ # @yield [result, err] Result & error if block supplied
40564
+ # @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
40565
+ # @yieldparam err [StandardError] error object if request failed
40566
+ #
40567
+ # @return [Google::Apis::ComputeBeta::Operation]
40568
+ #
40569
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
40570
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
40571
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
40572
+ def patch_router_route_policy(project, region, router, route_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
40573
+ command = make_simple_command(:post, 'projects/{project}/regions/{region}/routers/{router}/patchRoutePolicy', options)
40574
+ command.request_representation = Google::Apis::ComputeBeta::RoutePolicy::Representation
40575
+ command.request_object = route_policy_object
40576
+ command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
40577
+ command.response_class = Google::Apis::ComputeBeta::Operation
40578
+ command.params['project'] = project unless project.nil?
40579
+ command.params['region'] = region unless region.nil?
40580
+ command.params['router'] = router unless router.nil?
40581
+ command.query['requestId'] = request_id unless request_id.nil?
40582
+ command.query['fields'] = fields unless fields.nil?
40583
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
40584
+ command.query['userIp'] = user_ip unless user_ip.nil?
40585
+ execute_or_queue_command(command, &block)
40586
+ end
40587
+
39533
40588
  # Preview fields auto-generated during router create and update operations.
39534
40589
  # Calling this method does NOT create or update the router.
39535
40590
  # @param [String] project
@@ -49711,7 +50766,7 @@ module Google
49711
50766
  # @param [String] zone
49712
50767
  # Name of the zone for this request.
49713
50768
  # @param [String] operation
49714
- # Name of the Operations resource to delete.
50769
+ # Name of the Operations resource to delete, or its unique numeric identifier.
49715
50770
  # @param [String] fields
49716
50771
  # Selector specifying which fields to include in a partial response.
49717
50772
  # @param [String] quota_user
@@ -49748,7 +50803,7 @@ module Google
49748
50803
  # @param [String] zone
49749
50804
  # Name of the zone for this request.
49750
50805
  # @param [String] operation
49751
- # Name of the Operations resource to return.
50806
+ # Name of the Operations resource to return, or its unique numeric identifier.
49752
50807
  # @param [String] fields
49753
50808
  # Selector specifying which fields to include in a partial response.
49754
50809
  # @param [String] quota_user
@@ -49890,7 +50945,7 @@ module Google
49890
50945
  # @param [String] zone
49891
50946
  # Name of the zone for this request.
49892
50947
  # @param [String] operation
49893
- # Name of the Operations resource to return.
50948
+ # Name of the Operations resource to return, or its unique numeric identifier.
49894
50949
  # @param [String] fields
49895
50950
  # Selector specifying which fields to include in a partial response.
49896
50951
  # @param [String] quota_user