google-cloud-compute-v1 2.4.0 → 2.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (94) hide show
  1. checksums.yaml +4 -4
  2. data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +48 -0
  3. data/lib/google/cloud/compute/v1/addresses/rest/client.rb +112 -0
  4. data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +112 -0
  5. data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +144 -0
  6. data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +224 -0
  7. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +48 -0
  8. data/lib/google/cloud/compute/v1/disks/rest/client.rb +288 -0
  9. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +96 -0
  10. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +288 -0
  11. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +96 -0
  12. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +128 -0
  13. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +96 -0
  14. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +112 -0
  15. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +112 -0
  16. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +80 -0
  17. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +48 -0
  18. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +80 -0
  19. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +112 -0
  20. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +16 -0
  21. data/lib/google/cloud/compute/v1/images/rest/client.rb +176 -0
  22. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +320 -0
  23. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +144 -0
  24. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +128 -0
  25. data/lib/google/cloud/compute/v1/instances/rest/client.rb +736 -0
  26. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +112 -0
  27. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +32 -0
  28. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +32 -0
  29. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +112 -0
  30. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +32 -0
  31. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +112 -0
  32. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +112 -0
  33. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +48 -0
  34. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +128 -0
  35. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +80 -0
  36. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +144 -0
  37. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +256 -0
  38. data/lib/google/cloud/compute/v1/networks/rest/client.rb +176 -0
  39. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +224 -0
  40. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +128 -0
  41. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +48 -0
  42. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +112 -0
  43. data/lib/google/cloud/compute/v1/projects/rest/client.rb +208 -0
  44. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +80 -0
  45. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +96 -0
  46. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +96 -0
  47. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +144 -0
  48. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +80 -0
  49. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +32 -0
  50. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +272 -0
  51. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +80 -0
  52. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +96 -0
  53. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +304 -0
  54. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +64 -0
  55. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +64 -0
  56. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +16 -0
  57. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +64 -0
  58. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +272 -0
  59. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +64 -0
  60. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +64 -0
  61. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +80 -0
  62. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +64 -0
  63. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +96 -0
  64. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +80 -0
  65. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +112 -0
  66. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +64 -0
  67. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +112 -0
  68. data/lib/google/cloud/compute/v1/regions/rest/client.rb +32 -0
  69. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +160 -0
  70. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +144 -0
  71. data/lib/google/cloud/compute/v1/routers/rest/client.rb +160 -0
  72. data/lib/google/cloud/compute/v1/routes/rest/client.rb +64 -0
  73. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +192 -0
  74. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +144 -0
  75. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +128 -0
  76. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +80 -0
  77. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +112 -0
  78. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +192 -0
  79. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +80 -0
  80. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +112 -0
  81. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +176 -0
  82. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +80 -0
  83. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +176 -0
  84. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +144 -0
  85. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +112 -0
  86. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +96 -0
  87. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +144 -0
  88. data/lib/google/cloud/compute/v1/version.rb +1 -1
  89. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +128 -0
  90. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +96 -0
  91. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +64 -0
  92. data/lib/google/cloud/compute/v1/zones/rest/client.rb +32 -0
  93. data/proto_docs/google/api/field_behavior.rb +14 -0
  94. metadata +5 -5
@@ -216,6 +216,22 @@ module Google
216
216
  # @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::ResourcePoliciesScopedList>]
217
217
  #
218
218
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
219
+ #
220
+ # @example Basic example
221
+ # require "google/cloud/compute/v1"
222
+ #
223
+ # # Create a client object. The client can be reused for multiple calls.
224
+ # client = Google::Cloud::Compute::V1::ResourcePolicies::Rest::Client.new
225
+ #
226
+ # # Create a request. To set request fields, pass in keyword arguments.
227
+ # request = Google::Cloud::Compute::V1::AggregatedListResourcePoliciesRequest.new
228
+ #
229
+ # # Call the aggregated_list method.
230
+ # result = client.aggregated_list request
231
+ #
232
+ # # The returned object is of type Google::Cloud::Compute::V1::ResourcePolicyAggregatedList.
233
+ # p result
234
+ #
219
235
  def aggregated_list request, options = nil
