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
@@ -205,6 +205,22 @@ module Google
205
205
  # @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::SslCertificatesScopedList>]
206
206
  #
207
207
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
208
+ #
209
+ # @example Basic example
210
+ # require "google/cloud/compute/v1"
211
+ #
212
+ # # Create a client object. The client can be reused for multiple calls.
213
+ # client = Google::Cloud::Compute::V1::SslCertificates::Rest::Client.new
214
+ #
215
+ # # Create a request. To set request fields, pass in keyword arguments.
216
+ # request = Google::Cloud::Compute::V1::AggregatedListSslCertificatesRequest.new
217
+ #
218
+ # # Call the aggregated_list method.
219
+ # result = client.aggregated_list request
220
+ #
221
+ # # The returned object is of type Google::Cloud::Compute::V1::SslCertificateAggregatedList.
222
+ # p result
223
+ #
208
224
  def aggregated_list request, options = nil
209
225
  raise ::ArgumentError, "request must be provided" if request.nil?
210
226
 
@@ -272,6 +288,22 @@ module Google
272
288
  # @return [::Gapic::GenericLRO::Operation]
273
289
  #
274
290
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
291
+ #
292
+ # @example Basic example
293
+ # require "google/cloud/compute/v1"
294
+ #
295
+ # # Create a client object. The client can be reused for multiple calls.
296
+ # client = Google::Cloud::Compute::V1::SslCertificates::Rest::Client.new
297
+ #
298
+ # # Create a request. To set request fields, pass in keyword arguments.
299
+ # request = Google::Cloud::Compute::V1::DeleteSslCertificateRequest.new
300
+ #
301
+ # # Call the delete method.
302
+ # result = client.delete request
303
+ #
304
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
305
+ # p result
306
+ #
275
307
  def delete request, options = nil
276
308
  raise ::ArgumentError, "request must be provided" if request.nil?
277
309
 
@@ -344,6 +376,22 @@ module Google
344
376
  # @return [::Google::Cloud::Compute::V1::SslCertificate]
345
377
  #
346
378
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
379
+ #
380
+ # @example Basic example
381
+ # require "google/cloud/compute/v1"
382
+ #
383
+ # # Create a client object. The client can be reused for multiple calls.
384
+ # client = Google::Cloud::Compute::V1::SslCertificates::Rest::Client.new
385
+ #
386
+ # # Create a request. To set request fields, pass in keyword arguments.
387
+ # request = Google::Cloud::Compute::V1::GetSslCertificateRequest.new
388
+ #
389
+ # # Call the get method.
390
+ # result = client.get request
391
+ #
392
+ # # The returned object is of type Google::Cloud::Compute::V1::SslCertificate.
393
+ # p result
394
+ #
347
395
  def get request, options = nil
348
396
  raise ::ArgumentError, "request must be provided" if request.nil?
349
397
 
@@ -410,6 +458,22 @@ module Google
410
458
  # @return [::Gapic::GenericLRO::Operation]
411
459
  #
412
460
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
461
+ #
462
+ # @example Basic example
463
+ # require "google/cloud/compute/v1"
464
+ #
465
+ # # Create a client object. The client can be reused for multiple calls.
466
+ # client = Google::Cloud::Compute::V1::SslCertificates::Rest::Client.new
467
+ #
468
+ # # Create a request. To set request fields, pass in keyword arguments.
469
+ # request = Google::Cloud::Compute::V1::InsertSslCertificateRequest.new
470
+ #
471
+ # # Call the insert method.
472
+ # result = client.insert request
473
+ #
474
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
475
+ # p result
476
+ #
413
477
  def insert request, options = nil
414
478
  raise ::ArgumentError, "request must be provided" if request.nil?
415
479
 
@@ -490,6 +554,22 @@ module Google
490
554
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::SslCertificate>]
491
555
  #
492
556
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
557
+ #
558
+ # @example Basic example
559
+ # require "google/cloud/compute/v1"
560
+ #
561
+ # # Create a client object. The client can be reused for multiple calls.
562
+ # client = Google::Cloud::Compute::V1::SslCertificates::Rest::Client.new
563
+ #
564
+ # # Create a request. To set request fields, pass in keyword arguments.
565
+ # request = Google::Cloud::Compute::V1::ListSslCertificatesRequest.new
566
+ #
567
+ # # Call the list method.
568
+ # result = client.list request
569
+ #
570
+ # # The returned object is of type Google::Cloud::Compute::V1::SslCertificateList.
571
+ # p result
572
+ #
493
573
  def list request, options = nil
