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 Projects 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:
|
@@ -537,7 +537,7 @@ module Google
|
|
537
537
|
uri_method: :post,
|
538
538
|
uri_template: "/compute/v1/projects/{project}/disableXpnHost",
|
539
539
|
matches: [
|
540
|
-
["project", %r{[^/]
|
540
|
+
["project", %r{^[^/]+/?$}, false]
|
541
541
|
]
|
542
542
|
)
|
543
543
|
transcoder.transcode request_pb
|
@@ -559,7 +559,7 @@ module Google
|
|
559
559
|
uri_template: "/compute/v1/projects/{project}/disableXpnResource",
|
560
560
|
body: "projects_disable_xpn_resource_request_resource",
|
561
561
|
matches: [
|
562
|
-
["project", %r{[^/]
|
562
|
+
["project", %r{^[^/]+/?$}, false]
|
563
563
|
]
|
564
564
|
)
|
565
565
|
transcoder.transcode request_pb
|
@@ -580,7 +580,7 @@ module Google
|
|
580
580
|
uri_method: :post,
|
581
581
|
uri_template: "/compute/v1/projects/{project}/enableXpnHost",
|
582
582
|
matches: [
|
583
|
-
["project", %r{[^/]
|
583
|
+
["project", %r{^[^/]+/?$}, false]
|
584
584
|
]
|
585
585
|
)
|
586
586
|
transcoder.transcode request_pb
|
@@ -602,7 +602,7 @@ module Google
|
|
602
602
|
uri_template: "/compute/v1/projects/{project}/enableXpnResource",
|
603
603
|
body: "projects_enable_xpn_resource_request_resource",
|
604
604
|
matches: [
|
605
|
-
["project", %r{[^/]
|
605
|
+
["project", %r{^[^/]+/?$}, false]
|
606
606
|
]
|
607
607
|
)
|
608
608
|
transcoder.transcode request_pb
|
@@ -623,7 +623,7 @@ module Google
|
|
623
623
|
uri_method: :get,
|
624
624
|
uri_template: "/compute/v1/projects/{project}",
|
625
625
|
matches: [
|
626
|
-
["project", %r{[^/]
|
626
|
+
["project", %r{^[^/]+/?$}, false]
|
627
627
|
]
|
628
628
|
)
|
629
629
|
transcoder.transcode request_pb
|
@@ -644,7 +644,7 @@ module Google
|
|
644
644
|
uri_method: :get,
|
645
645
|
uri_template: "/compute/v1/projects/{project}/getXpnHost",
|
646
646
|
matches: [
|
647
|
-
["project", %r{[^/]
|
647
|
+
["project", %r{^[^/]+/?$}, false]
|
648
648
|
]
|
649
649
|
)
|
650
650
|
transcoder.transcode request_pb
|
@@ -665,7 +665,7 @@ module Google
|
|
665
665
|
uri_method: :get,
|
666
666
|
uri_template: "/compute/v1/projects/{project}/getXpnResources",
|
667
667
|
matches: [
|
668
|
-
["project", %r{[^/]
|
668
|
+
["project", %r{^[^/]+/?$}, false]
|
669
669
|
]
|
670
670
|
)
|
671
671
|
transcoder.transcode request_pb
|
@@ -687,7 +687,7 @@ module Google
|
|
687
687
|
uri_template: "/compute/v1/projects/{project}/listXpnHosts",
|
688
688
|
body: "projects_list_xpn_hosts_request_resource",
|
689
689
|
matches: [
|
690
|
-
["project", %r{[^/]
|
690
|
+
["project", %r{^[^/]+/?$}, false]
|
691
691
|
]
|
692
692
|
)
|
693
693
|
transcoder.transcode request_pb
|
@@ -709,7 +709,7 @@ module Google
|
|
709
709
|
uri_template: "/compute/v1/projects/{project}/moveDisk",
|
710
710
|
body: "disk_move_request_resource",
|
711
711
|
matches: [
|
712
|
-
["project", %r{[^/]
|
712
|
+
["project", %r{^[^/]+/?$}, false]
|
713
713
|
]
|
714
714
|
)
|
715
715
|
transcoder.transcode request_pb
|
@@ -731,7 +731,7 @@ module Google
|
|
731
731
|
uri_template: "/compute/v1/projects/{project}/moveInstance",
|
732
732
|
body: "instance_move_request_resource",
|
733
733
|
matches: [
|
734
|
-
["project", %r{[^/]
|
734
|
+
["project", %r{^[^/]+/?$}, false]
|
735
735
|
]
|
736
736
|
)
|
737
737
|
transcoder.transcode request_pb
|
@@ -753,7 +753,7 @@ module Google
|
|
753
753
|
uri_template: "/compute/v1/projects/{project}/setCommonInstanceMetadata",
|
754
754
|
body: "metadata_resource",
|
755
755
|
matches: [
|
756
|
-
["project", %r{[^/]
|
756
|
+
["project", %r{^[^/]+/?$}, false]
|
757
757
|
]
|
758
758
|
)
|
759
759
|
transcoder.transcode request_pb
|
@@ -775,7 +775,7 @@ module Google
|
|
775
775
|
uri_template: "/compute/v1/projects/{project}/setDefaultNetworkTier",
|
776
776
|
body: "projects_set_default_network_tier_request_resource",
|
777
777
|
matches: [
|
778
|
-
["project", %r{[^/]
|
778
|
+
["project", %r{^[^/]+/?$}, false]
|
779
779
|
]
|
780
780
|
)
|
781
781
|
transcoder.transcode request_pb
|
@@ -797,7 +797,7 @@ module Google
|
|
797
797
|
uri_template: "/compute/v1/projects/{project}/setUsageExportBucket",
|
798
798
|
body: "usage_export_location_resource",
|
799
799
|
matches: [
|
800
|
-
["project", %r{[^/]
|
800
|
+
["project", %r{^[^/]+/?$}, false]
|
801
801
|
]
|
802
802
|
)
|
803
803
|
transcoder.transcode request_pb
|
@@ -26,8 +26,8 @@ module Google
|
|
26
26
|
module Rest
|
27
27
|
##
|
28
28
|
# REST service stub for the PublicAdvertisedPrefixes 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:
|
@@ -241,8 +241,8 @@ module Google
|
|
241
241
|
uri_method: :delete,
|
242
242
|
uri_template: "/compute/v1/projects/{project}/global/publicAdvertisedPrefixes/{public_advertised_prefix}",
|
243
243
|
matches: [
|
244
|
-
["project", %r{[^/]
|
245
|
-
["public_advertised_prefix", %r{[^/]
|
244
|
+
["project", %r{^[^/]+/?$}, false],
|
245
|
+
["public_advertised_prefix", %r{^[^/]+/?$}, false]
|
246
246
|
]
|
247
247
|
)
|
248
248
|
transcoder.transcode request_pb
|
@@ -263,8 +263,8 @@ module Google
|
|
263
263
|
uri_method: :get,
|
264
264
|
uri_template: "/compute/v1/projects/{project}/global/publicAdvertisedPrefixes/{public_advertised_prefix}",
|
265
265
|
matches: [
|
266
|
-
["project", %r{[^/]
|
267
|
-
["public_advertised_prefix", %r{[^/]
|
266
|
+
["project", %r{^[^/]+/?$}, false],
|
267
|
+
["public_advertised_prefix", %r{^[^/]+/?$}, false]
|
268
268
|
]
|
269
269
|
)
|
270
270
|
transcoder.transcode request_pb
|
@@ -286,7 +286,7 @@ module Google
|
|
286
286
|
uri_template: "/compute/v1/projects/{project}/global/publicAdvertisedPrefixes",
|
287
287
|
body: "public_advertised_prefix_resource",
|
288
288
|
matches: [
|
289
|
-
["project", %r{[^/]
|
289
|
+
["project", %r{^[^/]+/?$}, false]
|
290
290
|
]
|
291
291
|
)
|
292
292
|
transcoder.transcode request_pb
|
@@ -307,7 +307,7 @@ module Google
|
|
307
307
|
uri_method: :get,
|
308
308
|
uri_template: "/compute/v1/projects/{project}/global/publicAdvertisedPrefixes",
|
309
309
|
matches: [
|
310
|
-
["project", %r{[^/]
|
310
|
+
["project", %r{^[^/]+/?$}, false]
|
311
311
|
]
|
312
312
|
)
|
313
313
|
transcoder.transcode request_pb
|
@@ -329,8 +329,8 @@ module Google
|
|
329
329
|
uri_template: "/compute/v1/projects/{project}/global/publicAdvertisedPrefixes/{public_advertised_prefix}",
|
330
330
|
body: "public_advertised_prefix_resource",
|
331
331
|
matches: [
|
332
|
-
["project", %r{[^/]
|
333
|
-
["public_advertised_prefix", %r{[^/]
|
332
|
+
["project", %r{^[^/]+/?$}, false],
|
333
|
+
["public_advertised_prefix", %r{^[^/]+/?$}, false]
|
334
334
|
]
|
335
335
|
)
|
336
336
|
transcoder.transcode request_pb
|
@@ -26,8 +26,8 @@ module Google
|
|
26
26
|
module Rest
|
27
27
|
##
|
28
28
|
# REST service stub for the PublicDelegatedPrefixes 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,7 +278,7 @@ module Google
|
|
278
278
|
uri_method: :get,
|
279
279
|
uri_template: "/compute/v1/projects/{project}/aggregated/publicDelegatedPrefixes",
|
280
280
|
matches: [
|
281
|
-
["project", %r{[^/]
|
281
|
+
["project", %r{^[^/]+/?$}, false]
|
282
282
|
]
|
283
283
|
)
|
284
284
|
transcoder.transcode request_pb
|
@@ -299,9 +299,9 @@ module Google
|
|
299
299
|
uri_method: :delete,
|
300
300
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/publicDelegatedPrefixes/{public_delegated_prefix}",
|
301
301
|
matches: [
|
302
|
-
["project", %r{[^/]
|
303
|
-
["region", %r{[^/]
|
304
|
-
["public_delegated_prefix", %r{[^/]
|
302
|
+
["project", %r{^[^/]+/?$}, false],
|
303
|
+
["region", %r{^[^/]+/?$}, false],
|
304
|
+
["public_delegated_prefix", %r{^[^/]+/?$}, false]
|
305
305
|
]
|
306
306
|
)
|
307
307
|
transcoder.transcode request_pb
|
@@ -322,9 +322,9 @@ module Google
|
|
322
322
|
uri_method: :get,
|
323
323
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/publicDelegatedPrefixes/{public_delegated_prefix}",
|
324
324
|
matches: [
|
325
|
-
["project", %r{[^/]
|
326
|
-
["region", %r{[^/]
|
327
|
-
["public_delegated_prefix", %r{[^/]
|
325
|
+
["project", %r{^[^/]+/?$}, false],
|
326
|
+
["region", %r{^[^/]+/?$}, false],
|
327
|
+
["public_delegated_prefix", %r{^[^/]+/?$}, false]
|
328
328
|
]
|
329
329
|
)
|
330
330
|
transcoder.transcode request_pb
|
@@ -346,8 +346,8 @@ module Google
|
|
346
346
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/publicDelegatedPrefixes",
|
347
347
|
body: "public_delegated_prefix_resource",
|
348
348
|
matches: [
|
349
|
-
["project", %r{[^/]
|
350
|
-
["region", %r{[^/]
|
349
|
+
["project", %r{^[^/]+/?$}, false],
|
350
|
+
["region", %r{^[^/]+/?$}, false]
|
351
351
|
]
|
352
352
|
)
|
353
353
|
transcoder.transcode request_pb
|
@@ -368,8 +368,8 @@ module Google
|
|
368
368
|
uri_method: :get,
|
369
369
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/publicDelegatedPrefixes",
|
370
370
|
matches: [
|
371
|
-
["project", %r{[^/]
|
372
|
-
["region", %r{[^/]
|
371
|
+
["project", %r{^[^/]+/?$}, false],
|
372
|
+
["region", %r{^[^/]+/?$}, false]
|
373
373
|
]
|
374
374
|
)
|
375
375
|
transcoder.transcode request_pb
|
@@ -391,9 +391,9 @@ module Google
|
|
391
391
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/publicDelegatedPrefixes/{public_delegated_prefix}",
|
392
392
|
body: "public_delegated_prefix_resource",
|
393
393
|
matches: [
|
394
|
-
["project", %r{[^/]
|
395
|
-
["region", %r{[^/]
|
396
|
-
["public_delegated_prefix", %r{[^/]
|
394
|
+
["project", %r{^[^/]+/?$}, false],
|
395
|
+
["region", %r{^[^/]+/?$}, false],
|
396
|
+
["public_delegated_prefix", %r{^[^/]+/?$}, false]
|
397
397
|
]
|
398
398
|
)
|
399
399
|
transcoder.transcode request_pb
|
@@ -26,8 +26,8 @@ module Google
|
|
26
26
|
module Rest
|
27
27
|
##
|
28
28
|
# REST service stub for the RegionAutoscalers 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,9 +278,9 @@ module Google
|
|
278
278
|
uri_method: :delete,
|
279
279
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/autoscalers/{autoscaler}",
|
280
280
|
matches: [
|
281
|
-
["project", %r{[^/]
|
282
|
-
["region", %r{[^/]
|
283
|
-
["autoscaler", %r{[^/]
|
281
|
+
["project", %r{^[^/]+/?$}, false],
|
282
|
+
["region", %r{^[^/]+/?$}, false],
|
283
|
+
["autoscaler", %r{^[^/]+/?$}, false]
|
284
284
|
]
|
285
285
|
)
|
286
286
|
transcoder.transcode request_pb
|
@@ -301,9 +301,9 @@ module Google
|
|
301
301
|
uri_method: :get,
|
302
302
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/autoscalers/{autoscaler}",
|
303
303
|
matches: [
|
304
|
-
["project", %r{[^/]
|
305
|
-
["region", %r{[^/]
|
306
|
-
["autoscaler", %r{[^/]
|
304
|
+
["project", %r{^[^/]+/?$}, false],
|
305
|
+
["region", %r{^[^/]+/?$}, false],
|
306
|
+
["autoscaler", %r{^[^/]+/?$}, false]
|
307
307
|
]
|
308
308
|
)
|
309
309
|
transcoder.transcode request_pb
|
@@ -325,8 +325,8 @@ module Google
|
|
325
325
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/autoscalers",
|
326
326
|
body: "autoscaler_resource",
|
327
327
|
matches: [
|
328
|
-
["project", %r{[^/]
|
329
|
-
["region", %r{[^/]
|
328
|
+
["project", %r{^[^/]+/?$}, false],
|
329
|
+
["region", %r{^[^/]+/?$}, false]
|
330
330
|
]
|
331
331
|
)
|
332
332
|
transcoder.transcode request_pb
|
@@ -347,8 +347,8 @@ module Google
|
|
347
347
|
uri_method: :get,
|
348
348
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/autoscalers",
|
349
349
|
matches: [
|
350
|
-
["project", %r{[^/]
|
351
|
-
["region", %r{[^/]
|
350
|
+
["project", %r{^[^/]+/?$}, false],
|
351
|
+
["region", %r{^[^/]+/?$}, false]
|
352
352
|
]
|
353
353
|
)
|
354
354
|
transcoder.transcode request_pb
|
@@ -370,8 +370,8 @@ module Google
|
|
370
370
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/autoscalers",
|
371
371
|
body: "autoscaler_resource",
|
372
372
|
matches: [
|
373
|
-
["project", %r{[^/]
|
374
|
-
["region", %r{[^/]
|
373
|
+
["project", %r{^[^/]+/?$}, false],
|
374
|
+
["region", %r{^[^/]+/?$}, false]
|
375
375
|
]
|
376
376
|
)
|
377
377
|
transcoder.transcode request_pb
|
@@ -393,8 +393,8 @@ module Google
|
|
393
393
|
uri_template: "/compute/v1/projects/{project}/regions/{region}/autoscalers",
|
394
394
|
body: "autoscaler_resource",
|
395
395
|
matches: [
|
396
|
-
["project", %r{[^/]
|
397
|
-
["region", %r{[^/]
|
396
|
+
["project", %r{^[^/]+/?$}, false],
|
397
|
+
["region", %r{^[^/]+/?$}, false]
|
398
398
|
]
|
399
399
|
)
|
400
400
|
transcoder.transcode request_pb
|
@@ -74,6 +74,11 @@ module Google
|
|
74
74
|
|
75
75
|
default_config.rpcs.get_health.timeout = 600.0
|
76
76
|
|
77
|
+
default_config.rpcs.get_iam_policy.timeout = 600.0
|
78
|
+
default_config.rpcs.get_iam_policy.retry_policy = {
|
79
|
+
initial_delay: 0.1, max_delay: 60.0, multiplier: 1.3, retry_codes: [4, 14]
|
80
|
+
}
|
81
|
+
|
77
82
|
default_config.rpcs.insert.timeout = 600.0
|
78
83
|
|
79
84
|
default_config.rpcs.list.timeout = 600.0
|
@@ -83,6 +88,8 @@ module Google
|
|
83
88
|
|
84
89
|
default_config.rpcs.patch.timeout = 600.0
|
85
90
|
|
91
|
+
default_config.rpcs.set_iam_policy.timeout = 600.0
|
92
|
+
|
86
93
|
default_config.rpcs.update.timeout = 600.0
|
87
94
|
|
88
95
|
default_config
|
@@ -365,6 +372,73 @@ module Google
|
|
365
372
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
366
373
|
end
|
367
374
|
|
375
|
+
##
|
376
|
+
# Gets the access control policy for a resource. May be empty if no such policy or resource exists.
|
377
|
+
#
|
378
|
+
# @overload get_iam_policy(request, options = nil)
|
379
|
+
# Pass arguments to `get_iam_policy` via a request object, either of type
|
380
|
+
# {::Google::Cloud::Compute::V1::GetIamPolicyRegionBackendServiceRequest} or an equivalent Hash.
|
381
|
+
#
|
382
|
+
# @param request [::Google::Cloud::Compute::V1::GetIamPolicyRegionBackendServiceRequest, ::Hash]
|
383
|
+
# A request object representing the call parameters. Required. To specify no
|
384
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
385
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
386
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
387
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
388
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
389
|
+
#
|
390
|
+
# @overload get_iam_policy(options_requested_policy_version: nil, project: nil, region: nil, resource: nil)
|
391
|
+
# Pass arguments to `get_iam_policy` via keyword arguments. Note that at
|
392
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
393
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
394
|
+
#
|
395
|
+
# @param options_requested_policy_version [::Integer]
|
396
|
+
# Requested IAM Policy version.
|
397
|
+
# @param project [::String]
|
398
|
+
# Project ID for this request.
|
399
|
+
# @param region [::String]
|
400
|
+
# The name of the region for this request.
|
401
|
+
# @param resource [::String]
|
402
|
+
# Name or id of the resource for this request.
|
403
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
404
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Policy]
|
405
|
+
# @yieldparam response [::Faraday::Response]
|
406
|
+
#
|
407
|
+
# @return [::Google::Cloud::Compute::V1::Policy]
|
408
|
+
#
|
409
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
410
|
+
def get_iam_policy request, options = nil
|
411
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
412
|
+
|
413
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::GetIamPolicyRegionBackendServiceRequest
|
414
|
+
|
415
|
+
# Converts hash and nil to an options object
|
416
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
417
|
+
|
418
|
+
# Customize the options with defaults
|
419
|
+
call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
|
420
|
+
|
421
|
+
# Set x-goog-api-client header
|
422
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
423
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
424
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
425
|
+
transports_version_send: [:rest]
|
426
|
+
|
427
|
+
options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
|
428
|
+
metadata: call_metadata
|
429
|
+
|
430
|
+
options.apply_defaults timeout: @config.timeout,
|
431
|
+
metadata: @config.metadata
|
432
|
+
|
433
|
+
@region_backend_services_stub.get_iam_policy request, options do |result, response|
|
434
|
+
yield result, response if block_given?
|
435
|
+
return result
|
436
|
+
end
|
437
|
+
rescue ::Faraday::Error => e
|
438
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
439
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
440
|
+
end
|
441
|
+
|
368
442
|
##
|
369
443
|
# Creates a regional BackendService resource in the specified project using the data included in the request. For more information, see Backend services overview.
|
370
444
|
#
|
@@ -593,6 +667,73 @@ module Google
|
|
593
667
|
raise ::Google::Cloud::Error.from_error(gapic_error)
|
594
668
|
end
|
595
669
|
|
670
|
+
##
|
671
|
+
# Sets the access control policy on the specified resource. Replaces any existing policy.
|
672
|
+
#
|
673
|
+
# @overload set_iam_policy(request, options = nil)
|
674
|
+
# Pass arguments to `set_iam_policy` via a request object, either of type
|
675
|
+
# {::Google::Cloud::Compute::V1::SetIamPolicyRegionBackendServiceRequest} or an equivalent Hash.
|
676
|
+
#
|
677
|
+
# @param request [::Google::Cloud::Compute::V1::SetIamPolicyRegionBackendServiceRequest, ::Hash]
|
678
|
+
# A request object representing the call parameters. Required. To specify no
|
679
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
680
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
681
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
682
|
+
# Note: currently retry functionality is not implemented. While it is possible
|
683
|
+
# to set it using ::Gapic::CallOptions, it will not be applied
|
684
|
+
#
|
685
|
+
# @overload set_iam_policy(project: nil, region: nil, region_set_policy_request_resource: nil, resource: nil)
|
686
|
+
# Pass arguments to `set_iam_policy` via keyword arguments. Note that at
|
687
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
688
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
689
|
+
#
|
690
|
+
# @param project [::String]
|
691
|
+
# Project ID for this request.
|
692
|
+
# @param region [::String]
|
693
|
+
# The name of the region for this request.
|
694
|
+
# @param region_set_policy_request_resource [::Google::Cloud::Compute::V1::RegionSetPolicyRequest, ::Hash]
|
695
|
+
# The body resource for this request
|
696
|
+
# @param resource [::String]
|
697
|
+
# Name or id of the resource for this request.
|
698
|
+
# @yield [result, response] Access the result along with the Faraday response object
|
699
|
+
# @yieldparam result [::Google::Cloud::Compute::V1::Policy]
|
700
|
+
# @yieldparam response [::Faraday::Response]
|
701
|
+
#
|
702
|
+
# @return [::Google::Cloud::Compute::V1::Policy]
|
703
|
+
#
|
704
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
705
|
+
def set_iam_policy request, options = nil
|
706
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
707
|
+
|
708
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Compute::V1::SetIamPolicyRegionBackendServiceRequest
|
709
|
+
|
710
|
+
# Converts hash and nil to an options object
|
711
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
712
|
+
|
713
|
+
# Customize the options with defaults
|
714
|
+
call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
|
715
|
+
|
716
|
+
# Set x-goog-api-client header
|
717
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
718
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
719
|
+
gapic_version: ::Google::Cloud::Compute::V1::VERSION,
|
720
|
+
transports_version_send: [:rest]
|
721
|
+
|
722
|
+
options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
|
723
|
+
metadata: call_metadata
|
724
|
+
|
725
|
+
options.apply_defaults timeout: @config.timeout,
|
726
|
+
metadata: @config.metadata
|
727
|
+
|
728
|
+
@region_backend_services_stub.set_iam_policy request, options do |result, response|
|
729
|
+
yield result, response if block_given?
|
730
|
+
return result
|
731
|
+
end
|
732
|
+
rescue ::Faraday::Error => e
|
733
|
+
gapic_error = ::Gapic::Rest::Error.wrap_faraday_error e
|
734
|
+
raise ::Google::Cloud::Error.from_error(gapic_error)
|
735
|
+
end
|
736
|
+
|
596
737
|
##
|
597
738
|
# Updates the specified regional BackendService resource with the data included in the request. For more information, see Backend services overview .
|
598
739
|
#
|
@@ -786,6 +927,11 @@ module Google
|
|
786
927
|
#
|
787
928
|
attr_reader :get_health
|
788
929
|
##
|
930
|
+
# RPC-specific configuration for `get_iam_policy`
|
931
|
+
# @return [::Gapic::Config::Method]
|
932
|
+
#
|
933
|
+
attr_reader :get_iam_policy
|
934
|
+
##
|
789
935
|
# RPC-specific configuration for `insert`
|
790
936
|
# @return [::Gapic::Config::Method]
|
791
937
|
#
|
@@ -801,6 +947,11 @@ module Google
|
|
801
947
|
#
|
802
948
|
attr_reader :patch
|
803
949
|
##
|
950
|
+
# RPC-specific configuration for `set_iam_policy`
|
951
|
+
# @return [::Gapic::Config::Method]
|
952
|
+
#
|
953
|
+
attr_reader :set_iam_policy
|
954
|
+
##
|
804
955
|
# RPC-specific configuration for `update`
|
805
956
|
# @return [::Gapic::Config::Method]
|
806
957
|
#
|
@@ -814,12 +965,16 @@ module Google
|
|
814
965
|
@get = ::Gapic::Config::Method.new get_config
|
815
966
|
get_health_config = parent_rpcs.get_health if parent_rpcs.respond_to? :get_health
|
816
967
|
@get_health = ::Gapic::Config::Method.new get_health_config
|
968
|
+
get_iam_policy_config = parent_rpcs.get_iam_policy if parent_rpcs.respond_to? :get_iam_policy
|
969
|
+
@get_iam_policy = ::Gapic::Config::Method.new get_iam_policy_config
|
817
970
|
insert_config = parent_rpcs.insert if parent_rpcs.respond_to? :insert
|
818
971
|
@insert = ::Gapic::Config::Method.new insert_config
|
819
972
|
list_config = parent_rpcs.list if parent_rpcs.respond_to? :list
|
820
973
|
@list = ::Gapic::Config::Method.new list_config
|
821
974
|
patch_config = parent_rpcs.patch if parent_rpcs.respond_to? :patch
|
822
975
|
@patch = ::Gapic::Config::Method.new patch_config
|
976
|
+
set_iam_policy_config = parent_rpcs.set_iam_policy if parent_rpcs.respond_to? :set_iam_policy
|
977
|
+
@set_iam_policy = ::Gapic::Config::Method.new set_iam_policy_config
|
823
978
|
update_config = parent_rpcs.update if parent_rpcs.respond_to? :update
|
824
979
|
@update = ::Gapic::Config::Method.new update_config
|
825
980
|
|