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
@@ -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::RegionTargetTcpProxies::Rest::Client.new
203
+ #
204
+ # # Create a request. To set request fields, pass in keyword arguments.
205
+ # request = Google::Cloud::Compute::V1::DeleteRegionTargetTcpProxyRequest.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::TargetTcpProxy]
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::RegionTargetTcpProxies::Rest::Client.new
294
+ #
295
+ # # Create a request. To set request fields, pass in keyword arguments.
296
+ # request = Google::Cloud::Compute::V1::GetRegionTargetTcpProxyRequest.new
297
+ #
298
+ # # Call the get method.
299
+ # result = client.get request
300
+ #
301
+ # # The returned object is of type Google::Cloud::Compute::V1::TargetTcpProxy.
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::RegionTargetTcpProxies::Rest::Client.new
378
+ #
379
+ # # Create a request. To set request fields, pass in keyword arguments.
380
+ # request = Google::Cloud::Compute::V1::InsertRegionTargetTcpProxyRequest.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::TargetTcpProxy>]
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::RegionTargetTcpProxies::Rest::Client.new
477
+ #
478
+ # # Create a request. To set request fields, pass in keyword arguments.
479
+ # request = Google::Cloud::Compute::V1::ListRegionTargetTcpProxiesRequest.new
480
+ #
481
+ # # Call the list method.
482
+ # result = client.list request
483
+ #
484
+ # # The returned object is of type Google::Cloud::Compute::V1::TargetTcpProxyList.
485
+ # p result
486
+ #
423
487
  def list request, options = nil
424
488
  raise ::ArgumentError, "request must be provided" if request.nil?
425
489
 
@@ -200,6 +200,22 @@ module Google
200
200
  # @return [::Gapic::GenericLRO::Operation]
201
201
  #
202
202
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
203
+ #
204
+ # @example Basic example
205
+ # require "google/cloud/compute/v1"
206
+ #
207
+ # # Create a client object. The client can be reused for multiple calls.
208
+ # client = Google::Cloud::Compute::V1::RegionUrlMaps::Rest::Client.new
209
+ #
210
+ # # Create a request. To set request fields, pass in keyword arguments.
211
+ # request = Google::Cloud::Compute::V1::DeleteRegionUrlMapRequest.new
212
+ #
213
+ # # Call the delete method.
214
+ # result = client.delete request
215
+ #
216
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
217
+ # p result
218
+ #
203
219
  def delete request, options = nil
204
220
  raise ::ArgumentError, "request must be provided" if request.nil?
205
221
 
@@ -275,6 +291,22 @@ module Google
275
291
  # @return [::Google::Cloud::Compute::V1::UrlMap]
276
292
  #
277
293
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
294
+ #
295
+ # @example Basic example
296
+ # require "google/cloud/compute/v1"
297
+ #
298
+ # # Create a client object. The client can be reused for multiple calls.
299
+ # client = Google::Cloud::Compute::V1::RegionUrlMaps::Rest::Client.new
300
+ #
301
+ # # Create a request. To set request fields, pass in keyword arguments.
302
+ # request = Google::Cloud::Compute::V1::GetRegionUrlMapRequest.new
303
+ #
304
+ # # Call the get method.
305
+ # result = client.get request
306
+ #
307
+ # # The returned object is of type Google::Cloud::Compute::V1::UrlMap.
308
+ # p result
309
+ #
278
310
  def get request, options = nil
279
311
  raise ::ArgumentError, "request must be provided" if request.nil?
280
312
 
@@ -343,6 +375,22 @@ module Google
343
375
  # @return [::Gapic::GenericLRO::Operation]
344
376
  #
345
377
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
378
+ #
379
+ # @example Basic example
380
+ # require "google/cloud/compute/v1"
381
+ #
382
+ # # Create a client object. The client can be reused for multiple calls.
383
+ # client = Google::Cloud::Compute::V1::RegionUrlMaps::Rest::Client.new
384
+ #
385
+ # # Create a request. To set request fields, pass in keyword arguments.
386
+ # request = Google::Cloud::Compute::V1::InsertRegionUrlMapRequest.new
387
+ #
388
+ # # Call the insert method.
389
+ # result = client.insert request
390
+ #
391
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
392
+ # p result
393
+ #
346
394
  def insert request, options = nil
347
395
  raise ::ArgumentError, "request must be provided" if request.nil?
348
396
 
@@ -426,6 +474,22 @@ module Google
426
474
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::UrlMap>]
427
475
  #
