google-cloud-alloy_db-v1beta 0.8.0 → 0.9.0

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: b6a8d6cf84eed8c47cce47361422113ba5676749f4e6e6fcc54c52ab935625c1
4
- data.tar.gz: 9c90ee45d8a91ce3ff28a2386019bc617107a4e8cb8cae424960c92c48457b52
3
+ metadata.gz: '0922a130231c5553d8591bd718a834c8a51622b32786a44bbac074536bb48855'
4
+ data.tar.gz: 9faf5e2b7c1eddc69dfe5e351da304b93776c76fcd29d6ff66a4a8df17fcdd3c
5
5
  SHA512:
6
- metadata.gz: fbe0d715807eeb502cba40caf2c2f4b0a5780e61ff4f10e6f619460142c7744a1d7c11744ed28abee80158445fe974f72b7170ae5487cf424d044e18a901cbb1
7
- data.tar.gz: fed4662266819d6523a408ce33f797ab5f05406728bc4599bcb1c9ef18ed34d9b8fbe323936025cddab411697c084996c4a1ce3c673725a85ee411cdf67b1c79
6
+ metadata.gz: 4cceb476ba60de605f00d8a4b41656dc48fa77f3c8aeabfe56e063940854190a097a59d4aa138d593be1c421bb1beff93aca8e229529fd3c2cd87a17f375e102
7
+ data.tar.gz: 5b963cf038154773f76d5627c825181ded85fa8fe5ec98f5b793b3e7a51b662d1c2ff8a09cb00d597f49c08064bd775298615e60480c13bb2385b02f9bd8c2f5
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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::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,