google-cloud-alloy_db-v1alpha 0.7.0 → 0.7.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: a4d89ec27f235796f423269a1f7b7b7592b0eae5f373a78262a7122dceebb3be
4
- data.tar.gz: 11c140883377778bd899f1f3bb46333b54691d729a8cfa47a604db8911ba90c3
3
+ metadata.gz: 320d3b3ae170d016f97cd662b1dbb1657daefa9000e798411ef62d61141f92fb
4
+ data.tar.gz: 4401056a0b2bf165570795d1c4900c808d32b0257a9eb18b425a7b425e748dd1
5
5
  SHA512:
6
- metadata.gz: 69817d3f0bc8397d368a8fc608edf3286ea67959edd8459800aba31b970a7502e82911e9fb98bbb05a47f4aa8a3aba1d33631015ffdce867b22c2d89adbc98d5
7
- data.tar.gz: 4766d3e661a26ef1258938f19083ad25e32b533135866cb3e6a0e97dba30f787eb4ebf91804d9ff5786cb815c905469263c1a2d990e1cb5d308fbf59f98b58a1
6
+ metadata.gz: 36795629cb5bf82059ea067d5713bbfde7168a819da7b2c60ecb7edffa720f78e717b9a10bdcd9da6694e995cba375d411da87d6e492cc34cfd08802600b4bfa
7
+ data.tar.gz: 2a10faa2996e7b66b087a509401323cf6399094237633e81ec12d6ef97f4635c04f4ef7a3d3ab6c0e2ea620482d00f448c5df666e075251d3ec16a9b6cc78417
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
 
@@ -337,10 +340,11 @@ module Google
337
340
  # Customize the options with defaults
338
341
  metadata = @config.rpcs.list_clusters.metadata.to_h
339
342
 
340
- # 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
341
344
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
342
345
  lib_name: @config.lib_name, lib_version: @config.lib_version,
343
346
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
347
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
344
348
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
345
349
 
346
350
  header_params = {}
@@ -427,10 +431,11 @@ module Google
427
431
  # Customize the options with defaults
428
432
  metadata = @config.rpcs.get_cluster.metadata.to_h
429
433
 
430
- # 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
431
435
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
432
436
  lib_name: @config.lib_name, lib_version: @config.lib_version,
433
437
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
438
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
434
439
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
435
440
 
436
441
  header_params = {}
@@ -542,10 +547,11 @@ module Google
542
547
  # Customize the options with defaults
543
548
  metadata = @config.rpcs.create_cluster.metadata.to_h
544
549
 
545
- # 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
546
551
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
547
552
  lib_name: @config.lib_name, lib_version: @config.lib_version,
548
553
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
554
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
549
555
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
550
556
 
551
557
  header_params = {}
@@ -662,10 +668,11 @@ module Google
662
668
  # Customize the options with defaults
663
669
  metadata = @config.rpcs.update_cluster.metadata.to_h
664
670
 
665
- # 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
666
672
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
667
673
  lib_name: @config.lib_name, lib_version: @config.lib_version,
668
674
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
675
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
669
676
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
670
677
 
671
678
  header_params = {}
@@ -779,10 +786,11 @@ module Google
779
786
  # Customize the options with defaults
780
787
  metadata = @config.rpcs.delete_cluster.metadata.to_h
781
788
 
782
- # 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
783
790
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
784
791
  lib_name: @config.lib_name, lib_version: @config.lib_version,
785
792
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
793
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
786
794
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
787
795
 
788
796
  header_params = {}
@@ -897,10 +905,11 @@ module Google
897
905
  # Customize the options with defaults
898
906
  metadata = @config.rpcs.promote_cluster.metadata.to_h
899
907
 
900
- # 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
901
909
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
902
910
  lib_name: @config.lib_name, lib_version: @config.lib_version,
903
911
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
912
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
904
913
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
905
914
 
906
915
  header_params = {}
@@ -1020,10 +1029,11 @@ module Google
1020
1029
  # Customize the options with defaults
