google-cloud-alloy_db-v1beta 0.7.0 → 0.8.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 29f1125744e5a2ec22552957cbad5b03103f3f13827479afb0585256ec79e7b7
4
- data.tar.gz: fafc0837d3b93eed7c7e6ef7aa4ee566585bf96e75b37dd4d32ad865f685e641
3
+ metadata.gz: 788efdd6d589a62f7fc95ff82f8ab9b91805707590372de5f3cc9e3aae4f8804
4
+ data.tar.gz: 132ef27e09fa9997e98f2554a816f953e57d271adf39ba32913be53c91292832
5
5
  SHA512:
6
- metadata.gz: c1caec675fcf10f9cf9d1c4201fb9ec81b898e6e9943cee1f61c8546dd4b4d441a52a1605850e633401d744676133d218ddffa7e5a4859ef4aa53dfab73d8f57
7
- data.tar.gz: 01e08aa4bdca71cb327d360cb4fe9f387ae9bc2efbfb0d381dcce436b44623f6562352cb5e09db54fa21d533b502ea5d09a5a631222c694677403dd74a6f522f
6
+ metadata.gz: 6aa33fbf5e7b96a09513626679f900be3e264492ecdc844767926300f4d38ea1463ee152ab04caedac412372b5fbcc04cf1288a0dab989fef6bd205519b35a36
7
+ data.tar.gz: 550fa94c3110587a063495b97c9ee35fde995de0f5b514240620a01682758d20898f6fcd319b793dfbb774afa432b1640bed19dbac8930020f8e0b185a0041a0
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  AlloyDB for PostgreSQL is an open source-compatible database service that provides a powerful option for migrating, modernizing, or building commercial-grade applications. It offers full compatibility with standard PostgreSQL, and is more than 4x faster for transactional workloads and up to 100x faster for analytical queries than standard PostgreSQL in our performance tests. AlloyDB for PostgreSQL offers a 99.99 percent availability SLA inclusive of maintenance. AlloyDB is optimized for the most demanding use cases, allowing you to build new applications that require high transaction throughput, large database sizes, or multiple read resources; scale existing PostgreSQL workloads with no application changes; and modernize legacy proprietary databases.
4
4
 
5
- AlloyDB for PostgreSQL is an open source-compatible database service that provides a powerful option for migrating, modernizing, or building commercial-grade applications. It offers full compatibility with standard PostgreSQL, and is more than 4x faster for transactional workloads and up to 100x faster for analytical queries than standard PostgreSQL in our performance tests. AlloyDB for PostgreSQL offers a 99.99 percent availability SLA inclusive of maintenance. AlloyDB is optimized for the most demanding use cases, allowing you to build new applications that require high transaction throughput, large database sizes, or multiple read resources; scale existing PostgreSQL workloads with no application changes; and modernize legacy proprietary databases.
5
+ AlloyDB for PostgreSQL is an open source-compatible database service that provides a powerful option for migrating, modernizing, or building commercial-grade applications. It offers full compatibility with standard PostgreSQL, and is more than 4x faster for transactional workloads and up to 100x faster for analytical queries than standard PostgreSQL in our performance tests. AlloyDB for PostgreSQL offers a 99.99 percent availability SLA inclusive of maintenance. AlloyDB is optimized for the most demanding use cases, allowing you to build new applications that require high transaction throughput, large database sizes, or multiple read resources; scale existing PostgreSQL workloads with no application changes; and modernize legacy proprietary databases.
6
6
 
7
7
  https://github.com/googleapis/google-cloud-ruby
8
8
 
@@ -32,6 +32,9 @@ module Google
32
32
  # Service describing handlers for resources
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "alloydb.$UNIVERSE_DOMAIN$"
37
40
 
@@ -126,6 +129,11 @@ module Google
126
129
  initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
127
130
  }
128
131
 
132
+ default_config.rpcs.list_databases.timeout = 60.0
133
+ default_config.rpcs.list_databases.retry_policy = {
134
+ initial_delay: 1.0, max_delay: 60.0, multiplier: 1.3, retry_codes: [14]
135
+ }
136
+
129
137
  default_config
130
138
  end
131
139
  yield @configure if block_given?
@@ -332,10 +340,11 @@ module Google
332
340
  # Customize the options with defaults
333
341
  metadata = @config.rpcs.list_clusters.metadata.to_h
334
342
 
