google-cloud-compute-v1 2.4.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 +52 -3
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +421 -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 +420 -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 +52 -3
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +292 -3
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +289 -1
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +132 -3
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +114 -2
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +84 -3
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +49 -1
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +81 -1
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +16 -0
- data/lib/google/cloud/compute/v1/images/rest/client.rb +177 -1
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +327 -6
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +149 -4
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +132 -3
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +845 -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 +116 -3
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +206 -2
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +60 -0
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +52 -3
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +236 -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 +83 -2
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +149 -4
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +257 -1
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +178 -2
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +229 -4
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +132 -3
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +52 -3
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +210 -2
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +282 -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 +304 -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 +97 -1
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +445 -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 +84 -3
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +273 -1
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +81 -1
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +308 -4
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +66 -2
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +16 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +378 -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 +273 -1
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +497 -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 +65 -1
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +98 -2
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +81 -1
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +164 -3
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +148 -3
- data/lib/google/cloud/compute/v1/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +261 -4
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +61 -0
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +203 -6
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +148 -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 +129 -1
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +84 -3
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +117 -4
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +197 -4
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +81 -1
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +180 -3
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +188 -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 +284 -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 +145 -1
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +100 -3
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +148 -3
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +132 -3
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +100 -3
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1.rb +1 -0
- data/proto_docs/google/api/client.rb +13 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +1654 -196
- data/proto_docs/google/protobuf/any.rb +144 -0
- metadata +11 -5
@@ -196,6 +196,22 @@ module Google
|
|
196
196
|
# @return [::Gapic::GenericLRO::Operation]
|
197
197
|
#
|
198
198
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
199
|
+
#
|
200
|
+
# @example Basic example
|
201
|
+
# require "google/cloud/compute/v1"
|
202
|
+
#
|
203
|
+
# # Create a client object. The client can be reused for multiple calls.
|
204
|
+
# client = Google::Cloud::Compute::V1::RegionTargetHttpProxies::Rest::Client.new
|
205
|
+
#
|
206
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
207
|
+
# request = Google::Cloud::Compute::V1::DeleteRegionTargetHttpProxyRequest.new
|
208
|
+
#
|
209
|
+
# # Call the delete method.
|
210
|
+
# result = client.delete request
|
211
|
+
#
|
212
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
213
|
+
# p result
|
214
|
+
#
|
199
215
|
def delete request, options = nil
|
200
216
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
201
217
|
|
@@ -271,6 +287,22 @@ module Google
|
|
271
287
|
# @return [::Google::Cloud::Compute::V1::TargetHttpProxy]
|
272
288
|
#
|
273
289
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
290
|
+
#
|
291
|
+
# @example Basic example
|
292
|
+
# require "google/cloud/compute/v1"
|
293
|
+
#
|
294
|
+
# # Create a client object. The client can be reused for multiple calls.
|
295
|
+
# client = Google::Cloud::Compute::V1::RegionTargetHttpProxies::Rest::Client.new
|
296
|
+
#
|
297
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
298
|
+
# request = Google::Cloud::Compute::V1::GetRegionTargetHttpProxyRequest.new
|
299
|
+
#
|
300
|
+
# # Call the get method.
|
301
|
+
# result = client.get request
|
302
|
+
#
|
303
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetHttpProxy.
|
304
|
+
# p result
|
305
|
+
#
|
274
306
|
def get request, options = nil
|
275
307
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
276
308
|
|
@@ -339,6 +371,22 @@ module Google
|
|
339
371
|
# @return [::Gapic::GenericLRO::Operation]
|
340
372
|
#
|
341
373
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
374
|
+
#
|
375
|
+
# @example Basic example
|
376
|
+
# require "google/cloud/compute/v1"
|
377
|
+
#
|
378
|
+
# # Create a client object. The client can be reused for multiple calls.
|
379
|
+
# client = Google::Cloud::Compute::V1::RegionTargetHttpProxies::Rest::Client.new
|
380
|
+
#
|
381
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
382
|
+
# request = Google::Cloud::Compute::V1::InsertRegionTargetHttpProxyRequest.new
|
383
|
+
#
|
384
|
+
# # Call the insert method.
|
385
|
+
# result = client.insert request
|
386
|
+
#
|
387
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
388
|
+
# p result
|
389
|
+
#
|
342
390
|
def insert request, options = nil
|
343
391
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
344
392
|
|
@@ -402,7 +450,7 @@ module Google
|
|
402
450
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
403
451
|
#
|
404
452
|
# @param filter [::String]
|
405
|
-
# 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
|
453
|
+
# 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.
|
406
454
|
# @param max_results [::Integer]
|
407
455
|
# 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`)
|
408
456
|
# @param order_by [::String]
|
@@ -422,6 +470,22 @@ module Google
|
|
422
470
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::TargetHttpProxy>]
|
423
471
|
#
|
424
472
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
473
|
+
#
|
474
|
+
# @example Basic example
|
475
|
+
# require "google/cloud/compute/v1"
|
476
|
+
#
|
477
|
+
# # Create a client object. The client can be reused for multiple calls.
|
478
|
+
# client = Google::Cloud::Compute::V1::RegionTargetHttpProxies::Rest::Client.new
|
479
|
+
#
|
480
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
481
|
+
# request = Google::Cloud::Compute::V1::ListRegionTargetHttpProxiesRequest.new
|
482
|
+
#
|
483
|
+
# # Call the list method.
|
484
|
+
# result = client.list request
|
485
|
+
#
|
486
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetHttpProxyList.
|
487
|
+
# p result
|
488
|
+
#
|
425
489
|
def list request, options = nil
|
426
490
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
427
491
|
|
@@ -493,6 +557,22 @@ module Google
|
|
493
557
|
# @return [::Gapic::GenericLRO::Operation]
|
494
558
|
#
|
495
559
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
560
|
+
#
|
561
|
+
# @example Basic example
|
562
|
+
# require "google/cloud/compute/v1"
|
563
|
+
#
|
564
|
+
# # Create a client object. The client can be reused for multiple calls.
|
565
|
+
# client = Google::Cloud::Compute::V1::RegionTargetHttpProxies::Rest::Client.new
|
566
|
+
#
|
567
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
568
|
+
# request = Google::Cloud::Compute::V1::SetUrlMapRegionTargetHttpProxyRequest.new
|
569
|
+
#
|
570
|
+
# # Call the set_url_map method.
|
571
|
+
# result = client.set_url_map request
|
572
|
+
#
|
573
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
574
|
+
# p result
|
575
|
+
#
|
496
576
|
def set_url_map request, options = nil
|
497
577
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
498
578
|
|
@@ -200,6 +200,22 @@ module Google
|
|
200
200
|
# @return [::Gapic::GenericLRO::Operation]
|
201
201
|
#
|
202
202
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
203
|
+
#
|
204
|
+
# @example Basic example
|
205
|
+
# require "google/cloud/compute/v1"
|
206
|
+
#
|
207
|
+
# # Create a client object. The client can be reused for multiple calls.
|
208
|
+
# client = Google::Cloud::Compute::V1::RegionTargetHttpsProxies::Rest::Client.new
|
209
|
+
#
|
210
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
211
|
+
# request = Google::Cloud::Compute::V1::DeleteRegionTargetHttpsProxyRequest.new
|
212
|
+
#
|
213
|
+
# # Call the delete method.
|
214
|
+
# result = client.delete request
|
215
|
+
#
|
216
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
217
|
+
# p result
|
218
|
+
#
|
203
219
|
def delete request, options = nil
|
204
220
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
205
221
|
|
@@ -275,6 +291,22 @@ module Google
|
|
275
291
|
# @return [::Google::Cloud::Compute::V1::TargetHttpsProxy]
|
276
292
|
#
|
277
293
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
294
|
+
#
|
295
|
+
# @example Basic example
|
296
|
+
# require "google/cloud/compute/v1"
|
297
|
+
#
|
298
|
+
# # Create a client object. The client can be reused for multiple calls.
|
299
|
+
# client = Google::Cloud::Compute::V1::RegionTargetHttpsProxies::Rest::Client.new
|
300
|
+
#
|
301
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
302
|
+
# request = Google::Cloud::Compute::V1::GetRegionTargetHttpsProxyRequest.new
|
303
|
+
#
|
304
|
+
# # Call the get method.
|
305
|
+
# result = client.get request
|
306
|
+
#
|
307
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetHttpsProxy.
|
308
|
+
# p result
|
309
|
+
#
|
278
310
|
def get request, options = nil
|
279
311
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
280
312
|
|
@@ -343,6 +375,22 @@ module Google
|
|
343
375
|
# @return [::Gapic::GenericLRO::Operation]
|
344
376
|
#
|
345
377
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
378
|
+
#
|
379
|
+
# @example Basic example
|
380
|
+
# require "google/cloud/compute/v1"
|
381
|
+
#
|
382
|
+
# # Create a client object. The client can be reused for multiple calls.
|
383
|
+
# client = Google::Cloud::Compute::V1::RegionTargetHttpsProxies::Rest::Client.new
|
384
|
+
#
|
385
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
386
|
+
# request = Google::Cloud::Compute::V1::InsertRegionTargetHttpsProxyRequest.new
|
387
|
+
#
|
388
|
+
# # Call the insert method.
|
389
|
+
# result = client.insert request
|
390
|
+
#
|
391
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
392
|
+
# p result
|
393
|
+
#
|
346
394
|
def insert request, options = nil
|
347
395
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
348
396
|
|
@@ -406,7 +454,7 @@ module Google
|
|
406
454
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
407
455
|
#
|
408
456
|
# @param filter [::String]
|
409
|
-
# 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
|
457
|
+
# 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.
|
410
458
|
# @param max_results [::Integer]
|
411
459
|
# 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`)
|
412
460
|
# @param order_by [::String]
|
@@ -426,6 +474,22 @@ module Google
|
|
426
474
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::TargetHttpsProxy>]
|
427
475
|
#
|
428
476
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
477
|
+
#
|
478
|
+
# @example Basic example
|
479
|
+
# require "google/cloud/compute/v1"
|
480
|
+
#
|
481
|
+
# # Create a client object. The client can be reused for multiple calls.
|
482
|
+
# client = Google::Cloud::Compute::V1::RegionTargetHttpsProxies::Rest::Client.new
|
483
|
+
#
|
484
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
485
|
+
# request = Google::Cloud::Compute::V1::ListRegionTargetHttpsProxiesRequest.new
|
486
|
+
#
|
487
|
+
# # Call the list method.
|
488
|
+
# result = client.list request
|
489
|
+
#
|
490
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetHttpsProxyList.
|
491
|
+
# p result
|
492
|
+
#
|
429
493
|
def list request, options = nil
|
430
494
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
431
495
|
|
@@ -497,6 +561,22 @@ module Google
|
|
497
561
|
# @return [::Gapic::GenericLRO::Operation]
|
498
562
|
#
|
499
563
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
564
|
+
#
|
565
|
+
# @example Basic example
|
566
|
+
# require "google/cloud/compute/v1"
|
567
|
+
#
|
568
|
+
# # Create a client object. The client can be reused for multiple calls.
|
569
|
+
# client = Google::Cloud::Compute::V1::RegionTargetHttpsProxies::Rest::Client.new
|
570
|
+
#
|
571
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
572
|
+
# request = Google::Cloud::Compute::V1::PatchRegionTargetHttpsProxyRequest.new
|
573
|
+
#
|
574
|
+
# # Call the patch method.
|
575
|
+
# result = client.patch request
|
576
|
+
#
|
577
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
578
|
+
# p result
|
579
|
+
#
|
500
580
|
def patch request, options = nil
|
501
581
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
502
582
|
|
@@ -576,6 +656,22 @@ module Google
|
|
576
656
|
# @return [::Gapic::GenericLRO::Operation]
|
577
657
|
#
|
578
658
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
659
|
+
#
|
660
|
+
# @example Basic example
|
661
|
+
# require "google/cloud/compute/v1"
|
662
|
+
#
|
663
|
+
# # Create a client object. The client can be reused for multiple calls.
|
664
|
+
# client = Google::Cloud::Compute::V1::RegionTargetHttpsProxies::Rest::Client.new
|
665
|
+
#
|
666
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
667
|
+
# request = Google::Cloud::Compute::V1::SetSslCertificatesRegionTargetHttpsProxyRequest.new
|
668
|
+
#
|
669
|
+
# # Call the set_ssl_certificates method.
|
670
|
+
# result = client.set_ssl_certificates request
|
671
|
+
#
|
672
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
673
|
+
# p result
|
674
|
+
#
|
579
675
|
def set_ssl_certificates request, options = nil
|
580
676
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
581
677
|
|
@@ -655,6 +751,22 @@ module Google
|
|
655
751
|
# @return [::Gapic::GenericLRO::Operation]
|
656
752
|
#
|
657
753
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
754
|
+
#
|
755
|
+
# @example Basic example
|
756
|
+
# require "google/cloud/compute/v1"
|
757
|
+
#
|
758
|
+
# # Create a client object. The client can be reused for multiple calls.
|
759
|
+
# client = Google::Cloud::Compute::V1::RegionTargetHttpsProxies::Rest::Client.new
|
760
|
+
#
|
761
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
762
|
+
# request = Google::Cloud::Compute::V1::SetUrlMapRegionTargetHttpsProxyRequest.new
|
763
|
+
#
|
764
|
+
# # Call the set_url_map method.
|
765
|
+
# result = client.set_url_map request
|
766
|
+
#
|
767
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
768
|
+
# p result
|
769
|
+
#
|
658
770
|
def set_url_map request, options = nil
|
659
771
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
660
772
|
|
@@ -194,6 +194,22 @@ module Google
|
|
194
194
|
# @return [::Gapic::GenericLRO::Operation]
|
195
195
|
#
|
196
196
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
197
|
+
#
|
198
|
+
# @example Basic example
|
199
|
+
# require "google/cloud/compute/v1"
|
200
|
+
#
|
201
|
+
# # Create a client object. The client can be reused for multiple calls.
|
202
|
+
# client = Google::Cloud::Compute::V1::RegionTargetTcpProxies::Rest::Client.new
|
203
|
+
#
|
204
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
205
|
+
# request = Google::Cloud::Compute::V1::DeleteRegionTargetTcpProxyRequest.new
|
206
|
+
#
|
207
|
+
# # Call the delete method.
|
208
|
+
# result = client.delete request
|
209
|
+
#
|
210
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
211
|
+
# p result
|
212
|
+
#
|
197
213
|
def delete request, options = nil
|
198
214
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
199
215
|
|
@@ -269,6 +285,22 @@ module Google
|
|
269
285
|
# @return [::Google::Cloud::Compute::V1::TargetTcpProxy]
|
270
286
|
#
|
271
287
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
288
|
+
#
|
289
|
+
# @example Basic example
|
290
|
+
# require "google/cloud/compute/v1"
|
291
|
+
#
|
292
|
+
# # Create a client object. The client can be reused for multiple calls.
|
293
|
+
# client = Google::Cloud::Compute::V1::RegionTargetTcpProxies::Rest::Client.new
|
294
|
+
#
|
295
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
296
|
+
# request = Google::Cloud::Compute::V1::GetRegionTargetTcpProxyRequest.new
|
297
|
+
#
|
298
|
+
# # Call the get method.
|
299
|
+
# result = client.get request
|
300
|
+
#
|
301
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetTcpProxy.
|
302
|
+
# p result
|
303
|
+
#
|
272
304
|
def get request, options = nil
|
273
305
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
274
306
|
|
@@ -337,6 +369,22 @@ module Google
|
|
337
369
|
# @return [::Gapic::GenericLRO::Operation]
|
338
370
|
#
|
339
371
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
372
|
+
#
|
373
|
+
# @example Basic example
|
374
|
+
# require "google/cloud/compute/v1"
|
375
|
+
#
|
376
|
+
# # Create a client object. The client can be reused for multiple calls.
|
377
|
+
# client = Google::Cloud::Compute::V1::RegionTargetTcpProxies::Rest::Client.new
|
378
|
+
#
|
379
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
380
|
+
# request = Google::Cloud::Compute::V1::InsertRegionTargetTcpProxyRequest.new
|
381
|
+
#
|
382
|
+
# # Call the insert method.
|
383
|
+
# result = client.insert request
|
384
|
+
#
|
385
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
386
|
+
# p result
|
387
|
+
#
|
340
388
|
def insert request, options = nil
|
341
389
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
342
390
|
|
@@ -400,7 +448,7 @@ module Google
|
|
400
448
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
401
449
|
#
|
402
450
|
# @param filter [::String]
|
403
|
-
# 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
|
451
|
+
# 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.
|
404
452
|
# @param max_results [::Integer]
|
405
453
|
# 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`)
|
406
454
|
# @param order_by [::String]
|
@@ -420,6 +468,22 @@ module Google
|
|
420
468
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::TargetTcpProxy>]
|
421
469
|
#
|
422
470
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
471
|
+
#
|
472
|
+
# @example Basic example
|
473
|
+
# require "google/cloud/compute/v1"
|
474
|
+
#
|
475
|
+
# # Create a client object. The client can be reused for multiple calls.
|
476
|
+
# client = Google::Cloud::Compute::V1::RegionTargetTcpProxies::Rest::Client.new
|
477
|
+
#
|
478
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
479
|
+
# request = Google::Cloud::Compute::V1::ListRegionTargetTcpProxiesRequest.new
|
480
|
+
#
|
481
|
+
# # Call the list method.
|
482
|
+
# result = client.list request
|
483
|
+
#
|
484
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TargetTcpProxyList.
|
485
|
+
# p result
|
486
|
+
#
|
423
487
|
def list request, options = nil
|
424
488
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
425
489
|
|
@@ -200,6 +200,22 @@ module Google
|
|
200
200
|
# @return [::Gapic::GenericLRO::Operation]
|
201
201
|
#
|
202
202
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
203
|
+
#
|
204
|
+
# @example Basic example
|
205
|
+
# require "google/cloud/compute/v1"
|
206
|
+
#
|
207
|
+
# # Create a client object. The client can be reused for multiple calls.
|
208
|
+
# client = Google::Cloud::Compute::V1::RegionUrlMaps::Rest::Client.new
|
209
|
+
#
|
210
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
211
|
+
# request = Google::Cloud::Compute::V1::DeleteRegionUrlMapRequest.new
|
212
|
+
#
|
213
|
+
# # Call the delete method.
|
214
|
+
# result = client.delete request
|
215
|
+
#
|
216
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
217
|
+
# p result
|
218
|
+
#
|
203
219
|
def delete request, options = nil
|
204
220
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
205
221
|
|
@@ -275,6 +291,22 @@ module Google
|
|
275
291
|
# @return [::Google::Cloud::Compute::V1::UrlMap]
|
276
292
|
#
|
277
293
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
294
|
+
#
|
295
|
+
# @example Basic example
|
296
|
+
# require "google/cloud/compute/v1"
|
297
|
+
#
|
298
|
+
# # Create a client object. The client can be reused for multiple calls.
|
299
|
+
# client = Google::Cloud::Compute::V1::RegionUrlMaps::Rest::Client.new
|
300
|
+
#
|
301
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
302
|
+
# request = Google::Cloud::Compute::V1::GetRegionUrlMapRequest.new
|
303
|
+
#
|
304
|
+
# # Call the get method.
|
305
|
+
# result = client.get request
|
306
|
+
#
|
307
|
+
# # The returned object is of type Google::Cloud::Compute::V1::UrlMap.
|
308
|
+
# p result
|
309
|
+
#
|
278
310
|
def get request, options = nil
|
279
311
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
280
312
|
|
@@ -343,6 +375,22 @@ module Google
|
|
343
375
|
# @return [::Gapic::GenericLRO::Operation]
|
344
376
|
#
|
345
377
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
378
|
+
#
|
379
|
+
# @example Basic example
|
380
|
+
# require "google/cloud/compute/v1"
|
381
|
+
#
|
382
|
+
# # Create a client object. The client can be reused for multiple calls.
|
383
|
+
# client = Google::Cloud::Compute::V1::RegionUrlMaps::Rest::Client.new
|
384
|
+
#
|
385
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
386
|
+
# request = Google::Cloud::Compute::V1::InsertRegionUrlMapRequest.new
|
387
|
+
#
|
388
|
+
# # Call the insert method.
|
389
|
+
# result = client.insert request
|
390
|
+
#
|
391
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
392
|
+
# p result
|
393
|
+
#
|
346
394
|
def insert request, options = nil
|
347
395
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
348
396
|
|
@@ -406,7 +454,7 @@ module Google
|
|
406
454
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
407
455
|
#
|
408
456
|
# @param filter [::String]
|
409
|
-
# 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
|
457
|
+
# 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.
|
410
458
|
# @param max_results [::Integer]
|
411
459
|
# 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`)
|
412
460
|
# @param order_by [::String]
|
@@ -426,6 +474,22 @@ module Google
|
|
426
474
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::UrlMap>]
|
427
475
|
#
|
428
476
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
477
|
+
#
|
478
|
+
# @example Basic example
|
479
|
+
# require "google/cloud/compute/v1"
|
480
|
+
#
|
481
|
+
# # Create a client object. The client can be reused for multiple calls.
|
482
|
+
# client = Google::Cloud::Compute::V1::RegionUrlMaps::Rest::Client.new
|
483
|
+
#
|
484
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
485
|
+
# request = Google::Cloud::Compute::V1::ListRegionUrlMapsRequest.new
|
486
|
+
#
|
487
|
+
# # Call the list method.
|
488
|
+
# result = client.list request
|
489
|
+
#
|
490
|
+
# # The returned object is of type Google::Cloud::Compute::V1::UrlMapList.
|
491
|
+
# p result
|
492
|
+
#
|
429
493
|
def list request, options = nil
|
430
494
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
431
495
|
|
@@ -497,6 +561,22 @@ module Google
|
|
497
561
|
# @return [::Gapic::GenericLRO::Operation]
|
498
562
|
#
|
499
563
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
564
|
+
#
|
565
|
+
# @example Basic example
|
566
|
+
# require "google/cloud/compute/v1"
|
567
|
+
#
|
568
|
+
# # Create a client object. The client can be reused for multiple calls.
|
569
|
+
# client = Google::Cloud::Compute::V1::RegionUrlMaps::Rest::Client.new
|
570
|
+
#
|
571
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
572
|
+
# request = Google::Cloud::Compute::V1::PatchRegionUrlMapRequest.new
|
573
|
+
#
|
574
|
+
# # Call the patch method.
|
575
|
+
# result = client.patch request
|
576
|
+
#
|
577
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
578
|
+
# p result
|
579
|
+
#
|
500
580
|
def patch request, options = nil
|
501
581
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
502
582
|
|
@@ -576,6 +656,22 @@ module Google
|
|
576
656
|
# @return [::Gapic::GenericLRO::Operation]
|
577
657
|
#
|
578
658
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
659
|
+
#
|
660
|
+
# @example Basic example
|
661
|
+
# require "google/cloud/compute/v1"
|
662
|
+
#
|
663
|
+
# # Create a client object. The client can be reused for multiple calls.
|
664
|
+
# client = Google::Cloud::Compute::V1::RegionUrlMaps::Rest::Client.new
|
665
|
+
#
|
666
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
667
|
+
# request = Google::Cloud::Compute::V1::UpdateRegionUrlMapRequest.new
|
668
|
+
#
|
669
|
+
# # Call the update method.
|
670
|
+
# result = client.update request
|
671
|
+
#
|
672
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
673
|
+
# p result
|
674
|
+
#
|
579
675
|
def update request, options = nil
|
580
676
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
581
677
|
|
@@ -653,6 +749,22 @@ module Google
|
|
653
749
|
# @return [::Google::Cloud::Compute::V1::UrlMapsValidateResponse]
|
654
750
|
#
|
655
751
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
752
|
+
#
|
753
|
+
# @example Basic example
|
754
|
+
# require "google/cloud/compute/v1"
|
755
|
+
#
|
756
|
+
# # Create a client object. The client can be reused for multiple calls.
|
757
|
+
# client = Google::Cloud::Compute::V1::RegionUrlMaps::Rest::Client.new
|
758
|
+
#
|
759
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
760
|
+
# request = Google::Cloud::Compute::V1::ValidateRegionUrlMapRequest.new
|
761
|
+
#
|
762
|
+
# # Call the validate method.
|
763
|
+
# result = client.validate request
|
764
|
+
#
|
765
|
+
# # The returned object is of type Google::Cloud::Compute::V1::UrlMapsValidateResponse.
|
766
|
+
# p result
|
767
|
+
#
|
656
768
|
def validate request, options = nil
|
657
769
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
658
770
|
|
@@ -172,6 +172,22 @@ module Google
|
|
172
172
|
# @return [::Google::Cloud::Compute::V1::Region]
|
173
173
|
#
|
174
174
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
175
|
+
#
|
176
|
+
# @example Basic example
|
177
|
+
# require "google/cloud/compute/v1"
|
178
|
+
#
|
179
|
+
# # Create a client object. The client can be reused for multiple calls.
|
180
|
+
# client = Google::Cloud::Compute::V1::Regions::Rest::Client.new
|
181
|
+
#
|
182
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
183
|
+
# request = Google::Cloud::Compute::V1::GetRegionRequest.new
|
184
|
+
#
|
185
|
+
# # Call the get method.
|
186
|
+
# result = client.get request
|
187
|
+
#
|
188
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Region.
|
189
|
+
# p result
|
190
|
+
#
|
175
191
|
def get request, options = nil
|
176
192
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
177
193
|
|
@@ -226,7 +242,7 @@ module Google
|
|
226
242
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
227
243
|
#
|
228
244
|
# @param filter [::String]
|
229
|
-
# 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
|
245
|
+
# 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.
|
230
246
|
# @param max_results [::Integer]
|
231
247
|
# 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`)
|
232
248
|
# @param order_by [::String]
|
@@ -244,6 +260,22 @@ module Google
|
|
244
260
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Region>]
|
245
261
|
#
|
246
262
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
263
|
+
#
|
264
|
+
# @example Basic example
|
265
|
+
# require "google/cloud/compute/v1"
|
266
|
+
#
|
267
|
+
# # Create a client object. The client can be reused for multiple calls.
|
268
|
+
# client = Google::Cloud::Compute::V1::Regions::Rest::Client.new
|
269
|
+
#
|
270
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
271
|
+
# request = Google::Cloud::Compute::V1::ListRegionsRequest.new
|
272
|
+
#
|
273
|
+
# # Call the list method.
|
274
|
+
# result = client.list request
|
275
|
+
#
|
276
|
+
# # The returned object is of type Google::Cloud::Compute::V1::RegionList.
|
277
|
+
# p result
|
278
|
+
#
|
247
279
|
def list request, options = nil
|
248
280
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
249
281
|
|