1021
1030
  metadata = @config.rpcs.restore_cluster.metadata.to_h
1022
1031
 
1023
- # 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
1024
1033
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1025
1034
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1026
1035
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
1036
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1027
1037
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1028
1038
 
1029
1039
  header_params = {}
@@ -1137,10 +1147,11 @@ module Google
1137
1147
  # Customize the options with defaults
1138
1148
  metadata = @config.rpcs.create_secondary_cluster.metadata.to_h
1139
1149
 
1140
- # 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
1141
1151
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1142
1152
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1143
1153
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
1154
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1144
1155
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1145
1156
 
1146
1157
  header_params = {}
@@ -1241,10 +1252,11 @@ module Google
1241
1252
  # Customize the options with defaults
1242
1253
  metadata = @config.rpcs.list_instances.metadata.to_h
1243
1254
 
1244
- # 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
1245
1256
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1246
1257
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1247
1258
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
1259
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1248
1260
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1249
1261
 
1250
1262
  header_params = {}
@@ -1330,10 +1342,11 @@ module Google
1330
1342
  # Customize the options with defaults
1331
1343
  metadata = @config.rpcs.get_instance.metadata.to_h
1332
1344
 
1333
- # 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
1334
1346
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1335
1347
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1336
1348
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
1349
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1337
1350
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1338
1351
 
1339
1352
  header_params = {}
@@ -1445,10 +1458,11 @@ module Google
1445
1458
  # Customize the options with defaults
1446
1459
  metadata = @config.rpcs.create_instance.metadata.to_h
1447
1460
 
1448
- # 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
1449
1462
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1450
1463
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1451
1464
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
1465
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1452
1466
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1453
1467
 
1454
1468
  header_params = {}
@@ -1561,10 +1575,11 @@ module Google
1561
1575
  # Customize the options with defaults
1562
1576
  metadata = @config.rpcs.create_secondary_instance.metadata.to_h
1563
1577
 
1564
- # 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
1565
1579
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1566
1580
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1567
1581
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
1582
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1568
1583
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1569
1584
 
1570
1585
  header_params = {}
@@ -1679,10 +1694,11 @@ module Google
1679
1694
  # Customize the options with defaults
1680
1695
  metadata = @config.rpcs.batch_create_instances.metadata.to_h
1681
1696
 
1682
- # 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
1683
1698
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1684
1699
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1685
1700
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
1701
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1686
1702
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1687
1703
 
1688
1704
  header_params = {}
@@ -1799,10 +1815,11 @@ module Google
1799
1815
  # Customize the options with defaults
1800
1816
  metadata = @config.rpcs.update_instance.metadata.to_h
1801
1817
 
1802
- # 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
1803
1819
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1804
1820
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1805
1821
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
1822
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1806
1823
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1807
1824
 
1808
1825
  header_params = {}
@@ -1914,10 +1931,11 @@ module Google
1914
1931
  # Customize the options with defaults
1915
1932
  metadata = @config.rpcs.delete_instance.metadata.to_h
1916
1933
 
1917
- # 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
1918
1935
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1919
1936
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1920
1937
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
1938
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1921
1939
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1922
1940
 
1923
1941
  header_params = {}
@@ -2027,10 +2045,11 @@ module Google
2027
2045
  # Customize the options with defaults
2028
2046
  metadata = @config.rpcs.failover_instance.metadata.to_h
2029
2047
 
2030
- # 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
2031
2049
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2032
2050
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2033
2051
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
2052
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2034
2053
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2035
2054
 
2036
2055
  header_params = {}
@@ -2142,10 +2161,11 @@ module Google
2142
2161
  # Customize the options with defaults
2143
2162
  metadata = @config.rpcs.inject_fault.metadata.to_h
2144
2163
 
2145
- # 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
2146
2165
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2147
2166
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2148
2167
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
2168
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2149
2169
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2150
2170
 
2151
2171
  header_params = {}
