google-cloud-alloy_db-v1beta 0.8.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: b6a8d6cf84eed8c47cce47361422113ba5676749f4e6e6fcc54c52ab935625c1
4
- data.tar.gz: 9c90ee45d8a91ce3ff28a2386019bc617107a4e8cb8cae424960c92c48457b52
3
+ metadata.gz: 788efdd6d589a62f7fc95ff82f8ab9b91805707590372de5f3cc9e3aae4f8804
4
+ data.tar.gz: 132ef27e09fa9997e98f2554a816f953e57d271adf39ba32913be53c91292832
5
5
  SHA512:
6
- metadata.gz: fbe0d715807eeb502cba40caf2c2f4b0a5780e61ff4f10e6f619460142c7744a1d7c11744ed28abee80158445fe974f72b7170ae5487cf424d044e18a901cbb1
7
- data.tar.gz: fed4662266819d6523a408ce33f797ab5f05406728bc4599bcb1c9ef18ed34d9b8fbe323936025cddab411697c084996c4a1ce3c673725a85ee411cdf67b1c79
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
 
@@ -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,
@@ -34,6 +34,9 @@ module Google
34
34
  # Service describing handlers for resources
35
35
  #
36
36
  class Client
37
+ # @private
38
+ API_VERSION = ""
39
+
37
40
  # @private
38
41
  DEFAULT_ENDPOINT_TEMPLATE = "alloydb.$UNIVERSE_DOMAIN$"
39
42
 
@@ -330,12 +333,13 @@ module Google
330
333
  # Customize the options with defaults
331
334
  call_metadata = @config.rpcs.list_clusters.metadata.to_h
332
335
 
333
- # Set x-goog-api-client and x-goog-user-project headers
336
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
334
337
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
335
338
  lib_name: @config.lib_name, lib_version: @config.lib_version,
336
339
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
337
340
  transports_version_send: [:rest]
338
341
 
342
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
339
343
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
340
344
 
341
345
  options.apply_defaults timeout: @config.rpcs.list_clusters.timeout,
@@ -412,12 +416,13 @@ module Google
412
416
  # Customize the options with defaults
413
417
  call_metadata = @config.rpcs.get_cluster.metadata.to_h
414
418
 
415
- # Set x-goog-api-client and x-goog-user-project headers
419
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
416
420
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
417
421
  lib_name: @config.lib_name, lib_version: @config.lib_version,
418
422
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
419
423
  transports_version_send: [:rest]
420
424
 
425
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
421
426
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
422
427
 
423
428
  options.apply_defaults timeout: @config.rpcs.get_cluster.timeout,
@@ -520,12 +525,13 @@ module Google
520
525
  # Customize the options with defaults
521
526
  call_metadata = @config.rpcs.create_cluster.metadata.to_h
522
527
 
523
- # Set x-goog-api-client and x-goog-user-project headers
528
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
524
529
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
525
530
  lib_name: @config.lib_name, lib_version: @config.lib_version,
526
531
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
527
532
  transports_version_send: [:rest]
528
533
 
534
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
529
535
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
530
536
 
531
537
  options.apply_defaults timeout: @config.rpcs.create_cluster.timeout,
@@ -633,12 +639,13 @@ module Google
633
639
  # Customize the options with defaults
634
640
  call_metadata = @config.rpcs.update_cluster.metadata.to_h
635
641
 
636
- # Set x-goog-api-client and x-goog-user-project headers
642
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
637
643
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
638
644
  lib_name: @config.lib_name, lib_version: @config.lib_version,
639
645
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
640
646
  transports_version_send: [:rest]
641
647
 
648
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
642
649
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
643
650
 
644
651
  options.apply_defaults timeout: @config.rpcs.update_cluster.timeout,
@@ -743,12 +750,13 @@ module Google
743
750
  # Customize the options with defaults
744
751
  call_metadata = @config.rpcs.delete_cluster.metadata.to_h
745
752
 
746
- # Set x-goog-api-client and x-goog-user-project headers
753
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
747
754
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
748
755
  lib_name: @config.lib_name, lib_version: @config.lib_version,
749
756
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
750
757
  transports_version_send: [:rest]
751
758
 
759
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
752
760
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
753
761
 
