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
@@ -203,6 +203,22 @@ module Google
203
203
  # @return [::Gapic::GenericLRO::Operation]
204
204
  #
205
205
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
206
+ #
207
+ # @example Basic example
208
+ # require "google/cloud/compute/v1"
209
+ #
210
+ # # Create a client object. The client can be reused for multiple calls.
211
+ # client = Google::Cloud::Compute::V1::Snapshots::Rest::Client.new
212
+ #
213
+ # # Create a request. To set request fields, pass in keyword arguments.
214
+ # request = Google::Cloud::Compute::V1::DeleteSnapshotRequest.new
215
+ #
216
+ # # Call the delete method.
217
+ # result = client.delete request
218
+ #
219
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
220
+ # p result
221
+ #
206
222
  def delete request, options = nil
207
223
  raise ::ArgumentError, "request must be provided" if request.nil?
208
224
 
@@ -275,6 +291,22 @@ module Google
275
291
  # @return [::Google::Cloud::Compute::V1::Snapshot]
276
292
  #
277
293
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
294
+ #
295
+ # @example Basic example
296
+ # require "google/cloud/compute/v1"
297
+ #
298
+ # # Create a client object. The client can be reused for multiple calls.
299
+ # client = Google::Cloud::Compute::V1::Snapshots::Rest::Client.new
300
+ #
301
+ # # Create a request. To set request fields, pass in keyword arguments.
302
+ # request = Google::Cloud::Compute::V1::GetSnapshotRequest.new
303
+ #
304
+ # # Call the get method.
305
+ # result = client.get request
306
+ #
307
+ # # The returned object is of type Google::Cloud::Compute::V1::Snapshot.
308
+ # p result
309
+ #
278
310
  def get request, options = nil
279
311
  raise ::ArgumentError, "request must be provided" if request.nil?
280
312
 
@@ -341,6 +373,22 @@ module Google
341
373
  # @return [::Google::Cloud::Compute::V1::Policy]
342
374
  #
343
375
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
376
+ #
377
+ # @example Basic example
378
+ # require "google/cloud/compute/v1"
379
+ #
380
+ # # Create a client object. The client can be reused for multiple calls.
381
+ # client = Google::Cloud::Compute::V1::Snapshots::Rest::Client.new
382
+ #
383
+ # # Create a request. To set request fields, pass in keyword arguments.
384
+ # request = Google::Cloud::Compute::V1::GetIamPolicySnapshotRequest.new
385
+ #
386
+ # # Call the get_iam_policy method.
387
+ # result = client.get_iam_policy request
388
+ #
389
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
390
+ # p result
391
+ #
344
392
  def get_iam_policy request, options = nil
345
393
  raise ::ArgumentError, "request must be provided" if request.nil?
346
394
 
@@ -407,6 +455,22 @@ module Google
407
455
  # @return [::Gapic::GenericLRO::Operation]
408
456
  #
409
457
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
458
+ #
459
+ # @example Basic example
460
+ # require "google/cloud/compute/v1"
461
+ #
462
+ # # Create a client object. The client can be reused for multiple calls.
463
+ # client = Google::Cloud::Compute::V1::Snapshots::Rest::Client.new
464
+ #
465
+ # # Create a request. To set request fields, pass in keyword arguments.
466
+ # request = Google::Cloud::Compute::V1::InsertSnapshotRequest.new
467
+ #
468
+ # # Call the insert method.
469
+ # result = client.insert request
470
+ #
471
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
472
+ # p result
473
+ #
410
474
  def insert request, options = nil
411
475
  raise ::ArgumentError, "request must be provided" if request.nil?
412
476
 
@@ -487,6 +551,22 @@ module Google
487
551
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Snapshot>]
488
552
  #
489
553
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
554
+ #
555
+ # @example Basic example
556
+ # require "google/cloud/compute/v1"
557
+ #
558
+ # # Create a client object. The client can be reused for multiple calls.
559
+ # client = Google::Cloud::Compute::V1::Snapshots::Rest::Client.new
560
+ #
561
+ # # Create a request. To set request fields, pass in keyword arguments.
562
+ # request = Google::Cloud::Compute::V1::ListSnapshotsRequest.new
563
+ #
564
+ # # Call the list method.
565
+ # result = client.list request
566
+ #
567
+ # # The returned object is of type Google::Cloud::Compute::V1::SnapshotList.
568
+ # p result
569
+ #
490
570
  def list request, options = nil
491
571
  raise ::ArgumentError, "request must be provided" if request.nil?
492
572
 
@@ -554,6 +634,22 @@ module Google
554
634
  # @return [::Google::Cloud::Compute::V1::Policy]
