google-cloud-spanner-admin-instance-v1 0.16.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 26f873c244a32f3c54b0f03f0b8077a4c9406a4d04aa6f91a25de23f64087267
4
- data.tar.gz: 64d4c848b1943e1d65cc9857c0fc384e82db68cba54bc7e85d2929a1522bca31
3
+ metadata.gz: b77f802b5b7428370dcd50b4ceffd81d869f8fbe81b9ef97d7c9b6140409e948
4
+ data.tar.gz: dd6f002271392c0525ad80536494c984fafad4f800188f4ee72b6c91742da966
5
5
  SHA512:
6
- metadata.gz: 49e034a03e6424df9a5a1a83e6c1831ad406ddec51dad91a3a33664947d84d64e45ac0f37fc9e92847791ab075447b51f7a41366c91a9a83e31461c0126f2bf0
7
- data.tar.gz: 767fc950c67aad2c447cff84b369906f5a13409186f2b547444f129fbaa8c0badf51df9126801aa17f5891581c021dcbe76fbca8c89ef2452ac7dbf8282a8024
6
+ metadata.gz: 458b00e4baeec3f438f38b0e1f8d0f3f89c46db6d1f93844b11da55afdb5e02a2ba0cc0f6edd70f8ffc38415d44e0035cf95e0e0ea0fe6186394edbd91e7850c
7
+ data.tar.gz: 838b07af54c1432a08cf45852cd69d2223afd7b50029b0cd0ead13fa5a05d3d617b024080f6ff8ad26d4ad85c41584926a42e52f19989730a99492f91f1fc5d8
@@ -52,6 +52,9 @@ module Google
52
52
  # databases in that instance, and their performance may suffer.
53
53
  #
54
54
  class Client
55
+ # @private
56
+ API_VERSION = ""
57
+
55
58
  # @private
56
59
  DEFAULT_ENDPOINT_TEMPLATE = "spanner.$UNIVERSE_DOMAIN$"
57
60
 
@@ -303,10 +306,11 @@ module Google
303
306
  # Customize the options with defaults
304
307
  metadata = @config.rpcs.list_instance_configs.metadata.to_h
305
308
 
306
- # Set x-goog-api-client and x-goog-user-project headers
309
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
307
310
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
308
311
  lib_name: @config.lib_name, lib_version: @config.lib_version,
309
312
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION
313
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
310
314
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
311
315
 
312
316
  header_params = {}
@@ -390,10 +394,11 @@ module Google
390
394
  # Customize the options with defaults
391
395
  metadata = @config.rpcs.get_instance_config.metadata.to_h
392
396
 
393
- # Set x-goog-api-client and x-goog-user-project headers
397
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
394
398
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
395
399
  lib_name: @config.lib_name, lib_version: @config.lib_version,
396
400
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION
401
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
397
402
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
398
403
 
399
404
  header_params = {}
@@ -537,10 +542,11 @@ module Google
537
542
  # Customize the options with defaults
538
543
  metadata = @config.rpcs.create_instance_config.metadata.to_h
539
544
 
540
- # Set x-goog-api-client and x-goog-user-project headers
545
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
541
546
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
542
547
  lib_name: @config.lib_name, lib_version: @config.lib_version,
543
548
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION
549
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
544
550
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
545
551
 
546
552
  header_params = {}
@@ -688,10 +694,11 @@ module Google
688
694
  # Customize the options with defaults
689
695
  metadata = @config.rpcs.update_instance_config.metadata.to_h
690
696
 
691
- # Set x-goog-api-client and x-goog-user-project headers
697
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
692
698
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
693
699
  lib_name: @config.lib_name, lib_version: @config.lib_version,
694
700
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION
701
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
695
702
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
696
703
 
697
704
  header_params = {}
@@ -794,10 +801,11 @@ module Google
794
801
  # Customize the options with defaults
795
802
  metadata = @config.rpcs.delete_instance_config.metadata.to_h
796
803
 
