google-apis-compute_beta 0.105.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 +9 -0
- data/lib/google/apis/compute_beta/classes.rb +2079 -609
- data/lib/google/apis/compute_beta/gem_version.rb +3 -3
- data/lib/google/apis/compute_beta/representations.rb +618 -138
- data/lib/google/apis/compute_beta/service.rb +1359 -16
- 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
|
@@ -4362,6 +4361,53 @@ module Google
|
|
4362
4361
|
execute_or_queue_command(command, &block)
|
4363
4362
|
end
|
4364
4363
|
|
4364
|
+
# Inserts a packet mirroring rule into a firewall policy.
|
4365
|
+
# @param [String] firewall_policy
|
4366
|
+
# Name of the firewall policy to update.
|
4367
|
+
# @param [Google::Apis::ComputeBeta::FirewallPolicyRule] firewall_policy_rule_object
|
4368
|
+
# @param [String] request_id
|
4369
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
4370
|
+
# that if you must retry your request, the server will know to ignore the
|
4371
|
+
# request if it has already been completed. For example, consider a situation
|
4372
|
+
# where you make an initial request and the request times out. If you make the
|
4373
|
+
# request again with the same request ID, the server can check if original
|
4374
|
+
# operation with the same request ID was received, and if so, will ignore the
|
4375
|
+
# second request. This prevents clients from accidentally creating duplicate
|
4376
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
4377
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
4378
|
+
# @param [String] fields
|
4379
|
+
# Selector specifying which fields to include in a partial response.
|
4380
|
+
# @param [String] quota_user
|
4381
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4382
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4383
|
+
# @param [String] user_ip
|
4384
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
4385
|
+
# @param [Google::Apis::RequestOptions] options
|
4386
|
+
# Request-specific options
|
4387
|
+
#
|
4388
|
+
# @yield [result, err] Result & error if block supplied
|
4389
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
4390
|
+
# @yieldparam err [StandardError] error object if request failed
|
4391
|
+
#
|
4392
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
4393
|
+
#
|
4394
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4395
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4396
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4397
|
+
def add_firewall_policy_packet_mirroring_rule(firewall_policy, firewall_policy_rule_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
4398
|
+
command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/addPacketMirroringRule', options)
|
4399
|
+
command.request_representation = Google::Apis::ComputeBeta::FirewallPolicyRule::Representation
|
4400
|
+
command.request_object = firewall_policy_rule_object
|
4401
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
4402
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
4403
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
4404
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
4405
|
+
command.query['fields'] = fields unless fields.nil?
|
4406
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4407
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
4408
|
+
execute_or_queue_command(command, &block)
|
4409
|
+
end
|
4410
|
+
|
4365
4411
|
# Inserts a rule into a firewall policy.
|
4366
4412
|
# @param [String] firewall_policy
|
4367
4413
|
# Name of the firewall policy to update.
|
@@ -4606,6 +4652,42 @@ module Google
|
|
4606
4652
|
execute_or_queue_command(command, &block)
|
4607
4653
|
end
|
4608
4654
|
|
4655
|
+
# Gets a packet mirroring rule of the specified priority.
|
4656
|
+
# @param [String] firewall_policy
|
4657
|
+
# Name of the firewall policy to which the queried rule belongs.
|
4658
|
+
# @param [Fixnum] priority
|
4659
|
+
# The priority of the rule to get from the firewall policy.
|
4660
|
+
# @param [String] fields
|
4661
|
+
# Selector specifying which fields to include in a partial response.
|
4662
|
+
# @param [String] quota_user
|
4663
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
4664
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
4665
|
+
# @param [String] user_ip
|
4666
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
4667
|
+
# @param [Google::Apis::RequestOptions] options
|
4668
|
+
# Request-specific options
|
4669
|
+
#
|
4670
|
+
# @yield [result, err] Result & error if block supplied
|
4671
|
+
# @yieldparam result [Google::Apis::ComputeBeta::FirewallPolicyRule] parsed result object
|
4672
|
+
# @yieldparam err [StandardError] error object if request failed
|
4673
|
+
#
|
4674
|
+
# @return [Google::Apis::ComputeBeta::FirewallPolicyRule]
|
4675
|
+
#
|
4676
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
4677
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
4678
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
4679
|
+
def get_firewall_policy_packet_mirroring_rule(firewall_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
4680
|
+
command = make_simple_command(:get, 'locations/global/firewallPolicies/{firewallPolicy}/getPacketMirroringRule', options)
|
4681
|
+
command.response_representation = Google::Apis::ComputeBeta::FirewallPolicyRule::Representation
|
4682
|
+
command.response_class = Google::Apis::ComputeBeta::FirewallPolicyRule
|
4683
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
4684
|
+
command.query['priority'] = priority unless priority.nil?
|
4685
|
+
command.query['fields'] = fields unless fields.nil?
|
4686
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
4687
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
4688
|
+
execute_or_queue_command(command, &block)
|
4689
|
+
end
|
4690
|
+
|
4609
4691
|
# Gets a rule of the specified priority.
|
4610
4692
|
# @param [String] firewall_policy
|
4611
4693
|
# Name of the firewall policy to which the queried rule belongs.
|
@@ -4915,6 +4997,56 @@ module Google
|
|
4915
4997
|
execute_or_queue_command(command, &block)
|
4916
4998
|
end
|
4917
4999
|
|
5000
|
+
# Patches a packet mirroring rule of the specified priority.
|
5001
|
+
# @param [String] firewall_policy
|
5002
|
+
# Name of the firewall policy to update.
|
5003
|
+
# @param [Google::Apis::ComputeBeta::FirewallPolicyRule] firewall_policy_rule_object
|
5004
|
+
# @param [Fixnum] priority
|
5005
|
+
# The priority of the rule to patch.
|
5006
|
+
# @param [String] request_id
|
5007
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
5008
|
+
# that if you must retry your request, the server will know to ignore the
|
5009
|
+
# request if it has already been completed. For example, consider a situation
|
5010
|
+
# where you make an initial request and the request times out. If you make the
|
5011
|
+
# request again with the same request ID, the server can check if original
|
5012
|
+
# operation with the same request ID was received, and if so, will ignore the
|
5013
|
+
# second request. This prevents clients from accidentally creating duplicate
|
5014
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
5015
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
5016
|
+
# @param [String] fields
|
5017
|
+
# Selector specifying which fields to include in a partial response.
|
5018
|
+
# @param [String] quota_user
|
5019
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5020
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5021
|
+
# @param [String] user_ip
|
5022
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
5023
|
+
# @param [Google::Apis::RequestOptions] options
|
5024
|
+
# Request-specific options
|
5025
|
+
#
|
5026
|
+
# @yield [result, err] Result & error if block supplied
|
5027
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
5028
|
+
# @yieldparam err [StandardError] error object if request failed
|
5029
|
+
#
|
5030
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
5031
|
+
#
|
5032
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5033
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5034
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5035
|
+
def patch_firewall_policy_packet_mirroring_rule(firewall_policy, firewall_policy_rule_object = nil, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5036
|
+
command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/patchPacketMirroringRule', options)
|
5037
|
+
command.request_representation = Google::Apis::ComputeBeta::FirewallPolicyRule::Representation
|
5038
|
+
command.request_object = firewall_policy_rule_object
|
5039
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
5040
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
5041
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
5042
|
+
command.query['priority'] = priority unless priority.nil?
|
5043
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
5044
|
+
command.query['fields'] = fields unless fields.nil?
|
5045
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5046
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5047
|
+
execute_or_queue_command(command, &block)
|
5048
|
+
end
|
5049
|
+
|
4918
5050
|
# Patches a rule of the specified priority.
|
4919
5051
|
# @param [String] firewall_policy
|
4920
5052
|
# Name of the firewall policy to update.
|
@@ -5012,6 +5144,53 @@ module Google
|
|
5012
5144
|
execute_or_queue_command(command, &block)
|
5013
5145
|
end
|
5014
5146
|
|
5147
|
+
# Deletes a packet mirroring rule of the specified priority.
|
5148
|
+
# @param [String] firewall_policy
|
5149
|
+
# Name of the firewall policy to update.
|
5150
|
+
# @param [Fixnum] priority
|
5151
|
+
# The priority of the rule to remove from the firewall policy.
|
5152
|
+
# @param [String] request_id
|
5153
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
5154
|
+
# that if you must retry your request, the server will know to ignore the
|
5155
|
+
# request if it has already been completed. For example, consider a situation
|
5156
|
+
# where you make an initial request and the request times out. If you make the
|
5157
|
+
# request again with the same request ID, the server can check if original
|
5158
|
+
# operation with the same request ID was received, and if so, will ignore the
|
5159
|
+
# second request. This prevents clients from accidentally creating duplicate
|
5160
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
5161
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
5162
|
+
# @param [String] fields
|
5163
|
+
# Selector specifying which fields to include in a partial response.
|
5164
|
+
# @param [String] quota_user
|
5165
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
5166
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
5167
|
+
# @param [String] user_ip
|
5168
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
5169
|
+
# @param [Google::Apis::RequestOptions] options
|
5170
|
+
# Request-specific options
|
5171
|
+
#
|
5172
|
+
# @yield [result, err] Result & error if block supplied
|
5173
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
5174
|
+
# @yieldparam err [StandardError] error object if request failed
|
5175
|
+
#
|
5176
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
5177
|
+
#
|
5178
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
5179
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
5180
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
5181
|
+
def remove_firewall_policy_packet_mirroring_rule(firewall_policy, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
5182
|
+
command = make_simple_command(:post, 'locations/global/firewallPolicies/{firewallPolicy}/removePacketMirroringRule', options)
|
5183
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
5184
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
5185
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
5186
|
+
command.query['priority'] = priority unless priority.nil?
|
5187
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
5188
|
+
command.query['fields'] = fields unless fields.nil?
|
5189
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
5190
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
5191
|
+
execute_or_queue_command(command, &block)
|
5192
|
+
end
|
5193
|
+
|
5015
5194
|
# Deletes a rule of the specified priority.
|
5016
5195
|
# @param [String] firewall_policy
|
5017
5196
|
# Name of the firewall policy to update.
|
@@ -7772,7 +7951,7 @@ module Google
|
|
7772
7951
|
# @param [String] project
|
7773
7952
|
# Project ID for this request.
|
7774
7953
|
# @param [String] operation
|
7775
|
-
# Name of the Operations resource to delete.
|
7954
|
+
# Name of the Operations resource to delete, or its unique numeric identifier.
|
7776
7955
|
# @param [String] fields
|
7777
7956
|
# Selector specifying which fields to include in a partial response.
|
7778
7957
|
# @param [String] quota_user
|
@@ -7806,7 +7985,7 @@ module Google
|
|
7806
7985
|
# @param [String] project
|
7807
7986
|
# Project ID for this request.
|
7808
7987
|
# @param [String] operation
|
7809
|
-
# Name of the Operations resource to return.
|
7988
|
+
# Name of the Operations resource to return, or its unique numeric identifier.
|
7810
7989
|
# @param [String] fields
|
7811
7990
|
# Selector specifying which fields to include in a partial response.
|
7812
7991
|
# @param [String] quota_user
|
@@ -7942,7 +8121,7 @@ module Google
|
|
7942
8121
|
# @param [String] project
|
7943
8122
|
# Project ID for this request.
|
7944
8123
|
# @param [String] operation
|
7945
|
-
# Name of the Operations resource to return.
|
8124
|
+
# Name of the Operations resource to return, or its unique numeric identifier.
|
7946
8125
|
# @param [String] fields
|
7947
8126
|
# Selector specifying which fields to include in a partial response.
|
7948
8127
|
# @param [String] quota_user
|
@@ -7976,7 +8155,7 @@ module Google
|
|
7976
8155
|
|
7977
8156
|
# Deletes the specified Operations resource.
|
7978
8157
|
# @param [String] operation
|
7979
|
-
# Name of the Operations resource to delete.
|
8158
|
+
# Name of the Operations resource to delete, or its unique numeric identifier.
|
7980
8159
|
# @param [String] parent_id
|
7981
8160
|
# Parent ID for this request.
|
7982
8161
|
# @param [String] fields
|
@@ -8011,7 +8190,7 @@ module Google
|
|
8011
8190
|
# Retrieves the specified Operations resource. Gets a list of operations by
|
8012
8191
|
# making a `list()` request.
|
8013
8192
|
# @param [String] operation
|
8014
|
-
# Name of the Operations resource to return.
|
8193
|
+
# Name of the Operations resource to return, or its unique numeric identifier.
|
8015
8194
|
# @param [String] parent_id
|
8016
8195
|
# Parent ID for this request.
|
8017
8196
|
# @param [String] fields
|
@@ -20658,6 +20837,64 @@ module Google
|
|
20658
20837
|
execute_or_queue_command(command, &block)
|
20659
20838
|
end
|
20660
20839
|
|
20840
|
+
# Inserts a packet mirroring rule into a firewall policy.
|
20841
|
+
# @param [String] project
|
20842
|
+
# Project ID for this request.
|
20843
|
+
# @param [String] firewall_policy
|
20844
|
+
# Name of the firewall policy to update.
|
20845
|
+
# @param [Google::Apis::ComputeBeta::FirewallPolicyRule] firewall_policy_rule_object
|
20846
|
+
# @param [Fixnum] max_priority
|
20847
|
+
# When rule.priority is not specified, auto choose a unused priority between
|
20848
|
+
# minPriority and maxPriority>. This field is exclusive with rule.priority.
|
20849
|
+
# @param [Fixnum] min_priority
|
20850
|
+
# When rule.priority is not specified, auto choose a unused priority between
|
20851
|
+
# minPriority and maxPriority>. This field is exclusive with rule.priority.
|
20852
|
+
# @param [String] request_id
|
20853
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
20854
|
+
# that if you must retry your request, the server will know to ignore the
|
20855
|
+
# request if it has already been completed. For example, consider a situation
|
20856
|
+
# where you make an initial request and the request times out. If you make the
|
20857
|
+
# request again with the same request ID, the server can check if original
|
20858
|
+
# operation with the same request ID was received, and if so, will ignore the
|
20859
|
+
# second request. This prevents clients from accidentally creating duplicate
|
20860
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
20861
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
20862
|
+
# @param [String] fields
|
20863
|
+
# Selector specifying which fields to include in a partial response.
|
20864
|
+
# @param [String] quota_user
|
20865
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
20866
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
20867
|
+
# @param [String] user_ip
|
20868
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
20869
|
+
# @param [Google::Apis::RequestOptions] options
|
20870
|
+
# Request-specific options
|
20871
|
+
#
|
20872
|
+
# @yield [result, err] Result & error if block supplied
|
20873
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
20874
|
+
# @yieldparam err [StandardError] error object if request failed
|
20875
|
+
#
|
20876
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
20877
|
+
#
|
20878
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
20879
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
20880
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
20881
|
+
def add_network_firewall_policy_packet_mirroring_rule(project, firewall_policy, firewall_policy_rule_object = nil, max_priority: nil, min_priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
20882
|
+
command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/addPacketMirroringRule', options)
|
20883
|
+
command.request_representation = Google::Apis::ComputeBeta::FirewallPolicyRule::Representation
|
20884
|
+
command.request_object = firewall_policy_rule_object
|
20885
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
20886
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
20887
|
+
command.params['project'] = project unless project.nil?
|
20888
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
20889
|
+
command.query['maxPriority'] = max_priority unless max_priority.nil?
|
20890
|
+
command.query['minPriority'] = min_priority unless min_priority.nil?
|
20891
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
20892
|
+
command.query['fields'] = fields unless fields.nil?
|
20893
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
20894
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
20895
|
+
execute_or_queue_command(command, &block)
|
20896
|
+
end
|
20897
|
+
|
20661
20898
|
# Inserts a rule into a firewall policy.
|
20662
20899
|
# @param [String] project
|
20663
20900
|
# Project ID for this request.
|
@@ -20928,6 +21165,45 @@ module Google
|
|
20928
21165
|
execute_or_queue_command(command, &block)
|
20929
21166
|
end
|
20930
21167
|
|
21168
|
+
# Gets a packet mirroring rule of the specified priority.
|
21169
|
+
# @param [String] project
|
21170
|
+
# Project ID for this request.
|
21171
|
+
# @param [String] firewall_policy
|
21172
|
+
# Name of the firewall policy to which the queried rule belongs.
|
21173
|
+
# @param [Fixnum] priority
|
21174
|
+
# The priority of the rule to get from the firewall policy.
|
21175
|
+
# @param [String] fields
|
21176
|
+
# Selector specifying which fields to include in a partial response.
|
21177
|
+
# @param [String] quota_user
|
21178
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
21179
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
21180
|
+
# @param [String] user_ip
|
21181
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
21182
|
+
# @param [Google::Apis::RequestOptions] options
|
21183
|
+
# Request-specific options
|
21184
|
+
#
|
21185
|
+
# @yield [result, err] Result & error if block supplied
|
21186
|
+
# @yieldparam result [Google::Apis::ComputeBeta::FirewallPolicyRule] parsed result object
|
21187
|
+
# @yieldparam err [StandardError] error object if request failed
|
21188
|
+
#
|
21189
|
+
# @return [Google::Apis::ComputeBeta::FirewallPolicyRule]
|
21190
|
+
#
|
21191
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21192
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21193
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21194
|
+
def get_network_firewall_policy_packet_mirroring_rule(project, firewall_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
21195
|
+
command = make_simple_command(:get, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/getPacketMirroringRule', options)
|
21196
|
+
command.response_representation = Google::Apis::ComputeBeta::FirewallPolicyRule::Representation
|
21197
|
+
command.response_class = Google::Apis::ComputeBeta::FirewallPolicyRule
|
21198
|
+
command.params['project'] = project unless project.nil?
|
21199
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
21200
|
+
command.query['priority'] = priority unless priority.nil?
|
21201
|
+
command.query['fields'] = fields unless fields.nil?
|
21202
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
21203
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
21204
|
+
execute_or_queue_command(command, &block)
|
21205
|
+
end
|
21206
|
+
|
20931
21207
|
# Gets a rule of the specified priority.
|
20932
21208
|
# @param [String] project
|
20933
21209
|
# Project ID for this request.
|
@@ -21156,6 +21432,59 @@ module Google
|
|
21156
21432
|
execute_or_queue_command(command, &block)
|
21157
21433
|
end
|
21158
21434
|
|
21435
|
+
# Patches a packet mirroring rule of the specified priority.
|
21436
|
+
# @param [String] project
|
21437
|
+
# Project ID for this request.
|
21438
|
+
# @param [String] firewall_policy
|
21439
|
+
# Name of the firewall policy to update.
|
21440
|
+
# @param [Google::Apis::ComputeBeta::FirewallPolicyRule] firewall_policy_rule_object
|
21441
|
+
# @param [Fixnum] priority
|
21442
|
+
# The priority of the rule to patch.
|
21443
|
+
# @param [String] request_id
|
21444
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
21445
|
+
# that if you must retry your request, the server will know to ignore the
|
21446
|
+
# request if it has already been completed. For example, consider a situation
|
21447
|
+
# where you make an initial request and the request times out. If you make the
|
21448
|
+
# request again with the same request ID, the server can check if original
|
21449
|
+
# operation with the same request ID was received, and if so, will ignore the
|
21450
|
+
# second request. This prevents clients from accidentally creating duplicate
|
21451
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
21452
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
21453
|
+
# @param [String] fields
|
21454
|
+
# Selector specifying which fields to include in a partial response.
|
21455
|
+
# @param [String] quota_user
|
21456
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
21457
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
21458
|
+
# @param [String] user_ip
|
21459
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
21460
|
+
# @param [Google::Apis::RequestOptions] options
|
21461
|
+
# Request-specific options
|
21462
|
+
#
|
21463
|
+
# @yield [result, err] Result & error if block supplied
|
21464
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
21465
|
+
# @yieldparam err [StandardError] error object if request failed
|
21466
|
+
#
|
21467
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
21468
|
+
#
|
21469
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21470
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21471
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21472
|
+
def patch_network_firewall_policy_packet_mirroring_rule(project, firewall_policy, firewall_policy_rule_object = nil, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
21473
|
+
command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/patchPacketMirroringRule', options)
|
21474
|
+
command.request_representation = Google::Apis::ComputeBeta::FirewallPolicyRule::Representation
|
21475
|
+
command.request_object = firewall_policy_rule_object
|
21476
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
21477
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
21478
|
+
command.params['project'] = project unless project.nil?
|
21479
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
21480
|
+
command.query['priority'] = priority unless priority.nil?
|
21481
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
21482
|
+
command.query['fields'] = fields unless fields.nil?
|
21483
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
21484
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
21485
|
+
execute_or_queue_command(command, &block)
|
21486
|
+
end
|
21487
|
+
|
21159
21488
|
# Patches a rule of the specified priority.
|
21160
21489
|
# @param [String] project
|
21161
21490
|
# Project ID for this request.
|
@@ -21259,6 +21588,56 @@ module Google
|
|
21259
21588
|
execute_or_queue_command(command, &block)
|
21260
21589
|
end
|
21261
21590
|
|
21591
|
+
# Deletes a packet mirroring rule of the specified priority.
|
21592
|
+
# @param [String] project
|
21593
|
+
# Project ID for this request.
|
21594
|
+
# @param [String] firewall_policy
|
21595
|
+
# Name of the firewall policy to update.
|
21596
|
+
# @param [Fixnum] priority
|
21597
|
+
# The priority of the rule to remove from the firewall policy.
|
21598
|
+
# @param [String] request_id
|
21599
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
21600
|
+
# that if you must retry your request, the server will know to ignore the
|
21601
|
+
# request if it has already been completed. For example, consider a situation
|
21602
|
+
# where you make an initial request and the request times out. If you make the
|
21603
|
+
# request again with the same request ID, the server can check if original
|
21604
|
+
# operation with the same request ID was received, and if so, will ignore the
|
21605
|
+
# second request. This prevents clients from accidentally creating duplicate
|
21606
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
21607
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
21608
|
+
# @param [String] fields
|
21609
|
+
# Selector specifying which fields to include in a partial response.
|
21610
|
+
# @param [String] quota_user
|
21611
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
21612
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
21613
|
+
# @param [String] user_ip
|
21614
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
21615
|
+
# @param [Google::Apis::RequestOptions] options
|
21616
|
+
# Request-specific options
|
21617
|
+
#
|
21618
|
+
# @yield [result, err] Result & error if block supplied
|
21619
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
21620
|
+
# @yieldparam err [StandardError] error object if request failed
|
21621
|
+
#
|
21622
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
21623
|
+
#
|
21624
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
21625
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
21626
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
21627
|
+
def remove_network_firewall_policy_packet_mirroring_rule(project, firewall_policy, priority: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
21628
|
+
command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/removePacketMirroringRule', options)
|
21629
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
21630
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
21631
|
+
command.params['project'] = project unless project.nil?
|
21632
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
21633
|
+
command.query['priority'] = priority unless priority.nil?
|
21634
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
21635
|
+
command.query['fields'] = fields unless fields.nil?
|
21636
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
21637
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
21638
|
+
execute_or_queue_command(command, &block)
|
21639
|
+
end
|
21640
|
+
|
21262
21641
|
# Deletes a rule of the specified priority.
|
21263
21642
|
# @param [String] project
|
21264
21643
|
# Project ID for this request.
|
@@ -21388,6 +21767,133 @@ module Google
|
|
21388
21767
|
execute_or_queue_command(command, &block)
|
21389
21768
|
end
|
21390
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
|
+
|
21391
21897
|
# Adds a peering to the specified network.
|
21392
21898
|
# @param [String] project
|
21393
21899
|
# Project ID for this request.
|
@@ -24100,6 +24606,98 @@ module Google
|
|
24100
24606
|
execute_or_queue_command(command, &block)
|
24101
24607
|
end
|
24102
24608
|
|
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.
|
24659
|
+
# @param [String] parent_id
|
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.
|
24666
|
+
# @param [String] fields
|
24667
|
+
# Selector specifying which fields to include in a partial response.
|
24668
|
+
# @param [String] quota_user
|
24669
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
24670
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
24671
|
+
# @param [String] user_ip
|
24672
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
24673
|
+
# @param [Google::Apis::RequestOptions] options
|
24674
|
+
# Request-specific options
|
24675
|
+
#
|
24676
|
+
# @yield [result, err] Result & error if block supplied
|
24677
|
+
# @yieldparam result [Google::Apis::ComputeBeta::SecurityPoliciesListPreconfiguredExpressionSetsResponse] parsed result object
|
24678
|
+
# @yieldparam err [StandardError] error object if request failed
|
24679
|
+
#
|
24680
|
+
# @return [Google::Apis::ComputeBeta::SecurityPoliciesListPreconfiguredExpressionSetsResponse]
|
24681
|
+
#
|
24682
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
24683
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
24684
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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?
|
24693
|
+
command.query['parentId'] = parent_id unless parent_id.nil?
|
24694
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
24695
|
+
command.query['fields'] = fields unless fields.nil?
|
24696
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
24697
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
24698
|
+
execute_or_queue_command(command, &block)
|
24699
|
+
end
|
24700
|
+
|
24103
24701
|
# Moves the specified security policy.
|
24104
24702
|
# @param [String] security_policy
|
24105
24703
|
# Name of the security policy to update.
|
@@ -27131,8 +27729,8 @@ module Google
|
|
27131
27729
|
execute_or_queue_command(command, &block)
|
27132
27730
|
end
|
27133
27731
|
|
27134
|
-
# Retrieves
|
27135
|
-
#
|
27732
|
+
# Retrieves a list of all usable backend services in the specified project in
|
27733
|
+
# the given region.
|
27136
27734
|
# @param [String] project
|
27137
27735
|
# Project ID for this request.
|
27138
27736
|
# @param [String] region
|
@@ -29676,6 +30274,317 @@ module Google
|
|
29676
30274
|
execute_or_queue_command(command, &block)
|
29677
30275
|
end
|
29678
30276
|
|
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.
|
30280
|
+
# @param [String] project
|
30281
|
+
# Project ID for this request.
|
30282
|
+
# @param [String] region
|
30283
|
+
# The name of the region scoping this request. Name should conform to RFC1035.
|
30284
|
+
# @param [String] instance_group_manager
|
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.
|
30290
|
+
# @param [String] request_id
|
30291
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
30292
|
+
# that if you must retry your request, the server will know to ignore the
|
30293
|
+
# request if it has already been completed. For example, consider a situation
|
30294
|
+
# where you make an initial request and the request times out. If you make the
|
30295
|
+
# request again with the same request ID, the server can check if original
|
30296
|
+
# operation with the same request ID was received, and if so, will ignore the
|
30297
|
+
# second request. This prevents clients from accidentally creating duplicate
|
30298
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
30299
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
30300
|
+
# @param [String] fields
|
30301
|
+
# Selector specifying which fields to include in a partial response.
|
30302
|
+
# @param [String] quota_user
|
30303
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30304
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30305
|
+
# @param [String] user_ip
|
30306
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30307
|
+
# @param [Google::Apis::RequestOptions] options
|
30308
|
+
# Request-specific options
|
30309
|
+
#
|
30310
|
+
# @yield [result, err] Result & error if block supplied
|
30311
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
30312
|
+
# @yieldparam err [StandardError] error object if request failed
|
30313
|
+
#
|
30314
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
30315
|
+
#
|
30316
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30317
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30318
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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)
|
30321
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
30322
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
30323
|
+
command.params['project'] = project unless project.nil?
|
30324
|
+
command.params['region'] = region unless region.nil?
|
30325
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
30326
|
+
command.params['resizeRequest'] = resize_request unless resize_request.nil?
|
30327
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
30328
|
+
command.query['fields'] = fields unless fields.nil?
|
30329
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30330
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30331
|
+
execute_or_queue_command(command, &block)
|
30332
|
+
end
|
30333
|
+
|
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.
|
30337
|
+
# @param [String] project
|
30338
|
+
# Project ID for this request.
|
30339
|
+
# @param [String] region
|
30340
|
+
# The name of the region scoping this request. Name should conform to RFC1035.
|
30341
|
+
# @param [String] instance_group_manager
|
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).
|
30357
|
+
# @param [String] fields
|
30358
|
+
# Selector specifying which fields to include in a partial response.
|
30359
|
+
# @param [String] quota_user
|
30360
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30361
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30362
|
+
# @param [String] user_ip
|
30363
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30364
|
+
# @param [Google::Apis::RequestOptions] options
|
30365
|
+
# Request-specific options
|
30366
|
+
#
|
30367
|
+
# @yield [result, err] Result & error if block supplied
|
30368
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
30369
|
+
# @yieldparam err [StandardError] error object if request failed
|
30370
|
+
#
|
30371
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
30372
|
+
#
|
30373
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30374
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30375
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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)
|
30378
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
30379
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
30380
|
+
command.params['project'] = project unless project.nil?
|
30381
|
+
command.params['region'] = region unless region.nil?
|
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?
|
30385
|
+
command.query['fields'] = fields unless fields.nil?
|
30386
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30387
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30388
|
+
execute_or_queue_command(command, &block)
|
30389
|
+
end
|
30390
|
+
|
30391
|
+
# Returns all of the details about the specified resize request.
|
30392
|
+
# @param [String] project
|
30393
|
+
# Project ID for this request.
|
30394
|
+
# @param [String] region
|
30395
|
+
# The name of the region scoping this request. Name should conform to RFC1035.
|
30396
|
+
# @param [String] instance_group_manager
|
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.
|
30402
|
+
# @param [String] fields
|
30403
|
+
# Selector specifying which fields to include in a partial response.
|
30404
|
+
# @param [String] quota_user
|
30405
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30406
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30407
|
+
# @param [String] user_ip
|
30408
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30409
|
+
# @param [Google::Apis::RequestOptions] options
|
30410
|
+
# Request-specific options
|
30411
|
+
#
|
30412
|
+
# @yield [result, err] Result & error if block supplied
|
30413
|
+
# @yieldparam result [Google::Apis::ComputeBeta::InstanceGroupManagerResizeRequest] parsed result object
|
30414
|
+
# @yieldparam err [StandardError] error object if request failed
|
30415
|
+
#
|
30416
|
+
# @return [Google::Apis::ComputeBeta::InstanceGroupManagerResizeRequest]
|
30417
|
+
#
|
30418
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30419
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30420
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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
|
30425
|
+
command.params['project'] = project unless project.nil?
|
30426
|
+
command.params['region'] = region unless region.nil?
|
30427
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
30428
|
+
command.params['resizeRequest'] = resize_request unless resize_request.nil?
|
30429
|
+
command.query['fields'] = fields unless fields.nil?
|
30430
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30431
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30432
|
+
execute_or_queue_command(command, &block)
|
30433
|
+
end
|
30434
|
+
|
30435
|
+
# Creates a new Resize Request that starts provisioning VMs immediately or
|
30436
|
+
# queues VM creation.
|
30437
|
+
# @param [String] project
|
30438
|
+
# Project ID for this request.
|
30439
|
+
# @param [String] region
|
30440
|
+
# Name of the region scoping this request. Name should conform to RFC1035.
|
30441
|
+
# @param [String] instance_group_manager
|
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
|
30445
|
+
# @param [String] request_id
|
30446
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
30447
|
+
# that if you must retry your request, the server will know to ignore the
|
30448
|
+
# request if it has already been completed. For example, consider a situation
|
30449
|
+
# where you make an initial request and the request times out. If you make the
|
30450
|
+
# request again with the same request ID, the server can check if original
|
30451
|
+
# operation with the same request ID was received, and if so, will ignore the
|
30452
|
+
# second request. This prevents clients from accidentally creating duplicate
|
30453
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
30454
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
30455
|
+
# @param [String] fields
|
30456
|
+
# Selector specifying which fields to include in a partial response.
|
30457
|
+
# @param [String] quota_user
|
30458
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
30459
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
30460
|
+
# @param [String] user_ip
|
30461
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
30462
|
+
# @param [Google::Apis::RequestOptions] options
|
30463
|
+
# Request-specific options
|
30464
|
+
#
|
30465
|
+
# @yield [result, err] Result & error if block supplied
|
30466
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
30467
|
+
# @yieldparam err [StandardError] error object if request failed
|
30468
|
+
#
|
30469
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
30470
|
+
#
|
30471
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
30472
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
30473
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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
|
30478
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
30479
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
30480
|
+
command.params['project'] = project unless project.nil?
|
30481
|
+
command.params['region'] = region unless region.nil?
|
30482
|
+
command.params['instanceGroupManager'] = instance_group_manager unless instance_group_manager.nil?
|
30483
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
30484
|
+
command.query['fields'] = fields unless fields.nil?
|
30485
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
30486
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
30487
|
+
execute_or_queue_command(command, &block)
|
30488
|
+
end
|
30489
|
+
|
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
|
+
|
29679
30588
|
# Flags the specified instances to be immediately removed from the managed
|
29680
30589
|
# instance group. Abandoning an instance does not delete the instance, but it
|
29681
30590
|
# does remove the instance from any target pools that are applied by the managed
|
@@ -32425,6 +33334,239 @@ module Google
|
|
32425
33334
|
execute_or_queue_command(command, &block)
|
32426
33335
|
end
|
32427
33336
|
|
33337
|
+
# Deletes a multi-MIG in the specified project.
|
33338
|
+
# @param [String] project
|
33339
|
+
# Project ID for this request.
|
33340
|
+
# @param [String] region
|
33341
|
+
# Name of the region for this request.
|
33342
|
+
# @param [String] multi_mig
|
33343
|
+
# Name of the multi-MIG to delete.
|
33344
|
+
# @param [String] request_id
|
33345
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
33346
|
+
# that if you must retry your request, the server will know to ignore the
|
33347
|
+
# request if it has already been completed. For example, consider a situation
|
33348
|
+
# where you make an initial request and the request times out. If you make the
|
33349
|
+
# request again with the same request ID, the server can check if original
|
33350
|
+
# operation with the same request ID was received, and if so, will ignore the
|
33351
|
+
# second request. This prevents clients from accidentally creating duplicate
|
33352
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
33353
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
33354
|
+
# @param [String] fields
|
33355
|
+
# Selector specifying which fields to include in a partial response.
|
33356
|
+
# @param [String] quota_user
|
33357
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
33358
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
33359
|
+
# @param [String] user_ip
|
33360
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
33361
|
+
# @param [Google::Apis::RequestOptions] options
|
33362
|
+
# Request-specific options
|
33363
|
+
#
|
33364
|
+
# @yield [result, err] Result & error if block supplied
|
33365
|
+
# @yieldparam result [Google::Apis::ComputeBeta::Operation] parsed result object
|
33366
|
+
# @yieldparam err [StandardError] error object if request failed
|
33367
|
+
#
|
33368
|
+
# @return [Google::Apis::ComputeBeta::Operation]
|
33369
|
+
#
|
33370
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
33371
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
33372
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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)
|
33375
|
+
command.response_representation = Google::Apis::ComputeBeta::Operation::Representation
|
33376
|
+
command.response_class = Google::Apis::ComputeBeta::Operation
|
33377
|
+
command.params['project'] = project unless project.nil?
|
33378
|
+
command.params['region'] = region unless region.nil?
|
33379
|
+
command.params['multiMig'] = multi_mig unless multi_mig.nil?
|
33380
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
33381
|
+
command.query['fields'] = fields unless fields.nil?
|
33382
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
33383
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
33384
|
+
execute_or_queue_command(command, &block)
|
33385
|
+
end
|
33386
|
+
|
33387
|
+
# Returns all the details of a specific multi-MIG.
|
33388
|
+
# @param [String] project
|
33389
|
+
# Project ID for this request.
|
33390
|
+
# @param [String] region
|
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
|
33432
|
+
# @param [String] request_id
|
33433
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
33434
|
+
# that if you must retry your request, the server will know to ignore the
|
33435
|
+
# request if it has already been completed. For example, consider a situation
|
33436
|
+
# where you make an initial request and the request times out. If you make the
|
33437
|
+
# request again with the same request ID, the server can check if original
|
33438
|
+
# operation with the same request ID was received, and if so, will ignore the
|
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
|
+
|
32428
33570
|
# Attach a list of network endpoints to the specified network endpoint group.
|
32429
33571
|
# @param [String] project
|
32430
33572
|
# Project ID for this request.
|
@@ -34030,7 +35172,7 @@ module Google
|
|
34030
35172
|
# @param [String] region
|
34031
35173
|
# Name of the region for this request.
|
34032
35174
|
# @param [String] operation
|
34033
|
-
# Name of the Operations resource to delete.
|
35175
|
+
# Name of the Operations resource to delete, or its unique numeric identifier.
|
34034
35176
|
# @param [String] fields
|
34035
35177
|
# Selector specifying which fields to include in a partial response.
|
34036
35178
|
# @param [String] quota_user
|
@@ -34067,7 +35209,7 @@ module Google
|
|
34067
35209
|
# @param [String] region
|
34068
35210
|
# Name of the region for this request.
|
34069
35211
|
# @param [String] operation
|
34070
|
-
# Name of the Operations resource to return.
|
35212
|
+
# Name of the Operations resource to return, or its unique numeric identifier.
|
34071
35213
|
# @param [String] fields
|
34072
35214
|
# Selector specifying which fields to include in a partial response.
|
34073
35215
|
# @param [String] quota_user
|
@@ -34209,7 +35351,7 @@ module Google
|
|
34209
35351
|
# @param [String] region
|
34210
35352
|
# Name of the region for this request.
|
34211
35353
|
# @param [String] operation
|
34212
|
-
# Name of the Operations resource to return.
|
35354
|
+
# Name of the Operations resource to return, or its unique numeric identifier.
|
34213
35355
|
# @param [String] fields
|
34214
35356
|
# Selector specifying which fields to include in a partial response.
|
34215
35357
|
# @param [String] quota_user
|
@@ -37016,7 +38158,13 @@ module Google
|
|
37016
38158
|
# information (the `quotas` field). To exclude one or more fields, set your
|
37017
38159
|
# request's `fields` query parameter to only include the fields you need. For
|
37018
38160
|
# example, to only include the `id` and `selfLink` fields, add the query
|
37019
|
-
# parameter `?fields=id,selfLink` to your request.
|
38161
|
+
# parameter `?fields=id,selfLink` to your request. This method fails if the
|
38162
|
+
# quota information is unavailable for the region and if the organization policy
|
38163
|
+
# constraint compute.requireBasicQuotaInResponse is enforced. This constraint,
|
38164
|
+
# when enforced, disables the fail-open behaviour when quota information (the `
|
38165
|
+
# items.quotas` field) is unavailable for the region. It is recommended to use
|
38166
|
+
# the default setting for the constraint unless your application requires the
|
38167
|
+
# fail-closed behaviour for this method.
|
37020
38168
|
# @param [String] project
|
37021
38169
|
# Project ID for this request.
|
37022
38170
|
# @param [String] region
|
@@ -37156,6 +38304,148 @@ module Google
|
|
37156
38304
|
execute_or_queue_command(command, &block)
|
37157
38305
|
end
|
37158
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
|
+
|
37159
38449
|
# Retrieves an aggregated list of reservations. To prevent failure, Google
|
37160
38450
|
# recommends that you set the `returnPartialSuccess` parameter to `true`.
|
37161
38451
|
# @param [String] project
|
@@ -39144,6 +40434,59 @@ module Google
|
|
39144
40434
|
execute_or_queue_command(command, &block)
|
39145
40435
|
end
|
39146
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
|
+
|
39147
40490
|
# Preview fields auto-generated during router create and update operations.
|
39148
40491
|
# Calling this method does NOT create or update the router.
|
39149
40492
|
# @param [String] project
|
@@ -49325,7 +50668,7 @@ module Google
|
|
49325
50668
|
# @param [String] zone
|
49326
50669
|
# Name of the zone for this request.
|
49327
50670
|
# @param [String] operation
|
49328
|
-
# Name of the Operations resource to delete.
|
50671
|
+
# Name of the Operations resource to delete, or its unique numeric identifier.
|
49329
50672
|
# @param [String] fields
|
49330
50673
|
# Selector specifying which fields to include in a partial response.
|
49331
50674
|
# @param [String] quota_user
|
@@ -49362,7 +50705,7 @@ module Google
|
|
49362
50705
|
# @param [String] zone
|
49363
50706
|
# Name of the zone for this request.
|
49364
50707
|
# @param [String] operation
|
49365
|
-
# Name of the Operations resource to return.
|
50708
|
+
# Name of the Operations resource to return, or its unique numeric identifier.
|
49366
50709
|
# @param [String] fields
|
49367
50710
|
# Selector specifying which fields to include in a partial response.
|
49368
50711
|
# @param [String] quota_user
|
@@ -49504,7 +50847,7 @@ module Google
|
|
49504
50847
|
# @param [String] zone
|
49505
50848
|
# Name of the zone for this request.
|
49506
50849
|
# @param [String] operation
|
49507
|
-
# Name of the Operations resource to return.
|
50850
|
+
# Name of the Operations resource to return, or its unique numeric identifier.
|
49508
50851
|
# @param [String] fields
|
49509
50852
|
# Selector specifying which fields to include in a partial response.
|
49510
50853
|
# @param [String] quota_user
|