555
635
  #
556
636
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
637
+ #
638
+ # @example Basic example
639
+ # require "google/cloud/compute/v1"
640
+ #
641
+ # # Create a client object. The client can be reused for multiple calls.
642
+ # client = Google::Cloud::Compute::V1::Snapshots::Rest::Client.new
643
+ #
644
+ # # Create a request. To set request fields, pass in keyword arguments.
645
+ # request = Google::Cloud::Compute::V1::SetIamPolicySnapshotRequest.new
646
+ #
647
+ # # Call the set_iam_policy method.
648
+ # result = client.set_iam_policy request
649
+ #
650
+ # # The returned object is of type Google::Cloud::Compute::V1::Policy.
651
+ # p result
652
+ #
557
653
  def set_iam_policy request, options = nil
558
654
  raise ::ArgumentError, "request must be provided" if request.nil?
559
655
 
@@ -620,6 +716,22 @@ module Google
620
716
  # @return [::Gapic::GenericLRO::Operation]
621
717
  #
622
718
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
719
+ #
720
+ # @example Basic example
721
+ # require "google/cloud/compute/v1"
722
+ #
723
+ # # Create a client object. The client can be reused for multiple calls.
724
+ # client = Google::Cloud::Compute::V1::Snapshots::Rest::Client.new
725
+ #
726
+ # # Create a request. To set request fields, pass in keyword arguments.
727
+ # request = Google::Cloud::Compute::V1::SetLabelsSnapshotRequest.new
728
+ #
729
+ # # Call the set_labels method.
730
+ # result = client.set_labels request
731
+ #
732
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
733
+ # p result
734
+ #
623
735
  def set_labels request, options = nil
624
736
  raise ::ArgumentError, "request must be provided" if request.nil?
625
737
 
@@ -694,6 +806,22 @@ module Google
694
806
  # @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
695
807
  #
696
808
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
809
+ #
810
+ # @example Basic example
811
+ # require "google/cloud/compute/v1"
812
+ #
813
+ # # Create a client object. The client can be reused for multiple calls.
814
+ # client = Google::Cloud::Compute::V1::Snapshots::Rest::Client.new
815
+ #
816
+ # # Create a request. To set request fields, pass in keyword arguments.
817
+ # request = Google::Cloud::Compute::V1::TestIamPermissionsSnapshotRequest.new
818
+ #
819
+ # # Call the test_iam_permissions method.
820
+ # result = client.test_iam_permissions request
821
+ #
822
+ # # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
823
+ # p result
824
+ #
697
825
  def test_iam_permissions request, options = nil
698
826
  raise ::ArgumentError, "request must be provided" if request.nil?
699
827
 
@@ -205,6 +205,22 @@ module Google
205
205
  # @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::SslCertificatesScopedList>]
206
206
  #
207
207
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
208
+ #
209
+ # @example Basic example
210
+ # require "google/cloud/compute/v1"
211
+ #
212
+ # # Create a client object. The client can be reused for multiple calls.
213
+ # client = Google::Cloud::Compute::V1::SslCertificates::Rest::Client.new
214
+ #
215
+ # # Create a request. To set request fields, pass in keyword arguments.
216
+ # request = Google::Cloud::Compute::V1::AggregatedListSslCertificatesRequest.new
217
+ #
218
+ # # Call the aggregated_list method.
219
+ # result = client.aggregated_list request
220
+ #
221
+ # # The returned object is of type Google::Cloud::Compute::V1::SslCertificateAggregatedList.
222
+ # p result
223
+ #
208
224
  def aggregated_list request, options = nil
209
225
  raise ::ArgumentError, "request must be provided" if request.nil?
210
226
 
@@ -272,6 +288,22 @@ module Google
272
288
  # @return [::Gapic::GenericLRO::Operation]
273
289
  #
274
290
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
291
+ #
292
+ # @example Basic example
293
+ # require "google/cloud/compute/v1"
294
+ #
295
+ # # Create a client object. The client can be reused for multiple calls.
296
+ # client = Google::Cloud::Compute::V1::SslCertificates::Rest::Client.new
297
+ #
298
+ # # Create a request. To set request fields, pass in keyword arguments.
299
+ # request = Google::Cloud::Compute::V1::DeleteSslCertificateRequest.new
300
+ #
301
+ # # Call the delete method.
302
+ # result = client.delete request
303
+ #
304
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
305
+ # p result
306
+ #
275
307
  def delete request, options = nil
276
308
  raise ::ArgumentError, "request must be provided" if request.nil?
277
309
 
@@ -344,6 +376,22 @@ module Google
344
376
  # @return [::Google::Cloud::Compute::V1::SslCertificate]
