google-cloud-compute-v1 2.4.0 → 2.6.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 +52 -3
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/autoscalers/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/backend_buckets/rest/client.rb +421 -1
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +182 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +420 -3
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +120 -0
- data/lib/google/cloud/compute/v1/compute_pb.rb +79 -1
- data/lib/google/cloud/compute/v1/disk_types/rest/client.rb +52 -3
- data/lib/google/cloud/compute/v1/disks/rest/client.rb +292 -3
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/firewall_policies/rest/client.rb +289 -1
- data/lib/google/cloud/compute/v1/firewalls/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/client.rb +132 -3
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/client.rb +114 -2
- data/lib/google/cloud/compute/v1/global_operations/rest/client.rb +84 -3
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/client.rb +49 -1
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/client.rb +81 -1
- data/lib/google/cloud/compute/v1/health_checks/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/image_family_views/rest/client.rb +16 -0
- data/lib/google/cloud/compute/v1/images/rest/client.rb +177 -1
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +327 -6
- data/lib/google/cloud/compute/v1/instance_groups/rest/client.rb +149 -4
- data/lib/google/cloud/compute/v1/instance_templates/rest/client.rb +132 -3
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +845 -4
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1/interconnect_remote_locations/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +206 -2
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +60 -0
- data/lib/google/cloud/compute/v1/license_codes/rest/client.rb +32 -0
- data/lib/google/cloud/compute/v1/licenses/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/machine_images/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/machine_types/rest/client.rb +52 -3
- data/lib/google/cloud/compute/v1/network_attachments/rest/client.rb +236 -3
- data/lib/google/cloud/compute/v1/network_attachments/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/client.rb +83 -2
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/client.rb +149 -4
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/client.rb +257 -1
- data/lib/google/cloud/compute/v1/networks/rest/client.rb +178 -2
- data/lib/google/cloud/compute/v1/node_groups/rest/client.rb +229 -4
- data/lib/google/cloud/compute/v1/node_templates/rest/client.rb +132 -3
- data/lib/google/cloud/compute/v1/node_types/rest/client.rb +52 -3
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/projects/rest/client.rb +210 -2
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/client.rb +282 -4
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +120 -0
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/client.rb +304 -3
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +122 -0
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +445 -1
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +184 -0
- data/lib/google/cloud/compute/v1/region_commitments/rest/client.rb +84 -3
- data/lib/google/cloud/compute/v1/region_disk_types/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1/region_disks/rest/client.rb +273 -1
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/client.rb +81 -1
- data/lib/google/cloud/compute/v1/region_health_checks/rest/client.rb +97 -1
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +308 -4
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/client.rb +66 -2
- data/lib/google/cloud/compute/v1/region_instance_templates/rest/client.rb +65 -1
- 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 +378 -4
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +185 -0
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/client.rb +273 -1
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_operations/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_security_policies/rest/client.rb +497 -5
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +246 -0
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +98 -2
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/client.rb +81 -1
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/region_url_maps/rest/client.rb +113 -1
- data/lib/google/cloud/compute/v1/regions/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1/reservations/rest/client.rb +164 -3
- data/lib/google/cloud/compute/v1/resource_policies/rest/client.rb +148 -3
- data/lib/google/cloud/compute/v1/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/routers/rest/client.rb +261 -4
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +61 -0
- data/lib/google/cloud/compute/v1/routes/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +203 -6
- data/lib/google/cloud/compute/v1/service_attachments/rest/client.rb +148 -3
- data/lib/google/cloud/compute/v1/snapshot_settings_service/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/client.rb +480 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest/service_stub.rb +167 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service/rest.rb +51 -0
- data/lib/google/cloud/compute/v1/snapshot_settings_service.rb +47 -0
- data/lib/google/cloud/compute/v1/snapshots/rest/client.rb +129 -1
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/client.rb +84 -3
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +117 -4
- data/lib/google/cloud/compute/v1/subnetworks/rest/client.rb +197 -4
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/client.rb +81 -1
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/client.rb +180 -3
- data/lib/google/cloud/compute/v1/target_instances/rest/client.rb +188 -3
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/target_pools/rest/client.rb +284 -3
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +62 -0
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/client.rb +145 -1
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/client.rb +116 -3
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +100 -3
- data/lib/google/cloud/compute/v1/url_maps/rest/client.rb +148 -3
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/client.rb +132 -3
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +100 -3
- data/lib/google/cloud/compute/v1/zone_operations/rest/client.rb +65 -1
- data/lib/google/cloud/compute/v1/zones/rest/client.rb +33 -1
- data/lib/google/cloud/compute/v1.rb +1 -0
- data/proto_docs/google/api/client.rb +13 -0
- data/proto_docs/google/api/field_behavior.rb +14 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +1654 -196
- data/proto_docs/google/protobuf/any.rb +144 -0
- metadata +11 -5
@@ -225,6 +225,22 @@ module Google
|
|
225
225
|
# @return [::Gapic::GenericLRO::Operation]
|
226
226
|
#
|
227
227
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
228
|
+
#
|
229
|
+
# @example Basic example
|
230
|
+
# require "google/cloud/compute/v1"
|
231
|
+
#
|
232
|
+
# # Create a client object. The client can be reused for multiple calls.
|
233
|
+
# client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
|
234
|
+
#
|
235
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
236
|
+
# request = Google::Cloud::Compute::V1::AddResourcePoliciesRegionDiskRequest.new
|
237
|
+
#
|
238
|
+
# # Call the add_resource_policies method.
|
239
|
+
# result = client.add_resource_policies request
|
240
|
+
#
|
241
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
242
|
+
# p result
|
243
|
+
#
|
228
244
|
def add_resource_policies request, options = nil
|
229
245
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
230
246
|
|
@@ -302,6 +318,22 @@ module Google
|
|
302
318
|
# @return [::Gapic::GenericLRO::Operation]
|
303
319
|
#
|
304
320
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
321
|
+
#
|
322
|
+
# @example Basic example
|
323
|
+
# require "google/cloud/compute/v1"
|
324
|
+
#
|
325
|
+
# # Create a client object. The client can be reused for multiple calls.
|
326
|
+
# client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
|
327
|
+
#
|
328
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
329
|
+
# request = Google::Cloud::Compute::V1::BulkInsertRegionDiskRequest.new
|
330
|
+
#
|
331
|
+
# # Call the bulk_insert method.
|
332
|
+
# result = client.bulk_insert request
|
333
|
+
#
|
334
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
335
|
+
# p result
|
336
|
+
#
|
305
337
|
def bulk_insert request, options = nil
|
306
338
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
307
339
|
|
@@ -381,6 +413,22 @@ module Google
|
|
381
413
|
# @return [::Gapic::GenericLRO::Operation]
|
382
414
|
#
|
383
415
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
416
|
+
#
|
417
|
+
# @example Basic example
|
418
|
+
# require "google/cloud/compute/v1"
|
419
|
+
#
|
420
|
+
# # Create a client object. The client can be reused for multiple calls.
|
421
|
+
# client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
|
422
|
+
#
|
423
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
424
|
+
# request = Google::Cloud::Compute::V1::CreateSnapshotRegionDiskRequest.new
|
425
|
+
#
|
426
|
+
# # Call the create_snapshot method.
|
427
|
+
# result = client.create_snapshot request
|
428
|
+
#
|
429
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
430
|
+
# p result
|
431
|
+
#
|
384
432
|
def create_snapshot request, options = nil
|
385
433
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
386
434
|
|
@@ -458,6 +506,22 @@ module Google
|
|
458
506
|
# @return [::Gapic::GenericLRO::Operation]
|
459
507
|
#
|
460
508
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
509
|
+
#
|
510
|
+
# @example Basic example
|
511
|
+
# require "google/cloud/compute/v1"
|
512
|
+
#
|
513
|
+
# # Create a client object. The client can be reused for multiple calls.
|
514
|
+
# client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
|
515
|
+
#
|
516
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
517
|
+
# request = Google::Cloud::Compute::V1::DeleteRegionDiskRequest.new
|
518
|
+
#
|
519
|
+
# # Call the delete method.
|
520
|
+
# result = client.delete request
|
521
|
+
#
|
522
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
523
|
+
# p result
|
524
|
+
#
|
461
525
|
def delete request, options = nil
|
462
526
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
463
527
|
|
@@ -533,6 +597,22 @@ module Google
|
|
533
597
|
# @return [::Google::Cloud::Compute::V1::Disk]
|
534
598
|
#
|
535
599
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
600
|
+
#
|
601
|
+
# @example Basic example
|
602
|
+
# require "google/cloud/compute/v1"
|
603
|
+
#
|
604
|
+
# # Create a client object. The client can be reused for multiple calls.
|
605
|
+
# client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
|
606
|
+
#
|
607
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
608
|
+
# request = Google::Cloud::Compute::V1::GetRegionDiskRequest.new
|
609
|
+
#
|
610
|
+
# # Call the get method.
|
611
|
+
# result = client.get request
|
612
|
+
#
|
613
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Disk.
|
614
|
+
# p result
|
615
|
+
#
|
536
616
|
def get request, options = nil
|
537
617
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
538
618
|
|
@@ -601,6 +681,22 @@ module Google
|
|
601
681
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
602
682
|
#
|
603
683
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
684
|
+
#
|
685
|
+
# @example Basic example
|
686
|
+
# require "google/cloud/compute/v1"
|
687
|
+
#
|
688
|
+
# # Create a client object. The client can be reused for multiple calls.
|
689
|
+
# client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
|
690
|
+
#
|
691
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
692
|
+
# request = Google::Cloud::Compute::V1::GetIamPolicyRegionDiskRequest.new
|
693
|
+
#
|
694
|
+
# # Call the get_iam_policy method.
|
695
|
+
# result = client.get_iam_policy request
|
696
|
+
#
|
697
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
698
|
+
# p result
|
699
|
+
#
|
604
700
|
def get_iam_policy request, options = nil
|
605
701
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
606
702
|
|
@@ -671,6 +767,22 @@ module Google
|
|
671
767
|
# @return [::Gapic::GenericLRO::Operation]
|
672
768
|
#
|
673
769
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
770
|
+
#
|
771
|
+
# @example Basic example
|
772
|
+
# require "google/cloud/compute/v1"
|
773
|
+
#
|
774
|
+
# # Create a client object. The client can be reused for multiple calls.
|
775
|
+
# client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
|
776
|
+
#
|
777
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
778
|
+
# request = Google::Cloud::Compute::V1::InsertRegionDiskRequest.new
|
779
|
+
#
|
780
|
+
# # Call the insert method.
|
781
|
+
# result = client.insert request
|
782
|
+
#
|
783
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
784
|
+
# p result
|
785
|
+
#
|
674
786
|
def insert request, options = nil
|
675
787
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
676
788
|
|
@@ -734,7 +846,7 @@ module Google
|
|
734
846
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
735
847
|
#
|
736
848
|
# @param filter [::String]
|
737
|
-
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The
|
849
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
|
738
850
|
# @param max_results [::Integer]
|
739
851
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
740
852
|
# @param order_by [::String]
|
@@ -754,6 +866,22 @@ module Google
|
|
754
866
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Disk>]
|
755
867
|
#
|
756
868
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
869
|
+
#
|
870
|
+
# @example Basic example
|
871
|
+
# require "google/cloud/compute/v1"
|
872
|
+
#
|
873
|
+
# # Create a client object. The client can be reused for multiple calls.
|
874
|
+
# client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
|
875
|
+
#
|
876
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
877
|
+
# request = Google::Cloud::Compute::V1::ListRegionDisksRequest.new
|
878
|
+
#
|
879
|
+
# # Call the list method.
|
880
|
+
# result = client.list request
|
881
|
+
#
|
882
|
+
# # The returned object is of type Google::Cloud::Compute::V1::DiskList.
|
883
|
+
# p result
|
884
|
+
#
|
757
885
|
def list request, options = nil
|
758
886
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
759
887
|
|
@@ -825,6 +953,22 @@ module Google
|
|
825
953
|
# @return [::Gapic::GenericLRO::Operation]
|
826
954
|
#
|
827
955
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
956
|
+
#
|
957
|
+
# @example Basic example
|
958
|
+
# require "google/cloud/compute/v1"
|
959
|
+
#
|
960
|
+
# # Create a client object. The client can be reused for multiple calls.
|
961
|
+
# client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
|
962
|
+
#
|
963
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
964
|
+
# request = Google::Cloud::Compute::V1::RemoveResourcePoliciesRegionDiskRequest.new
|
965
|
+
#
|
966
|
+
# # Call the remove_resource_policies method.
|
967
|
+
# result = client.remove_resource_policies request
|
968
|
+
#
|
969
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
970
|
+
# p result
|
971
|
+
#
|
828
972
|
def remove_resource_policies request, options = nil
|
829
973
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
830
974
|
|
@@ -904,6 +1048,22 @@ module Google
|
|
904
1048
|
# @return [::Gapic::GenericLRO::Operation]
|
905
1049
|
#
|
906
1050
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1051
|
+
#
|
1052
|
+
# @example Basic example
|
1053
|
+
# require "google/cloud/compute/v1"
|
1054
|
+
#
|
1055
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1056
|
+
# client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
|
1057
|
+
#
|
1058
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1059
|
+
# request = Google::Cloud::Compute::V1::ResizeRegionDiskRequest.new
|
1060
|
+
#
|
1061
|
+
# # Call the resize method.
|
1062
|
+
# result = client.resize request
|
1063
|
+
#
|
1064
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1065
|
+
# p result
|
1066
|
+
#
|
907
1067
|
def resize request, options = nil
|
908
1068
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
909
1069
|
|
@@ -981,6 +1141,22 @@ module Google
|
|
981
1141
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
982
1142
|
#
|
983
1143
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1144
|
+
#
|
1145
|
+
# @example Basic example
|
1146
|
+
# require "google/cloud/compute/v1"
|
1147
|
+
#
|
1148
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1149
|
+
# client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
|
1150
|
+
#
|
1151
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1152
|
+
# request = Google::Cloud::Compute::V1::SetIamPolicyRegionDiskRequest.new
|
1153
|
+
#
|
1154
|
+
# # Call the set_iam_policy method.
|
1155
|
+
# result = client.set_iam_policy request
|
1156
|
+
#
|
1157
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
1158
|
+
# p result
|
1159
|
+
#
|
984
1160
|
def set_iam_policy request, options = nil
|
985
1161
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
986
1162
|
|
@@ -1051,6 +1227,22 @@ module Google
|
|
1051
1227
|
# @return [::Gapic::GenericLRO::Operation]
|
1052
1228
|
#
|
1053
1229
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1230
|
+
#
|
1231
|
+
# @example Basic example
|
1232
|
+
# require "google/cloud/compute/v1"
|
1233
|
+
#
|
1234
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1235
|
+
# client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
|
1236
|
+
#
|
1237
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1238
|
+
# request = Google::Cloud::Compute::V1::SetLabelsRegionDiskRequest.new
|
1239
|
+
#
|
1240
|
+
# # Call the set_labels method.
|
1241
|
+
# result = client.set_labels request
|
1242
|
+
#
|
1243
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1244
|
+
# p result
|
1245
|
+
#
|
1054
1246
|
def set_labels request, options = nil
|
1055
1247
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1056
1248
|
|
@@ -1130,6 +1322,22 @@ module Google
|
|
1130
1322
|
# @return [::Gapic::GenericLRO::Operation]
|
1131
1323
|
#
|
1132
1324
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1325
|
+
#
|
1326
|
+
# @example Basic example
|
1327
|
+
# require "google/cloud/compute/v1"
|
1328
|
+
#
|
1329
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1330
|
+
# client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
|
1331
|
+
#
|
1332
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1333
|
+
# request = Google::Cloud::Compute::V1::StartAsyncReplicationRegionDiskRequest.new
|
1334
|
+
#
|
1335
|
+
# # Call the start_async_replication method.
|
1336
|
+
# result = client.start_async_replication request
|
1337
|
+
#
|
1338
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1339
|
+
# p result
|
1340
|
+
#
|
1133
1341
|
def start_async_replication request, options = nil
|
1134
1342
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1135
1343
|
|
@@ -1207,6 +1415,22 @@ module Google
|
|
1207
1415
|
# @return [::Gapic::GenericLRO::Operation]
|
1208
1416
|
#
|
1209
1417
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1418
|
+
#
|
1419
|
+
# @example Basic example
|
1420
|
+
# require "google/cloud/compute/v1"
|
1421
|
+
#
|
1422
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1423
|
+
# client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
|
1424
|
+
#
|
1425
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1426
|
+
# request = Google::Cloud::Compute::V1::StopAsyncReplicationRegionDiskRequest.new
|
1427
|
+
#
|
1428
|
+
# # Call the stop_async_replication method.
|
1429
|
+
# result = client.stop_async_replication request
|
1430
|
+
#
|
1431
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1432
|
+
# p result
|
1433
|
+
#
|
1210
1434
|
def stop_async_replication request, options = nil
|
1211
1435
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1212
1436
|
|
@@ -1284,6 +1508,22 @@ module Google
|
|
1284
1508
|
# @return [::Gapic::GenericLRO::Operation]
|
1285
1509
|
#
|
1286
1510
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1511
|
+
#
|
1512
|
+
# @example Basic example
|
1513
|
+
# require "google/cloud/compute/v1"
|
1514
|
+
#
|
1515
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1516
|
+
# client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
|
1517
|
+
#
|
1518
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1519
|
+
# request = Google::Cloud::Compute::V1::StopGroupAsyncReplicationRegionDiskRequest.new
|
1520
|
+
#
|
1521
|
+
# # Call the stop_group_async_replication method.
|
1522
|
+
# result = client.stop_group_async_replication request
|
1523
|
+
#
|
1524
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1525
|
+
# p result
|
1526
|
+
#
|
1287
1527
|
def stop_group_async_replication request, options = nil
|
1288
1528
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1289
1529
|
|
@@ -1361,6 +1601,22 @@ module Google
|
|
1361
1601
|
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
1362
1602
|
#
|
1363
1603
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1604
|
+
#
|
1605
|
+
# @example Basic example
|
1606
|
+
# require "google/cloud/compute/v1"
|
1607
|
+
#
|
1608
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1609
|
+
# client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
|
1610
|
+
#
|
1611
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1612
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsRegionDiskRequest.new
|
1613
|
+
#
|
1614
|
+
# # Call the test_iam_permissions method.
|
1615
|
+
# result = client.test_iam_permissions request
|
1616
|
+
#
|
1617
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
1618
|
+
# p result
|
1619
|
+
#
|
1364
1620
|
def test_iam_permissions request, options = nil
|
1365
1621
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1366
1622
|
|
@@ -1434,6 +1690,22 @@ module Google
|
|
1434
1690
|
# @return [::Gapic::GenericLRO::Operation]
|
1435
1691
|
#
|
1436
1692
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1693
|
+
#
|
1694
|
+
# @example Basic example
|
1695
|
+
# require "google/cloud/compute/v1"
|
1696
|
+
#
|
1697
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1698
|
+
# client = Google::Cloud::Compute::V1::RegionDisks::Rest::Client.new
|
1699
|
+
#
|
1700
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1701
|
+
# request = Google::Cloud::Compute::V1::UpdateRegionDiskRequest.new
|
1702
|
+
#
|
1703
|
+
# # Call the update method.
|
1704
|
+
# result = client.update request
|
1705
|
+
#
|
1706
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1707
|
+
# p result
|
1708
|
+
#
|
1437
1709
|
def update request, options = nil
|
1438
1710
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1439
1711
|
|
@@ -196,6 +196,22 @@ module Google
|
|
196
196
|
# @return [::Gapic::GenericLRO::Operation]
|
197
197
|
#
|
198
198
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
199
|
+
#
|
200
|
+
# @example Basic example
|
201
|
+
# require "google/cloud/compute/v1"
|
202
|
+
#
|
203
|
+
# # Create a client object. The client can be reused for multiple calls.
|
204
|
+
# client = Google::Cloud::Compute::V1::RegionHealthCheckServices::Rest::Client.new
|
205
|
+
#
|
206
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
207
|
+
# request = Google::Cloud::Compute::V1::DeleteRegionHealthCheckServiceRequest.new
|
208
|
+
#
|
209
|
+
# # Call the delete method.
|
210
|
+
# result = client.delete request
|
211
|
+
#
|
212
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
213
|
+
# p result
|
214
|
+
#
|
199
215
|
def delete request, options = nil
|
200
216
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
201
217
|
|
@@ -271,6 +287,22 @@ module Google
|
|
271
287
|
# @return [::Google::Cloud::Compute::V1::HealthCheckService]
|
272
288
|
#
|
273
289
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
290
|
+
#
|
291
|
+
# @example Basic example
|
292
|
+
# require "google/cloud/compute/v1"
|
293
|
+
#
|
294
|
+
# # Create a client object. The client can be reused for multiple calls.
|
295
|
+
# client = Google::Cloud::Compute::V1::RegionHealthCheckServices::Rest::Client.new
|
296
|
+
#
|
297
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
298
|
+
# request = Google::Cloud::Compute::V1::GetRegionHealthCheckServiceRequest.new
|
299
|
+
#
|
300
|
+
# # Call the get method.
|
301
|
+
# result = client.get request
|
302
|
+
#
|
303
|
+
# # The returned object is of type Google::Cloud::Compute::V1::HealthCheckService.
|
304
|
+
# p result
|
305
|
+
#
|
274
306
|
def get request, options = nil
|
275
307
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
276
308
|
|
@@ -339,6 +371,22 @@ module Google
|
|
339
371
|
# @return [::Gapic::GenericLRO::Operation]
|
340
372
|
#
|
341
373
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
374
|
+
#
|
375
|
+
# @example Basic example
|
376
|
+
# require "google/cloud/compute/v1"
|
377
|
+
#
|
378
|
+
# # Create a client object. The client can be reused for multiple calls.
|
379
|
+
# client = Google::Cloud::Compute::V1::RegionHealthCheckServices::Rest::Client.new
|
380
|
+
#
|
381
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
382
|
+
# request = Google::Cloud::Compute::V1::InsertRegionHealthCheckServiceRequest.new
|
383
|
+
#
|
384
|
+
# # Call the insert method.
|
385
|
+
# result = client.insert request
|
386
|
+
#
|
387
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
388
|
+
# p result
|
389
|
+
#
|
342
390
|
def insert request, options = nil
|
343
391
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
344
392
|
|
@@ -402,7 +450,7 @@ module Google
|
|
402
450
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
403
451
|
#
|
404
452
|
# @param filter [::String]
|
405
|
-
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The
|
453
|
+
# A filter expression that filters resources listed in the response. Most Compute resources support two types of filter expressions: expressions that support regular expressions and expressions that follow API improvement proposal AIP-160. These two types of filter expressions cannot be mixed in one request. If you want to use AIP-160, your expression must specify the field name, an operator, and the value that you want to use for filtering. The value must be a string, a number, or a boolean. The operator must be either `=`, `!=`, `>`, `<`, `<=`, `>=` or `:`. For example, if you are filtering Compute Engine instances, you can exclude instances named `example-instance` by specifying `name != example-instance`. The `:*` comparison can be used to test whether a key has been defined. For example, to find all objects with `owner` label use: ``` labels.owner:* ``` You can also filter nested fields. For example, you could specify `scheduling.automaticRestart = false` to include instances only if they are not scheduled for automatic restarts. You can use filtering on nested fields to filter based on resource labels. To filter on multiple expressions, provide each separate expression within parentheses. For example: ``` (scheduling.automaticRestart = true) (cpuPlatform = "Intel Skylake") ``` By default, each expression is an `AND` expression. However, you can include `AND` and `OR` expressions explicitly. For example: ``` (cpuPlatform = "Intel Skylake") OR (cpuPlatform = "Intel Broadwell") AND (scheduling.automaticRestart = true) ``` If you want to use a regular expression, use the `eq` (equal) or `ne` (not equal) operator against a single un-parenthesized expression with or without quotes or against multiple parenthesized expressions. Examples: `fieldname eq unquoted literal` `fieldname eq 'single quoted literal'` `fieldname eq "double quoted literal"` `(fieldname1 eq literal) (fieldname2 ne "literal")` The literal value is interpreted as a regular expression using Google RE2 library syntax. The literal value must match the entire field. For example, to filter for instances that do not end with name "instance", you would use `name ne .*instance`. You cannot combine constraints on multiple fields using regular expressions.
|
406
454
|
# @param max_results [::Integer]
|
407
455
|
# The maximum number of results per page that should be returned. If the number of available results is larger than `maxResults`, Compute Engine returns a `nextPageToken` that can be used to get the next page of results in subsequent list requests. Acceptable values are `0` to `500`, inclusive. (Default: `500`)
|
408
456
|
# @param order_by [::String]
|
@@ -422,6 +470,22 @@ module Google
|
|
422
470
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::HealthCheckService>]
|
423
471
|
#
|
424
472
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
473
|
+
#
|
474
|
+
# @example Basic example
|
475
|
+
# require "google/cloud/compute/v1"
|
476
|
+
#
|
477
|
+
# # Create a client object. The client can be reused for multiple calls.
|
478
|
+
# client = Google::Cloud::Compute::V1::RegionHealthCheckServices::Rest::Client.new
|
479
|
+
#
|
480
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
481
|
+
# request = Google::Cloud::Compute::V1::ListRegionHealthCheckServicesRequest.new
|
482
|
+
#
|
483
|
+
# # Call the list method.
|
484
|
+
# result = client.list request
|
485
|
+
#
|
486
|
+
# # The returned object is of type Google::Cloud::Compute::V1::HealthCheckServicesList.
|
487
|
+
# p result
|
488
|
+
#
|
425
489
|
def list request, options = nil
|
426
490
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
427
491
|
|
@@ -493,6 +557,22 @@ module Google
|
|
493
557
|
# @return [::Gapic::GenericLRO::Operation]
|
494
558
|
#
|
495
559
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
560
|
+
#
|
561
|
+
# @example Basic example
|
562
|
+
# require "google/cloud/compute/v1"
|
563
|
+
#
|
564
|
+
# # Create a client object. The client can be reused for multiple calls.
|
565
|
+
# client = Google::Cloud::Compute::V1::RegionHealthCheckServices::Rest::Client.new
|
566
|
+
#
|
567
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
568
|
+
# request = Google::Cloud::Compute::V1::PatchRegionHealthCheckServiceRequest.new
|
569
|
+
#
|
570
|
+
# # Call the patch method.
|
571
|
+
# result = client.patch request
|
572
|
+
#
|
573
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
574
|
+
# p result
|
575
|
+
#
|
496
576
|
def patch request, options = nil
|
497
577
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
498
578
|
|