google-cloud-compute-v1 2.4.0 → 2.5.0

Sign up to get free protection for your applications and to get access to all the features.
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
@@ -230,6 +230,22 @@ module Google
230
230
  # @return [::Gapic::GenericLRO::Operation]
231
231
  #
232
232
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
233
+ #
234
+ # @example Basic example
235
+ # require "google/cloud/compute/v1"
236
+ #
237
+ # # Create a client object. The client can be reused for multiple calls.
238
+ # client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
239
+ #
240
+ # # Create a request. To set request fields, pass in keyword arguments.
241
+ # request = Google::Cloud::Compute::V1::AddResourcePoliciesDiskRequest.new
242
+ #
243
+ # # Call the add_resource_policies method.
244
+ # result = client.add_resource_policies request
245
+ #
246
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
247
+ # p result
248
+ #
233
249
  def add_resource_policies request, options = nil
234
250
  raise ::ArgumentError, "request must be provided" if request.nil?
235
251
 
@@ -313,6 +329,22 @@ module Google
313
329
  # @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::DisksScopedList>]
314
330
  #
315
331
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
332
+ #
333
+ # @example Basic example
334
+ # require "google/cloud/compute/v1"
335
+ #
336
+ # # Create a client object. The client can be reused for multiple calls.
337
+ # client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
338
+ #
339
+ # # Create a request. To set request fields, pass in keyword arguments.
340
+ # request = Google::Cloud::Compute::V1::AggregatedListDisksRequest.new
341
+ #
342
+ # # Call the aggregated_list method.
343
+ # result = client.aggregated_list request
344
+ #
345
+ # # The returned object is of type Google::Cloud::Compute::V1::DiskAggregatedList.
346
+ # p result
347
+ #
316
348
  def aggregated_list request, options = nil
317
349
  raise ::ArgumentError, "request must be provided" if request.nil?
318
350
 
@@ -382,6 +414,22 @@ module Google
382
414
  # @return [::Gapic::GenericLRO::Operation]
383
415
  #
384
416
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
417
+ #
418
+ # @example Basic example
419
+ # require "google/cloud/compute/v1"
420
+ #
421
+ # # Create a client object. The client can be reused for multiple calls.
422
+ # client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
423
+ #
424
+ # # Create a request. To set request fields, pass in keyword arguments.
425
+ # request = Google::Cloud::Compute::V1::BulkInsertDiskRequest.new
426
+ #
427
+ # # Call the bulk_insert method.
428
+ # result = client.bulk_insert request
429
+ #
430
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
431
+ # p result
432
+ #
385
433
  def bulk_insert request, options = nil
386
434
  raise ::ArgumentError, "request must be provided" if request.nil?
387
435
 
@@ -463,6 +511,22 @@ module Google
463
511
  # @return [::Gapic::GenericLRO::Operation]
464
512
  #
465
513
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
514
+ #
515
+ # @example Basic example
516
+ # require "google/cloud/compute/v1"
517
+ #
518
+ # # Create a client object. The client can be reused for multiple calls.
519
+ # client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
520
+ #
521
+ # # Create a request. To set request fields, pass in keyword arguments.
522
+ # request = Google::Cloud::Compute::V1::CreateSnapshotDiskRequest.new
523
+ #
524
+ # # Call the create_snapshot method.
525
+ # result = client.create_snapshot request
526
+ #
527
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
528
+ # p result
529
+ #
466
530
  def create_snapshot request, options = nil
467
531
  raise ::ArgumentError, "request must be provided" if request.nil?
468
532
 
@@ -540,6 +604,22 @@ module Google
540
604
  # @return [::Gapic::GenericLRO::Operation]
541
605
  #
542
606
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
607
+ #
608
+ # @example Basic example
609
+ # require "google/cloud/compute/v1"
610
+ #
611
+ # # Create a client object. The client can be reused for multiple calls.
612
+ # client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
613
+ #
614
+ # # Create a request. To set request fields, pass in keyword arguments.
615
+ # request = Google::Cloud::Compute::V1::DeleteDiskRequest.new
616
+ #
617
+ # # Call the delete method.
618
+ # result = client.delete request
619
+ #
620
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
621
+ # p result
622
+ #
543
623
  def delete request, options = nil