220
236
  raise ::ArgumentError, "request must be provided" if request.nil?
221
237
 
@@ -285,6 +301,22 @@ module Google
285
301
  # @return [::Gapic::GenericLRO::Operation]
286
302
  #
287
303
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
304
+ #
305
+ # @example Basic example
306
+ # require "google/cloud/compute/v1"
307
+ #
308
+ # # Create a client object. The client can be reused for multiple calls.
309
+ # client = Google::Cloud::Compute::V1::ResourcePolicies::Rest::Client.new
310
+ #
311
+ # # Create a request. To set request fields, pass in keyword arguments.
312
+ # request = Google::Cloud::Compute::V1::DeleteResourcePolicyRequest.new
313
+ #
314
+ # # Call the delete method.
315
+ # result = client.delete request
316
+ #
317
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
318
+ # p result
319
+ #
288
320
  def delete request, options = nil
289
321
  raise ::ArgumentError, "request must be provided" if request.nil?
290
322
 
@@ -360,6 +392,22 @@ module Google
360
392
  # @return [::Google::Cloud::Compute::V1::ResourcePolicy]
361
393
  #
362
394
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
395
+ #
396
+ # @example Basic example
397
+ # require "google/cloud/compute/v1"
398
+ #
399
+ # # Create a client object. The client can be reused for multiple calls.
400
+ # client = Google::Cloud::Compute::V1::ResourcePolicies::Rest::Client.new
401
+ #
402
+ # # Create a request. To set request fields, pass in keyword arguments.
403
+ # request = Google::Cloud::Compute::V1::GetResourcePolicyRequest.new
404
+ #
405
+ # # Call the get method.
406
+ # result = client.get request
407
+ #
408
+ # # The returned object is of type Google::Cloud::Compute::V1::ResourcePolicy.
409
+ # p result
410
+ #
363
411
  def get request, options = nil
364
412
  raise ::ArgumentError, "request must be provided" if request.nil?
365
413
 
@@ -428,6 +476,22 @@ module Google
428
476
  # @return [::Google::Cloud::Compute::V1::Policy]
429
477
  #
430
478
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
479
+ #
480
+ # @example Basic example
481
+ # require "google/cloud/compute/v1"
482
+ #
483
+ # # Create a client object. The client can be reused for multiple calls.
484
+ # client = Google::Cloud::Compute::V1::ResourcePolicies::Rest::Client.new
485
+ #
486
+ # # Create a request. To set request fields, pass in keyword arguments.
487
+ # request = Google::Cloud::Compute::V1::GetIamPolicyResourcePolicyRequest.new
488
+ #
489
+ # # Call the get_iam_policy method.
490
+ # result = client.get_iam_policy request
491
+ #
492
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
493
+ # p result
494
+ #
431
495
  def get_iam_policy request, options = nil
432
496
  raise ::ArgumentError, "request must be provided" if request.nil?
433
497
 
@@ -496,6 +560,22 @@ module Google
496
560
  # @return [::Gapic::GenericLRO::Operation]
497
561
  #
498
562
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
563
+ #
564
+ # @example Basic example
565
+ # require "google/cloud/compute/v1"
566
+ #
567
+ # # Create a client object. The client can be reused for multiple calls.
568
+ # client = Google::Cloud::Compute::V1::ResourcePolicies::Rest::Client.new
569
+ #
570
+ # # Create a request. To set request fields, pass in keyword arguments.
571
+ # request = Google::Cloud::Compute::V1::InsertResourcePolicyRequest.new
572
+ #
573
+ # # Call the insert method.
574
+ # result = client.insert request
575
+ #
576
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
577
+ # p result
578
+ #
499
579
  def insert request, options = nil
500
580
  raise ::ArgumentError, "request must be provided" if request.nil?
501
581
 