797
- # Set x-goog-api-client and x-goog-user-project headers
804
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
798
805
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
799
806
  lib_name: @config.lib_name, lib_version: @config.lib_version,
800
807
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION
808
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
801
809
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
802
810
 
803
811
  header_params = {}
@@ -947,10 +955,11 @@ module Google
947
955
  # Customize the options with defaults
948
956
  metadata = @config.rpcs.list_instance_config_operations.metadata.to_h
949
957
 
950
- # Set x-goog-api-client and x-goog-user-project headers
958
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
951
959
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
952
960
  lib_name: @config.lib_name, lib_version: @config.lib_version,
953
961
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION
962
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
954
963
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
955
964
 
956
965
  header_params = {}
@@ -1074,10 +1083,11 @@ module Google
1074
1083
  # Customize the options with defaults
1075
1084
  metadata = @config.rpcs.list_instances.metadata.to_h
1076
1085
 
1077
- # Set x-goog-api-client and x-goog-user-project headers
1086
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1078
1087
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1079
1088
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1080
1089
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION
1090
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1081
1091
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1082
1092
 
1083
1093
  header_params = {}
@@ -1180,10 +1190,11 @@ module Google
1180
1190
  # Customize the options with defaults
1181
1191
  metadata = @config.rpcs.list_instance_partitions.metadata.to_h
1182
1192
 
1183
- # Set x-goog-api-client and x-goog-user-project headers
1193
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1184
1194
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1185
1195
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1186
1196
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION
1197
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1187
1198
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1188
1199
 
1189
1200
  header_params = {}
@@ -1272,10 +1283,11 @@ module Google
1272
1283
  # Customize the options with defaults
1273
1284
  metadata = @config.rpcs.get_instance.metadata.to_h
1274
1285
 
1275
- # Set x-goog-api-client and x-goog-user-project headers
1286
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1276
1287
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1277
1288
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1278
1289
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION
1290
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1279
1291
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1280
1292
 
1281
1293
  header_params = {}
@@ -1405,10 +1417,11 @@ module Google
1405
1417
  # Customize the options with defaults
1406
1418
  metadata = @config.rpcs.create_instance.metadata.to_h
1407
1419
 
1408
- # Set x-goog-api-client and x-goog-user-project headers
1420
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1409
1421
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1410
1422
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1411
1423
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION
1424
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1412
1425
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1413
1426
 
1414
1427
  header_params = {}
@@ -1546,10 +1559,11 @@ module Google
1546
1559
  # Customize the options with defaults
1547
1560
  metadata = @config.rpcs.update_instance.metadata.to_h
1548
1561
 
1549
- # Set x-goog-api-client and x-goog-user-project headers
1562
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1550
1563
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1551
1564
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1552
1565
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION
1566
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1553
1567
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1554
1568
 
1555
1569
  header_params = {}
@@ -1643,10 +1657,11 @@ module Google
1643
1657
  # Customize the options with defaults
1644
1658
  metadata = @config.rpcs.delete_instance.metadata.to_h
1645
1659
 
1646
- # Set x-goog-api-client and x-goog-user-project headers
1660
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1647
1661
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1648
1662
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1649
1663
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION
1664
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1650
1665
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1651
1666
 
1652
1667
  header_params = {}
@@ -1744,10 +1759,11 @@ module Google
1744
1759
  # Customize the options with defaults
1745
1760
  metadata = @config.rpcs.set_iam_policy.metadata.to_h
1746
1761
 
1747
- # Set x-goog-api-client and x-goog-user-project headers
1762
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1748
1763
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1749
1764
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1750
1765
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION
1766
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1751
1767
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1752
1768
 
1753
1769
  header_params = {}
@@ -1837,10 +1853,11 @@ module Google
1837
1853
  # Customize the options with defaults
1838
1854
  metadata = @config.rpcs.get_iam_policy.metadata.to_h
1839
1855
 