@@ -2254,10 +2274,11 @@ module Google
2254
2274
  # Customize the options with defaults
2255
2275
  metadata = @config.rpcs.restart_instance.metadata.to_h
2256
2276
 
2257
- # 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
2258
2278
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2259
2279
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2260
2280
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
2281
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2261
2282
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2262
2283
 
2263
2284
  header_params = {}
@@ -2353,10 +2374,11 @@ module Google
2353
2374
  # Customize the options with defaults
2354
2375
  metadata = @config.rpcs.list_backups.metadata.to_h
2355
2376
 
2356
- # 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
2357
2378
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2358
2379
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2359
2380
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
2381
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2360
2382
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2361
2383
 
2362
2384
  header_params = {}
@@ -2439,10 +2461,11 @@ module Google
2439
2461
  # Customize the options with defaults
2440
2462
  metadata = @config.rpcs.get_backup.metadata.to_h
2441
2463
 
2442
- # 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
2443
2465
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2444
2466
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2445
2467
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
2468
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2446
2469
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2447
2470
 
2448
2471
  header_params = {}
@@ -2552,10 +2575,11 @@ module Google
2552
2575
  # Customize the options with defaults
2553
2576
  metadata = @config.rpcs.create_backup.metadata.to_h
2554
2577
 
2555
- # 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
2556
2579
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2557
2580
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2558
2581
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
2582
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2559
2583
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2560
2584
 
2561
2585
  header_params = {}
@@ -2671,10 +2695,11 @@ module Google
2671
2695
  # Customize the options with defaults
2672
2696
  metadata = @config.rpcs.update_backup.metadata.to_h
2673
2697
 
2674
- # 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
2675
2699
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2676
2700
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2677
2701
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
2702
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2678
2703
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2679
2704
 
2680
2705
  header_params = {}
@@ -2786,10 +2811,11 @@ module Google
2786
2811
  # Customize the options with defaults
2787
2812
  metadata = @config.rpcs.delete_backup.metadata.to_h
2788
2813
 
2789
- # 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
2790
2815
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2791
2816
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2792
2817
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
2818
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2793
2819
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2794
2820
 
2795
2821
  header_params = {}
@@ -2887,10 +2913,11 @@ module Google
2887
2913
  # Customize the options with defaults
2888
2914
  metadata = @config.rpcs.list_supported_database_flags.metadata.to_h
2889
2915
 
2890
- # 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
2891
2917
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2892
2918
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2893
2919
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
2920
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2894
2921
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2895
2922
 
2896
2923
  header_params = {}
@@ -3007,10 +3034,11 @@ module Google
3007
3034
  # Customize the options with defaults
3008
3035
  metadata = @config.rpcs.generate_client_certificate.metadata.to_h
3009
3036
 
3010
- # 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
3011
3038
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3012
3039
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3013
3040
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
3041
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3014
3042
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3015
3043
 
3016
3044
  header_params = {}
@@ -3107,10 +3135,11 @@ module Google
3107
3135
  # Customize the options with defaults
3108
3136
  metadata = @config.rpcs.get_connection_info.metadata.to_h
3109
3137
 
3110
- # 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
3111
3139
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3112
3140
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3113
3141
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
3142
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3114
3143
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3115
3144
 
3116
3145
  header_params = {}
@@ -3205,10 +3234,11 @@ module Google
3205
3234
  # Customize the options with defaults
3206
3235
  metadata = @config.rpcs.list_users.metadata.to_h
3207
3236
 
3208
- # 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
3209
3238
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3210
3239
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3211
3240
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
3241
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3212
3242
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3213
3243
 
3214
3244
  header_params = {}
@@ -3292,10 +3322,11 @@ module Google
3292
3322
  # Customize the options with defaults
3293
3323
  metadata = @config.rpcs.get_user.metadata.to_h
3294
3324
 
3295
- # 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
3296
3326
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3297
3327
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3298
3328
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
3329
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3299
3330
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3300
3331
 
3301
3332
  header_params = {}