754
762
  options.apply_defaults timeout: @config.rpcs.delete_cluster.timeout,
@@ -854,12 +862,13 @@ module Google
854
862
  # Customize the options with defaults
855
863
  call_metadata = @config.rpcs.promote_cluster.metadata.to_h
856
864
 
857
- # Set x-goog-api-client and x-goog-user-project headers
865
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
858
866
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
859
867
  lib_name: @config.lib_name, lib_version: @config.lib_version,
860
868
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
861
869
  transports_version_send: [:rest]
862
870
 
871
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
863
872
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
864
873
 
865
874
  options.apply_defaults timeout: @config.rpcs.promote_cluster.timeout,
@@ -970,12 +979,13 @@ module Google
970
979
  # Customize the options with defaults
971
980
  call_metadata = @config.rpcs.restore_cluster.metadata.to_h
972
981
 
973
- # Set x-goog-api-client and x-goog-user-project headers
982
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
974
983
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
975
984
  lib_name: @config.lib_name, lib_version: @config.lib_version,
976
985
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
977
986
  transports_version_send: [:rest]
978
987
 
988
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
979
989
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
980
990
 
981
991
  options.apply_defaults timeout: @config.rpcs.restore_cluster.timeout,
@@ -1080,12 +1090,13 @@ module Google
1080
1090
  # Customize the options with defaults
1081
1091
  call_metadata = @config.rpcs.create_secondary_cluster.metadata.to_h
1082
1092
 
1083
- # Set x-goog-api-client and x-goog-user-project headers
1093
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1084
1094
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1085
1095
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1086
1096
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
1087
1097
  transports_version_send: [:rest]
1088
1098
 
1099
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1089
1100
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1090
1101
 
1091
1102
  options.apply_defaults timeout: @config.rpcs.create_secondary_cluster.timeout,
@@ -1177,12 +1188,13 @@ module Google
1177
1188
  # Customize the options with defaults
1178
1189
  call_metadata = @config.rpcs.list_instances.metadata.to_h
1179
1190
 
1180
- # Set x-goog-api-client and x-goog-user-project headers
1191
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1181
1192
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1182
1193
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1183
1194
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
1184
1195
  transports_version_send: [:rest]
1185
1196
 
1197
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1186
1198
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1187
1199
 
1188
1200
  options.apply_defaults timeout: @config.rpcs.list_instances.timeout,
@@ -1258,12 +1270,13 @@ module Google
1258
1270
  # Customize the options with defaults
1259
1271
  call_metadata = @config.rpcs.get_instance.metadata.to_h
1260
1272
 
1261
- # Set x-goog-api-client and x-goog-user-project headers
1273
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1262
1274
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1263
1275
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1264
1276
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
1265
1277
  transports_version_send: [:rest]
1266
1278
 
1279
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1267
1280
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1268
1281
 
1269
1282
  options.apply_defaults timeout: @config.rpcs.get_instance.timeout,
@@ -1366,12 +1379,13 @@ module Google
1366
1379
  # Customize the options with defaults
1367
1380
  call_metadata = @config.rpcs.create_instance.metadata.to_h
1368
1381
 
1369
- # Set x-goog-api-client and x-goog-user-project headers
1382
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1370
1383
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1371
1384
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1372
1385
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
1373
1386
  transports_version_send: [:rest]
1374
1387
 
1388
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1375
1389
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1376
1390
 
1377
1391
  options.apply_defaults timeout: @config.rpcs.create_instance.timeout,
@@ -1475,12 +1489,13 @@ module Google
1475
1489
  # Customize the options with defaults
1476
1490
  call_metadata = @config.rpcs.create_secondary_instance.metadata.to_h
1477
1491
 
1478
- # Set x-goog-api-client and x-goog-user-project headers
1492
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1479
1493
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1480
1494
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1481
1495
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
1482
1496
  transports_version_send: [:rest]
1483
1497
 
1498
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1484
1499
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1485
1500
 
1486
1501
  options.apply_defaults timeout: @config.rpcs.create_secondary_instance.timeout,
@@ -1586,12 +1601,13 @@ module Google
1586
1601
  # Customize the options with defaults
1587
1602
  call_metadata = @config.rpcs.batch_create_instances.metadata.to_h
1588
1603
 