428
476
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
477
+ #
478
+ # @example Basic example
479
+ # require "google/cloud/compute/v1"
480
+ #
481
+ # # Create a client object. The client can be reused for multiple calls.
482
+ # client = Google::Cloud::Compute::V1::RegionUrlMaps::Rest::Client.new
483
+ #
484
+ # # Create a request. To set request fields, pass in keyword arguments.
485
+ # request = Google::Cloud::Compute::V1::ListRegionUrlMapsRequest.new
486
+ #
487
+ # # Call the list method.
488
+ # result = client.list request
489
+ #
490
+ # # The returned object is of type Google::Cloud::Compute::V1::UrlMapList.
491
+ # p result
492
+ #
429
493
  def list request, options = nil
430
494
  raise ::ArgumentError, "request must be provided" if request.nil?
431
495
 
@@ -497,6 +561,22 @@ module Google
497
561
  # @return [::Gapic::GenericLRO::Operation]
498
562
  #
499
563
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
564
+ #
565
+ # @example Basic example
566
+ # require "google/cloud/compute/v1"
567
+ #
568
+ # # Create a client object. The client can be reused for multiple calls.
569
+ # client = Google::Cloud::Compute::V1::RegionUrlMaps::Rest::Client.new
570
+ #
571
+ # # Create a request. To set request fields, pass in keyword arguments.
572
+ # request = Google::Cloud::Compute::V1::PatchRegionUrlMapRequest.new
573
+ #
574
+ # # Call the patch method.
575
+ # result = client.patch request
576
+ #
577
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
578
+ # p result
579
+ #
500
580
  def patch request, options = nil
501
581
  raise ::ArgumentError, "request must be provided" if request.nil?
502
582
 
@@ -576,6 +656,22 @@ module Google
576
656
  # @return [::Gapic::GenericLRO::Operation]
577
657
  #
578
658
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
659
+ #
660
+ # @example Basic example
661
+ # require "google/cloud/compute/v1"
662
+ #
663
+ # # Create a client object. The client can be reused for multiple calls.
664
+ # client = Google::Cloud::Compute::V1::RegionUrlMaps::Rest::Client.new
665
+ #
666
+ # # Create a request. To set request fields, pass in keyword arguments.
667
+ # request = Google::Cloud::Compute::V1::UpdateRegionUrlMapRequest.new
668
+ #
669
+ # # Call the update method.
670
+ # result = client.update request
671
+ #
672
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
673
+ # p result
674
+ #
579
675
  def update request, options = nil
580
676
  raise ::ArgumentError, "request must be provided" if request.nil?
581
677
 
@@ -653,6 +749,22 @@ module Google
653
749
  # @return [::Google::Cloud::Compute::V1::UrlMapsValidateResponse]
654
750
  #
655
751
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
752
+ #
753
+ # @example Basic example
754
+ # require "google/cloud/compute/v1"
755
+ #
756
+ # # Create a client object. The client can be reused for multiple calls.
757
+ # client = Google::Cloud::Compute::V1::RegionUrlMaps::Rest::Client.new
758
+ #
759
+ # # Create a request. To set request fields, pass in keyword arguments.
760
+ # request = Google::Cloud::Compute::V1::ValidateRegionUrlMapRequest.new
761
+ #
762
+ # # Call the validate method.
763
+ # result = client.validate request
764
+ #
765
+ # # The returned object is of type Google::Cloud::Compute::V1::UrlMapsValidateResponse.
766
+ # p result
767
+ #
656
768
  def validate request, options = nil
657
769
  raise ::ArgumentError, "request must be provided" if request.nil?
658
770
 
@@ -172,6 +172,22 @@ module Google
172
172
  # @return [::Google::Cloud::Compute::V1::Region]
173
173
  #
174
174
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
175
+ #
176
+ # @example Basic example
177
+ # require "google/cloud/compute/v1"
178
+ #
179
+ # # Create a client object. The client can be reused for multiple calls.
180
+ # client = Google::Cloud::Compute::V1::Regions::Rest::Client.new
181
+ #
182
+ # # Create a request. To set request fields, pass in keyword arguments.
183
+ # request = Google::Cloud::Compute::V1::GetRegionRequest.new
184
+ #
185
+ # # Call the get method.
186
+ # result = client.get request
187
+ #
188
+ # # The returned object is of type Google::Cloud::Compute::V1::Region.
189
+ # p result
190
+ #
175
191
  def get request, options = nil
176
192
  raise ::ArgumentError, "request must be provided" if request.nil?
177
193
 
@@ -244,6 +260,22 @@ module Google
244
260
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Region>]
245
261
  #
246
262
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
263
+ #
264
+ # @example Basic example
265
+ # require "google/cloud/compute/v1"
266
+ #
267
+ # # Create a client object. The client can be reused for multiple calls.
268
+ # client = Google::Cloud::Compute::V1::Regions::Rest::Client.new
269
+ #
270
+ # # Create a request. To set request fields, pass in keyword arguments.
271
+ # request = Google::Cloud::Compute::V1::ListRegionsRequest.new
272
+ #
273
+ # # Call the list method.
274
+ # result = client.list request
275
+ #
276
+ # # The returned object is of type Google::Cloud::Compute::V1::RegionList.
277
+ # p result
278
+ #
247
279
  def list request, options = nil
