google-cloud-compute-v1 2.3.0 → 2.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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
|
@@ -194,6 +194,22 @@ module Google
|
|
|
194
194
|
# @return [::Gapic::GenericLRO::Operation]
|
|
195
195
|
#
|
|
196
196
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
197
|
+
#
|
|
198
|
+
# @example Basic example
|
|
199
|
+
# require "google/cloud/compute/v1"
|
|
200
|
+
#
|
|
201
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
202
|
+
# client = Google::Cloud::Compute::V1::RegionNetworkEndpointGroups::Rest::Client.new
|
|
203
|
+
#
|
|
204
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
205
|
+
# request = Google::Cloud::Compute::V1::DeleteRegionNetworkEndpointGroupRequest.new
|
|
206
|
+
#
|
|
207
|
+
# # Call the delete method.
|
|
208
|
+
# result = client.delete request
|
|
209
|
+
#
|
|
210
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
211
|
+
# p result
|
|
212
|
+
#
|
|
197
213
|
def delete request, options = nil
|
|
198
214
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
199
215
|
|
|
@@ -269,6 +285,22 @@ module Google
|
|
|
269
285
|
# @return [::Google::Cloud::Compute::V1::NetworkEndpointGroup]
|
|
270
286
|
#
|
|
271
287
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
288
|
+
#
|
|
289
|
+
# @example Basic example
|
|
290
|
+
# require "google/cloud/compute/v1"
|
|
291
|
+
#
|
|
292
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
293
|
+
# client = Google::Cloud::Compute::V1::RegionNetworkEndpointGroups::Rest::Client.new
|
|
294
|
+
#
|
|
295
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
296
|
+
# request = Google::Cloud::Compute::V1::GetRegionNetworkEndpointGroupRequest.new
|
|
297
|
+
#
|
|
298
|
+
# # Call the get method.
|
|
299
|
+
# result = client.get request
|
|
300
|
+
#
|
|
301
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NetworkEndpointGroup.
|
|
302
|
+
# p result
|
|
303
|
+
#
|
|
272
304
|
def get request, options = nil
|
|
273
305
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
274
306
|
|
|
@@ -337,6 +369,22 @@ module Google
|
|
|
337
369
|
# @return [::Gapic::GenericLRO::Operation]
|
|
338
370
|
#
|
|
339
371
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
372
|
+
#
|
|
373
|
+
# @example Basic example
|
|
374
|
+
# require "google/cloud/compute/v1"
|
|
375
|
+
#
|
|
376
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
377
|
+
# client = Google::Cloud::Compute::V1::RegionNetworkEndpointGroups::Rest::Client.new
|
|
378
|
+
#
|
|
379
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
380
|
+
# request = Google::Cloud::Compute::V1::InsertRegionNetworkEndpointGroupRequest.new
|
|
381
|
+
#
|
|
382
|
+
# # Call the insert method.
|
|
383
|
+
# result = client.insert request
|
|
384
|
+
#
|
|
385
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
386
|
+
# p result
|
|
387
|
+
#
|
|
340
388
|
def insert request, options = nil
|
|
341
389
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
342
390
|
|
|
@@ -420,6 +468,22 @@ module Google
|
|
|
420
468
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::NetworkEndpointGroup>]
|
|
421
469
|
#
|
|
422
470
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
471
|
+
#
|
|
472
|
+
# @example Basic example
|
|
473
|
+
# require "google/cloud/compute/v1"
|
|
474
|
+
#
|
|
475
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
476
|
+
# client = Google::Cloud::Compute::V1::RegionNetworkEndpointGroups::Rest::Client.new
|
|
477
|
+
#
|
|
478
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
479
|
+
# request = Google::Cloud::Compute::V1::ListRegionNetworkEndpointGroupsRequest.new
|
|
480
|
+
#
|
|
481
|
+
# # Call the list method.
|
|
482
|
+
# result = client.list request
|
|
483
|
+
#
|
|
484
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NetworkEndpointGroupList.
|
|
485
|
+
# p result
|
|
486
|
+
#
|
|
423
487
|
def list request, options = nil
|
|
424
488
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
425
489
|
|
|
@@ -236,6 +236,22 @@ module Google
|
|
|
236
236
|
# @return [::Gapic::GenericLRO::Operation]
|
|
237
237
|
#
|
|
238
238
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
239
|
+
#
|
|
240
|
+
# @example Basic example
|
|
241
|
+
# require "google/cloud/compute/v1"
|
|
242
|
+
#
|
|
243
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
244
|
+
# client = Google::Cloud::Compute::V1::RegionNetworkFirewallPolicies::Rest::Client.new
|
|
245
|
+
#
|
|
246
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
247
|
+
# request = Google::Cloud::Compute::V1::AddAssociationRegionNetworkFirewallPolicyRequest.new
|
|
248
|
+
#
|
|
249
|
+
# # Call the add_association method.
|
|
250
|
+
# result = client.add_association request
|
|
251
|
+
#
|
|
252
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
253
|
+
# p result
|
|
254
|
+
#
|
|
239
255
|
def add_association request, options = nil
|
|
240
256
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
241
257
|
|
|
@@ -319,6 +335,22 @@ module Google
|
|
|
319
335
|
# @return [::Gapic::GenericLRO::Operation]
|
|
320
336
|
#
|
|
321
337
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
338
|
+
#
|
|
339
|
+
# @example Basic example
|
|
340
|
+
# require "google/cloud/compute/v1"
|
|
341
|
+
#
|
|
342
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
343
|
+
# client = Google::Cloud::Compute::V1::RegionNetworkFirewallPolicies::Rest::Client.new
|
|
344
|
+
#
|
|
345
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
346
|
+
# request = Google::Cloud::Compute::V1::AddRuleRegionNetworkFirewallPolicyRequest.new
|
|
347
|
+
#
|
|
348
|
+
# # Call the add_rule method.
|
|
349
|
+
# result = client.add_rule request
|
|
350
|
+
#
|
|
351
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
352
|
+
# p result
|
|
353
|
+
#
|
|
322
354
|
def add_rule request, options = nil
|
|
323
355
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
324
356
|
|
|
@@ -398,6 +430,22 @@ module Google
|
|
|
398
430
|
# @return [::Gapic::GenericLRO::Operation]
|
|
399
431
|
#
|
|
400
432
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
433
|
+
#
|
|
434
|
+
# @example Basic example
|
|
435
|
+
# require "google/cloud/compute/v1"
|
|
436
|
+
#
|
|
437
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
438
|
+
# client = Google::Cloud::Compute::V1::RegionNetworkFirewallPolicies::Rest::Client.new
|
|
439
|
+
#
|
|
440
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
441
|
+
# request = Google::Cloud::Compute::V1::CloneRulesRegionNetworkFirewallPolicyRequest.new
|
|
442
|
+
#
|
|
443
|
+
# # Call the clone_rules method.
|
|
444
|
+
# result = client.clone_rules request
|
|
445
|
+
#
|
|
446
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
447
|
+
# p result
|
|
448
|
+
#
|
|
401
449
|
def clone_rules request, options = nil
|
|
402
450
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
403
451
|
|
|
@@ -475,6 +523,22 @@ module Google
|
|
|
475
523
|
# @return [::Gapic::GenericLRO::Operation]
|
|
476
524
|
#
|
|
477
525
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
526
|
+
#
|
|
527
|
+
# @example Basic example
|
|
528
|
+
# require "google/cloud/compute/v1"
|
|
529
|
+
#
|
|
530
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
531
|
+
# client = Google::Cloud::Compute::V1::RegionNetworkFirewallPolicies::Rest::Client.new
|
|
532
|
+
#
|
|
533
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
534
|
+
# request = Google::Cloud::Compute::V1::DeleteRegionNetworkFirewallPolicyRequest.new
|
|
535
|
+
#
|
|
536
|
+
# # Call the delete method.
|
|
537
|
+
# result = client.delete request
|
|
538
|
+
#
|
|
539
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
540
|
+
# p result
|
|
541
|
+
#
|
|
478
542
|
def delete request, options = nil
|
|
479
543
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
480
544
|
|
|
@@ -550,6 +614,22 @@ module Google
|
|
|
550
614
|
# @return [::Google::Cloud::Compute::V1::FirewallPolicy]
|
|
551
615
|
#
|
|
552
616
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
617
|
+
#
|
|
618
|
+
# @example Basic example
|
|
619
|
+
# require "google/cloud/compute/v1"
|
|
620
|
+
#
|
|
621
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
622
|
+
# client = Google::Cloud::Compute::V1::RegionNetworkFirewallPolicies::Rest::Client.new
|
|
623
|
+
#
|
|
624
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
625
|
+
# request = Google::Cloud::Compute::V1::GetRegionNetworkFirewallPolicyRequest.new
|
|
626
|
+
#
|
|
627
|
+
# # Call the get method.
|
|
628
|
+
# result = client.get request
|
|
629
|
+
#
|
|
630
|
+
# # The returned object is of type Google::Cloud::Compute::V1::FirewallPolicy.
|
|
631
|
+
# p result
|
|
632
|
+
#
|
|
553
633
|
def get request, options = nil
|
|
554
634
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
555
635
|
|
|
@@ -618,6 +698,22 @@ module Google
|
|
|
618
698
|
# @return [::Google::Cloud::Compute::V1::FirewallPolicyAssociation]
|
|
619
699
|
#
|
|
620
700
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
701
|
+
#
|
|
702
|
+
# @example Basic example
|
|
703
|
+
# require "google/cloud/compute/v1"
|
|
704
|
+
#
|
|
705
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
706
|
+
# client = Google::Cloud::Compute::V1::RegionNetworkFirewallPolicies::Rest::Client.new
|
|
707
|
+
#
|
|
708
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
709
|
+
# request = Google::Cloud::Compute::V1::GetAssociationRegionNetworkFirewallPolicyRequest.new
|
|
710
|
+
#
|
|
711
|
+
# # Call the get_association method.
|
|
712
|
+
# result = client.get_association request
|
|
713
|
+
#
|
|
714
|
+
# # The returned object is of type Google::Cloud::Compute::V1::FirewallPolicyAssociation.
|
|
715
|
+
# p result
|
|
716
|
+
#
|
|
621
717
|
def get_association request, options = nil
|
|
622
718
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
623
719
|
|
|
@@ -684,6 +780,22 @@ module Google
|
|
|
684
780
|
# @return [::Google::Cloud::Compute::V1::RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse]
|
|
685
781
|
#
|
|
686
782
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
783
|
+
#
|
|
784
|
+
# @example Basic example
|
|
785
|
+
# require "google/cloud/compute/v1"
|
|
786
|
+
#
|
|
787
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
788
|
+
# client = Google::Cloud::Compute::V1::RegionNetworkFirewallPolicies::Rest::Client.new
|
|
789
|
+
#
|
|
790
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
791
|
+
# request = Google::Cloud::Compute::V1::GetEffectiveFirewallsRegionNetworkFirewallPolicyRequest.new
|
|
792
|
+
#
|
|
793
|
+
# # Call the get_effective_firewalls method.
|
|
794
|
+
# result = client.get_effective_firewalls request
|
|
795
|
+
#
|
|
796
|
+
# # The returned object is of type Google::Cloud::Compute::V1::RegionNetworkFirewallPoliciesGetEffectiveFirewallsResponse.
|
|
797
|
+
# p result
|
|
798
|
+
#
|
|
687
799
|
def get_effective_firewalls request, options = nil
|
|
688
800
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
689
801
|
|
|
@@ -752,6 +864,22 @@ module Google
|
|
|
752
864
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
|
753
865
|
#
|
|
754
866
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
867
|
+
#
|
|
868
|
+
# @example Basic example
|
|
869
|
+
# require "google/cloud/compute/v1"
|
|
870
|
+
#
|
|
871
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
872
|
+
# client = Google::Cloud::Compute::V1::RegionNetworkFirewallPolicies::Rest::Client.new
|
|
873
|
+
#
|
|
874
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
875
|
+
# request = Google::Cloud::Compute::V1::GetIamPolicyRegionNetworkFirewallPolicyRequest.new
|
|
876
|
+
#
|
|
877
|
+
# # Call the get_iam_policy method.
|
|
878
|
+
# result = client.get_iam_policy request
|
|
879
|
+
#
|
|
880
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
|
881
|
+
# p result
|
|
882
|
+
#
|
|
755
883
|
def get_iam_policy request, options = nil
|
|
756
884
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
757
885
|
|
|
@@ -820,6 +948,22 @@ module Google
|
|
|
820
948
|
# @return [::Google::Cloud::Compute::V1::FirewallPolicyRule]
|
|
821
949
|
#
|
|
822
950
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
951
|
+
#
|
|
952
|
+
# @example Basic example
|
|
953
|
+
# require "google/cloud/compute/v1"
|
|
954
|
+
#
|
|
955
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
956
|
+
# client = Google::Cloud::Compute::V1::RegionNetworkFirewallPolicies::Rest::Client.new
|
|
957
|
+
#
|
|
958
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
959
|
+
# request = Google::Cloud::Compute::V1::GetRuleRegionNetworkFirewallPolicyRequest.new
|
|
960
|
+
#
|
|
961
|
+
# # Call the get_rule method.
|
|
962
|
+
# result = client.get_rule request
|
|
963
|
+
#
|
|
964
|
+
# # The returned object is of type Google::Cloud::Compute::V1::FirewallPolicyRule.
|
|
965
|
+
# p result
|
|
966
|
+
#
|
|
823
967
|
def get_rule request, options = nil
|
|
824
968
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
825
969
|
|
|
@@ -888,6 +1032,22 @@ module Google
|
|
|
888
1032
|
# @return [::Gapic::GenericLRO::Operation]
|
|
889
1033
|
#
|
|
890
1034
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1035
|
+
#
|
|
1036
|
+
# @example Basic example
|
|
1037
|
+
# require "google/cloud/compute/v1"
|
|
1038
|
+
#
|
|
1039
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1040
|
+
# client = Google::Cloud::Compute::V1::RegionNetworkFirewallPolicies::Rest::Client.new
|
|
1041
|
+
#
|
|
1042
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1043
|
+
# request = Google::Cloud::Compute::V1::InsertRegionNetworkFirewallPolicyRequest.new
|
|
1044
|
+
#
|
|
1045
|
+
# # Call the insert method.
|
|
1046
|
+
# result = client.insert request
|
|
1047
|
+
#
|
|
1048
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
1049
|
+
# p result
|
|
1050
|
+
#
|
|
891
1051
|
def insert request, options = nil
|
|
892
1052
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
893
1053
|
|
|
@@ -971,6 +1131,22 @@ module Google
|
|
|
971
1131
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::FirewallPolicy>]
|
|
972
1132
|
#
|
|
973
1133
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1134
|
+
#
|
|
1135
|
+
# @example Basic example
|
|
1136
|
+
# require "google/cloud/compute/v1"
|
|
1137
|
+
#
|
|
1138
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1139
|
+
# client = Google::Cloud::Compute::V1::RegionNetworkFirewallPolicies::Rest::Client.new
|
|
1140
|
+
#
|
|
1141
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1142
|
+
# request = Google::Cloud::Compute::V1::ListRegionNetworkFirewallPoliciesRequest.new
|
|
1143
|
+
#
|
|
1144
|
+
# # Call the list method.
|
|
1145
|
+
# result = client.list request
|
|
1146
|
+
#
|
|
1147
|
+
# # The returned object is of type Google::Cloud::Compute::V1::FirewallPolicyList.
|
|
1148
|
+
# p result
|
|
1149
|
+
#
|
|
974
1150
|
def list request, options = nil
|
|
975
1151
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
976
1152
|
|
|
@@ -1042,6 +1218,22 @@ module Google
|
|
|
1042
1218
|
# @return [::Gapic::GenericLRO::Operation]
|
|
1043
1219
|
#
|
|
1044
1220
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1221
|
+
#
|
|
1222
|
+
# @example Basic example
|
|
1223
|
+
# require "google/cloud/compute/v1"
|
|
1224
|
+
#
|
|
1225
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1226
|
+
# client = Google::Cloud::Compute::V1::RegionNetworkFirewallPolicies::Rest::Client.new
|
|
1227
|
+
#
|
|
1228
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1229
|
+
# request = Google::Cloud::Compute::V1::PatchRegionNetworkFirewallPolicyRequest.new
|
|
1230
|
+
#
|
|
1231
|
+
# # Call the patch method.
|
|
1232
|
+
# result = client.patch request
|
|
1233
|
+
#
|
|
1234
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
1235
|
+
# p result
|
|
1236
|
+
#
|
|
1045
1237
|
def patch request, options = nil
|
|
1046
1238
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1047
1239
|
|
|
@@ -1123,6 +1315,22 @@ module Google
|
|
|
1123
1315
|
# @return [::Gapic::GenericLRO::Operation]
|
|
1124
1316
|
#
|
|
1125
1317
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1318
|
+
#
|
|
1319
|
+
# @example Basic example
|
|
1320
|
+
# require "google/cloud/compute/v1"
|
|
1321
|
+
#
|
|
1322
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1323
|
+
# client = Google::Cloud::Compute::V1::RegionNetworkFirewallPolicies::Rest::Client.new
|
|
1324
|
+
#
|
|
1325
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1326
|
+
# request = Google::Cloud::Compute::V1::PatchRuleRegionNetworkFirewallPolicyRequest.new
|
|
1327
|
+
#
|
|
1328
|
+
# # Call the patch_rule method.
|
|
1329
|
+
# result = client.patch_rule request
|
|
1330
|
+
#
|
|
1331
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
1332
|
+
# p result
|
|
1333
|
+
#
|
|
1126
1334
|
def patch_rule request, options = nil
|
|
1127
1335
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1128
1336
|
|
|
@@ -1202,6 +1410,22 @@ module Google
|
|
|
1202
1410
|
# @return [::Gapic::GenericLRO::Operation]
|
|
1203
1411
|
#
|
|
1204
1412
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1413
|
+
#
|
|
1414
|
+
# @example Basic example
|
|
1415
|
+
# require "google/cloud/compute/v1"
|
|
1416
|
+
#
|
|
1417
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1418
|
+
# client = Google::Cloud::Compute::V1::RegionNetworkFirewallPolicies::Rest::Client.new
|
|
1419
|
+
#
|
|
1420
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1421
|
+
# request = Google::Cloud::Compute::V1::RemoveAssociationRegionNetworkFirewallPolicyRequest.new
|
|
1422
|
+
#
|
|
1423
|
+
# # Call the remove_association method.
|
|
1424
|
+
# result = client.remove_association request
|
|
1425
|
+
#
|
|
1426
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
1427
|
+
# p result
|
|
1428
|
+
#
|
|
1205
1429
|
def remove_association request, options = nil
|
|
1206
1430
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1207
1431
|
|
|
@@ -1281,6 +1505,22 @@ module Google
|
|
|
1281
1505
|
# @return [::Gapic::GenericLRO::Operation]
|
|
1282
1506
|
#
|
|
1283
1507
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1508
|
+
#
|
|
1509
|
+
# @example Basic example
|
|
1510
|
+
# require "google/cloud/compute/v1"
|
|
1511
|
+
#
|
|
1512
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1513
|
+
# client = Google::Cloud::Compute::V1::RegionNetworkFirewallPolicies::Rest::Client.new
|
|
1514
|
+
#
|
|
1515
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1516
|
+
# request = Google::Cloud::Compute::V1::RemoveRuleRegionNetworkFirewallPolicyRequest.new
|
|
1517
|
+
#
|
|
1518
|
+
# # Call the remove_rule method.
|
|
1519
|
+
# result = client.remove_rule request
|
|
1520
|
+
#
|
|
1521
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
1522
|
+
# p result
|
|
1523
|
+
#
|
|
1284
1524
|
def remove_rule request, options = nil
|
|
1285
1525
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1286
1526
|
|
|
@@ -1358,6 +1598,22 @@ module Google
|
|
|
1358
1598
|
# @return [::Google::Cloud::Compute::V1::Policy]
|
|
1359
1599
|
#
|
|
1360
1600
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1601
|
+
#
|
|
1602
|
+
# @example Basic example
|
|
1603
|
+
# require "google/cloud/compute/v1"
|
|
1604
|
+
#
|
|
1605
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1606
|
+
# client = Google::Cloud::Compute::V1::RegionNetworkFirewallPolicies::Rest::Client.new
|
|
1607
|
+
#
|
|
1608
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1609
|
+
# request = Google::Cloud::Compute::V1::SetIamPolicyRegionNetworkFirewallPolicyRequest.new
|
|
1610
|
+
#
|
|
1611
|
+
# # Call the set_iam_policy method.
|
|
1612
|
+
# result = client.set_iam_policy request
|
|
1613
|
+
#
|
|
1614
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Policy.
|
|
1615
|
+
# p result
|
|
1616
|
+
#
|
|
1361
1617
|
def set_iam_policy request, options = nil
|
|
1362
1618
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1363
1619
|
|
|
@@ -1426,6 +1682,22 @@ module Google
|
|
|
1426
1682
|
# @return [::Google::Cloud::Compute::V1::TestPermissionsResponse]
|
|
1427
1683
|
#
|
|
1428
1684
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
1685
|
+
#
|
|
1686
|
+
# @example Basic example
|
|
1687
|
+
# require "google/cloud/compute/v1"
|
|
1688
|
+
#
|
|
1689
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
1690
|
+
# client = Google::Cloud::Compute::V1::RegionNetworkFirewallPolicies::Rest::Client.new
|
|
1691
|
+
#
|
|
1692
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
1693
|
+
# request = Google::Cloud::Compute::V1::TestIamPermissionsRegionNetworkFirewallPolicyRequest.new
|
|
1694
|
+
#
|
|
1695
|
+
# # Call the test_iam_permissions method.
|
|
1696
|
+
# result = client.test_iam_permissions request
|
|
1697
|
+
#
|
|
1698
|
+
# # The returned object is of type Google::Cloud::Compute::V1::TestPermissionsResponse.
|
|
1699
|
+
# p result
|
|
1700
|
+
#
|
|
1429
1701
|
def test_iam_permissions request, options = nil
|
|
1430
1702
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
1431
1703
|
|
|
@@ -194,6 +194,22 @@ module Google
|
|
|
194
194
|
# @return [::Gapic::GenericLRO::Operation]
|
|
195
195
|
#
|
|
196
196
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
197
|
+
#
|
|
198
|
+
# @example Basic example
|
|
199
|
+
# require "google/cloud/compute/v1"
|
|
200
|
+
#
|
|
201
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
202
|
+
# client = Google::Cloud::Compute::V1::RegionNotificationEndpoints::Rest::Client.new
|
|
203
|
+
#
|
|
204
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
205
|
+
# request = Google::Cloud::Compute::V1::DeleteRegionNotificationEndpointRequest.new
|
|
206
|
+
#
|
|
207
|
+
# # Call the delete method.
|
|
208
|
+
# result = client.delete request
|
|
209
|
+
#
|
|
210
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
211
|
+
# p result
|
|
212
|
+
#
|
|
197
213
|
def delete request, options = nil
|
|
198
214
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
199
215
|
|
|
@@ -269,6 +285,22 @@ module Google
|
|
|
269
285
|
# @return [::Google::Cloud::Compute::V1::NotificationEndpoint]
|
|
270
286
|
#
|
|
271
287
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
288
|
+
#
|
|
289
|
+
# @example Basic example
|
|
290
|
+
# require "google/cloud/compute/v1"
|
|
291
|
+
#
|
|
292
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
293
|
+
# client = Google::Cloud::Compute::V1::RegionNotificationEndpoints::Rest::Client.new
|
|
294
|
+
#
|
|
295
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
296
|
+
# request = Google::Cloud::Compute::V1::GetRegionNotificationEndpointRequest.new
|
|
297
|
+
#
|
|
298
|
+
# # Call the get method.
|
|
299
|
+
# result = client.get request
|
|
300
|
+
#
|
|
301
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NotificationEndpoint.
|
|
302
|
+
# p result
|
|
303
|
+
#
|
|
272
304
|
def get request, options = nil
|
|
273
305
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
274
306
|
|
|
@@ -337,6 +369,22 @@ module Google
|
|
|
337
369
|
# @return [::Gapic::GenericLRO::Operation]
|
|
338
370
|
#
|
|
339
371
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
372
|
+
#
|
|
373
|
+
# @example Basic example
|
|
374
|
+
# require "google/cloud/compute/v1"
|
|
375
|
+
#
|
|
376
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
377
|
+
# client = Google::Cloud::Compute::V1::RegionNotificationEndpoints::Rest::Client.new
|
|
378
|
+
#
|
|
379
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
380
|
+
# request = Google::Cloud::Compute::V1::InsertRegionNotificationEndpointRequest.new
|
|
381
|
+
#
|
|
382
|
+
# # Call the insert method.
|
|
383
|
+
# result = client.insert request
|
|
384
|
+
#
|
|
385
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
386
|
+
# p result
|
|
387
|
+
#
|
|
340
388
|
def insert request, options = nil
|
|
341
389
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
342
390
|
|
|
@@ -420,6 +468,22 @@ module Google
|
|
|
420
468
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::NotificationEndpoint>]
|
|
421
469
|
#
|
|
422
470
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
471
|
+
#
|
|
472
|
+
# @example Basic example
|
|
473
|
+
# require "google/cloud/compute/v1"
|
|
474
|
+
#
|
|
475
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
476
|
+
# client = Google::Cloud::Compute::V1::RegionNotificationEndpoints::Rest::Client.new
|
|
477
|
+
#
|
|
478
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
479
|
+
# request = Google::Cloud::Compute::V1::ListRegionNotificationEndpointsRequest.new
|
|
480
|
+
#
|
|
481
|
+
# # Call the list method.
|
|
482
|
+
# result = client.list request
|
|
483
|
+
#
|
|
484
|
+
# # The returned object is of type Google::Cloud::Compute::V1::NotificationEndpointList.
|
|
485
|
+
# p result
|
|
486
|
+
#
|
|
423
487
|
def list request, options = nil
|
|
424
488
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
425
489
|
|
|
@@ -178,6 +178,22 @@ module Google
|
|
|
178
178
|
# @return [::Google::Cloud::Compute::V1::DeleteRegionOperationResponse]
|
|
179
179
|
#
|
|
180
180
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
181
|
+
#
|
|
182
|
+
# @example Basic example
|
|
183
|
+
# require "google/cloud/compute/v1"
|
|
184
|
+
#
|
|
185
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
186
|
+
# client = Google::Cloud::Compute::V1::RegionOperations::Rest::Client.new
|
|
187
|
+
#
|
|
188
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
189
|
+
# request = Google::Cloud::Compute::V1::DeleteRegionOperationRequest.new
|
|
190
|
+
#
|
|
191
|
+
# # Call the delete method.
|
|
192
|
+
# result = client.delete request
|
|
193
|
+
#
|
|
194
|
+
# # The returned object is of type Google::Cloud::Compute::V1::DeleteRegionOperationResponse.
|
|
195
|
+
# p result
|
|
196
|
+
#
|
|
181
197
|
def delete request, options = nil
|
|
182
198
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
183
199
|
|
|
@@ -244,6 +260,22 @@ module Google
|
|
|
244
260
|
# @return [::Google::Cloud::Compute::V1::Operation]
|
|
245
261
|
#
|
|
246
262
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
263
|
+
#
|
|
264
|
+
# @example Basic example
|
|
265
|
+
# require "google/cloud/compute/v1"
|
|
266
|
+
#
|
|
267
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
268
|
+
# client = Google::Cloud::Compute::V1::RegionOperations::Rest::Client.new
|
|
269
|
+
#
|
|
270
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
271
|
+
# request = Google::Cloud::Compute::V1::GetRegionOperationRequest.new
|
|
272
|
+
#
|
|
273
|
+
# # Call the get method.
|
|
274
|
+
# result = client.get request
|
|
275
|
+
#
|
|
276
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
277
|
+
# p result
|
|
278
|
+
#
|
|
247
279
|
def get request, options = nil
|
|
248
280
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
249
281
|
|
|
@@ -318,6 +350,22 @@ module Google
|
|
|
318
350
|
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Compute::V1::Operation>]
|
|
319
351
|
#
|
|
320
352
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
353
|
+
#
|
|
354
|
+
# @example Basic example
|
|
355
|
+
# require "google/cloud/compute/v1"
|
|
356
|
+
#
|
|
357
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
358
|
+
# client = Google::Cloud::Compute::V1::RegionOperations::Rest::Client.new
|
|
359
|
+
#
|
|
360
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
361
|
+
# request = Google::Cloud::Compute::V1::ListRegionOperationsRequest.new
|
|
362
|
+
#
|
|
363
|
+
# # Call the list method.
|
|
364
|
+
# result = client.list request
|
|
365
|
+
#
|
|
366
|
+
# # The returned object is of type Google::Cloud::Compute::V1::OperationList.
|
|
367
|
+
# p result
|
|
368
|
+
#
|
|
321
369
|
def list request, options = nil
|
|
322
370
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
323
371
|
|
|
@@ -385,6 +433,22 @@ module Google
|
|
|
385
433
|
# @return [::Google::Cloud::Compute::V1::Operation]
|
|
386
434
|
#
|
|
387
435
|
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
|
436
|
+
#
|
|
437
|
+
# @example Basic example
|
|
438
|
+
# require "google/cloud/compute/v1"
|
|
439
|
+
#
|
|
440
|
+
# # Create a client object. The client can be reused for multiple calls.
|
|
441
|
+
# client = Google::Cloud::Compute::V1::RegionOperations::Rest::Client.new
|
|
442
|
+
#
|
|
443
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
|
444
|
+
# request = Google::Cloud::Compute::V1::WaitRegionOperationRequest.new
|
|
445
|
+
#
|
|
446
|
+
# # Call the wait method.
|
|
447
|
+
# result = client.wait request
|
|
448
|
+
#
|
|
449
|
+
# # The returned object is of type Google::Cloud::Compute::V1::Operation.
|
|
450
|
+
# p result
|
|
451
|
+
#
|
|
388
452
|
def wait request, options = nil
|
|
389
453
|
raise ::ArgumentError, "request must be provided" if request.nil?
|
|
390
454
|
|