google-apis-compute_v1 0.113.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 +9 -0
- data/lib/google/apis/compute_v1/classes.rb +1127 -153
- data/lib/google/apis/compute_v1/gem_version.rb +3 -3
- data/lib/google/apis/compute_v1/representations.rb +403 -1
- data/lib/google/apis/compute_v1/service.rb +787 -14
- metadata +4 -7
@@ -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.
|
@@ -19306,6 +19417,112 @@ module Google
|
|
19306
19417
|
execute_or_queue_command(command, &block)
|
19307
19418
|
end
|
19308
19419
|
|
19420
|
+
# Retrieves an aggregated list of network firewall policies, listing network
|
19421
|
+
# firewall policies from all applicable scopes (global and regional) and
|
19422
|
+
# grouping the results per scope. To prevent failure, Google recommends that you
|
19423
|
+
# set the `returnPartialSuccess` parameter to `true`.
|
19424
|
+
# @param [String] project
|
19425
|
+
# Project ID for this request.
|
19426
|
+
# @param [String] filter
|
19427
|
+
# A filter expression that filters resources listed in the response. Most
|
19428
|
+
# Compute resources support two types of filter expressions: expressions that
|
19429
|
+
# support regular expressions and expressions that follow API improvement
|
19430
|
+
# proposal AIP-160. These two types of filter expressions cannot be mixed in one
|
19431
|
+
# request. If you want to use AIP-160, your expression must specify the field
|
19432
|
+
# name, an operator, and the value that you want to use for filtering. The value
|
19433
|
+
# must be a string, a number, or a boolean. The operator must be either `=`, `!=`
|
19434
|
+
# , `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute
|
19435
|
+
# Engine instances, you can exclude instances named `example-instance` by
|
19436
|
+
# specifying `name != example-instance`. The `:*` comparison can be used to test
|
19437
|
+
# whether a key has been defined. For example, to find all objects with `owner`
|
19438
|
+
# label use: ``` labels.owner:* ``` You can also filter nested fields. For
|
19439
|
+
# example, you could specify `scheduling.automaticRestart = false` to include
|
19440
|
+
# instances only if they are not scheduled for automatic restarts. You can use
|
19441
|
+
# filtering on nested fields to filter based on resource labels. To filter on
|
19442
|
+
# multiple expressions, provide each separate expression within parentheses. For
|
19443
|
+
# example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel
|
19444
|
+
# Skylake") ``` By default, each expression is an `AND` expression. However, you
|
19445
|
+
# can include `AND` and `OR` expressions explicitly. For example: ``` (
|
19446
|
+
# cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (
|
19447
|
+
# scheduling.automaticRestart = true) ``` If you want to use a regular
|
19448
|
+
# expression, use the `eq` (equal) or `ne` (not equal) operator against a single
|
19449
|
+
# un-parenthesized expression with or without quotes or against multiple
|
19450
|
+
# parenthesized expressions. Examples: `fieldname eq unquoted literal` `
|
19451
|
+
# fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(
|
19452
|
+
# fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is
|
19453
|
+
# interpreted as a regular expression using Google RE2 library syntax. The
|
19454
|
+
# literal value must match the entire field. For example, to filter for
|
19455
|
+
# instances that do not end with name "instance", you would use `name ne .*
|
19456
|
+
# instance`. You cannot combine constraints on multiple fields using regular
|
19457
|
+
# expressions.
|
19458
|
+
# @param [Boolean] include_all_scopes
|
19459
|
+
# Indicates whether every visible scope for each scope type (zone, region,
|
19460
|
+
# global) should be included in the response. For new resource types added after
|
19461
|
+
# this field, the flag has no effect as new resource types will always include
|
19462
|
+
# every visible scope for each scope type in response. For resource types which
|
19463
|
+
# predate this field, if this flag is omitted or false, only scopes of the scope
|
19464
|
+
# types where the resource type is expected to be found will be included.
|
19465
|
+
# @param [Fixnum] max_results
|
19466
|
+
# The maximum number of results per page that should be returned. If the number
|
19467
|
+
# of available results is larger than `maxResults`, Compute Engine returns a `
|
19468
|
+
# nextPageToken` that can be used to get the next page of results in subsequent
|
19469
|
+
# list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
19470
|
+
# @param [String] order_by
|
19471
|
+
# Sorts list results by a certain order. By default, results are returned in
|
19472
|
+
# alphanumerical order based on the resource name. You can also sort results in
|
19473
|
+
# descending order based on the creation timestamp using `orderBy="
|
19474
|
+
# creationTimestamp desc"`. This sorts results based on the `creationTimestamp`
|
19475
|
+
# field in reverse chronological order (newest result first). Use this to sort
|
19476
|
+
# resources like operations so that the newest operation is returned first.
|
19477
|
+
# Currently, only sorting by `name` or `creationTimestamp desc` is supported.
|
19478
|
+
# @param [String] page_token
|
19479
|
+
# Specifies a page token to use. Set `pageToken` to the `nextPageToken` returned
|
19480
|
+
# by a previous list request to get the next page of results.
|
19481
|
+
# @param [Boolean] return_partial_success
|
19482
|
+
# Opt-in for partial success behavior which provides partial results in case of
|
19483
|
+
# failure. The default value is false. For example, when partial success
|
19484
|
+
# behavior is enabled, aggregatedList for a single zone scope either returns all
|
19485
|
+
# resources in the zone or no resources, with an error code.
|
19486
|
+
# @param [Fixnum] service_project_number
|
19487
|
+
# The Shared VPC service project id or service project number for which
|
19488
|
+
# aggregated list request is invoked for subnetworks list-usable api.
|
19489
|
+
# @param [String] fields
|
19490
|
+
# Selector specifying which fields to include in a partial response.
|
19491
|
+
# @param [String] quota_user
|
19492
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
19493
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
19494
|
+
# @param [String] user_ip
|
19495
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
19496
|
+
# @param [Google::Apis::RequestOptions] options
|
19497
|
+
# Request-specific options
|
19498
|
+
#
|
19499
|
+
# @yield [result, err] Result & error if block supplied
|
19500
|
+
# @yieldparam result [Google::Apis::ComputeV1::NetworkFirewallPolicyAggregatedList] parsed result object
|
19501
|
+
# @yieldparam err [StandardError] error object if request failed
|
19502
|
+
#
|
19503
|
+
# @return [Google::Apis::ComputeV1::NetworkFirewallPolicyAggregatedList]
|
19504
|
+
#
|
19505
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
19506
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
19507
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
19508
|
+
def aggregated_network_firewall_policy_list(project, filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, return_partial_success: nil, service_project_number: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
19509
|
+
command = make_simple_command(:get, 'projects/{project}/aggregated/firewallPolicies', options)
|
19510
|
+
command.response_representation = Google::Apis::ComputeV1::NetworkFirewallPolicyAggregatedList::Representation
|
19511
|
+
command.response_class = Google::Apis::ComputeV1::NetworkFirewallPolicyAggregatedList
|
19512
|
+
command.params['project'] = project unless project.nil?
|
19513
|
+
command.query['filter'] = filter unless filter.nil?
|
19514
|
+
command.query['includeAllScopes'] = include_all_scopes unless include_all_scopes.nil?
|
19515
|
+
command.query['maxResults'] = max_results unless max_results.nil?
|
19516
|
+
command.query['orderBy'] = order_by unless order_by.nil?
|
19517
|
+
command.query['pageToken'] = page_token unless page_token.nil?
|
19518
|
+
command.query['returnPartialSuccess'] = return_partial_success unless return_partial_success.nil?
|
19519
|
+
command.query['serviceProjectNumber'] = service_project_number unless service_project_number.nil?
|
19520
|
+
command.query['fields'] = fields unless fields.nil?
|
19521
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
19522
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
19523
|
+
execute_or_queue_command(command, &block)
|
19524
|
+
end
|
19525
|
+
|
19309
19526
|
# Copies rules to the specified firewall policy.
|
19310
19527
|
# @param [String] project
|
19311
19528
|
# Project ID for this request.
|
@@ -19518,6 +19735,45 @@ module Google
|
|
19518
19735
|
execute_or_queue_command(command, &block)
|
19519
19736
|
end
|
19520
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
|
+
|
19521
19777
|
# Gets a rule of the specified priority.
|
19522
19778
|
# @param [String] project
|
19523
19779
|
# Project ID for this request.
|
@@ -19746,7 +20002,7 @@ module Google
|
|
19746
20002
|
execute_or_queue_command(command, &block)
|
19747
20003
|
end
|
19748
20004
|
|
19749
|
-
# Patches a rule of the specified priority.
|
20005
|
+
# Patches a packet mirroring rule of the specified priority.
|
19750
20006
|
# @param [String] project
|
19751
20007
|
# Project ID for this request.
|
19752
20008
|
# @param [String] firewall_policy
|
@@ -19783,8 +20039,8 @@ module Google
|
|
19783
20039
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
19784
20040
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
19785
20041
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
19786
|
-
def
|
19787
|
-
command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/
|
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)
|
19788
20044
|
command.request_representation = Google::Apis::ComputeV1::FirewallPolicyRule::Representation
|
19789
20045
|
command.request_object = firewall_policy_rule_object
|
19790
20046
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
@@ -19799,13 +20055,14 @@ module Google
|
|
19799
20055
|
execute_or_queue_command(command, &block)
|
19800
20056
|
end
|
19801
20057
|
|
19802
|
-
#
|
20058
|
+
# Patches a rule of the specified priority.
|
19803
20059
|
# @param [String] project
|
19804
20060
|
# Project ID for this request.
|
19805
20061
|
# @param [String] firewall_policy
|
19806
20062
|
# Name of the firewall policy to update.
|
19807
|
-
# @param [
|
19808
|
-
#
|
20063
|
+
# @param [Google::Apis::ComputeV1::FirewallPolicyRule] firewall_policy_rule_object
|
20064
|
+
# @param [Fixnum] priority
|
20065
|
+
# The priority of the rule to patch.
|
19809
20066
|
# @param [String] request_id
|
19810
20067
|
# An optional request ID to identify requests. Specify a unique request ID so
|
19811
20068
|
# that if you must retry your request, the server will know to ignore the
|
@@ -19835,13 +20092,15 @@ module Google
|
|
19835
20092
|
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
19836
20093
|
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
19837
20094
|
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
19838
|
-
def
|
19839
|
-
command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/
|
20095
|
+
def patch_network_firewall_policy_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)
|
20096
|
+
command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/patchRule', options)
|
20097
|
+
command.request_representation = Google::Apis::ComputeV1::FirewallPolicyRule::Representation
|
20098
|
+
command.request_object = firewall_policy_rule_object
|
19840
20099
|
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
19841
20100
|
command.response_class = Google::Apis::ComputeV1::Operation
|
19842
20101
|
command.params['project'] = project unless project.nil?
|
19843
20102
|
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
19844
|
-
command.query['
|
20103
|
+
command.query['priority'] = priority unless priority.nil?
|
19845
20104
|
command.query['requestId'] = request_id unless request_id.nil?
|
19846
20105
|
command.query['fields'] = fields unless fields.nil?
|
19847
20106
|
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
@@ -19849,13 +20108,113 @@ module Google
|
|
19849
20108
|
execute_or_queue_command(command, &block)
|
19850
20109
|
end
|
19851
20110
|
|
19852
|
-
#
|
20111
|
+
# Removes an association for the specified firewall policy.
|
19853
20112
|
# @param [String] project
|
19854
20113
|
# Project ID for this request.
|
19855
20114
|
# @param [String] firewall_policy
|
19856
20115
|
# Name of the firewall policy to update.
|
19857
|
-
# @param [
|
19858
|
-
#
|
20116
|
+
# @param [String] name
|
20117
|
+
# Name for the attachment that will be removed.
|
20118
|
+
# @param [String] request_id
|
20119
|
+
# An optional request ID to identify requests. Specify a unique request ID so
|
20120
|
+
# that if you must retry your request, the server will know to ignore the
|
20121
|
+
# request if it has already been completed. For example, consider a situation
|
20122
|
+
# where you make an initial request and the request times out. If you make the
|
20123
|
+
# request again with the same request ID, the server can check if original
|
20124
|
+
# operation with the same request ID was received, and if so, will ignore the
|
20125
|
+
# second request. This prevents clients from accidentally creating duplicate
|
20126
|
+
# commitments. The request ID must be a valid UUID with the exception that zero
|
20127
|
+
# UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
20128
|
+
# @param [String] fields
|
20129
|
+
# Selector specifying which fields to include in a partial response.
|
20130
|
+
# @param [String] quota_user
|
20131
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
20132
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
20133
|
+
# @param [String] user_ip
|
20134
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
20135
|
+
# @param [Google::Apis::RequestOptions] options
|
20136
|
+
# Request-specific options
|
20137
|
+
#
|
20138
|
+
# @yield [result, err] Result & error if block supplied
|
20139
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
20140
|
+
# @yieldparam err [StandardError] error object if request failed
|
20141
|
+
#
|
20142
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
20143
|
+
#
|
20144
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
20145
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
20146
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
20147
|
+
def remove_network_firewall_policy_association(project, firewall_policy, name: nil, request_id: nil, fields: nil, quota_user: nil, user_ip: nil, options: nil, &block)
|
20148
|
+
command = make_simple_command(:post, 'projects/{project}/global/firewallPolicies/{firewallPolicy}/removeAssociation', options)
|
20149
|
+
command.response_representation = Google::Apis::ComputeV1::Operation::Representation
|
20150
|
+
command.response_class = Google::Apis::ComputeV1::Operation
|
20151
|
+
command.params['project'] = project unless project.nil?
|
20152
|
+
command.params['firewallPolicy'] = firewall_policy unless firewall_policy.nil?
|
20153
|
+
command.query['name'] = name unless name.nil?
|
20154
|
+
command.query['requestId'] = request_id unless request_id.nil?
|
20155
|
+
command.query['fields'] = fields unless fields.nil?
|
20156
|
+
command.query['quotaUser'] = quota_user unless quota_user.nil?
|
20157
|
+
command.query['userIp'] = user_ip unless user_ip.nil?
|
20158
|
+
execute_or_queue_command(command, &block)
|
20159
|
+
end
|
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
|
+
|
20211
|
+
# Deletes a rule of the specified priority.
|
20212
|
+
# @param [String] project
|
20213
|
+
# Project ID for this request.
|
20214
|
+
# @param [String] firewall_policy
|
20215
|
+
# Name of the firewall policy to update.
|
20216
|
+
# @param [Fixnum] priority
|
20217
|
+
# The priority of the rule to remove from the firewall policy.
|
19859
20218
|
# @param [String] request_id
|
19860
20219
|
# An optional request ID to identify requests. Specify a unique request ID so
|
19861
20220
|
# that if you must retry your request, the server will know to ignore the
|
@@ -25646,13 +26005,13 @@ module Google
|
|
25646
26005
|
|
25647
26006
|
# Updates the specified commitment with the data included in the request. Update
|
25648
26007
|
# is performed only on selected fields included as part of update-mask. Only the
|
25649
|
-
# following fields can be
|
26008
|
+
# following fields can be updated: auto_renew and plan.
|
25650
26009
|
# @param [String] project
|
25651
26010
|
# Project ID for this request.
|
25652
26011
|
# @param [String] region
|
25653
26012
|
# Name of the region for this request.
|
25654
26013
|
# @param [String] commitment
|
25655
|
-
# Name of the commitment
|
26014
|
+
# Name of the commitment that you want to update.
|
25656
26015
|
# @param [Google::Apis::ComputeV1::Commitment] commitment_object
|
25657
26016
|
# @param [Array<String>, String] paths
|
25658
26017
|
# @param [String] request_id
|
@@ -35559,6 +35918,59 @@ module Google
|
|
35559
35918
|
execute_or_queue_command(command, &block)
|
35560
35919
|
end
|
35561
35920
|
|
35921
|
+
# Deletes Route Policy
|
35922
|
+
# @param [String] project
|
35923
|
+
# Project ID for this request.
|
35924
|
+
# @param [String] region
|
35925
|
+
# Name of the region for this request.
|
35926
|
+
# @param [String] router
|
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).
|
35940
|
+
# @param [String] fields
|
35941
|
+
# Selector specifying which fields to include in a partial response.
|
35942
|
+
# @param [String] quota_user
|
35943
|
+
# Available to use for quota purposes for server-side applications. Can be any
|
35944
|
+
# arbitrary string assigned to a user, but should not exceed 40 characters.
|
35945
|
+
# @param [String] user_ip
|
35946
|
+
# Legacy name for parameter that has been superseded by `quotaUser`.
|
35947
|
+
# @param [Google::Apis::RequestOptions] options
|
35948
|
+
# Request-specific options
|
35949
|
+
#
|
35950
|
+
# @yield [result, err] Result & error if block supplied
|
35951
|
+
# @yieldparam result [Google::Apis::ComputeV1::Operation] parsed result object
|
35952
|
+
# @yieldparam err [StandardError] error object if request failed
|
35953
|
+
#
|
35954
|
+
# @return [Google::Apis::ComputeV1::Operation]
|
35955
|
+
#
|
35956
|
+
# @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
|
35957
|
+
# @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
|
35958
|
+
# @raise [Google::Apis::AuthorizationError] Authorization is required
|
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
|
+
|
35562
35974
|
# Returns the specified Router resource.
|
35563
35975
|
# @param [String] project
|
35564
35976
|
# Project ID for this request.
|
@@ -35745,6 +36157,49 @@ module Google
|
|
35745
36157
|
execute_or_queue_command(command, &block)
|
35746
36158
|
end
|
35747
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
|
+
|
35748
36203
|
# Retrieves runtime information of the specified router.
|
35749
36204
|
# @param [String] project
|
35750
36205
|
# Project ID for this request.
|
@@ -35929,6 +36384,218 @@ module Google
|
|
35929
36384
|
execute_or_queue_command(command, &block)
|
35930
36385
|
end
|
35931
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
|
+
|
35932
36599
|
# Patches the specified Router resource with the data included in the request.
|
35933
36600
|
# This method supports PATCH semantics and uses JSON merge patch format and
|
35934
36601
|
# processing rules.
|
@@ -35984,6 +36651,59 @@ module Google
|
|
35984
36651
|
execute_or_queue_command(command, &block)
|
35985
36652
|
end
|
35986
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
|
+
|
35987
36707
|
# Preview fields auto-generated during router create and update operations.
|
35988
36708
|
# Calling this method does NOT create or update the router.
|
35989
36709
|
# @param [String] project
|
@@ -36083,6 +36803,59 @@ module Google
|
|
36083
36803
|
execute_or_queue_command(command, &block)
|
36084
36804
|
end
|
36085
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
|
+
|
36086
36859
|
# Deletes the specified Route resource.
|
36087
36860
|
# @param [String] project
|
36088
36861
|
# Project ID for this request.
|