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
@@ -214,6 +214,22 @@ module Google
214
214
  # @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::NodeTemplatesScopedList>]
215
215
  #
216
216
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
217
+ #
218
+ # @example Basic example
219
+ # require "google/cloud/compute/v1"
220
+ #
221
+ # # Create a client object. The client can be reused for multiple calls.
222
+ # client = Google::Cloud::Compute::V1::NodeTemplates::Rest::Client.new
223
+ #
224
+ # # Create a request. To set request fields, pass in keyword arguments.
225
+ # request = Google::Cloud::Compute::V1::AggregatedListNodeTemplatesRequest.new
226
+ #
227
+ # # Call the aggregated_list method.
228
+ # result = client.aggregated_list request
229
+ #
230
+ # # The returned object is of type Google::Cloud::Compute::V1::NodeTemplateAggregatedList.
231
+ # p result
232
+ #
217
233
  def aggregated_list request, options = nil
218
234
  raise ::ArgumentError, "request must be provided" if request.nil?
219
235
 
@@ -283,6 +299,22 @@ module Google
283
299
  # @return [::Gapic::GenericLRO::Operation]
284
300
  #
285
301
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
302
+ #
303
+ # @example Basic example
304
+ # require "google/cloud/compute/v1"
305
+ #
306
+ # # Create a client object. The client can be reused for multiple calls.
307
+ # client = Google::Cloud::Compute::V1::NodeTemplates::Rest::Client.new
308
+ #
309
+ # # Create a request. To set request fields, pass in keyword arguments.
310
+ # request = Google::Cloud::Compute::V1::DeleteNodeTemplateRequest.new
311
+ #
312
+ # # Call the delete method.
313
+ # result = client.delete request
314
+ #
315
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
316
+ # p result
317
+ #
286
318
  def delete request, options = nil
287
319
  raise ::ArgumentError, "request must be provided" if request.nil?
288
320
 
@@ -358,6 +390,22 @@ module Google
358
390
  # @return [::Google::Cloud::Compute::V1::NodeTemplate]
359
391
  #
360
392
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
393
+ #
394
+ # @example Basic example
395
+ # require "google/cloud/compute/v1"
396
+ #
397
+ # # Create a client object. The client can be reused for multiple calls.
398
+ # client = Google::Cloud::Compute::V1::NodeTemplates::Rest::Client.new
399
+ #
400
+ # # Create a request. To set request fields, pass in keyword arguments.
401
+ # request = Google::Cloud::Compute::V1::GetNodeTemplateRequest.new
402
+ #
403
+ # # Call the get method.
404
+ # result = client.get request
405
+ #
406
+ # # The returned object is of type Google::Cloud::Compute::V1::NodeTemplate.
407
+ # p result
408
+ #
361
409
  def get request, options = nil
362
410
  raise ::ArgumentError, "request must be provided" if request.nil?
363
411
 
@@ -426,6 +474,22 @@ module Google
426
474
  # @return [::Google::Cloud::Compute::V1::Policy]
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::NodeTemplates::Rest::Client.new
483
+ #
484
+ # # Create a request. To set request fields, pass in keyword arguments.
485
+ # request = Google::Cloud::Compute::V1::GetIamPolicyNodeTemplateRequest.new
486
+ #
487
+ # # Call the get_iam_policy method.
488
+ # result = client.get_iam_policy request
489
+ #
490
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
491
+ # p result
492
+ #
429
493
  def get_iam_policy request, options = nil
430
494
  raise ::ArgumentError, "request must be provided" if request.nil?
431
495
 
@@ -494,6 +558,22 @@ module Google
494
558
  # @return [::Gapic::GenericLRO::Operation]
495
559
  #
496
560
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
561
+ #
562
+ # @example Basic example
563
+ # require "google/cloud/compute/v1"
564
+ #
565
+ # # Create a client object. The client can be reused for multiple calls.
566
+ # client = Google::Cloud::Compute::V1::NodeTemplates::Rest::Client.new
567
+ #
568
+ # # Create a request. To set request fields, pass in keyword arguments.
569
+ # request = Google::Cloud::Compute::V1::InsertNodeTemplateRequest.new
570
+ #
571
+ # # Call the insert method.
572
+ # result = client.insert request
573
+ #
574
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
575
+ # p result
576
+ #
497
577
  def insert request, options = nil