544
624
  raise ::ArgumentError, "request must be provided" if request.nil?
545
625
 
@@ -615,6 +695,22 @@ module Google
615
695
  # @return [::Google::Cloud::Compute::V1::Disk]
616
696
  #
617
697
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
698
+ #
699
+ # @example Basic example
700
+ # require "google/cloud/compute/v1"
701
+ #
702
+ # # Create a client object. The client can be reused for multiple calls.
703
+ # client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
704
+ #
705
+ # # Create a request. To set request fields, pass in keyword arguments.
706
+ # request = Google::Cloud::Compute::V1::GetDiskRequest.new
707
+ #
708
+ # # Call the get method.
709
+ # result = client.get request
710
+ #
711
+ # # The returned object is of type Google::Cloud::Compute::V1::Disk.
712
+ # p result
713
+ #
618
714
  def get request, options = nil
619
715
  raise ::ArgumentError, "request must be provided" if request.nil?
620
716
 
@@ -683,6 +779,22 @@ module Google
683
779
  # @return [::Google::Cloud::Compute::V1::Policy]
684
780
  #
685
781
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
782
+ #
783
+ # @example Basic example
784
+ # require "google/cloud/compute/v1"
785
+ #
786
+ # # Create a client object. The client can be reused for multiple calls.
787
+ # client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
788
+ #
789
+ # # Create a request. To set request fields, pass in keyword arguments.
790
+ # request = Google::Cloud::Compute::V1::GetIamPolicyDiskRequest.new
791
+ #
792
+ # # Call the get_iam_policy method.
793
+ # result = client.get_iam_policy request
794
+ #
795
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
796
+ # p result
797
+ #
686
798
  def get_iam_policy request, options = nil
687
799
  raise ::ArgumentError, "request must be provided" if request.nil?
688
800
 
@@ -753,6 +865,22 @@ module Google
753
865
  # @return [::Gapic::GenericLRO::Operation]
754
866
  #
755
867
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
868
+ #
869
+ # @example Basic example
870
+ # require "google/cloud/compute/v1"
871
+ #
872
+ # # Create a client object. The client can be reused for multiple calls.
873
+ # client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
874
+ #
875
+ # # Create a request. To set request fields, pass in keyword arguments.
876
+ # request = Google::Cloud::Compute::V1::InsertDiskRequest.new
877
+ #
878
+ # # Call the insert method.
879
+ # result = client.insert request
880
+ #
881
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
882
+ # p result
883
+ #
756
884
  def insert request, options = nil
757
885
  raise ::ArgumentError, "request must be provided" if request.nil?
758
886
 
@@ -836,6 +964,22 @@ module Google
836
964
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Disk>]
837
965
  #
838
966
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
967
+ #
968
+ # @example Basic example
969
+ # require "google/cloud/compute/v1"
970
+ #
971
+ # # Create a client object. The client can be reused for multiple calls.
972
+ # client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
973
+ #
974
+ # # Create a request. To set request fields, pass in keyword arguments.
975
+ # request = Google::Cloud::Compute::V1::ListDisksRequest.new
976
+ #
977
+ # # Call the list method.
978
+ # result = client.list request
979
+ #
980
+ # # The returned object is of type Google::Cloud::Compute::V1::DiskList.
981
+ # p result
982
+ #
839
983
  def list request, options = nil
840
984
  raise ::ArgumentError, "request must be provided" if request.nil?
841
985
 
@@ -907,6 +1051,22 @@ module Google
907
1051
  # @return [::Gapic::GenericLRO::Operation]
908
1052
  #
909
1053
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1054
+ #
1055
+ # @example Basic example
1056
+ # require "google/cloud/compute/v1"
1057
+ #
1058
+ # # Create a client object. The client can be reused for multiple calls.
1059
+ # client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
1060
+ #
1061
+ # # Create a request. To set request fields, pass in keyword arguments.
1062
+ # request = Google::Cloud::Compute::V1::RemoveResourcePoliciesDiskRequest.new
1063
+ #
1064
+ # # Call the remove_resource_policies method.
1065
+ # result = client.remove_resource_policies request
1066
+ #
1067
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1068
+ # p result
1069
+ #
910
1070
  def remove_resource_policies request, options = nil
