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
@@ -211,6 +211,22 @@ module Google
|
|
211
211
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::ForwardingRulesScopedList>]
|
212
212
|
#
|
213
213
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
214
|
+
#
|
215
|
+
# @example Basic example
|
216
|
+
# require "google/cloud/compute/v1"
|
217
|
+
#
|
218
|
+
# # Create a client object. The client can be reused for multiple calls.
|
219
|
+
# client = Google::Cloud::Compute::V1::ForwardingRules::Rest::Client.new
|
220
|
+
#
|
221
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
222
|
+
# request = Google::Cloud::Compute::V1::AggregatedListForwardingRulesRequest.new
|
223
|
+
#
|
224
|
+
# # Call the aggregated_list method.
|
225
|
+
# result = client.aggregated_list request
|
226
|
+
#
|
227
|
+
# # The returned object is of type Google::Cloud::Compute::V1::ForwardingRuleAggregatedList.
|
228
|
+
# p result
|
229
|
+
#
|
214
230
|
def aggregated_list request, options = nil
|
215
231
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
216
232
|
|
@@ -280,6 +296,22 @@ module Google
|
|
280
296
|
# @return [::Gapic::GenericLRO::Operation]
|
281
297
|
#
|
282
298
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
299
|
+
#
|
300
|
+
# @example Basic example
|
301
|
+
# require "google/cloud/compute/v1"
|
302
|
+
#
|
303
|
+
# # Create a client object. The client can be reused for multiple calls.
|
304
|
+
# client = Google::Cloud::Compute::V1::ForwardingRules::Rest::Client.new
|
305
|
+
#
|
306
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
307
|
+
# request = Google::Cloud::Compute::V1::DeleteForwardingRuleRequest.new
|
308
|
+
#
|
309
|
+
# # Call the delete method.
|
310
|
+
# result = client.delete request
|
311
|
+
#
|
312
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
313
|
+
# p result
|
314
|
+
#
|
283
315
|
def delete request, options = nil
|
284
316
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
285
317
|
|
@@ -355,6 +387,22 @@ module Google
|
|
355
387
|
# @return [::Google::Cloud::Compute::V1::ForwardingRule]
|
356
388
|
#
|
357
389
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
390
|
+
#
|
391
|
+
# @example Basic example
|
392
|
+
# require "google/cloud/compute/v1"
|
393
|
+
#
|
394
|
+
# # Create a client object. The client can be reused for multiple calls.
|
395
|
+
# client = Google::Cloud::Compute::V1::ForwardingRules::Rest::Client.new
|
396
|
+
#
|
397
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
398
|
+
# request = Google::Cloud::Compute::V1::GetForwardingRuleRequest.new
|
399
|
+
#
|
400
|
+
# # Call the get method.
|
401
|
+
# result = client.get request
|
402
|
+
#
|
403
|
+
# # The returned object is of type Google::Cloud::Compute::V1::ForwardingRule.
|
404
|
+
# p result
|
405
|
+
#
|
358
406
|
def get request, options = nil
|
359
407
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
360
408
|
|
@@ -423,6 +471,22 @@ module Google
|
|
423
471
|
# @return [::Gapic::GenericLRO::Operation]
|
424
472
|
#
|
425
473
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
474
|
+
#
|
475
|
+
# @example Basic example
|
476
|
+
# require "google/cloud/compute/v1"
|
477
|
+
#
|
478
|
+
# # Create a client object. The client can be reused for multiple calls.
|
479
|
+
# client = Google::Cloud::Compute::V1::ForwardingRules::Rest::Client.new
|
480
|
+
#
|
481
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
482
|
+
# request = Google::Cloud::Compute::V1::InsertForwardingRuleRequest.new
|
483
|
+
#
|
484
|
+
# # Call the insert method.
|
485
|
+
# result = client.insert request
|
486
|
+
#
|
487
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
488
|
+
# p result
|
489
|
+
#
|
426
490
|
def insert request, options = nil
|
427
491
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
428
492
|
|
@@ -506,6 +570,22 @@ module Google
|
|
506
570
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::ForwardingRule>]
|
507
571
|
#
|
508
572
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
573
|
+
#
|
574
|
+
# @example Basic example
|
575
|
+
# require "google/cloud/compute/v1"
|
576
|
+
#
|
577
|
+
# # Create a client object. The client can be reused for multiple calls.
|
578
|
+
# client = Google::Cloud::Compute::V1::ForwardingRules::Rest::Client.new
|
579
|
+
#
|
580
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
581
|
+
# request = Google::Cloud::Compute::V1::ListForwardingRulesRequest.new
|
582
|
+
#
|
583
|
+
# # Call the list method.
|
584
|
+
# result = client.list request
|
585
|
+
#
|
586
|
+
# # The returned object is of type Google::Cloud::Compute::V1::ForwardingRuleList.
|
587
|
+
# p result
|
588
|
+
#
|
509
589
|
def list request, options = nil
|
510
590
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
511
591
|
|
@@ -577,6 +657,22 @@ module Google
|
|
577
657
|
# @return [::Gapic::GenericLRO::Operation]
|
578
658
|
#
|
579
659
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
660
|
+
#
|
661
|
+
# @example Basic example
|
662
|
+
# require "google/cloud/compute/v1"
|
663
|
+
#
|
664
|
+
# # Create a client object. The client can be reused for multiple calls.
|
665
|
+
# client = Google::Cloud::Compute::V1::ForwardingRules::Rest::Client.new
|
666
|
+
#
|
667
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
668
|
+
# request = Google::Cloud::Compute::V1::PatchForwardingRuleRequest.new
|
669
|
+
#
|
670
|
+
# # Call the patch method.
|
671
|
+
# result = client.patch request
|
672
|
+
#
|
673
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
674
|
+
# p result
|
675
|
+
#
|
580
676
|
def patch request, options = nil
|
581
677
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
582
678
|
|
@@ -656,6 +752,22 @@ module Google
|
|
656
752
|
# @return [::Gapic::GenericLRO::Operation]
|
657
753
|
#
|
658
754
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
755
|
+
#
|
756
|
+
# @example Basic example
|
757
|
+
# require "google/cloud/compute/v1"
|
758
|
+
#
|
759
|
+
# # Create a client object. The client can be reused for multiple calls.
|
760
|
+
# client = Google::Cloud::Compute::V1::ForwardingRules::Rest::Client.new
|
761
|
+
#
|
762
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
763
|
+
# request = Google::Cloud::Compute::V1::SetLabelsForwardingRuleRequest.new
|
764
|
+
#
|
765
|
+
# # Call the set_labels method.
|
766
|
+
# result = client.set_labels request
|
767
|
+
#
|
768
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
769
|
+
# p result
|
770
|
+
#
|
659
771
|
def set_labels request, options = nil
|
660
772
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
661
773
|
|
@@ -735,6 +847,22 @@ module Google
|
|
735
847
|
# @return [::Gapic::GenericLRO::Operation]
|
736
848
|
#
|
737
849
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
850
|
+
#
|
851
|
+
# @example Basic example
|
852
|
+
# require "google/cloud/compute/v1"
|
853
|
+
#
|
854
|
+
# # Create a client object. The client can be reused for multiple calls.
|
855
|
+
# client = Google::Cloud::Compute::V1::ForwardingRules::Rest::Client.new
|
856
|
+
#
|
857
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
858
|
+
# request = Google::Cloud::Compute::V1::SetTargetForwardingRuleRequest.new
|
859
|
+
#
|
860
|
+
# # Call the set_target method.
|
861
|
+
# result = client.set_target request
|
862
|
+
#
|
863
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
864
|
+
# p result
|
865
|
+
#
|
738
866
|
def set_target request, options = nil
|
739
867
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
740
868
|
|
@@ -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::GlobalAddresses::Rest::Client.new
|
205
|
+
#
|
206
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
207
|
+
# request = Google::Cloud::Compute::V1::DeleteGlobalAddressRequest.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
|
|
@@ -268,6 +284,22 @@ module Google
|
|
268
284
|
# @return [::Google::Cloud::Compute::V1::Address]
|
269
285
|
#
|
270
286
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
287
|
+
#
|
288
|
+
# @example Basic example
|
289
|
+
# require "google/cloud/compute/v1"
|
290
|
+
#
|
291
|
+
# # Create a client object. The client can be reused for multiple calls.
|
292
|
+
# client = Google::Cloud::Compute::V1::GlobalAddresses::Rest::Client.new
|
293
|
+
#
|
294
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
295
|
+
# request = Google::Cloud::Compute::V1::GetGlobalAddressRequest.new
|
296
|
+
#
|
297
|
+
# # Call the get method.
|
298
|
+
# result = client.get request
|
299
|
+
#
|
300
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Address.
|
301
|
+
# p result
|
302
|
+
#
|
271
303
|
def get request, options = nil
|
272
304
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
273
305
|
|
@@ -334,6 +366,22 @@ module Google
|
|
334
366
|
# @return [::Gapic::GenericLRO::Operation]
|
335
367
|
#
|
336
368
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
369
|
+
#
|
370
|
+
# @example Basic example
|
371
|
+
# require "google/cloud/compute/v1"
|
372
|
+
#
|
373
|
+
# # Create a client object. The client can be reused for multiple calls.
|
374
|
+
# client = Google::Cloud::Compute::V1::GlobalAddresses::Rest::Client.new
|
375
|
+
#
|
376
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
377
|
+
# request = Google::Cloud::Compute::V1::InsertGlobalAddressRequest.new
|
378
|
+
#
|
379
|
+
# # Call the insert method.
|
380
|
+
# result = client.insert request
|
381
|
+
#
|
382
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
383
|
+
# p result
|
384
|
+
#
|
337
385
|
def insert request, options = nil
|
338
386
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
339
387
|
|
@@ -414,6 +462,22 @@ module Google
|
|
414
462
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Address>]
|
415
463
|
#
|
416
464
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
465
|
+
#
|
466
|
+
# @example Basic example
|
467
|
+
# require "google/cloud/compute/v1"
|
468
|
+
#
|
469
|
+
# # Create a client object. The client can be reused for multiple calls.
|
470
|
+
# client = Google::Cloud::Compute::V1::GlobalAddresses::Rest::Client.new
|
471
|
+
#
|
472
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
473
|
+
# request = Google::Cloud::Compute::V1::ListGlobalAddressesRequest.new
|
474
|
+
#
|
475
|
+
# # Call the list method.
|
476
|
+
# result = client.list request
|
477
|
+
#
|
478
|
+
# # The returned object is of type Google::Cloud::Compute::V1::AddressList.
|
479
|
+
# p result
|
480
|
+
#
|
417
481
|
def list request, options = nil
|
418
482
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
419
483
|
|
@@ -483,6 +547,22 @@ module Google
|
|
483
547
|
# @return [::Gapic::GenericLRO::Operation]
|
484
548
|
#
|
485
549
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
550
|
+
#
|
551
|
+
# @example Basic example
|
552
|
+
# require "google/cloud/compute/v1"
|
553
|
+
#
|
554
|
+
# # Create a client object. The client can be reused for multiple calls.
|
555
|
+
# client = Google::Cloud::Compute::V1::GlobalAddresses::Rest::Client.new
|
556
|
+
#
|
557
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
558
|
+
# request = Google::Cloud::Compute::V1::MoveGlobalAddressRequest.new
|
559
|
+
#
|
560
|
+
# # Call the move method.
|
561
|
+
# result = client.move request
|
562
|
+
#
|
563
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
564
|
+
# p result
|
565
|
+
#
|
486
566
|
def move request, options = nil
|
487
567
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
488
568
|
|
@@ -557,6 +637,22 @@ module Google
|
|
557
637
|
# @return [::Gapic::GenericLRO::Operation]
|
558
638
|
#
|
559
639
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
640
|
+
#
|
641
|
+
# @example Basic example
|
642
|
+
# require "google/cloud/compute/v1"
|
643
|
+
#
|
644
|
+
# # Create a client object. The client can be reused for multiple calls.
|
645
|
+
# client = Google::Cloud::Compute::V1::GlobalAddresses::Rest::Client.new
|
646
|
+
#
|
647
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
648
|
+
# request = Google::Cloud::Compute::V1::SetLabelsGlobalAddressRequest.new
|
649
|
+
#
|
650
|
+
# # Call the set_labels method.
|
651
|
+
# result = client.set_labels request
|
652
|
+
#
|
653
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
654
|
+
# p result
|
655
|
+
#
|
560
656
|
def set_labels request, options = nil
|
561
657
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
562
658
|
|
@@ -198,6 +198,22 @@ module Google
|
|
198
198
|
# @return [::Gapic::GenericLRO::Operation]
|
199
199
|
#
|
200
200
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
201
|
+
#
|
202
|
+
# @example Basic example
|
203
|
+
# require "google/cloud/compute/v1"
|
204
|
+
#
|
205
|
+
# # Create a client object. The client can be reused for multiple calls.
|
206
|
+
# client = Google::Cloud::Compute::V1::GlobalForwardingRules::Rest::Client.new
|
207
|
+
#
|
208
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
209
|
+
# request = Google::Cloud::Compute::V1::DeleteGlobalForwardingRuleRequest.new
|
210
|
+
#
|
211
|
+
# # Call the delete method.
|
212
|
+
# result = client.delete request
|
213
|
+
#
|
214
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
215
|
+
# p result
|
216
|
+
#
|
201
217
|
def delete request, options = nil
|
202
218
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
203
219
|
|
@@ -270,6 +286,22 @@ module Google
|
|
270
286
|
# @return [::Google::Cloud::Compute::V1::ForwardingRule]
|
271
287
|
#
|
272
288
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
289
|
+
#
|
290
|
+
# @example Basic example
|
291
|
+
# require "google/cloud/compute/v1"
|
292
|
+
#
|
293
|
+
# # Create a client object. The client can be reused for multiple calls.
|
294
|
+
# client = Google::Cloud::Compute::V1::GlobalForwardingRules::Rest::Client.new
|
295
|
+
#
|
296
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
297
|
+
# request = Google::Cloud::Compute::V1::GetGlobalForwardingRuleRequest.new
|
298
|
+
#
|
299
|
+
# # Call the get method.
|
300
|
+
# result = client.get request
|
301
|
+
#
|
302
|
+
# # The returned object is of type Google::Cloud::Compute::V1::ForwardingRule.
|
303
|
+
# p result
|
304
|
+
#
|
273
305
|
def get request, options = nil
|
274
306
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
275
307
|
|
@@ -336,6 +368,22 @@ module Google
|
|
336
368
|
# @return [::Gapic::GenericLRO::Operation]
|
337
369
|
#
|
338
370
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
371
|
+
#
|
372
|
+
# @example Basic example
|
373
|
+
# require "google/cloud/compute/v1"
|
374
|
+
#
|
375
|
+
# # Create a client object. The client can be reused for multiple calls.
|
376
|
+
# client = Google::Cloud::Compute::V1::GlobalForwardingRules::Rest::Client.new
|
377
|
+
#
|
378
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
379
|
+
# request = Google::Cloud::Compute::V1::InsertGlobalForwardingRuleRequest.new
|
380
|
+
#
|
381
|
+
# # Call the insert method.
|
382
|
+
# result = client.insert request
|
383
|
+
#
|
384
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
385
|
+
# p result
|
386
|
+
#
|
339
387
|
def insert request, options = nil
|
340
388
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
341
389
|
|
@@ -416,6 +464,22 @@ module Google
|
|
416
464
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::ForwardingRule>]
|
417
465
|
#
|
418
466
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
467
|
+
#
|
468
|
+
# @example Basic example
|
469
|
+
# require "google/cloud/compute/v1"
|
470
|
+
#
|
471
|
+
# # Create a client object. The client can be reused for multiple calls.
|
472
|
+
# client = Google::Cloud::Compute::V1::GlobalForwardingRules::Rest::Client.new
|
473
|
+
#
|
474
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
475
|
+
# request = Google::Cloud::Compute::V1::ListGlobalForwardingRulesRequest.new
|
476
|
+
#
|
477
|
+
# # Call the list method.
|
478
|
+
# result = client.list request
|
479
|
+
#
|
480
|
+
# # The returned object is of type Google::Cloud::Compute::V1::ForwardingRuleList.
|
481
|
+
# p result
|
482
|
+
#
|
419
483
|
def list request, options = nil
|
420
484
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
421
485
|
|
@@ -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::GlobalForwardingRules::Rest::Client.new
|
558
|
+
#
|
559
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
560
|
+
# request = Google::Cloud::Compute::V1::PatchGlobalForwardingRuleRequest.new
|
561
|
+
#
|
562
|
+
# # Call the patch method.
|
563
|
+
# result = client.patch request
|
564
|
+
#
|
565
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
566
|
+
# p result
|
567
|
+
#
|
488
568
|
def patch request, options = nil
|
489
569
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
490
570
|
|
@@ -559,6 +639,22 @@ module Google
|
|
559
639
|
# @return [::Gapic::GenericLRO::Operation]
|
560
640
|
#
|
561
641
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
642
|
+
#
|
643
|
+
# @example Basic example
|
644
|
+
# require "google/cloud/compute/v1"
|
645
|
+
#
|
646
|
+
# # Create a client object. The client can be reused for multiple calls.
|
647
|
+
# client = Google::Cloud::Compute::V1::GlobalForwardingRules::Rest::Client.new
|
648
|
+
#
|
649
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
650
|
+
# request = Google::Cloud::Compute::V1::SetLabelsGlobalForwardingRuleRequest.new
|
651
|
+
#
|
652
|
+
# # Call the set_labels method.
|
653
|
+
# result = client.set_labels request
|
654
|
+
#
|
655
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
656
|
+
# p result
|
657
|
+
#
|
562
658
|
def set_labels request, options = nil
|
563
659
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
564
660
|
|
@@ -635,6 +731,22 @@ module Google
|
|
635
731
|
# @return [::Gapic::GenericLRO::Operation]
|
636
732
|
#
|
637
733
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
734
|
+
#
|
735
|
+
# @example Basic example
|
736
|
+
# require "google/cloud/compute/v1"
|
737
|
+
#
|
738
|
+
# # Create a client object. The client can be reused for multiple calls.
|
739
|
+
# client = Google::Cloud::Compute::V1::GlobalForwardingRules::Rest::Client.new
|
740
|
+
#
|
741
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
742
|
+
# request = Google::Cloud::Compute::V1::SetTargetGlobalForwardingRuleRequest.new
|
743
|
+
#
|
744
|
+
# # Call the set_target method.
|
745
|
+
# result = client.set_target request
|
746
|
+
#
|
747
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
748
|
+
# p result
|
749
|
+
#
|
638
750
|
def set_target request, options = nil
|
639
751
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
640
752
|
|
@@ -200,6 +200,22 @@ module Google
|
|
200
200
|
# @return [::Gapic::GenericLRO::Operation]
|
201
201
|
#
|
202
202
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
203
|
+
#
|
204
|
+
# @example Basic example
|
205
|
+
# require "google/cloud/compute/v1"
|
206
|
+
#
|
207
|
+
# # Create a client object. The client can be reused for multiple calls.
|
208
|
+
# client = Google::Cloud::Compute::V1::GlobalNetworkEndpointGroups::Rest::Client.new
|
209
|
+
#
|
210
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
211
|
+
# request = Google::Cloud::Compute::V1::AttachNetworkEndpointsGlobalNetworkEndpointGroupRequest.new
|
212
|
+
#
|
213
|
+
# # Call the attach_network_endpoints method.
|
214
|
+
# result = client.attach_network_endpoints request
|
215
|
+
#
|
216
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
217
|
+
# p result
|
218
|
+
#
|
203
219
|
def attach_network_endpoints request, options = nil
|
204
220
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
205
221
|
|
@@ -274,6 +290,22 @@ module Google
|
|
274
290
|
# @return [::Gapic::GenericLRO::Operation]
|
275
291
|
#
|
276
292
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
293
|
+
#
|
294
|
+
# @example Basic example
|
295
|
+
# require "google/cloud/compute/v1"
|
296
|
+
#
|
297
|
+
# # Create a client object. The client can be reused for multiple calls.
|
298
|
+
# client = Google::Cloud::Compute::V1::GlobalNetworkEndpointGroups::Rest::Client.new
|
299
|
+
#
|
300
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
301
|
+
# request = Google::Cloud::Compute::V1::DeleteGlobalNetworkEndpointGroupRequest.new
|
302
|
+
#
|
303
|
+
# # Call the delete method.
|
304
|
+
# result = client.delete request
|
305
|
+
#
|
306
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
307
|
+
# p result
|
308
|
+
#
|
277
309
|
def delete request, options = nil
|
278
310
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
279
311
|
|
@@ -350,6 +382,22 @@ module Google
|
|
350
382
|
# @return [::Gapic::GenericLRO::Operation]
|
351
383
|
#
|
352
384
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
385
|
+
#
|
386
|
+
# @example Basic example
|
387
|
+
# require "google/cloud/compute/v1"
|
388
|
+
#
|
389
|
+
# # Create a client object. The client can be reused for multiple calls.
|
390
|
+
# client = Google::Cloud::Compute::V1::GlobalNetworkEndpointGroups::Rest::Client.new
|
391
|
+
#
|
392
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
393
|
+
# request = Google::Cloud::Compute::V1::DetachNetworkEndpointsGlobalNetworkEndpointGroupRequest.new
|
394
|
+
#
|
395
|
+
# # Call the detach_network_endpoints method.
|
396
|
+
# result = client.detach_network_endpoints request
|
397
|
+
#
|
398
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
399
|
+
# p result
|
400
|
+
#
|
353
401
|
def detach_network_endpoints request, options = nil
|
354
402
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
355
403
|
|
@@ -422,6 +470,22 @@ module Google
|
|
422
470
|
# @return [::Google::Cloud::Compute::V1::NetworkEndpointGroup]
|
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::GlobalNetworkEndpointGroups::Rest::Client.new
|
479
|
+
#
|
480
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
481
|
+
# request = Google::Cloud::Compute::V1::GetGlobalNetworkEndpointGroupRequest.new
|
482
|
+
#
|
483
|
+
# # Call the get method.
|
484
|
+
# result = client.get request
|
485
|
+
#
|
486
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NetworkEndpointGroup.
|
487
|
+
# p result
|
488
|
+
#
|
425
489
|
def get request, options = nil
|
426
490
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
427
491
|
|
@@ -488,6 +552,22 @@ module Google
|
|
488
552
|
# @return [::Gapic::GenericLRO::Operation]
|
489
553
|
#
|
490
554
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
555
|
+
#
|
556
|
+
# @example Basic example
|
557
|
+
# require "google/cloud/compute/v1"
|
558
|
+
#
|
559
|
+
# # Create a client object. The client can be reused for multiple calls.
|
560
|
+
# client = Google::Cloud::Compute::V1::GlobalNetworkEndpointGroups::Rest::Client.new
|
561
|
+
#
|
562
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
563
|
+
# request = Google::Cloud::Compute::V1::InsertGlobalNetworkEndpointGroupRequest.new
|
564
|
+
#
|
565
|
+
# # Call the insert method.
|
566
|
+
# result = client.insert request
|
567
|
+
#
|
568
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
569
|
+
# p result
|
570
|
+
#
|
491
571
|
def insert request, options = nil
|
492
572
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
493
573
|
|
@@ -568,6 +648,22 @@ module Google
|
|
568
648
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::NetworkEndpointGroup>]
|
569
649
|
#
|
570
650
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
651
|
+
#
|
652
|
+
# @example Basic example
|
653
|
+
# require "google/cloud/compute/v1"
|
654
|
+
#
|
655
|
+
# # Create a client object. The client can be reused for multiple calls.
|
656
|
+
# client = Google::Cloud::Compute::V1::GlobalNetworkEndpointGroups::Rest::Client.new
|
657
|
+
#
|
658
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
659
|
+
# request = Google::Cloud::Compute::V1::ListGlobalNetworkEndpointGroupsRequest.new
|
660
|
+
#
|
661
|
+
# # Call the list method.
|
662
|
+
# result = client.list request
|
663
|
+
#
|
664
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NetworkEndpointGroupList.
|
665
|
+
# p result
|
666
|
+
#
|
571
667
|
def list request, options = nil
|
572
668
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
573
669
|
|
@@ -643,6 +739,22 @@ module Google
|
|
643
739
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::NetworkEndpointWithHealthStatus>]
|
644
740
|
#
|
645
741
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
742
|
+
#
|
743
|
+
# @example Basic example
|
744
|
+
# require "google/cloud/compute/v1"
|
745
|
+
#
|
746
|
+
# # Create a client object. The client can be reused for multiple calls.
|
747
|
+
# client = Google::Cloud::Compute::V1::GlobalNetworkEndpointGroups::Rest::Client.new
|
748
|
+
#
|
749
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
750
|
+
# request = Google::Cloud::Compute::V1::ListNetworkEndpointsGlobalNetworkEndpointGroupsRequest.new
|
751
|
+
#
|
752
|
+
# # Call the list_network_endpoints method.
|
753
|
+
# result = client.list_network_endpoints request
|
754
|
+
#
|
755
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NetworkEndpointGroupsListNetworkEndpoints.
|
756
|
+
# p result
|
757
|
+
#
|
646
758
|
def list_network_endpoints request, options = nil
|
647
759
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
648
760
|
|