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.
Files changed (97) 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/compute_pb.rb +3 -1
  8. data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +48 -0
  9. data/lib/google/cloud/compute/v1/disks/rest/client.rb +288 -0
  10. data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +96 -0
  11. data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +288 -0
  12. data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +96 -0
  13. data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +128 -0
  14. data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +96 -0
  15. data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +112 -0
  16. data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +112 -0
  17. data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +80 -0
  18. data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +48 -0
  19. data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +80 -0
  20. data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +112 -0
  21. data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +16 -0
  22. data/lib/google/cloud/compute/v1/images/rest/client.rb +176 -0
  23. data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +320 -0
  24. data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +144 -0
  25. data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +128 -0
  26. data/lib/google/cloud/compute/v1/instances/rest/client.rb +736 -0
  27. data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +112 -0
  28. data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +32 -0
  29. data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +32 -0
  30. data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +112 -0
  31. data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +32 -0
  32. data/lib/google/cloud/compute/v1/licenses/rest/client.rb +112 -0
  33. data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +112 -0
  34. data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +48 -0
  35. data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +128 -0
  36. data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +80 -0
  37. data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +144 -0
  38. data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +256 -0
  39. data/lib/google/cloud/compute/v1/networks/rest/client.rb +176 -0
  40. data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +224 -0
  41. data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +128 -0
  42. data/lib/google/cloud/compute/v1/node_types/rest/client.rb +48 -0
  43. data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +112 -0
  44. data/lib/google/cloud/compute/v1/projects/rest/client.rb +208 -0
  45. data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +80 -0
  46. data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +96 -0
  47. data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +96 -0
  48. data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +144 -0
  49. data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +80 -0
  50. data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +32 -0
  51. data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +272 -0
  52. data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +80 -0
  53. data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +96 -0
  54. data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +304 -0
  55. data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +64 -0
  56. data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +64 -0
  57. data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +16 -0
  58. data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +64 -0
  59. data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +272 -0
  60. data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +64 -0
  61. data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +64 -0
  62. data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +81 -1
  63. data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +64 -0
  64. data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +96 -0
  65. data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +80 -0
  66. data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +112 -0
  67. data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +64 -0
  68. data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +112 -0
  69. data/lib/google/cloud/compute/v1/regions/rest/client.rb +32 -0
  70. data/lib/google/cloud/compute/v1/reservations/rest/client.rb +160 -0
  71. data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +234 -0
  72. data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +62 -0
  73. data/lib/google/cloud/compute/v1/routers/rest/client.rb +160 -0
  74. data/lib/google/cloud/compute/v1/routes/rest/client.rb +64 -0
  75. data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +194 -2
  76. data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +144 -0
  77. data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +128 -0
  78. data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +80 -0
  79. data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +112 -0
  80. data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +192 -0
  81. data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +80 -0
  82. data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +112 -0
  83. data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +176 -0
  84. data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +80 -0
  85. data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +176 -0
  86. data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +144 -0
  87. data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +112 -0
  88. data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +96 -0
  89. data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +144 -0
  90. data/lib/google/cloud/compute/v1/version.rb +1 -1
  91. data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +128 -0
  92. data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +96 -0
  93. data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +64 -0
  94. data/lib/google/cloud/compute/v1/zones/rest/client.rb +32 -0
  95. data/proto_docs/google/api/field_behavior.rb +14 -0
  96. data/proto_docs/google/cloud/compute/v1/compute.rb +56 -4
  97. metadata +5 -5
@@ -225,6 +225,22 @@ module Google
225
225
  # @return [::Gapic::GenericLRO::Operation]
226
226
  #