@@ -3398,10 +3429,11 @@ module Google
3398
3429
  # Customize the options with defaults
3399
3430
  metadata = @config.rpcs.create_user.metadata.to_h
3400
3431
 
3401
- # 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
3402
3433
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3403
3434
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3404
3435
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
3436
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3405
3437
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3406
3438
 
3407
3439
  header_params = {}
@@ -3508,10 +3540,11 @@ module Google
3508
3540
  # Customize the options with defaults
3509
3541
  metadata = @config.rpcs.update_user.metadata.to_h
3510
3542
 
3511
- # 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
3512
3544
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3513
3545
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3514
3546
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
3547
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3515
3548
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3516
3549
 
3517
3550
  header_params = {}
@@ -3611,10 +3644,11 @@ module Google
3611
3644
  # Customize the options with defaults
3612
3645
  metadata = @config.rpcs.delete_user.metadata.to_h
3613
3646
 
3614
- # 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
3615
3648
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3616
3649
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3617
3650
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
3651
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3618
3652
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3619
3653
 
3620
3654
  header_params = {}
@@ -3712,10 +3746,11 @@ module Google
3712
3746
  # Customize the options with defaults
3713
3747
  metadata = @config.rpcs.list_databases.metadata.to_h
3714
3748
 
3715
- # Set x-goog-api-client and x-goog-user-project headers
3749
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3716
3750
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3717
3751
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3718
3752
  gapic_version: ::Google::Cloud::AlloyDB::V1alpha::VERSION
3753
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3719
3754
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3720
3755
 
3721
3756
  header_params = {}
@@ -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::V1alpha::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::V1alpha::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::V1alpha::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::V1alpha::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::V1alpha::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,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AlloyDB
23
23
  module V1alpha
24
- VERSION = "0.7.0"
24
+ VERSION = "0.7.1"
25
25
  end
26
26
  end
27
27
  end
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -286,6 +290,13 @@ module Google
286
290
  # @return [::String]
287
291
  # The fully qualified name of the method, for which the options below apply.
288
292
  # This is used to find the method to apply the options.
293
+ #
294
+ # Example:
295
+ #
296
+ # publishing:
297
+ # method_settings:
298
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
299
+ # # method settings for CreateFolder...
289
300
  # @!attribute [rw] long_running
290
301
  # @return [::Google::Api::MethodSettings::LongRunning]
291
302
  # Describes settings to use for long-running operations when generating
@@ -294,17 +305,14 @@ module Google
294
305
  #
295
306
  # Example of a YAML configuration::
296
307
  #
297
- # publishing:
298
- # method_settings:
308
+ # publishing:
309
+ # method_settings:
299
310
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
300
311
  # long_running:
301
- # initial_poll_delay:
302
- # seconds: 60 # 1 minute
312
+ # initial_poll_delay: 60s # 1 minute
303
313
  # poll_delay_multiplier: 1.5
304
- # max_poll_delay:
305
- # seconds: 360 # 6 minutes
306
- # total_poll_timeout:
307
- # seconds: 54000 # 90 minutes
314
+ # max_poll_delay: 360s # 6 minutes
315
+ # total_poll_timeout: 54000s # 90 minutes
308
316
  # @!attribute [rw] auto_populated_fields
309
317
  # @return [::Array<::String>]
310
318
  # List of top-level fields of the request message, that should be
@@ -313,8 +321,8 @@ module Google
313
321
  #
314
322
  # Example of a YAML configuration:
315
323
  #
316
- # publishing:
317
- # method_settings:
324
+ # publishing:
325
+ # method_settings:
318
326
  # - selector: google.example.v1.ExampleService.CreateExample
319
327
  # auto_populated_fields:
320
328
  # - request_id
@@ -25,6 +25,12 @@ module Google
25
25
  # The standard format of a field value. This does not explicitly configure
26
26
  # any API consumer, just documents the API's format for the field it is
27
27
  # applied to.
