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
@@ -229,6 +229,22 @@ module Google
229
229
  # @return [::Gapic::GenericLRO::Operation]
230
230
  #
231
231
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
232
+ #
233
+ # @example Basic example
234
+ # require "google/cloud/compute/v1"
235
+ #
236
+ # # Create a client object. The client can be reused for multiple calls.
237
+ # client = Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client.new
238
+ #
239
+ # # Create a request. To set request fields, pass in keyword arguments.
240
+ # request = Google::Cloud::Compute::V1::AbandonInstancesRegionInstanceGroupManagerRequest.new
241
+ #
242
+ # # Call the abandon_instances method.
243
+ # result = client.abandon_instances request
244
+ #
245
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
246
+ # p result
247
+ #
232
248
  def abandon_instances request, options = nil
233
249
  raise ::ArgumentError, "request must be provided" if request.nil?
234
250
 
@@ -306,6 +322,22 @@ module Google
306
322
  # @return [::Gapic::GenericLRO::Operation]
307
323
  #
308
324
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
325
+ #
326
+ # @example Basic example
327
+ # require "google/cloud/compute/v1"
328
+ #
329
+ # # Create a client object. The client can be reused for multiple calls.
330
+ # client = Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client.new
331
+ #
332
+ # # Create a request. To set request fields, pass in keyword arguments.
333
+ # request = Google::Cloud::Compute::V1::ApplyUpdatesToInstancesRegionInstanceGroupManagerRequest.new
334
+ #
335
+ # # Call the apply_updates_to_instances method.
336
+ # result = client.apply_updates_to_instances request
337
+ #
338
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
339
+ # p result
340
+ #
309
341
  def apply_updates_to_instances request, options = nil
310
342
  raise ::ArgumentError, "request must be provided" if request.nil?
311
343
 
@@ -385,6 +417,22 @@ module Google
385
417
  # @return [::Gapic::GenericLRO::Operation]
386
418
  #
387
419
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
420
+ #
421
+ # @example Basic example
422
+ # require "google/cloud/compute/v1"
423
+ #
424
+ # # Create a client object. The client can be reused for multiple calls.
425
+ # client = Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client.new
426
+ #
427
+ # # Create a request. To set request fields, pass in keyword arguments.
428
+ # request = Google::Cloud::Compute::V1::CreateInstancesRegionInstanceGroupManagerRequest.new
429
+ #
430
+ # # Call the create_instances method.
431
+ # result = client.create_instances request
432
+ #
433
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
434
+ # p result
435
+ #
388
436
  def create_instances request, options = nil
389
437
  raise ::ArgumentError, "request must be provided" if request.nil?
390
438
 
@@ -462,6 +510,22 @@ module Google
462
510
  # @return [::Gapic::GenericLRO::Operation]
463
511
  #
464
512
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
513
+ #
514
+ # @example Basic example
515
+ # require "google/cloud/compute/v1"
516
+ #
517
+ # # Create a client object. The client can be reused for multiple calls.
518
+ # client = Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client.new
519
+ #
520
+ # # Create a request. To set request fields, pass in keyword arguments.
521
+ # request = Google::Cloud::Compute::V1::DeleteRegionInstanceGroupManagerRequest.new
522
+ #
523
+ # # Call the delete method.
524
+ # result = client.delete request
525
+ #
526
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
527
+ # p result
528
+ #
465
529
  def delete request, options = nil
466
530
  raise ::ArgumentError, "request must be provided" if request.nil?
467
531
 
@@ -541,6 +605,22 @@ module Google
541
605
  # @return [::Gapic::GenericLRO::Operation]
542
606
  #
543
607
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
608
+ #
609
+ # @example Basic example
610
+ # require "google/cloud/compute/v1"
611
+ #
612
+ # # Create a client object. The client can be reused for multiple calls.
613
+ # client = Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client.new
614
+ #
615
+ # # Create a request. To set request fields, pass in keyword arguments.
616
+ # request = Google::Cloud::Compute::V1::DeleteInstancesRegionInstanceGroupManagerRequest.new
617
+ #
618
+ # # Call the delete_instances method.
619
+ # result = client.delete_instances request
620
+ #
621
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
622
+ # p result
623
+ #
544
624
  def delete_instances request, options = nil
545
625
  raise ::ArgumentError, "request must be provided" if request.nil?
546
626
 
