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
@@ -234,6 +234,22 @@ module Google
234
234
  # @return [::Gapic::GenericLRO::Operation]
235
235
  #
236
236
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
237
+ #
238
+ # @example Basic example
239
+ # require "google/cloud/compute/v1"
240
+ #
241
+ # # Create a client object. The client can be reused for multiple calls.
242
+ # client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
243
+ #
244
+ # # Create a request. To set request fields, pass in keyword arguments.
245
+ # request = Google::Cloud::Compute::V1::AddAssociationFirewallPolicyRequest.new
246
+ #
247
+ # # Call the add_association method.
248
+ # result = client.add_association request
249
+ #
250
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
251
+ # p result
252
+ #
237
253
  def add_association request, options = nil
238
254
  raise ::ArgumentError, "request must be provided" if request.nil?
239
255
 
@@ -306,6 +322,22 @@ module Google
306
322
  # @return [::Gapic::GenericLRO::Operation]
307
323
  #
308
324
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
325
+ #
326
+ # @example Basic example
327
+ # require "google/cloud/compute/v1"
328
+ #
329
+ # # Create a client object. The client can be reused for multiple calls.
330
+ # client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
331
+ #
332
+ # # Create a request. To set request fields, pass in keyword arguments.
333
+ # request = Google::Cloud::Compute::V1::AddRuleFirewallPolicyRequest.new
334
+ #
335
+ # # Call the add_rule method.
336
+ # result = client.add_rule request
337
+ #
338
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
339
+ # p result
340
+ #
309
341
  def add_rule request, options = nil
310
342
  raise ::ArgumentError, "request must be provided" if request.nil?
311
343
 
@@ -378,6 +410,22 @@ module Google
378
410
  # @return [::Gapic::GenericLRO::Operation]
379
411
  #
380
412
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
413
+ #
414
+ # @example Basic example
415
+ # require "google/cloud/compute/v1"
416
+ #
417
+ # # Create a client object. The client can be reused for multiple calls.
418
+ # client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
419
+ #
420
+ # # Create a request. To set request fields, pass in keyword arguments.
421
+ # request = Google::Cloud::Compute::V1::CloneRulesFirewallPolicyRequest.new
422
+ #
423
+ # # Call the clone_rules method.
424
+ # result = client.clone_rules request
425
+ #
426
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
427
+ # p result
428
+ #
381
429
  def clone_rules request, options = nil
382
430
  raise ::ArgumentError, "request must be provided" if request.nil?
383
431
 
@@ -448,6 +496,22 @@ module Google
448
496
  # @return [::Gapic::GenericLRO::Operation]
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::FirewallPolicies::Rest::Client.new
505
+ #
506
+ # # Create a request. To set request fields, pass in keyword arguments.
507
+ # request = Google::Cloud::Compute::V1::DeleteFirewallPolicyRequest.new
508
+ #
509
+ # # Call the delete method.
510
+ # result = client.delete request
511
+ #
512
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
513
+ # p result
514
+ #
451
515
  def delete 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::FirewallPolicy]
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::FirewallPolicies::Rest::Client.new
589
+ #
590
+ # # Create a request. To set request fields, pass in keyword arguments.
591
+ # request = Google::Cloud::Compute::V1::GetFirewallPolicyRequest.new
592
+ #
593
+ # # Call the get method.
594
+ # result = client.get request
595
+ #
596
+ # # The returned object is of type Google::Cloud::Compute::V1::FirewallPolicy.
597
+ # p result
598
+ #
519
599
  def get request, options = nil
520
600
  raise ::ArgumentError, "request must be provided" if request.nil?
521
601
 
@@ -580,6 +660,22 @@ module Google
580
660
  # @return [::Google::Cloud::Compute::V1::FirewallPolicyAssociation]
581
661
  #
582
662
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
663
+ #
664
+ # @example Basic example
665
+ # require "google/cloud/compute/v1"
666
+ #
667
+ # # Create a client object. The client can be reused for multiple calls.
668
+ # client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
669
+ #
670
+ # # Create a request. To set request fields, pass in keyword arguments.
671
+ # request = Google::Cloud::Compute::V1::GetAssociationFirewallPolicyRequest.new
672
+ #
673
+ # # Call the get_association method.
674
+ # result = client.get_association request
675
+ #
676
+ # # The returned object is of type Google::Cloud::Compute::V1::FirewallPolicyAssociation.
677
+ # p result
678
+ #
583
679
  def get_association request, options = nil