227
227
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
228
+ #
229
+ # @example Basic example
230
+ # require "google/cloud/compute/v1"
231
+ #
232
+ # # Create a client object. The client can be reused for multiple calls.
233
+ # client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
234
+ #
235
+ # # Create a request. To set request fields, pass in keyword arguments.
236
+ # request = Google::Cloud::Compute::V1::AddResourcePoliciesRegionDiskRequest.new
237
+ #
238
+ # # Call the add_resource_policies method.
239
+ # result = client.add_resource_policies request
240
+ #
241
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
242
+ # p result
243
+ #
228
244
  def add_resource_policies request, options = nil
229
245
  raise ::ArgumentError, "request must be provided" if request.nil?
230
246
 
@@ -302,6 +318,22 @@ module Google
302
318
  # @return [::Gapic::GenericLRO::Operation]
303
319
  #
304
320
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
321
+ #
322
+ # @example Basic example
323
+ # require "google/cloud/compute/v1"
324
+ #
325
+ # # Create a client object. The client can be reused for multiple calls.
326
+ # client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
327
+ #
328
+ # # Create a request. To set request fields, pass in keyword arguments.
329
+ # request = Google::Cloud::Compute::V1::BulkInsertRegionDiskRequest.new
330
+ #
331
+ # # Call the bulk_insert method.
332
+ # result = client.bulk_insert request
333
+ #
334
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
335
+ # p result
336
+ #
305
337
  def bulk_insert request, options = nil
306
338
  raise ::ArgumentError, "request must be provided" if request.nil?
307
339
 
@@ -381,6 +413,22 @@ module Google
381
413
  # @return [::Gapic::GenericLRO::Operation]
382
414
  #
383
415
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
416
+ #
417
+ # @example Basic example
418
+ # require "google/cloud/compute/v1"
419
+ #
420
+ # # Create a client object. The client can be reused for multiple calls.
421
+ # client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
422
+ #
423
+ # # Create a request. To set request fields, pass in keyword arguments.
424
+ # request = Google::Cloud::Compute::V1::CreateSnapshotRegionDiskRequest.new
425
+ #
426
+ # # Call the create_snapshot method.
427
+ # result = client.create_snapshot request
428
+ #
429
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
430
+ # p result
431
+ #
384
432
  def create_snapshot request, options = nil
385
433
  raise ::ArgumentError, "request must be provided" if request.nil?
386
434
 
@@ -458,6 +506,22 @@ module Google
458
506
  # @return [::Gapic::GenericLRO::Operation]
459
507
  #
460
508
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
509
+ #
510
+ # @example Basic example
511
+ # require "google/cloud/compute/v1"
512
+ #
513
+ # # Create a client object. The client can be reused for multiple calls.
514
+ # client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
515
+ #
516
+ # # Create a request. To set request fields, pass in keyword arguments.
517
+ # request = Google::Cloud::Compute::V1::DeleteRegionDiskRequest.new
518
+ #
519
+ # # Call the delete method.
520
+ # result = client.delete request
521
+ #
522
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
523
+ # p result
524
+ #
461
525
  def delete request, options = nil
462
526
  raise ::ArgumentError, "request must be provided" if request.nil?
463
527
 
@@ -533,6 +597,22 @@ module Google
533
597
  # @return [::Google::Cloud::Compute::V1::Disk]
534
598
  #
535
599
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
600
+ #
601
+ # @example Basic example
602
+ # require "google/cloud/compute/v1"
603
+ #
604
+ # # Create a client object. The client can be reused for multiple calls.
605
+ # client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
606
+ #
607
+ # # Create a request. To set request fields, pass in keyword arguments.
608
+ # request = Google::Cloud::Compute::V1::GetRegionDiskRequest.new
609
+ #
610
+ # # Call the get method.
611
+ # result = client.get request
612
+ #
613
+ # # The returned object is of type Google::Cloud::Compute::V1::Disk.
614
+ # p result
615
+ #
536
616
  def get request, options = nil
537
617
  raise ::ArgumentError, "request must be provided" if request.nil?
538
618
 
@@ -601,6 +681,22 @@ module Google
601
681
  # @return [::Google::Cloud::Compute::V1::Policy]
602
682
  #