1840
- # Set x-goog-api-client and x-goog-user-project headers
1856
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1841
1857
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1842
1858
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1843
1859
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION
1860
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1844
1861
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1845
1862
 
1846
1863
  header_params = {}
@@ -1933,10 +1950,11 @@ module Google
1933
1950
  # Customize the options with defaults
1934
1951
  metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1935
1952
 
1936
- # Set x-goog-api-client and x-goog-user-project headers
1953
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1937
1954
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1938
1955
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1939
1956
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION
1957
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1940
1958
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1941
1959
 
1942
1960
  header_params = {}
@@ -2020,10 +2038,11 @@ module Google
2020
2038
  # Customize the options with defaults
2021
2039
  metadata = @config.rpcs.get_instance_partition.metadata.to_h
2022
2040
 
2023
- # Set x-goog-api-client and x-goog-user-project headers
2041
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2024
2042
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2025
2043
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2026
2044
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION
2045
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2027
2046
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2028
2047
 
2029
2048
  header_params = {}
@@ -2158,10 +2177,11 @@ module Google
2158
2177
  # Customize the options with defaults
2159
2178
  metadata = @config.rpcs.create_instance_partition.metadata.to_h
2160
2179
 
2161
- # Set x-goog-api-client and x-goog-user-project headers
2180
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2162
2181
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2163
2182
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2164
2183
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION
2184
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2165
2185
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2166
2186
 
2167
2187
  header_params = {}
@@ -2257,10 +2277,11 @@ module Google
2257
2277
  # Customize the options with defaults
2258
2278
  metadata = @config.rpcs.delete_instance_partition.metadata.to_h
2259
2279
 
2260
- # Set x-goog-api-client and x-goog-user-project headers
2280
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2261
2281
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2262
2282
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2263
2283
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION
2284
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2264
2285
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2265
2286
 
2266
2287
  header_params = {}
@@ -2402,10 +2423,11 @@ module Google
2402
2423
  # Customize the options with defaults
2403
2424
  metadata = @config.rpcs.update_instance_partition.metadata.to_h
2404
2425
 
2405
- # Set x-goog-api-client and x-goog-user-project headers
2426
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2406
2427
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2407
2428
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2408
2429
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION
2430
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2409
2431
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2410
2432
 
2411
2433
  header_params = {}
@@ -2566,10 +2588,11 @@ module Google
2566
2588
  # Customize the options with defaults
2567
2589
  metadata = @config.rpcs.list_instance_partition_operations.metadata.to_h
2568
2590
 
2569
- # Set x-goog-api-client and x-goog-user-project headers
2591
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2570
2592
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2571
2593
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2572
2594
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION
2595
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2573
2596
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2574
2597
 
2575
2598
  header_params = {}
@@ -28,6 +28,9 @@ module Google
28
28
  module InstanceAdmin
29
29
  # Service that implements Longrunning Operations API.
30
30
  class Operations
31
+ # @private
32
+ API_VERSION = ""
33
+
31
34
  # @private
32
35
  DEFAULT_ENDPOINT_TEMPLATE = "spanner.$UNIVERSE_DOMAIN$"
33
36
 
@@ -193,10 +196,11 @@ module Google
193
196
  # Customize the options with defaults
194
197
  metadata = @config.rpcs.list_operations.metadata.to_h
195
198
 
196
- # Set x-goog-api-client and x-goog-user-project headers
199
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
197
200
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
198
201
  lib_name: @config.lib_name, lib_version: @config.lib_version,
199
202
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION
203
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
200
204
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
201
205
 
202
206
  header_params = {}
@@ -289,10 +293,11 @@ module Google
289
293
  # Customize the options with defaults
290
294
  metadata = @config.rpcs.get_operation.metadata.to_h
291
295
 
292
- # Set x-goog-api-client and x-goog-user-project headers
296
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
293
297
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
294
298
  lib_name: @config.lib_name, lib_version: @config.lib_version,
295
299
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION
300
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
296
301
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
297
302
 
298
303
  header_params = {}