584
680
  raise ::ArgumentError, "request must be provided" if request.nil?
585
681
 
@@ -644,6 +740,22 @@ module Google
644
740
  # @return [::Google::Cloud::Compute::V1::Policy]
645
741
  #
646
742
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
743
+ #
744
+ # @example Basic example
745
+ # require "google/cloud/compute/v1"
746
+ #
747
+ # # Create a client object. The client can be reused for multiple calls.
748
+ # client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
749
+ #
750
+ # # Create a request. To set request fields, pass in keyword arguments.
751
+ # request = Google::Cloud::Compute::V1::GetIamPolicyFirewallPolicyRequest.new
752
+ #
753
+ # # Call the get_iam_policy method.
754
+ # result = client.get_iam_policy request
755
+ #
756
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
757
+ # p result
758
+ #
647
759
  def get_iam_policy request, options = nil
648
760
  raise ::ArgumentError, "request must be provided" if request.nil?
649
761
 
@@ -708,6 +820,22 @@ module Google
708
820
  # @return [::Google::Cloud::Compute::V1::FirewallPolicyRule]
709
821
  #
710
822
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
823
+ #
824
+ # @example Basic example
825
+ # require "google/cloud/compute/v1"
826
+ #
827
+ # # Create a client object. The client can be reused for multiple calls.
828
+ # client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
829
+ #
830
+ # # Create a request. To set request fields, pass in keyword arguments.
831
+ # request = Google::Cloud::Compute::V1::GetRuleFirewallPolicyRequest.new
832
+ #
833
+ # # Call the get_rule method.
834
+ # result = client.get_rule request
835
+ #
836
+ # # The returned object is of type Google::Cloud::Compute::V1::FirewallPolicyRule.
837
+ # p result
838
+ #
711
839
  def get_rule request, options = nil
712
840
  raise ::ArgumentError, "request must be provided" if request.nil?
713
841
 
@@ -774,6 +902,22 @@ module Google
774
902
  # @return [::Gapic::GenericLRO::Operation]
775
903
  #
776
904
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
905
+ #
906
+ # @example Basic example
907
+ # require "google/cloud/compute/v1"
908
+ #
909
+ # # Create a client object. The client can be reused for multiple calls.
910
+ # client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
911
+ #
912
+ # # Create a request. To set request fields, pass in keyword arguments.
913
+ # request = Google::Cloud::Compute::V1::InsertFirewallPolicyRequest.new
914
+ #
915
+ # # Call the insert method.
916
+ # result = client.insert request
917
+ #
918
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
919
+ # p result
920
+ #
777
921
  def insert request, options = nil
778
922
  raise ::ArgumentError, "request must be provided" if request.nil?
779
923
 
@@ -854,6 +998,22 @@ module Google
854
998
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::FirewallPolicy>]
855
999
  #
856
1000
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1001
+ #
1002
+ # @example Basic example
1003
+ # require "google/cloud/compute/v1"
1004
+ #
1005
+ # # Create a client object. The client can be reused for multiple calls.
1006
+ # client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
1007
+ #
1008
+ # # Create a request. To set request fields, pass in keyword arguments.
1009
+ # request = Google::Cloud::Compute::V1::ListFirewallPoliciesRequest.new
1010
+ #
1011
+ # # Call the list method.
1012
+ # result = client.list request
1013
+ #
1014
+ # # The returned object is of type Google::Cloud::Compute::V1::FirewallPolicyList.
1015
+ # p result
1016
+ #
857
1017
  def list request, options = nil
858
1018
  raise ::ArgumentError, "request must be provided" if request.nil?
859
1019
 
@@ -917,6 +1077,22 @@ module Google
917
1077
  # @return [::Google::Cloud::Compute::V1::FirewallPoliciesListAssociationsResponse]
918
1078
  #