603
683
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
684
+ #
685
+ # @example Basic example
686
+ # require "google/cloud/compute/v1"
687
+ #
688
+ # # Create a client object. The client can be reused for multiple calls.
689
+ # client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
690
+ #
691
+ # # Create a request. To set request fields, pass in keyword arguments.
692
+ # request = Google::Cloud::Compute::V1::GetIamPolicyRegionDiskRequest.new
693
+ #
694
+ # # Call the get_iam_policy method.
695
+ # result = client.get_iam_policy request
696
+ #
697
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
698
+ # p result
699
+ #
604
700
  def get_iam_policy request, options = nil
605
701
  raise ::ArgumentError, "request must be provided" if request.nil?
606
702
 
@@ -671,6 +767,22 @@ module Google
671
767
  # @return [::Gapic::GenericLRO::Operation]
672
768
  #
673
769
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
770
+ #
771
+ # @example Basic example
772
+ # require "google/cloud/compute/v1"
773
+ #
774
+ # # Create a client object. The client can be reused for multiple calls.
775
+ # client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
776
+ #
777
+ # # Create a request. To set request fields, pass in keyword arguments.
778
+ # request = Google::Cloud::Compute::V1::InsertRegionDiskRequest.new
779
+ #
780
+ # # Call the insert method.
781
+ # result = client.insert request
782
+ #
783
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
784
+ # p result
785
+ #
674
786
  def insert request, options = nil
675
787
  raise ::ArgumentError, "request must be provided" if request.nil?
676
788
 
@@ -754,6 +866,22 @@ module Google
754
866
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Disk>]
755
867
  #
756
868
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
869
+ #
870
+ # @example Basic example
871
+ # require "google/cloud/compute/v1"
872
+ #
873
+ # # Create a client object. The client can be reused for multiple calls.
874
+ # client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
875
+ #
876
+ # # Create a request. To set request fields, pass in keyword arguments.
877
+ # request = Google::Cloud::Compute::V1::ListRegionDisksRequest.new
878
+ #
879
+ # # Call the list method.
880
+ # result = client.list request
881
+ #
882
+ # # The returned object is of type Google::Cloud::Compute::V1::DiskList.
883
+ # p result
884
+ #
757
885
  def list request, options = nil
758
886
  raise ::ArgumentError, "request must be provided" if request.nil?
759
887
 
@@ -825,6 +953,22 @@ module Google
825
953
  # @return [::Gapic::GenericLRO::Operation]
826
954
  #
827
955
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
956
+ #
957
+ # @example Basic example
958
+ # require "google/cloud/compute/v1"
959
+ #
960
+ # # Create a client object. The client can be reused for multiple calls.
961
+ # client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
962
+ #
963
+ # # Create a request. To set request fields, pass in keyword arguments.
964
+ # request = Google::Cloud::Compute::V1::RemoveResourcePoliciesRegionDiskRequest.new
965
+ #
966
+ # # Call the remove_resource_policies method.
967
+ # result = client.remove_resource_policies request
968
+ #
969
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
970
+ # p result
971
+ #
828
972
  def remove_resource_policies request, options = nil
829
973
  raise ::ArgumentError, "request must be provided" if request.nil?
830
974
 
@@ -904,6 +1048,22 @@ module Google
904
1048
  # @return [::Gapic::GenericLRO::Operation]
905
1049
  #
906
1050
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1051
+ #
1052
+ # @example Basic example
1053
+ # require "google/cloud/compute/v1"
1054
+ #
1055
+ # # Create a client object. The client can be reused for multiple calls.
1056
+ # client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
1057
+ #
1058
+ # # Create a request. To set request fields, pass in keyword arguments.
1059
+ # request = Google::Cloud::Compute::V1::ResizeRegionDiskRequest.new
1060
+ #
1061
+ # # Call the resize method.
1062
+ # result = client.resize request
1063
+ #
1064
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1065
+ # p result
1066
+ #
907
1067
  def resize request, options = nil