345
377
  #
346
378
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
379
+ #
380
+ # @example Basic example
381
+ # require "google/cloud/compute/v1"
382
+ #
383
+ # # Create a client object. The client can be reused for multiple calls.
384
+ # client = Google::Cloud::Compute::V1::SslCertificates::Rest::Client.new
385
+ #
386
+ # # Create a request. To set request fields, pass in keyword arguments.
387
+ # request = Google::Cloud::Compute::V1::GetSslCertificateRequest.new
388
+ #
389
+ # # Call the get method.
390
+ # result = client.get request
391
+ #
392
+ # # The returned object is of type Google::Cloud::Compute::V1::SslCertificate.
393
+ # p result
394
+ #
347
395
  def get request, options = nil
348
396
  raise ::ArgumentError, "request must be provided" if request.nil?
349
397
 
@@ -410,6 +458,22 @@ module Google
410
458
  # @return [::Gapic::GenericLRO::Operation]
411
459
  #
412
460
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
461
+ #
462
+ # @example Basic example
463
+ # require "google/cloud/compute/v1"
464
+ #
465
+ # # Create a client object. The client can be reused for multiple calls.
466
+ # client = Google::Cloud::Compute::V1::SslCertificates::Rest::Client.new
467
+ #
468
+ # # Create a request. To set request fields, pass in keyword arguments.
469
+ # request = Google::Cloud::Compute::V1::InsertSslCertificateRequest.new
470
+ #
471
+ # # Call the insert method.
472
+ # result = client.insert request
473
+ #
474
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
475
+ # p result
476
+ #
413
477
  def insert request, options = nil
414
478
  raise ::ArgumentError, "request must be provided" if request.nil?
415
479
 
@@ -490,6 +554,22 @@ module Google
490
554
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::SslCertificate>]
491
555
  #
492
556
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
557
+ #
558
+ # @example Basic example
559
+ # require "google/cloud/compute/v1"
560
+ #
561
+ # # Create a client object. The client can be reused for multiple calls.
562
+ # client = Google::Cloud::Compute::V1::SslCertificates::Rest::Client.new
563
+ #
564
+ # # Create a request. To set request fields, pass in keyword arguments.
565
+ # request = Google::Cloud::Compute::V1::ListSslCertificatesRequest.new
566
+ #
567
+ # # Call the list method.
568
+ # result = client.list request
569
+ #
570
+ # # The returned object is of type Google::Cloud::Compute::V1::SslCertificateList.
571
+ # p result
572
+ #
493
573
  def list request, options = nil
494
574
  raise ::ArgumentError, "request must be provided" if request.nil?
495
575
 
@@ -212,6 +212,22 @@ module Google
212
212
  # @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::SslPoliciesScopedList>]
213
213
  #
214
214
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
215
+ #
216
+ # @example Basic example
217
+ # require "google/cloud/compute/v1"
218
+ #
219
+ # # Create a client object. The client can be reused for multiple calls.
220
+ # client = Google::Cloud::Compute::V1::SslPolicies::Rest::Client.new
221
+ #
222
+ # # Create a request. To set request fields, pass in keyword arguments.
223
+ # request = Google::Cloud::Compute::V1::AggregatedListSslPoliciesRequest.new
224
+ #
225
+ # # Call the aggregated_list method.
226
+ # result = client.aggregated_list request
227
+ #
228
+ # # The returned object is of type Google::Cloud::Compute::V1::SslPoliciesAggregatedList.
229
+ # p result
230
+ #
215
231
  def aggregated_list request, options = nil
216
232
  raise ::ArgumentError, "request must be provided" if request.nil?
217
233
 
@@ -279,6 +295,22 @@ module Google
279
295
  # @return [::Gapic::GenericLRO::Operation]
280
296
  #
281
297
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
298
+ #
299
+ # @example Basic example
300
+ # require "google/cloud/compute/v1"
301
+ #
302
+ # # Create a client object. The client can be reused for multiple calls.
303
+ # client = Google::Cloud::Compute::V1::SslPolicies::Rest::Client.new
304
+ #
305
+ # # Create a request. To set request fields, pass in keyword arguments.
306
+ # request = Google::Cloud::Compute::V1::DeleteSslPolicyRequest.new
307
+ #
308
+ # # Call the delete method.
309
+ # result = client.delete request
310
+ #
311
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
312
+ # p result
313
+ #
282
314
  def delete request, options = nil
283
315
  raise ::ArgumentError, "request must be provided" if request.nil?
284
316
 
@@ -351,6 +383,22 @@ module Google
351
383
  # @return [::Google::Cloud::Compute::V1::SslPolicy]
