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
@@ -212,6 +212,22 @@ module Google
212
212
  # @return [::Gapic::GenericLRO::Operation]
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::Images::Rest::Client.new
221
+ #
222
+ # # Create a request. To set request fields, pass in keyword arguments.
223
+ # request = Google::Cloud::Compute::V1::DeleteImageRequest.new
224
+ #
225
+ # # Call the delete method.
226
+ # result = client.delete request
227
+ #
228
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
229
+ # p result
230
+ #
215
231
  def delete request, options = nil
216
232
  raise ::ArgumentError, "request must be provided" if request.nil?
217
233
 
@@ -288,6 +304,22 @@ module Google
288
304
  # @return [::Gapic::GenericLRO::Operation]
289
305
  #
290
306
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
307
+ #
308
+ # @example Basic example
309
+ # require "google/cloud/compute/v1"
310
+ #
311
+ # # Create a client object. The client can be reused for multiple calls.
312
+ # client = Google::Cloud::Compute::V1::Images::Rest::Client.new
313
+ #
314
+ # # Create a request. To set request fields, pass in keyword arguments.
315
+ # request = Google::Cloud::Compute::V1::DeprecateImageRequest.new
316
+ #
317
+ # # Call the deprecate method.
318
+ # result = client.deprecate request
319
+ #
320
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
321
+ # p result
322
+ #
291
323
  def deprecate request, options = nil
292
324
  raise ::ArgumentError, "request must be provided" if request.nil?
293
325
 
@@ -360,6 +392,22 @@ module Google
360
392
  # @return [::Google::Cloud::Compute::V1::Image]
361
393
  #
362
394
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
395
+ #
396
+ # @example Basic example
397
+ # require "google/cloud/compute/v1"
398
+ #
399
+ # # Create a client object. The client can be reused for multiple calls.
400
+ # client = Google::Cloud::Compute::V1::Images::Rest::Client.new
401
+ #
402
+ # # Create a request. To set request fields, pass in keyword arguments.
403
+ # request = Google::Cloud::Compute::V1::GetImageRequest.new
404
+ #
405
+ # # Call the get method.
406
+ # result = client.get request
407
+ #
408
+ # # The returned object is of type Google::Cloud::Compute::V1::Image.
409
+ # p result
410
+ #
363
411
  def get request, options = nil
364
412
  raise ::ArgumentError, "request must be provided" if request.nil?
365
413
 
@@ -424,6 +472,22 @@ module Google
424
472
  # @return [::Google::Cloud::Compute::V1::Image]
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::Images::Rest::Client.new
481
+ #
482
+ # # Create a request. To set request fields, pass in keyword arguments.
483
+ # request = Google::Cloud::Compute::V1::GetFromFamilyImageRequest.new
484
+ #
485
+ # # Call the get_from_family method.
486
+ # result = client.get_from_family request
487
+ #
488
+ # # The returned object is of type Google::Cloud::Compute::V1::Image.
489
+ # p result
490
+ #
427
491
  def get_from_family request, options = nil
428
492
  raise ::ArgumentError, "request must be provided" if request.nil?
429
493
 
@@ -490,6 +554,22 @@ module Google
490
554
  # @return [::Google::Cloud::Compute::V1::Policy]
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::Images::Rest::Client.new
563
+ #
564
+ # # Create a request. To set request fields, pass in keyword arguments.
565
+ # request = Google::Cloud::Compute::V1::GetIamPolicyImageRequest.new
566
+ #
567
+ # # Call the get_iam_policy method.
568
+ # result = client.get_iam_policy request
569
+ #
570
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
571
+ # p result
572
+ #
493
573
  def get_iam_policy request, options = nil
494
574
  raise ::ArgumentError, "request must be provided" if request.nil?
495
575
 
@@ -558,6 +638,22 @@ module Google
558
638
  # @return [::Gapic::GenericLRO::Operation]
559
639
  #
560
640
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
641
+ #
642
+ # @example Basic example
643
+ # require "google/cloud/compute/v1"
644
+ #
645
+ # # Create a client object. The client can be reused for multiple calls.
646
+ # client = Google::Cloud::Compute::V1::Images::Rest::Client.new
647
+ #
648
+ # # Create a request. To set request fields, pass in keyword arguments.
649
+ # request = Google::Cloud::Compute::V1::InsertImageRequest.new
650
+ #
651
+ # # Call the insert method.
652
+ # result = client.insert request
653
+ #
654
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
655
+ # p result
656
+ #
561
657
  def insert request, options = nil