335
- # Set x-goog-api-client and x-goog-user-project headers
343
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
336
344
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
337
345
  lib_name: @config.lib_name, lib_version: @config.lib_version,
338
346
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
347
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
339
348
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
340
349
 
341
350
  header_params = {}
@@ -422,10 +431,11 @@ module Google
422
431
  # Customize the options with defaults
423
432
  metadata = @config.rpcs.get_cluster.metadata.to_h
424
433
 
425
- # Set x-goog-api-client and x-goog-user-project headers
434
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
426
435
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
427
436
  lib_name: @config.lib_name, lib_version: @config.lib_version,
428
437
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
438
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
429
439
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
430
440
 
431
441
  header_params = {}
@@ -537,10 +547,11 @@ module Google
537
547
  # Customize the options with defaults
538
548
  metadata = @config.rpcs.create_cluster.metadata.to_h
539
549
 
540
- # Set x-goog-api-client and x-goog-user-project headers
550
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
541
551
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
542
552
  lib_name: @config.lib_name, lib_version: @config.lib_version,
543
553
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
554
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
544
555
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
545
556
 
546
557
  header_params = {}
@@ -657,10 +668,11 @@ module Google
657
668
  # Customize the options with defaults
658
669
  metadata = @config.rpcs.update_cluster.metadata.to_h
659
670
 
660
- # Set x-goog-api-client and x-goog-user-project headers
671
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
661
672
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
662
673
  lib_name: @config.lib_name, lib_version: @config.lib_version,
663
674
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
675
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
664
676
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
665
677
 
666
678
  header_params = {}
@@ -774,10 +786,11 @@ module Google
774
786
  # Customize the options with defaults
775
787
  metadata = @config.rpcs.delete_cluster.metadata.to_h
776
788
 
777
- # Set x-goog-api-client and x-goog-user-project headers
789
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
778
790
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
779
791
  lib_name: @config.lib_name, lib_version: @config.lib_version,
780
792
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
793
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
781
794
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
782
795
 
783
796
  header_params = {}
@@ -892,10 +905,11 @@ module Google
892
905
  # Customize the options with defaults
893
906
  metadata = @config.rpcs.promote_cluster.metadata.to_h
894
907
 
895
- # Set x-goog-api-client and x-goog-user-project headers
908
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
896
909
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
897
910
  lib_name: @config.lib_name, lib_version: @config.lib_version,
898
911
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
912
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
899
913
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
900
914
 
901
915
  header_params = {}
@@ -1015,10 +1029,11 @@ module Google
1015
1029
  # Customize the options with defaults
1016
1030
  metadata = @config.rpcs.restore_cluster.metadata.to_h
1017
1031
 
1018
- # Set x-goog-api-client and x-goog-user-project headers
1032
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1019
1033
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1020
1034
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1021
1035
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
1036
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1022
1037
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1023
1038
 
1024
1039
  header_params = {}
@@ -1132,10 +1147,11 @@ module Google
1132
1147
  # Customize the options with defaults
1133
1148
  metadata = @config.rpcs.create_secondary_cluster.metadata.to_h
1134
1149
 
1135
- # Set x-goog-api-client and x-goog-user-project headers
1150
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1136
1151
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1137
1152
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1138
1153
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
1154
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1139
1155
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1140
1156
 
1141
1157
  header_params = {}
@@ -1236,10 +1252,11 @@ module Google
1236
1252
  # Customize the options with defaults
1237
1253
  metadata = @config.rpcs.list_instances.metadata.to_h
1238
1254
 
1239
- # Set x-goog-api-client and x-goog-user-project headers
1255
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1240
1256
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1241
1257
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1242
1258
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
1259
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1243
1260
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1244
1261
 
1245
1262
  header_params = {}
@@ -1325,10 +1342,11 @@ module Google
1325
1342
  # Customize the options with defaults
1326
1343
  metadata = @config.rpcs.get_instance.metadata.to_h
1327
1344
 
1328
- # Set x-goog-api-client and x-goog-user-project headers
1345
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1329
1346
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1330
1347
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1331
1348
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
1349
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1332
1350
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1333
1351
 
1334
1352
  header_params = {}
@@ -1440,10 +1458,11 @@ module Google
1440
1458
  # Customize the options with defaults
1441
1459
  metadata = @config.rpcs.create_instance.metadata.to_h
1442
1460
 
