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.
@@ -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.9.0"
25
25
  end
26
26
  end
27
27
  end