494
574
  raise ::ArgumentError, "request must be provided" if request.nil?
495
575
 
@@ -212,6 +212,22 @@ module Google
212
212
  # @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::SslPoliciesScopedList>]
213
213
  #
214
214
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
215
+ #
216
+ # @example Basic example
217
+ # require "google/cloud/compute/v1"
218
+ #
219
+ # # Create a client object. The client can be reused for multiple calls.
220
+ # client = Google::Cloud::Compute::V1::SslPolicies::Rest::Client.new
221
+ #
222
+ # # Create a request. To set request fields, pass in keyword arguments.
223
+ # request = Google::Cloud::Compute::V1::AggregatedListSslPoliciesRequest.new
224
+ #
225
+ # # Call the aggregated_list method.
226
+ # result = client.aggregated_list request
227
+ #
228
+ # # The returned object is of type Google::Cloud::Compute::V1::SslPoliciesAggregatedList.
229
+ # p result
230
+ #
215
231
  def aggregated_list request, options = nil
216
232
  raise ::ArgumentError, "request must be provided" if request.nil?
217
233
 
@@ -279,6 +295,22 @@ module Google
279
295
  # @return [::Gapic::GenericLRO::Operation]
280
296
  #
281
297
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
298
+ #
299
+ # @example Basic example
300
+ # require "google/cloud/compute/v1"
301
+ #
302
+ # # Create a client object. The client can be reused for multiple calls.
303
+ # client = Google::Cloud::Compute::V1::SslPolicies::Rest::Client.new
304
+ #
305
+ # # Create a request. To set request fields, pass in keyword arguments.
306
+ # request = Google::Cloud::Compute::V1::DeleteSslPolicyRequest.new
307
+ #
308
+ # # Call the delete method.
309
+ # result = client.delete request
310
+ #
311
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
312
+ # p result
313
+ #
282
314
  def delete request, options = nil
283
315
  raise ::ArgumentError, "request must be provided" if request.nil?
284
316
 
@@ -351,6 +383,22 @@ module Google
351
383
  # @return [::Google::Cloud::Compute::V1::SslPolicy]
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::SslPolicies::Rest::Client.new
392
+ #
393
+ # # Create a request. To set request fields, pass in keyword arguments.
394
+ # request = Google::Cloud::Compute::V1::GetSslPolicyRequest.new
395
+ #
396
+ # # Call the get method.
397
+ # result = client.get request
398
+ #
399
+ # # The returned object is of type Google::Cloud::Compute::V1::SslPolicy.
400
+ # p result
401
+ #
354
402
  def get request, options = nil
355
403
  raise ::ArgumentError, "request must be provided" if request.nil?
356
404
 
@@ -417,6 +465,22 @@ module Google
417
465
  # @return [::Gapic::GenericLRO::Operation]
418
466
  #
419
467
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
468
+ #
469
+ # @example Basic example
470
+ # require "google/cloud/compute/v1"
471
+ #
472
+ # # Create a client object. The client can be reused for multiple calls.
473
+ # client = Google::Cloud::Compute::V1::SslPolicies::Rest::Client.new
474
+ #
475
+ # # Create a request. To set request fields, pass in keyword arguments.
476
+ # request = Google::Cloud::Compute::V1::InsertSslPolicyRequest.new
477
+ #
478
+ # # Call the insert method.
479
+ # result = client.insert request
480
+ #
481
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
482
+ # p result
483
+ #
420
484
  def insert request, options = nil
421
485
  raise ::ArgumentError, "request must be provided" if request.nil?
422
486
 
@@ -497,6 +561,22 @@ module Google
497
561
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::SslPolicy>]
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::SslPolicies::Rest::Client.new
570
+ #
571
+ # # Create a request. To set request fields, pass in keyword arguments.
572
+ # request = Google::Cloud::Compute::V1::ListSslPoliciesRequest.new
573
+ #
574
+ # # Call the list method.
575
+ # result = client.list request
576
+ #
577
+ # # The returned object is of type Google::Cloud::Compute::V1::SslPoliciesList.
578
+ # p result
579
+ #
500
580
  def list request, options = nil
501
581
  raise ::ArgumentError, "request must be provided" if request.nil?
502
582
 
@@ -570,6 +650,22 @@ module Google
570
650
  # @return [::Google::Cloud::Compute::V1::SslPoliciesListAvailableFeaturesResponse]
571
651
  #