908
1068
  raise ::ArgumentError, "request must be provided" if request.nil?
909
1069
 
@@ -981,6 +1141,22 @@ module Google
981
1141
  # @return [::Google::Cloud::Compute::V1::Policy]
982
1142
  #
983
1143
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1144
+ #
1145
+ # @example Basic example
1146
+ # require "google/cloud/compute/v1"
1147
+ #
1148
+ # # Create a client object. The client can be reused for multiple calls.
1149
+ # client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
1150
+ #
1151
+ # # Create a request. To set request fields, pass in keyword arguments.
1152
+ # request = Google::Cloud::Compute::V1::SetIamPolicyRegionDiskRequest.new
1153
+ #
1154
+ # # Call the set_iam_policy method.
1155
+ # result = client.set_iam_policy request
1156
+ #
1157
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
1158
+ # p result
1159
+ #
984
1160
  def set_iam_policy request, options = nil
985
1161
  raise ::ArgumentError, "request must be provided" if request.nil?
986
1162
 
@@ -1051,6 +1227,22 @@ module Google
1051
1227
  # @return [::Gapic::GenericLRO::Operation]
1052
1228
  #
1053
1229
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1230
+ #
1231
+ # @example Basic example
1232
+ # require "google/cloud/compute/v1"
1233
+ #
1234
+ # # Create a client object. The client can be reused for multiple calls.
1235
+ # client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
1236
+ #
1237
+ # # Create a request. To set request fields, pass in keyword arguments.
1238
+ # request = Google::Cloud::Compute::V1::SetLabelsRegionDiskRequest.new
1239
+ #
1240
+ # # Call the set_labels method.
1241
+ # result = client.set_labels request
1242
+ #
1243
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1244
+ # p result
1245
+ #
1054
1246
  def set_labels request, options = nil
1055
1247
  raise ::ArgumentError, "request must be provided" if request.nil?
1056
1248
 
@@ -1130,6 +1322,22 @@ module Google
1130
1322
  # @return [::Gapic::GenericLRO::Operation]
1131
1323
  #
1132
1324
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1325
+ #
1326
+ # @example Basic example
1327
+ # require "google/cloud/compute/v1"
1328
+ #
1329
+ # # Create a client object. The client can be reused for multiple calls.
1330
+ # client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
1331
+ #
1332
+ # # Create a request. To set request fields, pass in keyword arguments.
1333
+ # request = Google::Cloud::Compute::V1::StartAsyncReplicationRegionDiskRequest.new
1334
+ #
1335
+ # # Call the start_async_replication method.
1336
+ # result = client.start_async_replication request
1337
+ #
1338
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1339
+ # p result
1340
+ #
1133
1341
  def start_async_replication request, options = nil
1134
1342
  raise ::ArgumentError, "request must be provided" if request.nil?
1135
1343
 
@@ -1207,6 +1415,22 @@ module Google
1207
1415
  # @return [::Gapic::GenericLRO::Operation]
1208
1416
  #
1209
1417
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1418
+ #
1419
+ # @example Basic example
1420
+ # require "google/cloud/compute/v1"
1421
+ #
1422
+ # # Create a client object. The client can be reused for multiple calls.
1423
+ # client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
1424
+ #
1425
+ # # Create a request. To set request fields, pass in keyword arguments.
1426
+ # request = Google::Cloud::Compute::V1::StopAsyncReplicationRegionDiskRequest.new
1427
+ #
1428
+ # # Call the stop_async_replication method.
1429
+ # result = client.stop_async_replication request
1430
+ #
1431
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1432
+ # p result
1433
+ #
1210
1434
  def stop_async_replication request, options = nil
1211
1435
  raise ::ArgumentError, "request must be provided" if request.nil?
1212
1436
 
@@ -1284,6 +1508,22 @@ module Google
1284
1508
  # @return [::Gapic::GenericLRO::Operation]
1285
1509
  #