@@ -579,6 +659,22 @@ module Google
579
659
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::ResourcePolicy>]
580
660
  #
581
661
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
662
+ #
663
+ # @example Basic example
664
+ # require "google/cloud/compute/v1"
665
+ #
666
+ # # Create a client object. The client can be reused for multiple calls.
667
+ # client = Google::Cloud::Compute::V1::ResourcePolicies::Rest::Client.new
668
+ #
669
+ # # Create a request. To set request fields, pass in keyword arguments.
670
+ # request = Google::Cloud::Compute::V1::ListResourcePoliciesRequest.new
671
+ #
672
+ # # Call the list method.
673
+ # result = client.list request
674
+ #
675
+ # # The returned object is of type Google::Cloud::Compute::V1::ResourcePolicyList.
676
+ # p result
677
+ #
582
678
  def list request, options = nil
583
679
  raise ::ArgumentError, "request must be provided" if request.nil?
584
680
 
@@ -652,6 +748,22 @@ module Google
652
748
  # @return [::Gapic::GenericLRO::Operation]
653
749
  #
654
750
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
751
+ #
752
+ # @example Basic example
753
+ # require "google/cloud/compute/v1"
754
+ #
755
+ # # Create a client object. The client can be reused for multiple calls.
756
+ # client = Google::Cloud::Compute::V1::ResourcePolicies::Rest::Client.new
757
+ #
758
+ # # Create a request. To set request fields, pass in keyword arguments.
759
+ # request = Google::Cloud::Compute::V1::PatchResourcePolicyRequest.new
760
+ #
761
+ # # Call the patch method.
762
+ # result = client.patch request
763
+ #
764
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
765
+ # p result
766
+ #
655
767
  def patch request, options = nil
656
768
  raise ::ArgumentError, "request must be provided" if request.nil?
657
769
 
@@ -729,6 +841,22 @@ module Google
729
841
  # @return [::Google::Cloud::Compute::V1::Policy]
730
842
  #
731
843
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
844
+ #
845
+ # @example Basic example
846
+ # require "google/cloud/compute/v1"
847
+ #
848
+ # # Create a client object. The client can be reused for multiple calls.
849
+ # client = Google::Cloud::Compute::V1::ResourcePolicies::Rest::Client.new
850
+ #
851
+ # # Create a request. To set request fields, pass in keyword arguments.
852
+ # request = Google::Cloud::Compute::V1::SetIamPolicyResourcePolicyRequest.new
853
+ #
854
+ # # Call the set_iam_policy method.
855
+ # result = client.set_iam_policy request
856
+ #
857
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
858
+ # p result
859
+ #
732
860
  def set_iam_policy request, options = nil
733
861
  raise ::ArgumentError, "request must be provided" if request.nil?
734
862
 
@@ -797,6 +925,22 @@ module Google
797
925
  # @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
798
926
  #
799
927
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
928
+ #
929
+ # @example Basic example
930
+ # require "google/cloud/compute/v1"
931
+ #
932
+ # # Create a client object. The client can be reused for multiple calls.
933
+ # client = Google::Cloud::Compute::V1::ResourcePolicies::Rest::Client.new
934
+ #
935
+ # # Create a request. To set request fields, pass in keyword arguments.
936
+ # request = Google::Cloud::Compute::V1::TestIamPermissionsResourcePolicyRequest.new
937
+ #
938
+ # # Call the test_iam_permissions method.
939
+ # result = client.test_iam_permissions request
940
+ #
941
+ # # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
942
+ # p result
943
+ #
800
944
  def test_iam_permissions request, options = nil
801
945
  raise ::ArgumentError, "request must be provided" if request.nil?
802
946
 
@@ -221,6 +221,22 @@ module Google
221
221
  # @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::RoutersScopedList>]
222
222
  #