1443
- # Set x-goog-api-client and x-goog-user-project headers
1461
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1444
1462
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1445
1463
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1446
1464
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
1465
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1447
1466
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1448
1467
 
1449
1468
  header_params = {}
@@ -1556,10 +1575,11 @@ module Google
1556
1575
  # Customize the options with defaults
1557
1576
  metadata = @config.rpcs.create_secondary_instance.metadata.to_h
1558
1577
 
1559
- # Set x-goog-api-client and x-goog-user-project headers
1578
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1560
1579
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1561
1580
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1562
1581
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
1582
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1563
1583
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1564
1584
 
1565
1585
  header_params = {}
@@ -1674,10 +1694,11 @@ module Google
1674
1694
  # Customize the options with defaults
1675
1695
  metadata = @config.rpcs.batch_create_instances.metadata.to_h
1676
1696
 
1677
- # Set x-goog-api-client and x-goog-user-project headers
1697
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1678
1698
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1679
1699
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1680
1700
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
1701
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1681
1702
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1682
1703
 
1683
1704
  header_params = {}
@@ -1794,10 +1815,11 @@ module Google
1794
1815
  # Customize the options with defaults
1795
1816
  metadata = @config.rpcs.update_instance.metadata.to_h
1796
1817
 
1797
- # Set x-goog-api-client and x-goog-user-project headers
1818
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1798
1819
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1799
1820
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1800
1821
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
1822
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1801
1823
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1802
1824
 
1803
1825
  header_params = {}
@@ -1909,10 +1931,11 @@ module Google
1909
1931
  # Customize the options with defaults
1910
1932
  metadata = @config.rpcs.delete_instance.metadata.to_h
1911
1933
 
1912
- # Set x-goog-api-client and x-goog-user-project headers
1934
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1913
1935
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1914
1936
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1915
1937
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
1938
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1916
1939
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1917
1940
 
1918
1941
  header_params = {}
@@ -2022,10 +2045,11 @@ module Google
2022
2045
  # Customize the options with defaults
2023
2046
  metadata = @config.rpcs.failover_instance.metadata.to_h
2024
2047
 
2025
- # Set x-goog-api-client and x-goog-user-project headers
2048
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2026
2049
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2027
2050
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2028
2051
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
2052
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2029
2053
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2030
2054
 
2031
2055
  header_params = {}
@@ -2137,10 +2161,11 @@ module Google
2137
2161
  # Customize the options with defaults
2138
2162
  metadata = @config.rpcs.inject_fault.metadata.to_h
2139
2163
 
2140
- # Set x-goog-api-client and x-goog-user-project headers
2164
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2141
2165
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2142
2166
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2143
2167
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
2168
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2144
2169
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2145
2170
 
2146
2171
  header_params = {}
@@ -2249,10 +2274,11 @@ module Google
2249
2274
  # Customize the options with defaults
2250
2275
  metadata = @config.rpcs.restart_instance.metadata.to_h
2251
2276
 
2252
- # Set x-goog-api-client and x-goog-user-project headers
2277
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2253
2278
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2254
2279
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2255
2280
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
2281
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2256
2282
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2257
2283
 
2258
2284
  header_params = {}
@@ -2348,10 +2374,11 @@ module Google
2348
2374
  # Customize the options with defaults
2349
2375
  metadata = @config.rpcs.list_backups.metadata.to_h
2350
2376
 
2351
- # Set x-goog-api-client and x-goog-user-project headers
2377
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2352
2378
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2353
2379
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2354
2380
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
2381
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2355
2382
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2356
2383
 
2357
2384
  header_params = {}
@@ -2434,10 +2461,11 @@ module Google
2434
2461
  # Customize the options with defaults
2435
2462
  metadata = @config.rpcs.get_backup.metadata.to_h
2436
2463
 
2437
- # Set x-goog-api-client and x-goog-user-project headers
2464
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2438
2465
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2439
2466
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2440
2467
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
2468
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2441
2469
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2442
2470
 
2443
2471
  header_params = {}
@@ -2547,10 +2575,11 @@ module Google
2547
2575
  # Customize the options with defaults
2548
2576
  metadata = @config.rpcs.create_backup.metadata.to_h
2549
2577
 
2550
- # Set x-goog-api-client and x-goog-user-project headers
2578
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2551
2579
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2552
2580
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2553
2581
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
2582
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2554
2583
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2555
2584
 
2556
2585
  header_params = {}