@@ -618,6 +698,22 @@ module Google
618
698
  # @return [::Gapic::GenericLRO::Operation]
619
699
  #
620
700
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
701
+ #
702
+ # @example Basic example
703
+ # require "google/cloud/compute/v1"
704
+ #
705
+ # # Create a client object. The client can be reused for multiple calls.
706
+ # client = Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client.new
707
+ #
708
+ # # Create a request. To set request fields, pass in keyword arguments.
709
+ # request = Google::Cloud::Compute::V1::DeletePerInstanceConfigsRegionInstanceGroupManagerRequest.new
710
+ #
711
+ # # Call the delete_per_instance_configs method.
712
+ # result = client.delete_per_instance_configs request
713
+ #
714
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
715
+ # p result
716
+ #
621
717
  def delete_per_instance_configs request, options = nil
622
718
  raise ::ArgumentError, "request must be provided" if request.nil?
623
719
 
@@ -693,6 +789,22 @@ module Google
693
789
  # @return [::Google::Cloud::Compute::V1::InstanceGroupManager]
694
790
  #
695
791
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
792
+ #
793
+ # @example Basic example
794
+ # require "google/cloud/compute/v1"
795
+ #
796
+ # # Create a client object. The client can be reused for multiple calls.
797
+ # client = Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client.new
798
+ #
799
+ # # Create a request. To set request fields, pass in keyword arguments.
800
+ # request = Google::Cloud::Compute::V1::GetRegionInstanceGroupManagerRequest.new
801
+ #
802
+ # # Call the get method.
803
+ # result = client.get request
804
+ #
805
+ # # The returned object is of type Google::Cloud::Compute::V1::InstanceGroupManager.
806
+ # p result
807
+ #
696
808
  def get request, options = nil
697
809
  raise ::ArgumentError, "request must be provided" if request.nil?
698
810
 
@@ -761,6 +873,22 @@ module Google
761
873
  # @return [::Gapic::GenericLRO::Operation]
762
874
  #
763
875
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
876
+ #
877
+ # @example Basic example
878
+ # require "google/cloud/compute/v1"
879
+ #
880
+ # # Create a client object. The client can be reused for multiple calls.
881
+ # client = Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client.new
882
+ #
883
+ # # Create a request. To set request fields, pass in keyword arguments.
884
+ # request = Google::Cloud::Compute::V1::InsertRegionInstanceGroupManagerRequest.new
885
+ #
886
+ # # Call the insert method.
887
+ # result = client.insert request
888
+ #
889
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
890
+ # p result
891
+ #
764
892
  def insert request, options = nil
765
893
  raise ::ArgumentError, "request must be provided" if request.nil?
766
894
 
@@ -844,6 +972,22 @@ module Google
844
972
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InstanceGroupManager>]
845
973
  #
846
974
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
975
+ #
976
+ # @example Basic example
977
+ # require "google/cloud/compute/v1"
978
+ #
979
+ # # Create a client object. The client can be reused for multiple calls.
980
+ # client = Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client.new
981
+ #
982
+ # # Create a request. To set request fields, pass in keyword arguments.
983
+ # request = Google::Cloud::Compute::V1::ListRegionInstanceGroupManagersRequest.new
984
+ #
985
+ # # Call the list method.
986
+ # result = client.list request
987
+ #
988
+ # # The returned object is of type Google::Cloud::Compute::V1::RegionInstanceGroupManagerList.
989
+ # p result
990
+ #
847
991
  def list request, options = nil
848
992
  raise ::ArgumentError, "request must be provided" if request.nil?
849
993
 
@@ -921,6 +1065,22 @@ module Google
921
1065
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InstanceManagedByIgmError>]
922
1066
  #
923
1067
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1068
+ #
1069
+ # @example Basic example
1070
+ # require "google/cloud/compute/v1"
1071
+ #
1072
+ # # Create a client object. The client can be reused for multiple calls.
1073
+ # client = Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client.new
1074
+ #
1075
+ # # Create a request. To set request fields, pass in keyword arguments.
1076
+ # request = Google::Cloud::Compute::V1::ListErrorsRegionInstanceGroupManagersRequest.new
1077
+ #
1078
+ # # Call the list_errors method.
1079
+ # result = client.list_errors request
1080
+ #
1081
+ # # The returned object is of type Google::Cloud::Compute::V1::RegionInstanceGroupManagersListErrorsResponse.
1082
+ # p result
1083
+ #
924
1084
  def list_errors request, options = nil
