google-cloud-compute-v1 1.5.0 → 1.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/AUTHENTICATION.md +1 -1
- data/lib/google/cloud/compute/v1/accelerator_types/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/addresses/rest/client.rb +87 -0
- data/lib/google/cloud/compute/v1/addresses/rest/service_stub.rb +74 -13
- data/lib/google/cloud/compute/v1/autoscalers/rest/service_stub.rb +17 -17
- data/lib/google/cloud/compute/v1/backend_buckets/rest/service_stub.rb +18 -18
- data/lib/google/cloud/compute/v1/backend_services/rest/client.rb +151 -0
- data/lib/google/cloud/compute/v1/backend_services/rest/service_stub.rb +142 -23
- data/lib/google/cloud/compute/v1/compute_pb.rb +357 -0
- data/lib/google/cloud/compute/v1/disk_types/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/disks/rest/service_stub.rb +37 -37
- data/lib/google/cloud/compute/v1/external_vpn_gateways/rest/service_stub.rb +12 -12
- data/lib/google/cloud/compute/v1/firewall_policies/rest/service_stub.rb +17 -17
- data/lib/google/cloud/compute/v1/firewalls/rest/service_stub.rb +12 -12
- data/lib/google/cloud/compute/v1/forwarding_rules/rest/service_stub.rb +22 -22
- data/lib/google/cloud/compute/v1/global_addresses/rest/client.rb +82 -0
- data/lib/google/cloud/compute/v1/global_addresses/rest/service_stub.rb +68 -8
- data/lib/google/cloud/compute/v1/global_forwarding_rules/rest/service_stub.rb +14 -14
- data/lib/google/cloud/compute/v1/global_network_endpoint_groups/rest/service_stub.rb +14 -14
- data/lib/google/cloud/compute/v1/global_operations/rest/service_stub.rb +10 -10
- data/lib/google/cloud/compute/v1/global_operations/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/global_operations.rb +0 -1
- data/lib/google/cloud/compute/v1/global_organization_operations/rest/service_stub.rb +4 -4
- data/lib/google/cloud/compute/v1/global_organization_operations/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/global_organization_operations.rb +0 -1
- data/lib/google/cloud/compute/v1/global_public_delegated_prefixes/rest/service_stub.rb +10 -10
- data/lib/google/cloud/compute/v1/health_checks/rest/service_stub.rb +13 -13
- data/lib/google/cloud/compute/v1/image_family_views/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/images/rest/service_stub.rb +22 -22
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/instance_group_managers/rest/service_stub.rb +58 -58
- data/lib/google/cloud/compute/v1/instance_groups/rest/service_stub.rb +25 -25
- data/lib/google/cloud/compute/v1/instance_templates/rest/service_stub.rb +14 -14
- data/lib/google/cloud/compute/v1/instances/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/instances/rest/service_stub.rb +132 -132
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/client.rb +87 -0
- data/lib/google/cloud/compute/v1/interconnect_attachments/rest/service_stub.rb +77 -16
- data/lib/google/cloud/compute/v1/interconnect_locations/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/interconnects/rest/client.rb +82 -0
- data/lib/google/cloud/compute/v1/interconnects/rest/service_stub.rb +72 -12
- data/lib/google/cloud/compute/v1/license_codes/rest/service_stub.rb +6 -6
- data/lib/google/cloud/compute/v1/licenses/rest/service_stub.rb +14 -14
- data/lib/google/cloud/compute/v1/machine_images/rest/service_stub.rb +14 -14
- data/lib/google/cloud/compute/v1/machine_types/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/network_edge_security_services/rest/service_stub.rb +14 -14
- data/lib/google/cloud/compute/v1/network_endpoint_groups/rest/service_stub.rb +25 -25
- data/lib/google/cloud/compute/v1/network_firewall_policies/rest/service_stub.rb +32 -32
- data/lib/google/cloud/compute/v1/networks/rest/service_stub.rb +22 -22
- data/lib/google/cloud/compute/v1/node_groups/rest/service_stub.rb +37 -37
- data/lib/google/cloud/compute/v1/node_templates/rest/service_stub.rb +22 -22
- data/lib/google/cloud/compute/v1/node_types/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/packet_mirrorings/rest/service_stub.rb +19 -19
- data/lib/google/cloud/compute/v1/projects/rest/service_stub.rb +15 -15
- data/lib/google/cloud/compute/v1/public_advertised_prefixes/rest/service_stub.rb +10 -10
- data/lib/google/cloud/compute/v1/public_delegated_prefixes/rest/service_stub.rb +16 -16
- data/lib/google/cloud/compute/v1/region_autoscalers/rest/service_stub.rb +16 -16
- data/lib/google/cloud/compute/v1/region_backend_services/rest/client.rb +155 -0
- data/lib/google/cloud/compute/v1/region_backend_services/rest/service_stub.rb +142 -21
- data/lib/google/cloud/compute/v1/region_commitments/rest/service_stub.rb +13 -13
- data/lib/google/cloud/compute/v1/region_disk_types/rest/service_stub.rb +7 -7
- data/lib/google/cloud/compute/v1/region_disks/rest/service_stub.rb +36 -36
- data/lib/google/cloud/compute/v1/region_health_check_services/rest/service_stub.rb +15 -15
- data/lib/google/cloud/compute/v1/region_health_checks/rest/service_stub.rb +18 -18
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/client.rb +1 -1
- data/lib/google/cloud/compute/v1/region_instance_group_managers/rest/service_stub.rb +57 -57
- data/lib/google/cloud/compute/v1/region_instance_groups/rest/service_stub.rb +13 -13
- data/lib/google/cloud/compute/v1/region_instances/rest/service_stub.rb +4 -4
- data/lib/google/cloud/compute/v1/region_network_endpoint_groups/rest/service_stub.rb +12 -12
- data/lib/google/cloud/compute/v1/region_network_firewall_policies/rest/service_stub.rb +50 -50
- data/lib/google/cloud/compute/v1/region_notification_endpoints/rest/service_stub.rb +12 -12
- data/lib/google/cloud/compute/v1/region_operations/rest/service_stub.rb +13 -13
- data/lib/google/cloud/compute/v1/region_operations/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/region_operations.rb +0 -1
- data/lib/google/cloud/compute/v1/region_security_policies/rest/service_stub.rb +15 -15
- data/lib/google/cloud/compute/v1/region_ssl_certificates/rest/service_stub.rb +12 -12
- data/lib/google/cloud/compute/v1/region_ssl_policies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/client.rb +759 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest/service_stub.rb +408 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/region_ssl_policies.rb +47 -0
- data/lib/google/cloud/compute/v1/region_target_http_proxies/rest/service_stub.rb +15 -15
- data/lib/google/cloud/compute/v1/region_target_https_proxies/rest/service_stub.rb +21 -21
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/credentials.rb +52 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/client.rb +587 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest/service_stub.rb +288 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies/rest.rb +33 -0
- data/lib/google/cloud/compute/v1/region_target_tcp_proxies.rb +47 -0
- data/lib/google/cloud/compute/v1/region_url_maps/rest/service_stub.rb +21 -21
- data/lib/google/cloud/compute/v1/regions/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1/reservations/rest/service_stub.rb +28 -28
- data/lib/google/cloud/compute/v1/resource_policies/rest/service_stub.rb +22 -22
- data/lib/google/cloud/compute/v1/routers/rest/service_stub.rb +28 -28
- data/lib/google/cloud/compute/v1/routes/rest/service_stub.rb +8 -8
- data/lib/google/cloud/compute/v1/security_policies/rest/client.rb +82 -0
- data/lib/google/cloud/compute/v1/security_policies/rest/service_stub.rb +80 -20
- data/lib/google/cloud/compute/v1/service_attachments/rest/service_stub.rb +25 -25
- data/lib/google/cloud/compute/v1/snapshots/rest/service_stub.rb +16 -16
- data/lib/google/cloud/compute/v1/ssl_certificates/rest/service_stub.rb +9 -9
- data/lib/google/cloud/compute/v1/ssl_policies/rest/client.rb +86 -0
- data/lib/google/cloud/compute/v1/ssl_policies/rest/service_stub.rb +69 -11
- data/lib/google/cloud/compute/v1/subnetworks/rest/service_stub.rb +32 -32
- data/lib/google/cloud/compute/v1/target_grpc_proxies/rest/service_stub.rb +10 -10
- data/lib/google/cloud/compute/v1/target_http_proxies/rest/service_stub.rb +13 -13
- data/lib/google/cloud/compute/v1/target_https_proxies/rest/service_stub.rb +21 -21
- data/lib/google/cloud/compute/v1/target_instances/rest/service_stub.rb +13 -13
- data/lib/google/cloud/compute/v1/target_pools/rest/service_stub.rb +31 -31
- data/lib/google/cloud/compute/v1/target_ssl_proxies/rest/service_stub.rb +18 -18
- data/lib/google/cloud/compute/v1/target_tcp_proxies/rest/service_stub.rb +12 -12
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/client.rb +87 -0
- data/lib/google/cloud/compute/v1/target_vpn_gateways/rest/service_stub.rb +74 -13
- data/lib/google/cloud/compute/v1/url_maps/rest/service_stub.rb +17 -17
- data/lib/google/cloud/compute/v1/version.rb +1 -1
- data/lib/google/cloud/compute/v1/vpn_gateways/rest/service_stub.rb +22 -22
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/client.rb +87 -0
- data/lib/google/cloud/compute/v1/vpn_tunnels/rest/service_stub.rb +74 -13
- data/lib/google/cloud/compute/v1/zone_operations/rest/service_stub.rb +13 -13
- data/lib/google/cloud/compute/v1/zone_operations/rest.rb +1 -0
- data/lib/google/cloud/compute/v1/zone_operations.rb +0 -1
- data/lib/google/cloud/compute/v1/zones/rest/service_stub.rb +5 -5
- data/lib/google/cloud/compute/v1.rb +2 -0
- data/proto_docs/google/cloud/compute/v1/compute.rb +968 -39
- metadata +12 -2
@@ -26,8 +26,8 @@ module Google
|
|
26
26
|
module Rest
|
27
27
|
##
|
28
28
|
# REST service stub for the TargetPools service.
|
29
|
-
#
|
30
|
-
# including transcoding, making the REST call and deserialing the response
|
29
|
+
# Service stub contains baseline method implementations
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
33
|
def initialize endpoint:, credentials:
|
@@ -464,9 +464,9 @@ module Google
|
|
464
464
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools/{target_pool}/addHealthCheck",
|
465
465
|
body: "target_pools_add_health_check_request_resource",
|
466
466
|
matches: [
|
467
|
-
["project", %r{[^/]
|
468
|
-
["region", %r{[^/]
|
469
|
-
["target_pool", %r{[^/]
|
467
|
+
["project", %r{^[^/]+/?$}, false],
|
468
|
+
["region", %r{^[^/]+/?$}, false],
|
469
|
+
["target_pool", %r{^[^/]+/?$}, false]
|
470
470
|
]
|
471
471
|
)
|
472
472
|
transcoder.transcode request_pb
|
@@ -488,9 +488,9 @@ module Google
|
|
488
488
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools/{target_pool}/addInstance",
|
489
489
|
body: "target_pools_add_instance_request_resource",
|
490
490
|
matches: [
|
491
|
-
["project", %r{[^/]
|
492
|
-
["region", %r{[^/]
|
493
|
-
["target_pool", %r{[^/]
|
491
|
+
["project", %r{^[^/]+/?$}, false],
|
492
|
+
["region", %r{^[^/]+/?$}, false],
|
493
|
+
["target_pool", %r{^[^/]+/?$}, false]
|
494
494
|
]
|
495
495
|
)
|
496
496
|
transcoder.transcode request_pb
|
@@ -511,7 +511,7 @@ module Google
|
|
511
511
|
uri_method: :get,
|
512
512
|
uri_template: "/compute/v1/projects/{project}/aggregated/targetPools",
|
513
513
|
matches: [
|
514
|
-
["project", %r{[^/]
|
514
|
+
["project", %r{^[^/]+/?$}, false]
|
515
515
|
]
|
516
516
|
)
|
517
517
|
transcoder.transcode request_pb
|
@@ -532,9 +532,9 @@ module Google
|
|
532
532
|
uri_method: :delete,
|
533
533
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools/{target_pool}",
|
534
534
|
matches: [
|
535
|
-
["project", %r{[^/]
|
536
|
-
["region", %r{[^/]
|
537
|
-
["target_pool", %r{[^/]
|
535
|
+
["project", %r{^[^/]+/?$}, false],
|
536
|
+
["region", %r{^[^/]+/?$}, false],
|
537
|
+
["target_pool", %r{^[^/]+/?$}, false]
|
538
538
|
]
|
539
539
|
)
|
540
540
|
transcoder.transcode request_pb
|
@@ -555,9 +555,9 @@ module Google
|
|
555
555
|
uri_method: :get,
|
556
556
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools/{target_pool}",
|
557
557
|
matches: [
|
558
|
-
["project", %r{[^/]
|
559
|
-
["region", %r{[^/]
|
560
|
-
["target_pool", %r{[^/]
|
558
|
+
["project", %r{^[^/]+/?$}, false],
|
559
|
+
["region", %r{^[^/]+/?$}, false],
|
560
|
+
["target_pool", %r{^[^/]+/?$}, false]
|
561
561
|
]
|
562
562
|
)
|
563
563
|
transcoder.transcode request_pb
|
@@ -579,9 +579,9 @@ module Google
|
|
579
579
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools/{target_pool}/getHealth",
|
580
580
|
body: "instance_reference_resource",
|
581
581
|
matches: [
|
582
|
-
["project", %r{[^/]
|
583
|
-
["region", %r{[^/]
|
584
|
-
["target_pool", %r{[^/]
|
582
|
+
["project", %r{^[^/]+/?$}, false],
|
583
|
+
["region", %r{^[^/]+/?$}, false],
|
584
|
+
["target_pool", %r{^[^/]+/?$}, false]
|
585
585
|
]
|
586
586
|
)
|
587
587
|
transcoder.transcode request_pb
|
@@ -603,8 +603,8 @@ module Google
|
|
603
603
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools",
|
604
604
|
body: "target_pool_resource",
|
605
605
|
matches: [
|
606
|
-
["project", %r{[^/]
|
607
|
-
["region", %r{[^/]
|
606
|
+
["project", %r{^[^/]+/?$}, false],
|
607
|
+
["region", %r{^[^/]+/?$}, false]
|
608
608
|
]
|
609
609
|
)
|
610
610
|
transcoder.transcode request_pb
|
@@ -625,8 +625,8 @@ module Google
|
|
625
625
|
uri_method: :get,
|
626
626
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools",
|
627
627
|
matches: [
|
628
|
-
["project", %r{[^/]
|
629
|
-
["region", %r{[^/]
|
628
|
+
["project", %r{^[^/]+/?$}, false],
|
629
|
+
["region", %r{^[^/]+/?$}, false]
|
630
630
|
]
|
631
631
|
)
|
632
632
|
transcoder.transcode request_pb
|
@@ -648,9 +648,9 @@ module Google
|
|
648
648
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools/{target_pool}/removeHealthCheck",
|
649
649
|
body: "target_pools_remove_health_check_request_resource",
|
650
650
|
matches: [
|
651
|
-
["project", %r{[^/]
|
652
|
-
["region", %r{[^/]
|
653
|
-
["target_pool", %r{[^/]
|
651
|
+
["project", %r{^[^/]+/?$}, false],
|
652
|
+
["region", %r{^[^/]+/?$}, false],
|
653
|
+
["target_pool", %r{^[^/]+/?$}, false]
|
654
654
|
]
|
655
655
|
)
|
656
656
|
transcoder.transcode request_pb
|
@@ -672,9 +672,9 @@ module Google
|
|
672
672
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools/{target_pool}/removeInstance",
|
673
673
|
body: "target_pools_remove_instance_request_resource",
|
674
674
|
matches: [
|
675
|
-
["project", %r{[^/]
|
676
|
-
["region", %r{[^/]
|
677
|
-
["target_pool", %r{[^/]
|
675
|
+
["project", %r{^[^/]+/?$}, false],
|
676
|
+
["region", %r{^[^/]+/?$}, false],
|
677
|
+
["target_pool", %r{^[^/]+/?$}, false]
|
678
678
|
]
|
679
679
|
)
|
680
680
|
transcoder.transcode request_pb
|
@@ -696,9 +696,9 @@ module Google
|
|
696
696
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/targetPools/{target_pool}/setBackup",
|
697
697
|
body: "target_reference_resource",
|
698
698
|
matches: [
|
699
|
-
["project", %r{[^/]
|
700
|
-
["region", %r{[^/]
|
701
|
-
["target_pool", %r{[^/]
|
699
|
+
["project", %r{^[^/]+/?$}, false],
|
700
|
+
["region", %r{^[^/]+/?$}, false],
|
701
|
+
["target_pool", %r{^[^/]+/?$}, false]
|
702
702
|
]
|
703
703
|
)
|
704
704
|
transcoder.transcode request_pb
|
@@ -26,8 +26,8 @@ module Google
|
|
26
26
|
module Rest
|
27
27
|
##
|
28
28
|
# REST service stub for the TargetSslProxies service.
|
29
|
-
#
|
30
|
-
# including transcoding, making the REST call and deserialing the response
|
29
|
+
# Service stub contains baseline method implementations
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
33
|
def initialize endpoint:, credentials:
|
@@ -389,8 +389,8 @@ module Google
|
|
389
389
|
uri_method: :delete,
|
390
390
|
uri_template: "/compute/v1/projects/{project}/global/targetSslProxies/{target_ssl_proxy}",
|
391
391
|
matches: [
|
392
|
-
["project", %r{[^/]
|
393
|
-
["target_ssl_proxy", %r{[^/]
|
392
|
+
["project", %r{^[^/]+/?$}, false],
|
393
|
+
["target_ssl_proxy", %r{^[^/]+/?$}, false]
|
394
394
|
]
|
395
395
|
)
|
396
396
|
transcoder.transcode request_pb
|
@@ -411,8 +411,8 @@ module Google
|
|
411
411
|
uri_method: :get,
|
412
412
|
uri_template: "/compute/v1/projects/{project}/global/targetSslProxies/{target_ssl_proxy}",
|
413
413
|
matches: [
|
414
|
-
["project", %r{[^/]
|
415
|
-
["target_ssl_proxy", %r{[^/]
|
414
|
+
["project", %r{^[^/]+/?$}, false],
|
415
|
+
["target_ssl_proxy", %r{^[^/]+/?$}, false]
|
416
416
|
]
|
417
417
|
)
|
418
418
|
transcoder.transcode request_pb
|
@@ -434,7 +434,7 @@ module Google
|
|
434
434
|
uri_template: "/compute/v1/projects/{project}/global/targetSslProxies",
|
435
435
|
body: "target_ssl_proxy_resource",
|
436
436
|
matches: [
|
437
|
-
["project", %r{[^/]
|
437
|
+
["project", %r{^[^/]+/?$}, false]
|
438
438
|
]
|
439
439
|
)
|
440
440
|
transcoder.transcode request_pb
|
@@ -455,7 +455,7 @@ module Google
|
|
455
455
|
uri_method: :get,
|
456
456
|
uri_template: "/compute/v1/projects/{project}/global/targetSslProxies",
|
457
457
|
matches: [
|
458
|
-
["project", %r{[^/]
|
458
|
+
["project", %r{^[^/]+/?$}, false]
|
459
459
|
]
|
460
460
|
)
|
461
461
|
transcoder.transcode request_pb
|
@@ -477,8 +477,8 @@ module Google
|
|
477
477
|
uri_template: "/compute/v1/projects/{project}/global/targetSslProxies/{target_ssl_proxy}/setBackendService",
|
478
478
|
body: "target_ssl_proxies_set_backend_service_request_resource",
|
479
479
|
matches: [
|
480
|
-
["project", %r{[^/]
|
481
|
-
["target_ssl_proxy", %r{[^/]
|
480
|
+
["project", %r{^[^/]+/?$}, false],
|
481
|
+
["target_ssl_proxy", %r{^[^/]+/?$}, false]
|
482
482
|
]
|
483
483
|
)
|
484
484
|
transcoder.transcode request_pb
|
@@ -500,8 +500,8 @@ module Google
|
|
500
500
|
uri_template: "/compute/v1/projects/{project}/global/targetSslProxies/{target_ssl_proxy}/setCertificateMap",
|
501
501
|
body: "target_ssl_proxies_set_certificate_map_request_resource",
|
502
502
|
matches: [
|
503
|
-
["project", %r{[^/]
|
504
|
-
["target_ssl_proxy", %r{[^/]
|
503
|
+
["project", %r{^[^/]+/?$}, false],
|
504
|
+
["target_ssl_proxy", %r{^[^/]+/?$}, false]
|
505
505
|
]
|
506
506
|
)
|
507
507
|
transcoder.transcode request_pb
|
@@ -523,8 +523,8 @@ module Google
|
|
523
523
|
uri_template: "/compute/v1/projects/{project}/global/targetSslProxies/{target_ssl_proxy}/setProxyHeader",
|
524
524
|
body: "target_ssl_proxies_set_proxy_header_request_resource",
|
525
525
|
matches: [
|
526
|
-
["project", %r{[^/]
|
527
|
-
["target_ssl_proxy", %r{[^/]
|
526
|
+
["project", %r{^[^/]+/?$}, false],
|
527
|
+
["target_ssl_proxy", %r{^[^/]+/?$}, false]
|
528
528
|
]
|
529
529
|
)
|
530
530
|
transcoder.transcode request_pb
|
@@ -546,8 +546,8 @@ module Google
|
|
546
546
|
uri_template: "/compute/v1/projects/{project}/global/targetSslProxies/{target_ssl_proxy}/setSslCertificates",
|
547
547
|
body: "target_ssl_proxies_set_ssl_certificates_request_resource",
|
548
548
|
matches: [
|
549
|
-
["project", %r{[^/]
|
550
|
-
["target_ssl_proxy", %r{[^/]
|
549
|
+
["project", %r{^[^/]+/?$}, false],
|
550
|
+
["target_ssl_proxy", %r{^[^/]+/?$}, false]
|
551
551
|
]
|
552
552
|
)
|
553
553
|
transcoder.transcode request_pb
|
@@ -569,8 +569,8 @@ module Google
|
|
569
569
|
uri_template: "/compute/v1/projects/{project}/global/targetSslProxies/{target_ssl_proxy}/setSslPolicy",
|
570
570
|
body: "ssl_policy_reference_resource",
|
571
571
|
matches: [
|
572
|
-
["project", %r{[^/]
|
573
|
-
["target_ssl_proxy", %r{[^/]
|
572
|
+
["project", %r{^[^/]+/?$}, false],
|
573
|
+
["target_ssl_proxy", %r{^[^/]+/?$}, false]
|
574
574
|
]
|
575
575
|
)
|
576
576
|
transcoder.transcode request_pb
|
@@ -26,8 +26,8 @@ module Google
|
|
26
26
|
module Rest
|
27
27
|
##
|
28
28
|
# REST service stub for the TargetTcpProxies service.
|
29
|
-
#
|
30
|
-
# including transcoding, making the REST call and deserialing the response
|
29
|
+
# Service stub contains baseline method implementations
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
33
|
def initialize endpoint:, credentials:
|
@@ -278,8 +278,8 @@ module Google
|
|
278
278
|
uri_method: :delete,
|
279
279
|
uri_template: "/compute/v1/projects/{project}/global/targetTcpProxies/{target_tcp_proxy}",
|
280
280
|
matches: [
|
281
|
-
["project", %r{[^/]
|
282
|
-
["target_tcp_proxy", %r{[^/]
|
281
|
+
["project", %r{^[^/]+/?$}, false],
|
282
|
+
["target_tcp_proxy", %r{^[^/]+/?$}, false]
|
283
283
|
]
|
284
284
|
)
|
285
285
|
transcoder.transcode request_pb
|
@@ -300,8 +300,8 @@ module Google
|
|
300
300
|
uri_method: :get,
|
301
301
|
uri_template: "/compute/v1/projects/{project}/global/targetTcpProxies/{target_tcp_proxy}",
|
302
302
|
matches: [
|
303
|
-
["project", %r{[^/]
|
304
|
-
["target_tcp_proxy", %r{[^/]
|
303
|
+
["project", %r{^[^/]+/?$}, false],
|
304
|
+
["target_tcp_proxy", %r{^[^/]+/?$}, false]
|
305
305
|
]
|
306
306
|
)
|
307
307
|
transcoder.transcode request_pb
|
@@ -323,7 +323,7 @@ module Google
|
|
323
323
|
uri_template: "/compute/v1/projects/{project}/global/targetTcpProxies",
|
324
324
|
body: "target_tcp_proxy_resource",
|
325
325
|
matches: [
|
326
|
-
["project", %r{[^/]
|
326
|
+
["project", %r{^[^/]+/?$}, false]
|
327
327
|
]
|
328
328
|
)
|
329
329
|
transcoder.transcode request_pb
|
@@ -344,7 +344,7 @@ module Google
|
|
344
344
|
uri_method: :get,
|
345
345
|
uri_template: "/compute/v1/projects/{project}/global/targetTcpProxies",
|
346
346
|
matches: [
|
347
|
-
["project", %r{[^/]
|
347
|
+
["project", %r{^[^/]+/?$}, false]
|
348
348
|
]
|
349
349
|
)
|
350
350
|
transcoder.transcode request_pb
|
@@ -366,8 +366,8 @@ module Google
|
|
366
366
|
uri_template: "/compute/v1/projects/{project}/global/targetTcpProxies/{target_tcp_proxy}/setBackendService",
|
367
367
|
body: "target_tcp_proxies_set_backend_service_request_resource",
|
368
368
|
matches: [
|
369
|
-
["project", %r{[^/]
|
370
|
-
["target_tcp_proxy", %r{[^/]
|
369
|
+
["project", %r{^[^/]+/?$}, false],
|
370
|
+
["target_tcp_proxy", %r{^[^/]+/?$}, false]
|
371
371
|
]
|
372
372
|
)
|
373
373
|
transcoder.transcode request_pb
|
@@ -389,8 +389,8 @@ module Google
|
|
389
389
|
uri_template: "/compute/v1/projects/{project}/global/targetTcpProxies/{target_tcp_proxy}/setProxyHeader",
|
390
390
|
body: "target_tcp_proxies_set_proxy_header_request_resource",
|
391
391
|
matches: [
|
392
|
-
["project", %r{[^/]
|
393
|
-
["target_tcp_proxy", %r{[^/]
|
392
|
+
["project", %r{^[^/]+/?$}, false],
|
393
|
+
["target_tcp_proxy", %r{^[^/]+/?$}, false]
|
394
394
|
]
|
395
395
|
)
|
396
396
|
transcoder.transcode request_pb
|
@@ -84,6 +84,8 @@ module Google
|
|
84
84
|
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
85
85
|
}
|
86
86
|
|
87
|
+
default_config.rpcs.set_labels.timeout = 600.0
|
88
|
+
|
87
89
|
default_config
|
88
90
|
end
|
89
91
|
yield @configure if block_given?
|
@@ -522,6 +524,84 @@ module Google
|
|
522
524
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
523
525
|
end
|
524
526
|
|
527
|
+
##
|
528
|
+
# Sets the labels on a TargetVpnGateway. To learn more about labels, read the Labeling Resources documentation.
|
529
|
+
#
|
530
|
+
# @overload set_labels(request, options = nil)
|
531
|
+
# Pass arguments to `set_labels` via a request object, either of type
|
532
|
+
# {::Google::Cloud::Compute::V1::SetLabelsTargetVpnGatewayRequest} or an equivalent Hash.
|
533
|
+
#
|
534
|
+
# @param request [::Google::Cloud::Compute::V1::SetLabelsTargetVpnGatewayRequest, ::Hash]
|
535
|
+
# A request object representing the call parameters. Required. To specify no
|
536
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
537
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
538
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
539
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
540
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
541
|
+
#
|
542
|
+
# @overload set_labels(project: nil, region: nil, region_set_labels_request_resource: nil, request_id: nil, resource: nil)
|
543
|
+
# Pass arguments to `set_labels` via keyword arguments. Note that at
|
544
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
545
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
546
|
+
#
|
547
|
+
# @param project [::String]
|
548
|
+
# Project ID for this request.
|
549
|
+
# @param region [::String]
|
550
|
+
# The region for this request.
|
551
|
+
# @param region_set_labels_request_resource [::Google::Cloud::Compute::V1::RegionSetLabelsRequest, ::Hash]
|
552
|
+
# The body resource for this request
|
553
|
+
# @param request_id [::String]
|
554
|
+
# An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported ( 00000000-0000-0000-0000-000000000000).
|
555
|
+
# @param resource [::String]
|
556
|
+
# Name or id of the resource for this request.
|
557
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
558
|
+
# @yieldparam result [::Gapic::GenericLRO::Operation]
|
559
|
+
# @yieldparam response [::Faraday::Response]
|
560
|
+
#
|
561
|
+
# @return [::Gapic::GenericLRO::Operation]
|
562
|
+
#
|
563
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
564
|
+
def set_labels request, options = nil
|
565
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
566
|
+
|
567
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::SetLabelsTargetVpnGatewayRequest
|
568
|
+
|
569
|
+
# Converts hash and nil to an options object
|
570
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
571
|
+
|
572
|
+
# Customize the options with defaults
|
573
|
+
call_metadata = @config.rpcs.set_labels.metadata.to_h
|
574
|
+
|
575
|
+
# Set x-goog-api-client header
|
576
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
577
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
578
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
579
|
+
transports_version_send: [:rest]
|
580
|
+
|
581
|
+
options.apply_defaults timeout: @config.rpcs.set_labels.timeout,
|
582
|
+
metadata: call_metadata
|
583
|
+
|
584
|
+
options.apply_defaults timeout: @config.timeout,
|
585
|
+
metadata: @config.metadata
|
586
|
+
|
587
|
+
@target_vpn_gateways_stub.set_labels request, options do |result, response|
|
588
|
+
result = ::Google::Cloud::Compute::V1::RegionOperations::Rest::NonstandardLro.create_operation(
|
589
|
+
operation: result,
|
590
|
+
client: region_operations,
|
591
|
+
request_values: {
|
592
|
+
"project" => request.project,
|
593
|
+
"region" => request.region
|
594
|
+
},
|
595
|
+
options: options
|
596
|
+
)
|
597
|
+
yield result, response if block_given?
|
598
|
+
return result
|
599
|
+
end
|
600
|
+
rescue ::Faraday::Error => e
|
601
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
602
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
603
|
+
end
|
604
|
+
|
525
605
|
##
|
526
606
|
# Configuration class for the TargetVpnGateways REST API.
|
527
607
|
#
|
@@ -646,6 +726,11 @@ module Google
|
|
646
726
|
# @return [::Gapic::Config::Method]
|
647
727
|
#
|
648
728
|
attr_reader :list
|
729
|
+
##
|
730
|
+
# RPC-specific configuration for `set_labels`
|
731
|
+
# @return [::Gapic::Config::Method]
|
732
|
+
#
|
733
|
+
attr_reader :set_labels
|
649
734
|
|
650
735
|
# @private
|
651
736
|
def initialize parent_rpcs = nil
|
@@ -659,6 +744,8 @@ module Google
|
|
659
744
|
@insert = ::Gapic::Config::Method.new insert_config
|
660
745
|
list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
|
661
746
|
@list = ::Gapic::Config::Method.new list_config
|
747
|
+
set_labels_config = parent_rpcs.set_labels if parent_rpcs.respond_to? :set_labels
|
748
|
+
@set_labels = ::Gapic::Config::Method.new set_labels_config
|
662
749
|
|
663
750
|
yield self if block_given?
|
664
751
|
end
|
@@ -26,8 +26,8 @@ module Google
|
|
26
26
|
module Rest
|
27
27
|
##
|
28
28
|
# REST service stub for the TargetVpnGateways service.
|
29
|
-
#
|
30
|
-
# including transcoding, making the REST call and deserialing the response
|
29
|
+
# Service stub contains baseline method implementations
|
30
|
+
# including transcoding, making the REST call, and deserialing the response.
|
31
31
|
#
|
32
32
|
class ServiceStub
|
33
33
|
def initialize endpoint:, credentials:
|
@@ -223,6 +223,43 @@ module Google
|
|
223
223
|
result
|
224
224
|
end
|
225
225
|
|
226
|
+
##
|
227
|
+
# Baseline implementation for the set_labels REST call
|
228
|
+
#
|
229
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetLabelsTargetVpnGatewayRequest]
|
230
|
+
# A request object representing the call parameters. Required.
|
231
|
+
# @param options [::Gapic::CallOptions]
|
232
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
233
|
+
#
|
234
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
235
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Operation]
|
236
|
+
# @yieldparam response [::Faraday::Response]
|
237
|
+
#
|
238
|
+
# @return [::Google::Cloud::Compute::V1::Operation]
|
239
|
+
# A result object deserialized from the server's reply
|
240
|
+
def set_labels request_pb, options = nil
|
241
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
242
|
+
|
243
|
+
verb, uri, query_string_params, body = transcode_set_labels_request request_pb
|
244
|
+
query_string_params = if query_string_params.any?
|
245
|
+
query_string_params.to_h { |p| p.split("=", 2) }
|
246
|
+
else
|
247
|
+
{}
|
248
|
+
end
|
249
|
+
|
250
|
+
response = @client_stub.make_http_request(
|
251
|
+
verb,
|
252
|
+
uri: uri,
|
253
|
+
body: body || "",
|
254
|
+
params: query_string_params,
|
255
|
+
options: options
|
256
|
+
)
|
257
|
+
result = ::Google::Cloud::Compute::V1::Operation.decode_json response.body, ignore_unknown_fields: true
|
258
|
+
|
259
|
+
yield result, response if block_given?
|
260
|
+
result
|
261
|
+
end
|
262
|
+
|
226
263
|
|
227
264
|
private
|
228
265
|
|
@@ -241,7 +278,7 @@ module Google
|
|
241
278
|
uri_method: :get,
|
242
279
|
uri_template: "/compute/v1/projects/{project}/aggregated/targetVpnGateways",
|
243
280
|
matches: [
|
244
|
-
["project", %r{[^/]
|
281
|
+
["project", %r{^[^/]+/?$}, false]
|
245
282
|
]
|
246
283
|
)
|
247
284
|
transcoder.transcode request_pb
|
@@ -262,9 +299,9 @@ module Google
|
|
262
299
|
uri_method: :delete,
|
263
300
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/targetVpnGateways/{target_vpn_gateway}",
|
264
301
|
matches: [
|
265
|
-
["project", %r{[^/]
|
266
|
-
["region", %r{[^/]
|
267
|
-
["target_vpn_gateway", %r{[^/]
|
302
|
+
["project", %r{^[^/]+/?$}, false],
|
303
|
+
["region", %r{^[^/]+/?$}, false],
|
304
|
+
["target_vpn_gateway", %r{^[^/]+/?$}, false]
|
268
305
|
]
|
269
306
|
)
|
270
307
|
transcoder.transcode request_pb
|
@@ -285,9 +322,9 @@ module Google
|
|
285
322
|
uri_method: :get,
|
286
323
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/targetVpnGateways/{target_vpn_gateway}",
|
287
324
|
matches: [
|
288
|
-
["project", %r{[^/]
|
289
|
-
["region", %r{[^/]
|
290
|
-
["target_vpn_gateway", %r{[^/]
|
325
|
+
["project", %r{^[^/]+/?$}, false],
|
326
|
+
["region", %r{^[^/]+/?$}, false],
|
327
|
+
["target_vpn_gateway", %r{^[^/]+/?$}, false]
|
291
328
|
]
|
292
329
|
)
|
293
330
|
transcoder.transcode request_pb
|
@@ -309,8 +346,8 @@ module Google
|
|
309
346
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/targetVpnGateways",
|
310
347
|
body: "target_vpn_gateway_resource",
|
311
348
|
matches: [
|
312
|
-
["project", %r{[^/]
|
313
|
-
["region", %r{[^/]
|
349
|
+
["project", %r{^[^/]+/?$}, false],
|
350
|
+
["region", %r{^[^/]+/?$}, false]
|
314
351
|
]
|
315
352
|
)
|
316
353
|
transcoder.transcode request_pb
|
@@ -331,8 +368,32 @@ module Google
|
|
331
368
|
uri_method: :get,
|
332
369
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/targetVpnGateways",
|
333
370
|
matches: [
|
334
|
-
["project", %r{[^/]
|
335
|
-
["region", %r{[^/]
|
371
|
+
["project", %r{^[^/]+/?$}, false],
|
372
|
+
["region", %r{^[^/]+/?$}, false]
|
373
|
+
]
|
374
|
+
)
|
375
|
+
transcoder.transcode request_pb
|
376
|
+
end
|
377
|
+
|
378
|
+
##
|
379
|
+
# @private
|
380
|
+
#
|
381
|
+
# GRPC transcoding helper method for the set_labels REST call
|
382
|
+
#
|
383
|
+
# @param request_pb [::Google::Cloud::Compute::V1::SetLabelsTargetVpnGatewayRequest]
|
384
|
+
# A request object representing the call parameters. Required.
|
385
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
386
|
+
# Uri, Body, Query string parameters
|
387
|
+
def transcode_set_labels_request request_pb
|
388
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
389
|
+
.with_bindings(
|
390
|
+
uri_method: :post,
|
391
|
+
uri_template: "/compute/v1/projects/{project}/regions/{region}/targetVpnGateways/{resource}/setLabels",
|
392
|
+
body: "region_set_labels_request_resource",
|
393
|
+
matches: [
|
394
|
+
["project", %r{^[^/]+/?$}, false],
|
395
|
+
["region", %r{^[^/]+/?$}, false],
|
396
|
+
["resource", %r{^[^/]+/?$}, false]
|
336
397
|
]
|
337
398
|
)
|
338
399
|
transcoder.transcode request_pb
|