google-cloud-metastore-v1 0.13.0 → 1.0.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: a56315e8126d2b9304ebbc16c65f11031a735d639f70fbb0908be988a332f4cc
4
- data.tar.gz: 9e78e818efca04b0d2bd8439f100887c6ddc147ddaad575edc269256a56a363a
3
+ metadata.gz: 0ff6683f187e668302b6d2dccbd117be7a1cd2a7aba9534bb72a8783bb67e95d
4
+ data.tar.gz: d012b39cdd099004d517bc1903b4f557945567a189efee98f21444af8eaa2ed5
5
5
  SHA512:
6
- metadata.gz: 8ddee4db91b6fd7f6ab8a4f9055360b3e5bd591ea5cf864240fc369c65586b35921fc44329a62914754b24cfcde9a5b839298cfa811145af7af28b6f47c86f26
7
- data.tar.gz: 4364710413d7ffec2a35f7303eaf8fb365f06ee741bcfabe2745e31eed938942fc535014cf09c8daddcf455402b147dfcbb420233219b46afdd9e544d469356f
6
+ metadata.gz: 46a84a35e4a491040bbbcd928543a3f1dd40ac912858746f778519393e5bbaae656706f1b4e0f3d8de913b1fda8b354d3862c0a3c0c2339c4a24c933118bdcb8
7
+ data.tar.gz: 92413bb0e4ec3ed5b45ca73d533c6a6bb27e1c266efe7281d3a82bf8a74dc09e457e8a445be334cbe409df51e3537ae76c13c1deeb2457c86239a166c10e3a6b
@@ -48,6 +48,9 @@ module Google
48
48
  # `/projects/{project_number}/locations/{location_id}/services/{service_id}`.
49
49
  #
50
50
  class Client
51
+ # @private
52
+ API_VERSION = ""
53
+
51
54
  # @private
52
55
  DEFAULT_ENDPOINT_TEMPLATE = "metastore.$UNIVERSE_DOMAIN$"
53
56
 
@@ -326,10 +329,11 @@ module Google
326
329
  # Customize the options with defaults
327
330
  metadata = @config.rpcs.list_services.metadata.to_h
328
331
 
329
- # Set x-goog-api-client and x-goog-user-project headers
332
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
330
333
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
331
334
  lib_name: @config.lib_name, lib_version: @config.lib_version,
332
335
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION
336
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
333
337
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
334
338
 
335
339
  header_params = {}
@@ -415,10 +419,11 @@ module Google
415
419
  # Customize the options with defaults
416
420
  metadata = @config.rpcs.get_service.metadata.to_h
417
421
 
418
- # Set x-goog-api-client and x-goog-user-project headers
422
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
419
423
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
420
424
  lib_name: @config.lib_name, lib_version: @config.lib_version,
421
425
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION
426
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
422
427
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
423
428
 
424
429
  header_params = {}
@@ -534,10 +539,11 @@ module Google
534
539
  # Customize the options with defaults
535
540
  metadata = @config.rpcs.create_service.metadata.to_h
536
541
 
537
- # Set x-goog-api-client and x-goog-user-project headers
542
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
538
543
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
539
544
  lib_name: @config.lib_name, lib_version: @config.lib_version,
540
545
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION
546
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
541
547
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
542
548
 
543
549
  header_params = {}
@@ -649,10 +655,11 @@ module Google
649
655
  # Customize the options with defaults
650
656
  metadata = @config.rpcs.update_service.metadata.to_h
651
657
 
652
- # Set x-goog-api-client and x-goog-user-project headers
658
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
653
659
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
654
660
  lib_name: @config.lib_name, lib_version: @config.lib_version,
655
661
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION
662
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
656
663
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
657
664
 
658
665
  header_params = {}
@@ -758,10 +765,11 @@ module Google
758
765
  # Customize the options with defaults
759
766
  metadata = @config.rpcs.delete_service.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
  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::Metastore::V1::VERSION
772
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
765
773
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
766
774
 
767
775
  header_params = {}
@@ -871,10 +879,11 @@ module Google
871
879
  # Customize the options with defaults
872
880
  metadata = @config.rpcs.list_metadata_imports.metadata.to_h
873
881
 
874
- # Set x-goog-api-client and x-goog-user-project headers
882
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
875
883
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
876
884
  lib_name: @config.lib_name, lib_version: @config.lib_version,
