google-cloud-compute-v1 2.5.0 → 2.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +4 -3
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +4 -3
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +4 -3
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +277 -1
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +182 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +196 -3
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +120 -0
- data/lib/google/cloud/compute/v1/compute_pb.rb +79 -1
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +4 -3
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +4 -3
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +4 -3
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +4 -3
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +4 -3
- data/lib/google/cloud/compute/v1/images/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +7 -6
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +5 -4
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +4 -3
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +109 -4
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +4 -3
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +94 -2
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +60 -0
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +4 -3
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +108 -3
- data/lib/google/cloud/compute/v1/network_attachments/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +3 -2
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +5 -4
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +5 -4
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +4 -3
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +4 -3
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +4 -3
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +202 -4
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +120 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +208 -3
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +122 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +301 -1
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +184 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +4 -3
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +4 -4
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +314 -4
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +185 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +417 -5
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +246 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +2 -2
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +4 -3
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +4 -3
- data/lib/google/cloud/compute/v1/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +101 -4
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +61 -0
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +11 -6
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +4 -3
- data/lib/google/cloud/compute/v1/snapshot_settings_service/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +480 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/service_stub.rb +167 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service.rb +47 -0
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +4 -3
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +5 -4
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +5 -4
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +4 -3
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +4 -3
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +108 -3
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +108 -3
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +4 -3
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +4 -3
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +4 -3
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +4 -3
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +4 -3
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1.rb +1 -0
- data/proto_docs/google/api/client.rb +13 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +1654 -196
- data/proto_docs/google/protobuf/any.rb +144 -0
- metadata +8 -2
@@ -77,6 +77,11 @@ module Google
|
|
77
77
|
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
78
78
|
}
|
79
79
|
|
80
|
+
default_config.rpcs.get_nat_ip_info.timeout = 600.0
|
81
|
+
default_config.rpcs.get_nat_ip_info.retry_policy = {
|
82
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
83
|
+
}
|
84
|
+
|
80
85
|
default_config.rpcs.get_nat_mapping_info.timeout = 600.0
|
81
86
|
default_config.rpcs.get_nat_mapping_info.retry_policy = {
|
82
87
|
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
@@ -195,13 +200,13 @@ module Google
|
|
195
200
|
# @param options [::Gapic::CallOptions, ::Hash]
|
196
201
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
197
202
|
#
|
198
|
-
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
203
|
+
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil, service_project_number: nil)
|
199
204
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
200
205
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
201
206
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
202
207
|
#
|
203
208
|
# @param filter [::String]
|
204
|
-
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The
|
209
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
|
205
210
|
# @param include_all_scopes [::Boolean]
|
206
211
|
# Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
|
207
212
|
# @param max_results [::Integer]
|
@@ -214,6 +219,7 @@ module Google
|
|
214
219
|
# Project ID for this request.
|
215
220
|
# @param return_partial_success [::Boolean]
|
216
221
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
222
|
+
# @param service_project_number [::Integer]
|
217
223
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
218
224
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::RoutersScopedList>]
|
219
225
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -448,6 +454,90 @@ module Google
|
|
448
454
|
raise ::Google::Cloud::Error.from_error(e)
|
449
455
|
end
|
450
456
|
|
457
|
+
##
|
458
|
+
# Retrieves runtime NAT IP information.
|
459
|
+
#
|
460
|
+
# @overload get_nat_ip_info(request, options = nil)
|
461
|
+
# Pass arguments to `get_nat_ip_info` via a request object, either of type
|
462
|
+
# {::Google::Cloud::Compute::V1::GetNatIpInfoRouterRequest} or an equivalent Hash.
|
463
|
+
#
|
464
|
+
# @param request [::Google::Cloud::Compute::V1::GetNatIpInfoRouterRequest, ::Hash]
|
465
|
+
# A request object representing the call parameters. Required. To specify no
|
466
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
467
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
468
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
469
|
+
#
|
470
|
+
# @overload get_nat_ip_info(nat_name: nil, project: nil, region: nil, router: nil)
|
471
|
+
# Pass arguments to `get_nat_ip_info` via keyword arguments. Note that at
|
472
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
473
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
474
|
+
#
|
475
|
+
# @param nat_name [::String]
|
476
|
+
# Name of the nat service to filter the NAT IP information. If it is omitted, all nats for this router will be returned. Name should conform to RFC1035.
|
477
|
+
# @param project [::String]
|
478
|
+
# Project ID for this request.
|
479
|
+
# @param region [::String]
|
480
|
+
# Name of the region for this request.
|
481
|
+
# @param router [::String]
|
482
|
+
# Name of the Router resource to query for Nat IP information. The name should conform to RFC1035.
|
483
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
484
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::NatIpInfoResponse]
|
485
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
486
|
+
#
|
487
|
+
# @return [::Google::Cloud::Compute::V1::NatIpInfoResponse]
|
488
|
+
#
|
489
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
490
|
+
#
|
491
|
+
# @example Basic example
|
492
|
+
# require "google/cloud/compute/v1"
|
493
|
+
#
|
494
|
+
# # Create a client object. The client can be reused for multiple calls.
|
495
|
+
# client = Google::Cloud::Compute::V1::Routers::Rest::Client.new
|
496
|
+
#
|
497
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
498
|
+
# request = Google::Cloud::Compute::V1::GetNatIpInfoRouterRequest.new
|
499
|
+
#
|
500
|
+
# # Call the get_nat_ip_info method.
|
501
|
+
# result = client.get_nat_ip_info request
|
502
|
+
#
|
503
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NatIpInfoResponse.
|
504
|
+
# p result
|
505
|
+
#
|
506
|
+
def get_nat_ip_info request, options = nil
|
507
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
508
|
+
|
509
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::GetNatIpInfoRouterRequest
|
510
|
+
|
511
|
+
# Converts hash and nil to an options object
|
512
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
513
|
+
|
514
|
+
# Customize the options with defaults
|
515
|
+
call_metadata = @config.rpcs.get_nat_ip_info.metadata.to_h
|
516
|
+
|
517
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
518
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
519
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
520
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
521
|
+
transports_version_send: [:rest]
|
522
|
+
|
523
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
524
|
+
|
525
|
+
options.apply_defaults timeout: @config.rpcs.get_nat_ip_info.timeout,
|
526
|
+
metadata: call_metadata,
|
527
|
+
retry_policy: @config.rpcs.get_nat_ip_info.retry_policy
|
528
|
+
|
529
|
+
options.apply_defaults timeout: @config.timeout,
|
530
|
+
metadata: @config.metadata,
|
531
|
+
retry_policy: @config.retry_policy
|
532
|
+
|
533
|
+
@routers_stub.get_nat_ip_info request, options do |result, operation|
|
534
|
+
yield result, operation if block_given?
|
535
|
+
return result
|
536
|
+
end
|
537
|
+
rescue ::Gapic::Rest::Error => e
|
538
|
+
raise ::Google::Cloud::Error.from_error(e)
|
539
|
+
end
|
540
|
+
|
451
541
|
##
|
452
542
|
# Retrieves runtime Nat mapping information of VM endpoints.
|
453
543
|
#
|
@@ -467,7 +557,7 @@ module Google
|
|
467
557
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
468
558
|
#
|
469
559
|
# @param filter [::String]
|
470
|
-
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The
|
560
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
|
471
561
|
# @param max_results [::Integer]
|
472
562
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
473
563
|
# @param nat_name [::String]
|
@@ -737,7 +827,7 @@ module Google
|
|
737
827
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
738
828
|
#
|
739
829
|
# @param filter [::String]
|
740
|
-
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The
|
830
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
|
741
831
|
# @param max_results [::Integer]
|
742
832
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
743
833
|
# @param order_by [::String]
|
@@ -1224,6 +1314,11 @@ module Google
|
|
1224
1314
|
#
|
1225
1315
|
attr_reader :get
|
1226
1316
|
##
|
1317
|
+
# RPC-specific configuration for `get_nat_ip_info`
|
1318
|
+
# @return [::Gapic::Config::Method]
|
1319
|
+
#
|
1320
|
+
attr_reader :get_nat_ip_info
|
1321
|
+
##
|
1227
1322
|
# RPC-specific configuration for `get_nat_mapping_info`
|
1228
1323
|
# @return [::Gapic::Config::Method]
|
1229
1324
|
#
|
@@ -1267,6 +1362,8 @@ module Google
|
|
1267
1362
|
@delete = ::Gapic::Config::Method.new delete_config
|
1268
1363
|
get_config = parent_rpcs.get if parent_rpcs.respond_to? :get
|
1269
1364
|
@get = ::Gapic::Config::Method.new get_config
|
1365
|
+
get_nat_ip_info_config = parent_rpcs.get_nat_ip_info if parent_rpcs.respond_to? :get_nat_ip_info
|
1366
|
+
@get_nat_ip_info = ::Gapic::Config::Method.new get_nat_ip_info_config
|
1270
1367
|
get_nat_mapping_info_config = parent_rpcs.get_nat_mapping_info if parent_rpcs.respond_to? :get_nat_mapping_info
|
1271
1368
|
@get_nat_mapping_info = ::Gapic::Config::Method.new get_nat_mapping_info_config
|
1272
1369
|
get_router_status_config = parent_rpcs.get_router_status if parent_rpcs.respond_to? :get_router_status
|
@@ -154,6 +154,44 @@ module Google
|
|
154
154
|
result
|
155
155
|
end
|
156
156
|
|
157
|
+
##
|
158
|
+
# Baseline implementation for the get_nat_ip_info REST call
|
159
|
+
#
|
160
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetNatIpInfoRouterRequest]
|
161
|
+
# A request object representing the call parameters. Required.
|
162
|
+
# @param options [::Gapic::CallOptions]
|
163
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
164
|
+
#
|
165
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
166
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::NatIpInfoResponse]
|
167
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
168
|
+
#
|
169
|
+
# @return [::Google::Cloud::Compute::V1::NatIpInfoResponse]
|
170
|
+
# A result object deserialized from the server's reply
|
171
|
+
def get_nat_ip_info request_pb, options = nil
|
172
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
173
|
+
|
174
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_get_nat_ip_info_request request_pb
|
175
|
+
query_string_params = if query_string_params.any?
|
176
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
177
|
+
else
|
178
|
+
{}
|
179
|
+
end
|
180
|
+
|
181
|
+
response = @client_stub.make_http_request(
|
182
|
+
verb,
|
183
|
+
uri: uri,
|
184
|
+
body: body || "",
|
185
|
+
params: query_string_params,
|
186
|
+
options: options
|
187
|
+
)
|
188
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
189
|
+
result = ::Google::Cloud::Compute::V1::NatIpInfoResponse.decode_json response.body, ignore_unknown_fields: true
|
190
|
+
|
191
|
+
yield result, operation if block_given?
|
192
|
+
result
|
193
|
+
end
|
194
|
+
|
157
195
|
##
|
158
196
|
# Baseline implementation for the get_nat_mapping_info REST call
|
159
197
|
#
|
@@ -487,6 +525,29 @@ module Google
|
|
487
525
|
transcoder.transcode request_pb
|
488
526
|
end
|
489
527
|
|
528
|
+
##
|
529
|
+
# @private
|
530
|
+
#
|
531
|
+
# GRPC transcoding helper method for the get_nat_ip_info REST call
|
532
|
+
#
|
533
|
+
# @param request_pb [::Google::Cloud::Compute::V1::GetNatIpInfoRouterRequest]
|
534
|
+
# A request object representing the call parameters. Required.
|
535
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
536
|
+
# Uri, Body, Query string parameters
|
537
|
+
def self.transcode_get_nat_ip_info_request request_pb
|
538
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
539
|
+
.with_bindings(
|
540
|
+
uri_method: :get,
|
541
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/routers/{router}/getNatIpInfo",
|
542
|
+
matches: [
|
543
|
+
["project", %r{^[^/]+/?$}, false],
|
544
|
+
["region", %r{^[^/]+/?$}, false],
|
545
|
+
["router", %r{^[^/]+/?$}, false]
|
546
|
+
]
|
547
|
+
)
|
548
|
+
transcoder.transcode request_pb
|
549
|
+
end
|
550
|
+
|
490
551
|
##
|
491
552
|
# @private
|
492
553
|
#
|
@@ -440,7 +440,7 @@ module Google
|
|
440
440
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
441
441
|
#
|
442
442
|
# @param filter [::String]
|
443
|
-
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The
|
443
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
|
444
444
|
# @param max_results [::Integer]
|
445
445
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
446
446
|
# @param order_by [::String]
|
@@ -291,13 +291,13 @@ module Google
|
|
291
291
|
# @param options [::Gapic::CallOptions, ::Hash]
|
292
292
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
293
293
|
#
|
294
|
-
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
294
|
+
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil, service_project_number: nil)
|
295
295
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
296
296
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
297
297
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
298
298
|
#
|
299
299
|
# @param filter [::String]
|
300
|
-
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The
|
300
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
|
301
301
|
# @param include_all_scopes [::Boolean]
|
302
302
|
# Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
|
303
303
|
# @param max_results [::Integer]
|
@@ -310,6 +310,7 @@ module Google
|
|
310
310
|
# Name of the project scoping this request.
|
311
311
|
# @param return_partial_success [::Boolean]
|
312
312
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
313
|
+
# @param service_project_number [::Integer]
|
313
314
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
314
315
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::SecurityPoliciesScopedList>]
|
315
316
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -732,7 +733,7 @@ module Google
|
|
732
733
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
733
734
|
#
|
734
735
|
# @param filter [::String]
|
735
|
-
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The
|
736
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
|
736
737
|
# @param max_results [::Integer]
|
737
738
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
738
739
|
# @param order_by [::String]
|
@@ -821,7 +822,7 @@ module Google
|
|
821
822
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
822
823
|
#
|
823
824
|
# @param filter [::String]
|
824
|
-
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The
|
825
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
|
825
826
|
# @param max_results [::Integer]
|
826
827
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
827
828
|
# @param order_by [::String]
|
@@ -903,7 +904,7 @@ module Google
|
|
903
904
|
# @param options [::Gapic::CallOptions, ::Hash]
|
904
905
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
905
906
|
#
|
906
|
-
# @overload patch(project: nil, request_id: nil, security_policy: nil, security_policy_resource: nil)
|
907
|
+
# @overload patch(project: nil, request_id: nil, security_policy: nil, security_policy_resource: nil, update_mask: nil)
|
907
908
|
# Pass arguments to `patch` via keyword arguments. Note that at
|
908
909
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
909
910
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -916,6 +917,8 @@ module Google
|
|
916
917
|
# Name of the security policy to update.
|
917
918
|
# @param security_policy_resource [::Google::Cloud::Compute::V1::SecurityPolicy, ::Hash]
|
918
919
|
# The body resource for this request
|
920
|
+
# @param update_mask [::String]
|
921
|
+
# Indicates fields to be cleared as part of this request.
|
919
922
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
920
923
|
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
921
924
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -995,7 +998,7 @@ module Google
|
|
995
998
|
# @param options [::Gapic::CallOptions, ::Hash]
|
996
999
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
997
1000
|
#
|
998
|
-
# @overload patch_rule(priority: nil, project: nil, security_policy: nil, security_policy_rule_resource: nil, validate_only: nil)
|
1001
|
+
# @overload patch_rule(priority: nil, project: nil, security_policy: nil, security_policy_rule_resource: nil, update_mask: nil, validate_only: nil)
|
999
1002
|
# Pass arguments to `patch_rule` via keyword arguments. Note that at
|
1000
1003
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
1001
1004
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
@@ -1008,6 +1011,8 @@ module Google
|
|
1008
1011
|
# Name of the security policy to update.
|
1009
1012
|
# @param security_policy_rule_resource [::Google::Cloud::Compute::V1::SecurityPolicyRule, ::Hash]
|
1010
1013
|
# The body resource for this request
|
1014
|
+
# @param update_mask [::String]
|
1015
|
+
# Indicates fields to be cleared as part of this request.
|
1011
1016
|
# @param validate_only [::Boolean]
|
1012
1017
|
# If true, the request will not be committed.
|
1013
1018
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
@@ -190,13 +190,13 @@ module Google
|
|
190
190
|
# @param options [::Gapic::CallOptions, ::Hash]
|
191
191
|
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
192
192
|
#
|
193
|
-
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil)
|
193
|
+
# @overload aggregated_list(filter: nil, include_all_scopes: nil, max_results: nil, order_by: nil, page_token: nil, project: nil, return_partial_success: nil, service_project_number: nil)
|
194
194
|
# Pass arguments to `aggregated_list` via keyword arguments. Note that at
|
195
195
|
# least one keyword argument is required. To specify no parameters, or to keep all
|
196
196
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
197
197
|
#
|
198
198
|
# @param filter [::String]
|
199
|
-
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The
|
199
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
|
200
200
|
# @param include_all_scopes [::Boolean]
|
201
201
|
# Indicates whether every visible scope for each scope type (zone, region, global) should be included in the response. For new resource types added after this field, the flag has no effect as new resource types will always include every visible scope for each scope type in response. For resource types which predate this field, if this flag is omitted or false, only scopes of the scope types where the resource type is expected to be found will be included.
|
202
202
|
# @param max_results [::Integer]
|
@@ -209,6 +209,7 @@ module Google
|
|
209
209
|
# Name of the project scoping this request.
|
210
210
|
# @param return_partial_success [::Boolean]
|
211
211
|
# Opt-in for partial success behavior which provides partial results in case of failure. The default value is false.
|
212
|
+
# @param service_project_number [::Integer]
|
212
213
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
213
214
|
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::ServiceAttachmentsScopedList>]
|
214
215
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -639,7 +640,7 @@ module Google
|
|
639
640
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
640
641
|
#
|
641
642
|
# @param filter [::String]
|
642
|
-
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The
|
643
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
|
643
644
|
# @param max_results [::Integer]
|
644
645
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
645
646
|
# @param order_by [::String]
|
@@ -0,0 +1,52 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "googleauth"
|
20
|
+
|
21
|
+
module Google
|
22
|
+
module Cloud
|
23
|
+
module Compute
|
24
|
+
module V1
|
25
|
+
module SnapshotSettingsService
|
26
|
+
# Credentials for the SnapshotSettingsService API.
|
27
|
+
class Credentials < ::Google::Auth::Credentials
|
28
|
+
self.scope = [
|
29
|
+
"https://www.googleapis.com/auth/compute",
|
30
|
+
"https://www.googleapis.com/auth/cloud-platform"
|
31
|
+
]
|
32
|
+
self.env_vars = [
|
33
|
+
"COMPUTE_CREDENTIALS",
|
34
|
+
"COMPUTE_KEYFILE",
|
35
|
+
"GOOGLE_CLOUD_CREDENTIALS",
|
36
|
+
"GOOGLE_CLOUD_KEYFILE",
|
37
|
+
"GCLOUD_KEYFILE",
|
38
|
+
"COMPUTE_CREDENTIALS_JSON",
|
39
|
+
"COMPUTE_KEYFILE_JSON",
|
40
|
+
"GOOGLE_CLOUD_CREDENTIALS_JSON",
|
41
|
+
"GOOGLE_CLOUD_KEYFILE_JSON",
|
42
|
+
"GCLOUD_KEYFILE_JSON"
|
43
|
+
]
|
44
|
+
self.paths = [
|
45
|
+
"~/.config/google_cloud/application_default_credentials.json"
|
46
|
+
]
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|