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
@@ -211,6 +211,22 @@ module Google
211
211
  # @return [::Gapic::GenericLRO::Operation]
212
212
  #
213
213
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
214
+ #
215
+ # @example Basic example
216
+ # require "google/cloud/compute/v1"
217
+ #
218
+ # # Create a client object. The client can be reused for multiple calls.
219
+ # client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
220
+ #
221
+ # # Create a request. To set request fields, pass in keyword arguments.
222
+ # request = Google::Cloud::Compute::V1::DisableXpnHostProjectRequest.new
223
+ #
224
+ # # Call the disable_xpn_host method.
225
+ # result = client.disable_xpn_host request
226
+ #
227
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
228
+ # p result
229
+ #
214
230
  def disable_xpn_host request, options = nil
215
231
  raise ::ArgumentError, "request must be provided" if request.nil?
216
232
 
@@ -285,6 +301,22 @@ module Google
285
301
  # @return [::Gapic::GenericLRO::Operation]
286
302
  #
287
303
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
304
+ #
305
+ # @example Basic example
306
+ # require "google/cloud/compute/v1"
307
+ #
308
+ # # Create a client object. The client can be reused for multiple calls.
309
+ # client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
310
+ #
311
+ # # Create a request. To set request fields, pass in keyword arguments.
312
+ # request = Google::Cloud::Compute::V1::DisableXpnResourceProjectRequest.new
313
+ #
314
+ # # Call the disable_xpn_resource method.
315
+ # result = client.disable_xpn_resource request
316
+ #
317
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
318
+ # p result
319
+ #
288
320
  def disable_xpn_resource request, options = nil
289
321
  raise ::ArgumentError, "request must be provided" if request.nil?
290
322
 
@@ -357,6 +389,22 @@ module Google
357
389
  # @return [::Gapic::GenericLRO::Operation]
358
390
  #
359
391
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
392
+ #
393
+ # @example Basic example
394
+ # require "google/cloud/compute/v1"
395
+ #
396
+ # # Create a client object. The client can be reused for multiple calls.
397
+ # client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
398
+ #
399
+ # # Create a request. To set request fields, pass in keyword arguments.
400
+ # request = Google::Cloud::Compute::V1::EnableXpnHostProjectRequest.new
401
+ #
402
+ # # Call the enable_xpn_host method.
403
+ # result = client.enable_xpn_host request
404
+ #
405
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
406
+ # p result
407
+ #
360
408
  def enable_xpn_host request, options = nil
361
409
  raise ::ArgumentError, "request must be provided" if request.nil?
362
410
 
@@ -431,6 +479,22 @@ module Google
431
479
  # @return [::Gapic::GenericLRO::Operation]
432
480
  #
433
481
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
482
+ #
483
+ # @example Basic example
484
+ # require "google/cloud/compute/v1"
485
+ #
486
+ # # Create a client object. The client can be reused for multiple calls.
487
+ # client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
488
+ #
489
+ # # Create a request. To set request fields, pass in keyword arguments.
490
+ # request = Google::Cloud::Compute::V1::EnableXpnResourceProjectRequest.new
491
+ #
492
+ # # Call the enable_xpn_resource method.
493
+ # result = client.enable_xpn_resource request
494
+ #
495
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
496
+ # p result
497
+ #
434
498
  def enable_xpn_resource request, options = nil
435
499
  raise ::ArgumentError, "request must be provided" if request.nil?
436
500
 
@@ -501,6 +565,22 @@ module Google
501
565
  # @return [::Google::Cloud::Compute::V1::Project]
502
566
  #
503
567
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
568
+ #
569
+ # @example Basic example
570
+ # require "google/cloud/compute/v1"
571
+ #
572
+ # # Create a client object. The client can be reused for multiple calls.
573
+ # client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
574
+ #
575
+ # # Create a request. To set request fields, pass in keyword arguments.
576
+ # request = Google::Cloud::Compute::V1::GetProjectRequest.new
577
+ #
578
+ # # Call the get method.
579
+ # result = client.get request
580
+ #
581
+ # # The returned object is of type Google::Cloud::Compute::V1::Project.
582
+ # p result
583
+ #
504
584
  def get request, options = nil
505
585
  raise ::ArgumentError, "request must be provided" if request.nil?
506
586
 
@@ -563,6 +643,22 @@ module Google
563
643
  # @return [::Google::Cloud::Compute::V1::Project]
564
644
  #
