google-cloud-compute-v1 2.4.0 → 2.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/compute/v1/accelerator_types/rest/client.rb +48 -0
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +224 -0
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +48 -0
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +288 -0
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +288 -0
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +48 -0
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +16 -0
- data/lib/google/cloud/compute/v1/images/rest/client.rb +176 -0
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +320 -0
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +736 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +48 -0
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +256 -0
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +176 -0
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +224 -0
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +48 -0
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +208 -0
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +272 -0
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +304 -0
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_instances/rest/client.rb +16 -0
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +272 -0
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +160 -0
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +160 -0
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +192 -0
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +192 -0
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +176 -0
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +80 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +176 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +112 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +144 -0
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +128 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +96 -0
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +64 -0
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +32 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- metadata +5 -5
@@ -306,6 +306,22 @@ module Google
|
|
306
306
|
# @return [::Gapic::GenericLRO::Operation]
|
307
307
|
#
|
308
308
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
309
|
+
#
|
310
|
+
# @example Basic example
|
311
|
+
# require "google/cloud/compute/v1"
|
312
|
+
#
|
313
|
+
# # Create a client object. The client can be reused for multiple calls.
|
314
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
315
|
+
#
|
316
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
317
|
+
# request = Google::Cloud::Compute::V1::AddAccessConfigInstanceRequest.new
|
318
|
+
#
|
319
|
+
# # Call the add_access_config method.
|
320
|
+
# result = client.add_access_config request
|
321
|
+
#
|
322
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
323
|
+
# p result
|
324
|
+
#
|
309
325
|
def add_access_config request, options = nil
|
310
326
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
311
327
|
|
@@ -385,6 +401,22 @@ module Google
|
|
385
401
|
# @return [::Gapic::GenericLRO::Operation]
|
386
402
|
#
|
387
403
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
404
|
+
#
|
405
|
+
# @example Basic example
|
406
|
+
# require "google/cloud/compute/v1"
|
407
|
+
#
|
408
|
+
# # Create a client object. The client can be reused for multiple calls.
|
409
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
410
|
+
#
|
411
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
412
|
+
# request = Google::Cloud::Compute::V1::AddResourcePoliciesInstanceRequest.new
|
413
|
+
#
|
414
|
+
# # Call the add_resource_policies method.
|
415
|
+
# result = client.add_resource_policies request
|
416
|
+
#
|
417
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
418
|
+
# p result
|
419
|
+
#
|
388
420
|
def add_resource_policies request, options = nil
|
389
421
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
390
422
|
|
@@ -468,6 +500,22 @@ module Google
|
|
468
500
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::InstancesScopedList>]
|
469
501
|
#
|
470
502
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
503
|
+
#
|
504
|
+
# @example Basic example
|
505
|
+
# require "google/cloud/compute/v1"
|
506
|
+
#
|
507
|
+
# # Create a client object. The client can be reused for multiple calls.
|
508
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
509
|
+
#
|
510
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
511
|
+
# request = Google::Cloud::Compute::V1::AggregatedListInstancesRequest.new
|
512
|
+
#
|
513
|
+
# # Call the aggregated_list method.
|
514
|
+
# result = client.aggregated_list request
|
515
|
+
#
|
516
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InstanceAggregatedList.
|
517
|
+
# p result
|
518
|
+
#
|
471
519
|
def aggregated_list request, options = nil
|
472
520
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
473
521
|
|
@@ -541,6 +589,22 @@ module Google
|
|
541
589
|
# @return [::Gapic::GenericLRO::Operation]
|
542
590
|
#
|
543
591
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
592
|
+
#
|
593
|
+
# @example Basic example
|
594
|
+
# require "google/cloud/compute/v1"
|
595
|
+
#
|
596
|
+
# # Create a client object. The client can be reused for multiple calls.
|
597
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
598
|
+
#
|
599
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
600
|
+
# request = Google::Cloud::Compute::V1::AttachDiskInstanceRequest.new
|
601
|
+
#
|
602
|
+
# # Call the attach_disk method.
|
603
|
+
# result = client.attach_disk request
|
604
|
+
#
|
605
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
606
|
+
# p result
|
607
|
+
#
|
544
608
|
def attach_disk request, options = nil
|
545
609
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
546
610
|
|
@@ -618,6 +682,22 @@ module Google
|
|
618
682
|
# @return [::Gapic::GenericLRO::Operation]
|
619
683
|
#
|
620
684
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
685
|
+
#
|
686
|
+
# @example Basic example
|
687
|
+
# require "google/cloud/compute/v1"
|
688
|
+
#
|
689
|
+
# # Create a client object. The client can be reused for multiple calls.
|
690
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
691
|
+
#
|
692
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
693
|
+
# request = Google::Cloud::Compute::V1::BulkInsertInstanceRequest.new
|
694
|
+
#
|
695
|
+
# # Call the bulk_insert method.
|
696
|
+
# result = client.bulk_insert request
|
697
|
+
#
|
698
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
699
|
+
# p result
|
700
|
+
#
|
621
701
|
def bulk_insert request, options = nil
|
622
702
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
623
703
|
|
@@ -695,6 +775,22 @@ module Google
|
|
695
775
|
# @return [::Gapic::GenericLRO::Operation]
|
696
776
|
#
|
697
777
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
778
|
+
#
|
779
|
+
# @example Basic example
|
780
|
+
# require "google/cloud/compute/v1"
|
781
|
+
#
|
782
|
+
# # Create a client object. The client can be reused for multiple calls.
|
783
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
784
|
+
#
|
785
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
786
|
+
# request = Google::Cloud::Compute::V1::DeleteInstanceRequest.new
|
787
|
+
#
|
788
|
+
# # Call the delete method.
|
789
|
+
# result = client.delete request
|
790
|
+
#
|
791
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
792
|
+
# p result
|
793
|
+
#
|
698
794
|
def delete request, options = nil
|
699
795
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
700
796
|
|
@@ -776,6 +872,22 @@ module Google
|
|
776
872
|
# @return [::Gapic::GenericLRO::Operation]
|
777
873
|
#
|
778
874
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
875
|
+
#
|
876
|
+
# @example Basic example
|
877
|
+
# require "google/cloud/compute/v1"
|
878
|
+
#
|
879
|
+
# # Create a client object. The client can be reused for multiple calls.
|
880
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
881
|
+
#
|
882
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
883
|
+
# request = Google::Cloud::Compute::V1::DeleteAccessConfigInstanceRequest.new
|
884
|
+
#
|
885
|
+
# # Call the delete_access_config method.
|
886
|
+
# result = client.delete_access_config request
|
887
|
+
#
|
888
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
889
|
+
# p result
|
890
|
+
#
|
779
891
|
def delete_access_config request, options = nil
|
780
892
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
781
893
|
|
@@ -855,6 +967,22 @@ module Google
|
|
855
967
|
# @return [::Gapic::GenericLRO::Operation]
|
856
968
|
#
|
857
969
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
970
|
+
#
|
971
|
+
# @example Basic example
|
972
|
+
# require "google/cloud/compute/v1"
|
973
|
+
#
|
974
|
+
# # Create a client object. The client can be reused for multiple calls.
|
975
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
976
|
+
#
|
977
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
978
|
+
# request = Google::Cloud::Compute::V1::DetachDiskInstanceRequest.new
|
979
|
+
#
|
980
|
+
# # Call the detach_disk method.
|
981
|
+
# result = client.detach_disk request
|
982
|
+
#
|
983
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
984
|
+
# p result
|
985
|
+
#
|
858
986
|
def detach_disk request, options = nil
|
859
987
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
860
988
|
|
@@ -930,6 +1058,22 @@ module Google
|
|
930
1058
|
# @return [::Google::Cloud::Compute::V1::Instance]
|
931
1059
|
#
|
932
1060
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1061
|
+
#
|
1062
|
+
# @example Basic example
|
1063
|
+
# require "google/cloud/compute/v1"
|
1064
|
+
#
|
1065
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1066
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
1067
|
+
#
|
1068
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1069
|
+
# request = Google::Cloud::Compute::V1::GetInstanceRequest.new
|
1070
|
+
#
|
1071
|
+
# # Call the get method.
|
1072
|
+
# result = client.get request
|
1073
|
+
#
|
1074
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Instance.
|
1075
|
+
# p result
|
1076
|
+
#
|
933
1077
|
def get request, options = nil
|
934
1078
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
935
1079
|
|
@@ -998,6 +1142,22 @@ module Google
|
|
998
1142
|
# @return [::Google::Cloud::Compute::V1::InstancesGetEffectiveFirewallsResponse]
|
999
1143
|
#
|
1000
1144
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1145
|
+
#
|
1146
|
+
# @example Basic example
|
1147
|
+
# require "google/cloud/compute/v1"
|
1148
|
+
#
|
1149
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1150
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
1151
|
+
#
|
1152
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1153
|
+
# request = Google::Cloud::Compute::V1::GetEffectiveFirewallsInstanceRequest.new
|
1154
|
+
#
|
1155
|
+
# # Call the get_effective_firewalls method.
|
1156
|
+
# result = client.get_effective_firewalls request
|
1157
|
+
#
|
1158
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InstancesGetEffectiveFirewallsResponse.
|
1159
|
+
# p result
|
1160
|
+
#
|
1001
1161
|
def get_effective_firewalls request, options = nil
|
1002
1162
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1003
1163
|
|
@@ -1068,6 +1228,22 @@ module Google
|
|
1068
1228
|
# @return [::Google::Cloud::Compute::V1::GuestAttributes]
|
1069
1229
|
#
|
1070
1230
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1231
|
+
#
|
1232
|
+
# @example Basic example
|
1233
|
+
# require "google/cloud/compute/v1"
|
1234
|
+
#
|
1235
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1236
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
1237
|
+
#
|
1238
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1239
|
+
# request = Google::Cloud::Compute::V1::GetGuestAttributesInstanceRequest.new
|
1240
|
+
#
|
1241
|
+
# # Call the get_guest_attributes method.
|
1242
|
+
# result = client.get_guest_attributes request
|
1243
|
+
#
|
1244
|
+
# # The returned object is of type Google::Cloud::Compute::V1::GuestAttributes.
|
1245
|
+
# p result
|
1246
|
+
#
|
1071
1247
|
def get_guest_attributes request, options = nil
|
1072
1248
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1073
1249
|
|
@@ -1136,6 +1312,22 @@ module Google
|
|
1136
1312
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
1137
1313
|
#
|
1138
1314
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1315
|
+
#
|
1316
|
+
# @example Basic example
|
1317
|
+
# require "google/cloud/compute/v1"
|
1318
|
+
#
|
1319
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1320
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
1321
|
+
#
|
1322
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1323
|
+
# request = Google::Cloud::Compute::V1::GetIamPolicyInstanceRequest.new
|
1324
|
+
#
|
1325
|
+
# # Call the get_iam_policy method.
|
1326
|
+
# result = client.get_iam_policy request
|
1327
|
+
#
|
1328
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
1329
|
+
# p result
|
1330
|
+
#
|
1139
1331
|
def get_iam_policy request, options = nil
|
1140
1332
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1141
1333
|
|
@@ -1202,6 +1394,22 @@ module Google
|
|
1202
1394
|
# @return [::Google::Cloud::Compute::V1::Screenshot]
|
1203
1395
|
#
|
1204
1396
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1397
|
+
#
|
1398
|
+
# @example Basic example
|
1399
|
+
# require "google/cloud/compute/v1"
|
1400
|
+
#
|
1401
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1402
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
1403
|
+
#
|
1404
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1405
|
+
# request = Google::Cloud::Compute::V1::GetScreenshotInstanceRequest.new
|
1406
|
+
#
|
1407
|
+
# # Call the get_screenshot method.
|
1408
|
+
# result = client.get_screenshot request
|
1409
|
+
#
|
1410
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Screenshot.
|
1411
|
+
# p result
|
1412
|
+
#
|
1205
1413
|
def get_screenshot request, options = nil
|
1206
1414
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1207
1415
|
|
@@ -1272,6 +1480,22 @@ module Google
|
|
1272
1480
|
# @return [::Google::Cloud::Compute::V1::SerialPortOutput]
|
1273
1481
|
#
|
1274
1482
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1483
|
+
#
|
1484
|
+
# @example Basic example
|
1485
|
+
# require "google/cloud/compute/v1"
|
1486
|
+
#
|
1487
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1488
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
1489
|
+
#
|
1490
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1491
|
+
# request = Google::Cloud::Compute::V1::GetSerialPortOutputInstanceRequest.new
|
1492
|
+
#
|
1493
|
+
# # Call the get_serial_port_output method.
|
1494
|
+
# result = client.get_serial_port_output request
|
1495
|
+
#
|
1496
|
+
# # The returned object is of type Google::Cloud::Compute::V1::SerialPortOutput.
|
1497
|
+
# p result
|
1498
|
+
#
|
1275
1499
|
def get_serial_port_output request, options = nil
|
1276
1500
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1277
1501
|
|
@@ -1338,6 +1562,22 @@ module Google
|
|
1338
1562
|
# @return [::Google::Cloud::Compute::V1::ShieldedInstanceIdentity]
|
1339
1563
|
#
|
1340
1564
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1565
|
+
#
|
1566
|
+
# @example Basic example
|
1567
|
+
# require "google/cloud/compute/v1"
|
1568
|
+
#
|
1569
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1570
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
1571
|
+
#
|
1572
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1573
|
+
# request = Google::Cloud::Compute::V1::GetShieldedInstanceIdentityInstanceRequest.new
|
1574
|
+
#
|
1575
|
+
# # Call the get_shielded_instance_identity method.
|
1576
|
+
# result = client.get_shielded_instance_identity request
|
1577
|
+
#
|
1578
|
+
# # The returned object is of type Google::Cloud::Compute::V1::ShieldedInstanceIdentity.
|
1579
|
+
# p result
|
1580
|
+
#
|
1341
1581
|
def get_shielded_instance_identity request, options = nil
|
1342
1582
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1343
1583
|
|
@@ -1410,6 +1650,22 @@ module Google
|
|
1410
1650
|
# @return [::Gapic::GenericLRO::Operation]
|
1411
1651
|
#
|
1412
1652
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1653
|
+
#
|
1654
|
+
# @example Basic example
|
1655
|
+
# require "google/cloud/compute/v1"
|
1656
|
+
#
|
1657
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1658
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
1659
|
+
#
|
1660
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1661
|
+
# request = Google::Cloud::Compute::V1::InsertInstanceRequest.new
|
1662
|
+
#
|
1663
|
+
# # Call the insert method.
|
1664
|
+
# result = client.insert request
|
1665
|
+
#
|
1666
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1667
|
+
# p result
|
1668
|
+
#
|
1413
1669
|
def insert request, options = nil
|
1414
1670
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1415
1671
|
|
@@ -1493,6 +1749,22 @@ module Google
|
|
1493
1749
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Instance>]
|
1494
1750
|
#
|
1495
1751
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1752
|
+
#
|
1753
|
+
# @example Basic example
|
1754
|
+
# require "google/cloud/compute/v1"
|
1755
|
+
#
|
1756
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1757
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
1758
|
+
#
|
1759
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1760
|
+
# request = Google::Cloud::Compute::V1::ListInstancesRequest.new
|
1761
|
+
#
|
1762
|
+
# # Call the list method.
|
1763
|
+
# result = client.list request
|
1764
|
+
#
|
1765
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InstanceList.
|
1766
|
+
# p result
|
1767
|
+
#
|
1496
1768
|
def list request, options = nil
|
1497
1769
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1498
1770
|
|
@@ -1570,6 +1842,22 @@ module Google
|
|
1570
1842
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Reference>]
|
1571
1843
|
#
|
1572
1844
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1845
|
+
#
|
1846
|
+
# @example Basic example
|
1847
|
+
# require "google/cloud/compute/v1"
|
1848
|
+
#
|
1849
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1850
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
1851
|
+
#
|
1852
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1853
|
+
# request = Google::Cloud::Compute::V1::ListReferrersInstancesRequest.new
|
1854
|
+
#
|
1855
|
+
# # Call the list_referrers method.
|
1856
|
+
# result = client.list_referrers request
|
1857
|
+
#
|
1858
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InstanceListReferrers.
|
1859
|
+
# p result
|
1860
|
+
#
|
1573
1861
|
def list_referrers request, options = nil
|
1574
1862
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1575
1863
|
|
@@ -1641,6 +1929,22 @@ module Google
|
|
1641
1929
|
# @return [::Gapic::GenericLRO::Operation]
|
1642
1930
|
#
|
1643
1931
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1932
|
+
#
|
1933
|
+
# @example Basic example
|
1934
|
+
# require "google/cloud/compute/v1"
|
1935
|
+
#
|
1936
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1937
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
1938
|
+
#
|
1939
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1940
|
+
# request = Google::Cloud::Compute::V1::RemoveResourcePoliciesInstanceRequest.new
|
1941
|
+
#
|
1942
|
+
# # Call the remove_resource_policies method.
|
1943
|
+
# result = client.remove_resource_policies request
|
1944
|
+
#
|
1945
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1946
|
+
# p result
|
1947
|
+
#
|
1644
1948
|
def remove_resource_policies request, options = nil
|
1645
1949
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1646
1950
|
|
@@ -1718,6 +2022,22 @@ module Google
|
|
1718
2022
|
# @return [::Gapic::GenericLRO::Operation]
|
1719
2023
|
#
|
1720
2024
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2025
|
+
#
|
2026
|
+
# @example Basic example
|
2027
|
+
# require "google/cloud/compute/v1"
|
2028
|
+
#
|
2029
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2030
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
2031
|
+
#
|
2032
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2033
|
+
# request = Google::Cloud::Compute::V1::ResetInstanceRequest.new
|
2034
|
+
#
|
2035
|
+
# # Call the reset method.
|
2036
|
+
# result = client.reset request
|
2037
|
+
#
|
2038
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
2039
|
+
# p result
|
2040
|
+
#
|
1721
2041
|
def reset request, options = nil
|
1722
2042
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1723
2043
|
|
@@ -1795,6 +2115,22 @@ module Google
|
|
1795
2115
|
# @return [::Gapic::GenericLRO::Operation]
|
1796
2116
|
#
|
1797
2117
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2118
|
+
#
|
2119
|
+
# @example Basic example
|
2120
|
+
# require "google/cloud/compute/v1"
|
2121
|
+
#
|
2122
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2123
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
2124
|
+
#
|
2125
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2126
|
+
# request = Google::Cloud::Compute::V1::ResumeInstanceRequest.new
|
2127
|
+
#
|
2128
|
+
# # Call the resume method.
|
2129
|
+
# result = client.resume request
|
2130
|
+
#
|
2131
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
2132
|
+
# p result
|
2133
|
+
#
|
1798
2134
|
def resume request, options = nil
|
1799
2135
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1800
2136
|
|
@@ -1870,6 +2206,22 @@ module Google
|
|
1870
2206
|
# @return [::Google::Cloud::Compute::V1::SendDiagnosticInterruptInstanceResponse]
|
1871
2207
|
#
|
1872
2208
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2209
|
+
#
|
2210
|
+
# @example Basic example
|
2211
|
+
# require "google/cloud/compute/v1"
|
2212
|
+
#
|
2213
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2214
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
2215
|
+
#
|
2216
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2217
|
+
# request = Google::Cloud::Compute::V1::SendDiagnosticInterruptInstanceRequest.new
|
2218
|
+
#
|
2219
|
+
# # Call the send_diagnostic_interrupt method.
|
2220
|
+
# result = client.send_diagnostic_interrupt request
|
2221
|
+
#
|
2222
|
+
# # The returned object is of type Google::Cloud::Compute::V1::SendDiagnosticInterruptInstanceResponse.
|
2223
|
+
# p result
|
2224
|
+
#
|
1873
2225
|
def send_diagnostic_interrupt request, options = nil
|
1874
2226
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1875
2227
|
|
@@ -1940,6 +2292,22 @@ module Google
|
|
1940
2292
|
# @return [::Gapic::GenericLRO::Operation]
|
1941
2293
|
#
|
1942
2294
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2295
|
+
#
|
2296
|
+
# @example Basic example
|
2297
|
+
# require "google/cloud/compute/v1"
|
2298
|
+
#
|
2299
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2300
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
2301
|
+
#
|
2302
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2303
|
+
# request = Google::Cloud::Compute::V1::SetDeletionProtectionInstanceRequest.new
|
2304
|
+
#
|
2305
|
+
# # Call the set_deletion_protection method.
|
2306
|
+
# result = client.set_deletion_protection request
|
2307
|
+
#
|
2308
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
2309
|
+
# p result
|
2310
|
+
#
|
1943
2311
|
def set_deletion_protection request, options = nil
|
1944
2312
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1945
2313
|
|
@@ -2021,6 +2389,22 @@ module Google
|
|
2021
2389
|
# @return [::Gapic::GenericLRO::Operation]
|
2022
2390
|
#
|
2023
2391
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2392
|
+
#
|
2393
|
+
# @example Basic example
|
2394
|
+
# require "google/cloud/compute/v1"
|
2395
|
+
#
|
2396
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2397
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
2398
|
+
#
|
2399
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2400
|
+
# request = Google::Cloud::Compute::V1::SetDiskAutoDeleteInstanceRequest.new
|
2401
|
+
#
|
2402
|
+
# # Call the set_disk_auto_delete method.
|
2403
|
+
# result = client.set_disk_auto_delete request
|
2404
|
+
#
|
2405
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
2406
|
+
# p result
|
2407
|
+
#
|
2024
2408
|
def set_disk_auto_delete request, options = nil
|
2025
2409
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2026
2410
|
|
@@ -2098,6 +2482,22 @@ module Google
|
|
2098
2482
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
2099
2483
|
#
|
2100
2484
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2485
|
+
#
|
2486
|
+
# @example Basic example
|
2487
|
+
# require "google/cloud/compute/v1"
|
2488
|
+
#
|
2489
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2490
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
2491
|
+
#
|
2492
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2493
|
+
# request = Google::Cloud::Compute::V1::SetIamPolicyInstanceRequest.new
|
2494
|
+
#
|
2495
|
+
# # Call the set_iam_policy method.
|
2496
|
+
# result = client.set_iam_policy request
|
2497
|
+
#
|
2498
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
2499
|
+
# p result
|
2500
|
+
#
|
2101
2501
|
def set_iam_policy request, options = nil
|
2102
2502
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2103
2503
|
|
@@ -2168,6 +2568,22 @@ module Google
|
|
2168
2568
|
# @return [::Gapic::GenericLRO::Operation]
|
2169
2569
|
#
|
2170
2570
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2571
|
+
#
|
2572
|
+
# @example Basic example
|
2573
|
+
# require "google/cloud/compute/v1"
|
2574
|
+
#
|
2575
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2576
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
2577
|
+
#
|
2578
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2579
|
+
# request = Google::Cloud::Compute::V1::SetLabelsInstanceRequest.new
|
2580
|
+
#
|
2581
|
+
# # Call the set_labels method.
|
2582
|
+
# result = client.set_labels request
|
2583
|
+
#
|
2584
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
2585
|
+
# p result
|
2586
|
+
#
|
2171
2587
|
def set_labels request, options = nil
|
2172
2588
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2173
2589
|
|
@@ -2247,6 +2663,22 @@ module Google
|
|
2247
2663
|
# @return [::Gapic::GenericLRO::Operation]
|
2248
2664
|
#
|
2249
2665
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2666
|
+
#
|
2667
|
+
# @example Basic example
|
2668
|
+
# require "google/cloud/compute/v1"
|
2669
|
+
#
|
2670
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2671
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
2672
|
+
#
|
2673
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2674
|
+
# request = Google::Cloud::Compute::V1::SetMachineResourcesInstanceRequest.new
|
2675
|
+
#
|
2676
|
+
# # Call the set_machine_resources method.
|
2677
|
+
# result = client.set_machine_resources request
|
2678
|
+
#
|
2679
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
2680
|
+
# p result
|
2681
|
+
#
|
2250
2682
|
def set_machine_resources request, options = nil
|
2251
2683
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2252
2684
|
|
@@ -2326,6 +2758,22 @@ module Google
|
|
2326
2758
|
# @return [::Gapic::GenericLRO::Operation]
|
2327
2759
|
#
|
2328
2760
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2761
|
+
#
|
2762
|
+
# @example Basic example
|
2763
|
+
# require "google/cloud/compute/v1"
|
2764
|
+
#
|
2765
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2766
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
2767
|
+
#
|
2768
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2769
|
+
# request = Google::Cloud::Compute::V1::SetMachineTypeInstanceRequest.new
|
2770
|
+
#
|
2771
|
+
# # Call the set_machine_type method.
|
2772
|
+
# result = client.set_machine_type request
|
2773
|
+
#
|
2774
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
2775
|
+
# p result
|
2776
|
+
#
|
2329
2777
|
def set_machine_type request, options = nil
|
2330
2778
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2331
2779
|
|
@@ -2405,6 +2853,22 @@ module Google
|
|
2405
2853
|
# @return [::Gapic::GenericLRO::Operation]
|
2406
2854
|
#
|
2407
2855
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2856
|
+
#
|
2857
|
+
# @example Basic example
|
2858
|
+
# require "google/cloud/compute/v1"
|
2859
|
+
#
|
2860
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2861
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
2862
|
+
#
|
2863
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2864
|
+
# request = Google::Cloud::Compute::V1::SetMetadataInstanceRequest.new
|
2865
|
+
#
|
2866
|
+
# # Call the set_metadata method.
|
2867
|
+
# result = client.set_metadata request
|
2868
|
+
#
|
2869
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
2870
|
+
# p result
|
2871
|
+
#
|
2408
2872
|
def set_metadata request, options = nil
|
2409
2873
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2410
2874
|
|
@@ -2484,6 +2948,22 @@ module Google
|
|
2484
2948
|
# @return [::Gapic::GenericLRO::Operation]
|
2485
2949
|
#
|
2486
2950
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
2951
|
+
#
|
2952
|
+
# @example Basic example
|
2953
|
+
# require "google/cloud/compute/v1"
|
2954
|
+
#
|
2955
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2956
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
2957
|
+
#
|
2958
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2959
|
+
# request = Google::Cloud::Compute::V1::SetMinCpuPlatformInstanceRequest.new
|
2960
|
+
#
|
2961
|
+
# # Call the set_min_cpu_platform method.
|
2962
|
+
# result = client.set_min_cpu_platform request
|
2963
|
+
#
|
2964
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
2965
|
+
# p result
|
2966
|
+
#
|
2487
2967
|
def set_min_cpu_platform request, options = nil
|
2488
2968
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2489
2969
|
|
@@ -2563,6 +3043,22 @@ module Google
|
|
2563
3043
|
# @return [::Gapic::GenericLRO::Operation]
|
2564
3044
|
#
|
2565
3045
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3046
|
+
#
|
3047
|
+
# @example Basic example
|
3048
|
+
# require "google/cloud/compute/v1"
|
3049
|
+
#
|
3050
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3051
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
3052
|
+
#
|
3053
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3054
|
+
# request = Google::Cloud::Compute::V1::SetNameInstanceRequest.new
|
3055
|
+
#
|
3056
|
+
# # Call the set_name method.
|
3057
|
+
# result = client.set_name request
|
3058
|
+
#
|
3059
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
3060
|
+
# p result
|
3061
|
+
#
|
2566
3062
|
def set_name request, options = nil
|
2567
3063
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2568
3064
|
|
@@ -2642,6 +3138,22 @@ module Google
|
|
2642
3138
|
# @return [::Gapic::GenericLRO::Operation]
|
2643
3139
|
#
|
2644
3140
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3141
|
+
#
|
3142
|
+
# @example Basic example
|
3143
|
+
# require "google/cloud/compute/v1"
|
3144
|
+
#
|
3145
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3146
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
3147
|
+
#
|
3148
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3149
|
+
# request = Google::Cloud::Compute::V1::SetSchedulingInstanceRequest.new
|
3150
|
+
#
|
3151
|
+
# # Call the set_scheduling method.
|
3152
|
+
# result = client.set_scheduling request
|
3153
|
+
#
|
3154
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
3155
|
+
# p result
|
3156
|
+
#
|
2645
3157
|
def set_scheduling request, options = nil
|
2646
3158
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2647
3159
|
|
@@ -2721,6 +3233,22 @@ module Google
|
|
2721
3233
|
# @return [::Gapic::GenericLRO::Operation]
|
2722
3234
|
#
|
2723
3235
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3236
|
+
#
|
3237
|
+
# @example Basic example
|
3238
|
+
# require "google/cloud/compute/v1"
|
3239
|
+
#
|
3240
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3241
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
3242
|
+
#
|
3243
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3244
|
+
# request = Google::Cloud::Compute::V1::SetServiceAccountInstanceRequest.new
|
3245
|
+
#
|
3246
|
+
# # Call the set_service_account method.
|
3247
|
+
# result = client.set_service_account request
|
3248
|
+
#
|
3249
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
3250
|
+
# p result
|
3251
|
+
#
|
2724
3252
|
def set_service_account request, options = nil
|
2725
3253
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2726
3254
|
|
@@ -2800,6 +3328,22 @@ module Google
|
|
2800
3328
|
# @return [::Gapic::GenericLRO::Operation]
|
2801
3329
|
#
|
2802
3330
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3331
|
+
#
|
3332
|
+
# @example Basic example
|
3333
|
+
# require "google/cloud/compute/v1"
|
3334
|
+
#
|
3335
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3336
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
3337
|
+
#
|
3338
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3339
|
+
# request = Google::Cloud::Compute::V1::SetShieldedInstanceIntegrityPolicyInstanceRequest.new
|
3340
|
+
#
|
3341
|
+
# # Call the set_shielded_instance_integrity_policy method.
|
3342
|
+
# result = client.set_shielded_instance_integrity_policy request
|
3343
|
+
#
|
3344
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
3345
|
+
# p result
|
3346
|
+
#
|
2803
3347
|
def set_shielded_instance_integrity_policy request, options = nil
|
2804
3348
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2805
3349
|
|
@@ -2879,6 +3423,22 @@ module Google
|
|
2879
3423
|
# @return [::Gapic::GenericLRO::Operation]
|
2880
3424
|
#
|
2881
3425
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3426
|
+
#
|
3427
|
+
# @example Basic example
|
3428
|
+
# require "google/cloud/compute/v1"
|
3429
|
+
#
|
3430
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3431
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
3432
|
+
#
|
3433
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3434
|
+
# request = Google::Cloud::Compute::V1::SetTagsInstanceRequest.new
|
3435
|
+
#
|
3436
|
+
# # Call the set_tags method.
|
3437
|
+
# result = client.set_tags request
|
3438
|
+
#
|
3439
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
3440
|
+
# p result
|
3441
|
+
#
|
2882
3442
|
def set_tags request, options = nil
|
2883
3443
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2884
3444
|
|
@@ -2956,6 +3516,22 @@ module Google
|
|
2956
3516
|
# @return [::Gapic::GenericLRO::Operation]
|
2957
3517
|
#
|
2958
3518
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3519
|
+
#
|
3520
|
+
# @example Basic example
|
3521
|
+
# require "google/cloud/compute/v1"
|
3522
|
+
#
|
3523
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3524
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
3525
|
+
#
|
3526
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3527
|
+
# request = Google::Cloud::Compute::V1::SimulateMaintenanceEventInstanceRequest.new
|
3528
|
+
#
|
3529
|
+
# # Call the simulate_maintenance_event method.
|
3530
|
+
# result = client.simulate_maintenance_event request
|
3531
|
+
#
|
3532
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
3533
|
+
# p result
|
3534
|
+
#
|
2959
3535
|
def simulate_maintenance_event request, options = nil
|
2960
3536
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
2961
3537
|
|
@@ -3033,6 +3609,22 @@ module Google
|
|
3033
3609
|
# @return [::Gapic::GenericLRO::Operation]
|
3034
3610
|
#
|
3035
3611
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3612
|
+
#
|
3613
|
+
# @example Basic example
|
3614
|
+
# require "google/cloud/compute/v1"
|
3615
|
+
#
|
3616
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3617
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
3618
|
+
#
|
3619
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3620
|
+
# request = Google::Cloud::Compute::V1::StartInstanceRequest.new
|
3621
|
+
#
|
3622
|
+
# # Call the start method.
|
3623
|
+
# result = client.start request
|
3624
|
+
#
|
3625
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
3626
|
+
# p result
|
3627
|
+
#
|
3036
3628
|
def start request, options = nil
|
3037
3629
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3038
3630
|
|
@@ -3112,6 +3704,22 @@ module Google
|
|
3112
3704
|
# @return [::Gapic::GenericLRO::Operation]
|
3113
3705
|
#
|
3114
3706
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3707
|
+
#
|
3708
|
+
# @example Basic example
|
3709
|
+
# require "google/cloud/compute/v1"
|
3710
|
+
#
|
3711
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3712
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
3713
|
+
#
|
3714
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3715
|
+
# request = Google::Cloud::Compute::V1::StartWithEncryptionKeyInstanceRequest.new
|
3716
|
+
#
|
3717
|
+
# # Call the start_with_encryption_key method.
|
3718
|
+
# result = client.start_with_encryption_key request
|
3719
|
+
#
|
3720
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
3721
|
+
# p result
|
3722
|
+
#
|
3115
3723
|
def start_with_encryption_key request, options = nil
|
3116
3724
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3117
3725
|
|
@@ -3191,6 +3799,22 @@ module Google
|
|
3191
3799
|
# @return [::Gapic::GenericLRO::Operation]
|
3192
3800
|
#
|
3193
3801
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3802
|
+
#
|
3803
|
+
# @example Basic example
|
3804
|
+
# require "google/cloud/compute/v1"
|
3805
|
+
#
|
3806
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3807
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
3808
|
+
#
|
3809
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3810
|
+
# request = Google::Cloud::Compute::V1::StopInstanceRequest.new
|
3811
|
+
#
|
3812
|
+
# # Call the stop method.
|
3813
|
+
# result = client.stop request
|
3814
|
+
#
|
3815
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
3816
|
+
# p result
|
3817
|
+
#
|
3194
3818
|
def stop request, options = nil
|
3195
3819
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3196
3820
|
|
@@ -3270,6 +3894,22 @@ module Google
|
|
3270
3894
|
# @return [::Gapic::GenericLRO::Operation]
|
3271
3895
|
#
|
3272
3896
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3897
|
+
#
|
3898
|
+
# @example Basic example
|
3899
|
+
# require "google/cloud/compute/v1"
|
3900
|
+
#
|
3901
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3902
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
3903
|
+
#
|
3904
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3905
|
+
# request = Google::Cloud::Compute::V1::SuspendInstanceRequest.new
|
3906
|
+
#
|
3907
|
+
# # Call the suspend method.
|
3908
|
+
# result = client.suspend request
|
3909
|
+
#
|
3910
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
3911
|
+
# p result
|
3912
|
+
#
|
3273
3913
|
def suspend request, options = nil
|
3274
3914
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3275
3915
|
|
@@ -3347,6 +3987,22 @@ module Google
|
|
3347
3987
|
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
3348
3988
|
#
|
3349
3989
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3990
|
+
#
|
3991
|
+
# @example Basic example
|
3992
|
+
# require "google/cloud/compute/v1"
|
3993
|
+
#
|
3994
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3995
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
3996
|
+
#
|
3997
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3998
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsInstanceRequest.new
|
3999
|
+
#
|
4000
|
+
# # Call the test_iam_permissions method.
|
4001
|
+
# result = client.test_iam_permissions request
|
4002
|
+
#
|
4003
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
4004
|
+
# p result
|
4005
|
+
#
|
3350
4006
|
def test_iam_permissions request, options = nil
|
3351
4007
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3352
4008
|
|
@@ -3423,6 +4079,22 @@ module Google
|
|
3423
4079
|
# @return [::Gapic::GenericLRO::Operation]
|
3424
4080
|
#
|
3425
4081
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
4082
|
+
#
|
4083
|
+
# @example Basic example
|
4084
|
+
# require "google/cloud/compute/v1"
|
4085
|
+
#
|
4086
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4087
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
4088
|
+
#
|
4089
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4090
|
+
# request = Google::Cloud::Compute::V1::UpdateInstanceRequest.new
|
4091
|
+
#
|
4092
|
+
# # Call the update method.
|
4093
|
+
# result = client.update request
|
4094
|
+
#
|
4095
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
4096
|
+
# p result
|
4097
|
+
#
|
3426
4098
|
def update request, options = nil
|
3427
4099
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3428
4100
|
|
@@ -3504,6 +4176,22 @@ module Google
|
|
3504
4176
|
# @return [::Gapic::GenericLRO::Operation]
|
3505
4177
|
#
|
3506
4178
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
4179
|
+
#
|
4180
|
+
# @example Basic example
|
4181
|
+
# require "google/cloud/compute/v1"
|
4182
|
+
#
|
4183
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4184
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
4185
|
+
#
|
4186
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4187
|
+
# request = Google::Cloud::Compute::V1::UpdateAccessConfigInstanceRequest.new
|
4188
|
+
#
|
4189
|
+
# # Call the update_access_config method.
|
4190
|
+
# result = client.update_access_config request
|
4191
|
+
#
|
4192
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
4193
|
+
# p result
|
4194
|
+
#
|
3507
4195
|
def update_access_config request, options = nil
|
3508
4196
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3509
4197
|
|
@@ -3583,6 +4271,22 @@ module Google
|
|
3583
4271
|
# @return [::Gapic::GenericLRO::Operation]
|
3584
4272
|
#
|
3585
4273
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
4274
|
+
#
|
4275
|
+
# @example Basic example
|
4276
|
+
# require "google/cloud/compute/v1"
|
4277
|
+
#
|
4278
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4279
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
4280
|
+
#
|
4281
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4282
|
+
# request = Google::Cloud::Compute::V1::UpdateDisplayDeviceInstanceRequest.new
|
4283
|
+
#
|
4284
|
+
# # Call the update_display_device method.
|
4285
|
+
# result = client.update_display_device request
|
4286
|
+
#
|
4287
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
4288
|
+
# p result
|
4289
|
+
#
|
3586
4290
|
def update_display_device request, options = nil
|
3587
4291
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3588
4292
|
|
@@ -3664,6 +4368,22 @@ module Google
|
|
3664
4368
|
# @return [::Gapic::GenericLRO::Operation]
|
3665
4369
|
#
|
3666
4370
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
4371
|
+
#
|
4372
|
+
# @example Basic example
|
4373
|
+
# require "google/cloud/compute/v1"
|
4374
|
+
#
|
4375
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4376
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
4377
|
+
#
|
4378
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4379
|
+
# request = Google::Cloud::Compute::V1::UpdateNetworkInterfaceInstanceRequest.new
|
4380
|
+
#
|
4381
|
+
# # Call the update_network_interface method.
|
4382
|
+
# result = client.update_network_interface request
|
4383
|
+
#
|
4384
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
4385
|
+
# p result
|
4386
|
+
#
|
3667
4387
|
def update_network_interface request, options = nil
|
3668
4388
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3669
4389
|
|
@@ -3743,6 +4463,22 @@ module Google
|
|
3743
4463
|
# @return [::Gapic::GenericLRO::Operation]
|
3744
4464
|
#
|
3745
4465
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
4466
|
+
#
|
4467
|
+
# @example Basic example
|
4468
|
+
# require "google/cloud/compute/v1"
|
4469
|
+
#
|
4470
|
+
# # Create a client object. The client can be reused for multiple calls.
|
4471
|
+
# client = Google::Cloud::Compute::V1::Instances::Rest::Client.new
|
4472
|
+
#
|
4473
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
4474
|
+
# request = Google::Cloud::Compute::V1::UpdateShieldedInstanceConfigInstanceRequest.new
|
4475
|
+
#
|
4476
|
+
# # Call the update_shielded_instance_config method.
|
4477
|
+
# result = client.update_shielded_instance_config request
|
4478
|
+
#
|
4479
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
4480
|
+
# p result
|
4481
|
+
#
|
3746
4482
|
def update_shielded_instance_config request, options = nil
|
3747
4483
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
3748
4484
|
|