877
885
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION
886
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
878
887
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
879
888
 
880
889
  header_params = {}
@@ -960,10 +969,11 @@ module Google
960
969
  # Customize the options with defaults
961
970
  metadata = @config.rpcs.get_metadata_import.metadata.to_h
962
971
 
963
- # Set x-goog-api-client and x-goog-user-project headers
972
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
964
973
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
965
974
  lib_name: @config.lib_name, lib_version: @config.lib_version,
966
975
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION
976
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
967
977
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
968
978
 
969
979
  header_params = {}
@@ -1079,10 +1089,11 @@ module Google
1079
1089
  # Customize the options with defaults
1080
1090
  metadata = @config.rpcs.create_metadata_import.metadata.to_h
1081
1091
 
1082
- # Set x-goog-api-client and x-goog-user-project headers
1092
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1083
1093
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1084
1094
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1085
1095
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION
1096
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1086
1097
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1087
1098
 
1088
1099
  header_params = {}
@@ -1195,10 +1206,11 @@ module Google
1195
1206
  # Customize the options with defaults
1196
1207
  metadata = @config.rpcs.update_metadata_import.metadata.to_h
1197
1208
 
1198
- # Set x-goog-api-client and x-goog-user-project headers
1209
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1199
1210
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1200
1211
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1201
1212
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION
1213
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1202
1214
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1203
1215
 
1204
1216
  header_params = {}
@@ -1311,10 +1323,11 @@ module Google
1311
1323
  # Customize the options with defaults
1312
1324
  metadata = @config.rpcs.export_metadata.metadata.to_h
1313
1325
 
1314
- # Set x-goog-api-client and x-goog-user-project headers
1326
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1315
1327
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1316
1328
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1317
1329
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION
1330
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1318
1331
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1319
1332
 
1320
1333
  header_params = {}
@@ -1427,10 +1440,11 @@ module Google
1427
1440
  # Customize the options with defaults
1428
1441
  metadata = @config.rpcs.restore_service.metadata.to_h
1429
1442
 
1430
- # Set x-goog-api-client and x-goog-user-project headers
1443
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1431
1444
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1432
1445
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1433
1446
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION
1447
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1434
1448
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1435
1449
 
1436
1450
  header_params = {}
@@ -1540,10 +1554,11 @@ module Google
1540
1554
  # Customize the options with defaults
1541
1555
  metadata = @config.rpcs.list_backups.metadata.to_h
1542
1556
 
1543
- # Set x-goog-api-client and x-goog-user-project headers
1557
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1544
1558
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1545
1559
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1546
1560
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION
1561
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1547
1562
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1548
1563
 
1549
1564
  header_params = {}
@@ -1629,10 +1644,11 @@ module Google
1629
1644
  # Customize the options with defaults
1630
1645
  metadata = @config.rpcs.get_backup.metadata.to_h
1631
1646
 
1632
- # Set x-goog-api-client and x-goog-user-project headers
1647
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1633
1648
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1634
1649
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1635
1650
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION
1651
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1636
1652
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1637
1653
 
1638
1654
  header_params = {}
@@ -1747,10 +1763,11 @@ module Google
1747
1763
  # Customize the options with defaults
1748
1764
  metadata = @config.rpcs.create_backup.metadata.to_h
1749
1765
 
1750
- # Set x-goog-api-client and x-goog-user-project headers
1766
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1751
1767
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1752
1768
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1753
1769
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION
1770
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1754
1771
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1755
1772
 
1756
1773
  header_params = {}
@@ -1856,10 +1873,11 @@ module Google
1856
1873
  # Customize the options with defaults
1857
1874
  metadata = @config.rpcs.delete_backup.metadata.to_h
1858
1875
 
1859
- # Set x-goog-api-client and x-goog-user-project headers
1876
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1860
1877
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1861
1878
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1862
1879
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION
1880
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1863
1881
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1864
1882
 
1865
1883
  header_params = {}
@@ -1955,10 +1973,11 @@ module Google
1955
1973
  # Customize the options with defaults
1956
1974
  metadata = @config.rpcs.query_metadata.metadata.to_h
1957
1975
 
1958
- # Set x-goog-api-client and x-goog-user-project headers
1976
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1959
1977
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1960
1978
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1961
1979
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION
1980
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1962
1981
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1963
1982
 
