google-cloud-metastore-v1 0.12.2 → 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/metastore/v1/dataproc_metastore/client.rb +39 -18
- data/lib/google/cloud/metastore/v1/dataproc_metastore/operations.rb +13 -5
- data/lib/google/cloud/metastore/v1/dataproc_metastore/rest/client.rb +39 -18
- data/lib/google/cloud/metastore/v1/dataproc_metastore/rest/operations.rb +11 -4
- data/lib/google/cloud/metastore/v1/dataproc_metastore_federation/client.rb +13 -5
- data/lib/google/cloud/metastore/v1/dataproc_metastore_federation/operations.rb +13 -5
- data/lib/google/cloud/metastore/v1/dataproc_metastore_federation/rest/client.rb +13 -5
- data/lib/google/cloud/metastore/v1/dataproc_metastore_federation/rest/operations.rb +11 -4
- data/lib/google/cloud/metastore/v1/metastore_federation_pb.rb +1 -1
- data/lib/google/cloud/metastore/v1/metastore_pb.rb +1 -1
- data/lib/google/cloud/metastore/v1/version.rb +1 -1
- data/proto_docs/google/api/client.rb +4 -0
- metadata +4 -116
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 53c62b2e644b1f54fa64efa40e5004b56a76dba4d6e0bca31814a36f42751301
|
4
|
+
data.tar.gz: 93848f12ac90496dea9d59482f93edbdbaf1e94f06b95d86436de84683a5b57c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e20d4052261dfc7f91367c6fa422fac3a399f4360c635a5c2e84b120de26916a5c0dc1bea564bc4bc3e6841d0ee1bb9cd2dba2304a47e0554d4bac4889e76be2
|
7
|
+
data.tar.gz: 735f14d2ed81de507f330ffa3c21c28aded579cac52dd3f05469fc6501d3efd21875124e9b061889c0a5f27cb3327f49d921db8904321f6a2c155cb506fda732
|
data/README.md
CHANGED
@@ -76,7 +76,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
76
76
|
|
77
77
|
## Supported Ruby Versions
|
78
78
|
|
79
|
-
This library is supported on Ruby 2.
|
79
|
+
This library is supported on Ruby 2.7+.
|
80
80
|
|
81
81
|
Google provides official support for Ruby versions that are actively supported
|
82
82
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
@@ -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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
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,
|