925
1085
  raise ::ArgumentError, "request must be provided" if request.nil?
926
1086
 
@@ -998,6 +1158,22 @@ module Google
998
1158
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::ManagedInstance>]
999
1159
  #
1000
1160
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1161
+ #
1162
+ # @example Basic example
1163
+ # require "google/cloud/compute/v1"
1164
+ #
1165
+ # # Create a client object. The client can be reused for multiple calls.
1166
+ # client = Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client.new
1167
+ #
1168
+ # # Create a request. To set request fields, pass in keyword arguments.
1169
+ # request = Google::Cloud::Compute::V1::ListManagedInstancesRegionInstanceGroupManagersRequest.new
1170
+ #
1171
+ # # Call the list_managed_instances method.
1172
+ # result = client.list_managed_instances request
1173
+ #
1174
+ # # The returned object is of type Google::Cloud::Compute::V1::RegionInstanceGroupManagersListInstancesResponse.
1175
+ # p result
1176
+ #
1001
1177
  def list_managed_instances request, options = nil
1002
1178
  raise ::ArgumentError, "request must be provided" if request.nil?
1003
1179
 
@@ -1075,6 +1251,22 @@ module Google
1075
1251
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::PerInstanceConfig>]
1076
1252
  #
1077
1253
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1254
+ #
1255
+ # @example Basic example
1256
+ # require "google/cloud/compute/v1"
1257
+ #
1258
+ # # Create a client object. The client can be reused for multiple calls.
1259
+ # client = Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client.new
1260
+ #
1261
+ # # Create a request. To set request fields, pass in keyword arguments.
1262
+ # request = Google::Cloud::Compute::V1::ListPerInstanceConfigsRegionInstanceGroupManagersRequest.new
1263
+ #
1264
+ # # Call the list_per_instance_configs method.
1265
+ # result = client.list_per_instance_configs request
1266
+ #
1267
+ # # The returned object is of type Google::Cloud::Compute::V1::RegionInstanceGroupManagersListInstanceConfigsResp.
1268
+ # p result
1269
+ #
1078
1270
  def list_per_instance_configs request, options = nil
1079
1271
  raise ::ArgumentError, "request must be provided" if request.nil?
1080
1272
 
@@ -1146,6 +1338,22 @@ module Google
1146
1338
  # @return [::Gapic::GenericLRO::Operation]
1147
1339
  #
1148
1340
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1341
+ #
1342
+ # @example Basic example
1343
+ # require "google/cloud/compute/v1"
1344
+ #
1345
+ # # Create a client object. The client can be reused for multiple calls.
1346
+ # client = Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client.new
1347
+ #
1348
+ # # Create a request. To set request fields, pass in keyword arguments.
1349
+ # request = Google::Cloud::Compute::V1::PatchRegionInstanceGroupManagerRequest.new
1350
+ #
1351
+ # # Call the patch method.
1352
+ # result = client.patch request
1353
+ #
1354
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1355
+ # p result
1356
+ #
1149
1357
  def patch request, options = nil
1150
1358
  raise ::ArgumentError, "request must be provided" if request.nil?
1151
1359
 
@@ -1225,6 +1433,22 @@ module Google
1225
1433
  # @return [::Gapic::GenericLRO::Operation]
1226
1434
  #
1227
1435
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1436
+ #
1437
+ # @example Basic example
1438
+ # require "google/cloud/compute/v1"
1439
+ #
1440
+ # # Create a client object. The client can be reused for multiple calls.
1441
+ # client = Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client.new
1442
+ #
1443
+ # # Create a request. To set request fields, pass in keyword arguments.
1444
+ # request = Google::Cloud::Compute::V1::PatchPerInstanceConfigsRegionInstanceGroupManagerRequest.new
1445
+ #
1446
+ # # Call the patch_per_instance_configs method.
1447
+ # result = client.patch_per_instance_configs request
1448
+ #
1449
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1450
+ # p result
1451
+ #
1228
1452
  def patch_per_instance_configs request, options = nil
1229
1453
  raise ::ArgumentError, "request must be provided" if request.nil?
1230
1454
 
@@ -1304,6 +1528,22 @@ module Google
1304
1528
  # @return [::Gapic::GenericLRO::Operation]