919
1079
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1080
+ #
1081
+ # @example Basic example
1082
+ # require "google/cloud/compute/v1"
1083
+ #
1084
+ # # Create a client object. The client can be reused for multiple calls.
1085
+ # client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
1086
+ #
1087
+ # # Create a request. To set request fields, pass in keyword arguments.
1088
+ # request = Google::Cloud::Compute::V1::ListAssociationsFirewallPolicyRequest.new
1089
+ #
1090
+ # # Call the list_associations method.
1091
+ # result = client.list_associations request
1092
+ #
1093
+ # # The returned object is of type Google::Cloud::Compute::V1::FirewallPoliciesListAssociationsResponse.
1094
+ # p result
1095
+ #
920
1096
  def list_associations request, options = nil
921
1097
  raise ::ArgumentError, "request must be provided" if request.nil?
922
1098
 
@@ -983,6 +1159,22 @@ module Google
983
1159
  # @return [::Gapic::GenericLRO::Operation]
984
1160
  #
985
1161
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1162
+ #
1163
+ # @example Basic example
1164
+ # require "google/cloud/compute/v1"
1165
+ #
1166
+ # # Create a client object. The client can be reused for multiple calls.
1167
+ # client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
1168
+ #
1169
+ # # Create a request. To set request fields, pass in keyword arguments.
1170
+ # request = Google::Cloud::Compute::V1::MoveFirewallPolicyRequest.new
1171
+ #
1172
+ # # Call the move method.
1173
+ # result = client.move request
1174
+ #
1175
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1176
+ # p result
1177
+ #
986
1178
  def move request, options = nil
987
1179
  raise ::ArgumentError, "request must be provided" if request.nil?
988
1180
 
@@ -1057,6 +1249,22 @@ module Google
1057
1249
  # @return [::Gapic::GenericLRO::Operation]
1058
1250
  #
1059
1251
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1252
+ #
1253
+ # @example Basic example
1254
+ # require "google/cloud/compute/v1"
1255
+ #
1256
+ # # Create a client object. The client can be reused for multiple calls.
1257
+ # client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
1258
+ #
1259
+ # # Create a request. To set request fields, pass in keyword arguments.
1260
+ # request = Google::Cloud::Compute::V1::PatchFirewallPolicyRequest.new
1261
+ #
1262
+ # # Call the patch method.
1263
+ # result = client.patch request
1264
+ #
1265
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1266
+ # p result
1267
+ #
1060
1268
  def patch request, options = nil
1061
1269
  raise ::ArgumentError, "request must be provided" if request.nil?
1062
1270
 
@@ -1131,6 +1339,22 @@ module Google
1131
1339
  # @return [::Gapic::GenericLRO::Operation]
1132
1340
  #
1133
1341
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1342
+ #
1343
+ # @example Basic example
1344
+ # require "google/cloud/compute/v1"
1345
+ #
1346
+ # # Create a client object. The client can be reused for multiple calls.
1347
+ # client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
1348
+ #
1349
+ # # Create a request. To set request fields, pass in keyword arguments.
1350
+ # request = Google::Cloud::Compute::V1::PatchRuleFirewallPolicyRequest.new
1351
+ #
1352
+ # # Call the patch_rule method.
1353
+ # result = client.patch_rule request
1354
+ #
1355
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1356
+ # p result
1357
+ #
1134
1358
  def patch_rule request, options = nil
1135
1359
  raise ::ArgumentError, "request must be provided" if request.nil?
1136
1360
 
@@ -1203,6 +1427,22 @@ module Google
1203
1427
  # @return [::Gapic::GenericLRO::Operation]
1204
1428
  #
1205
1429
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1430
+ #
1431
+ # @example Basic example
1432
+ # require "google/cloud/compute/v1"
1433
+ #
1434
+ # # Create a client object. The client can be reused for multiple calls.
1435
+ # client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
1436
+ #
1437
+ # # Create a request. To set request fields, pass in keyword arguments.
1438
+ # request = Google::Cloud::Compute::V1::RemoveAssociationFirewallPolicyRequest.new
1439
+ #
1440
+ # # Call the remove_association method.
1441
+ # result = client.remove_association request
1442
+ #
1443
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1444
+ # p result
1445
+ #
1206
1446
  def remove_association request, options = nil