1964
1983
  header_params = {}
@@ -2057,10 +2076,11 @@ module Google
2057
2076
  # Customize the options with defaults
2058
2077
  metadata = @config.rpcs.move_table_to_database.metadata.to_h
2059
2078
 
2060
- # Set x-goog-api-client and x-goog-user-project headers
2079
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2061
2080
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2062
2081
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2063
2082
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION
2083
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2064
2084
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2065
2085
 
2066
2086
  header_params = {}
@@ -2166,10 +2186,11 @@ module Google
2166
2186
  # Customize the options with defaults
2167
2187
  metadata = @config.rpcs.alter_metadata_resource_location.metadata.to_h
2168
2188
 
2169
- # Set x-goog-api-client and x-goog-user-project headers
2189
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2170
2190
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2171
2191
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2172
2192
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION
2193
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2173
2194
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2174
2195
 
2175
2196
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module DataprocMetastore
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 = "metastore.$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::Metastore::V1::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::Metastore::V1::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::Metastore::V1::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::Metastore::V1::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::Metastore::V1::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,
@@ -50,6 +50,9 @@ module Google
50
50
  # `/projects/{project_number}/locations/{location_id}/services/{service_id}`.
51
51
  #
52
52
  class Client
53
+ # @private
54
+ API_VERSION = ""
55
+
53
56
  # @private
54
57
  DEFAULT_ENDPOINT_TEMPLATE = "metastore.$UNIVERSE_DOMAIN$"
55
58
 
@@ -320,12 +323,13 @@ module Google
320
323
  # Customize the options with defaults
321
324
  call_metadata = @config.rpcs.list_services.metadata.to_h
322
325
 
323
- # Set x-goog-api-client and x-goog-user-project headers
326
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
324
327
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
325
328
  lib_name: @config.lib_name, lib_version: @config.lib_version,
326
329
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION,
327
330
  transports_version_send: [:rest]
328
331
 
332
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
329
333
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
330
334
 
331
335
  options.apply_defaults timeout: @config.rpcs.list_services.timeout,
@@ -401,12 +405,13 @@ module Google
401
405
  # Customize the options with defaults
402
406
  call_metadata = @config.rpcs.get_service.metadata.to_h
403
407
 
404
- # Set x-goog-api-client and x-goog-user-project headers
408
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
405
409
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
406
410
  lib_name: @config.lib_name, lib_version: @config.lib_version,
407
411
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION,
408
412
  transports_version_send: [:rest]
409
413
 
414
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
410
415
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
411
416
 
412
417
  options.apply_defaults timeout: @config.rpcs.get_service.timeout,
@@ -513,12 +518,13 @@ module Google
513
518
  # Customize the options with defaults
514
519
  call_metadata = @config.rpcs.create_service.metadata.to_h
515
520
 
516
- # Set x-goog-api-client and x-goog-user-project headers
521
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
517
522
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
518
523
  lib_name: @config.lib_name, lib_version: @config.lib_version,
519
524
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION,
520
525
  transports_version_send: [:rest]
521
526
 
527
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
522
528
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
523
529
 
524
530
  options.apply_defaults timeout: @config.rpcs.create_service.timeout,
@@ -621,12 +627,13 @@ module Google
621
627
  # Customize the options with defaults
622
628
  call_metadata = @config.rpcs.update_service.metadata.to_h
623
629
 
624
- # Set x-goog-api-client and x-goog-user-project headers
630
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
625
631
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
626
632
  lib_name: @config.lib_name, lib_version: @config.lib_version,
627
633
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION,
628
634
  transports_version_send: [:rest]
629
635
 
636
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
630
637
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
631
638
 
632
639
  options.apply_defaults timeout: @config.rpcs.update_service.timeout,
@@ -723,12 +730,13 @@ module Google
723
730
  # Customize the options with defaults
724
731
  call_metadata = @config.rpcs.delete_service.metadata.to_h
725
732
 
726
- # Set x-goog-api-client and x-goog-user-project headers
733
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
727
734
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
728
735
  lib_name: @config.lib_name, lib_version: @config.lib_version,
729
736
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION,
730
737
  transports_version_send: [:rest]
731
738
 
739
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
732
740
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
733
741
 
