google-cloud-compute-v1 2.4.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +48 -0
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +224 -0
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +48 -0
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +288 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +288 -0
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +48 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +16 -0
- data/lib/google/cloud/compute/v1/images/rest/client.rb +176 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +320 -0
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +736 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +48 -0
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +256 -0
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +176 -0
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +224 -0
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +48 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +208 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +272 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +304 -0
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +16 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +272 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +160 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +160 -0
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +192 -0
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +192 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +176 -0
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +176 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +32 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
@@ -207,6 +207,22 @@ module Google
|
|
207
207
|
# @return [::Gapic::GenericLRO::Operation]
|
208
208
|
#
|
209
209
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
210
|
+
#
|
211
|
+
# @example Basic example
|
212
|
+
# require "google/cloud/compute/v1"
|
213
|
+
#
|
214
|
+
# # Create a client object. The client can be reused for multiple calls.
|
215
|
+
# client = Google::Cloud::Compute::V1::RegionBackendServices::Rest::Client.new
|
216
|
+
#
|
217
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
218
|
+
# request = Google::Cloud::Compute::V1::DeleteRegionBackendServiceRequest.new
|
219
|
+
#
|
220
|
+
# # Call the delete method.
|
221
|
+
# result = client.delete request
|
222
|
+
#
|
223
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
224
|
+
# p result
|
225
|
+
#
|
210
226
|
def delete request, options = nil
|
211
227
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
212
228
|
|
@@ -282,6 +298,22 @@ module Google
|
|
282
298
|
# @return [::Google::Cloud::Compute::V1::BackendService]
|
283
299
|
#
|
284
300
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
301
|
+
#
|
302
|
+
# @example Basic example
|
303
|
+
# require "google/cloud/compute/v1"
|
304
|
+
#
|
305
|
+
# # Create a client object. The client can be reused for multiple calls.
|
306
|
+
# client = Google::Cloud::Compute::V1::RegionBackendServices::Rest::Client.new
|
307
|
+
#
|
308
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
309
|
+
# request = Google::Cloud::Compute::V1::GetRegionBackendServiceRequest.new
|
310
|
+
#
|
311
|
+
# # Call the get method.
|
312
|
+
# result = client.get request
|
313
|
+
#
|
314
|
+
# # The returned object is of type Google::Cloud::Compute::V1::BackendService.
|
315
|
+
# p result
|
316
|
+
#
|
285
317
|
def get request, options = nil
|
286
318
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
287
319
|
|
@@ -349,6 +381,22 @@ module Google
|
|
349
381
|
# @return [::Google::Cloud::Compute::V1::BackendServiceGroupHealth]
|
350
382
|
#
|
351
383
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
384
|
+
#
|
385
|
+
# @example Basic example
|
386
|
+
# require "google/cloud/compute/v1"
|
387
|
+
#
|
388
|
+
# # Create a client object. The client can be reused for multiple calls.
|
389
|
+
# client = Google::Cloud::Compute::V1::RegionBackendServices::Rest::Client.new
|
390
|
+
#
|
391
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
392
|
+
# request = Google::Cloud::Compute::V1::GetHealthRegionBackendServiceRequest.new
|
393
|
+
#
|
394
|
+
# # Call the get_health method.
|
395
|
+
# result = client.get_health request
|
396
|
+
#
|
397
|
+
# # The returned object is of type Google::Cloud::Compute::V1::BackendServiceGroupHealth.
|
398
|
+
# p result
|
399
|
+
#
|
352
400
|
def get_health request, options = nil
|
353
401
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
354
402
|
|
@@ -417,6 +465,22 @@ module Google
|
|
417
465
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
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::RegionBackendServices::Rest::Client.new
|
474
|
+
#
|
475
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
476
|
+
# request = Google::Cloud::Compute::V1::GetIamPolicyRegionBackendServiceRequest.new
|
477
|
+
#
|
478
|
+
# # Call the get_iam_policy method.
|
479
|
+
# result = client.get_iam_policy request
|
480
|
+
#
|
481
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
482
|
+
# p result
|
483
|
+
#
|
420
484
|
def get_iam_policy request, options = nil
|
421
485
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
422
486
|
|
@@ -485,6 +549,22 @@ module Google
|
|
485
549
|
# @return [::Gapic::GenericLRO::Operation]
|
486
550
|
#
|
487
551
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
552
|
+
#
|
553
|
+
# @example Basic example
|
554
|
+
# require "google/cloud/compute/v1"
|
555
|
+
#
|
556
|
+
# # Create a client object. The client can be reused for multiple calls.
|
557
|
+
# client = Google::Cloud::Compute::V1::RegionBackendServices::Rest::Client.new
|
558
|
+
#
|
559
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
560
|
+
# request = Google::Cloud::Compute::V1::InsertRegionBackendServiceRequest.new
|
561
|
+
#
|
562
|
+
# # Call the insert method.
|
563
|
+
# result = client.insert request
|
564
|
+
#
|
565
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
566
|
+
# p result
|
567
|
+
#
|
488
568
|
def insert request, options = nil
|
489
569
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
490
570
|
|
@@ -568,6 +648,22 @@ module Google
|
|
568
648
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::BackendService>]
|
569
649
|
#
|
570
650
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
651
|
+
#
|
652
|
+
# @example Basic example
|
653
|
+
# require "google/cloud/compute/v1"
|
654
|
+
#
|
655
|
+
# # Create a client object. The client can be reused for multiple calls.
|
656
|
+
# client = Google::Cloud::Compute::V1::RegionBackendServices::Rest::Client.new
|
657
|
+
#
|
658
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
659
|
+
# request = Google::Cloud::Compute::V1::ListRegionBackendServicesRequest.new
|
660
|
+
#
|
661
|
+
# # Call the list method.
|
662
|
+
# result = client.list request
|
663
|
+
#
|
664
|
+
# # The returned object is of type Google::Cloud::Compute::V1::BackendServiceList.
|
665
|
+
# p result
|
666
|
+
#
|
571
667
|
def list request, options = nil
|
572
668
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
573
669
|
|
@@ -639,6 +735,22 @@ module Google
|
|
639
735
|
# @return [::Gapic::GenericLRO::Operation]
|
640
736
|
#
|
641
737
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
738
|
+
#
|
739
|
+
# @example Basic example
|
740
|
+
# require "google/cloud/compute/v1"
|
741
|
+
#
|
742
|
+
# # Create a client object. The client can be reused for multiple calls.
|
743
|
+
# client = Google::Cloud::Compute::V1::RegionBackendServices::Rest::Client.new
|
744
|
+
#
|
745
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
746
|
+
# request = Google::Cloud::Compute::V1::PatchRegionBackendServiceRequest.new
|
747
|
+
#
|
748
|
+
# # Call the patch method.
|
749
|
+
# result = client.patch request
|
750
|
+
#
|
751
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
752
|
+
# p result
|
753
|
+
#
|
642
754
|
def patch request, options = nil
|
643
755
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
644
756
|
|
@@ -716,6 +828,22 @@ module Google
|
|
716
828
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
717
829
|
#
|
718
830
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
831
|
+
#
|
832
|
+
# @example Basic example
|
833
|
+
# require "google/cloud/compute/v1"
|
834
|
+
#
|
835
|
+
# # Create a client object. The client can be reused for multiple calls.
|
836
|
+
# client = Google::Cloud::Compute::V1::RegionBackendServices::Rest::Client.new
|
837
|
+
#
|
838
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
839
|
+
# request = Google::Cloud::Compute::V1::SetIamPolicyRegionBackendServiceRequest.new
|
840
|
+
#
|
841
|
+
# # Call the set_iam_policy method.
|
842
|
+
# result = client.set_iam_policy request
|
843
|
+
#
|
844
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
845
|
+
# p result
|
846
|
+
#
|
719
847
|
def set_iam_policy request, options = nil
|
720
848
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
721
849
|
|
@@ -786,6 +914,22 @@ module Google
|
|
786
914
|
# @return [::Gapic::GenericLRO::Operation]
|
787
915
|
#
|
788
916
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
917
|
+
#
|
918
|
+
# @example Basic example
|
919
|
+
# require "google/cloud/compute/v1"
|
920
|
+
#
|
921
|
+
# # Create a client object. The client can be reused for multiple calls.
|
922
|
+
# client = Google::Cloud::Compute::V1::RegionBackendServices::Rest::Client.new
|
923
|
+
#
|
924
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
925
|
+
# request = Google::Cloud::Compute::V1::UpdateRegionBackendServiceRequest.new
|
926
|
+
#
|
927
|
+
# # Call the update method.
|
928
|
+
# result = client.update request
|
929
|
+
#
|
930
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
931
|
+
# p result
|
932
|
+
#
|
789
933
|
def update request, options = nil
|
790
934
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
791
935
|
|
@@ -205,6 +205,22 @@ module Google
|
|
205
205
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::CommitmentsScopedList>]
|
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::RegionCommitments::Rest::Client.new
|
214
|
+
#
|
215
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
216
|
+
# request = Google::Cloud::Compute::V1::AggregatedListRegionCommitmentsRequest.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::CommitmentAggregatedList.
|
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 [::Google::Cloud::Compute::V1::Commitment]
|
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::RegionCommitments::Rest::Client.new
|
297
|
+
#
|
298
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
299
|
+
# request = Google::Cloud::Compute::V1::GetRegionCommitmentRequest.new
|
300
|
+
#
|
301
|
+
# # Call the get method.
|
302
|
+
# result = client.get request
|
303
|
+
#
|
304
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Commitment.
|
305
|
+
# p result
|
306
|
+
#
|
275
307
|
def get request, options = nil
|
276
308
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
277
309
|
|
@@ -340,6 +372,22 @@ module Google
|
|
340
372
|
# @return [::Gapic::GenericLRO::Operation]
|
341
373
|
#
|
342
374
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
375
|
+
#
|
376
|
+
# @example Basic example
|
377
|
+
# require "google/cloud/compute/v1"
|
378
|
+
#
|
379
|
+
# # Create a client object. The client can be reused for multiple calls.
|
380
|
+
# client = Google::Cloud::Compute::V1::RegionCommitments::Rest::Client.new
|
381
|
+
#
|
382
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
383
|
+
# request = Google::Cloud::Compute::V1::InsertRegionCommitmentRequest.new
|
384
|
+
#
|
385
|
+
# # Call the insert method.
|
386
|
+
# result = client.insert request
|
387
|
+
#
|
388
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
389
|
+
# p result
|
390
|
+
#
|
343
391
|
def insert request, options = nil
|
344
392
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
345
393
|
|
@@ -423,6 +471,22 @@ module Google
|
|
423
471
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Commitment>]
|
424
472
|
#
|
425
473
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
474
|
+
#
|
475
|
+
# @example Basic example
|
476
|
+
# require "google/cloud/compute/v1"
|
477
|
+
#
|
478
|
+
# # Create a client object. The client can be reused for multiple calls.
|
479
|
+
# client = Google::Cloud::Compute::V1::RegionCommitments::Rest::Client.new
|
480
|
+
#
|
481
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
482
|
+
# request = Google::Cloud::Compute::V1::ListRegionCommitmentsRequest.new
|
483
|
+
#
|
484
|
+
# # Call the list method.
|
485
|
+
# result = client.list request
|
486
|
+
#
|
487
|
+
# # The returned object is of type Google::Cloud::Compute::V1::CommitmentList.
|
488
|
+
# p result
|
489
|
+
#
|
426
490
|
def list request, options = nil
|
427
491
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
428
492
|
|
@@ -497,6 +561,22 @@ module Google
|
|
497
561
|
# @return [::Gapic::GenericLRO::Operation]
|
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::RegionCommitments::Rest::Client.new
|
570
|
+
#
|
571
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
572
|
+
# request = Google::Cloud::Compute::V1::UpdateRegionCommitmentRequest.new
|
573
|
+
#
|
574
|
+
# # Call the update method.
|
575
|
+
# result = client.update request
|
576
|
+
#
|
577
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
578
|
+
# p result
|
579
|
+
#
|
500
580
|
def update request, options = nil
|
501
581
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
502
582
|
|
@@ -174,6 +174,22 @@ module Google
|
|
174
174
|
# @return [::Google::Cloud::Compute::V1::DiskType]
|
175
175
|
#
|
176
176
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
177
|
+
#
|
178
|
+
# @example Basic example
|
179
|
+
# require "google/cloud/compute/v1"
|
180
|
+
#
|
181
|
+
# # Create a client object. The client can be reused for multiple calls.
|
182
|
+
# client = Google::Cloud::Compute::V1::RegionDiskTypes::Rest::Client.new
|
183
|
+
#
|
184
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
185
|
+
# request = Google::Cloud::Compute::V1::GetRegionDiskTypeRequest.new
|
186
|
+
#
|
187
|
+
# # Call the get method.
|
188
|
+
# result = client.get request
|
189
|
+
#
|
190
|
+
# # The returned object is of type Google::Cloud::Compute::V1::DiskType.
|
191
|
+
# p result
|
192
|
+
#
|
177
193
|
def get request, options = nil
|
178
194
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
179
195
|
|
@@ -248,6 +264,22 @@ module Google
|
|
248
264
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::DiskType>]
|
249
265
|
#
|
250
266
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
267
|
+
#
|
268
|
+
# @example Basic example
|
269
|
+
# require "google/cloud/compute/v1"
|
270
|
+
#
|
271
|
+
# # Create a client object. The client can be reused for multiple calls.
|
272
|
+
# client = Google::Cloud::Compute::V1::RegionDiskTypes::Rest::Client.new
|
273
|
+
#
|
274
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
275
|
+
# request = Google::Cloud::Compute::V1::ListRegionDiskTypesRequest.new
|
276
|
+
#
|
277
|
+
# # Call the list method.
|
278
|
+
# result = client.list request
|
279
|
+
#
|
280
|
+
# # The returned object is of type Google::Cloud::Compute::V1::RegionDiskTypeList.
|
281
|
+
# p result
|
282
|
+
#
|
251
283
|
def list request, options = nil
|
252
284
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
253
285
|
|