572
652
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
653
+ #
654
+ # @example Basic example
655
+ # require "google/cloud/compute/v1"
656
+ #
657
+ # # Create a client object. The client can be reused for multiple calls.
658
+ # client = Google::Cloud::Compute::V1::SslPolicies::Rest::Client.new
659
+ #
660
+ # # Create a request. To set request fields, pass in keyword arguments.
661
+ # request = Google::Cloud::Compute::V1::ListAvailableFeaturesSslPoliciesRequest.new
662
+ #
663
+ # # Call the list_available_features method.
664
+ # result = client.list_available_features request
665
+ #
666
+ # # The returned object is of type Google::Cloud::Compute::V1::SslPoliciesListAvailableFeaturesResponse.
667
+ # p result
668
+ #
573
669
  def list_available_features request, options = nil
574
670
  raise ::ArgumentError, "request must be provided" if request.nil?
575
671
 
@@ -638,6 +734,22 @@ module Google
638
734
  # @return [::Gapic::GenericLRO::Operation]
639
735
  #
640
736
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
737
+ #
738
+ # @example Basic example
739
+ # require "google/cloud/compute/v1"
740
+ #
741
+ # # Create a client object. The client can be reused for multiple calls.
742
+ # client = Google::Cloud::Compute::V1::SslPolicies::Rest::Client.new
743
+ #
744
+ # # Create a request. To set request fields, pass in keyword arguments.
745
+ # request = Google::Cloud::Compute::V1::PatchSslPolicyRequest.new
746
+ #
747
+ # # Call the patch method.
748
+ # result = client.patch request
749
+ #
750
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
751
+ # p result
752
+ #
641
753
  def patch request, options = nil
642
754
  raise ::ArgumentError, "request must be provided" if request.nil?
643
755
 
@@ -225,6 +225,22 @@ module Google
225
225
  # @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::SubnetworksScopedList>]
226
226
  #
227
227
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
228
+ #
229
+ # @example Basic example
230
+ # require "google/cloud/compute/v1"
231
+ #
232
+ # # Create a client object. The client can be reused for multiple calls.
233
+ # client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
234
+ #
235
+ # # Create a request. To set request fields, pass in keyword arguments.
236
+ # request = Google::Cloud::Compute::V1::AggregatedListSubnetworksRequest.new
237
+ #
238
+ # # Call the aggregated_list method.
239
+ # result = client.aggregated_list request
240
+ #
241
+ # # The returned object is of type Google::Cloud::Compute::V1::SubnetworkAggregatedList.
242
+ # p result
243
+ #
228
244
  def aggregated_list request, options = nil
229
245
  raise ::ArgumentError, "request must be provided" if request.nil?
230
246
 
@@ -294,6 +310,22 @@ module Google
294
310
  # @return [::Gapic::GenericLRO::Operation]
295
311
  #
296
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/cloud/compute/v1"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Cloud::Compute::V1::DeleteSubnetworkRequest.new
322
+ #
323
+ # # Call the delete method.
324
+ # result = client.delete request
325
+ #
326
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
327
+ # p result
328
+ #
297
329
  def delete request, options = nil
298
330
  raise ::ArgumentError, "request must be provided" if request.nil?
299
331
 
@@ -373,6 +405,22 @@ module Google
373
405
  # @return [::Gapic::GenericLRO::Operation]
374
406
  #
375
407
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
408
+ #
409
+ # @example Basic example
410
+ # require "google/cloud/compute/v1"
411
+ #
412
+ # # Create a client object. The client can be reused for multiple calls.
413
+ # client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
414
+ #
415
+ # # Create a request. To set request fields, pass in keyword arguments.
416
+ # request = Google::Cloud::Compute::V1::ExpandIpCidrRangeSubnetworkRequest.new
417
+ #
418
+ # # Call the expand_ip_cidr_range method.
419
+ # result = client.expand_ip_cidr_range request
420
+ #
421
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
422
+ # p result
423
+ #
376
424
  def expand_ip_cidr_range request, options = nil
377
425
  raise ::ArgumentError, "request must be provided" if request.nil?
378
426
 
@@ -448,6 +496,22 @@ module Google
448
496
  # @return [::Google::Cloud::Compute::V1::Subnetwork]
449
497
  #
450
498
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
499
+ #
500
+ # @example Basic example
501
+ # require "google/cloud/compute/v1"
502
+ #
503
+ # # Create a client object. The client can be reused for multiple calls.
504
+ # client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
505
+ #
506
+ # # Create a request. To set request fields, pass in keyword arguments.
507
+ # request = Google::Cloud::Compute::V1::GetSubnetworkRequest.new
508
+ #
509
+ # # Call the get method.
510
+ # result = client.get request
511
+ #
512
+ # # The returned object is of type Google::Cloud::Compute::V1::Subnetwork.
513
+ # p result
514
+ #
451
515
  def get request, options = nil