1286
1510
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1511
+ #
1512
+ # @example Basic example
1513
+ # require "google/cloud/compute/v1"
1514
+ #
1515
+ # # Create a client object. The client can be reused for multiple calls.
1516
+ # client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
1517
+ #
1518
+ # # Create a request. To set request fields, pass in keyword arguments.
1519
+ # request = Google::Cloud::Compute::V1::StopGroupAsyncReplicationRegionDiskRequest.new
1520
+ #
1521
+ # # Call the stop_group_async_replication method.
1522
+ # result = client.stop_group_async_replication request
1523
+ #
1524
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1525
+ # p result
1526
+ #
1287
1527
  def stop_group_async_replication request, options = nil
1288
1528
  raise ::ArgumentError, "request must be provided" if request.nil?
1289
1529
 
@@ -1361,6 +1601,22 @@ module Google
1361
1601
  # @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
1362
1602
  #
1363
1603
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1604
+ #
1605
+ # @example Basic example
1606
+ # require "google/cloud/compute/v1"
1607
+ #
1608
+ # # Create a client object. The client can be reused for multiple calls.
1609
+ # client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
1610
+ #
1611
+ # # Create a request. To set request fields, pass in keyword arguments.
1612
+ # request = Google::Cloud::Compute::V1::TestIamPermissionsRegionDiskRequest.new
1613
+ #
1614
+ # # Call the test_iam_permissions method.
1615
+ # result = client.test_iam_permissions request
1616
+ #
1617
+ # # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
1618
+ # p result
1619
+ #
1364
1620
  def test_iam_permissions request, options = nil
1365
1621
  raise ::ArgumentError, "request must be provided" if request.nil?
1366
1622
 
@@ -1434,6 +1690,22 @@ module Google
1434
1690
  # @return [::Gapic::GenericLRO::Operation]
1435
1691
  #
1436
1692
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1693
+ #
1694
+ # @example Basic example
1695
+ # require "google/cloud/compute/v1"
1696
+ #
1697
+ # # Create a client object. The client can be reused for multiple calls.
1698
+ # client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
1699
+ #
1700
+ # # Create a request. To set request fields, pass in keyword arguments.
1701
+ # request = Google::Cloud::Compute::V1::UpdateRegionDiskRequest.new
1702
+ #
1703
+ # # Call the update method.
1704
+ # result = client.update request
1705
+ #
1706
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1707
+ # p result
1708
+ #
1437
1709
  def update request, options = nil
1438
1710
  raise ::ArgumentError, "request must be provided" if request.nil?
1439
1711
 
@@ -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::RegionHealthCheckServices::Rest::Client.new
205
+ #
206
+ # # Create a request. To set request fields, pass in keyword arguments.
207
+ # request = Google::Cloud::Compute::V1::DeleteRegionHealthCheckServiceRequest.new
208
+ #
209
+ # # Call the delete method.
210
+ # result = client.delete request
211
+ #
212
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
213
+ # p result
214
+ #
199
215
  def delete request, options = nil
200
216
  raise ::ArgumentError, "request must be provided" if request.nil?
201
217
 
@@ -271,6 +287,22 @@ module Google
271
287
  # @return [::Google::Cloud::Compute::V1::HealthCheckService]
272
288
  #
273
289
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
290
+ #
291
+ # @example Basic example
292
+ # require "google/cloud/compute/v1"
293
+ #
294
+ # # Create a client object. The client can be reused for multiple calls.
295
+ # client = Google::Cloud::Compute::V1::RegionHealthCheckServices::Rest::Client.new
296
+ #
297
+ # # Create a request. To set request fields, pass in keyword arguments.
298
+ # request = Google::Cloud::Compute::V1::GetRegionHealthCheckServiceRequest.new
299
+ #
300
+ # # Call the get method.
301
+ # result = client.get request
302
+ #
303
+ # # The returned object is of type Google::Cloud::Compute::V1::HealthCheckService.
304
+ # p result
305
+ #
274
306
  def get request, options = nil
