google-cloud-metastore-v1beta 0.12.2 → 0.13.1
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/v1beta/dataproc_metastore/client.rb +41 -19
- data/lib/google/cloud/metastore/v1beta/dataproc_metastore/operations.rb +13 -5
- data/lib/google/cloud/metastore/v1beta/dataproc_metastore/rest/client.rb +41 -19
- data/lib/google/cloud/metastore/v1beta/dataproc_metastore/rest/operations.rb +11 -4
- data/lib/google/cloud/metastore/v1beta/dataproc_metastore_federation/client.rb +13 -5
- data/lib/google/cloud/metastore/v1beta/dataproc_metastore_federation/operations.rb +13 -5
- data/lib/google/cloud/metastore/v1beta/dataproc_metastore_federation/rest/client.rb +13 -5
- data/lib/google/cloud/metastore/v1beta/dataproc_metastore_federation/rest/operations.rb +11 -4
- data/lib/google/cloud/metastore/v1beta/metastore_federation_pb.rb +1 -1
- data/lib/google/cloud/metastore/v1beta/metastore_pb.rb +1 -1
- data/lib/google/cloud/metastore/v1beta/version.rb +1 -1
- data/proto_docs/google/api/client.rb +35 -10
- data/proto_docs/google/api/resource.rb +7 -2
- 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: 791e8817365e1551c7a3a5af7fa870bd3673bad6c70836e4e6808f2a1a922d17
|
4
|
+
data.tar.gz: 2bee8640f2e82e1dcc55a4b0992aeada245f2df0b0978e1b1553084cf742365f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c2812fa7f3ad226e8480f3d3bfa60c07b52dd5e73aa9a6fabd0e76926affe68732044cf06146233ca19426c183a3dd8e408364304e6277ef224b1216bdbcbb8d
|
7
|
+
data.tar.gz: 89525dc7de32203514bee177604e10e0ed08ecebf992fad9f26a4d9d1ac62a0b27abfc54f591d2be7df356f4cf2f706f6b8f50228415f92ec566de1e45b182b1
|
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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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 = {}
|
@@ -1950,10 +1968,11 @@ module Google
|
|
1950
1968
|
# Customize the options with defaults
|
1951
1969
|
metadata = @config.rpcs.remove_iam_policy.metadata.to_h
|
1952
1970
|
|
1953
|
-
# Set x-goog-api-client
|
1971
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1954
1972
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1955
1973
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1956
1974
|
gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION
|
1975
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1957
1976
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1958
1977
|
|
1959
1978
|
header_params = {}
|
@@ -2048,10 +2067,11 @@ module Google
|
|
2048
2067
|
# Customize the options with defaults
|
2049
2068
|
metadata = @config.rpcs.query_metadata.metadata.to_h
|
2050
2069
|
|
2051
|
-
# Set x-goog-api-client
|
2070
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2052
2071
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2053
2072
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2054
2073
|
gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION
|
2074
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2055
2075
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2056
2076
|
|
2057
2077
|
header_params = {}
|
@@ -2150,10 +2170,11 @@ module Google
|
|
2150
2170
|
# Customize the options with defaults
|
2151
2171
|
metadata = @config.rpcs.move_table_to_database.metadata.to_h
|
2152
2172
|
|
2153
|
-
# Set x-goog-api-client
|
2173
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2154
2174
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2155
2175
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2156
2176
|
gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION
|
2177
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2157
2178
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2158
2179
|
|
2159
2180
|
header_params = {}
|
@@ -2259,10 +2280,11 @@ module Google
|
|
2259
2280
|
# Customize the options with defaults
|
2260
2281
|
metadata = @config.rpcs.alter_metadata_resource_location.metadata.to_h
|
2261
2282
|
|
2262
|
-
# Set x-goog-api-client
|
2283
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2263
2284
|
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2264
2285
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2265
2286
|
gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION
|
2287
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2266
2288
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2267
2289
|
|
2268
2290
|
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::V1beta::VERSION
|
201
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
198
202
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
199
203
|
|
200
204
|
header_params = {}
|
@@ -287,10 +291,11 @@ module Google
|
|
287
291
|
# Customize the options with defaults
|
288
292
|
metadata = @config.rpcs.get_operation.metadata.to_h
|
289
293
|
|
290
|
-
# Set x-goog-api-client
|
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::V1beta::VERSION
|
298
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
294
299
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
295
300
|
|
296
301
|
header_params = {}
|
@@ -376,10 +381,11 @@ module Google
|
|
376
381
|
# Customize the options with defaults
|
377
382
|
metadata = @config.rpcs.delete_operation.metadata.to_h
|
378
383
|
|
379
|
-
# Set x-goog-api-client
|
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::V1beta::VERSION
|
388
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
383
389
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
384
390
|
|
385
391
|
header_params = {}
|
@@ -470,10 +476,11 @@ module Google
|
|
470
476
|
# Customize the options with defaults
|
471
477
|
metadata = @config.rpcs.cancel_operation.metadata.to_h
|
472
478
|
|
473
|
-
# Set x-goog-api-client
|
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::V1beta::VERSION
|
483
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
477
484
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
478
485
|
|
479
486
|
header_params = {}
|
@@ -574,10 +581,11 @@ module Google
|
|
574
581
|
# Customize the options with defaults
|
575
582
|
metadata = @config.rpcs.wait_operation.metadata.to_h
|
576
583
|
|
577
|
-
# Set x-goog-api-client
|
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::V1beta::VERSION
|
588
|
+
metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
581
589
|
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
582
590
|
|
583
591
|
options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
|
@@ -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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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::V1beta::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,
|
@@ -1836,12 +1854,13 @@ module Google
|
|
1836
1854
|
# Customize the options with defaults
|
1837
1855
|
call_metadata = @config.rpcs.remove_iam_policy.metadata.to_h
|
1838
1856
|
|
1839
|
-
# Set x-goog-api-client
|
1857
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1840
1858
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1841
1859
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1842
1860
|
gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION,
|
1843
1861
|
transports_version_send: [:rest]
|
1844
1862
|
|
1863
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1845
1864
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1846
1865
|
|
1847
1866
|
options.apply_defaults timeout: @config.rpcs.remove_iam_policy.timeout,
|
@@ -1927,12 +1946,13 @@ module Google
|
|
1927
1946
|
# Customize the options with defaults
|
1928
1947
|
call_metadata = @config.rpcs.query_metadata.metadata.to_h
|
1929
1948
|
|
1930
|
-
# Set x-goog-api-client
|
1949
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
1931
1950
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1932
1951
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1933
1952
|
gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION,
|
1934
1953
|
transports_version_send: [:rest]
|
1935
1954
|
|
1955
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
1936
1956
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1937
1957
|
|
1938
1958
|
options.apply_defaults timeout: @config.rpcs.query_metadata.timeout,
|
@@ -2022,12 +2042,13 @@ module Google
|
|
2022
2042
|
# Customize the options with defaults
|
2023
2043
|
call_metadata = @config.rpcs.move_table_to_database.metadata.to_h
|
2024
2044
|
|
2025
|
-
# Set x-goog-api-client
|
2045
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2026
2046
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2027
2047
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2028
2048
|
gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION,
|
2029
2049
|
transports_version_send: [:rest]
|
2030
2050
|
|
2051
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2031
2052
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2032
2053
|
|
2033
2054
|
options.apply_defaults timeout: @config.rpcs.move_table_to_database.timeout,
|
@@ -2124,12 +2145,13 @@ module Google
|
|
2124
2145
|
# Customize the options with defaults
|
2125
2146
|
call_metadata = @config.rpcs.alter_metadata_resource_location.metadata.to_h
|
2126
2147
|
|
2127
|
-
# Set x-goog-api-client
|
2148
|
+
# Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
|
2128
2149
|
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2129
2150
|
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2130
2151
|
gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION,
|
2131
2152
|
transports_version_send: [:rest]
|
2132
2153
|
|
2154
|
+
call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
|
2133
2155
|
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2134
2156
|
|
2135
2157
|
options.apply_defaults timeout: @config.rpcs.alter_metadata_resource_location.timeout,
|