498
578
  raise ::ArgumentError, "request must be provided" if request.nil?
499
579
 
@@ -577,6 +657,22 @@ module Google
577
657
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::NodeTemplate>]
578
658
  #
579
659
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
660
+ #
661
+ # @example Basic example
662
+ # require "google/cloud/compute/v1"
663
+ #
664
+ # # Create a client object. The client can be reused for multiple calls.
665
+ # client = Google::Cloud::Compute::V1::NodeTemplates::Rest::Client.new
666
+ #
667
+ # # Create a request. To set request fields, pass in keyword arguments.
668
+ # request = Google::Cloud::Compute::V1::ListNodeTemplatesRequest.new
669
+ #
670
+ # # Call the list method.
671
+ # result = client.list request
672
+ #
673
+ # # The returned object is of type Google::Cloud::Compute::V1::NodeTemplateList.
674
+ # p result
675
+ #
580
676
  def list request, options = nil
581
677
  raise ::ArgumentError, "request must be provided" if request.nil?
582
678
 
@@ -646,6 +742,22 @@ module Google
646
742
  # @return [::Google::Cloud::Compute::V1::Policy]
647
743
  #
648
744
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
745
+ #
746
+ # @example Basic example
747
+ # require "google/cloud/compute/v1"
748
+ #
749
+ # # Create a client object. The client can be reused for multiple calls.
750
+ # client = Google::Cloud::Compute::V1::NodeTemplates::Rest::Client.new
751
+ #
752
+ # # Create a request. To set request fields, pass in keyword arguments.
753
+ # request = Google::Cloud::Compute::V1::SetIamPolicyNodeTemplateRequest.new
754
+ #
755
+ # # Call the set_iam_policy method.
756
+ # result = client.set_iam_policy request
757
+ #
758
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
759
+ # p result
760
+ #
649
761
  def set_iam_policy request, options = nil
650
762
  raise ::ArgumentError, "request must be provided" if request.nil?
651
763
 
@@ -714,6 +826,22 @@ module Google
714
826
  # @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
715
827
  #
716
828
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
829
+ #
830
+ # @example Basic example
831
+ # require "google/cloud/compute/v1"
832
+ #
833
+ # # Create a client object. The client can be reused for multiple calls.
834
+ # client = Google::Cloud::Compute::V1::NodeTemplates::Rest::Client.new
835
+ #
836
+ # # Create a request. To set request fields, pass in keyword arguments.
837
+ # request = Google::Cloud::Compute::V1::TestIamPermissionsNodeTemplateRequest.new
838
+ #
839
+ # # Call the test_iam_permissions method.
840
+ # result = client.test_iam_permissions request
841
+ #
842
+ # # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
843
+ # p result
844
+ #
717
845
  def test_iam_permissions request, options = nil
718
846
  raise ::ArgumentError, "request must be provided" if request.nil?
719
847
 
@@ -187,6 +187,22 @@ module Google
187
187
  # @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::NodeTypesScopedList>]
188
188
  #
189
189
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
190
+ #
191
+ # @example Basic example
192
+ # require "google/cloud/compute/v1"
193
+ #
194
+ # # Create a client object. The client can be reused for multiple calls.
195
+ # client = Google::Cloud::Compute::V1::NodeTypes::Rest::Client.new
196
+ #
197
+ # # Create a request. To set request fields, pass in keyword arguments.
198
+ # request = Google::Cloud::Compute::V1::AggregatedListNodeTypesRequest.new
199
+ #
200
+ # # Call the aggregated_list method.
201
+ # result = client.aggregated_list request
202
+ #
203
+ # # The returned object is of type Google::Cloud::Compute::V1::NodeTypeAggregatedList.
204
+ # p result
205
+ #
190
206
  def aggregated_list request, options = nil