@@ -378,10 +383,11 @@ module Google
378
383
  # Customize the options with defaults
379
384
  metadata = @config.rpcs.delete_operation.metadata.to_h
380
385
 
381
- # Set x-goog-api-client and x-goog-user-project headers
386
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
382
387
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
383
388
  lib_name: @config.lib_name, lib_version: @config.lib_version,
384
389
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION
390
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
385
391
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
386
392
 
387
393
  header_params = {}
@@ -472,10 +478,11 @@ module Google
472
478
  # Customize the options with defaults
473
479
  metadata = @config.rpcs.cancel_operation.metadata.to_h
474
480
 
475
- # Set x-goog-api-client and x-goog-user-project headers
481
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
476
482
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
477
483
  lib_name: @config.lib_name, lib_version: @config.lib_version,
478
484
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION
485
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
479
486
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
480
487
 
481
488
  header_params = {}
@@ -576,10 +583,11 @@ module Google
576
583
  # Customize the options with defaults
577
584
  metadata = @config.rpcs.wait_operation.metadata.to_h
578
585
 
579
- # Set x-goog-api-client and x-goog-user-project headers
586
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
580
587
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
581
588
  lib_name: @config.lib_name, lib_version: @config.lib_version,
582
589
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION
590
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
583
591
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
584
592
 
585
593
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -54,6 +54,9 @@ module Google
54
54
  # databases in that instance, and their performance may suffer.
55
55
  #
56
56
  class Client
57
+ # @private
58
+ API_VERSION = ""
59
+
57
60
  # @private
58
61
  DEFAULT_ENDPOINT_TEMPLATE = "spanner.$UNIVERSE_DOMAIN$"
59
62
 
@@ -295,12 +298,13 @@ module Google
295
298
  # Customize the options with defaults
296
299
  call_metadata = @config.rpcs.list_instance_configs.metadata.to_h
297
300
 
298
- # Set x-goog-api-client and x-goog-user-project headers
301
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
299
302
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
300
303
  lib_name: @config.lib_name, lib_version: @config.lib_version,
301
304
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION,
302
305
  transports_version_send: [:rest]
303
306
 
307
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
304
308
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
305
309
 
306
310
  options.apply_defaults timeout: @config.rpcs.list_instance_configs.timeout,
@@ -375,12 +379,13 @@ module Google
375
379
  # Customize the options with defaults
376
380
  call_metadata = @config.rpcs.get_instance_config.metadata.to_h
377
381
 
378
- # Set x-goog-api-client and x-goog-user-project headers
382
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
379
383
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
380
384
  lib_name: @config.lib_name, lib_version: @config.lib_version,
381
385
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION,
382
386
  transports_version_send: [:rest]
383
387
 
388
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
384
389
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
385
390
 
386
391
  options.apply_defaults timeout: @config.rpcs.get_instance_config.timeout,
@@ -515,12 +520,13 @@ module Google
515
520
  # Customize the options with defaults
516
521
  call_metadata = @config.rpcs.create_instance_config.metadata.to_h
517
522
 
518
- # Set x-goog-api-client and x-goog-user-project headers
523
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
519
524
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
520
525
  lib_name: @config.lib_name, lib_version: @config.lib_version,
521
526
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION,
522
527
  transports_version_send: [:rest]
523
528
 
529
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
524
530
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
525
531
 
526
532
  options.apply_defaults timeout: @config.rpcs.create_instance_config.timeout,
@@ -659,12 +665,13 @@ module Google
659
665
  # Customize the options with defaults
660
666
  call_metadata = @config.rpcs.update_instance_config.metadata.to_h
661
667
 
662
- # Set x-goog-api-client and x-goog-user-project headers
668
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
663
669
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
664
670
  lib_name: @config.lib_name, lib_version: @config.lib_version,
665
671
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION,
666
672
  transports_version_send: [:rest]
667
673
 
674
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
668
675
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
669
676
 
670
677
  options.apply_defaults timeout: @config.rpcs.update_instance_config.timeout,