@@ -2666,10 +2695,11 @@ module Google
2666
2695
  # Customize the options with defaults
2667
2696
  metadata = @config.rpcs.update_backup.metadata.to_h
2668
2697
 
2669
- # Set x-goog-api-client and x-goog-user-project headers
2698
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2670
2699
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2671
2700
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2672
2701
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
2702
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2673
2703
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2674
2704
 
2675
2705
  header_params = {}
@@ -2781,10 +2811,11 @@ module Google
2781
2811
  # Customize the options with defaults
2782
2812
  metadata = @config.rpcs.delete_backup.metadata.to_h
2783
2813
 
2784
- # Set x-goog-api-client and x-goog-user-project headers
2814
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2785
2815
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2786
2816
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2787
2817
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
2818
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2788
2819
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2789
2820
 
2790
2821
  header_params = {}
@@ -2882,10 +2913,11 @@ module Google
2882
2913
  # Customize the options with defaults
2883
2914
  metadata = @config.rpcs.list_supported_database_flags.metadata.to_h
2884
2915
 
2885
- # Set x-goog-api-client and x-goog-user-project headers
2916
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2886
2917
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2887
2918
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2888
2919
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
2920
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2889
2921
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2890
2922
 
2891
2923
  header_params = {}
@@ -2953,7 +2985,8 @@ module Google
2953
2985
  # The request ID must be a valid UUID with the exception that zero UUID is
2954
2986
  # not supported (00000000-0000-0000-0000-000000000000).
2955
2987
  # @param pem_csr [::String]
2956
- # Optional. A pem-encoded X.509 certificate signing request (CSR).
2988
+ # Optional. A pem-encoded X.509 certificate signing request (CSR). It is
2989
+ # recommended to use public_key instead.
2957
2990
  # @param cert_duration [::Google::Protobuf::Duration, ::Hash]
2958
2991
  # Optional. An optional hint to the endpoint to generate the client
2959
2992
  # certificate with the requested duration. The duration can be from 1 hour to
@@ -3001,10 +3034,11 @@ module Google
3001
3034
  # Customize the options with defaults
3002
3035
  metadata = @config.rpcs.generate_client_certificate.metadata.to_h
3003
3036
 
3004
- # Set x-goog-api-client and x-goog-user-project headers
3037
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3005
3038
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3006
3039
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3007
3040
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
3041
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3008
3042
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3009
3043
 
3010
3044
  header_params = {}
@@ -3101,10 +3135,11 @@ module Google
3101
3135
  # Customize the options with defaults
3102
3136
  metadata = @config.rpcs.get_connection_info.metadata.to_h
3103
3137
 
3104
- # Set x-goog-api-client and x-goog-user-project headers
3138
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3105
3139
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3106
3140
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3107
3141
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
3142
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3108
3143
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3109
3144
 
3110
3145
  header_params = {}
@@ -3199,10 +3234,11 @@ module Google
3199
3234
  # Customize the options with defaults
3200
3235
  metadata = @config.rpcs.list_users.metadata.to_h
3201
3236
 
3202
- # Set x-goog-api-client and x-goog-user-project headers
3237
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3203
3238
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3204
3239
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3205
3240
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
3241
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3206
3242
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3207
3243
 
3208
3244
  header_params = {}
@@ -3286,10 +3322,11 @@ module Google
3286
3322
  # Customize the options with defaults
3287
3323
  metadata = @config.rpcs.get_user.metadata.to_h
3288
3324
 
3289
- # Set x-goog-api-client and x-goog-user-project headers
3325
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3290
3326
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3291
3327
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3292
3328
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
3329
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3293
3330
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3294
3331
 
3295
3332
  header_params = {}
@@ -3392,10 +3429,11 @@ module Google
3392
3429
  # Customize the options with defaults
3393
3430
  metadata = @config.rpcs.create_user.metadata.to_h
3394
3431
 
3395
- # Set x-goog-api-client and x-goog-user-project headers
3432
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3396
3433
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3397
3434
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3398
3435
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
3436
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3399
3437
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3400
3438
 
3401
3439
  header_params = {}
@@ -3502,10 +3540,11 @@ module Google
3502
3540
  # Customize the options with defaults
3503
3541
  metadata = @config.rpcs.update_user.metadata.to_h
3504
3542
 
3505
- # Set x-goog-api-client and x-goog-user-project headers
3543
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3506
3544
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3507
3545
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3508
3546
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
3547
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3509
3548
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3510
3549
 