275
307
  raise ::ArgumentError, "request must be provided" if request.nil?
276
308
 
@@ -339,6 +371,22 @@ module Google
339
371
  # @return [::Gapic::GenericLRO::Operation]
340
372
  #
341
373
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
374
+ #
375
+ # @example Basic example
376
+ # require "google/cloud/compute/v1"
377
+ #
378
+ # # Create a client object. The client can be reused for multiple calls.
379
+ # client = Google::Cloud::Compute::V1::RegionHealthCheckServices::Rest::Client.new
380
+ #
381
+ # # Create a request. To set request fields, pass in keyword arguments.
382
+ # request = Google::Cloud::Compute::V1::InsertRegionHealthCheckServiceRequest.new
383
+ #
384
+ # # Call the insert method.
385
+ # result = client.insert request
386
+ #
387
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
388
+ # p result
389
+ #
342
390
  def insert request, options = nil
343
391
  raise ::ArgumentError, "request must be provided" if request.nil?
344
392
 
@@ -422,6 +470,22 @@ module Google
422
470
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::HealthCheckService>]
423
471
  #
424
472
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
473
+ #
474
+ # @example Basic example
475
+ # require "google/cloud/compute/v1"
476
+ #
477
+ # # Create a client object. The client can be reused for multiple calls.
478
+ # client = Google::Cloud::Compute::V1::RegionHealthCheckServices::Rest::Client.new
479
+ #
480
+ # # Create a request. To set request fields, pass in keyword arguments.
481
+ # request = Google::Cloud::Compute::V1::ListRegionHealthCheckServicesRequest.new
482
+ #
483
+ # # Call the list method.
484
+ # result = client.list request
485
+ #
486
+ # # The returned object is of type Google::Cloud::Compute::V1::HealthCheckServicesList.
487
+ # p result
488
+ #
425
489
  def list request, options = nil
426
490
  raise ::ArgumentError, "request must be provided" if request.nil?
427
491
 
@@ -493,6 +557,22 @@ module Google
493
557
  # @return [::Gapic::GenericLRO::Operation]
494
558
  #
495
559
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
560
+ #
561
+ # @example Basic example
562
+ # require "google/cloud/compute/v1"
563
+ #
564
+ # # Create a client object. The client can be reused for multiple calls.
565
+ # client = Google::Cloud::Compute::V1::RegionHealthCheckServices::Rest::Client.new
566
+ #
567
+ # # Create a request. To set request fields, pass in keyword arguments.
568
+ # request = Google::Cloud::Compute::V1::PatchRegionHealthCheckServiceRequest.new
569
+ #
570
+ # # Call the patch method.
571
+ # result = client.patch request
572
+ #
573
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
574
+ # p result
575
+ #
496
576
  def patch request, options = nil
497
577
  raise ::ArgumentError, "request must be provided" if request.nil?
498
578
 
@@ -198,6 +198,22 @@ module Google
198
198
  # @return [::Gapic::GenericLRO::Operation]
199
199
  #
200
200
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
201
+ #
202
+ # @example Basic example
203
+ # require "google/cloud/compute/v1"
204
+ #
205
+ # # Create a client object. The client can be reused for multiple calls.
206
+ # client = Google::Cloud::Compute::V1::RegionHealthChecks::Rest::Client.new
207
+ #
208
+ # # Create a request. To set request fields, pass in keyword arguments.
209
+ # request = Google::Cloud::Compute::V1::DeleteRegionHealthCheckRequest.new
210
+ #
211
+ # # Call the delete method.
212
+ # result = client.delete request
213
+ #
214
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
215
+ # p result
216
+ #
201
217
  def delete request, options = nil
202
218
  raise ::ArgumentError, "request must be provided" if request.nil?
203
219
 
@@ -273,6 +289,22 @@ module Google
273
289
  # @return [::Google::Cloud::Compute::V1::HealthCheck]