565
645
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
646
+ #
647
+ # @example Basic example
648
+ # require "google/cloud/compute/v1"
649
+ #
650
+ # # Create a client object. The client can be reused for multiple calls.
651
+ # client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
652
+ #
653
+ # # Create a request. To set request fields, pass in keyword arguments.
654
+ # request = Google::Cloud::Compute::V1::GetXpnHostProjectRequest.new
655
+ #
656
+ # # Call the get_xpn_host method.
657
+ # result = client.get_xpn_host request
658
+ #
659
+ # # The returned object is of type Google::Cloud::Compute::V1::Project.
660
+ # p result
661
+ #
566
662
  def get_xpn_host request, options = nil
567
663
  raise ::ArgumentError, "request must be provided" if request.nil?
568
664
 
@@ -635,6 +731,22 @@ module Google
635
731
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::XpnResourceId>]
636
732
  #
637
733
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
734
+ #
735
+ # @example Basic example
736
+ # require "google/cloud/compute/v1"
737
+ #
738
+ # # Create a client object. The client can be reused for multiple calls.
739
+ # client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
740
+ #
741
+ # # Create a request. To set request fields, pass in keyword arguments.
742
+ # request = Google::Cloud::Compute::V1::GetXpnResourcesProjectsRequest.new
743
+ #
744
+ # # Call the get_xpn_resources method.
745
+ # result = client.get_xpn_resources request
746
+ #
747
+ # # The returned object is of type Google::Cloud::Compute::V1::ProjectsGetXpnResources.
748
+ # p result
749
+ #
638
750
  def get_xpn_resources request, options = nil
639
751
  raise ::ArgumentError, "request must be provided" if request.nil?
640
752
 
@@ -710,6 +822,22 @@ module Google
710
822
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Project>]
711
823
  #
712
824
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
825
+ #
826
+ # @example Basic example
827
+ # require "google/cloud/compute/v1"
828
+ #
829
+ # # Create a client object. The client can be reused for multiple calls.
830
+ # client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
831
+ #
832
+ # # Create a request. To set request fields, pass in keyword arguments.
833
+ # request = Google::Cloud::Compute::V1::ListXpnHostsProjectsRequest.new
834
+ #
835
+ # # Call the list_xpn_hosts method.
836
+ # result = client.list_xpn_hosts request
837
+ #
838
+ # # The returned object is of type Google::Cloud::Compute::V1::XpnHostList.
839
+ # p result
840
+ #
713
841
  def list_xpn_hosts request, options = nil
714
842
  raise ::ArgumentError, "request must be provided" if request.nil?
715
843
 
@@ -777,6 +905,22 @@ module Google
777
905
  # @return [::Gapic::GenericLRO::Operation]
778
906
  #
779
907
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
908
+ #
909
+ # @example Basic example
910
+ # require "google/cloud/compute/v1"
911
+ #
912
+ # # Create a client object. The client can be reused for multiple calls.
913
+ # client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
914
+ #
915
+ # # Create a request. To set request fields, pass in keyword arguments.
916
+ # request = Google::Cloud::Compute::V1::MoveDiskProjectRequest.new
917
+ #
918
+ # # Call the move_disk method.
919
+ # result = client.move_disk request
920
+ #
921
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
922
+ # p result
923
+ #
780
924
  def move_disk request, options = nil
781
925
  raise ::ArgumentError, "request must be provided" if request.nil?
782
926
 
@@ -851,6 +995,22 @@ module Google
851
995
  # @return [::Gapic::GenericLRO::Operation]
852
996
  #
853
997
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
998
+ #
999
+ # @example Basic example
1000
+ # require "google/cloud/compute/v1"
1001
+ #
1002
+ # # Create a client object. The client can be reused for multiple calls.
1003
+ # client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
1004
+ #
1005
+ # # Create a request. To set request fields, pass in keyword arguments.
1006
+ # request = Google::Cloud::Compute::V1::MoveInstanceProjectRequest.new
1007
+ #
1008
+ # # Call the move_instance method.
1009
+ # result = client.move_instance request
1010
+ #
1011
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1012
+ # p result
1013
+ #
854
1014
  def move_instance request, options = nil
855
1015
  raise ::ArgumentError, "request must be provided" if request.nil?
856
1016
 
@@ -925,6 +1085,22 @@ module Google
925
1085
  # @return [::Gapic::GenericLRO::Operation]
926
1086
  #