1589
- # Set x-goog-api-client and x-goog-user-project headers
1604
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1590
1605
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1591
1606
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1592
1607
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
1593
1608
  transports_version_send: [:rest]
1594
1609
 
1610
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1595
1611
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1596
1612
 
1597
1613
  options.apply_defaults timeout: @config.rpcs.batch_create_instances.timeout,
@@ -1699,12 +1715,13 @@ module Google
1699
1715
  # Customize the options with defaults
1700
1716
  call_metadata = @config.rpcs.update_instance.metadata.to_h
1701
1717
 
1702
- # Set x-goog-api-client and x-goog-user-project headers
1718
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1703
1719
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1704
1720
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1705
1721
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
1706
1722
  transports_version_send: [:rest]
1707
1723
 
1724
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1708
1725
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1709
1726
 
1710
1727
  options.apply_defaults timeout: @config.rpcs.update_instance.timeout,
@@ -1807,12 +1824,13 @@ module Google
1807
1824
  # Customize the options with defaults
1808
1825
  call_metadata = @config.rpcs.delete_instance.metadata.to_h
1809
1826
 
1810
- # Set x-goog-api-client and x-goog-user-project headers
1827
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1811
1828
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1812
1829
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1813
1830
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
1814
1831
  transports_version_send: [:rest]
1815
1832
 
1833
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1816
1834
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1817
1835
 
1818
1836
  options.apply_defaults timeout: @config.rpcs.delete_instance.timeout,
@@ -1913,12 +1931,13 @@ module Google
1913
1931
  # Customize the options with defaults
1914
1932
  call_metadata = @config.rpcs.failover_instance.metadata.to_h
1915
1933
 
1916
- # 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
1917
1935
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1918
1936
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1919
1937
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
1920
1938
  transports_version_send: [:rest]
1921
1939
 
1940
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1922
1941
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1923
1942
 
1924
1943
  options.apply_defaults timeout: @config.rpcs.failover_instance.timeout,
@@ -2021,12 +2040,13 @@ module Google
2021
2040
  # Customize the options with defaults
2022
2041
  call_metadata = @config.rpcs.inject_fault.metadata.to_h
2023
2042
 
2024
- # Set x-goog-api-client and x-goog-user-project headers
2043
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2025
2044
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2026
2045
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2027
2046
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
2028
2047
  transports_version_send: [:rest]
2029
2048
 
2049
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2030
2050
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2031
2051
 
2032
2052
  options.apply_defaults timeout: @config.rpcs.inject_fault.timeout,
@@ -2126,12 +2146,13 @@ module Google
2126
2146
  # Customize the options with defaults
2127
2147
  call_metadata = @config.rpcs.restart_instance.metadata.to_h
2128
2148
 
2129
- # Set x-goog-api-client and x-goog-user-project headers
2149
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2130
2150
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2131
2151
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2132
2152
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
2133
2153
  transports_version_send: [:rest]
2134
2154
 
2155
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2135
2156
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2136
2157
 
2137
2158
  options.apply_defaults timeout: @config.rpcs.restart_instance.timeout,
@@ -2218,12 +2239,13 @@ module Google
2218
2239
  # Customize the options with defaults
2219
2240
  call_metadata = @config.rpcs.list_backups.metadata.to_h
2220
2241
 
2221
- # Set x-goog-api-client and x-goog-user-project headers
2242
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2222
2243
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2223
2244
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2224
2245
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
2225
2246
  transports_version_send: [:rest]
2226
2247
 
2248
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2227
2249
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2228
2250
 
2229
2251
  options.apply_defaults timeout: @config.rpcs.list_backups.timeout,
@@ -2296,12 +2318,13 @@ module Google
2296
2318
  # Customize the options with defaults
2297
2319
  call_metadata = @config.rpcs.get_backup.metadata.to_h
2298
2320
 
2299
- # Set x-goog-api-client and x-goog-user-project headers
2321
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2300
2322
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2301
2323
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2302
2324
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
2303
2325
  transports_version_send: [:rest]
2304
2326
 
2327
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2305
2328
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2306
2329
 
2307
2330
  options.apply_defaults timeout: @config.rpcs.get_backup.timeout,
@@ -2402,12 +2425,13 @@ module Google
2402
2425
  # Customize the options with defaults