452
516
  raise ::ArgumentError, "request must be provided" if request.nil?
453
517
 
@@ -516,6 +580,22 @@ module Google
516
580
  # @return [::Google::Cloud::Compute::V1::Policy]
517
581
  #
518
582
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
583
+ #
584
+ # @example Basic example
585
+ # require "google/cloud/compute/v1"
586
+ #
587
+ # # Create a client object. The client can be reused for multiple calls.
588
+ # client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
589
+ #
590
+ # # Create a request. To set request fields, pass in keyword arguments.
591
+ # request = Google::Cloud::Compute::V1::GetIamPolicySubnetworkRequest.new
592
+ #
593
+ # # Call the get_iam_policy method.
594
+ # result = client.get_iam_policy request
595
+ #
596
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
597
+ # p result
598
+ #
519
599
  def get_iam_policy request, options = nil
520
600
  raise ::ArgumentError, "request must be provided" if request.nil?
521
601
 
@@ -584,6 +664,22 @@ module Google
584
664
  # @return [::Gapic::GenericLRO::Operation]
585
665
  #
586
666
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
667
+ #
668
+ # @example Basic example
669
+ # require "google/cloud/compute/v1"
670
+ #
671
+ # # Create a client object. The client can be reused for multiple calls.
672
+ # client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
673
+ #
674
+ # # Create a request. To set request fields, pass in keyword arguments.
675
+ # request = Google::Cloud::Compute::V1::InsertSubnetworkRequest.new
676
+ #
677
+ # # Call the insert method.
678
+ # result = client.insert request
679
+ #
680
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
681
+ # p result
682
+ #
587
683
  def insert request, options = nil
588
684
  raise ::ArgumentError, "request must be provided" if request.nil?
589
685
 
@@ -667,6 +763,22 @@ module Google
667
763
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Subnetwork>]
668
764
  #
669
765
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
766
+ #
767
+ # @example Basic example
768
+ # require "google/cloud/compute/v1"
769
+ #
770
+ # # Create a client object. The client can be reused for multiple calls.
771
+ # client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
772
+ #
773
+ # # Create a request. To set request fields, pass in keyword arguments.
774
+ # request = Google::Cloud::Compute::V1::ListSubnetworksRequest.new
775
+ #
776
+ # # Call the list method.
777
+ # result = client.list request
778
+ #
779
+ # # The returned object is of type Google::Cloud::Compute::V1::SubnetworkList.
780
+ # p result
781
+ #
670
782
  def list request, options = nil
671
783
  raise ::ArgumentError, "request must be provided" if request.nil?
672
784
 
@@ -740,6 +852,22 @@ module Google
740
852
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::UsableSubnetwork>]
741
853
  #
742
854
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
855
+ #
856
+ # @example Basic example
857
+ # require "google/cloud/compute/v1"
858
+ #
859
+ # # Create a client object. The client can be reused for multiple calls.
860
+ # client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
861
+ #
862
+ # # Create a request. To set request fields, pass in keyword arguments.
863
+ # request = Google::Cloud::Compute::V1::ListUsableSubnetworksRequest.new
864
+ #
865
+ # # Call the list_usable method.
866
+ # result = client.list_usable request
867
+ #
868
+ # # The returned object is of type Google::Cloud::Compute::V1::UsableSubnetworksAggregatedList.
869
+ # p result
870
+ #
743
871
  def list_usable request, options = nil
744
872
  raise ::ArgumentError, "request must be provided" if request.nil?
745
873
 
@@ -813,6 +941,22 @@ module Google
813
941
  # @return [::Gapic::GenericLRO::Operation]
814
942
  #
815
943
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
944
+ #
945
+ # @example Basic example
946
+ # require "google/cloud/compute/v1"
947
+ #
948
+ # # Create a client object. The client can be reused for multiple calls.
949
+ # client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
950
+ #
951
+ # # Create a request. To set request fields, pass in keyword arguments.
952
+ # request = Google::Cloud::Compute::V1::PatchSubnetworkRequest.new
953
+ #
954
+ # # Call the patch method.
955
+ # result = client.patch request
956
+ #
957
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
958
+ # p result
959
+ #
816
960
  def patch request, options = nil
817
961
  raise ::ArgumentError, "request must be provided" if request.nil?