248
280
  raise ::ArgumentError, "request must be provided" if request.nil?
249
281
 
@@ -218,6 +218,22 @@ module Google
218
218
  # @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::ReservationsScopedList>]
219
219
  #
220
220
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
221
+ #
222
+ # @example Basic example
223
+ # require "google/cloud/compute/v1"
224
+ #
225
+ # # Create a client object. The client can be reused for multiple calls.
226
+ # client = Google::Cloud::Compute::V1::Reservations::Rest::Client.new
227
+ #
228
+ # # Create a request. To set request fields, pass in keyword arguments.
229
+ # request = Google::Cloud::Compute::V1::AggregatedListReservationsRequest.new
230
+ #
231
+ # # Call the aggregated_list method.
232
+ # result = client.aggregated_list request
233
+ #
234
+ # # The returned object is of type Google::Cloud::Compute::V1::ReservationAggregatedList.
235
+ # p result
236
+ #
221
237
  def aggregated_list request, options = nil
222
238
  raise ::ArgumentError, "request must be provided" if request.nil?
223
239
 
@@ -287,6 +303,22 @@ module Google
287
303
  # @return [::Gapic::GenericLRO::Operation]
288
304
  #
289
305
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
306
+ #
307
+ # @example Basic example
308
+ # require "google/cloud/compute/v1"
309
+ #
310
+ # # Create a client object. The client can be reused for multiple calls.
311
+ # client = Google::Cloud::Compute::V1::Reservations::Rest::Client.new
312
+ #
313
+ # # Create a request. To set request fields, pass in keyword arguments.
314
+ # request = Google::Cloud::Compute::V1::DeleteReservationRequest.new
315
+ #
316
+ # # Call the delete method.
317
+ # result = client.delete request
318
+ #
319
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
320
+ # p result
321
+ #
290
322
  def delete request, options = nil
291
323
  raise ::ArgumentError, "request must be provided" if request.nil?
292
324
 
@@ -362,6 +394,22 @@ module Google
362
394
  # @return [::Google::Cloud::Compute::V1::Reservation]
363
395
  #
364
396
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
397
+ #
398
+ # @example Basic example
399
+ # require "google/cloud/compute/v1"
400
+ #
401
+ # # Create a client object. The client can be reused for multiple calls.
402
+ # client = Google::Cloud::Compute::V1::Reservations::Rest::Client.new
403
+ #
404
+ # # Create a request. To set request fields, pass in keyword arguments.
405
+ # request = Google::Cloud::Compute::V1::GetReservationRequest.new
406
+ #
407
+ # # Call the get method.
408
+ # result = client.get request
409
+ #
410
+ # # The returned object is of type Google::Cloud::Compute::V1::Reservation.
411
+ # p result
412
+ #
365
413
  def get request, options = nil
366
414
  raise ::ArgumentError, "request must be provided" if request.nil?
367
415
 
@@ -430,6 +478,22 @@ module Google
430
478
  # @return [::Google::Cloud::Compute::V1::Policy]
431
479
  #
432
480
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
481
+ #
482
+ # @example Basic example
483
+ # require "google/cloud/compute/v1"
484
+ #
485
+ # # Create a client object. The client can be reused for multiple calls.
486
+ # client = Google::Cloud::Compute::V1::Reservations::Rest::Client.new
487
+ #
488
+ # # Create a request. To set request fields, pass in keyword arguments.
489
+ # request = Google::Cloud::Compute::V1::GetIamPolicyReservationRequest.new
490
+ #
491
+ # # Call the get_iam_policy method.
492
+ # result = client.get_iam_policy request
493
+ #
494
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
495
+ # p result
496
+ #
433
497
  def get_iam_policy request, options = nil
434
498
  raise ::ArgumentError, "request must be provided" if request.nil?
435
499
 
@@ -498,6 +562,22 @@ module Google
498
562
  # @return [::Gapic::GenericLRO::Operation]
499
563
  #
500
564
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
565
+ #
566
+ # @example Basic example
567
+ # require "google/cloud/compute/v1"
568
+ #
569
+ # # Create a client object. The client can be reused for multiple calls.
570
+ # client = Google::Cloud::Compute::V1::Reservations::Rest::Client.new
571
+ #
572
+ # # Create a request. To set request fields, pass in keyword arguments.
573
+ # request = Google::Cloud::Compute::V1::InsertReservationRequest.new
574
+ #
575
+ # # Call the insert method.
576
+ # result = client.insert request
577
+ #
578
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
579
+ # p result
580
+ #
501
581
  def insert request, options = nil