734
742
  options.apply_defaults timeout: @config.rpcs.delete_service.timeout,
@@ -829,12 +837,13 @@ module Google
829
837
  # Customize the options with defaults
830
838
  call_metadata = @config.rpcs.list_metadata_imports.metadata.to_h
831
839
 
832
- # Set x-goog-api-client and x-goog-user-project headers
840
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
833
841
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
834
842
  lib_name: @config.lib_name, lib_version: @config.lib_version,
835
843
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION,
836
844
  transports_version_send: [:rest]
837
845
 
846
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
838
847
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
839
848
 
840
849
  options.apply_defaults timeout: @config.rpcs.list_metadata_imports.timeout,
@@ -910,12 +919,13 @@ module Google
910
919
  # Customize the options with defaults
911
920
  call_metadata = @config.rpcs.get_metadata_import.metadata.to_h
912
921
 
913
- # Set x-goog-api-client and x-goog-user-project headers
922
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
914
923
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
915
924
  lib_name: @config.lib_name, lib_version: @config.lib_version,
916
925
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION,
917
926
  transports_version_send: [:rest]
918
927
 
928
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
919
929
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
920
930
 
921
931
  options.apply_defaults timeout: @config.rpcs.get_metadata_import.timeout,
@@ -1022,12 +1032,13 @@ module Google
1022
1032
  # Customize the options with defaults
1023
1033
  call_metadata = @config.rpcs.create_metadata_import.metadata.to_h
1024
1034
 
1025
- # 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
1026
1036
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1027
1037
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1028
1038
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION,
1029
1039
  transports_version_send: [:rest]
1030
1040
 
1041
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1031
1042
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1032
1043
 
1033
1044
  options.apply_defaults timeout: @config.rpcs.create_metadata_import.timeout,
@@ -1131,12 +1142,13 @@ module Google
1131
1142
  # Customize the options with defaults
1132
1143
  call_metadata = @config.rpcs.update_metadata_import.metadata.to_h
1133
1144
 
1134
- # Set x-goog-api-client and x-goog-user-project headers
1145
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1135
1146
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1136
1147
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1137
1148
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION,
1138
1149
  transports_version_send: [:rest]
1139
1150
 
1151
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1140
1152
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1141
1153
 
1142
1154
  options.apply_defaults timeout: @config.rpcs.update_metadata_import.timeout,
@@ -1240,12 +1252,13 @@ module Google
1240
1252
  # Customize the options with defaults
1241
1253
  call_metadata = @config.rpcs.export_metadata.metadata.to_h
1242
1254
 
1243
- # 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
1244
1256
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1245
1257
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1246
1258
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION,
1247
1259
  transports_version_send: [:rest]
1248
1260
 
1261
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1249
1262
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1250
1263
 
1251
1264
  options.apply_defaults timeout: @config.rpcs.export_metadata.timeout,
@@ -1349,12 +1362,13 @@ module Google
1349
1362
  # Customize the options with defaults
1350
1363
  call_metadata = @config.rpcs.restore_service.metadata.to_h
1351
1364
 
1352
- # Set x-goog-api-client and x-goog-user-project headers
1365
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1353
1366
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1354
1367
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1355
1368
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION,
1356
1369
  transports_version_send: [:rest]
1357
1370
 
1371
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1358
1372
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1359
1373
 
1360
1374
  options.apply_defaults timeout: @config.rpcs.restore_service.timeout,
@@ -1455,12 +1469,13 @@ module Google
1455
1469
  # Customize the options with defaults
1456
1470
  call_metadata = @config.rpcs.list_backups.metadata.to_h
1457
1471
 
1458
- # Set x-goog-api-client and x-goog-user-project headers
1472
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1459
1473
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1460
1474
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1461
1475
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION,
1462
1476
  transports_version_send: [:rest]
1463
1477
 
1478
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1464
1479
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1465
1480
 
1466
1481
  options.apply_defaults timeout: @config.rpcs.list_backups.timeout,
@@ -1536,12 +1551,13 @@ module Google
1536
1551
  # Customize the options with defaults
1537
1552
  call_metadata = @config.rpcs.get_backup.metadata.to_h
1538
1553
 
1539
- # Set x-goog-api-client and x-goog-user-project headers
1554
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1540
1555
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1541
1556
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1542
1557
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION,
1543
1558
  transports_version_send: [:rest]
