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
@@ -192,6 +192,22 @@ module Google
192
192
  # @return [::Gapic::GenericLRO::Operation]
193
193
  #
194
194
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
195
+ #
196
+ # @example Basic example
197
+ # require "google/cloud/compute/v1"
198
+ #
199
+ # # Create a client object. The client can be reused for multiple calls.
200
+ # client = Google::Cloud::Compute::V1::Routes::Rest::Client.new
201
+ #
202
+ # # Create a request. To set request fields, pass in keyword arguments.
203
+ # request = Google::Cloud::Compute::V1::DeleteRouteRequest.new
204
+ #
205
+ # # Call the delete method.
206
+ # result = client.delete request
207
+ #
208
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
209
+ # p result
210
+ #
195
211
  def delete request, options = nil
196
212
  raise ::ArgumentError, "request must be provided" if request.nil?
197
213
 
@@ -264,6 +280,22 @@ module Google
264
280
  # @return [::Google::Cloud::Compute::V1::Route]
265
281
  #
266
282
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
283
+ #
284
+ # @example Basic example
285
+ # require "google/cloud/compute/v1"
286
+ #
287
+ # # Create a client object. The client can be reused for multiple calls.
288
+ # client = Google::Cloud::Compute::V1::Routes::Rest::Client.new
289
+ #
290
+ # # Create a request. To set request fields, pass in keyword arguments.
291
+ # request = Google::Cloud::Compute::V1::GetRouteRequest.new
292
+ #
293
+ # # Call the get method.
294
+ # result = client.get request
295
+ #
296
+ # # The returned object is of type Google::Cloud::Compute::V1::Route.
297
+ # p result
298
+ #
267
299
  def get request, options = nil
268
300
  raise ::ArgumentError, "request must be provided" if request.nil?
269
301
 
@@ -330,6 +362,22 @@ module Google
330
362
  # @return [::Gapic::GenericLRO::Operation]
331
363
  #
332
364
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
365
+ #
366
+ # @example Basic example
367
+ # require "google/cloud/compute/v1"
368
+ #
369
+ # # Create a client object. The client can be reused for multiple calls.
370
+ # client = Google::Cloud::Compute::V1::Routes::Rest::Client.new
371
+ #
372
+ # # Create a request. To set request fields, pass in keyword arguments.
373
+ # request = Google::Cloud::Compute::V1::InsertRouteRequest.new
374
+ #
375
+ # # Call the insert method.
376
+ # result = client.insert request
377
+ #
378
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
379
+ # p result
380
+ #
333
381
  def insert request, options = nil
334
382
  raise ::ArgumentError, "request must be provided" if request.nil?
335
383
 
@@ -410,6 +458,22 @@ module Google
410
458
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Route>]
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::Routes::Rest::Client.new
467
+ #
468
+ # # Create a request. To set request fields, pass in keyword arguments.
469
+ # request = Google::Cloud::Compute::V1::ListRoutesRequest.new
470
+ #
471
+ # # Call the list method.
472
+ # result = client.list request
473
+ #
474
+ # # The returned object is of type Google::Cloud::Compute::V1::RouteList.
475
+ # p result
476
+ #
413
477
  def list request, options = nil
414
478
  raise ::ArgumentError, "request must be provided" if request.nil?
415
479
 
@@ -219,6 +219,22 @@ module Google
219
219
  # @return [::Gapic::GenericLRO::Operation]
220
220
  #
221
221
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
222
+ #
223
+ # @example Basic example
224
+ # require "google/cloud/compute/v1"
225
+ #
226
+ # # Create a client object. The client can be reused for multiple calls.
227
+ # client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
228
+ #
229
+ # # Create a request. To set request fields, pass in keyword arguments.
230
+ # request = Google::Cloud::Compute::V1::AddRuleSecurityPolicyRequest.new
231
+ #
232
+ # # Call the add_rule method.
233
+ # result = client.add_rule request
234
+ #
235
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
236
+ # p result
237
+ #
222
238
  def add_rule request, options = nil
223
239
  raise ::ArgumentError, "request must be provided" if request.nil?
224
240
 
@@ -301,6 +317,22 @@ module Google
301
317
  # @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::SecurityPoliciesScopedList>]
302
318
  #