@@ -758,12 +765,13 @@ module Google
758
765
  # Customize the options with defaults
759
766
  call_metadata = @config.rpcs.delete_instance_config.metadata.to_h
760
767
 
761
- # Set x-goog-api-client and x-goog-user-project headers
768
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
762
769
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
763
770
  lib_name: @config.lib_name, lib_version: @config.lib_version,
764
771
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION,
765
772
  transports_version_send: [:rest]
766
773
 
774
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
767
775
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
768
776
 
769
777
  options.apply_defaults timeout: @config.rpcs.delete_instance_config.timeout,
@@ -904,12 +912,13 @@ module Google
904
912
  # Customize the options with defaults
905
913
  call_metadata = @config.rpcs.list_instance_config_operations.metadata.to_h
906
914
 
907
- # Set x-goog-api-client and x-goog-user-project headers
915
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
908
916
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
909
917
  lib_name: @config.lib_name, lib_version: @config.lib_version,
910
918
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION,
911
919
  transports_version_send: [:rest]
912
920
 
921
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
913
922
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
914
923
 
915
924
  options.apply_defaults timeout: @config.rpcs.list_instance_config_operations.timeout,
@@ -1023,12 +1032,13 @@ module Google
1023
1032
  # Customize the options with defaults
1024
1033
  call_metadata = @config.rpcs.list_instances.metadata.to_h
1025
1034
 
1026
- # Set x-goog-api-client and x-goog-user-project headers
1035
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1027
1036
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1028
1037
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1029
1038
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION,
1030
1039
  transports_version_send: [:rest]
1031
1040
 
1041
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1032
1042
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1033
1043
 
1034
1044
  options.apply_defaults timeout: @config.rpcs.list_instances.timeout,
@@ -1121,12 +1131,13 @@ module Google
1121
1131
  # Customize the options with defaults
1122
1132
  call_metadata = @config.rpcs.list_instance_partitions.metadata.to_h
1123
1133
 
1124
- # Set x-goog-api-client and x-goog-user-project headers
1134
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1125
1135
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1126
1136
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1127
1137
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION,
1128
1138
  transports_version_send: [:rest]
1129
1139
 
1140
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1130
1141
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1131
1142
 
1132
1143
  options.apply_defaults timeout: @config.rpcs.list_instance_partitions.timeout,
@@ -1205,12 +1216,13 @@ module Google
1205
1216
  # Customize the options with defaults
1206
1217
  call_metadata = @config.rpcs.get_instance.metadata.to_h
1207
1218
 
1208
- # Set x-goog-api-client and x-goog-user-project headers
1219
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1209
1220
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1210
1221
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1211
1222
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION,
1212
1223
  transports_version_send: [:rest]
1213
1224
 
1225
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1214
1226
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1215
1227
 
1216
1228
  options.apply_defaults timeout: @config.rpcs.get_instance.timeout,
@@ -1331,12 +1343,13 @@ module Google
1331
1343
  # Customize the options with defaults
1332
1344
  call_metadata = @config.rpcs.create_instance.metadata.to_h
1333
1345
 
1334
- # Set x-goog-api-client and x-goog-user-project headers
1346
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1335
1347
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1336
1348
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1337
1349
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION,
1338
1350
  transports_version_send: [:rest]
1339
1351
 
1352
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1340
1353
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1341
1354
 
1342
1355
  options.apply_defaults timeout: @config.rpcs.create_instance.timeout,
@@ -1465,12 +1478,13 @@ module Google
1465
1478
  # Customize the options with defaults
1466
1479
  call_metadata = @config.rpcs.update_instance.metadata.to_h
1467
1480
 
1468
- # Set x-goog-api-client and x-goog-user-project headers
1481
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1469
1482
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1470
1483
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1471
1484
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION,
1472
1485
  transports_version_send: [:rest]
1473
1486
 
1487
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1474
1488
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1475
1489
 