927
1087
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1088
+ #
1089
+ # @example Basic example
1090
+ # require "google/cloud/compute/v1"
1091
+ #
1092
+ # # Create a client object. The client can be reused for multiple calls.
1093
+ # client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
1094
+ #
1095
+ # # Create a request. To set request fields, pass in keyword arguments.
1096
+ # request = Google::Cloud::Compute::V1::SetCommonInstanceMetadataProjectRequest.new
1097
+ #
1098
+ # # Call the set_common_instance_metadata method.
1099
+ # result = client.set_common_instance_metadata request
1100
+ #
1101
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1102
+ # p result
1103
+ #
928
1104
  def set_common_instance_metadata request, options = nil
929
1105
  raise ::ArgumentError, "request must be provided" if request.nil?
930
1106
 
@@ -999,6 +1175,22 @@ module Google
999
1175
  # @return [::Gapic::GenericLRO::Operation]
1000
1176
  #
1001
1177
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1178
+ #
1179
+ # @example Basic example
1180
+ # require "google/cloud/compute/v1"
1181
+ #
1182
+ # # Create a client object. The client can be reused for multiple calls.
1183
+ # client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
1184
+ #
1185
+ # # Create a request. To set request fields, pass in keyword arguments.
1186
+ # request = Google::Cloud::Compute::V1::SetDefaultNetworkTierProjectRequest.new
1187
+ #
1188
+ # # Call the set_default_network_tier method.
1189
+ # result = client.set_default_network_tier request
1190
+ #
1191
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1192
+ # p result
1193
+ #
1002
1194
  def set_default_network_tier request, options = nil
1003
1195
  raise ::ArgumentError, "request must be provided" if request.nil?
1004
1196
 
@@ -1073,6 +1265,22 @@ module Google
1073
1265
  # @return [::Gapic::GenericLRO::Operation]
1074
1266
  #
1075
1267
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1268
+ #
1269
+ # @example Basic example
1270
+ # require "google/cloud/compute/v1"
1271
+ #
1272
+ # # Create a client object. The client can be reused for multiple calls.
1273
+ # client = Google::Cloud::Compute::V1::Projects::Rest::Client.new
1274
+ #
1275
+ # # Create a request. To set request fields, pass in keyword arguments.
1276
+ # request = Google::Cloud::Compute::V1::SetUsageExportBucketProjectRequest.new
1277
+ #
1278
+ # # Call the set_usage_export_bucket method.
1279
+ # result = client.set_usage_export_bucket request
1280
+ #
1281
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1282
+ # p result
1283
+ #
1076
1284
  def set_usage_export_bucket request, options = nil
1077
1285
  raise ::ArgumentError, "request must be provided" if request.nil?
1078
1286
 
@@ -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::PublicAdvertisedPrefixes::Rest::Client.new
203
+ #
204
+ # # Create a request. To set request fields, pass in keyword arguments.
205
+ # request = Google::Cloud::Compute::V1::DeletePublicAdvertisedPrefixeRequest.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
 
@@ -266,6 +282,22 @@ module Google
266
282
  # @return [::Google::Cloud::Compute::V1::PublicAdvertisedPrefix]
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::PublicAdvertisedPrefixes::Rest::Client.new
291
+ #
292
+ # # Create a request. To set request fields, pass in keyword arguments.
293
+ # request = Google::Cloud::Compute::V1::GetPublicAdvertisedPrefixeRequest.new
294
+ #
295
+ # # Call the get method.
296
+ # result = client.get request
297
+ #
298
+ # # The returned object is of type Google::Cloud::Compute::V1::PublicAdvertisedPrefix.
299
+ # p result
300
+ #
269
301
  def get request, options = nil
270
302
  raise ::ArgumentError, "request must be provided" if request.nil?
271
303
 
@@ -332,6 +364,22 @@ module Google
332
364
  # @return [::Gapic::GenericLRO::Operation]
333
365
  #
334
366
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
367
+ #
368
+ # @example Basic example
369
+ # require "google/cloud/compute/v1"
370
+ #
371
+ # # Create a client object. The client can be reused for multiple calls.
372
+ # client = Google::Cloud::Compute::V1::PublicAdvertisedPrefixes::Rest::Client.new
373
+ #
374
+ # # Create a request. To set request fields, pass in keyword arguments.
375
+ # request = Google::Cloud::Compute::V1::InsertPublicAdvertisedPrefixeRequest.new
376
+ #
377
+ # # Call the insert method.
378
+ # result = client.insert request
379
+ #
380
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
381
+ # p result
382
+ #
335
383
  def insert request, options = nil
336
384
  raise ::ArgumentError, "request must be provided" if request.nil?
337
385
 
@@ -412,6 +460,22 @@ module Google
412
460
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::PublicAdvertisedPrefix>]
413
461
  #
