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
@@ -214,6 +214,22 @@ module Google
|
|
214
214
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::InstanceTemplatesScopedList>]
|
215
215
|
#
|
216
216
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
217
|
+
#
|
218
|
+
# @example Basic example
|
219
|
+
# require "google/cloud/compute/v1"
|
220
|
+
#
|
221
|
+
# # Create a client object. The client can be reused for multiple calls.
|
222
|
+
# client = Google::Cloud::Compute::V1::InstanceTemplates::Rest::Client.new
|
223
|
+
#
|
224
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
225
|
+
# request = Google::Cloud::Compute::V1::AggregatedListInstanceTemplatesRequest.new
|
226
|
+
#
|
227
|
+
# # Call the aggregated_list method.
|
228
|
+
# result = client.aggregated_list request
|
229
|
+
#
|
230
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InstanceTemplateAggregatedList.
|
231
|
+
# p result
|
232
|
+
#
|
217
233
|
def aggregated_list request, options = nil
|
218
234
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
219
235
|
|
@@ -281,6 +297,22 @@ module Google
|
|
281
297
|
# @return [::Gapic::GenericLRO::Operation]
|
282
298
|
#
|
283
299
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
300
|
+
#
|
301
|
+
# @example Basic example
|
302
|
+
# require "google/cloud/compute/v1"
|
303
|
+
#
|
304
|
+
# # Create a client object. The client can be reused for multiple calls.
|
305
|
+
# client = Google::Cloud::Compute::V1::InstanceTemplates::Rest::Client.new
|
306
|
+
#
|
307
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
308
|
+
# request = Google::Cloud::Compute::V1::DeleteInstanceTemplateRequest.new
|
309
|
+
#
|
310
|
+
# # Call the delete method.
|
311
|
+
# result = client.delete request
|
312
|
+
#
|
313
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
314
|
+
# p result
|
315
|
+
#
|
284
316
|
def delete request, options = nil
|
285
317
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
286
318
|
|
@@ -353,6 +385,22 @@ module Google
|
|
353
385
|
# @return [::Google::Cloud::Compute::V1::InstanceTemplate]
|
354
386
|
#
|
355
387
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
388
|
+
#
|
389
|
+
# @example Basic example
|
390
|
+
# require "google/cloud/compute/v1"
|
391
|
+
#
|
392
|
+
# # Create a client object. The client can be reused for multiple calls.
|
393
|
+
# client = Google::Cloud::Compute::V1::InstanceTemplates::Rest::Client.new
|
394
|
+
#
|
395
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
396
|
+
# request = Google::Cloud::Compute::V1::GetInstanceTemplateRequest.new
|
397
|
+
#
|
398
|
+
# # Call the get method.
|
399
|
+
# result = client.get request
|
400
|
+
#
|
401
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InstanceTemplate.
|
402
|
+
# p result
|
403
|
+
#
|
356
404
|
def get request, options = nil
|
357
405
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
358
406
|
|
@@ -419,6 +467,22 @@ module Google
|
|
419
467
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
420
468
|
#
|
421
469
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
470
|
+
#
|
471
|
+
# @example Basic example
|
472
|
+
# require "google/cloud/compute/v1"
|
473
|
+
#
|
474
|
+
# # Create a client object. The client can be reused for multiple calls.
|
475
|
+
# client = Google::Cloud::Compute::V1::InstanceTemplates::Rest::Client.new
|
476
|
+
#
|
477
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
478
|
+
# request = Google::Cloud::Compute::V1::GetIamPolicyInstanceTemplateRequest.new
|
479
|
+
#
|
480
|
+
# # Call the get_iam_policy method.
|
481
|
+
# result = client.get_iam_policy request
|
482
|
+
#
|
483
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
484
|
+
# p result
|
485
|
+
#
|
422
486
|
def get_iam_policy request, options = nil
|
423
487
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
424
488
|
|
@@ -485,6 +549,22 @@ module Google
|
|
485
549
|
# @return [::Gapic::GenericLRO::Operation]
|
486
550
|
#
|
487
551
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
552
|
+
#
|
553
|
+
# @example Basic example
|
554
|
+
# require "google/cloud/compute/v1"
|
555
|
+
#
|
556
|
+
# # Create a client object. The client can be reused for multiple calls.
|
557
|
+
# client = Google::Cloud::Compute::V1::InstanceTemplates::Rest::Client.new
|
558
|
+
#
|
559
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
560
|
+
# request = Google::Cloud::Compute::V1::InsertInstanceTemplateRequest.new
|
561
|
+
#
|
562
|
+
# # Call the insert method.
|
563
|
+
# result = client.insert request
|
564
|
+
#
|
565
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
566
|
+
# p result
|
567
|
+
#
|
488
568
|
def insert request, options = nil
|
489
569
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
490
570
|
|
@@ -565,6 +645,22 @@ module Google
|
|
565
645
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::InstanceTemplate>]
|
566
646
|
#
|
567
647
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
648
|
+
#
|
649
|
+
# @example Basic example
|
650
|
+
# require "google/cloud/compute/v1"
|
651
|
+
#
|
652
|
+
# # Create a client object. The client can be reused for multiple calls.
|
653
|
+
# client = Google::Cloud::Compute::V1::InstanceTemplates::Rest::Client.new
|
654
|
+
#
|
655
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
656
|
+
# request = Google::Cloud::Compute::V1::ListInstanceTemplatesRequest.new
|
657
|
+
#
|
658
|
+
# # Call the list method.
|
659
|
+
# result = client.list request
|
660
|
+
#
|
661
|
+
# # The returned object is of type Google::Cloud::Compute::V1::InstanceTemplateList.
|
662
|
+
# p result
|
663
|
+
#
|
568
664
|
def list request, options = nil
|
569
665
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
570
666
|
|
@@ -632,6 +728,22 @@ module Google
|
|
632
728
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
633
729
|
#
|
634
730
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
731
|
+
#
|
732
|
+
# @example Basic example
|
733
|
+
# require "google/cloud/compute/v1"
|
734
|
+
#
|
735
|
+
# # Create a client object. The client can be reused for multiple calls.
|
736
|
+
# client = Google::Cloud::Compute::V1::InstanceTemplates::Rest::Client.new
|
737
|
+
#
|
738
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
739
|
+
# request = Google::Cloud::Compute::V1::SetIamPolicyInstanceTemplateRequest.new
|
740
|
+
#
|
741
|
+
# # Call the set_iam_policy method.
|
742
|
+
# result = client.set_iam_policy request
|
743
|
+
#
|
744
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
745
|
+
# p result
|
746
|
+
#
|
635
747
|
def set_iam_policy request, options = nil
|
636
748
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
637
749
|
|
@@ -698,6 +810,22 @@ module Google
|
|
698
810
|
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
699
811
|
#
|
700
812
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
813
|
+
#
|
814
|
+
# @example Basic example
|
815
|
+
# require "google/cloud/compute/v1"
|
816
|
+
#
|
817
|
+
# # Create a client object. The client can be reused for multiple calls.
|
818
|
+
# client = Google::Cloud::Compute::V1::InstanceTemplates::Rest::Client.new
|
819
|
+
#
|
820
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
821
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsInstanceTemplateRequest.new
|
822
|
+
#
|
823
|
+
# # Call the test_iam_permissions method.
|
824
|
+
# result = client.test_iam_permissions request
|
825
|
+
#
|
826
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
827
|
+
# p result
|
828
|
+
#
|
701
829
|
def test_iam_permissions request, options = nil
|
702
830
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
703
831
|
|