1305
1529
  #
1306
1530
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1531
+ #
1532
+ # @example Basic example
1533
+ # require "google/cloud/compute/v1"
1534
+ #
1535
+ # # Create a client object. The client can be reused for multiple calls.
1536
+ # client = Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client.new
1537
+ #
1538
+ # # Create a request. To set request fields, pass in keyword arguments.
1539
+ # request = Google::Cloud::Compute::V1::RecreateInstancesRegionInstanceGroupManagerRequest.new
1540
+ #
1541
+ # # Call the recreate_instances method.
1542
+ # result = client.recreate_instances request
1543
+ #
1544
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1545
+ # p result
1546
+ #
1307
1547
  def recreate_instances request, options = nil
1308
1548
  raise ::ArgumentError, "request must be provided" if request.nil?
1309
1549
 
@@ -1383,6 +1623,22 @@ module Google
1383
1623
  # @return [::Gapic::GenericLRO::Operation]
1384
1624
  #
1385
1625
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1626
+ #
1627
+ # @example Basic example
1628
+ # require "google/cloud/compute/v1"
1629
+ #
1630
+ # # Create a client object. The client can be reused for multiple calls.
1631
+ # client = Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client.new
1632
+ #
1633
+ # # Create a request. To set request fields, pass in keyword arguments.
1634
+ # request = Google::Cloud::Compute::V1::ResizeRegionInstanceGroupManagerRequest.new
1635
+ #
1636
+ # # Call the resize method.
1637
+ # result = client.resize request
1638
+ #
1639
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1640
+ # p result
1641
+ #
1386
1642
  def resize request, options = nil
1387
1643
  raise ::ArgumentError, "request must be provided" if request.nil?
1388
1644
 
@@ -1462,6 +1718,22 @@ module Google
1462
1718
  # @return [::Gapic::GenericLRO::Operation]
1463
1719
  #
1464
1720
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1721
+ #
1722
+ # @example Basic example
1723
+ # require "google/cloud/compute/v1"
1724
+ #
1725
+ # # Create a client object. The client can be reused for multiple calls.
1726
+ # client = Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client.new
1727
+ #
1728
+ # # Create a request. To set request fields, pass in keyword arguments.
1729
+ # request = Google::Cloud::Compute::V1::SetInstanceTemplateRegionInstanceGroupManagerRequest.new
1730
+ #
1731
+ # # Call the set_instance_template method.
1732
+ # result = client.set_instance_template request
1733
+ #
1734
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1735
+ # p result
1736
+ #
1465
1737
  def set_instance_template request, options = nil
1466
1738
  raise ::ArgumentError, "request must be provided" if request.nil?
1467
1739
 
@@ -1541,6 +1813,22 @@ module Google
1541
1813
  # @return [::Gapic::GenericLRO::Operation]
1542
1814
  #
1543
1815
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1816
+ #
1817
+ # @example Basic example
1818
+ # require "google/cloud/compute/v1"
1819
+ #
1820
+ # # Create a client object. The client can be reused for multiple calls.
1821
+ # client = Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client.new
1822
+ #
1823
+ # # Create a request. To set request fields, pass in keyword arguments.
1824
+ # request = Google::Cloud::Compute::V1::SetTargetPoolsRegionInstanceGroupManagerRequest.new
1825
+ #
1826
+ # # Call the set_target_pools method.
1827
+ # result = client.set_target_pools request
1828
+ #
1829
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1830
+ # p result
1831
+ #
1544
1832
  def set_target_pools request, options = nil
1545
1833
  raise ::ArgumentError, "request must be provided" if request.nil?
1546
1834
 
@@ -1620,6 +1908,22 @@ module Google
1620
1908
  # @return [::Gapic::GenericLRO::Operation]
1621
1909
  #
1622
1910
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1911
+ #
1912
+ # @example Basic example
1913
+ # require "google/cloud/compute/v1"
1914
+ #
1915
+ # # Create a client object. The client can be reused for multiple calls.
1916
+ # client = Google::Cloud::Compute::V1::RegionInstanceGroupManagers::Rest::Client.new
1917
+ #
1918
+ # # Create a request. To set request fields, pass in keyword arguments.
1919
+ # request = Google::Cloud::Compute::V1::UpdatePerInstanceConfigsRegionInstanceGroupManagerRequest.new
1920
+ #
1921
+ # # Call the update_per_instance_configs method.
1922
+ # result = client.update_per_instance_configs request
1923
+ #
1924
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1925
+ # p result
1926
+ #
1623
1927
  def update_per_instance_configs request, options = nil
