google-cloud-compute-v1 2.4.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -219,6 +219,22 @@ module Google
|
|
|
219
219
|
# @return [::Gapic::GenericLRO::Operation]
|
|
220
220
|
#
|
|
221
221
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
222
|
+
#
|
|
223
|
+
# @example Basic example
|
|
224
|
+
# require "google/cloud/compute/v1"
|
|
225
|
+
#
|
|
226
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
227
|
+
# client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
|
|
228
|
+
#
|
|
229
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
230
|
+
# request = Google::Cloud::Compute::V1::AddRuleSecurityPolicyRequest.new
|
|
231
|
+
#
|
|
232
|
+
# # Call the add_rule method.
|
|
233
|
+
# result = client.add_rule request
|
|
234
|
+
#
|
|
235
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
236
|
+
# p result
|
|
237
|
+
#
|
|
222
238
|
def add_rule request, options = nil
|
|
223
239
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
224
240
|
|
|
@@ -301,6 +317,22 @@ module Google
|
|
|
301
317
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::SecurityPoliciesScopedList>]
|
|
302
318
|
#
|
|
303
319
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
320
|
+
#
|
|
321
|
+
# @example Basic example
|
|
322
|
+
# require "google/cloud/compute/v1"
|
|
323
|
+
#
|
|
324
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
325
|
+
# client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
|
|
326
|
+
#
|
|
327
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
328
|
+
# request = Google::Cloud::Compute::V1::AggregatedListSecurityPoliciesRequest.new
|
|
329
|
+
#
|
|
330
|
+
# # Call the aggregated_list method.
|
|
331
|
+
# result = client.aggregated_list request
|
|
332
|
+
#
|
|
333
|
+
# # The returned object is of type Google::Cloud::Compute::V1::SecurityPoliciesAggregatedList.
|
|
334
|
+
# p result
|
|
335
|
+
#
|
|
304
336
|
def aggregated_list request, options = nil
|
|
305
337
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
306
338
|
|
|
@@ -368,6 +400,22 @@ module Google
|
|
|
368
400
|
# @return [::Gapic::GenericLRO::Operation]
|
|
369
401
|
#
|
|
370
402
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
403
|
+
#
|
|
404
|
+
# @example Basic example
|
|
405
|
+
# require "google/cloud/compute/v1"
|
|
406
|
+
#
|
|
407
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
408
|
+
# client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
|
|
409
|
+
#
|
|
410
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
411
|
+
# request = Google::Cloud::Compute::V1::DeleteSecurityPolicyRequest.new
|
|
412
|
+
#
|
|
413
|
+
# # Call the delete method.
|
|
414
|
+
# result = client.delete request
|
|
415
|
+
#
|
|
416
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
417
|
+
# p result
|
|
418
|
+
#
|
|
371
419
|
def delete request, options = nil
|
|
372
420
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
373
421
|
|
|
@@ -440,6 +488,22 @@ module Google
|
|
|
440
488
|
# @return [::Google::Cloud::Compute::V1::SecurityPolicy]
|
|
441
489
|
#
|
|
442
490
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
491
|
+
#
|
|
492
|
+
# @example Basic example
|
|
493
|
+
# require "google/cloud/compute/v1"
|
|
494
|
+
#
|
|
495
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
496
|
+
# client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
|
|
497
|
+
#
|
|
498
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
499
|
+
# request = Google::Cloud::Compute::V1::GetSecurityPolicyRequest.new
|
|
500
|
+
#
|
|
501
|
+
# # Call the get method.
|
|
502
|
+
# result = client.get request
|
|
503
|
+
#
|
|
504
|
+
# # The returned object is of type Google::Cloud::Compute::V1::SecurityPolicy.
|
|
505
|
+
# p result
|
|
506
|
+
#
|
|
443
507
|
def get request, options = nil
|
|
444
508
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
445
509
|
|
|
@@ -506,6 +570,22 @@ module Google
|
|
|
506
570
|
# @return [::Google::Cloud::Compute::V1::SecurityPolicyRule]
|
|
507
571
|
#
|
|
508
572
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
573
|
+
#
|
|
574
|
+
# @example Basic example
|
|
575
|
+
# require "google/cloud/compute/v1"
|
|
576
|
+
#
|
|
577
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
578
|
+
# client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
|
|
579
|
+
#
|
|
580
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
581
|
+
# request = Google::Cloud::Compute::V1::GetRuleSecurityPolicyRequest.new
|
|
582
|
+
#
|
|
583
|
+
# # Call the get_rule method.
|
|
584
|
+
# result = client.get_rule request
|
|
585
|
+
#
|
|
586
|
+
# # The returned object is of type Google::Cloud::Compute::V1::SecurityPolicyRule.
|
|
587
|
+
# p result
|
|
588
|
+
#
|
|
509
589
|
def get_rule request, options = nil
|
|
510
590
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
511
591
|
|
|
@@ -574,6 +654,22 @@ module Google
|
|
|
574
654
|
# @return [::Gapic::GenericLRO::Operation]
|
|
575
655
|
#
|
|
576
656
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
657
|
+
#
|
|
658
|
+
# @example Basic example
|
|
659
|
+
# require "google/cloud/compute/v1"
|
|
660
|
+
#
|
|
661
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
662
|
+
# client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
|
|
663
|
+
#
|
|
664
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
665
|
+
# request = Google::Cloud::Compute::V1::InsertSecurityPolicyRequest.new
|
|
666
|
+
#
|
|
667
|
+
# # Call the insert method.
|
|
668
|
+
# result = client.insert request
|
|
669
|
+
#
|
|
670
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
671
|
+
# p result
|
|
672
|
+
#
|
|
577
673
|
def insert request, options = nil
|
|
578
674
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
579
675
|
|
|
@@ -654,6 +750,22 @@ module Google
|
|
|
654
750
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::SecurityPolicy>]
|
|
655
751
|
#
|
|
656
752
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
753
|
+
#
|
|
754
|
+
# @example Basic example
|
|
755
|
+
# require "google/cloud/compute/v1"
|
|
756
|
+
#
|
|
757
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
758
|
+
# client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
|
|
759
|
+
#
|
|
760
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
761
|
+
# request = Google::Cloud::Compute::V1::ListSecurityPoliciesRequest.new
|
|
762
|
+
#
|
|
763
|
+
# # Call the list method.
|
|
764
|
+
# result = client.list request
|
|
765
|
+
#
|
|
766
|
+
# # The returned object is of type Google::Cloud::Compute::V1::SecurityPolicyList.
|
|
767
|
+
# p result
|
|
768
|
+
#
|
|
657
769
|
def list request, options = nil
|
|
658
770
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
659
771
|
|
|
@@ -727,6 +839,22 @@ module Google
|
|
|
727
839
|
# @return [::Google::Cloud::Compute::V1::SecurityPoliciesListPreconfiguredExpressionSetsResponse]
|
|
728
840
|
#
|
|
729
841
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
842
|
+
#
|
|
843
|
+
# @example Basic example
|
|
844
|
+
# require "google/cloud/compute/v1"
|
|
845
|
+
#
|
|
846
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
847
|
+
# client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
|
|
848
|
+
#
|
|
849
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
850
|
+
# request = Google::Cloud::Compute::V1::ListPreconfiguredExpressionSetsSecurityPoliciesRequest.new
|
|
851
|
+
#
|
|
852
|
+
# # Call the list_preconfigured_expression_sets method.
|
|
853
|
+
# result = client.list_preconfigured_expression_sets request
|
|
854
|
+
#
|
|
855
|
+
# # The returned object is of type Google::Cloud::Compute::V1::SecurityPoliciesListPreconfiguredExpressionSetsResponse.
|
|
856
|
+
# p result
|
|
857
|
+
#
|
|
730
858
|
def list_preconfigured_expression_sets request, options = nil
|
|
731
859
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
732
860
|
|
|
@@ -795,6 +923,22 @@ module Google
|
|
|
795
923
|
# @return [::Gapic::GenericLRO::Operation]
|
|
796
924
|
#
|
|
797
925
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
926
|
+
#
|
|
927
|
+
# @example Basic example
|
|
928
|
+
# require "google/cloud/compute/v1"
|
|
929
|
+
#
|
|
930
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
931
|
+
# client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
|
|
932
|
+
#
|
|
933
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
934
|
+
# request = Google::Cloud::Compute::V1::PatchSecurityPolicyRequest.new
|
|
935
|
+
#
|
|
936
|
+
# # Call the patch method.
|
|
937
|
+
# result = client.patch request
|
|
938
|
+
#
|
|
939
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
940
|
+
# p result
|
|
941
|
+
#
|
|
798
942
|
def patch request, options = nil
|
|
799
943
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
800
944
|
|
|
@@ -873,6 +1017,22 @@ module Google
|
|
|
873
1017
|
# @return [::Gapic::GenericLRO::Operation]
|
|
874
1018
|
#
|
|
875
1019
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1020
|
+
#
|
|
1021
|
+
# @example Basic example
|
|
1022
|
+
# require "google/cloud/compute/v1"
|
|
1023
|
+
#
|
|
1024
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1025
|
+
# client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
|
|
1026
|
+
#
|
|
1027
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1028
|
+
# request = Google::Cloud::Compute::V1::PatchRuleSecurityPolicyRequest.new
|
|
1029
|
+
#
|
|
1030
|
+
# # Call the patch_rule method.
|
|
1031
|
+
# result = client.patch_rule request
|
|
1032
|
+
#
|
|
1033
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
1034
|
+
# p result
|
|
1035
|
+
#
|
|
876
1036
|
def patch_rule request, options = nil
|
|
877
1037
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
878
1038
|
|
|
@@ -947,6 +1107,22 @@ module Google
|
|
|
947
1107
|
# @return [::Gapic::GenericLRO::Operation]
|
|
948
1108
|
#
|
|
949
1109
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1110
|
+
#
|
|
1111
|
+
# @example Basic example
|
|
1112
|
+
# require "google/cloud/compute/v1"
|
|
1113
|
+
#
|
|
1114
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1115
|
+
# client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
|
|
1116
|
+
#
|
|
1117
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1118
|
+
# request = Google::Cloud::Compute::V1::RemoveRuleSecurityPolicyRequest.new
|
|
1119
|
+
#
|
|
1120
|
+
# # Call the remove_rule method.
|
|
1121
|
+
# result = client.remove_rule request
|
|
1122
|
+
#
|
|
1123
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
1124
|
+
# p result
|
|
1125
|
+
#
|
|
950
1126
|
def remove_rule request, options = nil
|
|
951
1127
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
952
1128
|
|
|
@@ -1021,6 +1197,22 @@ module Google
|
|
|
1021
1197
|
# @return [::Gapic::GenericLRO::Operation]
|
|
1022
1198
|
#
|
|
1023
1199
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1200
|
+
#
|
|
1201
|
+
# @example Basic example
|
|
1202
|
+
# require "google/cloud/compute/v1"
|
|
1203
|
+
#
|
|
1204
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1205
|
+
# client = Google::Cloud::Compute::V1::SecurityPolicies::Rest::Client.new
|
|
1206
|
+
#
|
|
1207
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1208
|
+
# request = Google::Cloud::Compute::V1::SetLabelsSecurityPolicyRequest.new
|
|
1209
|
+
#
|
|
1210
|
+
# # Call the set_labels method.
|
|
1211
|
+
# result = client.set_labels request
|
|
1212
|
+
#
|
|
1213
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
1214
|
+
# p result
|
|
1215
|
+
#
|
|
1024
1216
|
def set_labels request, options = nil
|
|
1025
1217
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1026
1218
|
|
|
@@ -216,6 +216,22 @@ module Google
|
|
|
216
216
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::ServiceAttachmentsScopedList>]
|
|
217
217
|
#
|
|
218
218
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
219
|
+
#
|
|
220
|
+
# @example Basic example
|
|
221
|
+
# require "google/cloud/compute/v1"
|
|
222
|
+
#
|
|
223
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
224
|
+
# client = Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new
|
|
225
|
+
#
|
|
226
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
227
|
+
# request = Google::Cloud::Compute::V1::AggregatedListServiceAttachmentsRequest.new
|
|
228
|
+
#
|
|
229
|
+
# # Call the aggregated_list method.
|
|
230
|
+
# result = client.aggregated_list request
|
|
231
|
+
#
|
|
232
|
+
# # The returned object is of type Google::Cloud::Compute::V1::ServiceAttachmentAggregatedList.
|
|
233
|
+
# p result
|
|
234
|
+
#
|
|
219
235
|
def aggregated_list request, options = nil
|
|
220
236
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
221
237
|
|
|
@@ -285,6 +301,22 @@ module Google
|
|
|
285
301
|
# @return [::Gapic::GenericLRO::Operation]
|
|
286
302
|
#
|
|
287
303
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
304
|
+
#
|
|
305
|
+
# @example Basic example
|
|
306
|
+
# require "google/cloud/compute/v1"
|
|
307
|
+
#
|
|
308
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
309
|
+
# client = Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new
|
|
310
|
+
#
|
|
311
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
312
|
+
# request = Google::Cloud::Compute::V1::DeleteServiceAttachmentRequest.new
|
|
313
|
+
#
|
|
314
|
+
# # Call the delete method.
|
|
315
|
+
# result = client.delete request
|
|
316
|
+
#
|
|
317
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
318
|
+
# p result
|
|
319
|
+
#
|
|
288
320
|
def delete request, options = nil
|
|
289
321
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
290
322
|
|
|
@@ -360,6 +392,22 @@ module Google
|
|
|
360
392
|
# @return [::Google::Cloud::Compute::V1::ServiceAttachment]
|
|
361
393
|
#
|
|
362
394
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
395
|
+
#
|
|
396
|
+
# @example Basic example
|
|
397
|
+
# require "google/cloud/compute/v1"
|
|
398
|
+
#
|
|
399
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
400
|
+
# client = Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new
|
|
401
|
+
#
|
|
402
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
403
|
+
# request = Google::Cloud::Compute::V1::GetServiceAttachmentRequest.new
|
|
404
|
+
#
|
|
405
|
+
# # Call the get method.
|
|
406
|
+
# result = client.get request
|
|
407
|
+
#
|
|
408
|
+
# # The returned object is of type Google::Cloud::Compute::V1::ServiceAttachment.
|
|
409
|
+
# p result
|
|
410
|
+
#
|
|
363
411
|
def get request, options = nil
|
|
364
412
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
365
413
|
|
|
@@ -428,6 +476,22 @@ module Google
|
|
|
428
476
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
|
429
477
|
#
|
|
430
478
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
479
|
+
#
|
|
480
|
+
# @example Basic example
|
|
481
|
+
# require "google/cloud/compute/v1"
|
|
482
|
+
#
|
|
483
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
484
|
+
# client = Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new
|
|
485
|
+
#
|
|
486
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
487
|
+
# request = Google::Cloud::Compute::V1::GetIamPolicyServiceAttachmentRequest.new
|
|
488
|
+
#
|
|
489
|
+
# # Call the get_iam_policy method.
|
|
490
|
+
# result = client.get_iam_policy request
|
|
491
|
+
#
|
|
492
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
|
493
|
+
# p result
|
|
494
|
+
#
|
|
431
495
|
def get_iam_policy request, options = nil
|
|
432
496
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
433
497
|
|
|
@@ -496,6 +560,22 @@ module Google
|
|
|
496
560
|
# @return [::Gapic::GenericLRO::Operation]
|
|
497
561
|
#
|
|
498
562
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
563
|
+
#
|
|
564
|
+
# @example Basic example
|
|
565
|
+
# require "google/cloud/compute/v1"
|
|
566
|
+
#
|
|
567
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
568
|
+
# client = Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new
|
|
569
|
+
#
|
|
570
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
571
|
+
# request = Google::Cloud::Compute::V1::InsertServiceAttachmentRequest.new
|
|
572
|
+
#
|
|
573
|
+
# # Call the insert method.
|
|
574
|
+
# result = client.insert request
|
|
575
|
+
#
|
|
576
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
577
|
+
# p result
|
|
578
|
+
#
|
|
499
579
|
def insert request, options = nil
|
|
500
580
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
501
581
|
|
|
@@ -579,6 +659,22 @@ module Google
|
|
|
579
659
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::ServiceAttachment>]
|
|
580
660
|
#
|
|
581
661
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
662
|
+
#
|
|
663
|
+
# @example Basic example
|
|
664
|
+
# require "google/cloud/compute/v1"
|
|
665
|
+
#
|
|
666
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
667
|
+
# client = Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new
|
|
668
|
+
#
|
|
669
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
670
|
+
# request = Google::Cloud::Compute::V1::ListServiceAttachmentsRequest.new
|
|
671
|
+
#
|
|
672
|
+
# # Call the list method.
|
|
673
|
+
# result = client.list request
|
|
674
|
+
#
|
|
675
|
+
# # The returned object is of type Google::Cloud::Compute::V1::ServiceAttachmentList.
|
|
676
|
+
# p result
|
|
677
|
+
#
|
|
582
678
|
def list request, options = nil
|
|
583
679
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
584
680
|
|
|
@@ -650,6 +746,22 @@ module Google
|
|
|
650
746
|
# @return [::Gapic::GenericLRO::Operation]
|
|
651
747
|
#
|
|
652
748
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
749
|
+
#
|
|
750
|
+
# @example Basic example
|
|
751
|
+
# require "google/cloud/compute/v1"
|
|
752
|
+
#
|
|
753
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
754
|
+
# client = Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new
|
|
755
|
+
#
|
|
756
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
757
|
+
# request = Google::Cloud::Compute::V1::PatchServiceAttachmentRequest.new
|
|
758
|
+
#
|
|
759
|
+
# # Call the patch method.
|
|
760
|
+
# result = client.patch request
|
|
761
|
+
#
|
|
762
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
763
|
+
# p result
|
|
764
|
+
#
|
|
653
765
|
def patch request, options = nil
|
|
654
766
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
655
767
|
|
|
@@ -727,6 +839,22 @@ module Google
|
|
|
727
839
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
|
728
840
|
#
|
|
729
841
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
842
|
+
#
|
|
843
|
+
# @example Basic example
|
|
844
|
+
# require "google/cloud/compute/v1"
|
|
845
|
+
#
|
|
846
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
847
|
+
# client = Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new
|
|
848
|
+
#
|
|
849
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
850
|
+
# request = Google::Cloud::Compute::V1::SetIamPolicyServiceAttachmentRequest.new
|
|
851
|
+
#
|
|
852
|
+
# # Call the set_iam_policy method.
|
|
853
|
+
# result = client.set_iam_policy request
|
|
854
|
+
#
|
|
855
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
|
856
|
+
# p result
|
|
857
|
+
#
|
|
730
858
|
def set_iam_policy request, options = nil
|
|
731
859
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
732
860
|
|
|
@@ -795,6 +923,22 @@ module Google
|
|
|
795
923
|
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
|
796
924
|
#
|
|
797
925
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
926
|
+
#
|
|
927
|
+
# @example Basic example
|
|
928
|
+
# require "google/cloud/compute/v1"
|
|
929
|
+
#
|
|
930
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
931
|
+
# client = Google::Cloud::Compute::V1::ServiceAttachments::Rest::Client.new
|
|
932
|
+
#
|
|
933
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
934
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsServiceAttachmentRequest.new
|
|
935
|
+
#
|
|
936
|
+
# # Call the test_iam_permissions method.
|
|
937
|
+
# result = client.test_iam_permissions request
|
|
938
|
+
#
|
|
939
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
|
940
|
+
# p result
|
|
941
|
+
#
|
|
798
942
|
def test_iam_permissions request, options = nil
|
|
799
943
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
800
944
|
|
|
@@ -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
|
|