google-cloud-compute-v1 2.3.0 → 2.5.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 +48 -0
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +224 -0
- data/lib/google/cloud/compute/v1/compute_pb.rb +3 -1
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +48 -0
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +288 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +288 -0
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +48 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +16 -0
- data/lib/google/cloud/compute/v1/images/rest/client.rb +176 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +320 -0
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +736 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +48 -0
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +256 -0
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +176 -0
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +224 -0
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +48 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +208 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +272 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +304 -0
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +64 -0
- 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 +64 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +272 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +81 -1
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +160 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +234 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +160 -0
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +194 -2
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +192 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +176 -0
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +176 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +32 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +56 -4
- metadata +5 -5
@@ -213,6 +213,22 @@ module Google
|
|
213
213
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::UrlMapsScopedList>]
|
214
214
|
#
|
215
215
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
216
|
+
#
|
217
|
+
# @example Basic example
|
218
|
+
# require "google/cloud/compute/v1"
|
219
|
+
#
|
220
|
+
# # Create a client object. The client can be reused for multiple calls.
|
221
|
+
# client = Google::Cloud::Compute::V1::UrlMaps::Rest::Client.new
|
222
|
+
#
|
223
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
224
|
+
# request = Google::Cloud::Compute::V1::AggregatedListUrlMapsRequest.new
|
225
|
+
#
|
226
|
+
# # Call the aggregated_list method.
|
227
|
+
# result = client.aggregated_list request
|
228
|
+
#
|
229
|
+
# # The returned object is of type Google::Cloud::Compute::V1::UrlMapsAggregatedList.
|
230
|
+
# p result
|
231
|
+
#
|
216
232
|
def aggregated_list request, options = nil
|
217
233
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
218
234
|
|
@@ -280,6 +296,22 @@ module Google
|
|
280
296
|
# @return [::Gapic::GenericLRO::Operation]
|
281
297
|
#
|
282
298
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
299
|
+
#
|
300
|
+
# @example Basic example
|
301
|
+
# require "google/cloud/compute/v1"
|
302
|
+
#
|
303
|
+
# # Create a client object. The client can be reused for multiple calls.
|
304
|
+
# client = Google::Cloud::Compute::V1::UrlMaps::Rest::Client.new
|
305
|
+
#
|
306
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
307
|
+
# request = Google::Cloud::Compute::V1::DeleteUrlMapRequest.new
|
308
|
+
#
|
309
|
+
# # Call the delete method.
|
310
|
+
# result = client.delete request
|
311
|
+
#
|
312
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
313
|
+
# p result
|
314
|
+
#
|
283
315
|
def delete request, options = nil
|
284
316
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
285
317
|
|
@@ -352,6 +384,22 @@ module Google
|
|
352
384
|
# @return [::Google::Cloud::Compute::V1::UrlMap]
|
353
385
|
#
|
354
386
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
387
|
+
#
|
388
|
+
# @example Basic example
|
389
|
+
# require "google/cloud/compute/v1"
|
390
|
+
#
|
391
|
+
# # Create a client object. The client can be reused for multiple calls.
|
392
|
+
# client = Google::Cloud::Compute::V1::UrlMaps::Rest::Client.new
|
393
|
+
#
|
394
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
395
|
+
# request = Google::Cloud::Compute::V1::GetUrlMapRequest.new
|
396
|
+
#
|
397
|
+
# # Call the get method.
|
398
|
+
# result = client.get request
|
399
|
+
#
|
400
|
+
# # The returned object is of type Google::Cloud::Compute::V1::UrlMap.
|
401
|
+
# p result
|
402
|
+
#
|
355
403
|
def get request, options = nil
|
356
404
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
357
405
|
|
@@ -418,6 +466,22 @@ module Google
|
|
418
466
|
# @return [::Gapic::GenericLRO::Operation]
|
419
467
|
#
|
420
468
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
469
|
+
#
|
470
|
+
# @example Basic example
|
471
|
+
# require "google/cloud/compute/v1"
|
472
|
+
#
|
473
|
+
# # Create a client object. The client can be reused for multiple calls.
|
474
|
+
# client = Google::Cloud::Compute::V1::UrlMaps::Rest::Client.new
|
475
|
+
#
|
476
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
477
|
+
# request = Google::Cloud::Compute::V1::InsertUrlMapRequest.new
|
478
|
+
#
|
479
|
+
# # Call the insert method.
|
480
|
+
# result = client.insert request
|
481
|
+
#
|
482
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
483
|
+
# p result
|
484
|
+
#
|
421
485
|
def insert request, options = nil
|
422
486
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
423
487
|
|
@@ -494,6 +558,22 @@ module Google
|
|
494
558
|
# @return [::Gapic::GenericLRO::Operation]
|
495
559
|
#
|
496
560
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
561
|
+
#
|
562
|
+
# @example Basic example
|
563
|
+
# require "google/cloud/compute/v1"
|
564
|
+
#
|
565
|
+
# # Create a client object. The client can be reused for multiple calls.
|
566
|
+
# client = Google::Cloud::Compute::V1::UrlMaps::Rest::Client.new
|
567
|
+
#
|
568
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
569
|
+
# request = Google::Cloud::Compute::V1::InvalidateCacheUrlMapRequest.new
|
570
|
+
#
|
571
|
+
# # Call the invalidate_cache method.
|
572
|
+
# result = client.invalidate_cache request
|
573
|
+
#
|
574
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
575
|
+
# p result
|
576
|
+
#
|
497
577
|
def invalidate_cache request, options = nil
|
498
578
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
499
579
|
|
@@ -574,6 +654,22 @@ module Google
|
|
574
654
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::UrlMap>]
|
575
655
|
#
|
576
656
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
657
|
+
#
|
658
|
+
# @example Basic example
|
659
|
+
# require "google/cloud/compute/v1"
|
660
|
+
#
|
661
|
+
# # Create a client object. The client can be reused for multiple calls.
|
662
|
+
# client = Google::Cloud::Compute::V1::UrlMaps::Rest::Client.new
|
663
|
+
#
|
664
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
665
|
+
# request = Google::Cloud::Compute::V1::ListUrlMapsRequest.new
|
666
|
+
#
|
667
|
+
# # Call the list method.
|
668
|
+
# result = client.list request
|
669
|
+
#
|
670
|
+
# # The returned object is of type Google::Cloud::Compute::V1::UrlMapList.
|
671
|
+
# p result
|
672
|
+
#
|
577
673
|
def list request, options = nil
|
578
674
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
579
675
|
|
@@ -643,6 +739,22 @@ module Google
|
|
643
739
|
# @return [::Gapic::GenericLRO::Operation]
|
644
740
|
#
|
645
741
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
742
|
+
#
|
743
|
+
# @example Basic example
|
744
|
+
# require "google/cloud/compute/v1"
|
745
|
+
#
|
746
|
+
# # Create a client object. The client can be reused for multiple calls.
|
747
|
+
# client = Google::Cloud::Compute::V1::UrlMaps::Rest::Client.new
|
748
|
+
#
|
749
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
750
|
+
# request = Google::Cloud::Compute::V1::PatchUrlMapRequest.new
|
751
|
+
#
|
752
|
+
# # Call the patch method.
|
753
|
+
# result = client.patch request
|
754
|
+
#
|
755
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
756
|
+
# p result
|
757
|
+
#
|
646
758
|
def patch request, options = nil
|
647
759
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
648
760
|
|
@@ -719,6 +831,22 @@ module Google
|
|
719
831
|
# @return [::Gapic::GenericLRO::Operation]
|
720
832
|
#
|
721
833
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
834
|
+
#
|
835
|
+
# @example Basic example
|
836
|
+
# require "google/cloud/compute/v1"
|
837
|
+
#
|
838
|
+
# # Create a client object. The client can be reused for multiple calls.
|
839
|
+
# client = Google::Cloud::Compute::V1::UrlMaps::Rest::Client.new
|
840
|
+
#
|
841
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
842
|
+
# request = Google::Cloud::Compute::V1::UpdateUrlMapRequest.new
|
843
|
+
#
|
844
|
+
# # Call the update method.
|
845
|
+
# result = client.update request
|
846
|
+
#
|
847
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
848
|
+
# p result
|
849
|
+
#
|
722
850
|
def update request, options = nil
|
723
851
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
724
852
|
|
@@ -793,6 +921,22 @@ module Google
|
|
793
921
|
# @return [::Google::Cloud::Compute::V1::UrlMapsValidateResponse]
|
794
922
|
#
|
795
923
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
924
|
+
#
|
925
|
+
# @example Basic example
|
926
|
+
# require "google/cloud/compute/v1"
|
927
|
+
#
|
928
|
+
# # Create a client object. The client can be reused for multiple calls.
|
929
|
+
# client = Google::Cloud::Compute::V1::UrlMaps::Rest::Client.new
|
930
|
+
#
|
931
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
932
|
+
# request = Google::Cloud::Compute::V1::ValidateUrlMapRequest.new
|
933
|
+
#
|
934
|
+
# # Call the validate method.
|
935
|
+
# result = client.validate request
|
936
|
+
#
|
937
|
+
# # The returned object is of type Google::Cloud::Compute::V1::UrlMapsValidateResponse.
|
938
|
+
# p result
|
939
|
+
#
|
796
940
|
def validate request, options = nil
|
797
941
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
798
942
|
|
@@ -214,6 +214,22 @@ module Google
|
|
214
214
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::VpnGatewaysScopedList>]
|
215
215
|
#
|
216
216
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
217
|
+
#
|
218
|
+
# @example Basic example
|
219
|
+
# require "google/cloud/compute/v1"
|
220
|
+
#
|
221
|
+
# # Create a client object. The client can be reused for multiple calls.
|
222
|
+
# client = Google::Cloud::Compute::V1::VpnGateways::Rest::Client.new
|
223
|
+
#
|
224
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
225
|
+
# request = Google::Cloud::Compute::V1::AggregatedListVpnGatewaysRequest.new
|
226
|
+
#
|
227
|
+
# # Call the aggregated_list method.
|
228
|
+
# result = client.aggregated_list request
|
229
|
+
#
|
230
|
+
# # The returned object is of type Google::Cloud::Compute::V1::VpnGatewayAggregatedList.
|
231
|
+
# p result
|
232
|
+
#
|
217
233
|
def aggregated_list request, options = nil
|
218
234
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
219
235
|
|
@@ -283,6 +299,22 @@ module Google
|
|
283
299
|
# @return [::Gapic::GenericLRO::Operation]
|
284
300
|
#
|
285
301
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
302
|
+
#
|
303
|
+
# @example Basic example
|
304
|
+
# require "google/cloud/compute/v1"
|
305
|
+
#
|
306
|
+
# # Create a client object. The client can be reused for multiple calls.
|
307
|
+
# client = Google::Cloud::Compute::V1::VpnGateways::Rest::Client.new
|
308
|
+
#
|
309
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
310
|
+
# request = Google::Cloud::Compute::V1::DeleteVpnGatewayRequest.new
|
311
|
+
#
|
312
|
+
# # Call the delete method.
|
313
|
+
# result = client.delete request
|
314
|
+
#
|
315
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
316
|
+
# p result
|
317
|
+
#
|
286
318
|
def delete request, options = nil
|
287
319
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
288
320
|
|
@@ -358,6 +390,22 @@ module Google
|
|
358
390
|
# @return [::Google::Cloud::Compute::V1::VpnGateway]
|
359
391
|
#
|
360
392
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
393
|
+
#
|
394
|
+
# @example Basic example
|
395
|
+
# require "google/cloud/compute/v1"
|
396
|
+
#
|
397
|
+
# # Create a client object. The client can be reused for multiple calls.
|
398
|
+
# client = Google::Cloud::Compute::V1::VpnGateways::Rest::Client.new
|
399
|
+
#
|
400
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
401
|
+
# request = Google::Cloud::Compute::V1::GetVpnGatewayRequest.new
|
402
|
+
#
|
403
|
+
# # Call the get method.
|
404
|
+
# result = client.get request
|
405
|
+
#
|
406
|
+
# # The returned object is of type Google::Cloud::Compute::V1::VpnGateway.
|
407
|
+
# p result
|
408
|
+
#
|
361
409
|
def get request, options = nil
|
362
410
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
363
411
|
|
@@ -424,6 +472,22 @@ module Google
|
|
424
472
|
# @return [::Google::Cloud::Compute::V1::VpnGatewaysGetStatusResponse]
|
425
473
|
#
|
426
474
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
475
|
+
#
|
476
|
+
# @example Basic example
|
477
|
+
# require "google/cloud/compute/v1"
|
478
|
+
#
|
479
|
+
# # Create a client object. The client can be reused for multiple calls.
|
480
|
+
# client = Google::Cloud::Compute::V1::VpnGateways::Rest::Client.new
|
481
|
+
#
|
482
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
483
|
+
# request = Google::Cloud::Compute::V1::GetStatusVpnGatewayRequest.new
|
484
|
+
#
|
485
|
+
# # Call the get_status method.
|
486
|
+
# result = client.get_status request
|
487
|
+
#
|
488
|
+
# # The returned object is of type Google::Cloud::Compute::V1::VpnGatewaysGetStatusResponse.
|
489
|
+
# p result
|
490
|
+
#
|
427
491
|
def get_status request, options = nil
|
428
492
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
429
493
|
|
@@ -492,6 +556,22 @@ module Google
|
|
492
556
|
# @return [::Gapic::GenericLRO::Operation]
|
493
557
|
#
|
494
558
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
559
|
+
#
|
560
|
+
# @example Basic example
|
561
|
+
# require "google/cloud/compute/v1"
|
562
|
+
#
|
563
|
+
# # Create a client object. The client can be reused for multiple calls.
|
564
|
+
# client = Google::Cloud::Compute::V1::VpnGateways::Rest::Client.new
|
565
|
+
#
|
566
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
567
|
+
# request = Google::Cloud::Compute::V1::InsertVpnGatewayRequest.new
|
568
|
+
#
|
569
|
+
# # Call the insert method.
|
570
|
+
# result = client.insert request
|
571
|
+
#
|
572
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
573
|
+
# p result
|
574
|
+
#
|
495
575
|
def insert request, options = nil
|
496
576
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
497
577
|
|
@@ -575,6 +655,22 @@ module Google
|
|
575
655
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::VpnGateway>]
|
576
656
|
#
|
577
657
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
658
|
+
#
|
659
|
+
# @example Basic example
|
660
|
+
# require "google/cloud/compute/v1"
|
661
|
+
#
|
662
|
+
# # Create a client object. The client can be reused for multiple calls.
|
663
|
+
# client = Google::Cloud::Compute::V1::VpnGateways::Rest::Client.new
|
664
|
+
#
|
665
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
666
|
+
# request = Google::Cloud::Compute::V1::ListVpnGatewaysRequest.new
|
667
|
+
#
|
668
|
+
# # Call the list method.
|
669
|
+
# result = client.list request
|
670
|
+
#
|
671
|
+
# # The returned object is of type Google::Cloud::Compute::V1::VpnGatewayList.
|
672
|
+
# p result
|
673
|
+
#
|
578
674
|
def list request, options = nil
|
579
675
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
580
676
|
|
@@ -646,6 +742,22 @@ module Google
|
|
646
742
|
# @return [::Gapic::GenericLRO::Operation]
|
647
743
|
#
|
648
744
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
745
|
+
#
|
746
|
+
# @example Basic example
|
747
|
+
# require "google/cloud/compute/v1"
|
748
|
+
#
|
749
|
+
# # Create a client object. The client can be reused for multiple calls.
|
750
|
+
# client = Google::Cloud::Compute::V1::VpnGateways::Rest::Client.new
|
751
|
+
#
|
752
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
753
|
+
# request = Google::Cloud::Compute::V1::SetLabelsVpnGatewayRequest.new
|
754
|
+
#
|
755
|
+
# # Call the set_labels method.
|
756
|
+
# result = client.set_labels request
|
757
|
+
#
|
758
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
759
|
+
# p result
|
760
|
+
#
|
649
761
|
def set_labels request, options = nil
|
650
762
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
651
763
|
|
@@ -723,6 +835,22 @@ module Google
|
|
723
835
|
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
724
836
|
#
|
725
837
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
838
|
+
#
|
839
|
+
# @example Basic example
|
840
|
+
# require "google/cloud/compute/v1"
|
841
|
+
#
|
842
|
+
# # Create a client object. The client can be reused for multiple calls.
|
843
|
+
# client = Google::Cloud::Compute::V1::VpnGateways::Rest::Client.new
|
844
|
+
#
|
845
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
846
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsVpnGatewayRequest.new
|
847
|
+
#
|
848
|
+
# # Call the test_iam_permissions method.
|
849
|
+
# result = client.test_iam_permissions request
|
850
|
+
#
|
851
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
852
|
+
# p result
|
853
|
+
#
|
726
854
|
def test_iam_permissions request, options = nil
|
727
855
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
728
856
|
|
@@ -207,6 +207,22 @@ module Google
|
|
207
207
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::VpnTunnelsScopedList>]
|
208
208
|
#
|
209
209
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
210
|
+
#
|
211
|
+
# @example Basic example
|
212
|
+
# require "google/cloud/compute/v1"
|
213
|
+
#
|
214
|
+
# # Create a client object. The client can be reused for multiple calls.
|
215
|
+
# client = Google::Cloud::Compute::V1::VpnTunnels::Rest::Client.new
|
216
|
+
#
|
217
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
218
|
+
# request = Google::Cloud::Compute::V1::AggregatedListVpnTunnelsRequest.new
|
219
|
+
#
|
220
|
+
# # Call the aggregated_list method.
|
221
|
+
# result = client.aggregated_list request
|
222
|
+
#
|
223
|
+
# # The returned object is of type Google::Cloud::Compute::V1::VpnTunnelAggregatedList.
|
224
|
+
# p result
|
225
|
+
#
|
210
226
|
def aggregated_list request, options = nil
|
211
227
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
212
228
|
|
@@ -276,6 +292,22 @@ module Google
|
|
276
292
|
# @return [::Gapic::GenericLRO::Operation]
|
277
293
|
#
|
278
294
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
295
|
+
#
|
296
|
+
# @example Basic example
|
297
|
+
# require "google/cloud/compute/v1"
|
298
|
+
#
|
299
|
+
# # Create a client object. The client can be reused for multiple calls.
|
300
|
+
# client = Google::Cloud::Compute::V1::VpnTunnels::Rest::Client.new
|
301
|
+
#
|
302
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
303
|
+
# request = Google::Cloud::Compute::V1::DeleteVpnTunnelRequest.new
|
304
|
+
#
|
305
|
+
# # Call the delete method.
|
306
|
+
# result = client.delete request
|
307
|
+
#
|
308
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
309
|
+
# p result
|
310
|
+
#
|
279
311
|
def delete request, options = nil
|
280
312
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
281
313
|
|
@@ -351,6 +383,22 @@ module Google
|
|
351
383
|
# @return [::Google::Cloud::Compute::V1::VpnTunnel]
|
352
384
|
#
|
353
385
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
386
|
+
#
|
387
|
+
# @example Basic example
|
388
|
+
# require "google/cloud/compute/v1"
|
389
|
+
#
|
390
|
+
# # Create a client object. The client can be reused for multiple calls.
|
391
|
+
# client = Google::Cloud::Compute::V1::VpnTunnels::Rest::Client.new
|
392
|
+
#
|
393
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
394
|
+
# request = Google::Cloud::Compute::V1::GetVpnTunnelRequest.new
|
395
|
+
#
|
396
|
+
# # Call the get method.
|
397
|
+
# result = client.get request
|
398
|
+
#
|
399
|
+
# # The returned object is of type Google::Cloud::Compute::V1::VpnTunnel.
|
400
|
+
# p result
|
401
|
+
#
|
354
402
|
def get request, options = nil
|
355
403
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
356
404
|
|
@@ -419,6 +467,22 @@ module Google
|
|
419
467
|
# @return [::Gapic::GenericLRO::Operation]
|
420
468
|
#
|
421
469
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
470
|
+
#
|
471
|
+
# @example Basic example
|
472
|
+
# require "google/cloud/compute/v1"
|
473
|
+
#
|
474
|
+
# # Create a client object. The client can be reused for multiple calls.
|
475
|
+
# client = Google::Cloud::Compute::V1::VpnTunnels::Rest::Client.new
|
476
|
+
#
|
477
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
478
|
+
# request = Google::Cloud::Compute::V1::InsertVpnTunnelRequest.new
|
479
|
+
#
|
480
|
+
# # Call the insert method.
|
481
|
+
# result = client.insert request
|
482
|
+
#
|
483
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
484
|
+
# p result
|
485
|
+
#
|
422
486
|
def insert request, options = nil
|
423
487
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
424
488
|
|
@@ -502,6 +566,22 @@ module Google
|
|
502
566
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::VpnTunnel>]
|
503
567
|
#
|
504
568
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
569
|
+
#
|
570
|
+
# @example Basic example
|
571
|
+
# require "google/cloud/compute/v1"
|
572
|
+
#
|
573
|
+
# # Create a client object. The client can be reused for multiple calls.
|
574
|
+
# client = Google::Cloud::Compute::V1::VpnTunnels::Rest::Client.new
|
575
|
+
#
|
576
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
577
|
+
# request = Google::Cloud::Compute::V1::ListVpnTunnelsRequest.new
|
578
|
+
#
|
579
|
+
# # Call the list method.
|
580
|
+
# result = client.list request
|
581
|
+
#
|
582
|
+
# # The returned object is of type Google::Cloud::Compute::V1::VpnTunnelList.
|
583
|
+
# p result
|
584
|
+
#
|
505
585
|
def list request, options = nil
|
506
586
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
507
587
|
|
@@ -573,6 +653,22 @@ module Google
|
|
573
653
|
# @return [::Gapic::GenericLRO::Operation]
|
574
654
|
#
|
575
655
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
656
|
+
#
|
657
|
+
# @example Basic example
|
658
|
+
# require "google/cloud/compute/v1"
|
659
|
+
#
|
660
|
+
# # Create a client object. The client can be reused for multiple calls.
|
661
|
+
# client = Google::Cloud::Compute::V1::VpnTunnels::Rest::Client.new
|
662
|
+
#
|
663
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
664
|
+
# request = Google::Cloud::Compute::V1::SetLabelsVpnTunnelRequest.new
|
665
|
+
#
|
666
|
+
# # Call the set_labels method.
|
667
|
+
# result = client.set_labels request
|
668
|
+
#
|
669
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
670
|
+
# p result
|
671
|
+
#
|
576
672
|
def set_labels request, options = nil
|
577
673
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
578
674
|
|
@@ -178,6 +178,22 @@ module Google
|
|
178
178
|
# @return [::Google::Cloud::Compute::V1::DeleteZoneOperationResponse]
|
179
179
|
#
|
180
180
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
181
|
+
#
|
182
|
+
# @example Basic example
|
183
|
+
# require "google/cloud/compute/v1"
|
184
|
+
#
|
185
|
+
# # Create a client object. The client can be reused for multiple calls.
|
186
|
+
# client = Google::Cloud::Compute::V1::ZoneOperations::Rest::Client.new
|
187
|
+
#
|
188
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
189
|
+
# request = Google::Cloud::Compute::V1::DeleteZoneOperationRequest.new
|
190
|
+
#
|
191
|
+
# # Call the delete method.
|
192
|
+
# result = client.delete request
|
193
|
+
#
|
194
|
+
# # The returned object is of type Google::Cloud::Compute::V1::DeleteZoneOperationResponse.
|
195
|
+
# p result
|
196
|
+
#
|
181
197
|
def delete request, options = nil
|
182
198
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
183
199
|
|
@@ -244,6 +260,22 @@ module Google
|
|
244
260
|
# @return [::Google::Cloud::Compute::V1::Operation]
|
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::ZoneOperations::Rest::Client.new
|
269
|
+
#
|
270
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
271
|
+
# request = Google::Cloud::Compute::V1::GetZoneOperationRequest.new
|
272
|
+
#
|
273
|
+
# # Call the get method.
|
274
|
+
# result = client.get request
|
275
|
+
#
|
276
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
277
|
+
# p result
|
278
|
+
#
|
247
279
|
def get request, options = nil
|
248
280
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
249
281
|
|
@@ -318,6 +350,22 @@ module Google
|
|
318
350
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Operation>]
|
319
351
|
#
|
320
352
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
353
|
+
#
|
354
|
+
# @example Basic example
|
355
|
+
# require "google/cloud/compute/v1"
|
356
|
+
#
|
357
|
+
# # Create a client object. The client can be reused for multiple calls.
|
358
|
+
# client = Google::Cloud::Compute::V1::ZoneOperations::Rest::Client.new
|
359
|
+
#
|
360
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
361
|
+
# request = Google::Cloud::Compute::V1::ListZoneOperationsRequest.new
|
362
|
+
#
|
363
|
+
# # Call the list method.
|
364
|
+
# result = client.list request
|
365
|
+
#
|
366
|
+
# # The returned object is of type Google::Cloud::Compute::V1::OperationList.
|
367
|
+
# p result
|
368
|
+
#
|
321
369
|
def list request, options = nil
|
322
370
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
323
371
|
|
@@ -385,6 +433,22 @@ module Google
|
|
385
433
|
# @return [::Google::Cloud::Compute::V1::Operation]
|
386
434
|
#
|
387
435
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
436
|
+
#
|
437
|
+
# @example Basic example
|
438
|
+
# require "google/cloud/compute/v1"
|
439
|
+
#
|
440
|
+
# # Create a client object. The client can be reused for multiple calls.
|
441
|
+
# client = Google::Cloud::Compute::V1::ZoneOperations::Rest::Client.new
|
442
|
+
#
|
443
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
444
|
+
# request = Google::Cloud::Compute::V1::WaitZoneOperationRequest.new
|
445
|
+
#
|
446
|
+
# # Call the wait method.
|
447
|
+
# result = client.wait request
|
448
|
+
#
|
449
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
450
|
+
# p result
|
451
|
+
#
|
388
452
|
def wait request, options = nil
|
389
453
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
390
454
|
|
@@ -172,6 +172,22 @@ module Google
|
|
172
172
|
# @return [::Google::Cloud::Compute::V1::Zone]
|
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::Zones::Rest::Client.new
|
181
|
+
#
|
182
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
183
|
+
# request = Google::Cloud::Compute::V1::GetZoneRequest.new
|
184
|
+
#
|
185
|
+
# # Call the get method.
|
186
|
+
# result = client.get request
|
187
|
+
#
|
188
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Zone.
|
189
|
+
# p result
|
190
|
+
#
|
175
191
|
def get request, options = nil
|
176
192
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
177
193
|
|
@@ -244,6 +260,22 @@ module Google
|
|
244
260
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Zone>]
|
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::Zones::Rest::Client.new
|
269
|
+
#
|
270
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
271
|
+
# request = Google::Cloud::Compute::V1::ListZonesRequest.new
|
272
|
+
#
|
273
|
+
# # Call the list method.
|
274
|
+
# result = client.list request
|
275
|
+
#
|
276
|
+
# # The returned object is of type Google::Cloud::Compute::V1::ZoneList.
|
277
|
+
# p result
|
278
|
+
#
|
247
279
|
def list request, options = nil
|
248
280
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
249
281
|
|