1207
1447
  raise ::ArgumentError, "request must be provided" if request.nil?
1208
1448
 
@@ -1275,6 +1515,22 @@ module Google
1275
1515
  # @return [::Gapic::GenericLRO::Operation]
1276
1516
  #
1277
1517
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1518
+ #
1519
+ # @example Basic example
1520
+ # require "google/cloud/compute/v1"
1521
+ #
1522
+ # # Create a client object. The client can be reused for multiple calls.
1523
+ # client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
1524
+ #
1525
+ # # Create a request. To set request fields, pass in keyword arguments.
1526
+ # request = Google::Cloud::Compute::V1::RemoveRuleFirewallPolicyRequest.new
1527
+ #
1528
+ # # Call the remove_rule method.
1529
+ # result = client.remove_rule request
1530
+ #
1531
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
1532
+ # p result
1533
+ #
1278
1534
  def remove_rule request, options = nil
1279
1535
  raise ::ArgumentError, "request must be provided" if request.nil?
1280
1536
 
@@ -1345,6 +1601,22 @@ module Google
1345
1601
  # @return [::Google::Cloud::Compute::V1::Policy]
1346
1602
  #
1347
1603
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1604
+ #
1605
+ # @example Basic example
1606
+ # require "google/cloud/compute/v1"
1607
+ #
1608
+ # # Create a client object. The client can be reused for multiple calls.
1609
+ # client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
1610
+ #
1611
+ # # Create a request. To set request fields, pass in keyword arguments.
1612
+ # request = Google::Cloud::Compute::V1::SetIamPolicyFirewallPolicyRequest.new
1613
+ #
1614
+ # # Call the set_iam_policy method.
1615
+ # result = client.set_iam_policy request
1616
+ #
1617
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
1618
+ # p result
1619
+ #
1348
1620
  def set_iam_policy request, options = nil
1349
1621
  raise ::ArgumentError, "request must be provided" if request.nil?
1350
1622
 
@@ -1409,6 +1681,22 @@ module Google
1409
1681
  # @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
1410
1682
  #
1411
1683
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
1684
+ #
1685
+ # @example Basic example
1686
+ # require "google/cloud/compute/v1"
1687
+ #
1688
+ # # Create a client object. The client can be reused for multiple calls.
1689
+ # client = Google::Cloud::Compute::V1::FirewallPolicies::Rest::Client.new
1690
+ #
1691
+ # # Create a request. To set request fields, pass in keyword arguments.
1692
+ # request = Google::Cloud::Compute::V1::TestIamPermissionsFirewallPolicyRequest.new
1693
+ #
1694
+ # # Call the test_iam_permissions method.
1695
+ # result = client.test_iam_permissions request
1696
+ #
1697
+ # # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
1698
+ # p result
1699
+ #
1412
1700
  def test_iam_permissions request, options = nil
1413
1701
  raise ::ArgumentError, "request must be provided" if request.nil?
1414
1702
 
@@ -196,6 +196,22 @@ module Google
196
196
  # @return [::Gapic::GenericLRO::Operation]
197
197
  #
198
198
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
199
+ #
200
+ # @example Basic example
201
+ # require "google/cloud/compute/v1"
202
+ #
203
+ # # Create a client object. The client can be reused for multiple calls.
204
+ # client = Google::Cloud::Compute::V1::Firewalls::Rest::Client.new
205
+ #
206
+ # # Create a request. To set request fields, pass in keyword arguments.
207
+ # request = Google::Cloud::Compute::V1::DeleteFirewallRequest.new
208
+ #
209
+ # # Call the delete method.
210
+ # result = client.delete request
211
+ #
212
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
213
+ # p result
214
+ #
199
215
  def delete request, options = nil
200
216
  raise ::ArgumentError, "request must be provided" if request.nil?
201
217
 
@@ -268,6 +284,22 @@ module Google
268
284
  # @return [::Google::Cloud::Compute::V1::Firewall]
269
285
  #