191
207
  raise ::ArgumentError, "request must be provided" if request.nil?
192
208
 
@@ -254,6 +270,22 @@ module Google
254
270
  # @return [::Google::Cloud::Compute::V1::NodeType]
255
271
  #
256
272
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
273
+ #
274
+ # @example Basic example
275
+ # require "google/cloud/compute/v1"
276
+ #
277
+ # # Create a client object. The client can be reused for multiple calls.
278
+ # client = Google::Cloud::Compute::V1::NodeTypes::Rest::Client.new
279
+ #
280
+ # # Create a request. To set request fields, pass in keyword arguments.
281
+ # request = Google::Cloud::Compute::V1::GetNodeTypeRequest.new
282
+ #
283
+ # # Call the get method.
284
+ # result = client.get request
285
+ #
286
+ # # The returned object is of type Google::Cloud::Compute::V1::NodeType.
287
+ # p result
288
+ #
257
289
  def get request, options = nil
258
290
  raise ::ArgumentError, "request must be provided" if request.nil?
259
291
 
@@ -328,6 +360,22 @@ module Google
328
360
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::NodeType>]
329
361
  #
330
362
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
363
+ #
364
+ # @example Basic example
365
+ # require "google/cloud/compute/v1"
366
+ #
367
+ # # Create a client object. The client can be reused for multiple calls.
368
+ # client = Google::Cloud::Compute::V1::NodeTypes::Rest::Client.new
369
+ #
370
+ # # Create a request. To set request fields, pass in keyword arguments.
371
+ # request = Google::Cloud::Compute::V1::ListNodeTypesRequest.new
372
+ #
373
+ # # Call the list method.
374
+ # result = client.list request
375
+ #
376
+ # # The returned object is of type Google::Cloud::Compute::V1::NodeTypeList.
377
+ # p result
378
+ #
331
379
  def list request, options = nil
332
380
  raise ::ArgumentError, "request must be provided" if request.nil?
333
381
 
@@ -209,6 +209,22 @@ module Google
209
209
  # @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::PacketMirroringsScopedList>]
210
210
  #
211
211
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
212
+ #
213
+ # @example Basic example
214
+ # require "google/cloud/compute/v1"
215
+ #
216
+ # # Create a client object. The client can be reused for multiple calls.
217
+ # client = Google::Cloud::Compute::V1::PacketMirrorings::Rest::Client.new
218
+ #
219
+ # # Create a request. To set request fields, pass in keyword arguments.
220
+ # request = Google::Cloud::Compute::V1::AggregatedListPacketMirroringsRequest.new
221
+ #
222
+ # # Call the aggregated_list method.
223
+ # result = client.aggregated_list request
224
+ #
225
+ # # The returned object is of type Google::Cloud::Compute::V1::PacketMirroringAggregatedList.
226
+ # p result
227
+ #
212
228
  def aggregated_list request, options = nil
213
229
  raise ::ArgumentError, "request must be provided" if request.nil?
214
230
 
@@ -278,6 +294,22 @@ module Google
278
294
  # @return [::Gapic::GenericLRO::Operation]
279
295
  #
280
296
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
297
+ #
298
+ # @example Basic example
299
+ # require "google/cloud/compute/v1"
300
+ #
301
+ # # Create a client object. The client can be reused for multiple calls.
302
+ # client = Google::Cloud::Compute::V1::PacketMirrorings::Rest::Client.new
303
+ #
304
+ # # Create a request. To set request fields, pass in keyword arguments.
305
+ # request = Google::Cloud::Compute::V1::DeletePacketMirroringRequest.new
306
+ #
307
+ # # Call the delete method.
308
+ # result = client.delete request
309
+ #
310
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
311
+ # p result
312
+ #
281
313
  def delete request, options = nil
282
314
  raise ::ArgumentError, "request must be provided" if request.nil?
283
315
 
@@ -353,6 +385,22 @@ module Google
353
385
  # @return [::Google::Cloud::Compute::V1::PacketMirroring]
354
386
  #
