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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz: '
|
3
|
+
metadata.gz: b5861b810534f07377f618b763e53625852ac655d70bc3b246d166598e389b20
|
4
|
+
data.tar.gz: '070959d00d68ed332942d4b3a155320ed7b161b5751174f3151032aec3df14d4'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f9851f6a739a8a222058c36ec334de0f59c0619a023f4b4dbc73f09be9f65f211381ad786254abb242e6a097973cb69ebfafa9be1880d01a7cc7fe11582165ef
|
7
|
+
data.tar.gz: 6312731ebc03187198f9bed881ad32f244864ff2c26e1f70509591a813dff975aa4cd9c4bf36ce5f74e4cb5037a0b30204fc150c9d5f1dcbdc3db2a4bfb3521c
|
@@ -189,6 +189,22 @@ module Google
|
|
189
189
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::AcceleratorTypesScopedList>]
|
190
190
|
#
|
191
191
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
192
|
+
#
|
193
|
+
# @example Basic example
|
194
|
+
# require "google/cloud/compute/v1"
|
195
|
+
#
|
196
|
+
# # Create a client object. The client can be reused for multiple calls.
|
197
|
+
# client = Google::Cloud::Compute::V1::AcceleratorTypes::Rest::Client.new
|
198
|
+
#
|
199
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
200
|
+
# request = Google::Cloud::Compute::V1::AggregatedListAcceleratorTypesRequest.new
|
201
|
+
#
|
202
|
+
# # Call the aggregated_list method.
|
203
|
+
# result = client.aggregated_list request
|
204
|
+
#
|
205
|
+
# # The returned object is of type Google::Cloud::Compute::V1::AcceleratorTypeAggregatedList.
|
206
|
+
# p result
|
207
|
+
#
|
192
208
|
def aggregated_list request, options = nil
|
193
209
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
194
210
|
|
@@ -256,6 +272,22 @@ module Google
|
|
256
272
|
# @return [::Google::Cloud::Compute::V1::AcceleratorType]
|
257
273
|
#
|
258
274
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
275
|
+
#
|
276
|
+
# @example Basic example
|
277
|
+
# require "google/cloud/compute/v1"
|
278
|
+
#
|
279
|
+
# # Create a client object. The client can be reused for multiple calls.
|
280
|
+
# client = Google::Cloud::Compute::V1::AcceleratorTypes::Rest::Client.new
|
281
|
+
#
|
282
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
283
|
+
# request = Google::Cloud::Compute::V1::GetAcceleratorTypeRequest.new
|
284
|
+
#
|
285
|
+
# # Call the get method.
|
286
|
+
# result = client.get request
|
287
|
+
#
|
288
|
+
# # The returned object is of type Google::Cloud::Compute::V1::AcceleratorType.
|
289
|
+
# p result
|
290
|
+
#
|
259
291
|
def get request, options = nil
|
260
292
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
261
293
|
|
@@ -330,6 +362,22 @@ module Google
|
|
330
362
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::AcceleratorType>]
|
331
363
|
#
|
332
364
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
365
|
+
#
|
366
|
+
# @example Basic example
|
367
|
+
# require "google/cloud/compute/v1"
|
368
|
+
#
|
369
|
+
# # Create a client object. The client can be reused for multiple calls.
|
370
|
+
# client = Google::Cloud::Compute::V1::AcceleratorTypes::Rest::Client.new
|
371
|
+
#
|
372
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
373
|
+
# request = Google::Cloud::Compute::V1::ListAcceleratorTypesRequest.new
|
374
|
+
#
|
375
|
+
# # Call the list method.
|
376
|
+
# result = client.list request
|
377
|
+
#
|
378
|
+
# # The returned object is of type Google::Cloud::Compute::V1::AcceleratorTypeList.
|
379
|
+
# p result
|
380
|
+
#
|
333
381
|
def list request, options = nil
|
334
382
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
335
383
|
|
@@ -209,6 +209,22 @@ module Google
|
|
209
209
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::AddressesScopedList>]
|
210
210
|
#
|
211
211
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
212
|
+
#
|
213
|
+
# @example Basic example
|
214
|
+
# require "google/cloud/compute/v1"
|
215
|
+
#
|
216
|
+
# # Create a client object. The client can be reused for multiple calls.
|
217
|
+
# client = Google::Cloud::Compute::V1::Addresses::Rest::Client.new
|
218
|
+
#
|
219
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
220
|
+
# request = Google::Cloud::Compute::V1::AggregatedListAddressesRequest.new
|
221
|
+
#
|
222
|
+
# # Call the aggregated_list method.
|
223
|
+
# result = client.aggregated_list request
|
224
|
+
#
|
225
|
+
# # The returned object is of type Google::Cloud::Compute::V1::AddressAggregatedList.
|
226
|
+
# p result
|
227
|
+
#
|
212
228
|
def aggregated_list request, options = nil
|
213
229
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
214
230
|
|
@@ -278,6 +294,22 @@ module Google
|
|
278
294
|
# @return [::Gapic::GenericLRO::Operation]
|
279
295
|
#
|
280
296
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
297
|
+
#
|
298
|
+
# @example Basic example
|
299
|
+
# require "google/cloud/compute/v1"
|
300
|
+
#
|
301
|
+
# # Create a client object. The client can be reused for multiple calls.
|
302
|
+
# client = Google::Cloud::Compute::V1::Addresses::Rest::Client.new
|
303
|
+
#
|
304
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
305
|
+
# request = Google::Cloud::Compute::V1::DeleteAddressRequest.new
|
306
|
+
#
|
307
|
+
# # Call the delete method.
|
308
|
+
# result = client.delete request
|
309
|
+
#
|
310
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
311
|
+
# p result
|
312
|
+
#
|
281
313
|
def delete request, options = nil
|
282
314
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
283
315
|
|
@@ -353,6 +385,22 @@ module Google
|
|
353
385
|
# @return [::Google::Cloud::Compute::V1::Address]
|
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::Addresses::Rest::Client.new
|
394
|
+
#
|
395
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
396
|
+
# request = Google::Cloud::Compute::V1::GetAddressRequest.new
|
397
|
+
#
|
398
|
+
# # Call the get method.
|
399
|
+
# result = client.get request
|
400
|
+
#
|
401
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Address.
|
402
|
+
# p result
|
403
|
+
#
|
356
404
|
def get request, options = nil
|
357
405
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
358
406
|
|
@@ -421,6 +469,22 @@ module Google
|
|
421
469
|
# @return [::Gapic::GenericLRO::Operation]
|
422
470
|
#
|
423
471
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
472
|
+
#
|
473
|
+
# @example Basic example
|
474
|
+
# require "google/cloud/compute/v1"
|
475
|
+
#
|
476
|
+
# # Create a client object. The client can be reused for multiple calls.
|
477
|
+
# client = Google::Cloud::Compute::V1::Addresses::Rest::Client.new
|
478
|
+
#
|
479
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
480
|
+
# request = Google::Cloud::Compute::V1::InsertAddressRequest.new
|
481
|
+
#
|
482
|
+
# # Call the insert method.
|
483
|
+
# result = client.insert request
|
484
|
+
#
|
485
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
486
|
+
# p result
|
487
|
+
#
|
424
488
|
def insert request, options = nil
|
425
489
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
426
490
|
|
@@ -504,6 +568,22 @@ module Google
|
|
504
568
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Address>]
|
505
569
|
#
|
506
570
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
571
|
+
#
|
572
|
+
# @example Basic example
|
573
|
+
# require "google/cloud/compute/v1"
|
574
|
+
#
|
575
|
+
# # Create a client object. The client can be reused for multiple calls.
|
576
|
+
# client = Google::Cloud::Compute::V1::Addresses::Rest::Client.new
|
577
|
+
#
|
578
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
579
|
+
# request = Google::Cloud::Compute::V1::ListAddressesRequest.new
|
580
|
+
#
|
581
|
+
# # Call the list method.
|
582
|
+
# result = client.list request
|
583
|
+
#
|
584
|
+
# # The returned object is of type Google::Cloud::Compute::V1::AddressList.
|
585
|
+
# p result
|
586
|
+
#
|
507
587
|
def list request, options = nil
|
508
588
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
509
589
|
|
@@ -575,6 +655,22 @@ module Google
|
|
575
655
|
# @return [::Gapic::GenericLRO::Operation]
|
576
656
|
#
|
577
657
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
658
|
+
#
|
659
|
+
# @example Basic example
|
660
|
+
# require "google/cloud/compute/v1"
|
661
|
+
#
|
662
|
+
# # Create a client object. The client can be reused for multiple calls.
|
663
|
+
# client = Google::Cloud::Compute::V1::Addresses::Rest::Client.new
|
664
|
+
#
|
665
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
666
|
+
# request = Google::Cloud::Compute::V1::MoveAddressRequest.new
|
667
|
+
#
|
668
|
+
# # Call the move method.
|
669
|
+
# result = client.move request
|
670
|
+
#
|
671
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
672
|
+
# p result
|
673
|
+
#
|
578
674
|
def move request, options = nil
|
579
675
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
580
676
|
|
@@ -654,6 +750,22 @@ module Google
|
|
654
750
|
# @return [::Gapic::GenericLRO::Operation]
|
655
751
|
#
|
656
752
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
753
|
+
#
|
754
|
+
# @example Basic example
|
755
|
+
# require "google/cloud/compute/v1"
|
756
|
+
#
|
757
|
+
# # Create a client object. The client can be reused for multiple calls.
|
758
|
+
# client = Google::Cloud::Compute::V1::Addresses::Rest::Client.new
|
759
|
+
#
|
760
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
761
|
+
# request = Google::Cloud::Compute::V1::SetLabelsAddressRequest.new
|
762
|
+
#
|
763
|
+
# # Call the set_labels method.
|
764
|
+
# result = client.set_labels request
|
765
|
+
#
|
766
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
767
|
+
# p result
|
768
|
+
#
|
657
769
|
def set_labels request, options = nil
|
658
770
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
659
771
|
|
@@ -209,6 +209,22 @@ module Google
|
|
209
209
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::AutoscalersScopedList>]
|
210
210
|
#
|
211
211
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
212
|
+
#
|
213
|
+
# @example Basic example
|
214
|
+
# require "google/cloud/compute/v1"
|
215
|
+
#
|
216
|
+
# # Create a client object. The client can be reused for multiple calls.
|
217
|
+
# client = Google::Cloud::Compute::V1::Autoscalers::Rest::Client.new
|
218
|
+
#
|
219
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
220
|
+
# request = Google::Cloud::Compute::V1::AggregatedListAutoscalersRequest.new
|
221
|
+
#
|
222
|
+
# # Call the aggregated_list method.
|
223
|
+
# result = client.aggregated_list request
|
224
|
+
#
|
225
|
+
# # The returned object is of type Google::Cloud::Compute::V1::AutoscalerAggregatedList.
|
226
|
+
# p result
|
227
|
+
#
|
212
228
|
def aggregated_list request, options = nil
|
213
229
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
214
230
|
|
@@ -278,6 +294,22 @@ module Google
|
|
278
294
|
# @return [::Gapic::GenericLRO::Operation]
|
279
295
|
#
|
280
296
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
297
|
+
#
|
298
|
+
# @example Basic example
|
299
|
+
# require "google/cloud/compute/v1"
|
300
|
+
#
|
301
|
+
# # Create a client object. The client can be reused for multiple calls.
|
302
|
+
# client = Google::Cloud::Compute::V1::Autoscalers::Rest::Client.new
|
303
|
+
#
|
304
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
305
|
+
# request = Google::Cloud::Compute::V1::DeleteAutoscalerRequest.new
|
306
|
+
#
|
307
|
+
# # Call the delete method.
|
308
|
+
# result = client.delete request
|
309
|
+
#
|
310
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
311
|
+
# p result
|
312
|
+
#
|
281
313
|
def delete request, options = nil
|
282
314
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
283
315
|
|
@@ -353,6 +385,22 @@ module Google
|
|
353
385
|
# @return [::Google::Cloud::Compute::V1::Autoscaler]
|
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::Autoscalers::Rest::Client.new
|
394
|
+
#
|
395
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
396
|
+
# request = Google::Cloud::Compute::V1::GetAutoscalerRequest.new
|
397
|
+
#
|
398
|
+
# # Call the get method.
|
399
|
+
# result = client.get request
|
400
|
+
#
|
401
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Autoscaler.
|
402
|
+
# p result
|
403
|
+
#
|
356
404
|
def get request, options = nil
|
357
405
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
358
406
|
|
@@ -421,6 +469,22 @@ module Google
|
|
421
469
|
# @return [::Gapic::GenericLRO::Operation]
|
422
470
|
#
|
423
471
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
472
|
+
#
|
473
|
+
# @example Basic example
|
474
|
+
# require "google/cloud/compute/v1"
|
475
|
+
#
|
476
|
+
# # Create a client object. The client can be reused for multiple calls.
|
477
|
+
# client = Google::Cloud::Compute::V1::Autoscalers::Rest::Client.new
|
478
|
+
#
|
479
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
480
|
+
# request = Google::Cloud::Compute::V1::InsertAutoscalerRequest.new
|
481
|
+
#
|
482
|
+
# # Call the insert method.
|
483
|
+
# result = client.insert request
|
484
|
+
#
|
485
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
486
|
+
# p result
|
487
|
+
#
|
424
488
|
def insert request, options = nil
|
425
489
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
426
490
|
|
@@ -504,6 +568,22 @@ module Google
|
|
504
568
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Autoscaler>]
|
505
569
|
#
|
506
570
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
571
|
+
#
|
572
|
+
# @example Basic example
|
573
|
+
# require "google/cloud/compute/v1"
|
574
|
+
#
|
575
|
+
# # Create a client object. The client can be reused for multiple calls.
|
576
|
+
# client = Google::Cloud::Compute::V1::Autoscalers::Rest::Client.new
|
577
|
+
#
|
578
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
579
|
+
# request = Google::Cloud::Compute::V1::ListAutoscalersRequest.new
|
580
|
+
#
|
581
|
+
# # Call the list method.
|
582
|
+
# result = client.list request
|
583
|
+
#
|
584
|
+
# # The returned object is of type Google::Cloud::Compute::V1::AutoscalerList.
|
585
|
+
# p result
|
586
|
+
#
|
507
587
|
def list request, options = nil
|
508
588
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
509
589
|
|
@@ -575,6 +655,22 @@ module Google
|
|
575
655
|
# @return [::Gapic::GenericLRO::Operation]
|
576
656
|
#
|
577
657
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
658
|
+
#
|
659
|
+
# @example Basic example
|
660
|
+
# require "google/cloud/compute/v1"
|
661
|
+
#
|
662
|
+
# # Create a client object. The client can be reused for multiple calls.
|
663
|
+
# client = Google::Cloud::Compute::V1::Autoscalers::Rest::Client.new
|
664
|
+
#
|
665
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
666
|
+
# request = Google::Cloud::Compute::V1::PatchAutoscalerRequest.new
|
667
|
+
#
|
668
|
+
# # Call the patch method.
|
669
|
+
# result = client.patch request
|
670
|
+
#
|
671
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
672
|
+
# p result
|
673
|
+
#
|
578
674
|
def patch request, options = nil
|
579
675
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
580
676
|
|
@@ -654,6 +750,22 @@ module Google
|
|
654
750
|
# @return [::Gapic::GenericLRO::Operation]
|
655
751
|
#
|
656
752
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
753
|
+
#
|
754
|
+
# @example Basic example
|
755
|
+
# require "google/cloud/compute/v1"
|
756
|
+
#
|
757
|
+
# # Create a client object. The client can be reused for multiple calls.
|
758
|
+
# client = Google::Cloud::Compute::V1::Autoscalers::Rest::Client.new
|
759
|
+
#
|
760
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
761
|
+
# request = Google::Cloud::Compute::V1::UpdateAutoscalerRequest.new
|
762
|
+
#
|
763
|
+
# # Call the update method.
|
764
|
+
# result = client.update request
|
765
|
+
#
|
766
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
767
|
+
# p result
|
768
|
+
#
|
657
769
|
def update request, options = nil
|
658
770
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
659
771
|
|
@@ -204,6 +204,22 @@ module Google
|
|
204
204
|
# @return [::Gapic::GenericLRO::Operation]
|
205
205
|
#
|
206
206
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
207
|
+
#
|
208
|
+
# @example Basic example
|
209
|
+
# require "google/cloud/compute/v1"
|
210
|
+
#
|
211
|
+
# # Create a client object. The client can be reused for multiple calls.
|
212
|
+
# client = Google::Cloud::Compute::V1::BackendBuckets::Rest::Client.new
|
213
|
+
#
|
214
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
215
|
+
# request = Google::Cloud::Compute::V1::AddSignedUrlKeyBackendBucketRequest.new
|
216
|
+
#
|
217
|
+
# # Call the add_signed_url_key method.
|
218
|
+
# result = client.add_signed_url_key request
|
219
|
+
#
|
220
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
221
|
+
# p result
|
222
|
+
#
|
207
223
|
def add_signed_url_key request, options = nil
|
208
224
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
209
225
|
|
@@ -278,6 +294,22 @@ module Google
|
|
278
294
|
# @return [::Gapic::GenericLRO::Operation]
|
279
295
|
#
|
280
296
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
297
|
+
#
|
298
|
+
# @example Basic example
|
299
|
+
# require "google/cloud/compute/v1"
|
300
|
+
#
|
301
|
+
# # Create a client object. The client can be reused for multiple calls.
|
302
|
+
# client = Google::Cloud::Compute::V1::BackendBuckets::Rest::Client.new
|
303
|
+
#
|
304
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
305
|
+
# request = Google::Cloud::Compute::V1::DeleteBackendBucketRequest.new
|
306
|
+
#
|
307
|
+
# # Call the delete method.
|
308
|
+
# result = client.delete request
|
309
|
+
#
|
310
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
311
|
+
# p result
|
312
|
+
#
|
281
313
|
def delete request, options = nil
|
282
314
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
283
315
|
|
@@ -354,6 +386,22 @@ module Google
|
|
354
386
|
# @return [::Gapic::GenericLRO::Operation]
|
355
387
|
#
|
356
388
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
389
|
+
#
|
390
|
+
# @example Basic example
|
391
|
+
# require "google/cloud/compute/v1"
|
392
|
+
#
|
393
|
+
# # Create a client object. The client can be reused for multiple calls.
|
394
|
+
# client = Google::Cloud::Compute::V1::BackendBuckets::Rest::Client.new
|
395
|
+
#
|
396
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
397
|
+
# request = Google::Cloud::Compute::V1::DeleteSignedUrlKeyBackendBucketRequest.new
|
398
|
+
#
|
399
|
+
# # Call the delete_signed_url_key method.
|
400
|
+
# result = client.delete_signed_url_key request
|
401
|
+
#
|
402
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
403
|
+
# p result
|
404
|
+
#
|
357
405
|
def delete_signed_url_key request, options = nil
|
358
406
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
359
407
|
|
@@ -426,6 +474,22 @@ module Google
|
|
426
474
|
# @return [::Google::Cloud::Compute::V1::BackendBucket]
|
427
475
|
#
|
428
476
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
477
|
+
#
|
478
|
+
# @example Basic example
|
479
|
+
# require "google/cloud/compute/v1"
|
480
|
+
#
|
481
|
+
# # Create a client object. The client can be reused for multiple calls.
|
482
|
+
# client = Google::Cloud::Compute::V1::BackendBuckets::Rest::Client.new
|
483
|
+
#
|
484
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
485
|
+
# request = Google::Cloud::Compute::V1::GetBackendBucketRequest.new
|
486
|
+
#
|
487
|
+
# # Call the get method.
|
488
|
+
# result = client.get request
|
489
|
+
#
|
490
|
+
# # The returned object is of type Google::Cloud::Compute::V1::BackendBucket.
|
491
|
+
# p result
|
492
|
+
#
|
429
493
|
def get request, options = nil
|
430
494
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
431
495
|
|
@@ -492,6 +556,22 @@ module Google
|
|
492
556
|
# @return [::Gapic::GenericLRO::Operation]
|
493
557
|
#
|
494
558
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
559
|
+
#
|
560
|
+
# @example Basic example
|
561
|
+
# require "google/cloud/compute/v1"
|
562
|
+
#
|
563
|
+
# # Create a client object. The client can be reused for multiple calls.
|
564
|
+
# client = Google::Cloud::Compute::V1::BackendBuckets::Rest::Client.new
|
565
|
+
#
|
566
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
567
|
+
# request = Google::Cloud::Compute::V1::InsertBackendBucketRequest.new
|
568
|
+
#
|
569
|
+
# # Call the insert method.
|
570
|
+
# result = client.insert request
|
571
|
+
#
|
572
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
573
|
+
# p result
|
574
|
+
#
|
495
575
|
def insert request, options = nil
|
496
576
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
497
577
|
|
@@ -572,6 +652,22 @@ module Google
|
|
572
652
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::BackendBucket>]
|
573
653
|
#
|
574
654
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
655
|
+
#
|
656
|
+
# @example Basic example
|
657
|
+
# require "google/cloud/compute/v1"
|
658
|
+
#
|
659
|
+
# # Create a client object. The client can be reused for multiple calls.
|
660
|
+
# client = Google::Cloud::Compute::V1::BackendBuckets::Rest::Client.new
|
661
|
+
#
|
662
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
663
|
+
# request = Google::Cloud::Compute::V1::ListBackendBucketsRequest.new
|
664
|
+
#
|
665
|
+
# # Call the list method.
|
666
|
+
# result = client.list request
|
667
|
+
#
|
668
|
+
# # The returned object is of type Google::Cloud::Compute::V1::BackendBucketList.
|
669
|
+
# p result
|
670
|
+
#
|
575
671
|
def list request, options = nil
|
576
672
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
577
673
|
|
@@ -641,6 +737,22 @@ module Google
|
|
641
737
|
# @return [::Gapic::GenericLRO::Operation]
|
642
738
|
#
|
643
739
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
740
|
+
#
|
741
|
+
# @example Basic example
|
742
|
+
# require "google/cloud/compute/v1"
|
743
|
+
#
|
744
|
+
# # Create a client object. The client can be reused for multiple calls.
|
745
|
+
# client = Google::Cloud::Compute::V1::BackendBuckets::Rest::Client.new
|
746
|
+
#
|
747
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
748
|
+
# request = Google::Cloud::Compute::V1::PatchBackendBucketRequest.new
|
749
|
+
#
|
750
|
+
# # Call the patch method.
|
751
|
+
# result = client.patch request
|
752
|
+
#
|
753
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
754
|
+
# p result
|
755
|
+
#
|
644
756
|
def patch request, options = nil
|
645
757
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
646
758
|
|
@@ -717,6 +829,22 @@ module Google
|
|
717
829
|
# @return [::Gapic::GenericLRO::Operation]
|
718
830
|
#
|
719
831
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
832
|
+
#
|
833
|
+
# @example Basic example
|
834
|
+
# require "google/cloud/compute/v1"
|
835
|
+
#
|
836
|
+
# # Create a client object. The client can be reused for multiple calls.
|
837
|
+
# client = Google::Cloud::Compute::V1::BackendBuckets::Rest::Client.new
|
838
|
+
#
|
839
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
840
|
+
# request = Google::Cloud::Compute::V1::SetEdgeSecurityPolicyBackendBucketRequest.new
|
841
|
+
#
|
842
|
+
# # Call the set_edge_security_policy method.
|
843
|
+
# result = client.set_edge_security_policy request
|
844
|
+
#
|
845
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
846
|
+
# p result
|
847
|
+
#
|
720
848
|
def set_edge_security_policy request, options = nil
|
721
849
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
722
850
|
|
@@ -793,6 +921,22 @@ module Google
|
|
793
921
|
# @return [::Gapic::GenericLRO::Operation]
|
794
922
|
#
|
795
923
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
924
|
+
#
|
925
|
+
# @example Basic example
|
926
|
+
# require "google/cloud/compute/v1"
|
927
|
+
#
|
928
|
+
# # Create a client object. The client can be reused for multiple calls.
|
929
|
+
# client = Google::Cloud::Compute::V1::BackendBuckets::Rest::Client.new
|
930
|
+
#
|
931
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
932
|
+
# request = Google::Cloud::Compute::V1::UpdateBackendBucketRequest.new
|
933
|
+
#
|
934
|
+
# # Call the update method.
|
935
|
+
# result = client.update request
|
936
|
+
#
|
937
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
938
|
+
# p result
|
939
|
+
#
|
796
940
|
def update request, options = nil
|
797
941
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
798
942
|
|