303
319
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
320
+ #
321
+ # @example Basic example
322
+ # require "google/cloud/compute/v1"
323
+ #
324
+ # # Create a client object. The client can be reused for multiple calls.
325
+ # client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
326
+ #
327
+ # # Create a request. To set request fields, pass in keyword arguments.
328
+ # request = Google::Cloud::Compute::V1::AggregatedListSecurityPoliciesRequest.new
329
+ #
330
+ # # Call the aggregated_list method.
331
+ # result = client.aggregated_list request
332
+ #
333
+ # # The returned object is of type Google::Cloud::Compute::V1::SecurityPoliciesAggregatedList.
334
+ # p result
335
+ #
304
336
  def aggregated_list request, options = nil
305
337
  raise ::ArgumentError, "request must be provided" if request.nil?
306
338
 
@@ -368,6 +400,22 @@ module Google
368
400
  # @return [::Gapic::GenericLRO::Operation]
369
401
  #
370
402
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
403
+ #
404
+ # @example Basic example
405
+ # require "google/cloud/compute/v1"
406
+ #
407
+ # # Create a client object. The client can be reused for multiple calls.
408
+ # client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
409
+ #
410
+ # # Create a request. To set request fields, pass in keyword arguments.
411
+ # request = Google::Cloud::Compute::V1::DeleteSecurityPolicyRequest.new
412
+ #
413
+ # # Call the delete method.
414
+ # result = client.delete request
415
+ #
416
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
417
+ # p result
418
+ #
371
419
  def delete request, options = nil
372
420
  raise ::ArgumentError, "request must be provided" if request.nil?
373
421
 
@@ -440,6 +488,22 @@ module Google
440
488
  # @return [::Google::Cloud::Compute::V1::SecurityPolicy]
441
489
  #
442
490
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
491
+ #
492
+ # @example Basic example
493
+ # require "google/cloud/compute/v1"
494
+ #
495
+ # # Create a client object. The client can be reused for multiple calls.
496
+ # client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
497
+ #
498
+ # # Create a request. To set request fields, pass in keyword arguments.
499
+ # request = Google::Cloud::Compute::V1::GetSecurityPolicyRequest.new
500
+ #
501
+ # # Call the get method.
502
+ # result = client.get request
503
+ #
504
+ # # The returned object is of type Google::Cloud::Compute::V1::SecurityPolicy.
505
+ # p result
506
+ #
443
507
  def get request, options = nil
444
508
  raise ::ArgumentError, "request must be provided" if request.nil?
445
509
 
@@ -506,6 +570,22 @@ module Google
506
570
  # @return [::Google::Cloud::Compute::V1::SecurityPolicyRule]
507
571
  #
508
572
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
573
+ #
574
+ # @example Basic example
575
+ # require "google/cloud/compute/v1"
576
+ #
577
+ # # Create a client object. The client can be reused for multiple calls.
578
+ # client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
579
+ #
580
+ # # Create a request. To set request fields, pass in keyword arguments.
581
+ # request = Google::Cloud::Compute::V1::GetRuleSecurityPolicyRequest.new
582
+ #
583
+ # # Call the get_rule method.
584
+ # result = client.get_rule request
585
+ #
586
+ # # The returned object is of type Google::Cloud::Compute::V1::SecurityPolicyRule.
587
+ # p result
588
+ #
509
589
  def get_rule request, options = nil
510
590
  raise ::ArgumentError, "request must be provided" if request.nil?
511
591
 
@@ -574,6 +654,22 @@ module Google
574
654
  # @return [::Gapic::GenericLRO::Operation]
575
655
  #
576
656
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
657
+ #
658
+ # @example Basic example
659
+ # require "google/cloud/compute/v1"
660
+ #
661
+ # # Create a client object. The client can be reused for multiple calls.
662
+ # client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
663
+ #
664
+ # # Create a request. To set request fields, pass in keyword arguments.
665
+ # request = Google::Cloud::Compute::V1::InsertSecurityPolicyRequest.new
666
+ #
667
+ # # Call the insert method.
668
+ # result = client.insert request
669
+ #
670
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
671
+ # p result
672
+ #
577
673
  def insert request, options = nil
578
674
  raise ::ArgumentError, "request must be provided" if request.nil?
579
675
 
@@ -654,6 +750,22 @@ module Google
654
750
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::SecurityPolicy>]
655
751
  #
656
752
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
753
+ #
754
+ # @example Basic example
755
+ # require "google/cloud/compute/v1"
756
+ #
757
+ # # Create a client object. The client can be reused for multiple calls.
758
+ # client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
759
+ #
760
+ # # Create a request. To set request fields, pass in keyword arguments.
761
+ # request = Google::Cloud::Compute::V1::ListSecurityPoliciesRequest.new
762
+ #
763
+ # # Call the list method.
764
+ # result = client.list request
765
+ #
766
+ # # The returned object is of type Google::Cloud::Compute::V1::SecurityPolicyList.
767
+ # p result
768
+ #
657
769
  def list request, options = nil