355
387
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
388
+ #
389
+ # @example Basic example
390
+ # require "google/cloud/compute/v1"
391
+ #
392
+ # # Create a client object. The client can be reused for multiple calls.
393
+ # client = Google::Cloud::Compute::V1::PacketMirrorings::Rest::Client.new
394
+ #
395
+ # # Create a request. To set request fields, pass in keyword arguments.
396
+ # request = Google::Cloud::Compute::V1::GetPacketMirroringRequest.new
397
+ #
398
+ # # Call the get method.
399
+ # result = client.get request
400
+ #
401
+ # # The returned object is of type Google::Cloud::Compute::V1::PacketMirroring.
402
+ # p result
403
+ #
356
404
  def get request, options = nil
357
405
  raise ::ArgumentError, "request must be provided" if request.nil?
358
406
 
@@ -421,6 +469,22 @@ module Google
421
469
  # @return [::Gapic::GenericLRO::Operation]
422
470
  #
423
471
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
472
+ #
473
+ # @example Basic example
474
+ # require "google/cloud/compute/v1"
475
+ #
476
+ # # Create a client object. The client can be reused for multiple calls.
477
+ # client = Google::Cloud::Compute::V1::PacketMirrorings::Rest::Client.new
478
+ #
479
+ # # Create a request. To set request fields, pass in keyword arguments.
480
+ # request = Google::Cloud::Compute::V1::InsertPacketMirroringRequest.new
481
+ #
482
+ # # Call the insert method.
483
+ # result = client.insert request
484
+ #
485
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
486
+ # p result
487
+ #
424
488
  def insert request, options = nil
425
489
  raise ::ArgumentError, "request must be provided" if request.nil?
426
490
 
@@ -504,6 +568,22 @@ module Google
504
568
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::PacketMirroring>]
505
569
  #
506
570
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
571
+ #
572
+ # @example Basic example
573
+ # require "google/cloud/compute/v1"
574
+ #
575
+ # # Create a client object. The client can be reused for multiple calls.
576
+ # client = Google::Cloud::Compute::V1::PacketMirrorings::Rest::Client.new
577
+ #
578
+ # # Create a request. To set request fields, pass in keyword arguments.
579
+ # request = Google::Cloud::Compute::V1::ListPacketMirroringsRequest.new
580
+ #
581
+ # # Call the list method.
582
+ # result = client.list request
583
+ #
584
+ # # The returned object is of type Google::Cloud::Compute::V1::PacketMirroringList.
585
+ # p result
586
+ #
507
587
  def list request, options = nil
508
588
  raise ::ArgumentError, "request must be provided" if request.nil?
509
589
 
@@ -575,6 +655,22 @@ module Google
575
655
  # @return [::Gapic::GenericLRO::Operation]
576
656
  #
577
657
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
658
+ #
659
+ # @example Basic example
660
+ # require "google/cloud/compute/v1"
661
+ #
662
+ # # Create a client object. The client can be reused for multiple calls.
663
+ # client = Google::Cloud::Compute::V1::PacketMirrorings::Rest::Client.new
664
+ #
665
+ # # Create a request. To set request fields, pass in keyword arguments.
666
+ # request = Google::Cloud::Compute::V1::PatchPacketMirroringRequest.new
667
+ #
668
+ # # Call the patch method.
669
+ # result = client.patch request
670
+ #
671
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
672
+ # p result
673
+ #
578
674
  def patch request, options = nil
579
675
  raise ::ArgumentError, "request must be provided" if request.nil?
580
676
 
@@ -652,6 +748,22 @@ module Google
652
748
  # @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
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::PacketMirrorings::Rest::Client.new
757
+ #
758
+ # # Create a request. To set request fields, pass in keyword arguments.
759
+ # request = Google::Cloud::Compute::V1::TestIamPermissionsPacketMirroringRequest.new
760
+ #
761
+ # # Call the test_iam_permissions method.
762
+ # result = client.test_iam_permissions request
763
+ #
764
+ # # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
765
+ # p result
766
+ #
655
767
  def test_iam_permissions request, options = nil
656
768
  raise ::ArgumentError, "request must be provided" if request.nil?
657
769