223
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/cloud/compute/v1"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Cloud::Compute::V1::Routers::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Cloud::Compute::V1::AggregatedListRoutersRequest.new
233
+ #
234
+ # # Call the aggregated_list method.
235
+ # result = client.aggregated_list request
236
+ #
237
+ # # The returned object is of type Google::Cloud::Compute::V1::RouterAggregatedList.
238
+ # p result
239
+ #
224
240
  def aggregated_list request, options = nil
225
241
  raise ::ArgumentError, "request must be provided" if request.nil?
226
242
 
@@ -290,6 +306,22 @@ module Google
290
306
  # @return [::Gapic::GenericLRO::Operation]
291
307
  #
292
308
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
309
+ #
310
+ # @example Basic example
311
+ # require "google/cloud/compute/v1"
312
+ #
313
+ # # Create a client object. The client can be reused for multiple calls.
314
+ # client = Google::Cloud::Compute::V1::Routers::Rest::Client.new
315
+ #
316
+ # # Create a request. To set request fields, pass in keyword arguments.
317
+ # request = Google::Cloud::Compute::V1::DeleteRouterRequest.new
318
+ #
319
+ # # Call the delete method.
320
+ # result = client.delete request
321
+ #
322
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
323
+ # p result
324
+ #
293
325
  def delete request, options = nil
294
326
  raise ::ArgumentError, "request must be provided" if request.nil?
295
327
 
@@ -365,6 +397,22 @@ module Google
365
397
  # @return [::Google::Cloud::Compute::V1::Router]
366
398
  #
367
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/cloud/compute/v1"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Cloud::Compute::V1::Routers::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Cloud::Compute::V1::GetRouterRequest.new
409
+ #
410
+ # # Call the get method.
411
+ # result = client.get request
412
+ #
413
+ # # The returned object is of type Google::Cloud::Compute::V1::Router.
414
+ # p result
415
+ #
368
416
  def get request, options = nil
369
417
  raise ::ArgumentError, "request must be provided" if request.nil?
370
418
 
@@ -443,6 +491,22 @@ module Google
443
491
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::VmEndpointNatMappings>]
444
492
  #
445
493
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
494
+ #
495
+ # @example Basic example
496
+ # require "google/cloud/compute/v1"
497
+ #
498
+ # # Create a client object. The client can be reused for multiple calls.
499
+ # client = Google::Cloud::Compute::V1::Routers::Rest::Client.new
500
+ #
501
+ # # Create a request. To set request fields, pass in keyword arguments.
502
+ # request = Google::Cloud::Compute::V1::GetNatMappingInfoRoutersRequest.new
503
+ #
504
+ # # Call the get_nat_mapping_info method.
505
+ # result = client.get_nat_mapping_info request
506
+ #
507
+ # # The returned object is of type Google::Cloud::Compute::V1::VmEndpointNatMappingsList.
508
+ # p result
509
+ #
446
510
  def get_nat_mapping_info request, options = nil
447
511
  raise ::ArgumentError, "request must be provided" if request.nil?
448
512
 
@@ -510,6 +574,22 @@ module Google
510
574
  # @return [::Google::Cloud::Compute::V1::RouterStatusResponse]
511
575
  #
512
576
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
577
+ #
578
+ # @example Basic example
579
+ # require "google/cloud/compute/v1"
580
+ #
581
+ # # Create a client object. The client can be reused for multiple calls.
582
+ # client = Google::Cloud::Compute::V1::Routers::Rest::Client.new
583
+ #
584
+ # # Create a request. To set request fields, pass in keyword arguments.
585
+ # request = Google::Cloud::Compute::V1::GetRouterStatusRouterRequest.new
586
+ #
587
+ # # Call the get_router_status method.
588
+ # result = client.get_router_status request
589
+ #
590
+ # # The returned object is of type Google::Cloud::Compute::V1::RouterStatusResponse.
591
+ # p result
592
+ #
513
593
  def get_router_status request, options = nil
514
594
  raise ::ArgumentError, "request must be provided" if request.nil?
515
595
 
@@ -578,6 +658,22 @@ module Google
578
658
  # @return [::Gapic::GenericLRO::Operation]