911
1071
  raise ::ArgumentError, "request must be provided" if request.nil?
912
1072
 
@@ -986,6 +1146,22 @@ module Google
986
1146
  # @return [::Gapic::GenericLRO::Operation]
987
1147
  #
988
1148
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1149
+ #
1150
+ # @example Basic example
1151
+ # require "google/cloud/compute/v1"
1152
+ #
1153
+ # # Create a client object. The client can be reused for multiple calls.
1154
+ # client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
1155
+ #
1156
+ # # Create a request. To set request fields, pass in keyword arguments.
1157
+ # request = Google::Cloud::Compute::V1::ResizeDiskRequest.new
1158
+ #
1159
+ # # Call the resize method.
1160
+ # result = client.resize request
1161
+ #
1162
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1163
+ # p result
1164
+ #
989
1165
  def resize request, options = nil
990
1166
  raise ::ArgumentError, "request must be provided" if request.nil?
991
1167
 
@@ -1063,6 +1239,22 @@ module Google
1063
1239
  # @return [::Google::Cloud::Compute::V1::Policy]
1064
1240
  #
1065
1241
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1242
+ #
1243
+ # @example Basic example
1244
+ # require "google/cloud/compute/v1"
1245
+ #
1246
+ # # Create a client object. The client can be reused for multiple calls.
1247
+ # client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
1248
+ #
1249
+ # # Create a request. To set request fields, pass in keyword arguments.
1250
+ # request = Google::Cloud::Compute::V1::SetIamPolicyDiskRequest.new
1251
+ #
1252
+ # # Call the set_iam_policy method.
1253
+ # result = client.set_iam_policy request
1254
+ #
1255
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
1256
+ # p result
1257
+ #
1066
1258
  def set_iam_policy request, options = nil
1067
1259
  raise ::ArgumentError, "request must be provided" if request.nil?
1068
1260
 
@@ -1133,6 +1325,22 @@ module Google
1133
1325
  # @return [::Gapic::GenericLRO::Operation]
1134
1326
  #
1135
1327
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1328
+ #
1329
+ # @example Basic example
1330
+ # require "google/cloud/compute/v1"
1331
+ #
1332
+ # # Create a client object. The client can be reused for multiple calls.
1333
+ # client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
1334
+ #
1335
+ # # Create a request. To set request fields, pass in keyword arguments.
1336
+ # request = Google::Cloud::Compute::V1::SetLabelsDiskRequest.new
1337
+ #
1338
+ # # Call the set_labels method.
1339
+ # result = client.set_labels request
1340
+ #
1341
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1342
+ # p result
1343
+ #
1136
1344
  def set_labels request, options = nil
1137
1345
  raise ::ArgumentError, "request must be provided" if request.nil?
1138
1346
 
@@ -1212,6 +1420,22 @@ module Google
1212
1420
  # @return [::Gapic::GenericLRO::Operation]
1213
1421
  #
1214
1422
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1423
+ #
1424
+ # @example Basic example
1425
+ # require "google/cloud/compute/v1"
1426
+ #
1427
+ # # Create a client object. The client can be reused for multiple calls.
1428
+ # client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
1429
+ #
1430
+ # # Create a request. To set request fields, pass in keyword arguments.
1431
+ # request = Google::Cloud::Compute::V1::StartAsyncReplicationDiskRequest.new
1432
+ #
1433
+ # # Call the start_async_replication method.
1434
+ # result = client.start_async_replication request
1435
+ #
1436
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1437
+ # p result
1438
+ #
1215
1439
  def start_async_replication request, options = nil
1216
1440
  raise ::ArgumentError, "request must be provided" if request.nil?
1217
1441
 
@@ -1289,6 +1513,22 @@ module Google
1289
1513
  # @return [::Gapic::GenericLRO::Operation]
1290
1514
  #