562
658
  raise ::ArgumentError, "request must be provided" if request.nil?
563
659
 
@@ -638,6 +734,22 @@ module Google
638
734
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Image>]
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::Images::Rest::Client.new
743
+ #
744
+ # # Create a request. To set request fields, pass in keyword arguments.
745
+ # request = Google::Cloud::Compute::V1::ListImagesRequest.new
746
+ #
747
+ # # Call the list method.
748
+ # result = client.list request
749
+ #
750
+ # # The returned object is of type Google::Cloud::Compute::V1::ImageList.
751
+ # p result
752
+ #
641
753
  def list request, options = nil
642
754
  raise ::ArgumentError, "request must be provided" if request.nil?
643
755
 
@@ -707,6 +819,22 @@ module Google
707
819
  # @return [::Gapic::GenericLRO::Operation]
708
820
  #
709
821
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
822
+ #
823
+ # @example Basic example
824
+ # require "google/cloud/compute/v1"
825
+ #
826
+ # # Create a client object. The client can be reused for multiple calls.
827
+ # client = Google::Cloud::Compute::V1::Images::Rest::Client.new
828
+ #
829
+ # # Create a request. To set request fields, pass in keyword arguments.
830
+ # request = Google::Cloud::Compute::V1::PatchImageRequest.new
831
+ #
832
+ # # Call the patch method.
833
+ # result = client.patch request
834
+ #
835
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
836
+ # p result
837
+ #
710
838
  def patch request, options = nil
711
839
  raise ::ArgumentError, "request must be provided" if request.nil?
712
840
 
@@ -781,6 +909,22 @@ module Google
781
909
  # @return [::Google::Cloud::Compute::V1::Policy]
782
910
  #
783
911
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
912
+ #
913
+ # @example Basic example
914
+ # require "google/cloud/compute/v1"
915
+ #
916
+ # # Create a client object. The client can be reused for multiple calls.
917
+ # client = Google::Cloud::Compute::V1::Images::Rest::Client.new
918
+ #
919
+ # # Create a request. To set request fields, pass in keyword arguments.
920
+ # request = Google::Cloud::Compute::V1::SetIamPolicyImageRequest.new
921
+ #
922
+ # # Call the set_iam_policy method.
923
+ # result = client.set_iam_policy request
924
+ #
925
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
926
+ # p result
927
+ #
784
928
  def set_iam_policy request, options = nil
785
929
  raise ::ArgumentError, "request must be provided" if request.nil?
786
930
 
@@ -847,6 +991,22 @@ module Google
847
991
  # @return [::Gapic::GenericLRO::Operation]
848
992
  #
849
993
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
994
+ #
995
+ # @example Basic example
996
+ # require "google/cloud/compute/v1"
997
+ #
998
+ # # Create a client object. The client can be reused for multiple calls.
999
+ # client = Google::Cloud::Compute::V1::Images::Rest::Client.new
1000
+ #
1001
+ # # Create a request. To set request fields, pass in keyword arguments.
1002
+ # request = Google::Cloud::Compute::V1::SetLabelsImageRequest.new
1003
+ #
1004
+ # # Call the set_labels method.
1005
+ # result = client.set_labels request
1006
+ #
1007
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1008
+ # p result
1009
+ #
850
1010
  def set_labels request, options = nil
851
1011
  raise ::ArgumentError, "request must be provided" if request.nil?
852
1012
 
@@ -921,6 +1081,22 @@ module Google
921
1081
  # @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
922
1082
  #
923
1083
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1084
+ #
1085
+ # @example Basic example
1086
+ # require "google/cloud/compute/v1"
1087
+ #
1088
+ # # Create a client object. The client can be reused for multiple calls.
1089
+ # client = Google::Cloud::Compute::V1::Images::Rest::Client.new
1090
+ #
1091
+ # # Create a request. To set request fields, pass in keyword arguments.
1092
+ # request = Google::Cloud::Compute::V1::TestIamPermissionsImageRequest.new
1093
+ #
1094
+ # # Call the test_iam_permissions method.
1095
+ # result = client.test_iam_permissions request
1096
+ #
1097
+ # # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
1098
+ # p result
1099
+ #
924
1100
  def test_iam_permissions request, options = nil
925
1101
  raise ::ArgumentError, "request must be provided" if request.nil?
926
1102