28
+ # @!attribute [rw] referenced_types
29
+ # @return [::Array<::Google::Api::TypeReference>]
30
+ # The type(s) that the annotated, generic field may represent.
31
+ #
32
+ # Currently, this must only be used on fields of type `google.protobuf.Any`.
33
+ # Supporting other generic types may be considered in the future.
28
34
  class FieldInfo
29
35
  include ::Google::Protobuf::MessageExts
30
36
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -50,9 +56,9 @@ module Google
50
56
 
51
57
  # Internet Protocol v6 value as defined by [RFC
52
58
  # 2460](https://datatracker.ietf.org/doc/html/rfc2460). The value may be
53
- # normalized to entirely lowercase letters, and zero-padded partial and
54
- # empty octets. For example, the value `2001:DB8::` would be normalized to
55
- # `2001:0db8:0:0`.
59
+ # normalized to entirely lowercase letters with zeros compressed, following
60
+ # [RFC 5952](https://datatracker.ietf.org/doc/html/rfc5952). For example,
61
+ # the value `2001:0DB8:0::0` would be normalized to `2001:db8::`.
56
62
  IPV6 = 3
57
63
 
58
64
  # An IP address in either v4 or v6 format as described by the individual
@@ -61,5 +67,22 @@ module Google
61
67
  IPV4_OR_IPV6 = 4
62
68
  end
63
69
  end
70
+
71
+ # A reference to a message type, for use in {::Google::Api::FieldInfo FieldInfo}.
72
+ # @!attribute [rw] type_name
73
+ # @return [::String]
74
+ # The name of the type that the annotated, generic field may represent.
75
+ # If the type is in the same protobuf package, the value can be the simple
76
+ # message name e.g., `"MyMessage"`. Otherwise, the value must be the
77
+ # fully-qualified message name e.g., `"google.library.v1.Book"`.
78
+ #
79
+ # If the type(s) are unknown to the service (e.g. the field accepts generic
80
+ # user input), use the wildcard `"*"` to denote this behavior.
81
+ #
82
+ # See [AIP-202](https://google.aip.dev/202#type-references) for more details.
83
+ class TypeReference
84
+ include ::Google::Protobuf::MessageExts
85
+ extend ::Google::Protobuf::MessageExts::ClassMethods
86
+ end
64
87
  end
65
88
  end
@@ -124,8 +124,13 @@ module Google
124
124
  # @return [::String]
125
125
  # The plural name used in the resource name and permission names, such as
126
126
  # 'projects' for the resource name of 'projects/\\{project}' and the permission
127
- # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
128
- # concept of the `plural` field in k8s CRD spec
127
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
128
+ # to this is for Nested Collections that have stuttering names, as defined
129
+ # in [AIP-122](https://google.aip.dev/122#nested-collections), where the
130
+ # collection ID in the resource name pattern does not necessarily directly
131
+ # match the `plural` value.
132
+ #
133
+ # It is the same concept of the `plural` field in k8s CRD spec
129
134
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
130
135
  #
131
136
  # Note: The plural form is required even for singleton resources. See
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-alloy_db-v1alpha
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.0
4
+ version: 0.7.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-02-28 00:00:00.000000000 Z
11
+ date: 2024-08-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -89,7 +89,7 @@ description: AlloyDB for PostgreSQL is an open source-compatible database servic
89
89
  applications. It offers full compatibility with standard PostgreSQL, and is more
90
90
  than 4x faster for transactional workloads and up to 100x faster for analytical
91
91
  queries than standard PostgreSQL in our performance tests. AlloyDB for PostgreSQL
92
- offers a 99.99 percent availability SLA inclusive of maintenance. AlloyDB is optimized
92
+ offers a 99.99 percent availability SLA inclusive of maintenance. AlloyDB is optimized
93
93
  for the most demanding use cases, allowing you to build new applications that require
94
94
  high transaction throughput, large database sizes, or multiple read resources; scale
95
95
  existing PostgreSQL workloads with no application changes; and modernize legacy