2403
2426
  call_metadata = @config.rpcs.create_backup.metadata.to_h
2404
2427
 
2405
- # Set x-goog-api-client and x-goog-user-project headers
2428
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2406
2429
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2407
2430
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2408
2431
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
2409
2432
  transports_version_send: [:rest]
2410
2433
 
2434
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2411
2435
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2412
2436
 
2413
2437
  options.apply_defaults timeout: @config.rpcs.create_backup.timeout,
@@ -2514,12 +2538,13 @@ module Google
2514
2538
  # Customize the options with defaults
2515
2539
  call_metadata = @config.rpcs.update_backup.metadata.to_h
2516
2540
 
2517
- # Set x-goog-api-client and x-goog-user-project headers
2541
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2518
2542
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2519
2543
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2520
2544
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
2521
2545
  transports_version_send: [:rest]
2522
2546
 
2547
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2523
2548
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2524
2549
 
2525
2550
  options.apply_defaults timeout: @config.rpcs.update_backup.timeout,
@@ -2622,12 +2647,13 @@ module Google
2622
2647
  # Customize the options with defaults
2623
2648
  call_metadata = @config.rpcs.delete_backup.metadata.to_h
2624
2649
 
2625
- # Set x-goog-api-client and x-goog-user-project headers
2650
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2626
2651
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2627
2652
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2628
2653
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
2629
2654
  transports_version_send: [:rest]
2630
2655
 
2656
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2631
2657
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2632
2658
 
2633
2659
  options.apply_defaults timeout: @config.rpcs.delete_backup.timeout,
@@ -2716,12 +2742,13 @@ module Google
2716
2742
  # Customize the options with defaults
2717
2743
  call_metadata = @config.rpcs.list_supported_database_flags.metadata.to_h
2718
2744
 
2719
- # Set x-goog-api-client and x-goog-user-project headers
2745
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2720
2746
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2721
2747
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2722
2748
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
2723
2749
  transports_version_send: [:rest]
2724
2750
 
2751
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2725
2752
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2726
2753
 
2727
2754
  options.apply_defaults timeout: @config.rpcs.list_supported_database_flags.timeout,
@@ -2829,12 +2856,13 @@ module Google
2829
2856
  # Customize the options with defaults
2830
2857
  call_metadata = @config.rpcs.generate_client_certificate.metadata.to_h
2831
2858
 
2832
- # Set x-goog-api-client and x-goog-user-project headers
2859
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2833
2860
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2834
2861
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2835
2862
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
2836
2863
  transports_version_send: [:rest]
2837
2864
 
2865
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2838
2866
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2839
2867
 
2840
2868
  options.apply_defaults timeout: @config.rpcs.generate_client_certificate.timeout,
@@ -2922,12 +2950,13 @@ module Google
2922
2950
  # Customize the options with defaults
2923
2951
  call_metadata = @config.rpcs.get_connection_info.metadata.to_h
2924
2952
 
2925
- # Set x-goog-api-client and x-goog-user-project headers
2953
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2926
2954
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2927
2955
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2928
2956
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
2929
2957
  transports_version_send: [:rest]
2930
2958
 
2959
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2931
2960
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2932
2961
 
2933
2962
  options.apply_defaults timeout: @config.rpcs.get_connection_info.timeout,
@@ -3013,12 +3042,13 @@ module Google
3013
3042
  # Customize the options with defaults
3014
3043
  call_metadata = @config.rpcs.list_users.metadata.to_h
3015
3044
 
3016
- # Set x-goog-api-client and x-goog-user-project headers
3045
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3017
3046
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3018
3047
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3019
3048
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
3020
3049
  transports_version_send: [:rest]
3021
3050
 
3051
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3022
3052
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3023
3053
 
3024
3054
  options.apply_defaults timeout: @config.rpcs.list_users.timeout,
@@ -3092,12 +3122,13 @@ module Google
3092
3122
  # Customize the options with defaults
3093
3123
  call_metadata = @config.rpcs.get_user.metadata.to_h
3094
3124
 
3095
- # Set x-goog-api-client and x-goog-user-project headers
3125
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3096
3126
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3097
3127
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3098
3128
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
3099
3129
  transports_version_send: [:rest]