1544
1559
 
1560
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1545
1561
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1546
1562
 
1547
1563
  options.apply_defaults timeout: @config.rpcs.get_backup.timeout,
@@ -1647,12 +1663,13 @@ module Google
1647
1663
  # Customize the options with defaults
1648
1664
  call_metadata = @config.rpcs.create_backup.metadata.to_h
1649
1665
 
1650
- # Set x-goog-api-client and x-goog-user-project headers
1666
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1651
1667
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1652
1668
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1653
1669
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION,
1654
1670
  transports_version_send: [:rest]
1655
1671
 
1672
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1656
1673
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1657
1674
 
1658
1675
  options.apply_defaults timeout: @config.rpcs.create_backup.timeout,
@@ -1749,12 +1766,13 @@ module Google
1749
1766
  # Customize the options with defaults
1750
1767
  call_metadata = @config.rpcs.delete_backup.metadata.to_h
1751
1768
 
1752
- # Set x-goog-api-client and x-goog-user-project headers
1769
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1753
1770
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1754
1771
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1755
1772
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION,
1756
1773
  transports_version_send: [:rest]
1757
1774
 
1775
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1758
1776
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1759
1777
 
1760
1778
  options.apply_defaults timeout: @config.rpcs.delete_backup.timeout,
@@ -1841,12 +1859,13 @@ module Google
1841
1859
  # Customize the options with defaults
1842
1860
  call_metadata = @config.rpcs.query_metadata.metadata.to_h
1843
1861
 
1844
- # Set x-goog-api-client and x-goog-user-project headers
1862
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1845
1863
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1846
1864
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1847
1865
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION,
1848
1866
  transports_version_send: [:rest]
1849
1867
 
1868
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1850
1869
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1851
1870
 
1852
1871
  options.apply_defaults timeout: @config.rpcs.query_metadata.timeout,
@@ -1936,12 +1955,13 @@ module Google
1936
1955
  # Customize the options with defaults
1937
1956
  call_metadata = @config.rpcs.move_table_to_database.metadata.to_h
1938
1957
 
1939
- # Set x-goog-api-client and x-goog-user-project headers
1958
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1940
1959
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1941
1960
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1942
1961
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION,
1943
1962
  transports_version_send: [:rest]
1944
1963
 
1964
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1945
1965
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1946
1966
 
1947
1967
  options.apply_defaults timeout: @config.rpcs.move_table_to_database.timeout,
@@ -2038,12 +2058,13 @@ module Google
2038
2058
  # Customize the options with defaults
2039
2059
  call_metadata = @config.rpcs.alter_metadata_resource_location.metadata.to_h
2040
2060
 
2041
- # Set x-goog-api-client and x-goog-user-project headers
2061
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
2042
2062
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
2043
2063
  lib_name: @config.lib_name, lib_version: @config.lib_version,
2044
2064
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION,
2045
2065
  transports_version_send: [:rest]
2046
2066
 
2067
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
2047
2068
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
2048
2069
 
2049
2070
  options.apply_defaults timeout: @config.rpcs.alter_metadata_resource_location.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 = "metastore.$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::Metastore::V1::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::Metastore::V1::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::Metastore::V1::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::Metastore::V1::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,
@@ -44,6 +44,9 @@ module Google
44
44
  # `projects/{project_number}/locations/{location_id}/federations/{federation_id}`.
45
45
  #
46
46
  class Client
47
+ # @private
48
+ API_VERSION = ""
49
+
47
50
  # @private
48
51
  DEFAULT_ENDPOINT_TEMPLATE = "metastore.$UNIVERSE_DOMAIN$"
49
52
 
@@ -297,10 +300,11 @@ module Google
297
300
  # Customize the options with defaults
298
301
  metadata = @config.rpcs.list_federations.metadata.to_h
299
302
 
300
- # Set x-goog-api-client and x-goog-user-project headers
303
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
301
304
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
302
305
  lib_name: @config.lib_name, lib_version: @config.lib_version,
303
306
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION
307
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
304
308
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
305
309
 
306
310
  header_params = {}
@@ -386,10 +390,11 @@ module Google
386
390
  # Customize the options with defaults
387
391
  metadata = @config.rpcs.get_federation.metadata.to_h
388
392
 