352
384
  #
353
385
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
386
+ #
387
+ # @example Basic example
388
+ # require "google/cloud/compute/v1"
389
+ #
390
+ # # Create a client object. The client can be reused for multiple calls.
391
+ # client = Google::Cloud::Compute::V1::SslPolicies::Rest::Client.new
392
+ #
393
+ # # Create a request. To set request fields, pass in keyword arguments.
394
+ # request = Google::Cloud::Compute::V1::GetSslPolicyRequest.new
395
+ #
396
+ # # Call the get method.
397
+ # result = client.get request
398
+ #
399
+ # # The returned object is of type Google::Cloud::Compute::V1::SslPolicy.
400
+ # p result
401
+ #
354
402
  def get request, options = nil
355
403
  raise ::ArgumentError, "request must be provided" if request.nil?
356
404
 
@@ -417,6 +465,22 @@ module Google
417
465
  # @return [::Gapic::GenericLRO::Operation]
418
466
  #
419
467
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
468
+ #
469
+ # @example Basic example
470
+ # require "google/cloud/compute/v1"
471
+ #
472
+ # # Create a client object. The client can be reused for multiple calls.
473
+ # client = Google::Cloud::Compute::V1::SslPolicies::Rest::Client.new
474
+ #
475
+ # # Create a request. To set request fields, pass in keyword arguments.
476
+ # request = Google::Cloud::Compute::V1::InsertSslPolicyRequest.new
477
+ #
478
+ # # Call the insert method.
479
+ # result = client.insert request
480
+ #
481
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
482
+ # p result
483
+ #
420
484
  def insert request, options = nil
421
485
  raise ::ArgumentError, "request must be provided" if request.nil?
422
486
 
@@ -497,6 +561,22 @@ module Google
497
561
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::SslPolicy>]
498
562
  #
499
563
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
564
+ #
565
+ # @example Basic example
566
+ # require "google/cloud/compute/v1"
567
+ #
568
+ # # Create a client object. The client can be reused for multiple calls.
569
+ # client = Google::Cloud::Compute::V1::SslPolicies::Rest::Client.new
570
+ #
571
+ # # Create a request. To set request fields, pass in keyword arguments.
572
+ # request = Google::Cloud::Compute::V1::ListSslPoliciesRequest.new
573
+ #
574
+ # # Call the list method.
575
+ # result = client.list request
576
+ #
577
+ # # The returned object is of type Google::Cloud::Compute::V1::SslPoliciesList.
578
+ # p result
579
+ #
500
580
  def list request, options = nil
501
581
  raise ::ArgumentError, "request must be provided" if request.nil?
502
582
 
@@ -570,6 +650,22 @@ module Google
570
650
  # @return [::Google::Cloud::Compute::V1::SslPoliciesListAvailableFeaturesResponse]
571
651
  #
572
652
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
653
+ #
654
+ # @example Basic example
655
+ # require "google/cloud/compute/v1"
656
+ #
657
+ # # Create a client object. The client can be reused for multiple calls.
658
+ # client = Google::Cloud::Compute::V1::SslPolicies::Rest::Client.new
659
+ #
660
+ # # Create a request. To set request fields, pass in keyword arguments.
661
+ # request = Google::Cloud::Compute::V1::ListAvailableFeaturesSslPoliciesRequest.new
662
+ #
663
+ # # Call the list_available_features method.
664
+ # result = client.list_available_features request
665
+ #
666
+ # # The returned object is of type Google::Cloud::Compute::V1::SslPoliciesListAvailableFeaturesResponse.
667
+ # p result
668
+ #
573
669
  def list_available_features request, options = nil
574
670
  raise ::ArgumentError, "request must be provided" if request.nil?
575
671
 
@@ -638,6 +734,22 @@ module Google
638
734
  # @return [::Gapic::GenericLRO::Operation]
639
735
  #
640
736
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
737
+ #
738
+ # @example Basic example
739
+ # require "google/cloud/compute/v1"
740
+ #
741
+ # # Create a client object. The client can be reused for multiple calls.
742
+ # client = Google::Cloud::Compute::V1::SslPolicies::Rest::Client.new
743
+ #
744
+ # # Create a request. To set request fields, pass in keyword arguments.
745
+ # request = Google::Cloud::Compute::V1::PatchSslPolicyRequest.new
746
+ #
747
+ # # Call the patch method.
748
+ # result = client.patch request
749
+ #
750
+ # # The returned object is of type Google::Cloud::Compute::V1::Operation.
751
+ # p result
752
+ #
641
753
  def patch request, options = nil
642
754
  raise ::ArgumentError, "request must be provided" if request.nil?
643
755