1476
1490
  options.apply_defaults timeout: @config.rpcs.update_instance.timeout,
@@ -1555,12 +1569,13 @@ module Google
1555
1569
  # Customize the options with defaults
1556
1570
  call_metadata = @config.rpcs.delete_instance.metadata.to_h
1557
1571
 
1558
- # Set x-goog-api-client and x-goog-user-project headers
1572
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1559
1573
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1560
1574
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1561
1575
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION,
1562
1576
  transports_version_send: [:rest]
1563
1577
 
1578
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1564
1579
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1565
1580
 
1566
1581
  options.apply_defaults timeout: @config.rpcs.delete_instance.timeout,
@@ -1649,12 +1664,13 @@ module Google
1649
1664
  # Customize the options with defaults
1650
1665
  call_metadata = @config.rpcs.set_iam_policy.metadata.to_h
1651
1666
 
1652
- # Set x-goog-api-client and x-goog-user-project headers
1667
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1653
1668
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1654
1669
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1655
1670
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION,
1656
1671
  transports_version_send: [:rest]
1657
1672
 
1673
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1658
1674
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1659
1675
 
1660
1676
  options.apply_defaults timeout: @config.rpcs.set_iam_policy.timeout,
@@ -1735,12 +1751,13 @@ module Google
1735
1751
  # Customize the options with defaults
1736
1752
  call_metadata = @config.rpcs.get_iam_policy.metadata.to_h
1737
1753
 
1738
- # Set x-goog-api-client and x-goog-user-project headers
1754
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1739
1755
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1740
1756
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1741
1757
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION,
1742
1758
  transports_version_send: [:rest]
1743
1759
 
1760
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1744
1761
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1745
1762
 
1746
1763
  options.apply_defaults timeout: @config.rpcs.get_iam_policy.timeout,
@@ -1824,12 +1841,13 @@ module Google
1824
1841
  # Customize the options with defaults
1825
1842
  call_metadata = @config.rpcs.test_iam_permissions.metadata.to_h
1826
1843
 
1827
- # Set x-goog-api-client and x-goog-user-project headers
1844
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1828
1845
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1829
1846
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1830
1847
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION,
1831
1848
  transports_version_send: [:rest]
1832
1849
 
1850
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1833
1851
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1834
1852
 
1835
1853
  options.apply_defaults timeout: @config.rpcs.test_iam_permissions.timeout,
@@ -1904,12 +1922,13 @@ module Google
1904
1922
  # Customize the options with defaults
1905
1923
  call_metadata = @config.rpcs.get_instance_partition.metadata.to_h
1906
1924
 
1907
- # Set x-goog-api-client and x-goog-user-project headers
1925
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1908
1926
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1909
1927
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1910
1928
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION,
1911
1929
  transports_version_send: [:rest]
1912
1930
 
1931
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1913
1932
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1914
1933
 
1915
1934
  options.apply_defaults timeout: @config.rpcs.get_instance_partition.timeout,
@@ -2035,12 +2054,13 @@ module Google
2035
2054
  # Customize the options with defaults
2036
2055
  call_metadata = @config.rpcs.create_instance_partition.metadata.to_h
2037
2056
 
2038
- # Set x-goog-api-client and x-goog-user-project headers
2057
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2039
2058
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2040
2059
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2041
2060
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION,
2042
2061
  transports_version_send: [:rest]
2043
2062
 
2063
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2044
2064
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2045
2065
 
2046
2066
  options.apply_defaults timeout: @config.rpcs.create_instance_partition.timeout,
@@ -2127,12 +2147,13 @@ module Google
2127
2147
  # Customize the options with defaults
2128
2148
  call_metadata = @config.rpcs.delete_instance_partition.metadata.to_h
2129
2149
 
2130
- # Set x-goog-api-client and x-goog-user-project headers
2150
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2131
2151
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2132
2152
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2133
2153
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION,
2134
2154
  transports_version_send: [:rest]
2135
2155
 
2156
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2136
2157
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2137
2158
 
