google-cloud-compute-v1 2.3.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/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
|
@@ -214,6 +214,22 @@ module Google
|
|
|
214
214
|
# @return [::Gapic::GenericLRO::Operation]
|
|
215
215
|
#
|
|
216
216
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
217
|
+
#
|
|
218
|
+
# @example Basic example
|
|
219
|
+
# require "google/cloud/compute/v1"
|
|
220
|
+
#
|
|
221
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
222
|
+
# client = Google::Cloud::Compute::V1::Networks::Rest::Client.new
|
|
223
|
+
#
|
|
224
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
225
|
+
# request = Google::Cloud::Compute::V1::AddPeeringNetworkRequest.new
|
|
226
|
+
#
|
|
227
|
+
# # Call the add_peering method.
|
|
228
|
+
# result = client.add_peering request
|
|
229
|
+
#
|
|
230
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
231
|
+
# p result
|
|
232
|
+
#
|
|
217
233
|
def add_peering request, options = nil
|
|
218
234
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
219
235
|
|
|
@@ -288,6 +304,22 @@ module Google
|
|
|
288
304
|
# @return [::Gapic::GenericLRO::Operation]
|
|
289
305
|
#
|
|
290
306
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
307
|
+
#
|
|
308
|
+
# @example Basic example
|
|
309
|
+
# require "google/cloud/compute/v1"
|
|
310
|
+
#
|
|
311
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
312
|
+
# client = Google::Cloud::Compute::V1::Networks::Rest::Client.new
|
|
313
|
+
#
|
|
314
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
315
|
+
# request = Google::Cloud::Compute::V1::DeleteNetworkRequest.new
|
|
316
|
+
#
|
|
317
|
+
# # Call the delete method.
|
|
318
|
+
# result = client.delete request
|
|
319
|
+
#
|
|
320
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
321
|
+
# p result
|
|
322
|
+
#
|
|
291
323
|
def delete request, options = nil
|
|
292
324
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
293
325
|
|
|
@@ -360,6 +392,22 @@ module Google
|
|
|
360
392
|
# @return [::Google::Cloud::Compute::V1::Network]
|
|
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::Networks::Rest::Client.new
|
|
401
|
+
#
|
|
402
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
403
|
+
# request = Google::Cloud::Compute::V1::GetNetworkRequest.new
|
|
404
|
+
#
|
|
405
|
+
# # Call the get method.
|
|
406
|
+
# result = client.get request
|
|
407
|
+
#
|
|
408
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Network.
|
|
409
|
+
# p result
|
|
410
|
+
#
|
|
363
411
|
def get request, options = nil
|
|
364
412
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
365
413
|
|
|
@@ -424,6 +472,22 @@ module Google
|
|
|
424
472
|
# @return [::Google::Cloud::Compute::V1::NetworksGetEffectiveFirewallsResponse]
|
|
425
473
|
#
|
|
426
474
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
475
|
+
#
|
|
476
|
+
# @example Basic example
|
|
477
|
+
# require "google/cloud/compute/v1"
|
|
478
|
+
#
|
|
479
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
480
|
+
# client = Google::Cloud::Compute::V1::Networks::Rest::Client.new
|
|
481
|
+
#
|
|
482
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
483
|
+
# request = Google::Cloud::Compute::V1::GetEffectiveFirewallsNetworkRequest.new
|
|
484
|
+
#
|
|
485
|
+
# # Call the get_effective_firewalls method.
|
|
486
|
+
# result = client.get_effective_firewalls request
|
|
487
|
+
#
|
|
488
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NetworksGetEffectiveFirewallsResponse.
|
|
489
|
+
# p result
|
|
490
|
+
#
|
|
427
491
|
def get_effective_firewalls request, options = nil
|
|
428
492
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
429
493
|
|
|
@@ -490,6 +554,22 @@ module Google
|
|
|
490
554
|
# @return [::Gapic::GenericLRO::Operation]
|
|
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::Networks::Rest::Client.new
|
|
563
|
+
#
|
|
564
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
565
|
+
# request = Google::Cloud::Compute::V1::InsertNetworkRequest.new
|
|
566
|
+
#
|
|
567
|
+
# # Call the insert method.
|
|
568
|
+
# result = client.insert request
|
|
569
|
+
#
|
|
570
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
571
|
+
# p result
|
|
572
|
+
#
|
|
493
573
|
def insert request, options = nil
|
|
494
574
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
495
575
|
|
|
@@ -570,6 +650,22 @@ module Google
|
|
|
570
650
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Network>]
|
|
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::Networks::Rest::Client.new
|
|
659
|
+
#
|
|
660
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
661
|
+
# request = Google::Cloud::Compute::V1::ListNetworksRequest.new
|
|
662
|
+
#
|
|
663
|
+
# # Call the list method.
|
|
664
|
+
# result = client.list request
|
|
665
|
+
#
|
|
666
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NetworkList.
|
|
667
|
+
# p result
|
|
668
|
+
#
|
|
573
669
|
def list request, options = nil
|
|
574
670
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
575
671
|
|
|
@@ -652,6 +748,22 @@ module Google
|
|
|
652
748
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::ExchangedPeeringRoute>]
|
|
653
749
|
#
|
|
654
750
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
751
|
+
#
|
|
752
|
+
# @example Basic example
|
|
753
|
+
# require "google/cloud/compute/v1"
|
|
754
|
+
#
|
|
755
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
756
|
+
# client = Google::Cloud::Compute::V1::Networks::Rest::Client.new
|
|
757
|
+
#
|
|
758
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
759
|
+
# request = Google::Cloud::Compute::V1::ListPeeringRoutesNetworksRequest.new
|
|
760
|
+
#
|
|
761
|
+
# # Call the list_peering_routes method.
|
|
762
|
+
# result = client.list_peering_routes request
|
|
763
|
+
#
|
|
764
|
+
# # The returned object is of type Google::Cloud::Compute::V1::ExchangedPeeringRoutesList.
|
|
765
|
+
# p result
|
|
766
|
+
#
|
|
655
767
|
def list_peering_routes request, options = nil
|
|
656
768
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
657
769
|
|
|
@@ -721,6 +833,22 @@ module Google
|
|
|
721
833
|
# @return [::Gapic::GenericLRO::Operation]
|
|
722
834
|
#
|
|
723
835
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
836
|
+
#
|
|
837
|
+
# @example Basic example
|
|
838
|
+
# require "google/cloud/compute/v1"
|
|
839
|
+
#
|
|
840
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
841
|
+
# client = Google::Cloud::Compute::V1::Networks::Rest::Client.new
|
|
842
|
+
#
|
|
843
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
844
|
+
# request = Google::Cloud::Compute::V1::PatchNetworkRequest.new
|
|
845
|
+
#
|
|
846
|
+
# # Call the patch method.
|
|
847
|
+
# result = client.patch request
|
|
848
|
+
#
|
|
849
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
850
|
+
# p result
|
|
851
|
+
#
|
|
724
852
|
def patch request, options = nil
|
|
725
853
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
726
854
|
|
|
@@ -797,6 +925,22 @@ module Google
|
|
|
797
925
|
# @return [::Gapic::GenericLRO::Operation]
|
|
798
926
|
#
|
|
799
927
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
928
|
+
#
|
|
929
|
+
# @example Basic example
|
|
930
|
+
# require "google/cloud/compute/v1"
|
|
931
|
+
#
|
|
932
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
933
|
+
# client = Google::Cloud::Compute::V1::Networks::Rest::Client.new
|
|
934
|
+
#
|
|
935
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
936
|
+
# request = Google::Cloud::Compute::V1::RemovePeeringNetworkRequest.new
|
|
937
|
+
#
|
|
938
|
+
# # Call the remove_peering method.
|
|
939
|
+
# result = client.remove_peering request
|
|
940
|
+
#
|
|
941
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
942
|
+
# p result
|
|
943
|
+
#
|
|
800
944
|
def remove_peering request, options = nil
|
|
801
945
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
802
946
|
|
|
@@ -871,6 +1015,22 @@ module Google
|
|
|
871
1015
|
# @return [::Gapic::GenericLRO::Operation]
|
|
872
1016
|
#
|
|
873
1017
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1018
|
+
#
|
|
1019
|
+
# @example Basic example
|
|
1020
|
+
# require "google/cloud/compute/v1"
|
|
1021
|
+
#
|
|
1022
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1023
|
+
# client = Google::Cloud::Compute::V1::Networks::Rest::Client.new
|
|
1024
|
+
#
|
|
1025
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1026
|
+
# request = Google::Cloud::Compute::V1::SwitchToCustomModeNetworkRequest.new
|
|
1027
|
+
#
|
|
1028
|
+
# # Call the switch_to_custom_mode method.
|
|
1029
|
+
# result = client.switch_to_custom_mode request
|
|
1030
|
+
#
|
|
1031
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
1032
|
+
# p result
|
|
1033
|
+
#
|
|
874
1034
|
def switch_to_custom_mode request, options = nil
|
|
875
1035
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
876
1036
|
|
|
@@ -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::Networks::Rest::Client.new
|
|
1116
|
+
#
|
|
1117
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1118
|
+
# request = Google::Cloud::Compute::V1::UpdatePeeringNetworkRequest.new
|
|
1119
|
+
#
|
|
1120
|
+
# # Call the update_peering method.
|
|
1121
|
+
# result = client.update_peering request
|
|
1122
|
+
#
|
|
1123
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
1124
|
+
# p result
|
|
1125
|
+
#
|
|
950
1126
|
def update_peering request, options = nil
|
|
951
1127
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
952
1128
|
|
|
@@ -222,6 +222,22 @@ module Google
|
|
|
222
222
|
# @return [::Gapic::GenericLRO::Operation]
|
|
223
223
|
#
|
|
224
224
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
225
|
+
#
|
|
226
|
+
# @example Basic example
|
|
227
|
+
# require "google/cloud/compute/v1"
|
|
228
|
+
#
|
|
229
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
230
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
|
231
|
+
#
|
|
232
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
233
|
+
# request = Google::Cloud::Compute::V1::AddNodesNodeGroupRequest.new
|
|
234
|
+
#
|
|
235
|
+
# # Call the add_nodes method.
|
|
236
|
+
# result = client.add_nodes request
|
|
237
|
+
#
|
|
238
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
239
|
+
# p result
|
|
240
|
+
#
|
|
225
241
|
def add_nodes request, options = nil
|
|
226
242
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
227
243
|
|
|
@@ -305,6 +321,22 @@ module Google
|
|
|
305
321
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::NodeGroupsScopedList>]
|
|
306
322
|
#
|
|
307
323
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
324
|
+
#
|
|
325
|
+
# @example Basic example
|
|
326
|
+
# require "google/cloud/compute/v1"
|
|
327
|
+
#
|
|
328
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
329
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
|
330
|
+
#
|
|
331
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
332
|
+
# request = Google::Cloud::Compute::V1::AggregatedListNodeGroupsRequest.new
|
|
333
|
+
#
|
|
334
|
+
# # Call the aggregated_list method.
|
|
335
|
+
# result = client.aggregated_list request
|
|
336
|
+
#
|
|
337
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NodeGroupAggregatedList.
|
|
338
|
+
# p result
|
|
339
|
+
#
|
|
308
340
|
def aggregated_list request, options = nil
|
|
309
341
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
310
342
|
|
|
@@ -374,6 +406,22 @@ module Google
|
|
|
374
406
|
# @return [::Gapic::GenericLRO::Operation]
|
|
375
407
|
#
|
|
376
408
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
409
|
+
#
|
|
410
|
+
# @example Basic example
|
|
411
|
+
# require "google/cloud/compute/v1"
|
|
412
|
+
#
|
|
413
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
414
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
|
415
|
+
#
|
|
416
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
417
|
+
# request = Google::Cloud::Compute::V1::DeleteNodeGroupRequest.new
|
|
418
|
+
#
|
|
419
|
+
# # Call the delete method.
|
|
420
|
+
# result = client.delete request
|
|
421
|
+
#
|
|
422
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
423
|
+
# p result
|
|
424
|
+
#
|
|
377
425
|
def delete request, options = nil
|
|
378
426
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
379
427
|
|
|
@@ -453,6 +501,22 @@ module Google
|
|
|
453
501
|
# @return [::Gapic::GenericLRO::Operation]
|
|
454
502
|
#
|
|
455
503
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
504
|
+
#
|
|
505
|
+
# @example Basic example
|
|
506
|
+
# require "google/cloud/compute/v1"
|
|
507
|
+
#
|
|
508
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
509
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
|
510
|
+
#
|
|
511
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
512
|
+
# request = Google::Cloud::Compute::V1::DeleteNodesNodeGroupRequest.new
|
|
513
|
+
#
|
|
514
|
+
# # Call the delete_nodes method.
|
|
515
|
+
# result = client.delete_nodes request
|
|
516
|
+
#
|
|
517
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
518
|
+
# p result
|
|
519
|
+
#
|
|
456
520
|
def delete_nodes request, options = nil
|
|
457
521
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
458
522
|
|
|
@@ -528,6 +592,22 @@ module Google
|
|
|
528
592
|
# @return [::Google::Cloud::Compute::V1::NodeGroup]
|
|
529
593
|
#
|
|
530
594
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
595
|
+
#
|
|
596
|
+
# @example Basic example
|
|
597
|
+
# require "google/cloud/compute/v1"
|
|
598
|
+
#
|
|
599
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
600
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
|
601
|
+
#
|
|
602
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
603
|
+
# request = Google::Cloud::Compute::V1::GetNodeGroupRequest.new
|
|
604
|
+
#
|
|
605
|
+
# # Call the get method.
|
|
606
|
+
# result = client.get request
|
|
607
|
+
#
|
|
608
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NodeGroup.
|
|
609
|
+
# p result
|
|
610
|
+
#
|
|
531
611
|
def get request, options = nil
|
|
532
612
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
533
613
|
|
|
@@ -596,6 +676,22 @@ module Google
|
|
|
596
676
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
|
597
677
|
#
|
|
598
678
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
679
|
+
#
|
|
680
|
+
# @example Basic example
|
|
681
|
+
# require "google/cloud/compute/v1"
|
|
682
|
+
#
|
|
683
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
684
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
|
685
|
+
#
|
|
686
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
687
|
+
# request = Google::Cloud::Compute::V1::GetIamPolicyNodeGroupRequest.new
|
|
688
|
+
#
|
|
689
|
+
# # Call the get_iam_policy method.
|
|
690
|
+
# result = client.get_iam_policy request
|
|
691
|
+
#
|
|
692
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
|
693
|
+
# p result
|
|
694
|
+
#
|
|
599
695
|
def get_iam_policy request, options = nil
|
|
600
696
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
601
697
|
|
|
@@ -666,6 +762,22 @@ module Google
|
|
|
666
762
|
# @return [::Gapic::GenericLRO::Operation]
|
|
667
763
|
#
|
|
668
764
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
765
|
+
#
|
|
766
|
+
# @example Basic example
|
|
767
|
+
# require "google/cloud/compute/v1"
|
|
768
|
+
#
|
|
769
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
770
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
|
771
|
+
#
|
|
772
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
773
|
+
# request = Google::Cloud::Compute::V1::InsertNodeGroupRequest.new
|
|
774
|
+
#
|
|
775
|
+
# # Call the insert method.
|
|
776
|
+
# result = client.insert request
|
|
777
|
+
#
|
|
778
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
779
|
+
# p result
|
|
780
|
+
#
|
|
669
781
|
def insert request, options = nil
|
|
670
782
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
671
783
|
|
|
@@ -749,6 +861,22 @@ module Google
|
|
|
749
861
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::NodeGroup>]
|
|
750
862
|
#
|
|
751
863
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
864
|
+
#
|
|
865
|
+
# @example Basic example
|
|
866
|
+
# require "google/cloud/compute/v1"
|
|
867
|
+
#
|
|
868
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
869
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
|
870
|
+
#
|
|
871
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
872
|
+
# request = Google::Cloud::Compute::V1::ListNodeGroupsRequest.new
|
|
873
|
+
#
|
|
874
|
+
# # Call the list method.
|
|
875
|
+
# result = client.list request
|
|
876
|
+
#
|
|
877
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NodeGroupList.
|
|
878
|
+
# p result
|
|
879
|
+
#
|
|
752
880
|
def list request, options = nil
|
|
753
881
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
754
882
|
|
|
@@ -826,6 +954,22 @@ module Google
|
|
|
826
954
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::NodeGroupNode>]
|
|
827
955
|
#
|
|
828
956
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
957
|
+
#
|
|
958
|
+
# @example Basic example
|
|
959
|
+
# require "google/cloud/compute/v1"
|
|
960
|
+
#
|
|
961
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
962
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
|
963
|
+
#
|
|
964
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
965
|
+
# request = Google::Cloud::Compute::V1::ListNodesNodeGroupsRequest.new
|
|
966
|
+
#
|
|
967
|
+
# # Call the list_nodes method.
|
|
968
|
+
# result = client.list_nodes request
|
|
969
|
+
#
|
|
970
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NodeGroupsListNodes.
|
|
971
|
+
# p result
|
|
972
|
+
#
|
|
829
973
|
def list_nodes request, options = nil
|
|
830
974
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
831
975
|
|
|
@@ -897,6 +1041,22 @@ module Google
|
|
|
897
1041
|
# @return [::Gapic::GenericLRO::Operation]
|
|
898
1042
|
#
|
|
899
1043
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1044
|
+
#
|
|
1045
|
+
# @example Basic example
|
|
1046
|
+
# require "google/cloud/compute/v1"
|
|
1047
|
+
#
|
|
1048
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1049
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
|
1050
|
+
#
|
|
1051
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1052
|
+
# request = Google::Cloud::Compute::V1::PatchNodeGroupRequest.new
|
|
1053
|
+
#
|
|
1054
|
+
# # Call the patch method.
|
|
1055
|
+
# result = client.patch request
|
|
1056
|
+
#
|
|
1057
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
1058
|
+
# p result
|
|
1059
|
+
#
|
|
900
1060
|
def patch request, options = nil
|
|
901
1061
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
902
1062
|
|
|
@@ -974,6 +1134,22 @@ module Google
|
|
|
974
1134
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
|
975
1135
|
#
|
|
976
1136
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1137
|
+
#
|
|
1138
|
+
# @example Basic example
|
|
1139
|
+
# require "google/cloud/compute/v1"
|
|
1140
|
+
#
|
|
1141
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1142
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
|
1143
|
+
#
|
|
1144
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1145
|
+
# request = Google::Cloud::Compute::V1::SetIamPolicyNodeGroupRequest.new
|
|
1146
|
+
#
|
|
1147
|
+
# # Call the set_iam_policy method.
|
|
1148
|
+
# result = client.set_iam_policy request
|
|
1149
|
+
#
|
|
1150
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
|
1151
|
+
# p result
|
|
1152
|
+
#
|
|
977
1153
|
def set_iam_policy request, options = nil
|
|
978
1154
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
979
1155
|
|
|
@@ -1044,6 +1220,22 @@ module Google
|
|
|
1044
1220
|
# @return [::Gapic::GenericLRO::Operation]
|
|
1045
1221
|
#
|
|
1046
1222
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1223
|
+
#
|
|
1224
|
+
# @example Basic example
|
|
1225
|
+
# require "google/cloud/compute/v1"
|
|
1226
|
+
#
|
|
1227
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1228
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
|
1229
|
+
#
|
|
1230
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1231
|
+
# request = Google::Cloud::Compute::V1::SetNodeTemplateNodeGroupRequest.new
|
|
1232
|
+
#
|
|
1233
|
+
# # Call the set_node_template method.
|
|
1234
|
+
# result = client.set_node_template request
|
|
1235
|
+
#
|
|
1236
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
1237
|
+
# p result
|
|
1238
|
+
#
|
|
1047
1239
|
def set_node_template request, options = nil
|
|
1048
1240
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1049
1241
|
|
|
@@ -1123,6 +1315,22 @@ module Google
|
|
|
1123
1315
|
# @return [::Gapic::GenericLRO::Operation]
|
|
1124
1316
|
#
|
|
1125
1317
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1318
|
+
#
|
|
1319
|
+
# @example Basic example
|
|
1320
|
+
# require "google/cloud/compute/v1"
|
|
1321
|
+
#
|
|
1322
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1323
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
|
1324
|
+
#
|
|
1325
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1326
|
+
# request = Google::Cloud::Compute::V1::SimulateMaintenanceEventNodeGroupRequest.new
|
|
1327
|
+
#
|
|
1328
|
+
# # Call the simulate_maintenance_event method.
|
|
1329
|
+
# result = client.simulate_maintenance_event request
|
|
1330
|
+
#
|
|
1331
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
1332
|
+
# p result
|
|
1333
|
+
#
|
|
1126
1334
|
def simulate_maintenance_event request, options = nil
|
|
1127
1335
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1128
1336
|
|
|
@@ -1200,6 +1408,22 @@ module Google
|
|
|
1200
1408
|
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
|
1201
1409
|
#
|
|
1202
1410
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1411
|
+
#
|
|
1412
|
+
# @example Basic example
|
|
1413
|
+
# require "google/cloud/compute/v1"
|
|
1414
|
+
#
|
|
1415
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1416
|
+
# client = Google::Cloud::Compute::V1::NodeGroups::Rest::Client.new
|
|
1417
|
+
#
|
|
1418
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1419
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsNodeGroupRequest.new
|
|
1420
|
+
#
|
|
1421
|
+
# # Call the test_iam_permissions method.
|
|
1422
|
+
# result = client.test_iam_permissions request
|
|
1423
|
+
#
|
|
1424
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
|
1425
|
+
# p result
|
|
1426
|
+
#
|
|
1203
1427
|
def test_iam_permissions request, options = nil
|
|
1204
1428
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1205
1429
|
|