658
770
  raise ::ArgumentError, "request must be provided" if request.nil?
659
771
 
@@ -727,6 +839,22 @@ module Google
727
839
  # @return [::Google::Cloud::Compute::V1::SecurityPoliciesListPreconfiguredExpressionSetsResponse]
728
840
  #
729
841
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
842
+ #
843
+ # @example Basic example
844
+ # require "google/cloud/compute/v1"
845
+ #
846
+ # # Create a client object. The client can be reused for multiple calls.
847
+ # client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
848
+ #
849
+ # # Create a request. To set request fields, pass in keyword arguments.
850
+ # request = Google::Cloud::Compute::V1::ListPreconfiguredExpressionSetsSecurityPoliciesRequest.new
851
+ #
852
+ # # Call the list_preconfigured_expression_sets method.
853
+ # result = client.list_preconfigured_expression_sets request
854
+ #
855
+ # # The returned object is of type Google::Cloud::Compute::V1::SecurityPoliciesListPreconfiguredExpressionSetsResponse.
856
+ # p result
857
+ #
730
858
  def list_preconfigured_expression_sets request, options = nil
731
859
  raise ::ArgumentError, "request must be provided" if request.nil?
732
860
 
@@ -763,7 +891,7 @@ module Google
763
891
  end
764
892
 
765
893
  ##
766
- # Patches the specified policy with the data included in the request. To clear fields in the rule, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
894
+ # Patches the specified policy with the data included in the request. To clear fields in the policy, leave the fields empty and specify them in the updateMask. This cannot be used to be update the rules in the policy. Please use the per rule methods like addRule, patchRule, and removeRule instead.
767
895
  #
768
896
  # @overload patch(request, options = nil)
769
897
  # Pass arguments to `patch` via a request object, either of type
@@ -795,6 +923,22 @@ module Google
795
923
  # @return [::Gapic::GenericLRO::Operation]
796
924
  #
797
925
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
926
+ #
927
+ # @example Basic example
928
+ # require "google/cloud/compute/v1"
929
+ #
930
+ # # Create a client object. The client can be reused for multiple calls.
931
+ # client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
932
+ #
933
+ # # Create a request. To set request fields, pass in keyword arguments.
934
+ # request = Google::Cloud::Compute::V1::PatchSecurityPolicyRequest.new
935
+ #
936
+ # # Call the patch method.
937
+ # result = client.patch request
938
+ #
939
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
940
+ # p result
941
+ #
798
942
  def patch request, options = nil
799
943
  raise ::ArgumentError, "request must be provided" if request.nil?
800
944
 
@@ -839,7 +983,7 @@ module Google
839
983
  end
840
984
 
841
985
  ##
842
- # Patches a rule at the specified priority.
986
+ # Patches a rule at the specified priority. To clear fields in the rule, leave the fields empty and specify them in the updateMask.
843
987
  #
844
988
  # @overload patch_rule(request, options = nil)
845
989
  # Pass arguments to `patch_rule` via a request object, either of type
@@ -873,6 +1017,22 @@ module Google
873
1017
  # @return [::Gapic::GenericLRO::Operation]
874
1018
  #
875
1019
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1020
+ #
1021
+ # @example Basic example
1022
+ # require "google/cloud/compute/v1"
1023
+ #
1024
+ # # Create a client object. The client can be reused for multiple calls.
1025
+ # client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
1026
+ #
1027
+ # # Create a request. To set request fields, pass in keyword arguments.
1028
+ # request = Google::Cloud::Compute::V1::PatchRuleSecurityPolicyRequest.new
1029
+ #
1030
+ # # Call the patch_rule method.
1031
+ # result = client.patch_rule request
1032
+ #
1033
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1034
+ # p result
1035
+ #
876
1036
  def patch_rule request, options = nil
877
1037
  raise ::ArgumentError, "request must be provided" if request.nil?
878
1038
 
@@ -947,6 +1107,22 @@ module Google
947
1107
  # @return [::Gapic::GenericLRO::Operation]
948
1108
  #