2138
2159
  options.apply_defaults timeout: @config.rpcs.delete_instance_partition.timeout,
@@ -2265,12 +2286,13 @@ module Google
2265
2286
  # Customize the options with defaults
2266
2287
  call_metadata = @config.rpcs.update_instance_partition.metadata.to_h
2267
2288
 
2268
- # Set x-goog-api-client and x-goog-user-project headers
2289
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2269
2290
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2270
2291
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2271
2292
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION,
2272
2293
  transports_version_send: [:rest]
2273
2294
 
2295
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2274
2296
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2275
2297
 
2276
2298
  options.apply_defaults timeout: @config.rpcs.update_instance_partition.timeout,
@@ -2422,12 +2444,13 @@ module Google
2422
2444
  # Customize the options with defaults
2423
2445
  call_metadata = @config.rpcs.list_instance_partition_operations.metadata.to_h
2424
2446
 
2425
- # Set x-goog-api-client and x-goog-user-project headers
2447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2426
2448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2427
2449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2428
2450
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION,
2429
2451
  transports_version_send: [:rest]
2430
2452
 
2453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2431
2454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2432
2455
 
2433
2456
  options.apply_defaults timeout: @config.rpcs.list_instance_partition_operations.timeout,
@@ -28,6 +28,9 @@ module Google
28
28
  module Rest
29
29
  # Service that implements Longrunning Operations API.
30
30
  class Operations
31
+ # @private
32
+ API_VERSION = ""
33
+
31
34
  # @private
32
35
  DEFAULT_ENDPOINT_TEMPLATE = "spanner.$UNIVERSE_DOMAIN$"
33
36
 
@@ -183,12 +186,13 @@ module Google
183
186
  # Customize the options with defaults
184
187
  call_metadata = @config.rpcs.list_operations.metadata.to_h
185
188
 
186
- # Set x-goog-api-client and x-goog-user-project headers
189
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
187
190
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
188
191
  lib_name: @config.lib_name, lib_version: @config.lib_version,
189
192
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION,
190
193
  transports_version_send: [:rest]
191
194
 
195
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
192
196
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
193
197
 
194
198
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -271,12 +275,13 @@ module Google
271
275
  # Customize the options with defaults
272
276
  call_metadata = @config.rpcs.get_operation.metadata.to_h
273
277
 
274
- # Set x-goog-api-client and x-goog-user-project headers
278
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
275
279
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
276
280
  lib_name: @config.lib_name, lib_version: @config.lib_version,
277
281
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION,
278
282
  transports_version_send: [:rest]
279
283
 
284
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
280
285
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
281
286
 
282
287
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -353,12 +358,13 @@ module Google
353
358
  # Customize the options with defaults
354
359
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
355
360
 
356
- # Set x-goog-api-client and x-goog-user-project headers
361
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
357
362
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
358
363
  lib_name: @config.lib_name, lib_version: @config.lib_version,
359
364
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION,
360
365
  transports_version_send: [:rest]
361
366
 
367
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
362
368
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
363
369
 
364
370
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -440,12 +446,13 @@ module Google
440
446
  # Customize the options with defaults
441
447
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
442
448
 
443
- # Set x-goog-api-client and x-goog-user-project headers
449
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
444
450
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
445
451
  lib_name: @config.lib_name, lib_version: @config.lib_version,
446
452
  gapic_version: ::Google::Cloud::Spanner::Admin::Instance::V1::VERSION,
447
453
  transports_version_send: [:rest]
448
454
 
455
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
449
456
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
450
457
 
451
458
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -23,7 +23,7 @@ module Google
23
23
  module Admin
24
24
  module Instance
25
25
  module V1
26
- VERSION = "0.16.0"
26
+ VERSION = "1.0.0"
27
27
  end
28
28
  end
29
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-spanner-admin-instance-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.16.0
4
+ version: 1.0.0
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-04-19 00:00:00.000000000 Z
11
+ date: 2024-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common