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
@@ -234,6 +234,22 @@ module Google
|
|
234
234
|
# @return [::Gapic::GenericLRO::Operation]
|
235
235
|
#
|
236
236
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
237
|
+
#
|
238
|
+
# @example Basic example
|
239
|
+
# require "google/cloud/compute/v1"
|
240
|
+
#
|
241
|
+
# # Create a client object. The client can be reused for multiple calls.
|
242
|
+
# client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
|
243
|
+
#
|
244
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
245
|
+
# request = Google::Cloud::Compute::V1::AbandonInstancesInstanceGroupManagerRequest.new
|
246
|
+
#
|
247
|
+
# # Call the abandon_instances method.
|
248
|
+
# result = client.abandon_instances request
|
249
|
+
#
|
250
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
251
|
+
# p result
|
252
|
+
#
|
237
253
|
def abandon_instances request, options = nil
|
238
254
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
239
255
|
|
@@ -317,6 +333,22 @@ module Google
|
|
317
333
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::InstanceGroupManagersScopedList>]
|
318
334
|
#
|
319
335
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
336
|
+
#
|
337
|
+
# @example Basic example
|
338
|
+
# require "google/cloud/compute/v1"
|
339
|
+
#
|
340
|
+
# # Create a client object. The client can be reused for multiple calls.
|
341
|
+
# client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
|
342
|
+
#
|
343
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
344
|
+
# request = Google::Cloud::Compute::V1::AggregatedListInstanceGroupManagersRequest.new
|
345
|
+
#
|
346
|
+
# # Call the aggregated_list method.
|
347
|
+
# result = client.aggregated_list request
|
348
|
+
#
|
349
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InstanceGroupManagerAggregatedList.
|
350
|
+
# p result
|
351
|
+
#
|
320
352
|
def aggregated_list request, options = nil
|
321
353
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
322
354
|
|
@@ -386,6 +418,22 @@ module Google
|
|
386
418
|
# @return [::Gapic::GenericLRO::Operation]
|
387
419
|
#
|
388
420
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
421
|
+
#
|
422
|
+
# @example Basic example
|
423
|
+
# require "google/cloud/compute/v1"
|
424
|
+
#
|
425
|
+
# # Create a client object. The client can be reused for multiple calls.
|
426
|
+
# client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
|
427
|
+
#
|
428
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
429
|
+
# request = Google::Cloud::Compute::V1::ApplyUpdatesToInstancesInstanceGroupManagerRequest.new
|
430
|
+
#
|
431
|
+
# # Call the apply_updates_to_instances method.
|
432
|
+
# result = client.apply_updates_to_instances request
|
433
|
+
#
|
434
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
435
|
+
# p result
|
436
|
+
#
|
389
437
|
def apply_updates_to_instances request, options = nil
|
390
438
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
391
439
|
|
@@ -465,6 +513,22 @@ module Google
|
|
465
513
|
# @return [::Gapic::GenericLRO::Operation]
|
466
514
|
#
|
467
515
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
516
|
+
#
|
517
|
+
# @example Basic example
|
518
|
+
# require "google/cloud/compute/v1"
|
519
|
+
#
|
520
|
+
# # Create a client object. The client can be reused for multiple calls.
|
521
|
+
# client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
|
522
|
+
#
|
523
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
524
|
+
# request = Google::Cloud::Compute::V1::CreateInstancesInstanceGroupManagerRequest.new
|
525
|
+
#
|
526
|
+
# # Call the create_instances method.
|
527
|
+
# result = client.create_instances request
|
528
|
+
#
|
529
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
530
|
+
# p result
|
531
|
+
#
|
468
532
|
def create_instances request, options = nil
|
469
533
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
470
534
|
|
@@ -542,6 +606,22 @@ module Google
|
|
542
606
|
# @return [::Gapic::GenericLRO::Operation]
|
543
607
|
#
|
544
608
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
609
|
+
#
|
610
|
+
# @example Basic example
|
611
|
+
# require "google/cloud/compute/v1"
|
612
|
+
#
|
613
|
+
# # Create a client object. The client can be reused for multiple calls.
|
614
|
+
# client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
|
615
|
+
#
|
616
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
617
|
+
# request = Google::Cloud::Compute::V1::DeleteInstanceGroupManagerRequest.new
|
618
|
+
#
|
619
|
+
# # Call the delete method.
|
620
|
+
# result = client.delete request
|
621
|
+
#
|
622
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
623
|
+
# p result
|
624
|
+
#
|
545
625
|
def delete request, options = nil
|
546
626
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
547
627
|
|
@@ -621,6 +701,22 @@ module Google
|
|
621
701
|
# @return [::Gapic::GenericLRO::Operation]
|
622
702
|
#
|
623
703
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
704
|
+
#
|
705
|
+
# @example Basic example
|
706
|
+
# require "google/cloud/compute/v1"
|
707
|
+
#
|
708
|
+
# # Create a client object. The client can be reused for multiple calls.
|
709
|
+
# client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
|
710
|
+
#
|
711
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
712
|
+
# request = Google::Cloud::Compute::V1::DeleteInstancesInstanceGroupManagerRequest.new
|
713
|
+
#
|
714
|
+
# # Call the delete_instances method.
|
715
|
+
# result = client.delete_instances request
|
716
|
+
#
|
717
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
718
|
+
# p result
|
719
|
+
#
|
624
720
|
def delete_instances request, options = nil
|
625
721
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
626
722
|
|
@@ -698,6 +794,22 @@ module Google
|
|
698
794
|
# @return [::Gapic::GenericLRO::Operation]
|
699
795
|
#
|
700
796
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
797
|
+
#
|
798
|
+
# @example Basic example
|
799
|
+
# require "google/cloud/compute/v1"
|
800
|
+
#
|
801
|
+
# # Create a client object. The client can be reused for multiple calls.
|
802
|
+
# client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
|
803
|
+
#
|
804
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
805
|
+
# request = Google::Cloud::Compute::V1::DeletePerInstanceConfigsInstanceGroupManagerRequest.new
|
806
|
+
#
|
807
|
+
# # Call the delete_per_instance_configs method.
|
808
|
+
# result = client.delete_per_instance_configs request
|
809
|
+
#
|
810
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
811
|
+
# p result
|
812
|
+
#
|
701
813
|
def delete_per_instance_configs request, options = nil
|
702
814
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
703
815
|
|
@@ -773,6 +885,22 @@ module Google
|
|
773
885
|
# @return [::Google::Cloud::Compute::V1::InstanceGroupManager]
|
774
886
|
#
|
775
887
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
888
|
+
#
|
889
|
+
# @example Basic example
|
890
|
+
# require "google/cloud/compute/v1"
|
891
|
+
#
|
892
|
+
# # Create a client object. The client can be reused for multiple calls.
|
893
|
+
# client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
|
894
|
+
#
|
895
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
896
|
+
# request = Google::Cloud::Compute::V1::GetInstanceGroupManagerRequest.new
|
897
|
+
#
|
898
|
+
# # Call the get method.
|
899
|
+
# result = client.get request
|
900
|
+
#
|
901
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InstanceGroupManager.
|
902
|
+
# p result
|
903
|
+
#
|
776
904
|
def get request, options = nil
|
777
905
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
778
906
|
|
@@ -841,6 +969,22 @@ module Google
|
|
841
969
|
# @return [::Gapic::GenericLRO::Operation]
|
842
970
|
#
|
843
971
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
972
|
+
#
|
973
|
+
# @example Basic example
|
974
|
+
# require "google/cloud/compute/v1"
|
975
|
+
#
|
976
|
+
# # Create a client object. The client can be reused for multiple calls.
|
977
|
+
# client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
|
978
|
+
#
|
979
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
980
|
+
# request = Google::Cloud::Compute::V1::InsertInstanceGroupManagerRequest.new
|
981
|
+
#
|
982
|
+
# # Call the insert method.
|
983
|
+
# result = client.insert request
|
984
|
+
#
|
985
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
986
|
+
# p result
|
987
|
+
#
|
844
988
|
def insert request, options = nil
|
845
989
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
846
990
|
|
@@ -924,6 +1068,22 @@ module Google
|
|
924
1068
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InstanceGroupManager>]
|
925
1069
|
#
|
926
1070
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1071
|
+
#
|
1072
|
+
# @example Basic example
|
1073
|
+
# require "google/cloud/compute/v1"
|
1074
|
+
#
|
1075
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1076
|
+
# client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
|
1077
|
+
#
|
1078
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1079
|
+
# request = Google::Cloud::Compute::V1::ListInstanceGroupManagersRequest.new
|
1080
|
+
#
|
1081
|
+
# # Call the list method.
|
1082
|
+
# result = client.list request
|
1083
|
+
#
|
1084
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InstanceGroupManagerList.
|
1085
|
+
# p result
|
1086
|
+
#
|
927
1087
|
def list request, options = nil
|
928
1088
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
929
1089
|
|
@@ -1001,6 +1161,22 @@ module Google
|
|
1001
1161
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InstanceManagedByIgmError>]
|
1002
1162
|
#
|
1003
1163
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1164
|
+
#
|
1165
|
+
# @example Basic example
|
1166
|
+
# require "google/cloud/compute/v1"
|
1167
|
+
#
|
1168
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1169
|
+
# client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
|
1170
|
+
#
|
1171
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1172
|
+
# request = Google::Cloud::Compute::V1::ListErrorsInstanceGroupManagersRequest.new
|
1173
|
+
#
|
1174
|
+
# # Call the list_errors method.
|
1175
|
+
# result = client.list_errors request
|
1176
|
+
#
|
1177
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InstanceGroupManagersListErrorsResponse.
|
1178
|
+
# p result
|
1179
|
+
#
|
1004
1180
|
def list_errors request, options = nil
|
1005
1181
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1006
1182
|
|
@@ -1078,6 +1254,22 @@ module Google
|
|
1078
1254
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::ManagedInstance>]
|
1079
1255
|
#
|
1080
1256
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1257
|
+
#
|
1258
|
+
# @example Basic example
|
1259
|
+
# require "google/cloud/compute/v1"
|
1260
|
+
#
|
1261
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1262
|
+
# client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
|
1263
|
+
#
|
1264
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1265
|
+
# request = Google::Cloud::Compute::V1::ListManagedInstancesInstanceGroupManagersRequest.new
|
1266
|
+
#
|
1267
|
+
# # Call the list_managed_instances method.
|
1268
|
+
# result = client.list_managed_instances request
|
1269
|
+
#
|
1270
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InstanceGroupManagersListManagedInstancesResponse.
|
1271
|
+
# p result
|
1272
|
+
#
|
1081
1273
|
def list_managed_instances request, options = nil
|
1082
1274
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1083
1275
|
|
@@ -1155,6 +1347,22 @@ module Google
|
|
1155
1347
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::PerInstanceConfig>]
|
1156
1348
|
#
|
1157
1349
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1350
|
+
#
|
1351
|
+
# @example Basic example
|
1352
|
+
# require "google/cloud/compute/v1"
|
1353
|
+
#
|
1354
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1355
|
+
# client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
|
1356
|
+
#
|
1357
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1358
|
+
# request = Google::Cloud::Compute::V1::ListPerInstanceConfigsInstanceGroupManagersRequest.new
|
1359
|
+
#
|
1360
|
+
# # Call the list_per_instance_configs method.
|
1361
|
+
# result = client.list_per_instance_configs request
|
1362
|
+
#
|
1363
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InstanceGroupManagersListPerInstanceConfigsResp.
|
1364
|
+
# p result
|
1365
|
+
#
|
1158
1366
|
def list_per_instance_configs request, options = nil
|
1159
1367
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1160
1368
|
|
@@ -1226,6 +1434,22 @@ module Google
|
|
1226
1434
|
# @return [::Gapic::GenericLRO::Operation]
|
1227
1435
|
#
|
1228
1436
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1437
|
+
#
|
1438
|
+
# @example Basic example
|
1439
|
+
# require "google/cloud/compute/v1"
|
1440
|
+
#
|
1441
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1442
|
+
# client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
|
1443
|
+
#
|
1444
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1445
|
+
# request = Google::Cloud::Compute::V1::PatchInstanceGroupManagerRequest.new
|
1446
|
+
#
|
1447
|
+
# # Call the patch method.
|
1448
|
+
# result = client.patch request
|
1449
|
+
#
|
1450
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1451
|
+
# p result
|
1452
|
+
#
|
1229
1453
|
def patch request, options = nil
|
1230
1454
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1231
1455
|
|
@@ -1305,6 +1529,22 @@ module Google
|
|
1305
1529
|
# @return [::Gapic::GenericLRO::Operation]
|
1306
1530
|
#
|
1307
1531
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1532
|
+
#
|
1533
|
+
# @example Basic example
|
1534
|
+
# require "google/cloud/compute/v1"
|
1535
|
+
#
|
1536
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1537
|
+
# client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
|
1538
|
+
#
|
1539
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1540
|
+
# request = Google::Cloud::Compute::V1::PatchPerInstanceConfigsInstanceGroupManagerRequest.new
|
1541
|
+
#
|
1542
|
+
# # Call the patch_per_instance_configs method.
|
1543
|
+
# result = client.patch_per_instance_configs request
|
1544
|
+
#
|
1545
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1546
|
+
# p result
|
1547
|
+
#
|
1308
1548
|
def patch_per_instance_configs request, options = nil
|
1309
1549
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1310
1550
|
|
@@ -1384,6 +1624,22 @@ module Google
|
|
1384
1624
|
# @return [::Gapic::GenericLRO::Operation]
|
1385
1625
|
#
|
1386
1626
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1627
|
+
#
|
1628
|
+
# @example Basic example
|
1629
|
+
# require "google/cloud/compute/v1"
|
1630
|
+
#
|
1631
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1632
|
+
# client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
|
1633
|
+
#
|
1634
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1635
|
+
# request = Google::Cloud::Compute::V1::RecreateInstancesInstanceGroupManagerRequest.new
|
1636
|
+
#
|
1637
|
+
# # Call the recreate_instances method.
|
1638
|
+
# result = client.recreate_instances request
|
1639
|
+
#
|
1640
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1641
|
+
# p result
|
1642
|
+
#
|
1387
1643
|
def recreate_instances request, options = nil
|
1388
1644
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1389
1645
|
|
@@ -1463,6 +1719,22 @@ module Google
|
|
1463
1719
|
# @return [::Gapic::GenericLRO::Operation]
|
1464
1720
|
#
|
1465
1721
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1722
|
+
#
|
1723
|
+
# @example Basic example
|
1724
|
+
# require "google/cloud/compute/v1"
|
1725
|
+
#
|
1726
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1727
|
+
# client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
|
1728
|
+
#
|
1729
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1730
|
+
# request = Google::Cloud::Compute::V1::ResizeInstanceGroupManagerRequest.new
|
1731
|
+
#
|
1732
|
+
# # Call the resize method.
|
1733
|
+
# result = client.resize request
|
1734
|
+
#
|
1735
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1736
|
+
# p result
|
1737
|
+
#
|
1466
1738
|
def resize request, options = nil
|
1467
1739
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1468
1740
|
|
@@ -1542,6 +1814,22 @@ module Google
|
|
1542
1814
|
# @return [::Gapic::GenericLRO::Operation]
|
1543
1815
|
#
|
1544
1816
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1817
|
+
#
|
1818
|
+
# @example Basic example
|
1819
|
+
# require "google/cloud/compute/v1"
|
1820
|
+
#
|
1821
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1822
|
+
# client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
|
1823
|
+
#
|
1824
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1825
|
+
# request = Google::Cloud::Compute::V1::SetInstanceTemplateInstanceGroupManagerRequest.new
|
1826
|
+
#
|
1827
|
+
# # Call the set_instance_template method.
|
1828
|
+
# result = client.set_instance_template request
|
1829
|
+
#
|
1830
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1831
|
+
# p result
|
1832
|
+
#
|
1545
1833
|
def set_instance_template request, options = nil
|
1546
1834
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1547
1835
|
|
@@ -1621,6 +1909,22 @@ module Google
|
|
1621
1909
|
# @return [::Gapic::GenericLRO::Operation]
|
1622
1910
|
#
|
1623
1911
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1912
|
+
#
|
1913
|
+
# @example Basic example
|
1914
|
+
# require "google/cloud/compute/v1"
|
1915
|
+
#
|
1916
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1917
|
+
# client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
|
1918
|
+
#
|
1919
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1920
|
+
# request = Google::Cloud::Compute::V1::SetTargetPoolsInstanceGroupManagerRequest.new
|
1921
|
+
#
|
1922
|
+
# # Call the set_target_pools method.
|
1923
|
+
# result = client.set_target_pools request
|
1924
|
+
#
|
1925
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1926
|
+
# p result
|
1927
|
+
#
|
1624
1928
|
def set_target_pools request, options = nil
|
1625
1929
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1626
1930
|
|
@@ -1700,6 +2004,22 @@ module Google
|
|
1700
2004
|
# @return [::Gapic::GenericLRO::Operation]
|
1701
2005
|
#
|
1702
2006
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2007
|
+
#
|
2008
|
+
# @example Basic example
|
2009
|
+
# require "google/cloud/compute/v1"
|
2010
|
+
#
|
2011
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2012
|
+
# client = Google::Cloud::Compute::V1::InstanceGroupManagers::Rest::Client.new
|
2013
|
+
#
|
2014
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2015
|
+
# request = Google::Cloud::Compute::V1::UpdatePerInstanceConfigsInstanceGroupManagerRequest.new
|
2016
|
+
#
|
2017
|
+
# # Call the update_per_instance_configs method.
|
2018
|
+
# result = client.update_per_instance_configs request
|
2019
|
+
#
|
2020
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
2021
|
+
# p result
|
2022
|
+
#
|
1703
2023
|
def update_per_instance_configs request, options = nil
|
1704
2024
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1705
2025
|
|
@@ -209,6 +209,22 @@ module Google
|
|
209
209
|
# @return [::Gapic::GenericLRO::Operation]
|
210
210
|
#
|
211
211
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
212
|
+
#
|
213
|
+
# @example Basic example
|
214
|
+
# require "google/cloud/compute/v1"
|
215
|
+
#
|
216
|
+
# # Create a client object. The client can be reused for multiple calls.
|
217
|
+
# client = Google::Cloud::Compute::V1::InstanceGroups::Rest::Client.new
|
218
|
+
#
|
219
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
220
|
+
# request = Google::Cloud::Compute::V1::AddInstancesInstanceGroupRequest.new
|
221
|
+
#
|
222
|
+
# # Call the add_instances method.
|
223
|
+
# result = client.add_instances request
|
224
|
+
#
|
225
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
226
|
+
# p result
|
227
|
+
#
|
212
228
|
def add_instances request, options = nil
|
213
229
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
214
230
|
|
@@ -292,6 +308,22 @@ module Google
|
|
292
308
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::InstanceGroupsScopedList>]
|
293
309
|
#
|
294
310
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
311
|
+
#
|
312
|
+
# @example Basic example
|
313
|
+
# require "google/cloud/compute/v1"
|
314
|
+
#
|
315
|
+
# # Create a client object. The client can be reused for multiple calls.
|
316
|
+
# client = Google::Cloud::Compute::V1::InstanceGroups::Rest::Client.new
|
317
|
+
#
|
318
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
319
|
+
# request = Google::Cloud::Compute::V1::AggregatedListInstanceGroupsRequest.new
|
320
|
+
#
|
321
|
+
# # Call the aggregated_list method.
|
322
|
+
# result = client.aggregated_list request
|
323
|
+
#
|
324
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InstanceGroupAggregatedList.
|
325
|
+
# p result
|
326
|
+
#
|
295
327
|
def aggregated_list request, options = nil
|
296
328
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
297
329
|
|
@@ -361,6 +393,22 @@ module Google
|
|
361
393
|
# @return [::Gapic::GenericLRO::Operation]
|
362
394
|
#
|
363
395
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
396
|
+
#
|
397
|
+
# @example Basic example
|
398
|
+
# require "google/cloud/compute/v1"
|
399
|
+
#
|
400
|
+
# # Create a client object. The client can be reused for multiple calls.
|
401
|
+
# client = Google::Cloud::Compute::V1::InstanceGroups::Rest::Client.new
|
402
|
+
#
|
403
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
404
|
+
# request = Google::Cloud::Compute::V1::DeleteInstanceGroupRequest.new
|
405
|
+
#
|
406
|
+
# # Call the delete method.
|
407
|
+
# result = client.delete request
|
408
|
+
#
|
409
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
410
|
+
# p result
|
411
|
+
#
|
364
412
|
def delete request, options = nil
|
365
413
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
366
414
|
|
@@ -436,6 +484,22 @@ module Google
|
|
436
484
|
# @return [::Google::Cloud::Compute::V1::InstanceGroup]
|
437
485
|
#
|
438
486
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
487
|
+
#
|
488
|
+
# @example Basic example
|
489
|
+
# require "google/cloud/compute/v1"
|
490
|
+
#
|
491
|
+
# # Create a client object. The client can be reused for multiple calls.
|
492
|
+
# client = Google::Cloud::Compute::V1::InstanceGroups::Rest::Client.new
|
493
|
+
#
|
494
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
495
|
+
# request = Google::Cloud::Compute::V1::GetInstanceGroupRequest.new
|
496
|
+
#
|
497
|
+
# # Call the get method.
|
498
|
+
# result = client.get request
|
499
|
+
#
|
500
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InstanceGroup.
|
501
|
+
# p result
|
502
|
+
#
|
439
503
|
def get request, options = nil
|
440
504
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
441
505
|
|
@@ -504,6 +568,22 @@ module Google
|
|
504
568
|
# @return [::Gapic::GenericLRO::Operation]
|
505
569
|
#
|
506
570
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
571
|
+
#
|
572
|
+
# @example Basic example
|
573
|
+
# require "google/cloud/compute/v1"
|
574
|
+
#
|
575
|
+
# # Create a client object. The client can be reused for multiple calls.
|
576
|
+
# client = Google::Cloud::Compute::V1::InstanceGroups::Rest::Client.new
|
577
|
+
#
|
578
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
579
|
+
# request = Google::Cloud::Compute::V1::InsertInstanceGroupRequest.new
|
580
|
+
#
|
581
|
+
# # Call the insert method.
|
582
|
+
# result = client.insert request
|
583
|
+
#
|
584
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
585
|
+
# p result
|
586
|
+
#
|
507
587
|
def insert request, options = nil
|
508
588
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
509
589
|
|
@@ -587,6 +667,22 @@ module Google
|
|
587
667
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InstanceGroup>]
|
588
668
|
#
|
589
669
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
670
|
+
#
|
671
|
+
# @example Basic example
|
672
|
+
# require "google/cloud/compute/v1"
|
673
|
+
#
|
674
|
+
# # Create a client object. The client can be reused for multiple calls.
|
675
|
+
# client = Google::Cloud::Compute::V1::InstanceGroups::Rest::Client.new
|
676
|
+
#
|
677
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
678
|
+
# request = Google::Cloud::Compute::V1::ListInstanceGroupsRequest.new
|
679
|
+
#
|
680
|
+
# # Call the list method.
|
681
|
+
# result = client.list request
|
682
|
+
#
|
683
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InstanceGroupList.
|
684
|
+
# p result
|
685
|
+
#
|
590
686
|
def list request, options = nil
|
591
687
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
592
688
|
|
@@ -666,6 +762,22 @@ module Google
|
|
666
762
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InstanceWithNamedPorts>]
|
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::InstanceGroups::Rest::Client.new
|
771
|
+
#
|
772
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
773
|
+
# request = Google::Cloud::Compute::V1::ListInstancesInstanceGroupsRequest.new
|
774
|
+
#
|
775
|
+
# # Call the list_instances method.
|
776
|
+
# result = client.list_instances request
|
777
|
+
#
|
778
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InstanceGroupsListInstances.
|
779
|
+
# p result
|
780
|
+
#
|
669
781
|
def list_instances request, options = nil
|
670
782
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
671
783
|
|
@@ -737,6 +849,22 @@ module Google
|
|
737
849
|
# @return [::Gapic::GenericLRO::Operation]
|
738
850
|
#
|
739
851
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
852
|
+
#
|
853
|
+
# @example Basic example
|
854
|
+
# require "google/cloud/compute/v1"
|
855
|
+
#
|
856
|
+
# # Create a client object. The client can be reused for multiple calls.
|
857
|
+
# client = Google::Cloud::Compute::V1::InstanceGroups::Rest::Client.new
|
858
|
+
#
|
859
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
860
|
+
# request = Google::Cloud::Compute::V1::RemoveInstancesInstanceGroupRequest.new
|
861
|
+
#
|
862
|
+
# # Call the remove_instances method.
|
863
|
+
# result = client.remove_instances request
|
864
|
+
#
|
865
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
866
|
+
# p result
|
867
|
+
#
|
740
868
|
def remove_instances request, options = nil
|
741
869
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
742
870
|
|
@@ -816,6 +944,22 @@ module Google
|
|
816
944
|
# @return [::Gapic::GenericLRO::Operation]
|
817
945
|
#
|
818
946
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
947
|
+
#
|
948
|
+
# @example Basic example
|
949
|
+
# require "google/cloud/compute/v1"
|
950
|
+
#
|
951
|
+
# # Create a client object. The client can be reused for multiple calls.
|
952
|
+
# client = Google::Cloud::Compute::V1::InstanceGroups::Rest::Client.new
|
953
|
+
#
|
954
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
955
|
+
# request = Google::Cloud::Compute::V1::SetNamedPortsInstanceGroupRequest.new
|
956
|
+
#
|
957
|
+
# # Call the set_named_ports method.
|
958
|
+
# result = client.set_named_ports request
|
959
|
+
#
|
960
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
961
|
+
# p result
|
962
|
+
#
|
819
963
|
def set_named_ports request, options = nil
|
820
964
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
821
965
|
|