414
462
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
463
+ #
464
+ # @example Basic example
465
+ # require "google/cloud/compute/v1"
466
+ #
467
+ # # Create a client object. The client can be reused for multiple calls.
468
+ # client = Google::Cloud::Compute::V1::PublicAdvertisedPrefixes::Rest::Client.new
469
+ #
470
+ # # Create a request. To set request fields, pass in keyword arguments.
471
+ # request = Google::Cloud::Compute::V1::ListPublicAdvertisedPrefixesRequest.new
472
+ #
473
+ # # Call the list method.
474
+ # result = client.list request
475
+ #
476
+ # # The returned object is of type Google::Cloud::Compute::V1::PublicAdvertisedPrefixList.
477
+ # p result
478
+ #
415
479
  def list request, options = nil
416
480
  raise ::ArgumentError, "request must be provided" if request.nil?
417
481
 
@@ -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::PublicAdvertisedPrefixes::Rest::Client.new
554
+ #
555
+ # # Create a request. To set request fields, pass in keyword arguments.
556
+ # request = Google::Cloud::Compute::V1::PatchPublicAdvertisedPrefixeRequest.new
557
+ #
558
+ # # Call the patch method.
559
+ # result = client.patch request
560
+ #
561
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
562
+ # p result
563
+ #
484
564
  def patch request, options = nil
485
565
  raise ::ArgumentError, "request must be provided" if request.nil?
486
566
 
@@ -207,6 +207,22 @@ module Google
207
207
  # @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::PublicDelegatedPrefixesScopedList>]
208
208
  #
209
209
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
210
+ #
211
+ # @example Basic example
212
+ # require "google/cloud/compute/v1"
213
+ #
214
+ # # Create a client object. The client can be reused for multiple calls.
215
+ # client = Google::Cloud::Compute::V1::PublicDelegatedPrefixes::Rest::Client.new
216
+ #
217
+ # # Create a request. To set request fields, pass in keyword arguments.
218
+ # request = Google::Cloud::Compute::V1::AggregatedListPublicDelegatedPrefixesRequest.new
219
+ #
220
+ # # Call the aggregated_list method.
221
+ # result = client.aggregated_list request
222
+ #
223
+ # # The returned object is of type Google::Cloud::Compute::V1::PublicDelegatedPrefixAggregatedList.
224
+ # p result
225
+ #
210
226
  def aggregated_list request, options = nil
211
227
  raise ::ArgumentError, "request must be provided" if request.nil?
212
228
 
@@ -276,6 +292,22 @@ module Google
276
292
  # @return [::Gapic::GenericLRO::Operation]
277
293
  #
278
294
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
295
+ #
296
+ # @example Basic example
297
+ # require "google/cloud/compute/v1"
298
+ #
299
+ # # Create a client object. The client can be reused for multiple calls.
300
+ # client = Google::Cloud::Compute::V1::PublicDelegatedPrefixes::Rest::Client.new
301
+ #
302
+ # # Create a request. To set request fields, pass in keyword arguments.
303
+ # request = Google::Cloud::Compute::V1::DeletePublicDelegatedPrefixeRequest.new
304
+ #
305
+ # # Call the delete method.
306
+ # result = client.delete request
307
+ #
308
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
309
+ # p result
310
+ #
279
311
  def delete request, options = nil
280
312
  raise ::ArgumentError, "request must be provided" if request.nil?
281
313
 
@@ -351,6 +383,22 @@ module Google
351
383
  # @return [::Google::Cloud::Compute::V1::PublicDelegatedPrefix]
352
384
  #
353
385
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
386
+ #
387
+ # @example Basic example
388
+ # require "google/cloud/compute/v1"
389
+ #
390
+ # # Create a client object. The client can be reused for multiple calls.
391
+ # client = Google::Cloud::Compute::V1::PublicDelegatedPrefixes::Rest::Client.new
392
+ #
393
+ # # Create a request. To set request fields, pass in keyword arguments.
394
+ # request = Google::Cloud::Compute::V1::GetPublicDelegatedPrefixeRequest.new
395
+ #
396
+ # # Call the get method.
397
+ # result = client.get request
398
+ #
399
+ # # The returned object is of type Google::Cloud::Compute::V1::PublicDelegatedPrefix.
400
+ # p result
401
+ #
354
402
  def get request, options = nil
355
403
  raise ::ArgumentError, "request must be provided" if request.nil?
356
404
 
@@ -419,6 +467,22 @@ module Google
419
467
  # @return [::Gapic::GenericLRO::Operation]