579
659
  #
580
660
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
661
+ #
662
+ # @example Basic example
663
+ # require "google/cloud/compute/v1"
664
+ #
665
+ # # Create a client object. The client can be reused for multiple calls.
666
+ # client = Google::Cloud::Compute::V1::Routers::Rest::Client.new
667
+ #
668
+ # # Create a request. To set request fields, pass in keyword arguments.
669
+ # request = Google::Cloud::Compute::V1::InsertRouterRequest.new
670
+ #
671
+ # # Call the insert method.
672
+ # result = client.insert request
673
+ #
674
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
675
+ # p result
676
+ #
581
677
  def insert request, options = nil
582
678
  raise ::ArgumentError, "request must be provided" if request.nil?
583
679
 
@@ -661,6 +757,22 @@ module Google
661
757
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Router>]
662
758
  #
663
759
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
760
+ #
761
+ # @example Basic example
762
+ # require "google/cloud/compute/v1"
763
+ #
764
+ # # Create a client object. The client can be reused for multiple calls.
765
+ # client = Google::Cloud::Compute::V1::Routers::Rest::Client.new
766
+ #
767
+ # # Create a request. To set request fields, pass in keyword arguments.
768
+ # request = Google::Cloud::Compute::V1::ListRoutersRequest.new
769
+ #
770
+ # # Call the list method.
771
+ # result = client.list request
772
+ #
773
+ # # The returned object is of type Google::Cloud::Compute::V1::RouterList.
774
+ # p result
775
+ #
664
776
  def list request, options = nil
665
777
  raise ::ArgumentError, "request must be provided" if request.nil?
666
778
 
@@ -732,6 +844,22 @@ module Google
732
844
  # @return [::Gapic::GenericLRO::Operation]
733
845
  #
734
846
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
847
+ #
848
+ # @example Basic example
849
+ # require "google/cloud/compute/v1"
850
+ #
851
+ # # Create a client object. The client can be reused for multiple calls.
852
+ # client = Google::Cloud::Compute::V1::Routers::Rest::Client.new
853
+ #
854
+ # # Create a request. To set request fields, pass in keyword arguments.
855
+ # request = Google::Cloud::Compute::V1::PatchRouterRequest.new
856
+ #
857
+ # # Call the patch method.
858
+ # result = client.patch request
859
+ #
860
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
861
+ # p result
862
+ #
735
863
  def patch request, options = nil
736
864
  raise ::ArgumentError, "request must be provided" if request.nil?
737
865
 
@@ -809,6 +937,22 @@ module Google
809
937
  # @return [::Google::Cloud::Compute::V1::RoutersPreviewResponse]
810
938
  #
811
939
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
940
+ #
941
+ # @example Basic example
942
+ # require "google/cloud/compute/v1"
943
+ #
944
+ # # Create a client object. The client can be reused for multiple calls.
945
+ # client = Google::Cloud::Compute::V1::Routers::Rest::Client.new
946
+ #
947
+ # # Create a request. To set request fields, pass in keyword arguments.
948
+ # request = Google::Cloud::Compute::V1::PreviewRouterRequest.new
949
+ #
950
+ # # Call the preview method.
951
+ # result = client.preview request
952
+ #
953
+ # # The returned object is of type Google::Cloud::Compute::V1::RoutersPreviewResponse.
954
+ # p result
955
+ #
812
956
  def preview request, options = nil
813
957
  raise ::ArgumentError, "request must be provided" if request.nil?
814
958
 
@@ -879,6 +1023,22 @@ module Google
879
1023
  # @return [::Gapic::GenericLRO::Operation]
880
1024
  #