3511
3550
  header_params = {}
@@ -3605,10 +3644,11 @@ module Google
3605
3644
  # Customize the options with defaults
3606
3645
  metadata = @config.rpcs.delete_user.metadata.to_h
3607
3646
 
3608
- # Set x-goog-api-client and x-goog-user-project headers
3647
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3609
3648
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3610
3649
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3611
3650
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
3651
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3612
3652
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3613
3653
 
3614
3654
  header_params = {}
@@ -3635,6 +3675,109 @@ module Google
3635
3675
  raise ::Google::Cloud::Error.from_error(e)
3636
3676
  end
3637
3677
 
3678
+ ##
3679
+ # Lists Databases in a given project and location.
3680
+ #
3681
+ # @overload list_databases(request, options = nil)
3682
+ # Pass arguments to `list_databases` via a request object, either of type
3683
+ # {::Google::Cloud::AlloyDB::V1beta::ListDatabasesRequest} or an equivalent Hash.
3684
+ #
3685
+ # @param request [::Google::Cloud::AlloyDB::V1beta::ListDatabasesRequest, ::Hash]
3686
+ # A request object representing the call parameters. Required. To specify no
3687
+ # parameters, or to keep all the default parameter values, pass an empty Hash.
3688
+ # @param options [::Gapic::CallOptions, ::Hash]
3689
+ # Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
3690
+ #
3691
+ # @overload list_databases(parent: nil, page_size: nil, page_token: nil, filter: nil)
3692
+ # Pass arguments to `list_databases` via keyword arguments. Note that at
3693
+ # least one keyword argument is required. To specify no parameters, or to keep all
3694
+ # the default parameter values, pass an empty Hash as a request object (see above).
3695
+ #
3696
+ # @param parent [::String]
3697
+ # Required. Parent value for ListDatabasesRequest.
3698
+ # @param page_size [::Integer]
3699
+ # Optional. The maximum number of databases to return. The service may return
3700
+ # fewer than this value. If unspecified, an appropriate number of databases
3701
+ # will be returned. The max value will be 2000, values above max will be
3702
+ # coerced to max.
3703
+ # @param page_token [::String]
3704
+ # Optional. A page token, received from a previous `ListDatabases` call.
3705
+ # This should be provided to retrieve the subsequent page.
3706
+ # This field is currently not supported, its value will be ignored if passed.
3707
+ # @param filter [::String]
3708
+ # Optional. Filtering results.
3709
+ # This field is currently not supported, its value will be ignored if passed.
3710
+ #
3711
+ # @yield [response, operation] Access the result along with the RPC operation
3712
+ # @yieldparam response [::Gapic::PagedEnumerable<::Google::Cloud::AlloyDB::V1beta::Database>]
3713
+ # @yieldparam operation [::GRPC::ActiveCall::Operation]
3714
+ #
3715
+ # @return [::Gapic::PagedEnumerable<::Google::Cloud::AlloyDB::V1beta::Database>]
3716
+ #
3717
+ # @raise [::Google::Cloud::Error] if the RPC is aborted.
3718
+ #
3719
+ # @example Basic example
3720
+ # require "google/cloud/alloy_db/v1beta"
3721
+ #
3722
+ # # Create a client object. The client can be reused for multiple calls.
3723
+ # client = Google::Cloud::AlloyDB::V1beta::AlloyDBAdmin::Client.new
3724
+ #
3725
+ # # Create a request. To set request fields, pass in keyword arguments.
3726
+ # request = Google::Cloud::AlloyDB::V1beta::ListDatabasesRequest.new
3727
+ #
3728
+ # # Call the list_databases method.
3729
+ # result = client.list_databases request
3730
+ #
3731
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
3732
+ # # over elements, and API calls will be issued to fetch pages as needed.
3733
+ # result.each do |item|
3734
+ # # Each element is of type ::Google::Cloud::AlloyDB::V1beta::Database.
3735
+ # p item
3736
+ # end
3737
+ #
3738
+ def list_databases request, options = nil
3739
+ raise ::ArgumentError, "request must be provided" if request.nil?
3740
+
3741
+ request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::AlloyDB::V1beta::ListDatabasesRequest
3742
+
3743
+ # Converts hash and nil to an options object
3744
+ options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
3745
+
3746
+ # Customize the options with defaults
3747
+ metadata = @config.rpcs.list_databases.metadata.to_h
3748
+
3749
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3750
+ metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3751
+ lib_name: @config.lib_name, lib_version: @config.lib_version,
3752
+ gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
3753
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3754
+ metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3755
+
3756
+ header_params = {}
3757
+ if request.parent
3758
+ header_params["parent"] = request.parent
3759
+ end
3760
+
3761
+ request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
3762
+ metadata[:"x-goog-request-params"] ||= request_params_header
3763
+
3764
+ options.apply_defaults timeout: @config.rpcs.list_databases.timeout,
3765
+ metadata: metadata,
3766
+ retry_policy: @config.rpcs.list_databases.retry_policy
3767
+
3768
+ options.apply_defaults timeout: @config.timeout,
3769
+ metadata: @config.metadata,
3770
+ retry_policy: @config.retry_policy
3771
+
3772
+ @alloy_db_admin_stub.call_rpc :list_databases, request, options: options do |response, operation|
3773
+ response = ::Gapic::PagedEnumerable.new @alloy_db_admin_stub, :list_databases, request, response, operation, options
3774
+ yield response, operation if block_given?
3775
+ return response
3776
+ end
3777
+ rescue ::GRPC::BadStatus => e
3778
+ raise ::Google::Cloud::Error.from_error(e)
3779
+ end
3780
+
3638
3781
  ##
