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
@@ -213,6 +213,22 @@ module Google
|
|
213
213
|
# @return [::Gapic::Rest::PagedEnumerable<::String, ::Google::Cloud::Compute::V1::NetworkEndpointGroupsScopedList>]
|
214
214
|
#
|
215
215
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
216
|
+
#
|
217
|
+
# @example Basic example
|
218
|
+
# require "google/cloud/compute/v1"
|
219
|
+
#
|
220
|
+
# # Create a client object. The client can be reused for multiple calls.
|
221
|
+
# client = Google::Cloud::Compute::V1::NetworkEndpointGroups::Rest::Client.new
|
222
|
+
#
|
223
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
224
|
+
# request = Google::Cloud::Compute::V1::AggregatedListNetworkEndpointGroupsRequest.new
|
225
|
+
#
|
226
|
+
# # Call the aggregated_list method.
|
227
|
+
# result = client.aggregated_list request
|
228
|
+
#
|
229
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NetworkEndpointGroupAggregatedList.
|
230
|
+
# p result
|
231
|
+
#
|
216
232
|
def aggregated_list request, options = nil
|
217
233
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
218
234
|
|
@@ -284,6 +300,22 @@ module Google
|
|
284
300
|
# @return [::Gapic::GenericLRO::Operation]
|
285
301
|
#
|
286
302
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
303
|
+
#
|
304
|
+
# @example Basic example
|
305
|
+
# require "google/cloud/compute/v1"
|
306
|
+
#
|
307
|
+
# # Create a client object. The client can be reused for multiple calls.
|
308
|
+
# client = Google::Cloud::Compute::V1::NetworkEndpointGroups::Rest::Client.new
|
309
|
+
#
|
310
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
311
|
+
# request = Google::Cloud::Compute::V1::AttachNetworkEndpointsNetworkEndpointGroupRequest.new
|
312
|
+
#
|
313
|
+
# # Call the attach_network_endpoints method.
|
314
|
+
# result = client.attach_network_endpoints request
|
315
|
+
#
|
316
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
317
|
+
# p result
|
318
|
+
#
|
287
319
|
def attach_network_endpoints request, options = nil
|
288
320
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
289
321
|
|
@@ -361,6 +393,22 @@ module Google
|
|
361
393
|
# @return [::Gapic::GenericLRO::Operation]
|
362
394
|
#
|
363
395
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
396
|
+
#
|
397
|
+
# @example Basic example
|
398
|
+
# require "google/cloud/compute/v1"
|
399
|
+
#
|
400
|
+
# # Create a client object. The client can be reused for multiple calls.
|
401
|
+
# client = Google::Cloud::Compute::V1::NetworkEndpointGroups::Rest::Client.new
|
402
|
+
#
|
403
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
404
|
+
# request = Google::Cloud::Compute::V1::DeleteNetworkEndpointGroupRequest.new
|
405
|
+
#
|
406
|
+
# # Call the delete method.
|
407
|
+
# result = client.delete request
|
408
|
+
#
|
409
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
410
|
+
# p result
|
411
|
+
#
|
364
412
|
def delete request, options = nil
|
365
413
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
366
414
|
|
@@ -440,6 +488,22 @@ module Google
|
|
440
488
|
# @return [::Gapic::GenericLRO::Operation]
|
441
489
|
#
|
442
490
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
491
|
+
#
|
492
|
+
# @example Basic example
|
493
|
+
# require "google/cloud/compute/v1"
|
494
|
+
#
|
495
|
+
# # Create a client object. The client can be reused for multiple calls.
|
496
|
+
# client = Google::Cloud::Compute::V1::NetworkEndpointGroups::Rest::Client.new
|
497
|
+
#
|
498
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
499
|
+
# request = Google::Cloud::Compute::V1::DetachNetworkEndpointsNetworkEndpointGroupRequest.new
|
500
|
+
#
|
501
|
+
# # Call the detach_network_endpoints method.
|
502
|
+
# result = client.detach_network_endpoints request
|
503
|
+
#
|
504
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
505
|
+
# p result
|
506
|
+
#
|
443
507
|
def detach_network_endpoints request, options = nil
|
444
508
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
445
509
|
|
@@ -515,6 +579,22 @@ module Google
|
|
515
579
|
# @return [::Google::Cloud::Compute::V1::NetworkEndpointGroup]
|
516
580
|
#
|
517
581
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
582
|
+
#
|
583
|
+
# @example Basic example
|
584
|
+
# require "google/cloud/compute/v1"
|
585
|
+
#
|
586
|
+
# # Create a client object. The client can be reused for multiple calls.
|
587
|
+
# client = Google::Cloud::Compute::V1::NetworkEndpointGroups::Rest::Client.new
|
588
|
+
#
|
589
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
590
|
+
# request = Google::Cloud::Compute::V1::GetNetworkEndpointGroupRequest.new
|
591
|
+
#
|
592
|
+
# # Call the get method.
|
593
|
+
# result = client.get request
|
594
|
+
#
|
595
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NetworkEndpointGroup.
|
596
|
+
# p result
|
597
|
+
#
|
518
598
|
def get request, options = nil
|
519
599
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
520
600
|
|
@@ -583,6 +663,22 @@ module Google
|
|
583
663
|
# @return [::Gapic::GenericLRO::Operation]
|
584
664
|
#
|
585
665
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
666
|
+
#
|
667
|
+
# @example Basic example
|
668
|
+
# require "google/cloud/compute/v1"
|
669
|
+
#
|
670
|
+
# # Create a client object. The client can be reused for multiple calls.
|
671
|
+
# client = Google::Cloud::Compute::V1::NetworkEndpointGroups::Rest::Client.new
|
672
|
+
#
|
673
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
674
|
+
# request = Google::Cloud::Compute::V1::InsertNetworkEndpointGroupRequest.new
|
675
|
+
#
|
676
|
+
# # Call the insert method.
|
677
|
+
# result = client.insert request
|
678
|
+
#
|
679
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
680
|
+
# p result
|
681
|
+
#
|
586
682
|
def insert request, options = nil
|
587
683
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
588
684
|
|
@@ -666,6 +762,22 @@ module Google
|
|
666
762
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::NetworkEndpointGroup>]
|
667
763
|
#
|
668
764
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
765
|
+
#
|
766
|
+
# @example Basic example
|
767
|
+
# require "google/cloud/compute/v1"
|
768
|
+
#
|
769
|
+
# # Create a client object. The client can be reused for multiple calls.
|
770
|
+
# client = Google::Cloud::Compute::V1::NetworkEndpointGroups::Rest::Client.new
|
771
|
+
#
|
772
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
773
|
+
# request = Google::Cloud::Compute::V1::ListNetworkEndpointGroupsRequest.new
|
774
|
+
#
|
775
|
+
# # Call the list method.
|
776
|
+
# result = client.list request
|
777
|
+
#
|
778
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NetworkEndpointGroupList.
|
779
|
+
# p result
|
780
|
+
#
|
669
781
|
def list request, options = nil
|
670
782
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
671
783
|
|
@@ -745,6 +857,22 @@ module Google
|
|
745
857
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::NetworkEndpointWithHealthStatus>]
|
746
858
|
#
|
747
859
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
860
|
+
#
|
861
|
+
# @example Basic example
|
862
|
+
# require "google/cloud/compute/v1"
|
863
|
+
#
|
864
|
+
# # Create a client object. The client can be reused for multiple calls.
|
865
|
+
# client = Google::Cloud::Compute::V1::NetworkEndpointGroups::Rest::Client.new
|
866
|
+
#
|
867
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
868
|
+
# request = Google::Cloud::Compute::V1::ListNetworkEndpointsNetworkEndpointGroupsRequest.new
|
869
|
+
#
|
870
|
+
# # Call the list_network_endpoints method.
|
871
|
+
# result = client.list_network_endpoints request
|
872
|
+
#
|
873
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NetworkEndpointGroupsListNetworkEndpoints.
|
874
|
+
# p result
|
875
|
+
#
|
748
876
|
def list_network_endpoints request, options = nil
|
749
877
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
750
878
|
|
@@ -814,6 +942,22 @@ module Google
|
|
814
942
|
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
815
943
|
#
|
816
944
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
945
|
+
#
|
946
|
+
# @example Basic example
|
947
|
+
# require "google/cloud/compute/v1"
|
948
|
+
#
|
949
|
+
# # Create a client object. The client can be reused for multiple calls.
|
950
|
+
# client = Google::Cloud::Compute::V1::NetworkEndpointGroups::Rest::Client.new
|
951
|
+
#
|
952
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
953
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsNetworkEndpointGroupRequest.new
|
954
|
+
#
|
955
|
+
# # Call the test_iam_permissions method.
|
956
|
+
# result = client.test_iam_permissions request
|
957
|
+
#
|
958
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
959
|
+
# p result
|
960
|
+
#
|
817
961
|
def test_iam_permissions request, options = nil
|
818
962
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
819
963
|
|
@@ -229,6 +229,22 @@ module Google
|
|
229
229
|
# @return [::Gapic::GenericLRO::Operation]
|
230
230
|
#
|
231
231
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
232
|
+
#
|
233
|
+
# @example Basic example
|
234
|
+
# require "google/cloud/compute/v1"
|
235
|
+
#
|
236
|
+
# # Create a client object. The client can be reused for multiple calls.
|
237
|
+
# client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
|
238
|
+
#
|
239
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
240
|
+
# request = Google::Cloud::Compute::V1::AddAssociationNetworkFirewallPolicyRequest.new
|
241
|
+
#
|
242
|
+
# # Call the add_association method.
|
243
|
+
# result = client.add_association request
|
244
|
+
#
|
245
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
246
|
+
# p result
|
247
|
+
#
|
232
248
|
def add_association request, options = nil
|
233
249
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
234
250
|
|
@@ -309,6 +325,22 @@ module Google
|
|
309
325
|
# @return [::Gapic::GenericLRO::Operation]
|
310
326
|
#
|
311
327
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
328
|
+
#
|
329
|
+
# @example Basic example
|
330
|
+
# require "google/cloud/compute/v1"
|
331
|
+
#
|
332
|
+
# # Create a client object. The client can be reused for multiple calls.
|
333
|
+
# client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
|
334
|
+
#
|
335
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
336
|
+
# request = Google::Cloud::Compute::V1::AddRuleNetworkFirewallPolicyRequest.new
|
337
|
+
#
|
338
|
+
# # Call the add_rule method.
|
339
|
+
# result = client.add_rule request
|
340
|
+
#
|
341
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
342
|
+
# p result
|
343
|
+
#
|
312
344
|
def add_rule request, options = nil
|
313
345
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
314
346
|
|
@@ -385,6 +417,22 @@ module Google
|
|
385
417
|
# @return [::Gapic::GenericLRO::Operation]
|
386
418
|
#
|
387
419
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
420
|
+
#
|
421
|
+
# @example Basic example
|
422
|
+
# require "google/cloud/compute/v1"
|
423
|
+
#
|
424
|
+
# # Create a client object. The client can be reused for multiple calls.
|
425
|
+
# client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
|
426
|
+
#
|
427
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
428
|
+
# request = Google::Cloud::Compute::V1::CloneRulesNetworkFirewallPolicyRequest.new
|
429
|
+
#
|
430
|
+
# # Call the clone_rules method.
|
431
|
+
# result = client.clone_rules request
|
432
|
+
#
|
433
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
434
|
+
# p result
|
435
|
+
#
|
388
436
|
def clone_rules request, options = nil
|
389
437
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
390
438
|
|
@@ -459,6 +507,22 @@ module Google
|
|
459
507
|
# @return [::Gapic::GenericLRO::Operation]
|
460
508
|
#
|
461
509
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
510
|
+
#
|
511
|
+
# @example Basic example
|
512
|
+
# require "google/cloud/compute/v1"
|
513
|
+
#
|
514
|
+
# # Create a client object. The client can be reused for multiple calls.
|
515
|
+
# client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
|
516
|
+
#
|
517
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
518
|
+
# request = Google::Cloud::Compute::V1::DeleteNetworkFirewallPolicyRequest.new
|
519
|
+
#
|
520
|
+
# # Call the delete method.
|
521
|
+
# result = client.delete request
|
522
|
+
#
|
523
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
524
|
+
# p result
|
525
|
+
#
|
462
526
|
def delete request, options = nil
|
463
527
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
464
528
|
|
@@ -531,6 +595,22 @@ module Google
|
|
531
595
|
# @return [::Google::Cloud::Compute::V1::FirewallPolicy]
|
532
596
|
#
|
533
597
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
598
|
+
#
|
599
|
+
# @example Basic example
|
600
|
+
# require "google/cloud/compute/v1"
|
601
|
+
#
|
602
|
+
# # Create a client object. The client can be reused for multiple calls.
|
603
|
+
# client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
|
604
|
+
#
|
605
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
606
|
+
# request = Google::Cloud::Compute::V1::GetNetworkFirewallPolicyRequest.new
|
607
|
+
#
|
608
|
+
# # Call the get method.
|
609
|
+
# result = client.get request
|
610
|
+
#
|
611
|
+
# # The returned object is of type Google::Cloud::Compute::V1::FirewallPolicy.
|
612
|
+
# p result
|
613
|
+
#
|
534
614
|
def get request, options = nil
|
535
615
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
536
616
|
|
@@ -597,6 +677,22 @@ module Google
|
|
597
677
|
# @return [::Google::Cloud::Compute::V1::FirewallPolicyAssociation]
|
598
678
|
#
|
599
679
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
680
|
+
#
|
681
|
+
# @example Basic example
|
682
|
+
# require "google/cloud/compute/v1"
|
683
|
+
#
|
684
|
+
# # Create a client object. The client can be reused for multiple calls.
|
685
|
+
# client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
|
686
|
+
#
|
687
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
688
|
+
# request = Google::Cloud::Compute::V1::GetAssociationNetworkFirewallPolicyRequest.new
|
689
|
+
#
|
690
|
+
# # Call the get_association method.
|
691
|
+
# result = client.get_association request
|
692
|
+
#
|
693
|
+
# # The returned object is of type Google::Cloud::Compute::V1::FirewallPolicyAssociation.
|
694
|
+
# p result
|
695
|
+
#
|
600
696
|
def get_association request, options = nil
|
601
697
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
602
698
|
|
@@ -663,6 +759,22 @@ module Google
|
|
663
759
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
664
760
|
#
|
665
761
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
762
|
+
#
|
763
|
+
# @example Basic example
|
764
|
+
# require "google/cloud/compute/v1"
|
765
|
+
#
|
766
|
+
# # Create a client object. The client can be reused for multiple calls.
|
767
|
+
# client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
|
768
|
+
#
|
769
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
770
|
+
# request = Google::Cloud::Compute::V1::GetIamPolicyNetworkFirewallPolicyRequest.new
|
771
|
+
#
|
772
|
+
# # Call the get_iam_policy method.
|
773
|
+
# result = client.get_iam_policy request
|
774
|
+
#
|
775
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
776
|
+
# p result
|
777
|
+
#
|
666
778
|
def get_iam_policy request, options = nil
|
667
779
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
668
780
|
|
@@ -729,6 +841,22 @@ module Google
|
|
729
841
|
# @return [::Google::Cloud::Compute::V1::FirewallPolicyRule]
|
730
842
|
#
|
731
843
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
844
|
+
#
|
845
|
+
# @example Basic example
|
846
|
+
# require "google/cloud/compute/v1"
|
847
|
+
#
|
848
|
+
# # Create a client object. The client can be reused for multiple calls.
|
849
|
+
# client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
|
850
|
+
#
|
851
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
852
|
+
# request = Google::Cloud::Compute::V1::GetRuleNetworkFirewallPolicyRequest.new
|
853
|
+
#
|
854
|
+
# # Call the get_rule method.
|
855
|
+
# result = client.get_rule request
|
856
|
+
#
|
857
|
+
# # The returned object is of type Google::Cloud::Compute::V1::FirewallPolicyRule.
|
858
|
+
# p result
|
859
|
+
#
|
732
860
|
def get_rule request, options = nil
|
733
861
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
734
862
|
|
@@ -795,6 +923,22 @@ module Google
|
|
795
923
|
# @return [::Gapic::GenericLRO::Operation]
|
796
924
|
#
|
797
925
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
926
|
+
#
|
927
|
+
# @example Basic example
|
928
|
+
# require "google/cloud/compute/v1"
|
929
|
+
#
|
930
|
+
# # Create a client object. The client can be reused for multiple calls.
|
931
|
+
# client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
|
932
|
+
#
|
933
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
934
|
+
# request = Google::Cloud::Compute::V1::InsertNetworkFirewallPolicyRequest.new
|
935
|
+
#
|
936
|
+
# # Call the insert method.
|
937
|
+
# result = client.insert request
|
938
|
+
#
|
939
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
940
|
+
# p result
|
941
|
+
#
|
798
942
|
def insert request, options = nil
|
799
943
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
800
944
|
|
@@ -875,6 +1019,22 @@ module Google
|
|
875
1019
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::FirewallPolicy>]
|
876
1020
|
#
|
877
1021
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1022
|
+
#
|
1023
|
+
# @example Basic example
|
1024
|
+
# require "google/cloud/compute/v1"
|
1025
|
+
#
|
1026
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1027
|
+
# client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
|
1028
|
+
#
|
1029
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1030
|
+
# request = Google::Cloud::Compute::V1::ListNetworkFirewallPoliciesRequest.new
|
1031
|
+
#
|
1032
|
+
# # Call the list method.
|
1033
|
+
# result = client.list request
|
1034
|
+
#
|
1035
|
+
# # The returned object is of type Google::Cloud::Compute::V1::FirewallPolicyList.
|
1036
|
+
# p result
|
1037
|
+
#
|
878
1038
|
def list request, options = nil
|
879
1039
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
880
1040
|
|
@@ -944,6 +1104,22 @@ module Google
|
|
944
1104
|
# @return [::Gapic::GenericLRO::Operation]
|
945
1105
|
#
|
946
1106
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1107
|
+
#
|
1108
|
+
# @example Basic example
|
1109
|
+
# require "google/cloud/compute/v1"
|
1110
|
+
#
|
1111
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1112
|
+
# client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
|
1113
|
+
#
|
1114
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1115
|
+
# request = Google::Cloud::Compute::V1::PatchNetworkFirewallPolicyRequest.new
|
1116
|
+
#
|
1117
|
+
# # Call the patch method.
|
1118
|
+
# result = client.patch request
|
1119
|
+
#
|
1120
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1121
|
+
# p result
|
1122
|
+
#
|
947
1123
|
def patch request, options = nil
|
948
1124
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
949
1125
|
|
@@ -1022,6 +1198,22 @@ module Google
|
|
1022
1198
|
# @return [::Gapic::GenericLRO::Operation]
|
1023
1199
|
#
|
1024
1200
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1201
|
+
#
|
1202
|
+
# @example Basic example
|
1203
|
+
# require "google/cloud/compute/v1"
|
1204
|
+
#
|
1205
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1206
|
+
# client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
|
1207
|
+
#
|
1208
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1209
|
+
# request = Google::Cloud::Compute::V1::PatchRuleNetworkFirewallPolicyRequest.new
|
1210
|
+
#
|
1211
|
+
# # Call the patch_rule method.
|
1212
|
+
# result = client.patch_rule request
|
1213
|
+
#
|
1214
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1215
|
+
# p result
|
1216
|
+
#
|
1025
1217
|
def patch_rule request, options = nil
|
1026
1218
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1027
1219
|
|
@@ -1098,6 +1290,22 @@ module Google
|
|
1098
1290
|
# @return [::Gapic::GenericLRO::Operation]
|
1099
1291
|
#
|
1100
1292
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1293
|
+
#
|
1294
|
+
# @example Basic example
|
1295
|
+
# require "google/cloud/compute/v1"
|
1296
|
+
#
|
1297
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1298
|
+
# client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
|
1299
|
+
#
|
1300
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1301
|
+
# request = Google::Cloud::Compute::V1::RemoveAssociationNetworkFirewallPolicyRequest.new
|
1302
|
+
#
|
1303
|
+
# # Call the remove_association method.
|
1304
|
+
# result = client.remove_association request
|
1305
|
+
#
|
1306
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1307
|
+
# p result
|
1308
|
+
#
|
1101
1309
|
def remove_association request, options = nil
|
1102
1310
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1103
1311
|
|
@@ -1174,6 +1382,22 @@ module Google
|
|
1174
1382
|
# @return [::Gapic::GenericLRO::Operation]
|
1175
1383
|
#
|
1176
1384
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1385
|
+
#
|
1386
|
+
# @example Basic example
|
1387
|
+
# require "google/cloud/compute/v1"
|
1388
|
+
#
|
1389
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1390
|
+
# client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
|
1391
|
+
#
|
1392
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1393
|
+
# request = Google::Cloud::Compute::V1::RemoveRuleNetworkFirewallPolicyRequest.new
|
1394
|
+
#
|
1395
|
+
# # Call the remove_rule method.
|
1396
|
+
# result = client.remove_rule request
|
1397
|
+
#
|
1398
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
1399
|
+
# p result
|
1400
|
+
#
|
1177
1401
|
def remove_rule request, options = nil
|
1178
1402
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1179
1403
|
|
@@ -1248,6 +1472,22 @@ module Google
|
|
1248
1472
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
1249
1473
|
#
|
1250
1474
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1475
|
+
#
|
1476
|
+
# @example Basic example
|
1477
|
+
# require "google/cloud/compute/v1"
|
1478
|
+
#
|
1479
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1480
|
+
# client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
|
1481
|
+
#
|
1482
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1483
|
+
# request = Google::Cloud::Compute::V1::SetIamPolicyNetworkFirewallPolicyRequest.new
|
1484
|
+
#
|
1485
|
+
# # Call the set_iam_policy method.
|
1486
|
+
# result = client.set_iam_policy request
|
1487
|
+
#
|
1488
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
1489
|
+
# p result
|
1490
|
+
#
|
1251
1491
|
def set_iam_policy request, options = nil
|
1252
1492
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1253
1493
|
|
@@ -1314,6 +1554,22 @@ module Google
|
|
1314
1554
|
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
1315
1555
|
#
|
1316
1556
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1557
|
+
#
|
1558
|
+
# @example Basic example
|
1559
|
+
# require "google/cloud/compute/v1"
|
1560
|
+
#
|
1561
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1562
|
+
# client = Google::Cloud::Compute::V1::NetworkFirewallPolicies::Rest::Client.new
|
1563
|
+
#
|
1564
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1565
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsNetworkFirewallPolicyRequest.new
|
1566
|
+
#
|
1567
|
+
# # Call the test_iam_permissions method.
|
1568
|
+
# result = client.test_iam_permissions request
|
1569
|
+
#
|
1570
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
1571
|
+
# p result
|
1572
|
+
#
|
1317
1573
|
def test_iam_permissions request, options = nil
|
1318
1574
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
1319
1575
|
|