1624
1928
  raise ::ArgumentError, "request must be provided" if request.nil?
1625
1929
 
@@ -192,6 +192,22 @@ module Google
192
192
  # @return [::Google::Cloud::Compute::V1::InstanceGroup]
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::RegionInstanceGroups::Rest::Client.new
201
+ #
202
+ # # Create a request. To set request fields, pass in keyword arguments.
203
+ # request = Google::Cloud::Compute::V1::GetRegionInstanceGroupRequest.new
204
+ #
205
+ # # Call the get method.
206
+ # result = client.get request
207
+ #
208
+ # # The returned object is of type Google::Cloud::Compute::V1::InstanceGroup.
209
+ # p result
210
+ #
195
211
  def get request, options = nil
196
212
  raise ::ArgumentError, "request must be provided" if request.nil?
197
213
 
@@ -266,6 +282,22 @@ module Google
266
282
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InstanceGroup>]
267
283
  #
268
284
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
285
+ #
286
+ # @example Basic example
287
+ # require "google/cloud/compute/v1"
288
+ #
289
+ # # Create a client object. The client can be reused for multiple calls.
290
+ # client = Google::Cloud::Compute::V1::RegionInstanceGroups::Rest::Client.new
291
+ #
292
+ # # Create a request. To set request fields, pass in keyword arguments.
293
+ # request = Google::Cloud::Compute::V1::ListRegionInstanceGroupsRequest.new
294
+ #
295
+ # # Call the list method.
296
+ # result = client.list request
297
+ #
298
+ # # The returned object is of type Google::Cloud::Compute::V1::RegionInstanceGroupList.
299
+ # p result
300
+ #
269
301
  def list request, options = nil
270
302
  raise ::ArgumentError, "request must be provided" if request.nil?
271
303
 
@@ -345,6 +377,22 @@ module Google
345
377
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InstanceWithNamedPorts>]
346
378
  #
347
379
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
380
+ #
381
+ # @example Basic example
382
+ # require "google/cloud/compute/v1"
383
+ #
384
+ # # Create a client object. The client can be reused for multiple calls.
385
+ # client = Google::Cloud::Compute::V1::RegionInstanceGroups::Rest::Client.new
386
+ #
387
+ # # Create a request. To set request fields, pass in keyword arguments.
388
+ # request = Google::Cloud::Compute::V1::ListInstancesRegionInstanceGroupsRequest.new
389
+ #
390
+ # # Call the list_instances method.
391
+ # result = client.list_instances request
392
+ #
393
+ # # The returned object is of type Google::Cloud::Compute::V1::RegionInstanceGroupsListInstances.
394
+ # p result
395
+ #
348
396
  def list_instances request, options = nil
349
397
  raise ::ArgumentError, "request must be provided" if request.nil?
350
398
 
@@ -416,6 +464,22 @@ module Google
416
464
  # @return [::Gapic::GenericLRO::Operation]
417
465
  #
418
466
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
467
+ #
468
+ # @example Basic example
469
+ # require "google/cloud/compute/v1"
470
+ #
471
+ # # Create a client object. The client can be reused for multiple calls.
472
+ # client = Google::Cloud::Compute::V1::RegionInstanceGroups::Rest::Client.new
473
+ #
474
+ # # Create a request. To set request fields, pass in keyword arguments.
475
+ # request = Google::Cloud::Compute::V1::SetNamedPortsRegionInstanceGroupRequest.new
476
+ #
477
+ # # Call the set_named_ports method.
478
+ # result = client.set_named_ports request
479
+ #
480
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
481
+ # p result
482
+ #
419
483
  def set_named_ports request, options = nil
420
484
  raise ::ArgumentError, "request must be provided" if request.nil?
421
485
 
@@ -194,6 +194,22 @@ module Google
194
194
  # @return [::Gapic::GenericLRO::Operation]
195
195
  #