274
290
  #
275
291
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
292
+ #
293
+ # @example Basic example
294
+ # require "google/cloud/compute/v1"
295
+ #
296
+ # # Create a client object. The client can be reused for multiple calls.
297
+ # client = Google::Cloud::Compute::V1::RegionHealthChecks::Rest::Client.new
298
+ #
299
+ # # Create a request. To set request fields, pass in keyword arguments.
300
+ # request = Google::Cloud::Compute::V1::GetRegionHealthCheckRequest.new
301
+ #
302
+ # # Call the get method.
303
+ # result = client.get request
304
+ #
305
+ # # The returned object is of type Google::Cloud::Compute::V1::HealthCheck.
306
+ # p result
307
+ #
276
308
  def get request, options = nil
277
309
  raise ::ArgumentError, "request must be provided" if request.nil?
278
310
 
@@ -341,6 +373,22 @@ module Google
341
373
  # @return [::Gapic::GenericLRO::Operation]
342
374
  #
343
375
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
376
+ #
377
+ # @example Basic example
378
+ # require "google/cloud/compute/v1"
379
+ #
380
+ # # Create a client object. The client can be reused for multiple calls.
381
+ # client = Google::Cloud::Compute::V1::RegionHealthChecks::Rest::Client.new
382
+ #
383
+ # # Create a request. To set request fields, pass in keyword arguments.
384
+ # request = Google::Cloud::Compute::V1::InsertRegionHealthCheckRequest.new
385
+ #
386
+ # # Call the insert method.
387
+ # result = client.insert request
388
+ #
389
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
390
+ # p result
391
+ #
344
392
  def insert request, options = nil
345
393
  raise ::ArgumentError, "request must be provided" if request.nil?
346
394
 
@@ -424,6 +472,22 @@ module Google
424
472
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::HealthCheck>]
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::RegionHealthChecks::Rest::Client.new
481
+ #
482
+ # # Create a request. To set request fields, pass in keyword arguments.
483
+ # request = Google::Cloud::Compute::V1::ListRegionHealthChecksRequest.new
484
+ #
485
+ # # Call the list method.
486
+ # result = client.list request
487
+ #
488
+ # # The returned object is of type Google::Cloud::Compute::V1::HealthCheckList.
489
+ # p result
490
+ #
427
491
  def list request, options = nil
428
492
  raise ::ArgumentError, "request must be provided" if request.nil?
429
493
 
@@ -495,6 +559,22 @@ module Google
495
559
  # @return [::Gapic::GenericLRO::Operation]
496
560
  #
497
561
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
562
+ #
563
+ # @example Basic example
564
+ # require "google/cloud/compute/v1"
565
+ #
566
+ # # Create a client object. The client can be reused for multiple calls.
567
+ # client = Google::Cloud::Compute::V1::RegionHealthChecks::Rest::Client.new
568
+ #
569
+ # # Create a request. To set request fields, pass in keyword arguments.
570
+ # request = Google::Cloud::Compute::V1::PatchRegionHealthCheckRequest.new
571
+ #
572
+ # # Call the patch method.
573
+ # result = client.patch request
574
+ #
575
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
576
+ # p result
577
+ #
498
578
  def patch request, options = nil
499
579
  raise ::ArgumentError, "request must be provided" if request.nil?
500
580
 
@@ -574,6 +654,22 @@ module Google
574
654
  # @return [::Gapic::GenericLRO::Operation]
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::RegionHealthChecks::Rest::Client.new
663
+ #
664
+ # # Create a request. To set request fields, pass in keyword arguments.
665
+ # request = Google::Cloud::Compute::V1::UpdateRegionHealthCheckRequest.new
666
+ #
667
+ # # Call the update method.
668
+ # result = client.update request
669
+ #
670
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
671
+ # p result
672
+ #
577
673
  def update request, options = nil
578
674
  raise ::ArgumentError, "request must be provided" if request.nil?
579
675