google-cloud-alloy_db-v1beta 0.7.0 → 0.8.1
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/README.md +1 -1
- data/lib/google/cloud/alloy_db/v1beta/alloy_db_admin/client.rb +182 -32
- data/lib/google/cloud/alloy_db/v1beta/alloy_db_admin/operations.rb +13 -5
- data/lib/google/cloud/alloy_db/v1beta/alloy_db_admin/rest/client.rb +175 -32
- data/lib/google/cloud/alloy_db/v1beta/alloy_db_admin/rest/operations.rb +11 -4
- data/lib/google/cloud/alloy_db/v1beta/alloy_db_admin/rest/service_stub.rb +59 -0
- data/lib/google/cloud/alloy_db/v1beta/version.rb +1 -1
- data/lib/google/cloud/alloydb/v1beta/resources_pb.rb +7 -1
- data/lib/google/cloud/alloydb/v1beta/service_pb.rb +3 -1
- data/lib/google/cloud/alloydb/v1beta/service_services_pb.rb +2 -0
- data/proto_docs/google/api/client.rb +18 -10
- data/proto_docs/google/api/field_info.rb +88 -0
- data/proto_docs/google/api/resource.rb +7 -2
- data/proto_docs/google/cloud/alloydb/v1beta/resources.rb +133 -4
- data/proto_docs/google/cloud/alloydb/v1beta/service.rb +40 -1
- metadata +4 -3
@@ -34,6 +34,9 @@ module Google
|
|
34
34
|
# Service describing handlers for resources
|
35
35
|
#
|
36
36
|
class Client
|
37
|
+
# @private
|
38
|
+
API_VERSION = ""
|
39
|
+
|
37
40
|
# @private
|
38
41
|
DEFAULT_ENDPOINT_TEMPLATE = "alloydb.$UNIVERSE_DOMAIN$"
|
39
42
|
|
@@ -128,6 +131,11 @@ module Google
|
|
128
131
|
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
129
132
|
}
|
130
133
|
|
134
|
+
default_config.rpcs.list_databases.timeout = 60.0
|
135
|
+
default_config.rpcs.list_databases.retry_policy = {
|
136
|
+
initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
|
137
|
+
}
|
138
|
+
|
131
139
|
default_config
|
132
140
|
end
|
133
141
|
yield @configure if block_given?
|
@@ -325,12 +333,13 @@ module Google
|
|
325
333
|
# Customize the options with defaults
|
326
334
|
call_metadata = @config.rpcs.list_clusters.metadata.to_h
|
327
335
|
|
328
|
-
# Set x-goog-api-client
|
336
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
329
337
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
330
338
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
331
339
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
332
340
|
transports_version_send: [:rest]
|
333
341
|
|
342
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
334
343
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
335
344
|
|
336
345
|
options.apply_defaults timeout: @config.rpcs.list_clusters.timeout,
|
@@ -407,12 +416,13 @@ module Google
|
|
407
416
|
# Customize the options with defaults
|
408
417
|
call_metadata = @config.rpcs.get_cluster.metadata.to_h
|
409
418
|
|
410
|
-
# Set x-goog-api-client
|
419
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
411
420
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
412
421
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
413
422
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
414
423
|
transports_version_send: [:rest]
|
415
424
|
|
425
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
416
426
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
417
427
|
|
418
428
|
options.apply_defaults timeout: @config.rpcs.get_cluster.timeout,
|
@@ -515,12 +525,13 @@ module Google
|
|
515
525
|
# Customize the options with defaults
|
516
526
|
call_metadata = @config.rpcs.create_cluster.metadata.to_h
|
517
527
|
|
518
|
-
# Set x-goog-api-client
|
528
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
519
529
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
520
530
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
521
531
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
522
532
|
transports_version_send: [:rest]
|
523
533
|
|
534
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
524
535
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
525
536
|
|
526
537
|
options.apply_defaults timeout: @config.rpcs.create_cluster.timeout,
|
@@ -628,12 +639,13 @@ module Google
|
|
628
639
|
# Customize the options with defaults
|
629
640
|
call_metadata = @config.rpcs.update_cluster.metadata.to_h
|
630
641
|
|
631
|
-
# Set x-goog-api-client
|
642
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
632
643
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
633
644
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
634
645
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
635
646
|
transports_version_send: [:rest]
|
636
647
|
|
648
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
637
649
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
638
650
|
|
639
651
|
options.apply_defaults timeout: @config.rpcs.update_cluster.timeout,
|
@@ -738,12 +750,13 @@ module Google
|
|
738
750
|
# Customize the options with defaults
|
739
751
|
call_metadata = @config.rpcs.delete_cluster.metadata.to_h
|
740
752
|
|
741
|
-
# Set x-goog-api-client
|
753
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
742
754
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
743
755
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
744
756
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
745
757
|
transports_version_send: [:rest]
|
746
758
|
|
759
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
747
760
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
748
761
|
|
749
762
|
options.apply_defaults timeout: @config.rpcs.delete_cluster.timeout,
|
@@ -849,12 +862,13 @@ module Google
|
|
849
862
|
# Customize the options with defaults
|
850
863
|
call_metadata = @config.rpcs.promote_cluster.metadata.to_h
|
851
864
|
|
852
|
-
# Set x-goog-api-client
|
865
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
853
866
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
854
867
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
855
868
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
856
869
|
transports_version_send: [:rest]
|
857
870
|
|
871
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
858
872
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
859
873
|
|
860
874
|
options.apply_defaults timeout: @config.rpcs.promote_cluster.timeout,
|
@@ -965,12 +979,13 @@ module Google
|
|
965
979
|
# Customize the options with defaults
|
966
980
|
call_metadata = @config.rpcs.restore_cluster.metadata.to_h
|
967
981
|
|
968
|
-
# Set x-goog-api-client
|
982
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
969
983
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
970
984
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
971
985
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
972
986
|
transports_version_send: [:rest]
|
973
987
|
|
988
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
974
989
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
975
990
|
|
976
991
|
options.apply_defaults timeout: @config.rpcs.restore_cluster.timeout,
|
@@ -1075,12 +1090,13 @@ module Google
|
|
1075
1090
|
# Customize the options with defaults
|
1076
1091
|
call_metadata = @config.rpcs.create_secondary_cluster.metadata.to_h
|
1077
1092
|
|
1078
|
-
# Set x-goog-api-client
|
1093
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1079
1094
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1080
1095
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1081
1096
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
1082
1097
|
transports_version_send: [:rest]
|
1083
1098
|
|
1099
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1084
1100
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1085
1101
|
|
1086
1102
|
options.apply_defaults timeout: @config.rpcs.create_secondary_cluster.timeout,
|
@@ -1172,12 +1188,13 @@ module Google
|
|
1172
1188
|
# Customize the options with defaults
|
1173
1189
|
call_metadata = @config.rpcs.list_instances.metadata.to_h
|
1174
1190
|
|
1175
|
-
# Set x-goog-api-client
|
1191
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1176
1192
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1177
1193
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1178
1194
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
1179
1195
|
transports_version_send: [:rest]
|
1180
1196
|
|
1197
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1181
1198
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1182
1199
|
|
1183
1200
|
options.apply_defaults timeout: @config.rpcs.list_instances.timeout,
|
@@ -1253,12 +1270,13 @@ module Google
|
|
1253
1270
|
# Customize the options with defaults
|
1254
1271
|
call_metadata = @config.rpcs.get_instance.metadata.to_h
|
1255
1272
|
|
1256
|
-
# Set x-goog-api-client
|
1273
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1257
1274
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1258
1275
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1259
1276
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
1260
1277
|
transports_version_send: [:rest]
|
1261
1278
|
|
1279
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1262
1280
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1263
1281
|
|
1264
1282
|
options.apply_defaults timeout: @config.rpcs.get_instance.timeout,
|
@@ -1361,12 +1379,13 @@ module Google
|
|
1361
1379
|
# Customize the options with defaults
|
1362
1380
|
call_metadata = @config.rpcs.create_instance.metadata.to_h
|
1363
1381
|
|
1364
|
-
# Set x-goog-api-client
|
1382
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1365
1383
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1366
1384
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1367
1385
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
1368
1386
|
transports_version_send: [:rest]
|
1369
1387
|
|
1388
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1370
1389
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1371
1390
|
|
1372
1391
|
options.apply_defaults timeout: @config.rpcs.create_instance.timeout,
|
@@ -1470,12 +1489,13 @@ module Google
|
|
1470
1489
|
# Customize the options with defaults
|
1471
1490
|
call_metadata = @config.rpcs.create_secondary_instance.metadata.to_h
|
1472
1491
|
|
1473
|
-
# Set x-goog-api-client
|
1492
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1474
1493
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1475
1494
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1476
1495
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
1477
1496
|
transports_version_send: [:rest]
|
1478
1497
|
|
1498
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1479
1499
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1480
1500
|
|
1481
1501
|
options.apply_defaults timeout: @config.rpcs.create_secondary_instance.timeout,
|
@@ -1581,12 +1601,13 @@ module Google
|
|
1581
1601
|
# Customize the options with defaults
|
1582
1602
|
call_metadata = @config.rpcs.batch_create_instances.metadata.to_h
|
1583
1603
|
|
1584
|
-
# Set x-goog-api-client
|
1604
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1585
1605
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1586
1606
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1587
1607
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
1588
1608
|
transports_version_send: [:rest]
|
1589
1609
|
|
1610
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1590
1611
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1591
1612
|
|
1592
1613
|
options.apply_defaults timeout: @config.rpcs.batch_create_instances.timeout,
|
@@ -1694,12 +1715,13 @@ module Google
|
|
1694
1715
|
# Customize the options with defaults
|
1695
1716
|
call_metadata = @config.rpcs.update_instance.metadata.to_h
|
1696
1717
|
|
1697
|
-
# Set x-goog-api-client
|
1718
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1698
1719
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1699
1720
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1700
1721
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
1701
1722
|
transports_version_send: [:rest]
|
1702
1723
|
|
1724
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1703
1725
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1704
1726
|
|
1705
1727
|
options.apply_defaults timeout: @config.rpcs.update_instance.timeout,
|
@@ -1802,12 +1824,13 @@ module Google
|
|
1802
1824
|
# Customize the options with defaults
|
1803
1825
|
call_metadata = @config.rpcs.delete_instance.metadata.to_h
|
1804
1826
|
|
1805
|
-
# Set x-goog-api-client
|
1827
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1806
1828
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1807
1829
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1808
1830
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
1809
1831
|
transports_version_send: [:rest]
|
1810
1832
|
|
1833
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1811
1834
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1812
1835
|
|
1813
1836
|
options.apply_defaults timeout: @config.rpcs.delete_instance.timeout,
|
@@ -1908,12 +1931,13 @@ module Google
|
|
1908
1931
|
# Customize the options with defaults
|
1909
1932
|
call_metadata = @config.rpcs.failover_instance.metadata.to_h
|
1910
1933
|
|
1911
|
-
# Set x-goog-api-client
|
1934
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1912
1935
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1913
1936
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1914
1937
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
1915
1938
|
transports_version_send: [:rest]
|
1916
1939
|
|
1940
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1917
1941
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1918
1942
|
|
1919
1943
|
options.apply_defaults timeout: @config.rpcs.failover_instance.timeout,
|
@@ -2016,12 +2040,13 @@ module Google
|
|
2016
2040
|
# Customize the options with defaults
|
2017
2041
|
call_metadata = @config.rpcs.inject_fault.metadata.to_h
|
2018
2042
|
|
2019
|
-
# Set x-goog-api-client
|
2043
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2020
2044
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2021
2045
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2022
2046
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
2023
2047
|
transports_version_send: [:rest]
|
2024
2048
|
|
2049
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2025
2050
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2026
2051
|
|
2027
2052
|
options.apply_defaults timeout: @config.rpcs.inject_fault.timeout,
|
@@ -2121,12 +2146,13 @@ module Google
|
|
2121
2146
|
# Customize the options with defaults
|
2122
2147
|
call_metadata = @config.rpcs.restart_instance.metadata.to_h
|
2123
2148
|
|
2124
|
-
# Set x-goog-api-client
|
2149
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2125
2150
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2126
2151
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2127
2152
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
2128
2153
|
transports_version_send: [:rest]
|
2129
2154
|
|
2155
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2130
2156
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2131
2157
|
|
2132
2158
|
options.apply_defaults timeout: @config.rpcs.restart_instance.timeout,
|
@@ -2213,12 +2239,13 @@ module Google
|
|
2213
2239
|
# Customize the options with defaults
|
2214
2240
|
call_metadata = @config.rpcs.list_backups.metadata.to_h
|
2215
2241
|
|
2216
|
-
# Set x-goog-api-client
|
2242
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2217
2243
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2218
2244
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2219
2245
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
2220
2246
|
transports_version_send: [:rest]
|
2221
2247
|
|
2248
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2222
2249
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2223
2250
|
|
2224
2251
|
options.apply_defaults timeout: @config.rpcs.list_backups.timeout,
|
@@ -2291,12 +2318,13 @@ module Google
|
|
2291
2318
|
# Customize the options with defaults
|
2292
2319
|
call_metadata = @config.rpcs.get_backup.metadata.to_h
|
2293
2320
|
|
2294
|
-
# Set x-goog-api-client
|
2321
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2295
2322
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2296
2323
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2297
2324
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
2298
2325
|
transports_version_send: [:rest]
|
2299
2326
|
|
2327
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2300
2328
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2301
2329
|
|
2302
2330
|
options.apply_defaults timeout: @config.rpcs.get_backup.timeout,
|
@@ -2397,12 +2425,13 @@ module Google
|
|
2397
2425
|
# Customize the options with defaults
|
2398
2426
|
call_metadata = @config.rpcs.create_backup.metadata.to_h
|
2399
2427
|
|
2400
|
-
# Set x-goog-api-client
|
2428
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2401
2429
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2402
2430
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2403
2431
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
2404
2432
|
transports_version_send: [:rest]
|
2405
2433
|
|
2434
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2406
2435
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2407
2436
|
|
2408
2437
|
options.apply_defaults timeout: @config.rpcs.create_backup.timeout,
|
@@ -2509,12 +2538,13 @@ module Google
|
|
2509
2538
|
# Customize the options with defaults
|
2510
2539
|
call_metadata = @config.rpcs.update_backup.metadata.to_h
|
2511
2540
|
|
2512
|
-
# Set x-goog-api-client
|
2541
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2513
2542
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2514
2543
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2515
2544
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
2516
2545
|
transports_version_send: [:rest]
|
2517
2546
|
|
2547
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2518
2548
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2519
2549
|
|
2520
2550
|
options.apply_defaults timeout: @config.rpcs.update_backup.timeout,
|
@@ -2617,12 +2647,13 @@ module Google
|
|
2617
2647
|
# Customize the options with defaults
|
2618
2648
|
call_metadata = @config.rpcs.delete_backup.metadata.to_h
|
2619
2649
|
|
2620
|
-
# Set x-goog-api-client
|
2650
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2621
2651
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2622
2652
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2623
2653
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
2624
2654
|
transports_version_send: [:rest]
|
2625
2655
|
|
2656
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2626
2657
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2627
2658
|
|
2628
2659
|
options.apply_defaults timeout: @config.rpcs.delete_backup.timeout,
|
@@ -2711,12 +2742,13 @@ module Google
|
|
2711
2742
|
# Customize the options with defaults
|
2712
2743
|
call_metadata = @config.rpcs.list_supported_database_flags.metadata.to_h
|
2713
2744
|
|
2714
|
-
# Set x-goog-api-client
|
2745
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2715
2746
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2716
2747
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2717
2748
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
2718
2749
|
transports_version_send: [:rest]
|
2719
2750
|
|
2751
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2720
2752
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2721
2753
|
|
2722
2754
|
options.apply_defaults timeout: @config.rpcs.list_supported_database_flags.timeout,
|
@@ -2776,7 +2808,8 @@ module Google
|
|
2776
2808
|
# The request ID must be a valid UUID with the exception that zero UUID is
|
2777
2809
|
# not supported (00000000-0000-0000-0000-000000000000).
|
2778
2810
|
# @param pem_csr [::String]
|
2779
|
-
# Optional. A pem-encoded X.509 certificate signing request (CSR).
|
2811
|
+
# Optional. A pem-encoded X.509 certificate signing request (CSR). It is
|
2812
|
+
# recommended to use public_key instead.
|
2780
2813
|
# @param cert_duration [::Google::Protobuf::Duration, ::Hash]
|
2781
2814
|
# Optional. An optional hint to the endpoint to generate the client
|
2782
2815
|
# certificate with the requested duration. The duration can be from 1 hour to
|
@@ -2823,12 +2856,13 @@ module Google
|
|
2823
2856
|
# Customize the options with defaults
|
2824
2857
|
call_metadata = @config.rpcs.generate_client_certificate.metadata.to_h
|
2825
2858
|
|
2826
|
-
# Set x-goog-api-client
|
2859
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2827
2860
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2828
2861
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2829
2862
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
2830
2863
|
transports_version_send: [:rest]
|
2831
2864
|
|
2865
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2832
2866
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2833
2867
|
|
2834
2868
|
options.apply_defaults timeout: @config.rpcs.generate_client_certificate.timeout,
|
@@ -2916,12 +2950,13 @@ module Google
|
|
2916
2950
|
# Customize the options with defaults
|
2917
2951
|
call_metadata = @config.rpcs.get_connection_info.metadata.to_h
|
2918
2952
|
|
2919
|
-
# Set x-goog-api-client
|
2953
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2920
2954
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2921
2955
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2922
2956
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
2923
2957
|
transports_version_send: [:rest]
|
2924
2958
|
|
2959
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2925
2960
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2926
2961
|
|
2927
2962
|
options.apply_defaults timeout: @config.rpcs.get_connection_info.timeout,
|
@@ -3007,12 +3042,13 @@ module Google
|
|
3007
3042
|
# Customize the options with defaults
|
3008
3043
|
call_metadata = @config.rpcs.list_users.metadata.to_h
|
3009
3044
|
|
3010
|
-
# Set x-goog-api-client
|
3045
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3011
3046
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3012
3047
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3013
3048
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
3014
3049
|
transports_version_send: [:rest]
|
3015
3050
|
|
3051
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3016
3052
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3017
3053
|
|
3018
3054
|
options.apply_defaults timeout: @config.rpcs.list_users.timeout,
|
@@ -3086,12 +3122,13 @@ module Google
|
|
3086
3122
|
# Customize the options with defaults
|
3087
3123
|
call_metadata = @config.rpcs.get_user.metadata.to_h
|
3088
3124
|
|
3089
|
-
# Set x-goog-api-client
|
3125
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3090
3126
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3091
3127
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3092
3128
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
3093
3129
|
transports_version_send: [:rest]
|
3094
3130
|
|
3131
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3095
3132
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3096
3133
|
|
3097
3134
|
options.apply_defaults timeout: @config.rpcs.get_user.timeout,
|
@@ -3185,12 +3222,13 @@ module Google
|
|
3185
3222
|
# Customize the options with defaults
|
3186
3223
|
call_metadata = @config.rpcs.create_user.metadata.to_h
|
3187
3224
|
|
3188
|
-
# Set x-goog-api-client
|
3225
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3189
3226
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3190
3227
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3191
3228
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
3192
3229
|
transports_version_send: [:rest]
|
3193
3230
|
|
3231
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3194
3232
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3195
3233
|
|
3196
3234
|
options.apply_defaults timeout: @config.rpcs.create_user.timeout,
|
@@ -3288,12 +3326,13 @@ module Google
|
|
3288
3326
|
# Customize the options with defaults
|
3289
3327
|
call_metadata = @config.rpcs.update_user.metadata.to_h
|
3290
3328
|
|
3291
|
-
# Set x-goog-api-client
|
3329
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3292
3330
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3293
3331
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3294
3332
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
3295
3333
|
transports_version_send: [:rest]
|
3296
3334
|
|
3335
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3297
3336
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3298
3337
|
|
3299
3338
|
options.apply_defaults timeout: @config.rpcs.update_user.timeout,
|
@@ -3384,12 +3423,13 @@ module Google
|
|
3384
3423
|
# Customize the options with defaults
|
3385
3424
|
call_metadata = @config.rpcs.delete_user.metadata.to_h
|
3386
3425
|
|
3387
|
-
# Set x-goog-api-client
|
3426
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3388
3427
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3389
3428
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3390
3429
|
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
3391
3430
|
transports_version_send: [:rest]
|
3392
3431
|
|
3432
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3393
3433
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3394
3434
|
|
3395
3435
|
options.apply_defaults timeout: @config.rpcs.delete_user.timeout,
|
@@ -3408,6 +3448,102 @@ module Google
|
|
3408
3448
|
raise ::Google::Cloud::Error.from_error(e)
|
3409
3449
|
end
|
3410
3450
|
|
3451
|
+
##
|
3452
|
+
# Lists Databases in a given project and location.
|
3453
|
+
#
|
3454
|
+
# @overload list_databases(request, options = nil)
|
3455
|
+
# Pass arguments to `list_databases` via a request object, either of type
|
3456
|
+
# {::Google::Cloud::AlloyDB::V1beta::ListDatabasesRequest} or an equivalent Hash.
|
3457
|
+
#
|
3458
|
+
# @param request [::Google::Cloud::AlloyDB::V1beta::ListDatabasesRequest, ::Hash]
|
3459
|
+
# A request object representing the call parameters. Required. To specify no
|
3460
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
3461
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
3462
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
3463
|
+
#
|
3464
|
+
# @overload list_databases(parent: nil, page_size: nil, page_token: nil, filter: nil)
|
3465
|
+
# Pass arguments to `list_databases` via keyword arguments. Note that at
|
3466
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
3467
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
3468
|
+
#
|
3469
|
+
# @param parent [::String]
|
3470
|
+
# Required. Parent value for ListDatabasesRequest.
|
3471
|
+
# @param page_size [::Integer]
|
3472
|
+
# Optional. The maximum number of databases to return. The service may return
|
3473
|
+
# fewer than this value. If unspecified, an appropriate number of databases
|
3474
|
+
# will be returned. The max value will be 2000, values above max will be
|
3475
|
+
# coerced to max.
|
3476
|
+
# @param page_token [::String]
|
3477
|
+
# Optional. A page token, received from a previous `ListDatabases` call.
|
3478
|
+
# This should be provided to retrieve the subsequent page.
|
3479
|
+
# This field is currently not supported, its value will be ignored if passed.
|
3480
|
+
# @param filter [::String]
|
3481
|
+
# Optional. Filtering results.
|
3482
|
+
# This field is currently not supported, its value will be ignored if passed.
|
3483
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
3484
|
+
# @yieldparam result [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AlloyDB::V1beta::Database>]
|
3485
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
3486
|
+
#
|
3487
|
+
# @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::AlloyDB::V1beta::Database>]
|
3488
|
+
#
|
3489
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
3490
|
+
#
|
3491
|
+
# @example Basic example
|
3492
|
+
# require "google/cloud/alloy_db/v1beta"
|
3493
|
+
#
|
3494
|
+
# # Create a client object. The client can be reused for multiple calls.
|
3495
|
+
# client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Rest::Client.new
|
3496
|
+
#
|
3497
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
3498
|
+
# request = Google::Cloud::AlloyDB::V1beta::ListDatabasesRequest.new
|
3499
|
+
#
|
3500
|
+
# # Call the list_databases method.
|
3501
|
+
# result = client.list_databases request
|
3502
|
+
#
|
3503
|
+
# # The returned object is of type Gapic::PagedEnumerable. You can iterate
|
3504
|
+
# # over elements, and API calls will be issued to fetch pages as needed.
|
3505
|
+
# result.each do |item|
|
3506
|
+
# # Each element is of type ::Google::Cloud::AlloyDB::V1beta::Database.
|
3507
|
+
# p item
|
3508
|
+
# end
|
3509
|
+
#
|
3510
|
+
def list_databases request, options = nil
|
3511
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
3512
|
+
|
3513
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AlloyDB::V1beta::ListDatabasesRequest
|
3514
|
+
|
3515
|
+
# Converts hash and nil to an options object
|
3516
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
3517
|
+
|
3518
|
+
# Customize the options with defaults
|
3519
|
+
call_metadata = @config.rpcs.list_databases.metadata.to_h
|
3520
|
+
|
3521
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
3522
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
3523
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
3524
|
+
gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
|
3525
|
+
transports_version_send: [:rest]
|
3526
|
+
|
3527
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
3528
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
3529
|
+
|
3530
|
+
options.apply_defaults timeout: @config.rpcs.list_databases.timeout,
|
3531
|
+
metadata: call_metadata,
|
3532
|
+
retry_policy: @config.rpcs.list_databases.retry_policy
|
3533
|
+
|
3534
|
+
options.apply_defaults timeout: @config.timeout,
|
3535
|
+
metadata: @config.metadata,
|
3536
|
+
retry_policy: @config.retry_policy
|
3537
|
+
|
3538
|
+
@alloy_db_admin_stub.list_databases request, options do |result, operation|
|
3539
|
+
result = ::Gapic::Rest::PagedEnumerable.new @alloy_db_admin_stub, :list_databases, "databases", request, result, options
|
3540
|
+
yield result, operation if block_given?
|
3541
|
+
return result
|
3542
|
+
end
|
3543
|
+
rescue ::Gapic::Rest::Error => e
|
3544
|
+
raise ::Google::Cloud::Error.from_error(e)
|
3545
|
+
end
|
3546
|
+
|
3411
3547
|
##
|
3412
3548
|
# Configuration class for the AlloyDBAdmin REST API.
|
3413
3549
|
#
|
@@ -3703,6 +3839,11 @@ module Google
|
|
3703
3839
|
# @return [::Gapic::Config::Method]
|
3704
3840
|
#
|
3705
3841
|
attr_reader :delete_user
|
3842
|
+
##
|
3843
|
+
# RPC-specific configuration for `list_databases`
|
3844
|
+
# @return [::Gapic::Config::Method]
|
3845
|
+
#
|
3846
|
+
attr_reader :list_databases
|
3706
3847
|
|
3707
3848
|
# @private
|
3708
3849
|
def initialize parent_rpcs = nil
|
@@ -3768,6 +3909,8 @@ module Google
|
|
3768
3909
|
@update_user = ::Gapic::Config::Method.new update_user_config
|
3769
3910
|
delete_user_config = parent_rpcs.delete_user if parent_rpcs.respond_to? :delete_user
|
3770
3911
|
@delete_user = ::Gapic::Config::Method.new delete_user_config
|
3912
|
+
list_databases_config = parent_rpcs.list_databases if parent_rpcs.respond_to? :list_databases
|
3913
|
+
@list_databases = ::Gapic::Config::Method.new list_databases_config
|
3771
3914
|
|
3772
3915
|
yield self if block_given?
|
3773
3916
|
end
|