google-apis-compute_beta 0.106.0 → 0.107.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/google/apis/compute_beta/classes.rb +1959 -560
- data/lib/google/apis/compute_beta/gem_version.rb +3 -3
- data/lib/google/apis/compute_beta/representations.rb +594 -136
- data/lib/google/apis/compute_beta/service.rb +1149 -192
- metadata +4 -4
@@ -2378,8 +2378,7 @@ module Google
|
|
2378
2378
|
execute_or_queue_command(command, &block)
|
2379
2379
|
end
|
2380
2380
|
|
2381
|
-
# Retrieves
|
2382
|
-
# project.
|
2381
|
+
# Retrieves a list of all usable backend services in the specified project.
|
2383
2382
|
# @param [String] project
|
2384
2383
|
# Project ID for this request.
|
2385
2384
|
# @param [String] filter
|
@@ -7952,7 +7951,7 @@ module Google
|
|
7952
7951
|
# @param [String] project
|
7953
7952
|
# Project ID for this request.
|
7954
7953
|
# @param [String] operation
|
7955
|
-
# Name of the Operations resource to delete.
|
7954
|
+
# Name of the Operations resource to delete, or its unique numeric identifier.
|
7956
7955
|
# @param [String] fields
|
7957
7956
|
# Selector specifying which fields to include in a partial response.
|
7958
7957
|
# @param [String] quota_user
|
@@ -7986,7 +7985,7 @@ module Google
|
|
7986
7985
|
# @param [String] project
|
7987
7986
|
# Project ID for this request.
|
7988
7987
|
# @param [String] operation
|
7989
|
-
# Name of the Operations resource to return.
|
7988
|
+
# Name of the Operations resource to return, or its unique numeric identifier.
|
7990
7989
|
# @param [String] fields
|
7991
7990
|
# Selector specifying which fields to include in a partial response.
|
7992
7991
|
# @param [String] quota_user
|
@@ -8122,7 +8121,7 @@ module Google
|
|
8122
8121
|
# @param [String] project
|
8123
8122
|
# Project ID for this request.
|
8124
8123
|
# @param [String] operation
|
8125
|
-
# Name of the Operations resource to return.
|
8124
|
+
# Name of the Operations resource to return, or its unique numeric identifier.
|
8126
8125
|
# @param [String] fields
|
8127
8126
|
# Selector specifying which fields to include in a partial response.
|
8128
8127
|
# @param [String] quota_user
|
@@ -8156,7 +8155,7 @@ module Google
|
|
8156
8155
|
|
8157
8156
|
# Deletes the specified Operations resource.
|
8158
8157
|
# @param [String] operation
|
8159
|
-
# Name of the Operations resource to delete.
|
8158
|
+
# Name of the Operations resource to delete, or its unique numeric identifier.
|
8160
8159
|
# @param [String] parent_id
|
8161
8160
|
# Parent ID for this request.
|
8162
8161
|
# @param [String] fields
|
@@ -8191,7 +8190,7 @@ module Google
|
|
8191
8190
|
# Retrieves the specified Operations resource. Gets a list of operations by
|
8192
8191
|
# making a `list()` request.
|
8193
8192
|
# @param [String] operation
|
8194
|
-
# Name of the Operations resource to return.
|
8193
|
+
# Name of the Operations resource to return, or its unique numeric identifier.
|
8195
8194
|
# @param [String] parent_id
|
8196
8195
|
# Parent ID for this request.
|
8197
8196
|
# @param [String] fields
|
@@ -21768,6 +21767,133 @@ module Google
|
|
21768
21767
|
execute_or_queue_command(command, &block)
|
21769
21768
|
end
|
21770
21769
|
|
21770
|
+
# Returns the specified network profile.
|
21771
|
+
# @param [String] project
|
21772
|
+
# Project ID for this request.
|
21773
|
+
# @param [String] network_profile
|
21774
|
+
# Name of the network profile to return.
|
21775
|
+
# @param [String] fields
|
21776
|
+
# Selector specifying which fields to include in a partial response.
|
21777
|
+
# @param [String] quota_user
|
21778
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
21779
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
21780
|
+
# @param [String] user_ip
|
21781
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
21782
|
+
# @param [Google::Apis::RequestOptions] options
|
21783
|
+
# Request-specific options
|
21784
|
+
#
|
21785
|
+
# @yield [result, err] Result & error if block supplied
|
21786
|
+
# @yieldparam result [Google::Apis::ComputeBeta::NetworkProfile] parsed result object
|
21787
|
+
# @yieldparam err [StandardError] error object if request failed
|
21788
|
+
#
|
21789
|
+
# @return [Google::Apis::ComputeBeta::NetworkProfile]
|
21790
|
+
#
|
21791
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21792
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21793
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21794
|
+
def get_network_profile(project, network_profile, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
21795
|
+
command = make_simple_command(:get, 'projects/{project}/global/networkProfiles/{networkProfile}', options)
|
21796
|
+
command.response_representation = Google::Apis::ComputeBeta::NetworkProfile::Representation
|
21797
|
+
command.response_class = Google::Apis::ComputeBeta::NetworkProfile
|
21798
|
+
command.params['project'] = project unless project.nil?
|
21799
|
+
command.params['networkProfile'] = network_profile unless network_profile.nil?
|
21800
|
+
command.query['fields'] = fields unless fields.nil?
|
21801
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
21802
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
21803
|
+
execute_or_queue_command(command, &block)
|
21804
|
+
end
|
21805
|
+
|
21806
|
+
# Retrieves a list of network profiles available to the specified project.
|
21807
|
+
# @param [String] project
|
21808
|
+
# Project ID for this request.
|
21809
|
+
# @param [String] filter
|
21810
|
+
# A filter expression that filters resources listed in the response. Most
|
21811
|
+
# Compute resources support two types of filter expressions: expressions that
|
21812
|
+
# support regular expressions and expressions that follow API improvement
|
21813
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
21814
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
21815
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
21816
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
21817
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
21818
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
21819
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
21820
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
21821
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
21822
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
21823
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
21824
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
21825
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
21826
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
21827
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
21828
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
21829
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
21830
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
21831
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
21832
|
+
# un-parenthesized expression with or without quotes or against multiple
|
21833
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
21834
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
21835
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
21836
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
21837
|
+
# literal value must match the entire field. For example, to filter for
|
21838
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
21839
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
21840
|
+
# expressions.
|
21841
|
+
# @param [Fixnum] max_results
|
21842
|
+
# The maximum number of results per page that should be returned. If the number
|
21843
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
21844
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
21845
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
21846
|
+
# @param [String] order_by
|
21847
|
+
# Sorts list results by a certain order. By default, results are returned in
|
21848
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
21849
|
+
# descending order based on the creation timestamp using `orderBy="
|
21850
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
21851
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
21852
|
+
# resources like operations so that the newest operation is returned first.
|
21853
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
21854
|
+
# @param [String] page_token
|
21855
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
21856
|
+
# by a previous list request to get the next page of results.
|
21857
|
+
# @param [Boolean] return_partial_success
|
21858
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
21859
|
+
# failure. The default value is false. For example, when partial success
|
21860
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
21861
|
+
# resources in the zone or no resources, with an error code.
|
21862
|
+
# @param [String] fields
|
21863
|
+
# Selector specifying which fields to include in a partial response.
|
21864
|
+
# @param [String] quota_user
|
21865
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
21866
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
21867
|
+
# @param [String] user_ip
|
21868
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
21869
|
+
# @param [Google::Apis::RequestOptions] options
|
21870
|
+
# Request-specific options
|
21871
|
+
#
|
21872
|
+
# @yield [result, err] Result & error if block supplied
|
21873
|
+
# @yieldparam result [Google::Apis::ComputeBeta::NetworkProfilesListResponse] parsed result object
|
21874
|
+
# @yieldparam err [StandardError] error object if request failed
|
21875
|
+
#
|
21876
|
+
# @return [Google::Apis::ComputeBeta::NetworkProfilesListResponse]
|
21877
|
+
#
|
21878
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21879
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21880
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21881
|
+
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)
|
21882
|
+
command = make_simple_command(:get, 'projects/{project}/global/networkProfiles', options)
|
21883
|
+
command.response_representation = Google::Apis::ComputeBeta::NetworkProfilesListResponse::Representation
|
21884
|
+
command.response_class = Google::Apis::ComputeBeta::NetworkProfilesListResponse
|
21885
|
+
command.params['project'] = project unless project.nil?
|
21886
|
+
command.query['filter'] = filter unless filter.nil?
|
21887
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
21888
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
21889
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
21890
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
21891
|
+
command.query['fields'] = fields unless fields.nil?
|
21892
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
21893
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
21894
|
+
execute_or_queue_command(command, &block)
|
21895
|
+
end
|
21896
|
+
|
21771
21897
|
# Adds a peering to the specified network.
|
21772
21898
|
# @param [String] project
|
21773
21899
|
# Project ID for this request.
|
@@ -24480,21 +24606,63 @@ module Google
|
|
24480
24606
|
execute_or_queue_command(command, &block)
|
24481
24607
|
end
|
24482
24608
|
|
24483
|
-
#
|
24484
|
-
#
|
24485
|
-
#
|
24609
|
+
# Gets the current list of preconfigured Web Application Firewall (WAF)
|
24610
|
+
# expressions.
|
24611
|
+
# @param [String] filter
|
24612
|
+
# A filter expression that filters resources listed in the response. Most
|
24613
|
+
# Compute resources support two types of filter expressions: expressions that
|
24614
|
+
# support regular expressions and expressions that follow API improvement
|
24615
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
24616
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
24617
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
24618
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
24619
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
24620
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
24621
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
24622
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
24623
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
24624
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
24625
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
24626
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
24627
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
24628
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
24629
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
24630
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
24631
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
24632
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
24633
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
24634
|
+
# un-parenthesized expression with or without quotes or against multiple
|
24635
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
24636
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
24637
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
24638
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
24639
|
+
# literal value must match the entire field. For example, to filter for
|
24640
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
24641
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
24642
|
+
# expressions.
|
24643
|
+
# @param [Fixnum] max_results
|
24644
|
+
# The maximum number of results per page that should be returned. If the number
|
24645
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
24646
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
24647
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
24648
|
+
# @param [String] order_by
|
24649
|
+
# Sorts list results by a certain order. By default, results are returned in
|
24650
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
24651
|
+
# descending order based on the creation timestamp using `orderBy="
|
24652
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
24653
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
24654
|
+
# resources like operations so that the newest operation is returned first.
|
24655
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
24656
|
+
# @param [String] page_token
|
24657
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
24658
|
+
# by a previous list request to get the next page of results.
|
24486
24659
|
# @param [String] parent_id
|
24487
|
-
#
|
24488
|
-
# @param [
|
24489
|
-
#
|
24490
|
-
#
|
24491
|
-
#
|
24492
|
-
#
|
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).
|
24660
|
+
# Parent ID for this request.
|
24661
|
+
# @param [Boolean] return_partial_success
|
24662
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
24663
|
+
# failure. The default value is false. For example, when partial success
|
24664
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
24665
|
+
# resources in the zone or no resources, with an error code.
|
24498
24666
|
# @param [String] fields
|
24499
24667
|
# Selector specifying which fields to include in a partial response.
|
24500
24668
|
# @param [String] quota_user
|
@@ -24506,80 +24674,35 @@ module Google
|
|
24506
24674
|
# Request-specific options
|
24507
24675
|
#
|
24508
24676
|
# @yield [result, err] Result & error if block supplied
|
24509
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
24677
|
+
# @yieldparam result [Google::Apis::ComputeBeta::SecurityPoliciesListPreconfiguredExpressionSetsResponse] parsed result object
|
24510
24678
|
# @yieldparam err [StandardError] error object if request failed
|
24511
24679
|
#
|
24512
|
-
# @return [Google::Apis::ComputeBeta::
|
24680
|
+
# @return [Google::Apis::ComputeBeta::SecurityPoliciesListPreconfiguredExpressionSetsResponse]
|
24513
24681
|
#
|
24514
24682
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
24515
24683
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
24516
24684
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
24517
|
-
def
|
24518
|
-
command = make_simple_command(:
|
24519
|
-
command.response_representation = Google::Apis::ComputeBeta::
|
24520
|
-
command.response_class = Google::Apis::ComputeBeta::
|
24521
|
-
command.
|
24685
|
+
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)
|
24686
|
+
command = make_simple_command(:get, 'locations/global/securityPolicies/listPreconfiguredExpressionSets', options)
|
24687
|
+
command.response_representation = Google::Apis::ComputeBeta::SecurityPoliciesListPreconfiguredExpressionSetsResponse::Representation
|
24688
|
+
command.response_class = Google::Apis::ComputeBeta::SecurityPoliciesListPreconfiguredExpressionSetsResponse
|
24689
|
+
command.query['filter'] = filter unless filter.nil?
|
24690
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
24691
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
24692
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
24522
24693
|
command.query['parentId'] = parent_id unless parent_id.nil?
|
24523
|
-
command.query['
|
24524
|
-
command.query['fields'] = fields unless fields.nil?
|
24525
|
-
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
24526
|
-
command.query['userIp'] = user_ip unless user_ip.nil?
|
24527
|
-
execute_or_queue_command(command, &block)
|
24528
|
-
end
|
24529
|
-
|
24530
|
-
# Patches the specified policy with the data included in the request.
|
24531
|
-
# @param [String] security_policy
|
24532
|
-
# Name of the security policy to update.
|
24533
|
-
# @param [Google::Apis::ComputeBeta::SecurityPolicy] security_policy_object
|
24534
|
-
# @param [String] request_id
|
24535
|
-
# An optional request ID to identify requests. Specify a unique request ID so
|
24536
|
-
# that if you must retry your request, the server will know to ignore the
|
24537
|
-
# request if it has already been completed. For example, consider a situation
|
24538
|
-
# where you make an initial request and the request times out. If you make the
|
24539
|
-
# request again with the same request ID, the server can check if original
|
24540
|
-
# operation with the same request ID was received, and if so, will ignore the
|
24541
|
-
# second request. This prevents clients from accidentally creating duplicate
|
24542
|
-
# commitments. The request ID must be a valid UUID with the exception that zero
|
24543
|
-
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
24544
|
-
# @param [String] fields
|
24545
|
-
# Selector specifying which fields to include in a partial response.
|
24546
|
-
# @param [String] quota_user
|
24547
|
-
# Available to use for quota purposes for server-side applications. Can be any
|
24548
|
-
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
24549
|
-
# @param [String] user_ip
|
24550
|
-
# Legacy name for parameter that has been superseded by `quotaUser`.
|
24551
|
-
# @param [Google::Apis::RequestOptions] options
|
24552
|
-
# Request-specific options
|
24553
|
-
#
|
24554
|
-
# @yield [result, err] Result & error if block supplied
|
24555
|
-
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
24556
|
-
# @yieldparam err [StandardError] error object if request failed
|
24557
|
-
#
|
24558
|
-
# @return [Google::Apis::ComputeBeta::Operation]
|
24559
|
-
#
|
24560
|
-
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
24561
|
-
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
24562
|
-
# @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
|
24567
|
-
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
24568
|
-
command.response_class = Google::Apis::ComputeBeta::Operation
|
24569
|
-
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
24570
|
-
command.query['requestId'] = request_id unless request_id.nil?
|
24694
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
24571
24695
|
command.query['fields'] = fields unless fields.nil?
|
24572
24696
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
24573
24697
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
24574
24698
|
execute_or_queue_command(command, &block)
|
24575
24699
|
end
|
24576
24700
|
|
24577
|
-
#
|
24701
|
+
# Moves the specified security policy.
|
24578
24702
|
# @param [String] security_policy
|
24579
24703
|
# Name of the security policy to update.
|
24580
|
-
# @param [
|
24581
|
-
#
|
24582
|
-
# The priority of the rule to patch.
|
24704
|
+
# @param [String] parent_id
|
24705
|
+
# The new parent of the security policy.
|
24583
24706
|
# @param [String] request_id
|
24584
24707
|
# An optional request ID to identify requests. Specify a unique request ID so
|
24585
24708
|
# that if you must retry your request, the server will know to ignore the
|
@@ -24609,14 +24732,12 @@ module Google
|
|
24609
24732
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
24610
24733
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
24611
24734
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
24612
|
-
def
|
24613
|
-
command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/
|
24614
|
-
command.request_representation = Google::Apis::ComputeBeta::SecurityPolicyRule::Representation
|
24615
|
-
command.request_object = security_policy_rule_object
|
24735
|
+
def move_organization_security_policy(security_policy, parent_id: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
24736
|
+
command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/move', options)
|
24616
24737
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
24617
24738
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
24618
24739
|
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
24619
|
-
command.query['
|
24740
|
+
command.query['parentId'] = parent_id unless parent_id.nil?
|
24620
24741
|
command.query['requestId'] = request_id unless request_id.nil?
|
24621
24742
|
command.query['fields'] = fields unless fields.nil?
|
24622
24743
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -24624,11 +24745,10 @@ module Google
|
|
24624
24745
|
execute_or_queue_command(command, &block)
|
24625
24746
|
end
|
24626
24747
|
|
24627
|
-
#
|
24748
|
+
# Patches the specified policy with the data included in the request.
|
24628
24749
|
# @param [String] security_policy
|
24629
24750
|
# Name of the security policy to update.
|
24630
|
-
# @param [
|
24631
|
-
# Name for the attachment that will be removed.
|
24751
|
+
# @param [Google::Apis::ComputeBeta::SecurityPolicy] security_policy_object
|
24632
24752
|
# @param [String] request_id
|
24633
24753
|
# An optional request ID to identify requests. Specify a unique request ID so
|
24634
24754
|
# that if you must retry your request, the server will know to ignore the
|
@@ -24658,12 +24778,13 @@ module Google
|
|
24658
24778
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
24659
24779
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
24660
24780
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
24661
|
-
def
|
24662
|
-
command = make_simple_command(:
|
24781
|
+
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)
|
24782
|
+
command = make_simple_command(:patch, 'locations/global/securityPolicies/{securityPolicy}', options)
|
24783
|
+
command.request_representation = Google::Apis::ComputeBeta::SecurityPolicy::Representation
|
24784
|
+
command.request_object = security_policy_object
|
24663
24785
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
24664
24786
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
24665
24787
|
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
24666
|
-
command.query['name'] = name unless name.nil?
|
24667
24788
|
command.query['requestId'] = request_id unless request_id.nil?
|
24668
24789
|
command.query['fields'] = fields unless fields.nil?
|
24669
24790
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -24671,11 +24792,108 @@ module Google
|
|
24671
24792
|
execute_or_queue_command(command, &block)
|
24672
24793
|
end
|
24673
24794
|
|
24674
|
-
#
|
24795
|
+
# Patches a rule at the specified priority.
|
24675
24796
|
# @param [String] security_policy
|
24676
24797
|
# Name of the security policy to update.
|
24798
|
+
# @param [Google::Apis::ComputeBeta::SecurityPolicyRule] security_policy_rule_object
|
24677
24799
|
# @param [Fixnum] priority
|
24678
|
-
# The priority of the rule to
|
24800
|
+
# The priority of the rule to patch.
|
24801
|
+
# @param [String] request_id
|
24802
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
24803
|
+
# that if you must retry your request, the server will know to ignore the
|
24804
|
+
# request if it has already been completed. For example, consider a situation
|
24805
|
+
# where you make an initial request and the request times out. If you make the
|
24806
|
+
# request again with the same request ID, the server can check if original
|
24807
|
+
# operation with the same request ID was received, and if so, will ignore the
|
24808
|
+
# second request. This prevents clients from accidentally creating duplicate
|
24809
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
24810
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
24811
|
+
# @param [String] fields
|
24812
|
+
# Selector specifying which fields to include in a partial response.
|
24813
|
+
# @param [String] quota_user
|
24814
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
24815
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
24816
|
+
# @param [String] user_ip
|
24817
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
24818
|
+
# @param [Google::Apis::RequestOptions] options
|
24819
|
+
# Request-specific options
|
24820
|
+
#
|
24821
|
+
# @yield [result, err] Result & error if block supplied
|
24822
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
24823
|
+
# @yieldparam err [StandardError] error object if request failed
|
24824
|
+
#
|
24825
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
24826
|
+
#
|
24827
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
24828
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
24829
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
24830
|
+
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)
|
24831
|
+
command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/patchRule', options)
|
24832
|
+
command.request_representation = Google::Apis::ComputeBeta::SecurityPolicyRule::Representation
|
24833
|
+
command.request_object = security_policy_rule_object
|
24834
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
24835
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
24836
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
24837
|
+
command.query['priority'] = priority unless priority.nil?
|
24838
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
24839
|
+
command.query['fields'] = fields unless fields.nil?
|
24840
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
24841
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
24842
|
+
execute_or_queue_command(command, &block)
|
24843
|
+
end
|
24844
|
+
|
24845
|
+
# Removes an association for the specified security policy.
|
24846
|
+
# @param [String] security_policy
|
24847
|
+
# Name of the security policy to update.
|
24848
|
+
# @param [String] name
|
24849
|
+
# Name for the attachment that will be removed.
|
24850
|
+
# @param [String] request_id
|
24851
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
24852
|
+
# that if you must retry your request, the server will know to ignore the
|
24853
|
+
# request if it has already been completed. For example, consider a situation
|
24854
|
+
# where you make an initial request and the request times out. If you make the
|
24855
|
+
# request again with the same request ID, the server can check if original
|
24856
|
+
# operation with the same request ID was received, and if so, will ignore the
|
24857
|
+
# second request. This prevents clients from accidentally creating duplicate
|
24858
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
24859
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
24860
|
+
# @param [String] fields
|
24861
|
+
# Selector specifying which fields to include in a partial response.
|
24862
|
+
# @param [String] quota_user
|
24863
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
24864
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
24865
|
+
# @param [String] user_ip
|
24866
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
24867
|
+
# @param [Google::Apis::RequestOptions] options
|
24868
|
+
# Request-specific options
|
24869
|
+
#
|
24870
|
+
# @yield [result, err] Result & error if block supplied
|
24871
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
24872
|
+
# @yieldparam err [StandardError] error object if request failed
|
24873
|
+
#
|
24874
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
24875
|
+
#
|
24876
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
24877
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
24878
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
24879
|
+
def remove_organization_security_policy_association(security_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
24880
|
+
command = make_simple_command(:post, 'locations/global/securityPolicies/{securityPolicy}/removeAssociation', options)
|
24881
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
24882
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
24883
|
+
command.params['securityPolicy'] = security_policy unless security_policy.nil?
|
24884
|
+
command.query['name'] = name unless name.nil?
|
24885
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
24886
|
+
command.query['fields'] = fields unless fields.nil?
|
24887
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
24888
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
24889
|
+
execute_or_queue_command(command, &block)
|
24890
|
+
end
|
24891
|
+
|
24892
|
+
# Deletes a rule at the specified priority.
|
24893
|
+
# @param [String] security_policy
|
24894
|
+
# Name of the security policy to update.
|
24895
|
+
# @param [Fixnum] priority
|
24896
|
+
# The priority of the rule to remove from the security policy.
|
24679
24897
|
# @param [String] request_id
|
24680
24898
|
# An optional request ID to identify requests. Specify a unique request ID so
|
24681
24899
|
# that if you must retry your request, the server will know to ignore the
|
@@ -27511,8 +27729,8 @@ module Google
|
|
27511
27729
|
execute_or_queue_command(command, &block)
|
27512
27730
|
end
|
27513
27731
|
|
27514
|
-
# Retrieves
|
27515
|
-
#
|
27732
|
+
# Retrieves a list of all usable backend services in the specified project in
|
27733
|
+
# the given region.
|
27516
27734
|
# @param [String] project
|
27517
27735
|
# Project ID for this request.
|
27518
27736
|
# @param [String] region
|
@@ -30056,25 +30274,19 @@ module Google
|
|
30056
30274
|
execute_or_queue_command(command, &block)
|
30057
30275
|
end
|
30058
30276
|
|
30059
|
-
#
|
30060
|
-
#
|
30061
|
-
#
|
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.
|
30277
|
+
# Cancels the specified resize request. Cancelled resize request no longer waits
|
30278
|
+
# for the resources to be provisioned. Cancel is only possible for requests that
|
30279
|
+
# are in accepted state.
|
30071
30280
|
# @param [String] project
|
30072
30281
|
# Project ID for this request.
|
30073
30282
|
# @param [String] region
|
30074
|
-
#
|
30283
|
+
# The name of the region scoping this request. Name should conform to RFC1035.
|
30075
30284
|
# @param [String] instance_group_manager
|
30076
|
-
#
|
30077
|
-
#
|
30285
|
+
# The name of the managed instance group. Name should conform to RFC1035 or be a
|
30286
|
+
# resource ID.
|
30287
|
+
# @param [String] resize_request
|
30288
|
+
# The name of the resize request to cancel. Name should conform to RFC1035 or be
|
30289
|
+
# a resource ID.
|
30078
30290
|
# @param [String] request_id
|
30079
30291
|
# An optional request ID to identify requests. Specify a unique request ID so
|
30080
30292
|
# that if you must retry your request, the server will know to ignore the
|
@@ -30104,15 +30316,14 @@ module Google
|
|
30104
30316
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30105
30317
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30106
30318
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30107
|
-
def
|
30108
|
-
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/
|
30109
|
-
command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersAbandonInstancesRequest::Representation
|
30110
|
-
command.request_object = region_instance_group_managers_abandon_instances_request_object
|
30319
|
+
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)
|
30320
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}/cancel', options)
|
30111
30321
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
30112
30322
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
30113
30323
|
command.params['project'] = project unless project.nil?
|
30114
30324
|
command.params['region'] = region unless region.nil?
|
30115
30325
|
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
30326
|
+
command.params['resizeRequest'] = resize_request unless resize_request.nil?
|
30116
30327
|
command.query['requestId'] = request_id unless request_id.nil?
|
30117
30328
|
command.query['fields'] = fields unless fields.nil?
|
30118
30329
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -30120,14 +30331,29 @@ module Google
|
|
30120
30331
|
execute_or_queue_command(command, &block)
|
30121
30332
|
end
|
30122
30333
|
|
30123
|
-
#
|
30334
|
+
# Deletes the specified, inactive resize request. Requests that are still active
|
30335
|
+
# cannot be deleted. Deleting request does not delete instances that were
|
30336
|
+
# provisioned previously.
|
30124
30337
|
# @param [String] project
|
30125
30338
|
# Project ID for this request.
|
30126
30339
|
# @param [String] region
|
30127
|
-
#
|
30340
|
+
# The name of the region scoping this request. Name should conform to RFC1035.
|
30128
30341
|
# @param [String] instance_group_manager
|
30129
|
-
# The name of the managed instance group
|
30130
|
-
#
|
30342
|
+
# The name of the managed instance group. Name should conform to RFC1035 or be a
|
30343
|
+
# resource ID.
|
30344
|
+
# @param [String] resize_request
|
30345
|
+
# The name of the resize request to delete. Name should conform to RFC1035 or be
|
30346
|
+
# a resource ID.
|
30347
|
+
# @param [String] request_id
|
30348
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
30349
|
+
# that if you must retry your request, the server will know to ignore the
|
30350
|
+
# request if it has already been completed. For example, consider a situation
|
30351
|
+
# where you make an initial request and the request times out. If you make the
|
30352
|
+
# request again with the same request ID, the server can check if original
|
30353
|
+
# operation with the same request ID was received, and if so, will ignore the
|
30354
|
+
# second request. This prevents clients from accidentally creating duplicate
|
30355
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
30356
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
30131
30357
|
# @param [String] fields
|
30132
30358
|
# Selector specifying which fields to include in a partial response.
|
30133
30359
|
# @param [String] quota_user
|
@@ -30147,44 +30373,32 @@ module Google
|
|
30147
30373
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30148
30374
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30149
30375
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30150
|
-
def
|
30151
|
-
command = make_simple_command(:
|
30152
|
-
command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersApplyUpdatesRequest::Representation
|
30153
|
-
command.request_object = region_instance_group_managers_apply_updates_request_object
|
30376
|
+
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)
|
30377
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}', options)
|
30154
30378
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
30155
30379
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
30156
30380
|
command.params['project'] = project unless project.nil?
|
30157
30381
|
command.params['region'] = region unless region.nil?
|
30158
30382
|
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
30383
|
+
command.params['resizeRequest'] = resize_request unless resize_request.nil?
|
30384
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
30159
30385
|
command.query['fields'] = fields unless fields.nil?
|
30160
30386
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30161
30387
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
30162
30388
|
execute_or_queue_command(command, &block)
|
30163
30389
|
end
|
30164
30390
|
|
30165
|
-
#
|
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.
|
30391
|
+
# Returns all of the details about the specified resize request.
|
30171
30392
|
# @param [String] project
|
30172
30393
|
# Project ID for this request.
|
30173
30394
|
# @param [String] region
|
30174
|
-
# The name of the region
|
30175
|
-
# conform to RFC1035.
|
30395
|
+
# The name of the region scoping this request. Name should conform to RFC1035.
|
30176
30396
|
# @param [String] instance_group_manager
|
30177
|
-
# The name of the managed instance group.
|
30178
|
-
#
|
30179
|
-
# @param [String]
|
30180
|
-
#
|
30181
|
-
#
|
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).
|
30397
|
+
# The name of the managed instance group. Name should conform to RFC1035 or be a
|
30398
|
+
# resource ID.
|
30399
|
+
# @param [String] resize_request
|
30400
|
+
# The name of the resize request. Name should conform to RFC1035 or be a
|
30401
|
+
# resource ID.
|
30188
30402
|
# @param [String] fields
|
30189
30403
|
# Selector specifying which fields to include in a partial response.
|
30190
30404
|
# @param [String] quota_user
|
@@ -30196,38 +30410,38 @@ module Google
|
|
30196
30410
|
# Request-specific options
|
30197
30411
|
#
|
30198
30412
|
# @yield [result, err] Result & error if block supplied
|
30199
|
-
# @yieldparam result [Google::Apis::ComputeBeta::
|
30413
|
+
# @yieldparam result [Google::Apis::ComputeBeta::InstanceGroupManagerResizeRequest] parsed result object
|
30200
30414
|
# @yieldparam err [StandardError] error object if request failed
|
30201
30415
|
#
|
30202
|
-
# @return [Google::Apis::ComputeBeta::
|
30416
|
+
# @return [Google::Apis::ComputeBeta::InstanceGroupManagerResizeRequest]
|
30203
30417
|
#
|
30204
30418
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30205
30419
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30206
30420
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30207
|
-
def
|
30208
|
-
command = make_simple_command(:
|
30209
|
-
command.
|
30210
|
-
command.
|
30211
|
-
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
30212
|
-
command.response_class = Google::Apis::ComputeBeta::Operation
|
30421
|
+
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)
|
30422
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests/{resizeRequest}', options)
|
30423
|
+
command.response_representation = Google::Apis::ComputeBeta::InstanceGroupManagerResizeRequest::Representation
|
30424
|
+
command.response_class = Google::Apis::ComputeBeta::InstanceGroupManagerResizeRequest
|
30213
30425
|
command.params['project'] = project unless project.nil?
|
30214
30426
|
command.params['region'] = region unless region.nil?
|
30215
30427
|
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
30216
|
-
command.
|
30428
|
+
command.params['resizeRequest'] = resize_request unless resize_request.nil?
|
30217
30429
|
command.query['fields'] = fields unless fields.nil?
|
30218
30430
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30219
30431
|
command.query['userIp'] = user_ip unless user_ip.nil?
|
30220
30432
|
execute_or_queue_command(command, &block)
|
30221
30433
|
end
|
30222
30434
|
|
30223
|
-
#
|
30224
|
-
#
|
30435
|
+
# Creates a new Resize Request that starts provisioning VMs immediately or
|
30436
|
+
# queues VM creation.
|
30225
30437
|
# @param [String] project
|
30226
30438
|
# Project ID for this request.
|
30227
30439
|
# @param [String] region
|
30228
|
-
# Name of the region scoping this request.
|
30440
|
+
# Name of the region scoping this request. Name should conform to RFC1035.
|
30229
30441
|
# @param [String] instance_group_manager
|
30230
|
-
# Name of the managed instance group to
|
30442
|
+
# Name of the managed instance group to which the resize request is scoped. Name
|
30443
|
+
# should conform to RFC1035 or be a resource ID.
|
30444
|
+
# @param [Google::Apis::ComputeBeta::InstanceGroupManagerResizeRequest] instance_group_manager_resize_request_object
|
30231
30445
|
# @param [String] request_id
|
30232
30446
|
# An optional request ID to identify requests. Specify a unique request ID so
|
30233
30447
|
# that if you must retry your request, the server will know to ignore the
|
@@ -30257,8 +30471,10 @@ module Google
|
|
30257
30471
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30258
30472
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30259
30473
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30260
|
-
def
|
30261
|
-
command = make_simple_command(:
|
30474
|
+
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)
|
30475
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests', options)
|
30476
|
+
command.request_representation = Google::Apis::ComputeBeta::InstanceGroupManagerResizeRequest::Representation
|
30477
|
+
command.request_object = instance_group_manager_resize_request_object
|
30262
30478
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
30263
30479
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
30264
30480
|
command.params['project'] = project unless project.nil?
|
@@ -30271,15 +30487,114 @@ module Google
|
|
30271
30487
|
execute_or_queue_command(command, &block)
|
30272
30488
|
end
|
30273
30489
|
|
30274
|
-
#
|
30275
|
-
#
|
30276
|
-
#
|
30277
|
-
#
|
30278
|
-
#
|
30279
|
-
#
|
30280
|
-
#
|
30281
|
-
#
|
30282
|
-
#
|
30490
|
+
# Retrieves a list of Resize Requests that are contained in the managed instance
|
30491
|
+
# group.
|
30492
|
+
# @param [String] project
|
30493
|
+
# Project ID for this request.
|
30494
|
+
# @param [String] region
|
30495
|
+
# Name of the region scoping this request. Name should conform to RFC1035.
|
30496
|
+
# @param [String] instance_group_manager
|
30497
|
+
# The name of the managed instance group. The name should conform to RFC1035.
|
30498
|
+
# @param [String] filter
|
30499
|
+
# A filter expression that filters resources listed in the response. Most
|
30500
|
+
# Compute resources support two types of filter expressions: expressions that
|
30501
|
+
# support regular expressions and expressions that follow API improvement
|
30502
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
30503
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
30504
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
30505
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
30506
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
30507
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
30508
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
30509
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
30510
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
30511
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
30512
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
30513
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
30514
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
30515
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
30516
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
30517
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
30518
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
30519
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
30520
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
30521
|
+
# un-parenthesized expression with or without quotes or against multiple
|
30522
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
30523
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
30524
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
30525
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
30526
|
+
# literal value must match the entire field. For example, to filter for
|
30527
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
30528
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
30529
|
+
# expressions.
|
30530
|
+
# @param [Fixnum] max_results
|
30531
|
+
# The maximum number of results per page that should be returned. If the number
|
30532
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
30533
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
30534
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
30535
|
+
# @param [String] order_by
|
30536
|
+
# Sorts list results by a certain order. By default, results are returned in
|
30537
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
30538
|
+
# descending order based on the creation timestamp using `orderBy="
|
30539
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
30540
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
30541
|
+
# resources like operations so that the newest operation is returned first.
|
30542
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
30543
|
+
# @param [String] page_token
|
30544
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
30545
|
+
# by a previous list request to get the next page of results.
|
30546
|
+
# @param [Boolean] return_partial_success
|
30547
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
30548
|
+
# failure. The default value is false. For example, when partial success
|
30549
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
30550
|
+
# resources in the zone or no resources, with an error code.
|
30551
|
+
# @param [String] fields
|
30552
|
+
# Selector specifying which fields to include in a partial response.
|
30553
|
+
# @param [String] quota_user
|
30554
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30555
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30556
|
+
# @param [String] user_ip
|
30557
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30558
|
+
# @param [Google::Apis::RequestOptions] options
|
30559
|
+
# Request-specific options
|
30560
|
+
#
|
30561
|
+
# @yield [result, err] Result & error if block supplied
|
30562
|
+
# @yieldparam result [Google::Apis::ComputeBeta::RegionInstanceGroupManagerResizeRequestsListResponse] parsed result object
|
30563
|
+
# @yieldparam err [StandardError] error object if request failed
|
30564
|
+
#
|
30565
|
+
# @return [Google::Apis::ComputeBeta::RegionInstanceGroupManagerResizeRequestsListResponse]
|
30566
|
+
#
|
30567
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30568
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30569
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30570
|
+
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)
|
30571
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/resizeRequests', options)
|
30572
|
+
command.response_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagerResizeRequestsListResponse::Representation
|
30573
|
+
command.response_class = Google::Apis::ComputeBeta::RegionInstanceGroupManagerResizeRequestsListResponse
|
30574
|
+
command.params['project'] = project unless project.nil?
|
30575
|
+
command.params['region'] = region unless region.nil?
|
30576
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
30577
|
+
command.query['filter'] = filter unless filter.nil?
|
30578
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
30579
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
30580
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
30581
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
30582
|
+
command.query['fields'] = fields unless fields.nil?
|
30583
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30584
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30585
|
+
execute_or_queue_command(command, &block)
|
30586
|
+
end
|
30587
|
+
|
30588
|
+
# Flags the specified instances to be immediately removed from the managed
|
30589
|
+
# instance group. Abandoning an instance does not delete the instance, but it
|
30590
|
+
# does remove the instance from any target pools that are applied by the managed
|
30591
|
+
# instance group. This method reduces the targetSize of the managed instance
|
30592
|
+
# group by the number of instances that you abandon. This operation is marked as
|
30593
|
+
# DONE when the action is scheduled even if the instances have not yet been
|
30594
|
+
# removed from the group. You must separately verify the status of the
|
30595
|
+
# abandoning action with the listmanagedinstances method. If the group is part
|
30596
|
+
# of a backend service that has enabled connection draining, it can take up to
|
30597
|
+
# 60 seconds after the connection draining duration has elapsed before the VM
|
30283
30598
|
# instance is removed or deleted. You can specify a maximum of 1000 instances
|
30284
30599
|
# with this method per request.
|
30285
30600
|
# @param [String] project
|
@@ -30288,7 +30603,221 @@ module Google
|
|
30288
30603
|
# Name of the region scoping this request.
|
30289
30604
|
# @param [String] instance_group_manager
|
30290
30605
|
# Name of the managed instance group.
|
30291
|
-
# @param [Google::Apis::ComputeBeta::
|
30606
|
+
# @param [Google::Apis::ComputeBeta::RegionInstanceGroupManagersAbandonInstancesRequest] region_instance_group_managers_abandon_instances_request_object
|
30607
|
+
# @param [String] request_id
|
30608
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
30609
|
+
# that if you must retry your request, the server will know to ignore the
|
30610
|
+
# request if it has already been completed. For example, consider a situation
|
30611
|
+
# where you make an initial request and the request times out. If you make the
|
30612
|
+
# request again with the same request ID, the server can check if original
|
30613
|
+
# operation with the same request ID was received, and if so, will ignore the
|
30614
|
+
# second request. This prevents clients from accidentally creating duplicate
|
30615
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
30616
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
30617
|
+
# @param [String] fields
|
30618
|
+
# Selector specifying which fields to include in a partial response.
|
30619
|
+
# @param [String] quota_user
|
30620
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30621
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30622
|
+
# @param [String] user_ip
|
30623
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30624
|
+
# @param [Google::Apis::RequestOptions] options
|
30625
|
+
# Request-specific options
|
30626
|
+
#
|
30627
|
+
# @yield [result, err] Result & error if block supplied
|
30628
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
30629
|
+
# @yieldparam err [StandardError] error object if request failed
|
30630
|
+
#
|
30631
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
30632
|
+
#
|
30633
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30634
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30635
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30636
|
+
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)
|
30637
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/abandonInstances', options)
|
30638
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersAbandonInstancesRequest::Representation
|
30639
|
+
command.request_object = region_instance_group_managers_abandon_instances_request_object
|
30640
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
30641
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
30642
|
+
command.params['project'] = project unless project.nil?
|
30643
|
+
command.params['region'] = region unless region.nil?
|
30644
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
30645
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
30646
|
+
command.query['fields'] = fields unless fields.nil?
|
30647
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30648
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30649
|
+
execute_or_queue_command(command, &block)
|
30650
|
+
end
|
30651
|
+
|
30652
|
+
# Apply updates to selected instances the managed instance group.
|
30653
|
+
# @param [String] project
|
30654
|
+
# Project ID for this request.
|
30655
|
+
# @param [String] region
|
30656
|
+
# Name of the region scoping this request, should conform to RFC1035.
|
30657
|
+
# @param [String] instance_group_manager
|
30658
|
+
# The name of the managed instance group, should conform to RFC1035.
|
30659
|
+
# @param [Google::Apis::ComputeBeta::RegionInstanceGroupManagersApplyUpdatesRequest] region_instance_group_managers_apply_updates_request_object
|
30660
|
+
# @param [String] fields
|
30661
|
+
# Selector specifying which fields to include in a partial response.
|
30662
|
+
# @param [String] quota_user
|
30663
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30664
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30665
|
+
# @param [String] user_ip
|
30666
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30667
|
+
# @param [Google::Apis::RequestOptions] options
|
30668
|
+
# Request-specific options
|
30669
|
+
#
|
30670
|
+
# @yield [result, err] Result & error if block supplied
|
30671
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
30672
|
+
# @yieldparam err [StandardError] error object if request failed
|
30673
|
+
#
|
30674
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
30675
|
+
#
|
30676
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30677
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30678
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30679
|
+
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)
|
30680
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/applyUpdatesToInstances', options)
|
30681
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersApplyUpdatesRequest::Representation
|
30682
|
+
command.request_object = region_instance_group_managers_apply_updates_request_object
|
30683
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
30684
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
30685
|
+
command.params['project'] = project unless project.nil?
|
30686
|
+
command.params['region'] = region unless region.nil?
|
30687
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
30688
|
+
command.query['fields'] = fields unless fields.nil?
|
30689
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30690
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30691
|
+
execute_or_queue_command(command, &block)
|
30692
|
+
end
|
30693
|
+
|
30694
|
+
# Creates instances with per-instance configurations in this regional managed
|
30695
|
+
# instance group. Instances are created using the current instance template. The
|
30696
|
+
# create instances operation is marked DONE if the createInstances request is
|
30697
|
+
# successful. The underlying actions take additional time. You must separately
|
30698
|
+
# verify the status of the creating or actions with the listmanagedinstances
|
30699
|
+
# method.
|
30700
|
+
# @param [String] project
|
30701
|
+
# Project ID for this request.
|
30702
|
+
# @param [String] region
|
30703
|
+
# The name of the region where the managed instance group is located. It should
|
30704
|
+
# conform to RFC1035.
|
30705
|
+
# @param [String] instance_group_manager
|
30706
|
+
# The name of the managed instance group. It should conform to RFC1035.
|
30707
|
+
# @param [Google::Apis::ComputeBeta::RegionInstanceGroupManagersCreateInstancesRequest] region_instance_group_managers_create_instances_request_object
|
30708
|
+
# @param [String] request_id
|
30709
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
30710
|
+
# that if you must retry your request, the server will know to ignore the
|
30711
|
+
# request if it has already been completed. For example, consider a situation
|
30712
|
+
# where you make an initial request and the request times out. If you make the
|
30713
|
+
# request again with the same request ID, the server can check if original
|
30714
|
+
# operation with the same request ID was received, and if so, will ignore the
|
30715
|
+
# second request. The request ID must be a valid UUID with the exception that
|
30716
|
+
# zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
30717
|
+
# @param [String] fields
|
30718
|
+
# Selector specifying which fields to include in a partial response.
|
30719
|
+
# @param [String] quota_user
|
30720
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30721
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30722
|
+
# @param [String] user_ip
|
30723
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30724
|
+
# @param [Google::Apis::RequestOptions] options
|
30725
|
+
# Request-specific options
|
30726
|
+
#
|
30727
|
+
# @yield [result, err] Result & error if block supplied
|
30728
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
30729
|
+
# @yieldparam err [StandardError] error object if request failed
|
30730
|
+
#
|
30731
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
30732
|
+
#
|
30733
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30734
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30735
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30736
|
+
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)
|
30737
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}/createInstances', options)
|
30738
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionInstanceGroupManagersCreateInstancesRequest::Representation
|
30739
|
+
command.request_object = region_instance_group_managers_create_instances_request_object
|
30740
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
30741
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
30742
|
+
command.params['project'] = project unless project.nil?
|
30743
|
+
command.params['region'] = region unless region.nil?
|
30744
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
30745
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
30746
|
+
command.query['fields'] = fields unless fields.nil?
|
30747
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30748
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30749
|
+
execute_or_queue_command(command, &block)
|
30750
|
+
end
|
30751
|
+
|
30752
|
+
# Deletes the specified managed instance group and all of the instances in that
|
30753
|
+
# group.
|
30754
|
+
# @param [String] project
|
30755
|
+
# Project ID for this request.
|
30756
|
+
# @param [String] region
|
30757
|
+
# Name of the region scoping this request.
|
30758
|
+
# @param [String] instance_group_manager
|
30759
|
+
# Name of the managed instance group to delete.
|
30760
|
+
# @param [String] request_id
|
30761
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
30762
|
+
# that if you must retry your request, the server will know to ignore the
|
30763
|
+
# request if it has already been completed. For example, consider a situation
|
30764
|
+
# where you make an initial request and the request times out. If you make the
|
30765
|
+
# request again with the same request ID, the server can check if original
|
30766
|
+
# operation with the same request ID was received, and if so, will ignore the
|
30767
|
+
# second request. This prevents clients from accidentally creating duplicate
|
30768
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
30769
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
30770
|
+
# @param [String] fields
|
30771
|
+
# Selector specifying which fields to include in a partial response.
|
30772
|
+
# @param [String] quota_user
|
30773
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30774
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30775
|
+
# @param [String] user_ip
|
30776
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30777
|
+
# @param [Google::Apis::RequestOptions] options
|
30778
|
+
# Request-specific options
|
30779
|
+
#
|
30780
|
+
# @yield [result, err] Result & error if block supplied
|
30781
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
30782
|
+
# @yieldparam err [StandardError] error object if request failed
|
30783
|
+
#
|
30784
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
30785
|
+
#
|
30786
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30787
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30788
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
30789
|
+
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)
|
30790
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/instanceGroupManagers/{instanceGroupManager}', options)
|
30791
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
30792
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
30793
|
+
command.params['project'] = project unless project.nil?
|
30794
|
+
command.params['region'] = region unless region.nil?
|
30795
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
30796
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
30797
|
+
command.query['fields'] = fields unless fields.nil?
|
30798
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30799
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30800
|
+
execute_or_queue_command(command, &block)
|
30801
|
+
end
|
30802
|
+
|
30803
|
+
# Flags the specified instances in the managed instance group to be immediately
|
30804
|
+
# deleted. The instances are also removed from any target pools of which they
|
30805
|
+
# were a member. This method reduces the targetSize of the managed instance
|
30806
|
+
# group by the number of instances that you delete. The deleteInstances
|
30807
|
+
# operation is marked DONE if the deleteInstances request is successful. The
|
30808
|
+
# underlying actions take additional time. You must separately verify the status
|
30809
|
+
# of the deleting action with the listmanagedinstances method. If the group is
|
30810
|
+
# part of a backend service that has enabled connection draining, it can take up
|
30811
|
+
# to 60 seconds after the connection draining duration has elapsed before the VM
|
30812
|
+
# instance is removed or deleted. You can specify a maximum of 1000 instances
|
30813
|
+
# with this method per request.
|
30814
|
+
# @param [String] project
|
30815
|
+
# Project ID for this request.
|
30816
|
+
# @param [String] region
|
30817
|
+
# Name of the region scoping this request.
|
30818
|
+
# @param [String] instance_group_manager
|
30819
|
+
# Name of the managed instance group.
|
30820
|
+
# @param [Google::Apis::ComputeBeta::RegionInstanceGroupManagersDeleteInstancesRequest] region_instance_group_managers_delete_instances_request_object
|
30292
30821
|
# @param [String] request_id
|
30293
30822
|
# An optional request ID to identify requests. Specify a unique request ID so
|
30294
30823
|
# that if you must retry your request, the server will know to ignore the
|
@@ -32805,16 +33334,13 @@ module Google
|
|
32805
33334
|
execute_or_queue_command(command, &block)
|
32806
33335
|
end
|
32807
33336
|
|
32808
|
-
#
|
33337
|
+
# Deletes a multi-MIG in the specified project.
|
32809
33338
|
# @param [String] project
|
32810
33339
|
# Project ID for this request.
|
32811
33340
|
# @param [String] region
|
32812
|
-
#
|
32813
|
-
#
|
32814
|
-
#
|
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
|
33341
|
+
# Name of the region for this request.
|
33342
|
+
# @param [String] multi_mig
|
33343
|
+
# Name of the multi-MIG to delete.
|
32818
33344
|
# @param [String] request_id
|
32819
33345
|
# An optional request ID to identify requests. Specify a unique request ID so
|
32820
33346
|
# that if you must retry your request, the server will know to ignore the
|
@@ -32844,15 +33370,13 @@ module Google
|
|
32844
33370
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
32845
33371
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
32846
33372
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
32847
|
-
def
|
32848
|
-
command = make_simple_command(:
|
32849
|
-
command.request_representation = Google::Apis::ComputeBeta::RegionNetworkEndpointGroupsAttachEndpointsRequest::Representation
|
32850
|
-
command.request_object = region_network_endpoint_groups_attach_endpoints_request_object
|
33373
|
+
def delete_region_multi_mig(project, region, multi_mig, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33374
|
+
command = make_simple_command(:delete, 'projects/{project}/regions/{region}/multiMigs/{multiMig}', options)
|
32851
33375
|
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
32852
33376
|
command.response_class = Google::Apis::ComputeBeta::Operation
|
32853
33377
|
command.params['project'] = project unless project.nil?
|
32854
33378
|
command.params['region'] = region unless region.nil?
|
32855
|
-
command.params['
|
33379
|
+
command.params['multiMig'] = multi_mig unless multi_mig.nil?
|
32856
33380
|
command.query['requestId'] = request_id unless request_id.nil?
|
32857
33381
|
command.query['fields'] = fields unless fields.nil?
|
32858
33382
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -32860,16 +33384,51 @@ module Google
|
|
32860
33384
|
execute_or_queue_command(command, &block)
|
32861
33385
|
end
|
32862
33386
|
|
32863
|
-
#
|
32864
|
-
# deleted if it is configured as a backend of a backend service.
|
33387
|
+
# Returns all the details of a specific multi-MIG.
|
32865
33388
|
# @param [String] project
|
32866
33389
|
# Project ID for this request.
|
32867
33390
|
# @param [String] region
|
32868
|
-
#
|
32869
|
-
#
|
32870
|
-
#
|
32871
|
-
#
|
32872
|
-
#
|
33391
|
+
# Name of the region for this request.
|
33392
|
+
# @param [String] multi_mig
|
33393
|
+
# Name of the multi-MIG resource to return.
|
33394
|
+
# @param [String] fields
|
33395
|
+
# Selector specifying which fields to include in a partial response.
|
33396
|
+
# @param [String] quota_user
|
33397
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33398
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33399
|
+
# @param [String] user_ip
|
33400
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33401
|
+
# @param [Google::Apis::RequestOptions] options
|
33402
|
+
# Request-specific options
|
33403
|
+
#
|
33404
|
+
# @yield [result, err] Result & error if block supplied
|
33405
|
+
# @yieldparam result [Google::Apis::ComputeBeta::MultiMig] parsed result object
|
33406
|
+
# @yieldparam err [StandardError] error object if request failed
|
33407
|
+
#
|
33408
|
+
# @return [Google::Apis::ComputeBeta::MultiMig]
|
33409
|
+
#
|
33410
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33411
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33412
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33413
|
+
def get_region_multi_mig(project, region, multi_mig, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
33414
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/multiMigs/{multiMig}', options)
|
33415
|
+
command.response_representation = Google::Apis::ComputeBeta::MultiMig::Representation
|
33416
|
+
command.response_class = Google::Apis::ComputeBeta::MultiMig
|
33417
|
+
command.params['project'] = project unless project.nil?
|
33418
|
+
command.params['region'] = region unless region.nil?
|
33419
|
+
command.params['multiMig'] = multi_mig unless multi_mig.nil?
|
33420
|
+
command.query['fields'] = fields unless fields.nil?
|
33421
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33422
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33423
|
+
execute_or_queue_command(command, &block)
|
33424
|
+
end
|
33425
|
+
|
33426
|
+
# Creates a multi-MIG in the specified project.
|
33427
|
+
# @param [String] project
|
33428
|
+
# Project ID for this request.
|
33429
|
+
# @param [String] region
|
33430
|
+
# Name of the region for this request.
|
33431
|
+
# @param [Google::Apis::ComputeBeta::MultiMig] multi_mig_object
|
32873
33432
|
# @param [String] request_id
|
32874
33433
|
# An optional request ID to identify requests. Specify a unique request ID so
|
32875
33434
|
# that if you must retry your request, the server will know to ignore the
|
@@ -32877,7 +33436,210 @@ module Google
|
|
32877
33436
|
# where you make an initial request and the request times out. If you make the
|
32878
33437
|
# request again with the same request ID, the server can check if original
|
32879
33438
|
# operation with the same request ID was received, and if so, will ignore the
|
32880
|
-
# second request. This prevents
|
33439
|
+
# second request. This prevents you from accidentally creating duplicate
|
33440
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
33441
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
33442
|
+
# @param [String] fields
|
33443
|
+
# Selector specifying which fields to include in a partial response.
|
33444
|
+
# @param [String] quota_user
|
33445
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33446
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33447
|
+
# @param [String] user_ip
|
33448
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33449
|
+
# @param [Google::Apis::RequestOptions] options
|
33450
|
+
# Request-specific options
|
33451
|
+
#
|
33452
|
+
# @yield [result, err] Result & error if block supplied
|
33453
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
33454
|
+
# @yieldparam err [StandardError] error object if request failed
|
33455
|
+
#
|
33456
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
33457
|
+
#
|
33458
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33459
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33460
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33461
|
+
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)
|
33462
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/multiMigs', options)
|
33463
|
+
command.request_representation = Google::Apis::ComputeBeta::MultiMig::Representation
|
33464
|
+
command.request_object = multi_mig_object
|
33465
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
33466
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
33467
|
+
command.params['project'] = project unless project.nil?
|
33468
|
+
command.params['region'] = region unless region.nil?
|
33469
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
33470
|
+
command.query['fields'] = fields unless fields.nil?
|
33471
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33472
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33473
|
+
execute_or_queue_command(command, &block)
|
33474
|
+
end
|
33475
|
+
|
33476
|
+
# Retrieves a list of multi-MIGs in a project and region.
|
33477
|
+
# @param [String] project
|
33478
|
+
# Project ID for this request.
|
33479
|
+
# @param [String] region
|
33480
|
+
# Name of the region for this request.
|
33481
|
+
# @param [String] filter
|
33482
|
+
# A filter expression that filters resources listed in the response. Most
|
33483
|
+
# Compute resources support two types of filter expressions: expressions that
|
33484
|
+
# support regular expressions and expressions that follow API improvement
|
33485
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
33486
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
33487
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
33488
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
33489
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
33490
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
33491
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
33492
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
33493
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
33494
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
33495
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
33496
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
33497
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
33498
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
33499
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
33500
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
33501
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
33502
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
33503
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
33504
|
+
# un-parenthesized expression with or without quotes or against multiple
|
33505
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
33506
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
33507
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
33508
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
33509
|
+
# literal value must match the entire field. For example, to filter for
|
33510
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
33511
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
33512
|
+
# expressions.
|
33513
|
+
# @param [Fixnum] max_results
|
33514
|
+
# The maximum number of results per page that should be returned. If the number
|
33515
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
33516
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
33517
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
33518
|
+
# @param [String] order_by
|
33519
|
+
# Sorts list results by a certain order. By default, results are returned in
|
33520
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
33521
|
+
# descending order based on the creation timestamp using `orderBy="
|
33522
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
33523
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
33524
|
+
# resources like operations so that the newest operation is returned first.
|
33525
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
33526
|
+
# @param [String] page_token
|
33527
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
33528
|
+
# by a previous list request to get the next page of results.
|
33529
|
+
# @param [Boolean] return_partial_success
|
33530
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
33531
|
+
# failure. The default value is false. For example, when partial success
|
33532
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
33533
|
+
# resources in the zone or no resources, with an error code.
|
33534
|
+
# @param [String] fields
|
33535
|
+
# Selector specifying which fields to include in a partial response.
|
33536
|
+
# @param [String] quota_user
|
33537
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33538
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33539
|
+
# @param [String] user_ip
|
33540
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33541
|
+
# @param [Google::Apis::RequestOptions] options
|
33542
|
+
# Request-specific options
|
33543
|
+
#
|
33544
|
+
# @yield [result, err] Result & error if block supplied
|
33545
|
+
# @yieldparam result [Google::Apis::ComputeBeta::MultiMigsList] parsed result object
|
33546
|
+
# @yieldparam err [StandardError] error object if request failed
|
33547
|
+
#
|
33548
|
+
# @return [Google::Apis::ComputeBeta::MultiMigsList]
|
33549
|
+
#
|
33550
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33551
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33552
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33553
|
+
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)
|
33554
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/multiMigs', options)
|
33555
|
+
command.response_representation = Google::Apis::ComputeBeta::MultiMigsList::Representation
|
33556
|
+
command.response_class = Google::Apis::ComputeBeta::MultiMigsList
|
33557
|
+
command.params['project'] = project unless project.nil?
|
33558
|
+
command.params['region'] = region unless region.nil?
|
33559
|
+
command.query['filter'] = filter unless filter.nil?
|
33560
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
33561
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
33562
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
33563
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
33564
|
+
command.query['fields'] = fields unless fields.nil?
|
33565
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33566
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33567
|
+
execute_or_queue_command(command, &block)
|
33568
|
+
end
|
33569
|
+
|
33570
|
+
# Attach a list of network endpoints to the specified network endpoint group.
|
33571
|
+
# @param [String] project
|
33572
|
+
# Project ID for this request.
|
33573
|
+
# @param [String] region
|
33574
|
+
# The name of the region where you want to create the network endpoint group. It
|
33575
|
+
# should comply with RFC1035.
|
33576
|
+
# @param [String] network_endpoint_group
|
33577
|
+
# The name of the network endpoint group where you are attaching network
|
33578
|
+
# endpoints to. It should comply with RFC1035.
|
33579
|
+
# @param [Google::Apis::ComputeBeta::RegionNetworkEndpointGroupsAttachEndpointsRequest] region_network_endpoint_groups_attach_endpoints_request_object
|
33580
|
+
# @param [String] request_id
|
33581
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
33582
|
+
# that if you must retry your request, the server will know to ignore the
|
33583
|
+
# request if it has already been completed. For example, consider a situation
|
33584
|
+
# where you make an initial request and the request times out. If you make the
|
33585
|
+
# request again with the same request ID, the server can check if original
|
33586
|
+
# operation with the same request ID was received, and if so, will ignore the
|
33587
|
+
# second request. This prevents clients from accidentally creating duplicate
|
33588
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
33589
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
33590
|
+
# @param [String] fields
|
33591
|
+
# Selector specifying which fields to include in a partial response.
|
33592
|
+
# @param [String] quota_user
|
33593
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33594
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33595
|
+
# @param [String] user_ip
|
33596
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33597
|
+
# @param [Google::Apis::RequestOptions] options
|
33598
|
+
# Request-specific options
|
33599
|
+
#
|
33600
|
+
# @yield [result, err] Result & error if block supplied
|
33601
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
33602
|
+
# @yieldparam err [StandardError] error object if request failed
|
33603
|
+
#
|
33604
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
33605
|
+
#
|
33606
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33607
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33608
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
33609
|
+
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)
|
33610
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/networkEndpointGroups/{networkEndpointGroup}/attachNetworkEndpoints', options)
|
33611
|
+
command.request_representation = Google::Apis::ComputeBeta::RegionNetworkEndpointGroupsAttachEndpointsRequest::Representation
|
33612
|
+
command.request_object = region_network_endpoint_groups_attach_endpoints_request_object
|
33613
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
33614
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
33615
|
+
command.params['project'] = project unless project.nil?
|
33616
|
+
command.params['region'] = region unless region.nil?
|
33617
|
+
command.params['networkEndpointGroup'] = network_endpoint_group unless network_endpoint_group.nil?
|
33618
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
33619
|
+
command.query['fields'] = fields unless fields.nil?
|
33620
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33621
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33622
|
+
execute_or_queue_command(command, &block)
|
33623
|
+
end
|
33624
|
+
|
33625
|
+
# Deletes the specified network endpoint group. Note that the NEG cannot be
|
33626
|
+
# deleted if it is configured as a backend of a backend service.
|
33627
|
+
# @param [String] project
|
33628
|
+
# Project ID for this request.
|
33629
|
+
# @param [String] region
|
33630
|
+
# The name of the region where the network endpoint group is located. It should
|
33631
|
+
# comply with RFC1035.
|
33632
|
+
# @param [String] network_endpoint_group
|
33633
|
+
# The name of the network endpoint group to delete. It should comply with
|
33634
|
+
# RFC1035.
|
33635
|
+
# @param [String] request_id
|
33636
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
33637
|
+
# that if you must retry your request, the server will know to ignore the
|
33638
|
+
# request if it has already been completed. For example, consider a situation
|
33639
|
+
# where you make an initial request and the request times out. If you make the
|
33640
|
+
# request again with the same request ID, the server can check if original
|
33641
|
+
# operation with the same request ID was received, and if so, will ignore the
|
33642
|
+
# second request. This prevents clients from accidentally creating duplicate
|
32881
33643
|
# commitments. The request ID must be a valid UUID with the exception that zero
|
32882
33644
|
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
32883
33645
|
# @param [String] fields
|
@@ -34410,7 +35172,7 @@ module Google
|
|
34410
35172
|
# @param [String] region
|
34411
35173
|
# Name of the region for this request.
|
34412
35174
|
# @param [String] operation
|
34413
|
-
# Name of the Operations resource to delete.
|
35175
|
+
# Name of the Operations resource to delete, or its unique numeric identifier.
|
34414
35176
|
# @param [String] fields
|
34415
35177
|
# Selector specifying which fields to include in a partial response.
|
34416
35178
|
# @param [String] quota_user
|
@@ -34447,7 +35209,7 @@ module Google
|
|
34447
35209
|
# @param [String] region
|
34448
35210
|
# Name of the region for this request.
|
34449
35211
|
# @param [String] operation
|
34450
|
-
# Name of the Operations resource to return.
|
35212
|
+
# Name of the Operations resource to return, or its unique numeric identifier.
|
34451
35213
|
# @param [String] fields
|
34452
35214
|
# Selector specifying which fields to include in a partial response.
|
34453
35215
|
# @param [String] quota_user
|
@@ -34589,7 +35351,7 @@ module Google
|
|
34589
35351
|
# @param [String] region
|
34590
35352
|
# Name of the region for this request.
|
34591
35353
|
# @param [String] operation
|
34592
|
-
# Name of the Operations resource to return.
|
35354
|
+
# Name of the Operations resource to return, or its unique numeric identifier.
|
34593
35355
|
# @param [String] fields
|
34594
35356
|
# Selector specifying which fields to include in a partial response.
|
34595
35357
|
# @param [String] quota_user
|
@@ -37542,6 +38304,148 @@ module Google
|
|
37542
38304
|
execute_or_queue_command(command, &block)
|
37543
38305
|
end
|
37544
38306
|
|
38307
|
+
# Retrieves information about the specified reservation block.
|
38308
|
+
# @param [String] project
|
38309
|
+
# Project ID for this request.
|
38310
|
+
# @param [String] zone
|
38311
|
+
# Name of the zone for this request. Zone name should conform to RFC1035.
|
38312
|
+
# @param [String] reservation
|
38313
|
+
# The name of the reservation. Name should conform to RFC1035 or be a resource
|
38314
|
+
# ID.
|
38315
|
+
# @param [String] reservation_block
|
38316
|
+
# The name of the reservation block. Name should conform to RFC1035 or be a
|
38317
|
+
# resource ID.
|
38318
|
+
# @param [String] fields
|
38319
|
+
# Selector specifying which fields to include in a partial response.
|
38320
|
+
# @param [String] quota_user
|
38321
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
38322
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38323
|
+
# @param [String] user_ip
|
38324
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
38325
|
+
# @param [Google::Apis::RequestOptions] options
|
38326
|
+
# Request-specific options
|
38327
|
+
#
|
38328
|
+
# @yield [result, err] Result & error if block supplied
|
38329
|
+
# @yieldparam result [Google::Apis::ComputeBeta::ReservationBlocksGetResponse] parsed result object
|
38330
|
+
# @yieldparam err [StandardError] error object if request failed
|
38331
|
+
#
|
38332
|
+
# @return [Google::Apis::ComputeBeta::ReservationBlocksGetResponse]
|
38333
|
+
#
|
38334
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38335
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38336
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38337
|
+
def get_reservation_block(project, zone, reservation, reservation_block, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
38338
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks/{reservationBlock}', options)
|
38339
|
+
command.response_representation = Google::Apis::ComputeBeta::ReservationBlocksGetResponse::Representation
|
38340
|
+
command.response_class = Google::Apis::ComputeBeta::ReservationBlocksGetResponse
|
38341
|
+
command.params['project'] = project unless project.nil?
|
38342
|
+
command.params['zone'] = zone unless zone.nil?
|
38343
|
+
command.params['reservation'] = reservation unless reservation.nil?
|
38344
|
+
command.params['reservationBlock'] = reservation_block unless reservation_block.nil?
|
38345
|
+
command.query['fields'] = fields unless fields.nil?
|
38346
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
38347
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
38348
|
+
execute_or_queue_command(command, &block)
|
38349
|
+
end
|
38350
|
+
|
38351
|
+
# Retrieves a list of reservation blocks under a single reservation.
|
38352
|
+
# @param [String] project
|
38353
|
+
# Project ID for this request.
|
38354
|
+
# @param [String] zone
|
38355
|
+
# Name of the zone for this request. Zone name should conform to RFC1035.
|
38356
|
+
# @param [String] reservation
|
38357
|
+
# The name of the reservation. Name should conform to RFC1035 or be a resource
|
38358
|
+
# ID.
|
38359
|
+
# @param [String] filter
|
38360
|
+
# A filter expression that filters resources listed in the response. Most
|
38361
|
+
# Compute resources support two types of filter expressions: expressions that
|
38362
|
+
# support regular expressions and expressions that follow API improvement
|
38363
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
38364
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
38365
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
38366
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
38367
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
38368
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
38369
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
38370
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
38371
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
38372
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
38373
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
38374
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
38375
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
38376
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
38377
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
38378
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
38379
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
38380
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
38381
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
38382
|
+
# un-parenthesized expression with or without quotes or against multiple
|
38383
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
38384
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
38385
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
38386
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
38387
|
+
# literal value must match the entire field. For example, to filter for
|
38388
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
38389
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
38390
|
+
# expressions.
|
38391
|
+
# @param [Fixnum] max_results
|
38392
|
+
# The maximum number of results per page that should be returned. If the number
|
38393
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
38394
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
38395
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
38396
|
+
# @param [String] order_by
|
38397
|
+
# Sorts list results by a certain order. By default, results are returned in
|
38398
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
38399
|
+
# descending order based on the creation timestamp using `orderBy="
|
38400
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
38401
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
38402
|
+
# resources like operations so that the newest operation is returned first.
|
38403
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
38404
|
+
# @param [String] page_token
|
38405
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
38406
|
+
# by a previous list request to get the next page of results.
|
38407
|
+
# @param [Boolean] return_partial_success
|
38408
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
38409
|
+
# failure. The default value is false. For example, when partial success
|
38410
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
38411
|
+
# resources in the zone or no resources, with an error code.
|
38412
|
+
# @param [String] fields
|
38413
|
+
# Selector specifying which fields to include in a partial response.
|
38414
|
+
# @param [String] quota_user
|
38415
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
38416
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
38417
|
+
# @param [String] user_ip
|
38418
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
38419
|
+
# @param [Google::Apis::RequestOptions] options
|
38420
|
+
# Request-specific options
|
38421
|
+
#
|
38422
|
+
# @yield [result, err] Result & error if block supplied
|
38423
|
+
# @yieldparam result [Google::Apis::ComputeBeta::ReservationBlocksListResponse] parsed result object
|
38424
|
+
# @yieldparam err [StandardError] error object if request failed
|
38425
|
+
#
|
38426
|
+
# @return [Google::Apis::ComputeBeta::ReservationBlocksListResponse]
|
38427
|
+
#
|
38428
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
38429
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
38430
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
38431
|
+
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)
|
38432
|
+
command = make_simple_command(:get, 'projects/{project}/zones/{zone}/reservations/{reservation}/reservationBlocks', options)
|
38433
|
+
command.response_representation = Google::Apis::ComputeBeta::ReservationBlocksListResponse::Representation
|
38434
|
+
command.response_class = Google::Apis::ComputeBeta::ReservationBlocksListResponse
|
38435
|
+
command.params['project'] = project unless project.nil?
|
38436
|
+
command.params['zone'] = zone unless zone.nil?
|
38437
|
+
command.params['reservation'] = reservation unless reservation.nil?
|
38438
|
+
command.query['filter'] = filter unless filter.nil?
|
38439
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
38440
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
38441
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
38442
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.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
|
+
|
37545
38449
|
# Retrieves an aggregated list of reservations. To prevent failure, Google
|
37546
38450
|
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
37547
38451
|
# @param [String] project
|
@@ -39530,6 +40434,59 @@ module Google
|
|
39530
40434
|
execute_or_queue_command(command, &block)
|
39531
40435
|
end
|
39532
40436
|
|
40437
|
+
# Patches Route Policy
|
40438
|
+
# @param [String] project
|
40439
|
+
# Project ID for this request.
|
40440
|
+
# @param [String] region
|
40441
|
+
# Name of the region for this request.
|
40442
|
+
# @param [String] router
|
40443
|
+
# Name of the Router resource where Route Policy is defined.
|
40444
|
+
# @param [Google::Apis::ComputeBeta::RoutePolicy] route_policy_object
|
40445
|
+
# @param [String] request_id
|
40446
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
40447
|
+
# that if you must retry your request, the server will know to ignore the
|
40448
|
+
# request if it has already been completed. For example, consider a situation
|
40449
|
+
# where you make an initial request and the request times out. If you make the
|
40450
|
+
# request again with the same request ID, the server can check if original
|
40451
|
+
# operation with the same request ID was received, and if so, will ignore the
|
40452
|
+
# second request. This prevents clients from accidentally creating duplicate
|
40453
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
40454
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
40455
|
+
# @param [String] fields
|
40456
|
+
# Selector specifying which fields to include in a partial response.
|
40457
|
+
# @param [String] quota_user
|
40458
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
40459
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
40460
|
+
# @param [String] user_ip
|
40461
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
40462
|
+
# @param [Google::Apis::RequestOptions] options
|
40463
|
+
# Request-specific options
|
40464
|
+
#
|
40465
|
+
# @yield [result, err] Result & error if block supplied
|
40466
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
40467
|
+
# @yieldparam err [StandardError] error object if request failed
|
40468
|
+
#
|
40469
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
40470
|
+
#
|
40471
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
40472
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
40473
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
40474
|
+
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)
|
40475
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/routers/{router}/patchRoutePolicy', options)
|
40476
|
+
command.request_representation = Google::Apis::ComputeBeta::RoutePolicy::Representation
|
40477
|
+
command.request_object = route_policy_object
|
40478
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
40479
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
40480
|
+
command.params['project'] = project unless project.nil?
|
40481
|
+
command.params['region'] = region unless region.nil?
|
40482
|
+
command.params['router'] = router unless router.nil?
|
40483
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
40484
|
+
command.query['fields'] = fields unless fields.nil?
|
40485
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
40486
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
40487
|
+
execute_or_queue_command(command, &block)
|
40488
|
+
end
|
40489
|
+
|
39533
40490
|
# Preview fields auto-generated during router create and update operations.
|
39534
40491
|
# Calling this method does NOT create or update the router.
|
39535
40492
|
# @param [String] project
|
@@ -49711,7 +50668,7 @@ module Google
|
|
49711
50668
|
# @param [String] zone
|
49712
50669
|
# Name of the zone for this request.
|
49713
50670
|
# @param [String] operation
|
49714
|
-
# Name of the Operations resource to delete.
|
50671
|
+
# Name of the Operations resource to delete, or its unique numeric identifier.
|
49715
50672
|
# @param [String] fields
|
49716
50673
|
# Selector specifying which fields to include in a partial response.
|
49717
50674
|
# @param [String] quota_user
|
@@ -49748,7 +50705,7 @@ module Google
|
|
49748
50705
|
# @param [String] zone
|
49749
50706
|
# Name of the zone for this request.
|
49750
50707
|
# @param [String] operation
|
49751
|
-
# Name of the Operations resource to return.
|
50708
|
+
# Name of the Operations resource to return, or its unique numeric identifier.
|
49752
50709
|
# @param [String] fields
|
49753
50710
|
# Selector specifying which fields to include in a partial response.
|
49754
50711
|
# @param [String] quota_user
|
@@ -49890,7 +50847,7 @@ module Google
|
|
49890
50847
|
# @param [String] zone
|
49891
50848
|
# Name of the zone for this request.
|
49892
50849
|
# @param [String] operation
|
49893
|
-
# Name of the Operations resource to return.
|
50850
|
+
# Name of the Operations resource to return, or its unique numeric identifier.
|
49894
50851
|
# @param [String] fields
|
49895
50852
|
# Selector specifying which fields to include in a partial response.
|
49896
50853
|
# @param [String] quota_user
|