3100
3130
 
3131
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3101
3132
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3102
3133
 
3103
3134
  options.apply_defaults timeout: @config.rpcs.get_user.timeout,
@@ -3191,12 +3222,13 @@ module Google
3191
3222
  # Customize the options with defaults
3192
3223
  call_metadata = @config.rpcs.create_user.metadata.to_h
3193
3224
 
3194
- # Set x-goog-api-client and x-goog-user-project headers
3225
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3195
3226
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3196
3227
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3197
3228
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
3198
3229
  transports_version_send: [:rest]
3199
3230
 
3231
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3200
3232
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3201
3233
 
3202
3234
  options.apply_defaults timeout: @config.rpcs.create_user.timeout,
@@ -3294,12 +3326,13 @@ module Google
3294
3326
  # Customize the options with defaults
3295
3327
  call_metadata = @config.rpcs.update_user.metadata.to_h
3296
3328
 
3297
- # Set x-goog-api-client and x-goog-user-project headers
3329
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3298
3330
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3299
3331
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3300
3332
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
3301
3333
  transports_version_send: [:rest]
3302
3334
 
3335
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3303
3336
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3304
3337
 
3305
3338
  options.apply_defaults timeout: @config.rpcs.update_user.timeout,
@@ -3390,12 +3423,13 @@ module Google
3390
3423
  # Customize the options with defaults
3391
3424
  call_metadata = @config.rpcs.delete_user.metadata.to_h
3392
3425
 
3393
- # Set x-goog-api-client and x-goog-user-project headers
3426
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3394
3427
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3395
3428
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3396
3429
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
3397
3430
  transports_version_send: [:rest]
3398
3431
 
3432
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3399
3433
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3400
3434
 
3401
3435
  options.apply_defaults timeout: @config.rpcs.delete_user.timeout,
@@ -3484,12 +3518,13 @@ module Google
3484
3518
  # Customize the options with defaults
3485
3519
  call_metadata = @config.rpcs.list_databases.metadata.to_h
3486
3520
 
3487
- # Set x-goog-api-client and x-goog-user-project headers
3521
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
3488
3522
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
3489
3523
  lib_name: @config.lib_name, lib_version: @config.lib_version,
3490
3524
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
3491
3525
  transports_version_send: [:rest]
3492
3526
 
3527
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
3493
3528
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
3494
3529
 
3495
3530
  options.apply_defaults timeout: @config.rpcs.list_databases.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module Rest
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
 
@@ -181,12 +184,13 @@ module Google
181
184
  # Customize the options with defaults
182
185
  call_metadata = @config.rpcs.list_operations.metadata.to_h
183
186
 
184
- # Set x-goog-api-client and x-goog-user-project headers
187
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
185
188
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
186
189
  lib_name: @config.lib_name, lib_version: @config.lib_version,
187
190
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
188
191
  transports_version_send: [:rest]
189
192
 
193
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
190
194
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
191
195
 
192
196
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -269,12 +273,13 @@ module Google
269
273
  # Customize the options with defaults
270
274
  call_metadata = @config.rpcs.get_operation.metadata.to_h
271
275
 
272
- # Set x-goog-api-client and x-goog-user-project headers
276
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
277
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
275
279
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
276
280
  transports_version_send: [:rest]
277
281
 
282
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
283
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
284
 
280
285
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -351,12 +356,13 @@ module Google
351
356
  # Customize the options with defaults
352
357
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
353
358
 
354
- # Set x-goog-api-client and x-goog-user-project headers
359
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
355
360
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
356
361
  lib_name: @config.lib_name, lib_version: @config.lib_version,
357
362
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
358
363
  transports_version_send: [:rest]
359
364
 
365
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
360
366
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
367
 
362
368
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -438,12 +444,13 @@ module Google
438
444
  # Customize the options with defaults
439
445
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
440
446
 
441
- # Set x-goog-api-client and x-goog-user-project headers
447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
450
  gapic_version: ::Google::Cloud::AlloyDB::V1beta::VERSION,
445
451
  transports_version_send: [:rest]
446
452
 
453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
455
 
449
456
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module AlloyDB
23
23
  module V1beta
24
- VERSION = "0.8.0"
24
+ VERSION = "0.8.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-v1beta
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.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