389
- # Set x-goog-api-client and x-goog-user-project headers
393
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
390
394
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
391
395
  lib_name: @config.lib_name, lib_version: @config.lib_version,
392
396
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION
397
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
393
398
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
394
399
 
395
400
  header_params = {}
@@ -505,10 +510,11 @@ module Google
505
510
  # Customize the options with defaults
506
511
  metadata = @config.rpcs.create_federation.metadata.to_h
507
512
 
508
- # Set x-goog-api-client and x-goog-user-project headers
513
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
509
514
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
510
515
  lib_name: @config.lib_name, lib_version: @config.lib_version,
511
516
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION
517
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
512
518
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
513
519
 
514
520
  header_params = {}
@@ -620,10 +626,11 @@ module Google
620
626
  # Customize the options with defaults
621
627
  metadata = @config.rpcs.update_federation.metadata.to_h
622
628
 
623
- # Set x-goog-api-client and x-goog-user-project headers
629
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
624
630
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
625
631
  lib_name: @config.lib_name, lib_version: @config.lib_version,
626
632
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION
633
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
627
634
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
628
635
 
629
636
  header_params = {}
@@ -729,10 +736,11 @@ module Google
729
736
  # Customize the options with defaults
730
737
  metadata = @config.rpcs.delete_federation.metadata.to_h
731
738
 
732
- # Set x-goog-api-client and x-goog-user-project headers
739
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
733
740
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
734
741
  lib_name: @config.lib_name, lib_version: @config.lib_version,
735
742
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION
743
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
736
744
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
737
745
 
738
746
  header_params = {}
@@ -26,6 +26,9 @@ module Google
26
26
  module DataprocMetastoreFederation
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 = "metastore.$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::Metastore::V1::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::Metastore::V1::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::Metastore::V1::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::Metastore::V1::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::Metastore::V1::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,
@@ -46,6 +46,9 @@ module Google
46
46
  # `projects/{project_number}/locations/{location_id}/federations/{federation_id}`.
47
47
  #
48
48
  class Client
49
+ # @private
50
+ API_VERSION = ""
51
+
49
52
  # @private
50
53
  DEFAULT_ENDPOINT_TEMPLATE = "metastore.$UNIVERSE_DOMAIN$"
51
54
 
@@ -291,12 +294,13 @@ module Google
291
294
  # Customize the options with defaults
292
295
  call_metadata = @config.rpcs.list_federations.metadata.to_h
293
296
 
294
- # Set x-goog-api-client and x-goog-user-project headers
297
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
295
298
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
296
299
  lib_name: @config.lib_name, lib_version: @config.lib_version,
297
300
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION,
298
301
  transports_version_send: [:rest]
299
302
 
303
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
300
304
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
301
305
 
302
306
  options.apply_defaults timeout: @config.rpcs.list_federations.timeout,
@@ -372,12 +376,13 @@ module Google
372
376
  # Customize the options with defaults
373
377
  call_metadata = @config.rpcs.get_federation.metadata.to_h
374
378
 
375
- # Set x-goog-api-client and x-goog-user-project headers
379
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
376
380
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
377
381
  lib_name: @config.lib_name, lib_version: @config.lib_version,
378
382
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION,
379
383
  transports_version_send: [:rest]
380
384
 
385
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
381
386
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
382
387
 
383
388
  options.apply_defaults timeout: @config.rpcs.get_federation.timeout,
@@ -484,12 +489,13 @@ module Google
484
489
  # Customize the options with defaults
485
490
  call_metadata = @config.rpcs.create_federation.metadata.to_h
486
491
 
487
- # Set x-goog-api-client and x-goog-user-project headers
492
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
488
493
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
489
494
  lib_name: @config.lib_name, lib_version: @config.lib_version,
490
495
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION,
491
496
  transports_version_send: [:rest]
492
497
 
498
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
493
499
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
494
500
 
495
501
  options.apply_defaults timeout: @config.rpcs.create_federation.timeout,
@@ -592,12 +598,13 @@ module Google
592
598
  # Customize the options with defaults
593
599
  call_metadata = @config.rpcs.update_federation.metadata.to_h
594
600
 
595
- # Set x-goog-api-client and x-goog-user-project headers
601
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
596
602
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
597
603
  lib_name: @config.lib_name, lib_version: @config.lib_version,
598
604
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION,
599
605
  transports_version_send: [:rest]