949
1109
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1110
+ #
1111
+ # @example Basic example
1112
+ # require "google/cloud/compute/v1"
1113
+ #
1114
+ # # Create a client object. The client can be reused for multiple calls.
1115
+ # client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
1116
+ #
1117
+ # # Create a request. To set request fields, pass in keyword arguments.
1118
+ # request = Google::Cloud::Compute::V1::RemoveRuleSecurityPolicyRequest.new
1119
+ #
1120
+ # # Call the remove_rule method.
1121
+ # result = client.remove_rule request
1122
+ #
1123
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1124
+ # p result
1125
+ #
950
1126
  def remove_rule request, options = nil
951
1127
  raise ::ArgumentError, "request must be provided" if request.nil?
952
1128
 
@@ -1021,6 +1197,22 @@ module Google
1021
1197
  # @return [::Gapic::GenericLRO::Operation]
1022
1198
  #
1023
1199
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1200
+ #
1201
+ # @example Basic example
1202
+ # require "google/cloud/compute/v1"
1203
+ #
1204
+ # # Create a client object. The client can be reused for multiple calls.
1205
+ # client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
1206
+ #
1207
+ # # Create a request. To set request fields, pass in keyword arguments.
1208
+ # request = Google::Cloud::Compute::V1::SetLabelsSecurityPolicyRequest.new
1209
+ #
1210
+ # # Call the set_labels method.
1211
+ # result = client.set_labels request
1212
+ #
1213
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1214
+ # p result
1215
+ #
1024
1216
  def set_labels request, options = nil
1025
1217
  raise ::ArgumentError, "request must be provided" if request.nil?
1026
1218
 
@@ -216,6 +216,22 @@ module Google
216
216
  # @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::ServiceAttachmentsScopedList>]
217
217
  #
218
218
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
219
+ #
220
+ # @example Basic example
221
+ # require "google/cloud/compute/v1"
222
+ #
223
+ # # Create a client object. The client can be reused for multiple calls.
224
+ # client = Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new
225
+ #
226
+ # # Create a request. To set request fields, pass in keyword arguments.
227
+ # request = Google::Cloud::Compute::V1::AggregatedListServiceAttachmentsRequest.new
228
+ #
229
+ # # Call the aggregated_list method.
230
+ # result = client.aggregated_list request
231
+ #
232
+ # # The returned object is of type Google::Cloud::Compute::V1::ServiceAttachmentAggregatedList.
233
+ # p result
234
+ #
219
235
  def aggregated_list request, options = nil
220
236
  raise ::ArgumentError, "request must be provided" if request.nil?
221
237
 
@@ -285,6 +301,22 @@ module Google
285
301
  # @return [::Gapic::GenericLRO::Operation]
286
302
  #
287
303
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
304
+ #
305
+ # @example Basic example
306
+ # require "google/cloud/compute/v1"
307
+ #
308
+ # # Create a client object. The client can be reused for multiple calls.
309
+ # client = Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new
310
+ #
311
+ # # Create a request. To set request fields, pass in keyword arguments.
312
+ # request = Google::Cloud::Compute::V1::DeleteServiceAttachmentRequest.new
313
+ #
314
+ # # Call the delete method.
315
+ # result = client.delete request
316
+ #
317
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
318
+ # p result
319
+ #
288
320
  def delete request, options = nil
289
321
  raise ::ArgumentError, "request must be provided" if request.nil?
290
322
 
@@ -360,6 +392,22 @@ module Google
360
392
  # @return [::Google::Cloud::Compute::V1::ServiceAttachment]
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::ServiceAttachments::Rest::Client.new
401
+ #
402
+ # # Create a request. To set request fields, pass in keyword arguments.
403
+ # request = Google::Cloud::Compute::V1::GetServiceAttachmentRequest.new
404
+ #
405
+ # # Call the get method.
406
+ # result = client.get request
407
+ #
408
+ # # The returned object is of type Google::Cloud::Compute::V1::ServiceAttachment.
409
+ # p result
410
+ #
363
411
  def get request, options = nil
364
412
  raise ::ArgumentError, "request must be provided" if request.nil?
365
413
 
@@ -428,6 +476,22 @@ module Google
428
476
  # @return [::Google::Cloud::Compute::V1::Policy]
429
477
  #
430
478
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
479
+ #
480
+ # @example Basic example
481
+ # require "google/cloud/compute/v1"
482
+ #
483
+ # # Create a client object. The client can be reused for multiple calls.
484
+ # client = Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new
485
+ #
486
+ # # Create a request. To set request fields, pass in keyword arguments.
487
+ # request = Google::Cloud::Compute::V1::GetIamPolicyServiceAttachmentRequest.new
488
+ #
489
+ # # Call the get_iam_policy method.
490
+ # result = client.get_iam_policy request
491
+ #
492
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
493
+ # p result
494
+ #
431
495
  def get_iam_policy request, options = nil
