google-apis-compute_v1 0.114.0 → 0.115.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/google/apis/compute_v1/classes.rb +863 -119
- data/lib/google/apis/compute_v1/gem_version.rb +2 -2
- data/lib/google/apis/compute_v1/representations.rb +304 -1
- data/lib/google/apis/compute_v1/service.rb +678 -11
- metadata +4 -4
@@ -13610,6 +13610,59 @@ module Google
|
|
13610
13610
|
execute_or_queue_command(command, &block)
|
13611
13611
|
end
|
13612
13612
|
|
13613
|
+
# Mark the host as faulty and try to restart the instance on a new host.
|
13614
|
+
# @param [String] project
|
13615
|
+
# Project ID for this request.
|
13616
|
+
# @param [String] zone
|
13617
|
+
# The name of the zone for this request.
|
13618
|
+
# @param [String] instance
|
13619
|
+
# Name of the instance scoping this request.
|
13620
|
+
# @param [Google::Apis::ComputeV1::InstancesReportHostAsFaultyRequest] instances_report_host_as_faulty_request_object
|
13621
|
+
# @param [String] request_id
|
13622
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
13623
|
+
# that if you must retry your request, the server will know to ignore the
|
13624
|
+
# request if it has already been completed. For example, consider a situation
|
13625
|
+
# where you make an initial request and the request times out. If you make the
|
13626
|
+
# request again with the same request ID, the server can check if original
|
13627
|
+
# operation with the same request ID was received, and if so, will ignore the
|
13628
|
+
# second request. This prevents clients from accidentally creating duplicate
|
13629
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
13630
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
13631
|
+
# @param [String] fields
|
13632
|
+
# Selector specifying which fields to include in a partial response.
|
13633
|
+
# @param [String] quota_user
|
13634
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
13635
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
13636
|
+
# @param [String] user_ip
|
13637
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
13638
|
+
# @param [Google::Apis::RequestOptions] options
|
13639
|
+
# Request-specific options
|
13640
|
+
#
|
13641
|
+
# @yield [result, err] Result & error if block supplied
|
13642
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
13643
|
+
# @yieldparam err [StandardError] error object if request failed
|
13644
|
+
#
|
13645
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
13646
|
+
#
|
13647
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
13648
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
13649
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
13650
|
+
def report_instance_host_as_faulty(project, zone, instance, instances_report_host_as_faulty_request_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
13651
|
+
command = make_simple_command(:post, 'projects/{project}/zones/{zone}/instances/{instance}/reportHostAsFaulty', options)
|
13652
|
+
command.request_representation = Google::Apis::ComputeV1::InstancesReportHostAsFaultyRequest::Representation
|
13653
|
+
command.request_object = instances_report_host_as_faulty_request_object
|
13654
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
13655
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
13656
|
+
command.params['project'] = project unless project.nil?
|
13657
|
+
command.params['zone'] = zone unless zone.nil?
|
13658
|
+
command.params['instance'] = instance unless instance.nil?
|
13659
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
13660
|
+
command.query['fields'] = fields unless fields.nil?
|
13661
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
13662
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
13663
|
+
execute_or_queue_command(command, &block)
|
13664
|
+
end
|
13665
|
+
|
13613
13666
|
# Performs a reset on the instance. This is a hard reset. The VM does not do a
|
13614
13667
|
# graceful shutdown. For more information, see Resetting an instance.
|
13615
13668
|
# @param [String] project
|
@@ -19248,6 +19301,64 @@ module Google
|
|
19248
19301
|
execute_or_queue_command(command, &block)
|
19249
19302
|
end
|
19250
19303
|
|
19304
|
+
# Inserts a packet mirroring rule into a firewall policy.
|
19305
|
+
# @param [String] project
|
19306
|
+
# Project ID for this request.
|
19307
|
+
# @param [String] firewall_policy
|
19308
|
+
# Name of the firewall policy to update.
|
19309
|
+
# @param [Google::Apis::ComputeV1::FirewallPolicyRule] firewall_policy_rule_object
|
19310
|
+
# @param [Fixnum] max_priority
|
19311
|
+
# When rule.priority is not specified, auto choose a unused priority between
|
19312
|
+
# minPriority and maxPriority>. This field is exclusive with rule.priority.
|
19313
|
+
# @param [Fixnum] min_priority
|
19314
|
+
# When rule.priority is not specified, auto choose a unused priority between
|
19315
|
+
# minPriority and maxPriority>. This field is exclusive with rule.priority.
|
19316
|
+
# @param [String] request_id
|
19317
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
19318
|
+
# that if you must retry your request, the server will know to ignore the
|
19319
|
+
# request if it has already been completed. For example, consider a situation
|
19320
|
+
# where you make an initial request and the request times out. If you make the
|
19321
|
+
# request again with the same request ID, the server can check if original
|
19322
|
+
# operation with the same request ID was received, and if so, will ignore the
|
19323
|
+
# second request. This prevents clients from accidentally creating duplicate
|
19324
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
19325
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
19326
|
+
# @param [String] fields
|
19327
|
+
# Selector specifying which fields to include in a partial response.
|
19328
|
+
# @param [String] quota_user
|
19329
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
19330
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
19331
|
+
# @param [String] user_ip
|
19332
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
19333
|
+
# @param [Google::Apis::RequestOptions] options
|
19334
|
+
# Request-specific options
|
19335
|
+
#
|
19336
|
+
# @yield [result, err] Result & error if block supplied
|
19337
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
19338
|
+
# @yieldparam err [StandardError] error object if request failed
|
19339
|
+
#
|
19340
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
19341
|
+
#
|
19342
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
19343
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
19344
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
19345
|
+
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)
|
19346
|
+
command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/addPacketMirroringRule', options)
|
19347
|
+
command.request_representation = Google::Apis::ComputeV1::FirewallPolicyRule::Representation
|
19348
|
+
command.request_object = firewall_policy_rule_object
|
19349
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
19350
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
19351
|
+
command.params['project'] = project unless project.nil?
|
19352
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
19353
|
+
command.query['maxPriority'] = max_priority unless max_priority.nil?
|
19354
|
+
command.query['minPriority'] = min_priority unless min_priority.nil?
|
19355
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
19356
|
+
command.query['fields'] = fields unless fields.nil?
|
19357
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
19358
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
19359
|
+
execute_or_queue_command(command, &block)
|
19360
|
+
end
|
19361
|
+
|
19251
19362
|
# Inserts a rule into a firewall policy.
|
19252
19363
|
# @param [String] project
|
19253
19364
|
# Project ID for this request.
|
@@ -19624,6 +19735,45 @@ module Google
|
|
19624
19735
|
execute_or_queue_command(command, &block)
|
19625
19736
|
end
|
19626
19737
|
|
19738
|
+
# Gets a packet mirroring rule of the specified priority.
|
19739
|
+
# @param [String] project
|
19740
|
+
# Project ID for this request.
|
19741
|
+
# @param [String] firewall_policy
|
19742
|
+
# Name of the firewall policy to which the queried rule belongs.
|
19743
|
+
# @param [Fixnum] priority
|
19744
|
+
# The priority of the rule to get from the firewall policy.
|
19745
|
+
# @param [String] fields
|
19746
|
+
# Selector specifying which fields to include in a partial response.
|
19747
|
+
# @param [String] quota_user
|
19748
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
19749
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
19750
|
+
# @param [String] user_ip
|
19751
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
19752
|
+
# @param [Google::Apis::RequestOptions] options
|
19753
|
+
# Request-specific options
|
19754
|
+
#
|
19755
|
+
# @yield [result, err] Result & error if block supplied
|
19756
|
+
# @yieldparam result [Google::Apis::ComputeV1::FirewallPolicyRule] parsed result object
|
19757
|
+
# @yieldparam err [StandardError] error object if request failed
|
19758
|
+
#
|
19759
|
+
# @return [Google::Apis::ComputeV1::FirewallPolicyRule]
|
19760
|
+
#
|
19761
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
19762
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
19763
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
19764
|
+
def get_network_firewall_policy_packet_mirroring_rule(project, firewall_policy, priority: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
19765
|
+
command = make_simple_command(:get, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/getPacketMirroringRule', options)
|
19766
|
+
command.response_representation = Google::Apis::ComputeV1::FirewallPolicyRule::Representation
|
19767
|
+
command.response_class = Google::Apis::ComputeV1::FirewallPolicyRule
|
19768
|
+
command.params['project'] = project unless project.nil?
|
19769
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
19770
|
+
command.query['priority'] = priority unless priority.nil?
|
19771
|
+
command.query['fields'] = fields unless fields.nil?
|
19772
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
19773
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
19774
|
+
execute_or_queue_command(command, &block)
|
19775
|
+
end
|
19776
|
+
|
19627
19777
|
# Gets a rule of the specified priority.
|
19628
19778
|
# @param [String] project
|
19629
19779
|
# Project ID for this request.
|
@@ -19852,6 +20002,59 @@ module Google
|
|
19852
20002
|
execute_or_queue_command(command, &block)
|
19853
20003
|
end
|
19854
20004
|
|
20005
|
+
# Patches a packet mirroring rule of the specified priority.
|
20006
|
+
# @param [String] project
|
20007
|
+
# Project ID for this request.
|
20008
|
+
# @param [String] firewall_policy
|
20009
|
+
# Name of the firewall policy to update.
|
20010
|
+
# @param [Google::Apis::ComputeV1::FirewallPolicyRule] firewall_policy_rule_object
|
20011
|
+
# @param [Fixnum] priority
|
20012
|
+
# The priority of the rule to patch.
|
20013
|
+
# @param [String] request_id
|
20014
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
20015
|
+
# that if you must retry your request, the server will know to ignore the
|
20016
|
+
# request if it has already been completed. For example, consider a situation
|
20017
|
+
# where you make an initial request and the request times out. If you make the
|
20018
|
+
# request again with the same request ID, the server can check if original
|
20019
|
+
# operation with the same request ID was received, and if so, will ignore the
|
20020
|
+
# second request. This prevents clients from accidentally creating duplicate
|
20021
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
20022
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
20023
|
+
# @param [String] fields
|
20024
|
+
# Selector specifying which fields to include in a partial response.
|
20025
|
+
# @param [String] quota_user
|
20026
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
20027
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
20028
|
+
# @param [String] user_ip
|
20029
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
20030
|
+
# @param [Google::Apis::RequestOptions] options
|
20031
|
+
# Request-specific options
|
20032
|
+
#
|
20033
|
+
# @yield [result, err] Result & error if block supplied
|
20034
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
20035
|
+
# @yieldparam err [StandardError] error object if request failed
|
20036
|
+
#
|
20037
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
20038
|
+
#
|
20039
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
20040
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
20041
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
20042
|
+
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)
|
20043
|
+
command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/patchPacketMirroringRule', options)
|
20044
|
+
command.request_representation = Google::Apis::ComputeV1::FirewallPolicyRule::Representation
|
20045
|
+
command.request_object = firewall_policy_rule_object
|
20046
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
20047
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
20048
|
+
command.params['project'] = project unless project.nil?
|
20049
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
20050
|
+
command.query['priority'] = priority unless priority.nil?
|
20051
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
20052
|
+
command.query['fields'] = fields unless fields.nil?
|
20053
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
20054
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
20055
|
+
execute_or_queue_command(command, &block)
|
20056
|
+
end
|
20057
|
+
|
19855
20058
|
# Patches a rule of the specified priority.
|
19856
20059
|
# @param [String] project
|
19857
20060
|
# Project ID for this request.
|
@@ -19955,6 +20158,56 @@ module Google
|
|
19955
20158
|
execute_or_queue_command(command, &block)
|
19956
20159
|
end
|
19957
20160
|
|
20161
|
+
# Deletes a packet mirroring rule of the specified priority.
|
20162
|
+
# @param [String] project
|
20163
|
+
# Project ID for this request.
|
20164
|
+
# @param [String] firewall_policy
|
20165
|
+
# Name of the firewall policy to update.
|
20166
|
+
# @param [Fixnum] priority
|
20167
|
+
# The priority of the rule to remove from the firewall policy.
|
20168
|
+
# @param [String] request_id
|
20169
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
20170
|
+
# that if you must retry your request, the server will know to ignore the
|
20171
|
+
# request if it has already been completed. For example, consider a situation
|
20172
|
+
# where you make an initial request and the request times out. If you make the
|
20173
|
+
# request again with the same request ID, the server can check if original
|
20174
|
+
# operation with the same request ID was received, and if so, will ignore the
|
20175
|
+
# second request. This prevents clients from accidentally creating duplicate
|
20176
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
20177
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
20178
|
+
# @param [String] fields
|
20179
|
+
# Selector specifying which fields to include in a partial response.
|
20180
|
+
# @param [String] quota_user
|
20181
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
20182
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
20183
|
+
# @param [String] user_ip
|
20184
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
20185
|
+
# @param [Google::Apis::RequestOptions] options
|
20186
|
+
# Request-specific options
|
20187
|
+
#
|
20188
|
+
# @yield [result, err] Result & error if block supplied
|
20189
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
20190
|
+
# @yieldparam err [StandardError] error object if request failed
|
20191
|
+
#
|
20192
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
20193
|
+
#
|
20194
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
20195
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
20196
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
20197
|
+
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)
|
20198
|
+
command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/removePacketMirroringRule', options)
|
20199
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
20200
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
20201
|
+
command.params['project'] = project unless project.nil?
|
20202
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
20203
|
+
command.query['priority'] = priority unless priority.nil?
|
20204
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
20205
|
+
command.query['fields'] = fields unless fields.nil?
|
20206
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
20207
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
20208
|
+
execute_or_queue_command(command, &block)
|
20209
|
+
end
|
20210
|
+
|
19958
20211
|
# Deletes a rule of the specified priority.
|
19959
20212
|
# @param [String] project
|
19960
20213
|
# Project ID for this request.
|
@@ -25752,13 +26005,13 @@ module Google
|
|
25752
26005
|
|
25753
26006
|
# Updates the specified commitment with the data included in the request. Update
|
25754
26007
|
# is performed only on selected fields included as part of update-mask. Only the
|
25755
|
-
# following fields can be
|
26008
|
+
# following fields can be updated: auto_renew and plan.
|
25756
26009
|
# @param [String] project
|
25757
26010
|
# Project ID for this request.
|
25758
26011
|
# @param [String] region
|
25759
26012
|
# Name of the region for this request.
|
25760
26013
|
# @param [String] commitment
|
25761
|
-
# Name of the commitment
|
26014
|
+
# Name of the commitment that you want to update.
|
25762
26015
|
# @param [Google::Apis::ComputeV1::Commitment] commitment_object
|
25763
26016
|
# @param [Array<String>, String] paths
|
25764
26017
|
# @param [String] request_id
|
@@ -35665,13 +35918,25 @@ module Google
|
|
35665
35918
|
execute_or_queue_command(command, &block)
|
35666
35919
|
end
|
35667
35920
|
|
35668
|
-
#
|
35921
|
+
# Deletes Route Policy
|
35669
35922
|
# @param [String] project
|
35670
35923
|
# Project ID for this request.
|
35671
35924
|
# @param [String] region
|
35672
35925
|
# Name of the region for this request.
|
35673
35926
|
# @param [String] router
|
35674
|
-
# Name of the Router resource
|
35927
|
+
# Name of the Router resource where Route Policy is defined.
|
35928
|
+
# @param [String] policy
|
35929
|
+
# The Policy name for this request. Name must conform to RFC1035
|
35930
|
+
# @param [String] request_id
|
35931
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
35932
|
+
# that if you must retry your request, the server will know to ignore the
|
35933
|
+
# request if it has already been completed. For example, consider a situation
|
35934
|
+
# where you make an initial request and the request times out. If you make the
|
35935
|
+
# request again with the same request ID, the server can check if original
|
35936
|
+
# operation with the same request ID was received, and if so, will ignore the
|
35937
|
+
# second request. This prevents clients from accidentally creating duplicate
|
35938
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
35939
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
35675
35940
|
# @param [String] fields
|
35676
35941
|
# Selector specifying which fields to include in a partial response.
|
35677
35942
|
# @param [String] quota_user
|
@@ -35683,19 +35948,60 @@ module Google
|
|
35683
35948
|
# Request-specific options
|
35684
35949
|
#
|
35685
35950
|
# @yield [result, err] Result & error if block supplied
|
35686
|
-
# @yieldparam result [Google::Apis::ComputeV1::
|
35951
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
35687
35952
|
# @yieldparam err [StandardError] error object if request failed
|
35688
35953
|
#
|
35689
|
-
# @return [Google::Apis::ComputeV1::
|
35954
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
35690
35955
|
#
|
35691
35956
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
35692
35957
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
35693
35958
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
35694
|
-
def
|
35695
|
-
command = make_simple_command(:
|
35696
|
-
command.response_representation = Google::Apis::ComputeV1::
|
35697
|
-
command.response_class = Google::Apis::ComputeV1::
|
35698
|
-
command.params['project'] = project unless project.nil?
|
35959
|
+
def delete_router_route_policy(project, region, router, policy: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
35960
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/routers/{router}/deleteRoutePolicy', options)
|
35961
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
35962
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
35963
|
+
command.params['project'] = project unless project.nil?
|
35964
|
+
command.params['region'] = region unless region.nil?
|
35965
|
+
command.params['router'] = router unless router.nil?
|
35966
|
+
command.query['policy'] = policy unless policy.nil?
|
35967
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
35968
|
+
command.query['fields'] = fields unless fields.nil?
|
35969
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
35970
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
35971
|
+
execute_or_queue_command(command, &block)
|
35972
|
+
end
|
35973
|
+
|
35974
|
+
# Returns the specified Router resource.
|
35975
|
+
# @param [String] project
|
35976
|
+
# Project ID for this request.
|
35977
|
+
# @param [String] region
|
35978
|
+
# Name of the region for this request.
|
35979
|
+
# @param [String] router
|
35980
|
+
# Name of the Router resource to return.
|
35981
|
+
# @param [String] fields
|
35982
|
+
# Selector specifying which fields to include in a partial response.
|
35983
|
+
# @param [String] quota_user
|
35984
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
35985
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
35986
|
+
# @param [String] user_ip
|
35987
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
35988
|
+
# @param [Google::Apis::RequestOptions] options
|
35989
|
+
# Request-specific options
|
35990
|
+
#
|
35991
|
+
# @yield [result, err] Result & error if block supplied
|
35992
|
+
# @yieldparam result [Google::Apis::ComputeV1::Router] parsed result object
|
35993
|
+
# @yieldparam err [StandardError] error object if request failed
|
35994
|
+
#
|
35995
|
+
# @return [Google::Apis::ComputeV1::Router]
|
35996
|
+
#
|
35997
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
35998
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
35999
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36000
|
+
def get_router(project, region, router, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
36001
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/routers/{router}', options)
|
36002
|
+
command.response_representation = Google::Apis::ComputeV1::Router::Representation
|
36003
|
+
command.response_class = Google::Apis::ComputeV1::Router
|
36004
|
+
command.params['project'] = project unless project.nil?
|
35699
36005
|
command.params['region'] = region unless region.nil?
|
35700
36006
|
command.params['router'] = router unless router.nil?
|
35701
36007
|
command.query['fields'] = fields unless fields.nil?
|
@@ -35851,6 +36157,49 @@ module Google
|
|
35851
36157
|
execute_or_queue_command(command, &block)
|
35852
36158
|
end
|
35853
36159
|
|
36160
|
+
# Returns specified Route Policy
|
36161
|
+
# @param [String] project
|
36162
|
+
# Project ID for this request.
|
36163
|
+
# @param [String] region
|
36164
|
+
# Name of the region for this request.
|
36165
|
+
# @param [String] router
|
36166
|
+
# Name of the Router resource to query for the route policy. The name should
|
36167
|
+
# conform to RFC1035.
|
36168
|
+
# @param [String] policy
|
36169
|
+
# The Policy name for this request. Name must conform to RFC1035
|
36170
|
+
# @param [String] fields
|
36171
|
+
# Selector specifying which fields to include in a partial response.
|
36172
|
+
# @param [String] quota_user
|
36173
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
36174
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
36175
|
+
# @param [String] user_ip
|
36176
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
36177
|
+
# @param [Google::Apis::RequestOptions] options
|
36178
|
+
# Request-specific options
|
36179
|
+
#
|
36180
|
+
# @yield [result, err] Result & error if block supplied
|
36181
|
+
# @yieldparam result [Google::Apis::ComputeV1::RoutersGetRoutePolicyResponse] parsed result object
|
36182
|
+
# @yieldparam err [StandardError] error object if request failed
|
36183
|
+
#
|
36184
|
+
# @return [Google::Apis::ComputeV1::RoutersGetRoutePolicyResponse]
|
36185
|
+
#
|
36186
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36187
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36188
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36189
|
+
def get_router_route_policy(project, region, router, policy: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
36190
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/routers/{router}/getRoutePolicy', options)
|
36191
|
+
command.response_representation = Google::Apis::ComputeV1::RoutersGetRoutePolicyResponse::Representation
|
36192
|
+
command.response_class = Google::Apis::ComputeV1::RoutersGetRoutePolicyResponse
|
36193
|
+
command.params['project'] = project unless project.nil?
|
36194
|
+
command.params['region'] = region unless region.nil?
|
36195
|
+
command.params['router'] = router unless router.nil?
|
36196
|
+
command.query['policy'] = policy unless policy.nil?
|
36197
|
+
command.query['fields'] = fields unless fields.nil?
|
36198
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36199
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
36200
|
+
execute_or_queue_command(command, &block)
|
36201
|
+
end
|
36202
|
+
|
35854
36203
|
# Retrieves runtime information of the specified router.
|
35855
36204
|
# @param [String] project
|
35856
36205
|
# Project ID for this request.
|
@@ -36035,6 +36384,218 @@ module Google
|
|
36035
36384
|
execute_or_queue_command(command, &block)
|
36036
36385
|
end
|
36037
36386
|
|
36387
|
+
# Retrieves a list of router bgp routes available to the specified project.
|
36388
|
+
# @param [String] project
|
36389
|
+
# Project ID for this request.
|
36390
|
+
# @param [String] region
|
36391
|
+
# Name of the region for this request.
|
36392
|
+
# @param [String] router
|
36393
|
+
# Name or id of the resource for this request. Name should conform to RFC1035.
|
36394
|
+
# @param [String] address_family
|
36395
|
+
# (Required) limit results to this address family (either IPv4 or IPv6)
|
36396
|
+
# @param [String] destination_prefix
|
36397
|
+
# Limit results to destinations that are subnets of this CIDR range
|
36398
|
+
# @param [String] filter
|
36399
|
+
# A filter expression that filters resources listed in the response. Most
|
36400
|
+
# Compute resources support two types of filter expressions: expressions that
|
36401
|
+
# support regular expressions and expressions that follow API improvement
|
36402
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
36403
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
36404
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
36405
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
36406
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
36407
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
36408
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
36409
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
36410
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
36411
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
36412
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
36413
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
36414
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
36415
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
36416
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
36417
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
36418
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
36419
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
36420
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
36421
|
+
# un-parenthesized expression with or without quotes or against multiple
|
36422
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
36423
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
36424
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
36425
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
36426
|
+
# literal value must match the entire field. For example, to filter for
|
36427
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
36428
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
36429
|
+
# expressions.
|
36430
|
+
# @param [Fixnum] max_results
|
36431
|
+
# The maximum number of results per page that should be returned. If the number
|
36432
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
36433
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
36434
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
36435
|
+
# @param [String] order_by
|
36436
|
+
# Sorts list results by a certain order. By default, results are returned in
|
36437
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
36438
|
+
# descending order based on the creation timestamp using `orderBy="
|
36439
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
36440
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
36441
|
+
# resources like operations so that the newest operation is returned first.
|
36442
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
36443
|
+
# @param [String] page_token
|
36444
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
36445
|
+
# by a previous list request to get the next page of results.
|
36446
|
+
# @param [String] peer
|
36447
|
+
# (Required) limit results to the BGP peer with the given name. Name should
|
36448
|
+
# conform to RFC1035.
|
36449
|
+
# @param [Boolean] policy_applied
|
36450
|
+
# When true, the method returns post-policy routes. Otherwise, it returns pre-
|
36451
|
+
# policy routes.
|
36452
|
+
# @param [Boolean] return_partial_success
|
36453
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
36454
|
+
# failure. The default value is false. For example, when partial success
|
36455
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
36456
|
+
# resources in the zone or no resources, with an error code.
|
36457
|
+
# @param [String] route_type
|
36458
|
+
# (Required) limit results to this type of route (either LEARNED or ADVERTISED)
|
36459
|
+
# @param [String] fields
|
36460
|
+
# Selector specifying which fields to include in a partial response.
|
36461
|
+
# @param [String] quota_user
|
36462
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
36463
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
36464
|
+
# @param [String] user_ip
|
36465
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
36466
|
+
# @param [Google::Apis::RequestOptions] options
|
36467
|
+
# Request-specific options
|
36468
|
+
#
|
36469
|
+
# @yield [result, err] Result & error if block supplied
|
36470
|
+
# @yieldparam result [Google::Apis::ComputeV1::RoutersListBgpRoutes] parsed result object
|
36471
|
+
# @yieldparam err [StandardError] error object if request failed
|
36472
|
+
#
|
36473
|
+
# @return [Google::Apis::ComputeV1::RoutersListBgpRoutes]
|
36474
|
+
#
|
36475
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36476
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36477
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36478
|
+
def list_router_bgp_routes(project, region, router, address_family: nil, destination_prefix: nil, filter: nil, max_results: nil, order_by: nil, page_token: nil, peer: nil, policy_applied: nil, return_partial_success: nil, route_type: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
36479
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/routers/{router}/listBgpRoutes', options)
|
36480
|
+
command.response_representation = Google::Apis::ComputeV1::RoutersListBgpRoutes::Representation
|
36481
|
+
command.response_class = Google::Apis::ComputeV1::RoutersListBgpRoutes
|
36482
|
+
command.params['project'] = project unless project.nil?
|
36483
|
+
command.params['region'] = region unless region.nil?
|
36484
|
+
command.params['router'] = router unless router.nil?
|
36485
|
+
command.query['addressFamily'] = address_family unless address_family.nil?
|
36486
|
+
command.query['destinationPrefix'] = destination_prefix unless destination_prefix.nil?
|
36487
|
+
command.query['filter'] = filter unless filter.nil?
|
36488
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
36489
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
36490
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
36491
|
+
command.query['peer'] = peer unless peer.nil?
|
36492
|
+
command.query['policyApplied'] = policy_applied unless policy_applied.nil?
|
36493
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
36494
|
+
command.query['routeType'] = route_type unless route_type.nil?
|
36495
|
+
command.query['fields'] = fields unless fields.nil?
|
36496
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36497
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
36498
|
+
execute_or_queue_command(command, &block)
|
36499
|
+
end
|
36500
|
+
|
36501
|
+
# Retrieves a list of router route policy subresources available to the
|
36502
|
+
# specified project.
|
36503
|
+
# @param [String] project
|
36504
|
+
# Project ID for this request.
|
36505
|
+
# @param [String] region
|
36506
|
+
# Name of the region for this request.
|
36507
|
+
# @param [String] router
|
36508
|
+
# Name or id of the resource for this request. Name should conform to RFC1035.
|
36509
|
+
# @param [String] filter
|
36510
|
+
# A filter expression that filters resources listed in the response. Most
|
36511
|
+
# Compute resources support two types of filter expressions: expressions that
|
36512
|
+
# support regular expressions and expressions that follow API improvement
|
36513
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
36514
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
36515
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
36516
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
36517
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
36518
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
36519
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
36520
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
36521
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
36522
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
36523
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
36524
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
36525
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
36526
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
36527
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
36528
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
36529
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
36530
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
36531
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
36532
|
+
# un-parenthesized expression with or without quotes or against multiple
|
36533
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
36534
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
36535
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
36536
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
36537
|
+
# literal value must match the entire field. For example, to filter for
|
36538
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
36539
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
36540
|
+
# expressions.
|
36541
|
+
# @param [Fixnum] max_results
|
36542
|
+
# The maximum number of results per page that should be returned. If the number
|
36543
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
36544
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
36545
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
36546
|
+
# @param [String] order_by
|
36547
|
+
# Sorts list results by a certain order. By default, results are returned in
|
36548
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
36549
|
+
# descending order based on the creation timestamp using `orderBy="
|
36550
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
36551
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
36552
|
+
# resources like operations so that the newest operation is returned first.
|
36553
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
36554
|
+
# @param [String] page_token
|
36555
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
36556
|
+
# by a previous list request to get the next page of results.
|
36557
|
+
# @param [Boolean] return_partial_success
|
36558
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
36559
|
+
# failure. The default value is false. For example, when partial success
|
36560
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
36561
|
+
# resources in the zone or no resources, with an error code.
|
36562
|
+
# @param [String] fields
|
36563
|
+
# Selector specifying which fields to include in a partial response.
|
36564
|
+
# @param [String] quota_user
|
36565
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
36566
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
36567
|
+
# @param [String] user_ip
|
36568
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
36569
|
+
# @param [Google::Apis::RequestOptions] options
|
36570
|
+
# Request-specific options
|
36571
|
+
#
|
36572
|
+
# @yield [result, err] Result & error if block supplied
|
36573
|
+
# @yieldparam result [Google::Apis::ComputeV1::RoutersListRoutePolicies] parsed result object
|
36574
|
+
# @yieldparam err [StandardError] error object if request failed
|
36575
|
+
#
|
36576
|
+
# @return [Google::Apis::ComputeV1::RoutersListRoutePolicies]
|
36577
|
+
#
|
36578
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36579
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36580
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36581
|
+
def list_router_route_policies(project, region, router, 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)
|
36582
|
+
command = make_simple_command(:get, 'projects/{project}/regions/{region}/routers/{router}/listRoutePolicies', options)
|
36583
|
+
command.response_representation = Google::Apis::ComputeV1::RoutersListRoutePolicies::Representation
|
36584
|
+
command.response_class = Google::Apis::ComputeV1::RoutersListRoutePolicies
|
36585
|
+
command.params['project'] = project unless project.nil?
|
36586
|
+
command.params['region'] = region unless region.nil?
|
36587
|
+
command.params['router'] = router unless router.nil?
|
36588
|
+
command.query['filter'] = filter unless filter.nil?
|
36589
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
36590
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
36591
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
36592
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
36593
|
+
command.query['fields'] = fields unless fields.nil?
|
36594
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36595
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
36596
|
+
execute_or_queue_command(command, &block)
|
36597
|
+
end
|
36598
|
+
|
36038
36599
|
# Patches the specified Router resource with the data included in the request.
|
36039
36600
|
# This method supports PATCH semantics and uses JSON merge patch format and
|
36040
36601
|
# processing rules.
|
@@ -36090,6 +36651,59 @@ module Google
|
|
36090
36651
|
execute_or_queue_command(command, &block)
|
36091
36652
|
end
|
36092
36653
|
|
36654
|
+
# Patches Route Policy
|
36655
|
+
# @param [String] project
|
36656
|
+
# Project ID for this request.
|
36657
|
+
# @param [String] region
|
36658
|
+
# Name of the region for this request.
|
36659
|
+
# @param [String] router
|
36660
|
+
# Name of the Router resource where Route Policy is defined.
|
36661
|
+
# @param [Google::Apis::ComputeV1::RoutePolicy] route_policy_object
|
36662
|
+
# @param [String] request_id
|
36663
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
36664
|
+
# that if you must retry your request, the server will know to ignore the
|
36665
|
+
# request if it has already been completed. For example, consider a situation
|
36666
|
+
# where you make an initial request and the request times out. If you make the
|
36667
|
+
# request again with the same request ID, the server can check if original
|
36668
|
+
# operation with the same request ID was received, and if so, will ignore the
|
36669
|
+
# second request. This prevents clients from accidentally creating duplicate
|
36670
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
36671
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
36672
|
+
# @param [String] fields
|
36673
|
+
# Selector specifying which fields to include in a partial response.
|
36674
|
+
# @param [String] quota_user
|
36675
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
36676
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
36677
|
+
# @param [String] user_ip
|
36678
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
36679
|
+
# @param [Google::Apis::RequestOptions] options
|
36680
|
+
# Request-specific options
|
36681
|
+
#
|
36682
|
+
# @yield [result, err] Result & error if block supplied
|
36683
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
36684
|
+
# @yieldparam err [StandardError] error object if request failed
|
36685
|
+
#
|
36686
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
36687
|
+
#
|
36688
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36689
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36690
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36691
|
+
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)
|
36692
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/routers/{router}/patchRoutePolicy', options)
|
36693
|
+
command.request_representation = Google::Apis::ComputeV1::RoutePolicy::Representation
|
36694
|
+
command.request_object = route_policy_object
|
36695
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
36696
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
36697
|
+
command.params['project'] = project unless project.nil?
|
36698
|
+
command.params['region'] = region unless region.nil?
|
36699
|
+
command.params['router'] = router unless router.nil?
|
36700
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
36701
|
+
command.query['fields'] = fields unless fields.nil?
|
36702
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36703
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
36704
|
+
execute_or_queue_command(command, &block)
|
36705
|
+
end
|
36706
|
+
|
36093
36707
|
# Preview fields auto-generated during router create and update operations.
|
36094
36708
|
# Calling this method does NOT create or update the router.
|
36095
36709
|
# @param [String] project
|
@@ -36189,6 +36803,59 @@ module Google
|
|
36189
36803
|
execute_or_queue_command(command, &block)
|
36190
36804
|
end
|
36191
36805
|
|
36806
|
+
# Updates or creates new Route Policy
|
36807
|
+
# @param [String] project
|
36808
|
+
# Project ID for this request.
|
36809
|
+
# @param [String] region
|
36810
|
+
# Name of the region for this request.
|
36811
|
+
# @param [String] router
|
36812
|
+
# Name of the Router resource where Route Policy is defined.
|
36813
|
+
# @param [Google::Apis::ComputeV1::RoutePolicy] route_policy_object
|
36814
|
+
# @param [String] request_id
|
36815
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
36816
|
+
# that if you must retry your request, the server will know to ignore the
|
36817
|
+
# request if it has already been completed. For example, consider a situation
|
36818
|
+
# where you make an initial request and the request times out. If you make the
|
36819
|
+
# request again with the same request ID, the server can check if original
|
36820
|
+
# operation with the same request ID was received, and if so, will ignore the
|
36821
|
+
# second request. This prevents clients from accidentally creating duplicate
|
36822
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
36823
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
36824
|
+
# @param [String] fields
|
36825
|
+
# Selector specifying which fields to include in a partial response.
|
36826
|
+
# @param [String] quota_user
|
36827
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
36828
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
36829
|
+
# @param [String] user_ip
|
36830
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
36831
|
+
# @param [Google::Apis::RequestOptions] options
|
36832
|
+
# Request-specific options
|
36833
|
+
#
|
36834
|
+
# @yield [result, err] Result & error if block supplied
|
36835
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
36836
|
+
# @yieldparam err [StandardError] error object if request failed
|
36837
|
+
#
|
36838
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
36839
|
+
#
|
36840
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
36841
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
36842
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
36843
|
+
def update_router_route_policy(project, region, router, route_policy_object = nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
36844
|
+
command = make_simple_command(:post, 'projects/{project}/regions/{region}/routers/{router}/updateRoutePolicy', options)
|
36845
|
+
command.request_representation = Google::Apis::ComputeV1::RoutePolicy::Representation
|
36846
|
+
command.request_object = route_policy_object
|
36847
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
36848
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
36849
|
+
command.params['project'] = project unless project.nil?
|
36850
|
+
command.params['region'] = region unless region.nil?
|
36851
|
+
command.params['router'] = router unless router.nil?
|
36852
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
36853
|
+
command.query['fields'] = fields unless fields.nil?
|
36854
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
36855
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
36856
|
+
execute_or_queue_command(command, &block)
|
36857
|
+
end
|
36858
|
+
|
36192
36859
|
# Deletes the specified Route resource.
|
36193
36860
|
# @param [String] project
|
36194
36861
|
# Project ID for this request.
|