196
196
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
197
+ #
198
+ # @example Basic example
199
+ # require "google/cloud/compute/v1"
200
+ #
201
+ # # Create a client object. The client can be reused for multiple calls.
202
+ # client = Google::Cloud::Compute::V1::RegionInstanceTemplates::Rest::Client.new
203
+ #
204
+ # # Create a request. To set request fields, pass in keyword arguments.
205
+ # request = Google::Cloud::Compute::V1::DeleteRegionInstanceTemplateRequest.new
206
+ #
207
+ # # Call the delete method.
208
+ # result = client.delete request
209
+ #
210
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
211
+ # p result
212
+ #
197
213
  def delete request, options = nil
198
214
  raise ::ArgumentError, "request must be provided" if request.nil?
199
215
 
@@ -269,6 +285,22 @@ module Google
269
285
  # @return [::Google::Cloud::Compute::V1::InstanceTemplate]
270
286
  #
271
287
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
288
+ #
289
+ # @example Basic example
290
+ # require "google/cloud/compute/v1"
291
+ #
292
+ # # Create a client object. The client can be reused for multiple calls.
293
+ # client = Google::Cloud::Compute::V1::RegionInstanceTemplates::Rest::Client.new
294
+ #
295
+ # # Create a request. To set request fields, pass in keyword arguments.
296
+ # request = Google::Cloud::Compute::V1::GetRegionInstanceTemplateRequest.new
297
+ #
298
+ # # Call the get method.
299
+ # result = client.get request
300
+ #
301
+ # # The returned object is of type Google::Cloud::Compute::V1::InstanceTemplate.
302
+ # p result
303
+ #
272
304
  def get request, options = nil
273
305
  raise ::ArgumentError, "request must be provided" if request.nil?
274
306
 
@@ -337,6 +369,22 @@ module Google
337
369
  # @return [::Gapic::GenericLRO::Operation]
338
370
  #
339
371
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
372
+ #
373
+ # @example Basic example
374
+ # require "google/cloud/compute/v1"
375
+ #
376
+ # # Create a client object. The client can be reused for multiple calls.
377
+ # client = Google::Cloud::Compute::V1::RegionInstanceTemplates::Rest::Client.new
378
+ #
379
+ # # Create a request. To set request fields, pass in keyword arguments.
380
+ # request = Google::Cloud::Compute::V1::InsertRegionInstanceTemplateRequest.new
381
+ #
382
+ # # Call the insert method.
383
+ # result = client.insert request
384
+ #
385
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
386
+ # p result
387
+ #
340
388
  def insert request, options = nil
341
389
  raise ::ArgumentError, "request must be provided" if request.nil?
342
390
 
@@ -420,6 +468,22 @@ module Google
420
468
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InstanceTemplate>]
421
469
  #
422
470
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
471
+ #
472
+ # @example Basic example
473
+ # require "google/cloud/compute/v1"
474
+ #
475
+ # # Create a client object. The client can be reused for multiple calls.
476
+ # client = Google::Cloud::Compute::V1::RegionInstanceTemplates::Rest::Client.new
477
+ #
478
+ # # Create a request. To set request fields, pass in keyword arguments.
479
+ # request = Google::Cloud::Compute::V1::ListRegionInstanceTemplatesRequest.new
480
+ #
481
+ # # Call the list method.
482
+ # result = client.list request
483
+ #
484
+ # # The returned object is of type Google::Cloud::Compute::V1::InstanceTemplateList.
485
+ # p result
486
+ #
423
487
  def list request, options = nil
424
488
  raise ::ArgumentError, "request must be provided" if request.nil?
425
489
 
@@ -182,6 +182,22 @@ module Google
182
182
  # @return [::Gapic::GenericLRO::Operation]
183
183
  #
184
184
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
185
+ #
186
+ # @example Basic example
187
+ # require "google/cloud/compute/v1"
188
+ #
189
+ # # Create a client object. The client can be reused for multiple calls.
190
+ # client = Google::Cloud::Compute::V1::RegionInstances::Rest::Client.new
191
+ #
192
+ # # Create a request. To set request fields, pass in keyword arguments.
193
+ # request = Google::Cloud::Compute::V1::BulkInsertRegionInstanceRequest.new
194
+ #
195
+ # # Call the bulk_insert method.
196
+ # result = client.bulk_insert request
197
+ #
198
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
199
+ # p result
200
+ #
185
201
  def bulk_insert request, options = nil
186
202
  raise ::ArgumentError, "request must be provided" if request.nil?
187
203