502
582
  raise ::ArgumentError, "request must be provided" if request.nil?
503
583
 
@@ -581,6 +661,22 @@ module Google
581
661
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Reservation>]
582
662
  #
583
663
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
664
+ #
665
+ # @example Basic example
666
+ # require "google/cloud/compute/v1"
667
+ #
668
+ # # Create a client object. The client can be reused for multiple calls.
669
+ # client = Google::Cloud::Compute::V1::Reservations::Rest::Client.new
670
+ #
671
+ # # Create a request. To set request fields, pass in keyword arguments.
672
+ # request = Google::Cloud::Compute::V1::ListReservationsRequest.new
673
+ #
674
+ # # Call the list method.
675
+ # result = client.list request
676
+ #
677
+ # # The returned object is of type Google::Cloud::Compute::V1::ReservationList.
678
+ # p result
679
+ #
584
680
  def list request, options = nil
585
681
  raise ::ArgumentError, "request must be provided" if request.nil?
586
682
 
@@ -652,6 +748,22 @@ module Google
652
748
  # @return [::Gapic::GenericLRO::Operation]
653
749
  #
654
750
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
751
+ #
752
+ # @example Basic example
753
+ # require "google/cloud/compute/v1"
754
+ #
755
+ # # Create a client object. The client can be reused for multiple calls.
756
+ # client = Google::Cloud::Compute::V1::Reservations::Rest::Client.new
757
+ #
758
+ # # Create a request. To set request fields, pass in keyword arguments.
759
+ # request = Google::Cloud::Compute::V1::ResizeReservationRequest.new
760
+ #
761
+ # # Call the resize method.
762
+ # result = client.resize request
763
+ #
764
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
765
+ # p result
766
+ #
655
767
  def resize request, options = nil
656
768
  raise ::ArgumentError, "request must be provided" if request.nil?
657
769
 
@@ -729,6 +841,22 @@ module Google
729
841
  # @return [::Google::Cloud::Compute::V1::Policy]
730
842
  #
731
843
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
844
+ #
845
+ # @example Basic example
846
+ # require "google/cloud/compute/v1"
847
+ #
848
+ # # Create a client object. The client can be reused for multiple calls.
849
+ # client = Google::Cloud::Compute::V1::Reservations::Rest::Client.new
850
+ #
851
+ # # Create a request. To set request fields, pass in keyword arguments.
852
+ # request = Google::Cloud::Compute::V1::SetIamPolicyReservationRequest.new
853
+ #
854
+ # # Call the set_iam_policy method.
855
+ # result = client.set_iam_policy request
856
+ #
857
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
858
+ # p result
859
+ #
732
860
  def set_iam_policy request, options = nil
733
861
  raise ::ArgumentError, "request must be provided" if request.nil?
734
862
 
@@ -797,6 +925,22 @@ module Google
797
925
  # @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
798
926
  #
799
927
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
928
+ #
929
+ # @example Basic example
930
+ # require "google/cloud/compute/v1"
931
+ #
932
+ # # Create a client object. The client can be reused for multiple calls.
933
+ # client = Google::Cloud::Compute::V1::Reservations::Rest::Client.new
934
+ #
935
+ # # Create a request. To set request fields, pass in keyword arguments.
936
+ # request = Google::Cloud::Compute::V1::TestIamPermissionsReservationRequest.new
937
+ #
938
+ # # Call the test_iam_permissions method.
939
+ # result = client.test_iam_permissions request
940
+ #
941
+ # # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
942
+ # p result
943
+ #
800
944
  def test_iam_permissions request, options = nil
801
945
  raise ::ArgumentError, "request must be provided" if request.nil?
802
946
 
@@ -870,6 +1014,22 @@ module Google
870
1014
  # @return [::Gapic::GenericLRO::Operation]
871
1015
  #
872
1016
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1017
+ #
1018
+ # @example Basic example
1019
+ # require "google/cloud/compute/v1"
1020
+ #
1021
+ # # Create a client object. The client can be reused for multiple calls.
1022
+ # client = Google::Cloud::Compute::V1::Reservations::Rest::Client.new
1023
+ #
1024
+ # # Create a request. To set request fields, pass in keyword arguments.
1025
+ # request = Google::Cloud::Compute::V1::UpdateReservationRequest.new
1026
+ #
1027
+ # # Call the update method.
1028
+ # result = client.update request
1029
+ #
1030
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1031
+ # p result
1032
+ #
873
1033
  def update request, options = nil
874
1034
  raise ::ArgumentError, "request must be provided" if request.nil?
875
1035