1291
1515
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1516
+ #
1517
+ # @example Basic example
1518
+ # require "google/cloud/compute/v1"
1519
+ #
1520
+ # # Create a client object. The client can be reused for multiple calls.
1521
+ # client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
1522
+ #
1523
+ # # Create a request. To set request fields, pass in keyword arguments.
1524
+ # request = Google::Cloud::Compute::V1::StopAsyncReplicationDiskRequest.new
1525
+ #
1526
+ # # Call the stop_async_replication method.
1527
+ # result = client.stop_async_replication request
1528
+ #
1529
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1530
+ # p result
1531
+ #
1292
1532
  def stop_async_replication request, options = nil
1293
1533
  raise ::ArgumentError, "request must be provided" if request.nil?
1294
1534
 
@@ -1366,6 +1606,22 @@ module Google
1366
1606
  # @return [::Gapic::GenericLRO::Operation]
1367
1607
  #
1368
1608
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1609
+ #
1610
+ # @example Basic example
1611
+ # require "google/cloud/compute/v1"
1612
+ #
1613
+ # # Create a client object. The client can be reused for multiple calls.
1614
+ # client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
1615
+ #
1616
+ # # Create a request. To set request fields, pass in keyword arguments.
1617
+ # request = Google::Cloud::Compute::V1::StopGroupAsyncReplicationDiskRequest.new
1618
+ #
1619
+ # # Call the stop_group_async_replication method.
1620
+ # result = client.stop_group_async_replication request
1621
+ #
1622
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1623
+ # p result
1624
+ #
1369
1625
  def stop_group_async_replication request, options = nil
1370
1626
  raise ::ArgumentError, "request must be provided" if request.nil?
1371
1627
 
@@ -1443,6 +1699,22 @@ module Google
1443
1699
  # @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
1444
1700
  #
1445
1701
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1702
+ #
1703
+ # @example Basic example
1704
+ # require "google/cloud/compute/v1"
1705
+ #
1706
+ # # Create a client object. The client can be reused for multiple calls.
1707
+ # client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
1708
+ #
1709
+ # # Create a request. To set request fields, pass in keyword arguments.
1710
+ # request = Google::Cloud::Compute::V1::TestIamPermissionsDiskRequest.new
1711
+ #
1712
+ # # Call the test_iam_permissions method.
1713
+ # result = client.test_iam_permissions request
1714
+ #
1715
+ # # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
1716
+ # p result
1717
+ #
1446
1718
  def test_iam_permissions request, options = nil
1447
1719
  raise ::ArgumentError, "request must be provided" if request.nil?
1448
1720
 
@@ -1516,6 +1788,22 @@ module Google
1516
1788
  # @return [::Gapic::GenericLRO::Operation]
1517
1789
  #
1518
1790
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1791
+ #
1792
+ # @example Basic example
1793
+ # require "google/cloud/compute/v1"
1794
+ #
1795
+ # # Create a client object. The client can be reused for multiple calls.
1796
+ # client = Google::Cloud::Compute::V1::Disks::Rest::Client.new
1797
+ #
1798
+ # # Create a request. To set request fields, pass in keyword arguments.
1799
+ # request = Google::Cloud::Compute::V1::UpdateDiskRequest.new
1800
+ #
1801
+ # # Call the update method.
1802
+ # result = client.update request
1803
+ #
1804
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1805
+ # p result
1806
+ #
1519
1807
  def update request, options = nil
1520
1808
  raise ::ArgumentError, "request must be provided" if request.nil?
1521
1809
 
@@ -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::ExternalVpnGateways::Rest::Client.new
205
+ #
206
+ # # Create a request. To set request fields, pass in keyword arguments.
207
+ # request = Google::Cloud::Compute::V1::DeleteExternalVpnGatewayRequest.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
 
@@ -268,6 +284,22 @@ module Google
268
284
  # @return [::Google::Cloud::Compute::V1::ExternalVpnGateway]
269
285
  #
270
286
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
287
+ #
288
+ # @example Basic example
289
+ # require "google/cloud/compute/v1"
290
+ #
291
+ # # Create a client object. The client can be reused for multiple calls.
292
+ # client = Google::Cloud::Compute::V1::ExternalVpnGateways::Rest::Client.new
293
+ #
294
+ # # Create a request. To set request fields, pass in keyword arguments.
295
+ # request = Google::Cloud::Compute::V1::GetExternalVpnGatewayRequest.new
296
+ #
297
+ # # Call the get method.
298
+ # result = client.get request
299
+ #
300
+ # # The returned object is of type Google::Cloud::Compute::V1::ExternalVpnGateway.
301
+ # p result
302
+ #
271
303
  def get request, options = nil