881
1025
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1026
+ #
1027
+ # @example Basic example
1028
+ # require "google/cloud/compute/v1"
1029
+ #
1030
+ # # Create a client object. The client can be reused for multiple calls.
1031
+ # client = Google::Cloud::Compute::V1::Routers::Rest::Client.new
1032
+ #
1033
+ # # Create a request. To set request fields, pass in keyword arguments.
1034
+ # request = Google::Cloud::Compute::V1::UpdateRouterRequest.new
1035
+ #
1036
+ # # Call the update method.
1037
+ # result = client.update request
1038
+ #
1039
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1040
+ # p result
1041
+ #
882
1042
  def update request, options = nil
883
1043
  raise ::ArgumentError, "request must be provided" if request.nil?
884
1044
 
@@ -192,6 +192,22 @@ module Google
192
192
  # @return [::Gapic::GenericLRO::Operation]
193
193
  #
194
194
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
195
+ #
196
+ # @example Basic example
197
+ # require "google/cloud/compute/v1"
198
+ #
199
+ # # Create a client object. The client can be reused for multiple calls.
200
+ # client = Google::Cloud::Compute::V1::Routes::Rest::Client.new
201
+ #
202
+ # # Create a request. To set request fields, pass in keyword arguments.
203
+ # request = Google::Cloud::Compute::V1::DeleteRouteRequest.new
204
+ #
205
+ # # Call the delete method.
206
+ # result = client.delete request
207
+ #
208
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
209
+ # p result
210
+ #
195
211
  def delete request, options = nil
196
212
  raise ::ArgumentError, "request must be provided" if request.nil?
197
213
 
@@ -264,6 +280,22 @@ module Google
264
280
  # @return [::Google::Cloud::Compute::V1::Route]
265
281
  #
266
282
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
283
+ #
284
+ # @example Basic example
285
+ # require "google/cloud/compute/v1"
286
+ #
287
+ # # Create a client object. The client can be reused for multiple calls.
288
+ # client = Google::Cloud::Compute::V1::Routes::Rest::Client.new
289
+ #
290
+ # # Create a request. To set request fields, pass in keyword arguments.
291
+ # request = Google::Cloud::Compute::V1::GetRouteRequest.new
292
+ #
293
+ # # Call the get method.
294
+ # result = client.get request
295
+ #
296
+ # # The returned object is of type Google::Cloud::Compute::V1::Route.
297
+ # p result
298
+ #
267
299
  def get request, options = nil
268
300
  raise ::ArgumentError, "request must be provided" if request.nil?
269
301
 
@@ -330,6 +362,22 @@ module Google
330
362
  # @return [::Gapic::GenericLRO::Operation]
331
363
  #
332
364
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
365
+ #
366
+ # @example Basic example
367
+ # require "google/cloud/compute/v1"
368
+ #
369
+ # # Create a client object. The client can be reused for multiple calls.
370
+ # client = Google::Cloud::Compute::V1::Routes::Rest::Client.new
371
+ #
372
+ # # Create a request. To set request fields, pass in keyword arguments.
373
+ # request = Google::Cloud::Compute::V1::InsertRouteRequest.new
374
+ #
375
+ # # Call the insert method.
376
+ # result = client.insert request
377
+ #
378
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
379
+ # p result
380
+ #
333
381
  def insert request, options = nil
334
382
  raise ::ArgumentError, "request must be provided" if request.nil?
335
383
 
@@ -410,6 +458,22 @@ module Google
410
458
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Route>]
411
459
  #
412
460
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
461
+ #
462
+ # @example Basic example
463
+ # require "google/cloud/compute/v1"
464
+ #
465
+ # # Create a client object. The client can be reused for multiple calls.
466
+ # client = Google::Cloud::Compute::V1::Routes::Rest::Client.new
467
+ #
468
+ # # Create a request. To set request fields, pass in keyword arguments.
469
+ # request = Google::Cloud::Compute::V1::ListRoutesRequest.new
470
+ #
471
+ # # Call the list method.
472
+ # result = client.list request
473
+ #
474
+ # # The returned object is of type Google::Cloud::Compute::V1::RouteList.
475
+ # p result
476
+ #
413
477
  def list request, options = nil
414
478
  raise ::ArgumentError, "request must be provided" if request.nil?
415
479