270
286
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
287
+ #
288
+ # @example Basic example
289
+ # require "google/cloud/compute/v1"
290
+ #
291
+ # # Create a client object. The client can be reused for multiple calls.
292
+ # client = Google::Cloud::Compute::V1::Firewalls::Rest::Client.new
293
+ #
294
+ # # Create a request. To set request fields, pass in keyword arguments.
295
+ # request = Google::Cloud::Compute::V1::GetFirewallRequest.new
296
+ #
297
+ # # Call the get method.
298
+ # result = client.get request
299
+ #
300
+ # # The returned object is of type Google::Cloud::Compute::V1::Firewall.
301
+ # p result
302
+ #
271
303
  def get request, options = nil
272
304
  raise ::ArgumentError, "request must be provided" if request.nil?
273
305
 
@@ -334,6 +366,22 @@ module Google
334
366
  # @return [::Gapic::GenericLRO::Operation]
335
367
  #
336
368
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
369
+ #
370
+ # @example Basic example
371
+ # require "google/cloud/compute/v1"
372
+ #
373
+ # # Create a client object. The client can be reused for multiple calls.
374
+ # client = Google::Cloud::Compute::V1::Firewalls::Rest::Client.new
375
+ #
376
+ # # Create a request. To set request fields, pass in keyword arguments.
377
+ # request = Google::Cloud::Compute::V1::InsertFirewallRequest.new
378
+ #
379
+ # # Call the insert method.
380
+ # result = client.insert request
381
+ #
382
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
383
+ # p result
384
+ #
337
385
  def insert request, options = nil
338
386
  raise ::ArgumentError, "request must be provided" if request.nil?
339
387
 
@@ -414,6 +462,22 @@ module Google
414
462
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Firewall>]
415
463
  #
416
464
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
465
+ #
466
+ # @example Basic example
467
+ # require "google/cloud/compute/v1"
468
+ #
469
+ # # Create a client object. The client can be reused for multiple calls.
470
+ # client = Google::Cloud::Compute::V1::Firewalls::Rest::Client.new
471
+ #
472
+ # # Create a request. To set request fields, pass in keyword arguments.
473
+ # request = Google::Cloud::Compute::V1::ListFirewallsRequest.new
474
+ #
475
+ # # Call the list method.
476
+ # result = client.list request
477
+ #
478
+ # # The returned object is of type Google::Cloud::Compute::V1::FirewallList.
479
+ # p result
480
+ #
417
481
  def list request, options = nil
418
482
  raise ::ArgumentError, "request must be provided" if request.nil?
419
483
 
@@ -483,6 +547,22 @@ module Google
483
547
  # @return [::Gapic::GenericLRO::Operation]
484
548
  #
485
549
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
550
+ #
551
+ # @example Basic example
552
+ # require "google/cloud/compute/v1"
553
+ #
554
+ # # Create a client object. The client can be reused for multiple calls.
555
+ # client = Google::Cloud::Compute::V1::Firewalls::Rest::Client.new
556
+ #
557
+ # # Create a request. To set request fields, pass in keyword arguments.
558
+ # request = Google::Cloud::Compute::V1::PatchFirewallRequest.new
559
+ #
560
+ # # Call the patch method.
561
+ # result = client.patch request
562
+ #
563
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
564
+ # p result
565
+ #
486
566
  def patch request, options = nil
487
567
  raise ::ArgumentError, "request must be provided" if request.nil?
488
568
 
@@ -559,6 +639,22 @@ module Google
559
639
  # @return [::Gapic::GenericLRO::Operation]
560
640
  #
561
641
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
642
+ #
643
+ # @example Basic example
644
+ # require "google/cloud/compute/v1"
645
+ #
646
+ # # Create a client object. The client can be reused for multiple calls.
647
+ # client = Google::Cloud::Compute::V1::Firewalls::Rest::Client.new
648
+ #
649
+ # # Create a request. To set request fields, pass in keyword arguments.
650
+ # request = Google::Cloud::Compute::V1::UpdateFirewallRequest.new
651
+ #
652
+ # # Call the update method.
653
+ # result = client.update request
654
+ #
655
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
656
+ # p result
657
+ #
562
658
  def update request, options = nil
563
659
  raise ::ArgumentError, "request must be provided" if request.nil?
564
660