600
606
 
607
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
601
608
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
602
609
 
603
610
  options.apply_defaults timeout: @config.rpcs.update_federation.timeout,
@@ -694,12 +701,13 @@ module Google
694
701
  # Customize the options with defaults
695
702
  call_metadata = @config.rpcs.delete_federation.metadata.to_h
696
703
 
697
- # Set x-goog-api-client and x-goog-user-project headers
704
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
698
705
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
699
706
  lib_name: @config.lib_name, lib_version: @config.lib_version,
700
707
  gapic_version: ::Google::Cloud::Metastore::V1::VERSION,
701
708
  transports_version_send: [:rest]
702
709
 
710
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
703
711
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
704
712
 
705
713
  options.apply_defaults timeout: @config.rpcs.delete_federation.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 = "metastore.$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::Metastore::V1::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::Metastore::V1::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::Metastore::V1::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::Metastore::V1::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 Metastore
23
23
  module V1
24
- VERSION = "0.13.0"
24
+ VERSION = "1.0.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
@@ -192,9 +196,26 @@ module Google
192
196
  # @!attribute [rw] common
193
197
  # @return [::Google::Api::CommonLanguageSettings]
194
198
  # Some settings.
199
+ # @!attribute [rw] experimental_features
200
+ # @return [::Google::Api::PythonSettings::ExperimentalFeatures]
201
+ # Experimental features to be included during client library generation.
195
202
  class PythonSettings
196
203
  include ::Google::Protobuf::MessageExts
197
204
  extend ::Google::Protobuf::MessageExts::ClassMethods
205
+
206
+ # Experimental features to be included during client library generation.
207
+ # These fields will be deprecated once the feature graduates and is enabled
208
+ # by default.
209
+ # @!attribute [rw] rest_async_io_enabled
210
+ # @return [::Boolean]
211
+ # Enables generation of asynchronous REST clients if `rest` transport is
212
+ # enabled. By default, asynchronous REST clients will not be generated.
213
+ # This feature will be enabled by default 1 month after launching the
214
+ # feature in preview packages.
215
+ class ExperimentalFeatures
216
+ include ::Google::Protobuf::MessageExts
217
+ extend ::Google::Protobuf::MessageExts::ClassMethods
218
+ end
198
219
  end
199
220
 
200
221
  # Settings for Node client libraries.
@@ -286,6 +307,13 @@ module Google
286
307
  # @return [::String]
287
308
  # The fully qualified name of the method, for which the options below apply.
288
309
  # This is used to find the method to apply the options.
310
+ #
311
+ # Example:
312
+ #
313
+ # publishing:
314
+ # method_settings:
315
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
316
+ # # method settings for CreateFolder...
289
317
  # @!attribute [rw] long_running
290
318
  # @return [::Google::Api::MethodSettings::LongRunning]
291
319
  # Describes settings to use for long-running operations when generating
@@ -294,17 +322,14 @@ module Google
294
322
  #
295
323
  # Example of a YAML configuration::
296
324
  #
297
- # publishing:
298
- # method_settings:
325
+ # publishing:
326
+ # method_settings:
299
327
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
300
328
  # long_running:
301
- # initial_poll_delay:
302
- # seconds: 60 # 1 minute
329
+ # initial_poll_delay: 60s # 1 minute
303
330
  # poll_delay_multiplier: 1.5
304
- # max_poll_delay:
305
- # seconds: 360 # 6 minutes
306
- # total_poll_timeout:
307
- # seconds: 54000 # 90 minutes
331
+ # max_poll_delay: 360s # 6 minutes
332
+ # total_poll_timeout: 54000s # 90 minutes
308
333
  # @!attribute [rw] auto_populated_fields
309
334
  # @return [::Array<::String>]
310
335
  # List of top-level fields of the request message, that should be
@@ -313,8 +338,8 @@ module Google
313
338
  #
314
339
  # Example of a YAML configuration:
315
340
  #
316
- # publishing:
317
- # method_settings:
341
+ # publishing:
342
+ # method_settings:
318
343
  # - selector: google.example.v1.ExampleService.CreateExample
319
344
  # auto_populated_fields:
320
345
  # - request_id
@@ -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-metastore-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.13.0
4
+ version: 1.0.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-26 00:00:00.000000000 Z
11
+ date: 2024-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common