3639
3782
  # Configuration class for the AlloyDBAdmin API.
3640
3783
  #
@@ -3943,6 +4086,11 @@ module Google
3943
4086
  # @return [::Gapic::Config::Method]
3944
4087
  #
3945
4088
  attr_reader :delete_user
4089
+ ##
4090
+ # RPC-specific configuration for `list_databases`
4091
+ # @return [::Gapic::Config::Method]
4092
+ #
4093
+ attr_reader :list_databases
3946
4094
 
3947
4095
  # @private
3948
4096
  def initialize parent_rpcs = nil
@@ -4008,6 +4156,8 @@ module Google
4008
4156
  @update_user = ::Gapic::Config::Method.new update_user_config
4009
4157
  delete_user_config = parent_rpcs.delete_user if parent_rpcs.respond_to? :delete_user
4010
4158
  @delete_user = ::Gapic::Config::Method.new delete_user_config
4159
+ list_databases_config = parent_rpcs.list_databases if parent_rpcs.respond_to? :list_databases
4160
+ @list_databases = ::Gapic::Config::Method.new list_databases_config
4011
4161
 
4012
4162
  yield self if block_given?
4013
4163
  end
@@ -26,6 +26,9 @@ module Google
26
26
  module AlloyDBAdmin
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "alloydb.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  header_params = {}
@@ -287,10 +291,11 @@ module Google
287
291
  # Customize the options with defaults
288
292
  metadata = @config.rpcs.get_operation.metadata.to_h
289
293
 
290
- # Set x-goog-api-client and x-goog-user-project headers
294
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
291
295
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
292
296
  lib_name: @config.lib_name, lib_version: @config.lib_version,
293
297
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
298
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
294
299
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
295
300
 
296
301
  header_params = {}
@@ -376,10 +381,11 @@ module Google
376
381
  # Customize the options with defaults
377
382
  metadata = @config.rpcs.delete_operation.metadata.to_h
378
383
 
379
- # Set x-goog-api-client and x-goog-user-project headers
384
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
380
385
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
381
386
  lib_name: @config.lib_name, lib_version: @config.lib_version,
382
387
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
388
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
383
389
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
384
390
 
385
391
  header_params = {}
@@ -470,10 +476,11 @@ module Google
470
476
  # Customize the options with defaults
471
477
  metadata = @config.rpcs.cancel_operation.metadata.to_h
472
478
 
473
- # Set x-goog-api-client and x-goog-user-project headers
479
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
474
480
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
475
481
  lib_name: @config.lib_name, lib_version: @config.lib_version,
476
482
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
483
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
477
484
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
478
485
 
479
486
  header_params = {}
@@ -574,10 +581,11 @@ module Google
574
581
  # Customize the options with defaults
575
582
  metadata = @config.rpcs.wait_operation.metadata.to_h
576
583
 
577
- # Set x-goog-api-client and x-goog-user-project headers
584
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
578
585
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
579
586
  lib_name: @config.lib_name, lib_version: @config.lib_version,
580
587
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION
588
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
581
589
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
582
590
 
583
591
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,