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.
- 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/compute_pb.rb +3 -1
- 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 +81 -1
- 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 +234 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +62 -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 +194 -2
- 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
- data/proto_docs/google/cloud/compute/v1/compute.rb +56 -4
- metadata +5 -5
@@ -220,6 +220,22 @@ module Google
|
|
220
220
|
# @return [::Gapic::GenericLRO::Operation]
|
221
221
|
#
|
222
222
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
223
|
+
#
|
224
|
+
# @example Basic example
|
225
|
+
# require "google/cloud/compute/v1"
|
226
|
+
#
|
227
|
+
# # Create a client object. The client can be reused for multiple calls.
|
228
|
+
# client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
|
229
|
+
#
|
230
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
231
|
+
# request = Google::Cloud::Compute::V1::AddSignedUrlKeyBackendServiceRequest.new
|
232
|
+
#
|
233
|
+
# # Call the add_signed_url_key method.
|
234
|
+
# result = client.add_signed_url_key request
|
235
|
+
#
|
236
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
237
|
+
# p result
|
238
|
+
#
|
223
239
|
def add_signed_url_key request, options = nil
|
224
240
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
225
241
|
|
@@ -302,6 +318,22 @@ module Google
|
|
302
318
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::BackendServicesScopedList>]
|
303
319
|
#
|
304
320
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
321
|
+
#
|
322
|
+
# @example Basic example
|
323
|
+
# require "google/cloud/compute/v1"
|
324
|
+
#
|
325
|
+
# # Create a client object. The client can be reused for multiple calls.
|
326
|
+
# client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
|
327
|
+
#
|
328
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
329
|
+
# request = Google::Cloud::Compute::V1::AggregatedListBackendServicesRequest.new
|
330
|
+
#
|
331
|
+
# # Call the aggregated_list method.
|
332
|
+
# result = client.aggregated_list request
|
333
|
+
#
|
334
|
+
# # The returned object is of type Google::Cloud::Compute::V1::BackendServiceAggregatedList.
|
335
|
+
# p result
|
336
|
+
#
|
305
337
|
def aggregated_list request, options = nil
|
306
338
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
307
339
|
|
@@ -369,6 +401,22 @@ module Google
|
|
369
401
|
# @return [::Gapic::GenericLRO::Operation]
|
370
402
|
#
|
371
403
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
404
|
+
#
|
405
|
+
# @example Basic example
|
406
|
+
# require "google/cloud/compute/v1"
|
407
|
+
#
|
408
|
+
# # Create a client object. The client can be reused for multiple calls.
|
409
|
+
# client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
|
410
|
+
#
|
411
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
412
|
+
# request = Google::Cloud::Compute::V1::DeleteBackendServiceRequest.new
|
413
|
+
#
|
414
|
+
# # Call the delete method.
|
415
|
+
# result = client.delete request
|
416
|
+
#
|
417
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
418
|
+
# p result
|
419
|
+
#
|
372
420
|
def delete request, options = nil
|
373
421
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
374
422
|
|
@@ -445,6 +493,22 @@ module Google
|
|
445
493
|
# @return [::Gapic::GenericLRO::Operation]
|
446
494
|
#
|
447
495
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
496
|
+
#
|
497
|
+
# @example Basic example
|
498
|
+
# require "google/cloud/compute/v1"
|
499
|
+
#
|
500
|
+
# # Create a client object. The client can be reused for multiple calls.
|
501
|
+
# client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
|
502
|
+
#
|
503
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
504
|
+
# request = Google::Cloud::Compute::V1::DeleteSignedUrlKeyBackendServiceRequest.new
|
505
|
+
#
|
506
|
+
# # Call the delete_signed_url_key method.
|
507
|
+
# result = client.delete_signed_url_key request
|
508
|
+
#
|
509
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
510
|
+
# p result
|
511
|
+
#
|
448
512
|
def delete_signed_url_key request, options = nil
|
449
513
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
450
514
|
|
@@ -517,6 +581,22 @@ module Google
|
|
517
581
|
# @return [::Google::Cloud::Compute::V1::BackendService]
|
518
582
|
#
|
519
583
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
584
|
+
#
|
585
|
+
# @example Basic example
|
586
|
+
# require "google/cloud/compute/v1"
|
587
|
+
#
|
588
|
+
# # Create a client object. The client can be reused for multiple calls.
|
589
|
+
# client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
|
590
|
+
#
|
591
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
592
|
+
# request = Google::Cloud::Compute::V1::GetBackendServiceRequest.new
|
593
|
+
#
|
594
|
+
# # Call the get method.
|
595
|
+
# result = client.get request
|
596
|
+
#
|
597
|
+
# # The returned object is of type Google::Cloud::Compute::V1::BackendService.
|
598
|
+
# p result
|
599
|
+
#
|
520
600
|
def get request, options = nil
|
521
601
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
522
602
|
|
@@ -582,6 +662,22 @@ module Google
|
|
582
662
|
# @return [::Google::Cloud::Compute::V1::BackendServiceGroupHealth]
|
583
663
|
#
|
584
664
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
665
|
+
#
|
666
|
+
# @example Basic example
|
667
|
+
# require "google/cloud/compute/v1"
|
668
|
+
#
|
669
|
+
# # Create a client object. The client can be reused for multiple calls.
|
670
|
+
# client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
|
671
|
+
#
|
672
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
673
|
+
# request = Google::Cloud::Compute::V1::GetHealthBackendServiceRequest.new
|
674
|
+
#
|
675
|
+
# # Call the get_health method.
|
676
|
+
# result = client.get_health request
|
677
|
+
#
|
678
|
+
# # The returned object is of type Google::Cloud::Compute::V1::BackendServiceGroupHealth.
|
679
|
+
# p result
|
680
|
+
#
|
585
681
|
def get_health request, options = nil
|
586
682
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
587
683
|
|
@@ -648,6 +744,22 @@ module Google
|
|
648
744
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
649
745
|
#
|
650
746
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
747
|
+
#
|
748
|
+
# @example Basic example
|
749
|
+
# require "google/cloud/compute/v1"
|
750
|
+
#
|
751
|
+
# # Create a client object. The client can be reused for multiple calls.
|
752
|
+
# client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
|
753
|
+
#
|
754
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
755
|
+
# request = Google::Cloud::Compute::V1::GetIamPolicyBackendServiceRequest.new
|
756
|
+
#
|
757
|
+
# # Call the get_iam_policy method.
|
758
|
+
# result = client.get_iam_policy request
|
759
|
+
#
|
760
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
761
|
+
# p result
|
762
|
+
#
|
651
763
|
def get_iam_policy request, options = nil
|
652
764
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
653
765
|
|
@@ -714,6 +826,22 @@ module Google
|
|
714
826
|
# @return [::Gapic::GenericLRO::Operation]
|
715
827
|
#
|
716
828
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
829
|
+
#
|
830
|
+
# @example Basic example
|
831
|
+
# require "google/cloud/compute/v1"
|
832
|
+
#
|
833
|
+
# # Create a client object. The client can be reused for multiple calls.
|
834
|
+
# client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
|
835
|
+
#
|
836
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
837
|
+
# request = Google::Cloud::Compute::V1::InsertBackendServiceRequest.new
|
838
|
+
#
|
839
|
+
# # Call the insert method.
|
840
|
+
# result = client.insert request
|
841
|
+
#
|
842
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
843
|
+
# p result
|
844
|
+
#
|
717
845
|
def insert request, options = nil
|
718
846
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
719
847
|
|
@@ -794,6 +922,22 @@ module Google
|
|
794
922
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::BackendService>]
|
795
923
|
#
|
796
924
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
925
|
+
#
|
926
|
+
# @example Basic example
|
927
|
+
# require "google/cloud/compute/v1"
|
928
|
+
#
|
929
|
+
# # Create a client object. The client can be reused for multiple calls.
|
930
|
+
# client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
|
931
|
+
#
|
932
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
933
|
+
# request = Google::Cloud::Compute::V1::ListBackendServicesRequest.new
|
934
|
+
#
|
935
|
+
# # Call the list method.
|
936
|
+
# result = client.list request
|
937
|
+
#
|
938
|
+
# # The returned object is of type Google::Cloud::Compute::V1::BackendServiceList.
|
939
|
+
# p result
|
940
|
+
#
|
797
941
|
def list request, options = nil
|
798
942
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
799
943
|
|
@@ -863,6 +1007,22 @@ module Google
|
|
863
1007
|
# @return [::Gapic::GenericLRO::Operation]
|
864
1008
|
#
|
865
1009
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1010
|
+
#
|
1011
|
+
# @example Basic example
|
1012
|
+
# require "google/cloud/compute/v1"
|
1013
|
+
#
|
1014
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1015
|
+
# client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
|
1016
|
+
#
|
1017
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1018
|
+
# request = Google::Cloud::Compute::V1::PatchBackendServiceRequest.new
|
1019
|
+
#
|
1020
|
+
# # Call the patch method.
|
1021
|
+
# result = client.patch request
|
1022
|
+
#
|
1023
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1024
|
+
# p result
|
1025
|
+
#
|
866
1026
|
def patch request, options = nil
|
867
1027
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
868
1028
|
|
@@ -939,6 +1099,22 @@ module Google
|
|
939
1099
|
# @return [::Gapic::GenericLRO::Operation]
|
940
1100
|
#
|
941
1101
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1102
|
+
#
|
1103
|
+
# @example Basic example
|
1104
|
+
# require "google/cloud/compute/v1"
|
1105
|
+
#
|
1106
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1107
|
+
# client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
|
1108
|
+
#
|
1109
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1110
|
+
# request = Google::Cloud::Compute::V1::SetEdgeSecurityPolicyBackendServiceRequest.new
|
1111
|
+
#
|
1112
|
+
# # Call the set_edge_security_policy method.
|
1113
|
+
# result = client.set_edge_security_policy request
|
1114
|
+
#
|
1115
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1116
|
+
# p result
|
1117
|
+
#
|
942
1118
|
def set_edge_security_policy request, options = nil
|
943
1119
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
944
1120
|
|
@@ -1013,6 +1189,22 @@ module Google
|
|
1013
1189
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
1014
1190
|
#
|
1015
1191
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1192
|
+
#
|
1193
|
+
# @example Basic example
|
1194
|
+
# require "google/cloud/compute/v1"
|
1195
|
+
#
|
1196
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1197
|
+
# client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
|
1198
|
+
#
|
1199
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1200
|
+
# request = Google::Cloud::Compute::V1::SetIamPolicyBackendServiceRequest.new
|
1201
|
+
#
|
1202
|
+
# # Call the set_iam_policy method.
|
1203
|
+
# result = client.set_iam_policy request
|
1204
|
+
#
|
1205
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
1206
|
+
# p result
|
1207
|
+
#
|
1016
1208
|
def set_iam_policy request, options = nil
|
1017
1209
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1018
1210
|
|
@@ -1081,6 +1273,22 @@ module Google
|
|
1081
1273
|
# @return [::Gapic::GenericLRO::Operation]
|
1082
1274
|
#
|
1083
1275
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1276
|
+
#
|
1277
|
+
# @example Basic example
|
1278
|
+
# require "google/cloud/compute/v1"
|
1279
|
+
#
|
1280
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1281
|
+
# client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
|
1282
|
+
#
|
1283
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1284
|
+
# request = Google::Cloud::Compute::V1::SetSecurityPolicyBackendServiceRequest.new
|
1285
|
+
#
|
1286
|
+
# # Call the set_security_policy method.
|
1287
|
+
# result = client.set_security_policy request
|
1288
|
+
#
|
1289
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1290
|
+
# p result
|
1291
|
+
#
|
1084
1292
|
def set_security_policy request, options = nil
|
1085
1293
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1086
1294
|
|
@@ -1157,6 +1365,22 @@ module Google
|
|
1157
1365
|
# @return [::Gapic::GenericLRO::Operation]
|
1158
1366
|
#
|
1159
1367
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1368
|
+
#
|
1369
|
+
# @example Basic example
|
1370
|
+
# require "google/cloud/compute/v1"
|
1371
|
+
#
|
1372
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1373
|
+
# client = Google::Cloud::Compute::V1::BackendServices::Rest::Client.new
|
1374
|
+
#
|
1375
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1376
|
+
# request = Google::Cloud::Compute::V1::UpdateBackendServiceRequest.new
|
1377
|
+
#
|
1378
|
+
# # Call the update method.
|
1379
|
+
# result = client.update request
|
1380
|
+
#
|
1381
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1382
|
+
# p result
|
1383
|
+
#
|
1160
1384
|
def update request, options = nil
|
1161
1385
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1162
1386
|
|