420
468
  #
421
469
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
470
+ #
471
+ # @example Basic example
472
+ # require "google/cloud/compute/v1"
473
+ #
474
+ # # Create a client object. The client can be reused for multiple calls.
475
+ # client = Google::Cloud::Compute::V1::PublicDelegatedPrefixes::Rest::Client.new
476
+ #
477
+ # # Create a request. To set request fields, pass in keyword arguments.
478
+ # request = Google::Cloud::Compute::V1::InsertPublicDelegatedPrefixeRequest.new
479
+ #
480
+ # # Call the insert method.
481
+ # result = client.insert request
482
+ #
483
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
484
+ # p result
485
+ #
422
486
  def insert request, options = nil
423
487
  raise ::ArgumentError, "request must be provided" if request.nil?
424
488
 
@@ -502,6 +566,22 @@ module Google
502
566
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::PublicDelegatedPrefix>]
503
567
  #
504
568
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
569
+ #
570
+ # @example Basic example
571
+ # require "google/cloud/compute/v1"
572
+ #
573
+ # # Create a client object. The client can be reused for multiple calls.
574
+ # client = Google::Cloud::Compute::V1::PublicDelegatedPrefixes::Rest::Client.new
575
+ #
576
+ # # Create a request. To set request fields, pass in keyword arguments.
577
+ # request = Google::Cloud::Compute::V1::ListPublicDelegatedPrefixesRequest.new
578
+ #
579
+ # # Call the list method.
580
+ # result = client.list request
581
+ #
582
+ # # The returned object is of type Google::Cloud::Compute::V1::PublicDelegatedPrefixList.
583
+ # p result
584
+ #
505
585
  def list request, options = nil
506
586
  raise ::ArgumentError, "request must be provided" if request.nil?
507
587
 
@@ -573,6 +653,22 @@ module Google
573
653
  # @return [::Gapic::GenericLRO::Operation]
574
654
  #
575
655
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
656
+ #
657
+ # @example Basic example
658
+ # require "google/cloud/compute/v1"
659
+ #
660
+ # # Create a client object. The client can be reused for multiple calls.
661
+ # client = Google::Cloud::Compute::V1::PublicDelegatedPrefixes::Rest::Client.new
662
+ #
663
+ # # Create a request. To set request fields, pass in keyword arguments.
664
+ # request = Google::Cloud::Compute::V1::PatchPublicDelegatedPrefixeRequest.new
665
+ #
666
+ # # Call the patch method.
667
+ # result = client.patch request
668
+ #
669
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
670
+ # p result
671
+ #
576
672
  def patch request, options = nil
577
673
  raise ::ArgumentError, "request must be provided" if request.nil?
578
674
 
@@ -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::RegionAutoscalers::Rest::Client.new
207
+ #
208
+ # # Create a request. To set request fields, pass in keyword arguments.
209
+ # request = Google::Cloud::Compute::V1::DeleteRegionAutoscalerRequest.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::Autoscaler]
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::RegionAutoscalers::Rest::Client.new
298
+ #
299
+ # # Create a request. To set request fields, pass in keyword arguments.
300
+ # request = Google::Cloud::Compute::V1::GetRegionAutoscalerRequest.new
301
+ #
302
+ # # Call the get method.
303
+ # result = client.get request
304
+ #
305
+ # # The returned object is of type Google::Cloud::Compute::V1::Autoscaler.
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::RegionAutoscalers::Rest::Client.new
382
+ #
383
+ # # Create a request. To set request fields, pass in keyword arguments.
384
+ # request = Google::Cloud::Compute::V1::InsertRegionAutoscalerRequest.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::Autoscaler>]
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::RegionAutoscalers::Rest::Client.new
481
+ #
482
+ # # Create a request. To set request fields, pass in keyword arguments.
483
+ # request = Google::Cloud::Compute::V1::ListRegionAutoscalersRequest.new
484
+ #
485
+ # # Call the list method.
486
+ # result = client.list request
487
+ #
488
+ # # The returned object is of type Google::Cloud::Compute::V1::RegionAutoscalerList.
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::RegionAutoscalers::Rest::Client.new
568
+ #
569
+ # # Create a request. To set request fields, pass in keyword arguments.
570
+ # request = Google::Cloud::Compute::V1::PatchRegionAutoscalerRequest.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::RegionAutoscalers::Rest::Client.new
663
+ #
664
+ # # Create a request. To set request fields, pass in keyword arguments.
665
+ # request = Google::Cloud::Compute::V1::UpdateRegionAutoscalerRequest.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