818
962
 
@@ -890,6 +1034,22 @@ module Google
890
1034
  # @return [::Google::Cloud::Compute::V1::Policy]
891
1035
  #
892
1036
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1037
+ #
1038
+ # @example Basic example
1039
+ # require "google/cloud/compute/v1"
1040
+ #
1041
+ # # Create a client object. The client can be reused for multiple calls.
1042
+ # client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
1043
+ #
1044
+ # # Create a request. To set request fields, pass in keyword arguments.
1045
+ # request = Google::Cloud::Compute::V1::SetIamPolicySubnetworkRequest.new
1046
+ #
1047
+ # # Call the set_iam_policy method.
1048
+ # result = client.set_iam_policy request
1049
+ #
1050
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
1051
+ # p result
1052
+ #
893
1053
  def set_iam_policy request, options = nil
894
1054
  raise ::ArgumentError, "request must be provided" if request.nil?
895
1055
 
@@ -960,6 +1120,22 @@ module Google
960
1120
  # @return [::Gapic::GenericLRO::Operation]
961
1121
  #
962
1122
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1123
+ #
1124
+ # @example Basic example
1125
+ # require "google/cloud/compute/v1"
1126
+ #
1127
+ # # Create a client object. The client can be reused for multiple calls.
1128
+ # client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
1129
+ #
1130
+ # # Create a request. To set request fields, pass in keyword arguments.
1131
+ # request = Google::Cloud::Compute::V1::SetPrivateIpGoogleAccessSubnetworkRequest.new
1132
+ #
1133
+ # # Call the set_private_ip_google_access method.
1134
+ # result = client.set_private_ip_google_access request
1135
+ #
1136
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1137
+ # p result
1138
+ #
963
1139
  def set_private_ip_google_access request, options = nil
964
1140
  raise ::ArgumentError, "request must be provided" if request.nil?
965
1141
 
@@ -1037,6 +1213,22 @@ module Google
1037
1213
  # @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
1038
1214
  #
1039
1215
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1216
+ #
1217
+ # @example Basic example
1218
+ # require "google/cloud/compute/v1"
1219
+ #
1220
+ # # Create a client object. The client can be reused for multiple calls.
1221
+ # client = Google::Cloud::Compute::V1::Subnetworks::Rest::Client.new
1222
+ #
1223
+ # # Create a request. To set request fields, pass in keyword arguments.
1224
+ # request = Google::Cloud::Compute::V1::TestIamPermissionsSubnetworkRequest.new
1225
+ #
1226
+ # # Call the test_iam_permissions method.
1227
+ # result = client.test_iam_permissions request
1228
+ #
1229
+ # # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
1230
+ # p result
1231
+ #
1040
1232
  def test_iam_permissions request, options = nil
1041
1233
  raise ::ArgumentError, "request must be provided" if request.nil?
1042
1234
 
@@ -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::TargetGrpcProxies::Rest::Client.new
203
+ #
204
+ # # Create a request. To set request fields, pass in keyword arguments.
205
+ # request = Google::Cloud::Compute::V1::DeleteTargetGrpcProxyRequest.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::TargetGrpcProxy]
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::TargetGrpcProxies::Rest::Client.new
291
+ #
292
+ # # Create a request. To set request fields, pass in keyword arguments.
293
+ # request = Google::Cloud::Compute::V1::GetTargetGrpcProxyRequest.new
294
+ #
295
+ # # Call the get method.
296
+ # result = client.get request
297
+ #
298
+ # # The returned object is of type Google::Cloud::Compute::V1::TargetGrpcProxy.
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::TargetGrpcProxies::Rest::Client.new
373
+ #
374
+ # # Create a request. To set request fields, pass in keyword arguments.
375
+ # request = Google::Cloud::Compute::V1::InsertTargetGrpcProxyRequest.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::TargetGrpcProxy>]
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::TargetGrpcProxies::Rest::Client.new
469
+ #
470
+ # # Create a request. To set request fields, pass in keyword arguments.
471
+ # request = Google::Cloud::Compute::V1::ListTargetGrpcProxiesRequest.new
472
+ #
473
+ # # Call the list method.
474
+ # result = client.list request
475
+ #
476
+ # # The returned object is of type Google::Cloud::Compute::V1::TargetGrpcProxyList.
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::TargetGrpcProxies::Rest::Client.new
554
+ #
555
+ # # Create a request. To set request fields, pass in keyword arguments.
556
+ # request = Google::Cloud::Compute::V1::PatchTargetGrpcProxyRequest.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