272
304
  raise ::ArgumentError, "request must be provided" if request.nil?
273
305
 
@@ -334,6 +366,22 @@ module Google
334
366
  # @return [::Gapic::GenericLRO::Operation]
335
367
  #
336
368
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
369
+ #
370
+ # @example Basic example
371
+ # require "google/cloud/compute/v1"
372
+ #
373
+ # # Create a client object. The client can be reused for multiple calls.
374
+ # client = Google::Cloud::Compute::V1::ExternalVpnGateways::Rest::Client.new
375
+ #
376
+ # # Create a request. To set request fields, pass in keyword arguments.
377
+ # request = Google::Cloud::Compute::V1::InsertExternalVpnGatewayRequest.new
378
+ #
379
+ # # Call the insert method.
380
+ # result = client.insert request
381
+ #
382
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
383
+ # p result
384
+ #
337
385
  def insert request, options = nil
338
386
  raise ::ArgumentError, "request must be provided" if request.nil?
339
387
 
@@ -414,6 +462,22 @@ module Google
414
462
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::ExternalVpnGateway>]
415
463
  #
416
464
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
465
+ #
466
+ # @example Basic example
467
+ # require "google/cloud/compute/v1"
468
+ #
469
+ # # Create a client object. The client can be reused for multiple calls.
470
+ # client = Google::Cloud::Compute::V1::ExternalVpnGateways::Rest::Client.new
471
+ #
472
+ # # Create a request. To set request fields, pass in keyword arguments.
473
+ # request = Google::Cloud::Compute::V1::ListExternalVpnGatewaysRequest.new
474
+ #
475
+ # # Call the list method.
476
+ # result = client.list request
477
+ #
478
+ # # The returned object is of type Google::Cloud::Compute::V1::ExternalVpnGatewayList.
479
+ # p result
480
+ #
417
481
  def list request, options = nil
418
482
  raise ::ArgumentError, "request must be provided" if request.nil?
419
483
 
@@ -481,6 +545,22 @@ module Google
481
545
  # @return [::Gapic::GenericLRO::Operation]
482
546
  #
483
547
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
548
+ #
549
+ # @example Basic example
550
+ # require "google/cloud/compute/v1"
551
+ #
552
+ # # Create a client object. The client can be reused for multiple calls.
553
+ # client = Google::Cloud::Compute::V1::ExternalVpnGateways::Rest::Client.new
554
+ #
555
+ # # Create a request. To set request fields, pass in keyword arguments.
556
+ # request = Google::Cloud::Compute::V1::SetLabelsExternalVpnGatewayRequest.new
557
+ #
558
+ # # Call the set_labels method.
559
+ # result = client.set_labels request
560
+ #
561
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
562
+ # p result
563
+ #
484
564
  def set_labels request, options = nil
485
565
  raise ::ArgumentError, "request must be provided" if request.nil?
486
566
 
@@ -555,6 +635,22 @@ module Google
555
635
  # @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
556
636
  #
557
637
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
638
+ #
639
+ # @example Basic example
640
+ # require "google/cloud/compute/v1"
641
+ #
642
+ # # Create a client object. The client can be reused for multiple calls.
643
+ # client = Google::Cloud::Compute::V1::ExternalVpnGateways::Rest::Client.new
644
+ #
645
+ # # Create a request. To set request fields, pass in keyword arguments.
646
+ # request = Google::Cloud::Compute::V1::TestIamPermissionsExternalVpnGatewayRequest.new
647
+ #
648
+ # # Call the test_iam_permissions method.
649
+ # result = client.test_iam_permissions request
650
+ #
651
+ # # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
652
+ # p result
653
+ #
558
654
  def test_iam_permissions request, options = nil
559
655
  raise ::ArgumentError, "request must be provided" if request.nil?
560
656