432
496
  raise ::ArgumentError, "request must be provided" if request.nil?
433
497
 
@@ -496,6 +560,22 @@ module Google
496
560
  # @return [::Gapic::GenericLRO::Operation]
497
561
  #
498
562
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
563
+ #
564
+ # @example Basic example
565
+ # require "google/cloud/compute/v1"
566
+ #
567
+ # # Create a client object. The client can be reused for multiple calls.
568
+ # client = Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new
569
+ #
570
+ # # Create a request. To set request fields, pass in keyword arguments.
571
+ # request = Google::Cloud::Compute::V1::InsertServiceAttachmentRequest.new
572
+ #
573
+ # # Call the insert method.
574
+ # result = client.insert request
575
+ #
576
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
577
+ # p result
578
+ #
499
579
  def insert request, options = nil
500
580
  raise ::ArgumentError, "request must be provided" if request.nil?
501
581
 
@@ -579,6 +659,22 @@ module Google
579
659
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::ServiceAttachment>]
580
660
  #
581
661
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
662
+ #
663
+ # @example Basic example
664
+ # require "google/cloud/compute/v1"
665
+ #
666
+ # # Create a client object. The client can be reused for multiple calls.
667
+ # client = Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new
668
+ #
669
+ # # Create a request. To set request fields, pass in keyword arguments.
670
+ # request = Google::Cloud::Compute::V1::ListServiceAttachmentsRequest.new
671
+ #
672
+ # # Call the list method.
673
+ # result = client.list request
674
+ #
675
+ # # The returned object is of type Google::Cloud::Compute::V1::ServiceAttachmentList.
676
+ # p result
677
+ #
582
678
  def list request, options = nil
583
679
  raise ::ArgumentError, "request must be provided" if request.nil?
584
680
 
@@ -650,6 +746,22 @@ module Google
650
746
  # @return [::Gapic::GenericLRO::Operation]
651
747
  #
652
748
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
749
+ #
750
+ # @example Basic example
751
+ # require "google/cloud/compute/v1"
752
+ #
753
+ # # Create a client object. The client can be reused for multiple calls.
754
+ # client = Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new
755
+ #
756
+ # # Create a request. To set request fields, pass in keyword arguments.
757
+ # request = Google::Cloud::Compute::V1::PatchServiceAttachmentRequest.new
758
+ #
759
+ # # Call the patch method.
760
+ # result = client.patch request
761
+ #
762
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
763
+ # p result
764
+ #
653
765
  def patch request, options = nil
654
766
  raise ::ArgumentError, "request must be provided" if request.nil?
655
767
 
@@ -727,6 +839,22 @@ module Google
727
839
  # @return [::Google::Cloud::Compute::V1::Policy]
728
840
  #
729
841
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
842
+ #
843
+ # @example Basic example
844
+ # require "google/cloud/compute/v1"
845
+ #
846
+ # # Create a client object. The client can be reused for multiple calls.
847
+ # client = Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new
848
+ #
849
+ # # Create a request. To set request fields, pass in keyword arguments.
850
+ # request = Google::Cloud::Compute::V1::SetIamPolicyServiceAttachmentRequest.new
851
+ #
852
+ # # Call the set_iam_policy method.
853
+ # result = client.set_iam_policy request
854
+ #
855
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
856
+ # p result
857
+ #
730
858
  def set_iam_policy request, options = nil
731
859
  raise ::ArgumentError, "request must be provided" if request.nil?
732
860
 
@@ -795,6 +923,22 @@ module Google
795
923
  # @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
796
924
  #
797
925
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
926
+ #
927
+ # @example Basic example
928
+ # require "google/cloud/compute/v1"
929
+ #
930
+ # # Create a client object. The client can be reused for multiple calls.
931
+ # client = Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new
932
+ #
933
+ # # Create a request. To set request fields, pass in keyword arguments.
934
+ # request = Google::Cloud::Compute::V1::TestIamPermissionsServiceAttachmentRequest.new
935
+ #
936
+ # # Call the test_iam_permissions method.
937
+ # result = client.test_iam_permissions request
938
+ #
939
+ # # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
940
+ # p result
941
+ #
798
942
  def test_iam_permissions request, options = nil
799
943
  raise ::ArgumentError, "request must be provided" if request.nil?
800
944