google-cloud-metastore-v1 0.8.1 → 0.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/metastore/v1/dataproc_metastore/client.rb +331 -0
- data/lib/google/cloud/metastore/v1/dataproc_metastore/rest/client.rb +241 -0
- data/lib/google/cloud/metastore/v1/dataproc_metastore/rest/service_stub.rb +180 -0
- data/lib/google/cloud/metastore/v1/metastore_federation_pb.rb +1 -1
- data/lib/google/cloud/metastore/v1/metastore_pb.rb +9 -1
- data/lib/google/cloud/metastore/v1/metastore_services_pb.rb +9 -0
- data/lib/google/cloud/metastore/v1/version.rb +1 -1
- data/proto_docs/google/cloud/metastore/v1/metastore.rb +132 -0
- data/proto_docs/google/cloud/metastore/v1/metastore_federation.rb +3 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a5566303fe84248626d5886217273a4bca109b53153caf591640c5d58d373f9b
|
4
|
+
data.tar.gz: 57f360cbab2727f33d337b2cec3e3004f94433e3e995a16363ae4b02afe5e36f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c4942d943169e4280c9eec3158085a89d000c5db8de14bc5437e2db1c5b7dc2a1931bc14b184a4f5cd190790bb6e18f9d29d9c29950935b4790faef65bc84ab4
|
7
|
+
data.tar.gz: 2e283dedda4f288b19c05a8fcdaeb2fca8dd6d8c359cc812de11e3a52bdef65ec0267239e0cdb76966b0548c27377a1d8a14c78b12ebc496c576fdfd3c4ac2c8
|
@@ -1868,6 +1868,316 @@ module Google
|
|
1868
1868
|
raise ::Google::Cloud::Error.from_error(e)
|
1869
1869
|
end
|
1870
1870
|
|
1871
|
+
##
|
1872
|
+
# Query DPMS metadata.
|
1873
|
+
#
|
1874
|
+
# @overload query_metadata(request, options = nil)
|
1875
|
+
# Pass arguments to `query_metadata` via a request object, either of type
|
1876
|
+
# {::Google::Cloud::Metastore::V1::QueryMetadataRequest} or an equivalent Hash.
|
1877
|
+
#
|
1878
|
+
# @param request [::Google::Cloud::Metastore::V1::QueryMetadataRequest, ::Hash]
|
1879
|
+
# A request object representing the call parameters. Required. To specify no
|
1880
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1881
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1882
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1883
|
+
#
|
1884
|
+
# @overload query_metadata(service: nil, query: nil)
|
1885
|
+
# Pass arguments to `query_metadata` via keyword arguments. Note that at
|
1886
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1887
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1888
|
+
#
|
1889
|
+
# @param service [::String]
|
1890
|
+
# Required. The relative resource name of the metastore service to query
|
1891
|
+
# metadata, in the following format:
|
1892
|
+
#
|
1893
|
+
# `projects/{project_id}/locations/{location_id}/services/{service_id}`.
|
1894
|
+
# @param query [::String]
|
1895
|
+
# Required. A read-only SQL query to execute against the metadata database.
|
1896
|
+
# The query cannot change or mutate the data.
|
1897
|
+
#
|
1898
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1899
|
+
# @yieldparam response [::Gapic::Operation]
|
1900
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1901
|
+
#
|
1902
|
+
# @return [::Gapic::Operation]
|
1903
|
+
#
|
1904
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1905
|
+
#
|
1906
|
+
# @example Basic example
|
1907
|
+
# require "google/cloud/metastore/v1"
|
1908
|
+
#
|
1909
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1910
|
+
# client = Google::Cloud::Metastore::V1::DataprocMetastore::Client.new
|
1911
|
+
#
|
1912
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1913
|
+
# request = Google::Cloud::Metastore::V1::QueryMetadataRequest.new
|
1914
|
+
#
|
1915
|
+
# # Call the query_metadata method.
|
1916
|
+
# result = client.query_metadata request
|
1917
|
+
#
|
1918
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
1919
|
+
# # check the status of an operation, cancel it, or wait for results.
|
1920
|
+
# # Here is how to wait for a response.
|
1921
|
+
# result.wait_until_done! timeout: 60
|
1922
|
+
# if result.response?
|
1923
|
+
# p result.response
|
1924
|
+
# else
|
1925
|
+
# puts "No response received."
|
1926
|
+
# end
|
1927
|
+
#
|
1928
|
+
def query_metadata request, options = nil
|
1929
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1930
|
+
|
1931
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Metastore::V1::QueryMetadataRequest
|
1932
|
+
|
1933
|
+
# Converts hash and nil to an options object
|
1934
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1935
|
+
|
1936
|
+
# Customize the options with defaults
|
1937
|
+
metadata = @config.rpcs.query_metadata.metadata.to_h
|
1938
|
+
|
1939
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1940
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1941
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1942
|
+
gapic_version: ::Google::Cloud::Metastore::V1::VERSION
|
1943
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1944
|
+
|
1945
|
+
header_params = {}
|
1946
|
+
if request.service
|
1947
|
+
header_params["service"] = request.service
|
1948
|
+
end
|
1949
|
+
|
1950
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1951
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1952
|
+
|
1953
|
+
options.apply_defaults timeout: @config.rpcs.query_metadata.timeout,
|
1954
|
+
metadata: metadata,
|
1955
|
+
retry_policy: @config.rpcs.query_metadata.retry_policy
|
1956
|
+
|
1957
|
+
options.apply_defaults timeout: @config.timeout,
|
1958
|
+
metadata: @config.metadata,
|
1959
|
+
retry_policy: @config.retry_policy
|
1960
|
+
|
1961
|
+
@dataproc_metastore_stub.call_rpc :query_metadata, request, options: options do |response, operation|
|
1962
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
1963
|
+
yield response, operation if block_given?
|
1964
|
+
return response
|
1965
|
+
end
|
1966
|
+
rescue ::GRPC::BadStatus => e
|
1967
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1968
|
+
end
|
1969
|
+
|
1970
|
+
##
|
1971
|
+
# Move a table to another database.
|
1972
|
+
#
|
1973
|
+
# @overload move_table_to_database(request, options = nil)
|
1974
|
+
# Pass arguments to `move_table_to_database` via a request object, either of type
|
1975
|
+
# {::Google::Cloud::Metastore::V1::MoveTableToDatabaseRequest} or an equivalent Hash.
|
1976
|
+
#
|
1977
|
+
# @param request [::Google::Cloud::Metastore::V1::MoveTableToDatabaseRequest, ::Hash]
|
1978
|
+
# A request object representing the call parameters. Required. To specify no
|
1979
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1980
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1981
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1982
|
+
#
|
1983
|
+
# @overload move_table_to_database(service: nil, table_name: nil, db_name: nil, destination_db_name: nil)
|
1984
|
+
# Pass arguments to `move_table_to_database` via keyword arguments. Note that at
|
1985
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1986
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1987
|
+
#
|
1988
|
+
# @param service [::String]
|
1989
|
+
# Required. The relative resource name of the metastore service to mutate
|
1990
|
+
# metadata, in the following format:
|
1991
|
+
#
|
1992
|
+
# `projects/{project_id}/locations/{location_id}/services/{service_id}`.
|
1993
|
+
# @param table_name [::String]
|
1994
|
+
# Required. The name of the table to be moved.
|
1995
|
+
# @param db_name [::String]
|
1996
|
+
# Required. The name of the database where the table resides.
|
1997
|
+
# @param destination_db_name [::String]
|
1998
|
+
# Required. The name of the database where the table should be moved.
|
1999
|
+
#
|
2000
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2001
|
+
# @yieldparam response [::Gapic::Operation]
|
2002
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2003
|
+
#
|
2004
|
+
# @return [::Gapic::Operation]
|
2005
|
+
#
|
2006
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2007
|
+
#
|
2008
|
+
# @example Basic example
|
2009
|
+
# require "google/cloud/metastore/v1"
|
2010
|
+
#
|
2011
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2012
|
+
# client = Google::Cloud::Metastore::V1::DataprocMetastore::Client.new
|
2013
|
+
#
|
2014
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2015
|
+
# request = Google::Cloud::Metastore::V1::MoveTableToDatabaseRequest.new
|
2016
|
+
#
|
2017
|
+
# # Call the move_table_to_database method.
|
2018
|
+
# result = client.move_table_to_database request
|
2019
|
+
#
|
2020
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2021
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2022
|
+
# # Here is how to wait for a response.
|
2023
|
+
# result.wait_until_done! timeout: 60
|
2024
|
+
# if result.response?
|
2025
|
+
# p result.response
|
2026
|
+
# else
|
2027
|
+
# puts "No response received."
|
2028
|
+
# end
|
2029
|
+
#
|
2030
|
+
def move_table_to_database request, options = nil
|
2031
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2032
|
+
|
2033
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Metastore::V1::MoveTableToDatabaseRequest
|
2034
|
+
|
2035
|
+
# Converts hash and nil to an options object
|
2036
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2037
|
+
|
2038
|
+
# Customize the options with defaults
|
2039
|
+
metadata = @config.rpcs.move_table_to_database.metadata.to_h
|
2040
|
+
|
2041
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2042
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2043
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2044
|
+
gapic_version: ::Google::Cloud::Metastore::V1::VERSION
|
2045
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2046
|
+
|
2047
|
+
header_params = {}
|
2048
|
+
if request.service
|
2049
|
+
header_params["service"] = request.service
|
2050
|
+
end
|
2051
|
+
|
2052
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2053
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2054
|
+
|
2055
|
+
options.apply_defaults timeout: @config.rpcs.move_table_to_database.timeout,
|
2056
|
+
metadata: metadata,
|
2057
|
+
retry_policy: @config.rpcs.move_table_to_database.retry_policy
|
2058
|
+
|
2059
|
+
options.apply_defaults timeout: @config.timeout,
|
2060
|
+
metadata: @config.metadata,
|
2061
|
+
retry_policy: @config.retry_policy
|
2062
|
+
|
2063
|
+
@dataproc_metastore_stub.call_rpc :move_table_to_database, request, options: options do |response, operation|
|
2064
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2065
|
+
yield response, operation if block_given?
|
2066
|
+
return response
|
2067
|
+
end
|
2068
|
+
rescue ::GRPC::BadStatus => e
|
2069
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2070
|
+
end
|
2071
|
+
|
2072
|
+
##
|
2073
|
+
# Alter metadata resource location. The metadata resource can be a database,
|
2074
|
+
# table, or partition. This functionality only updates the parent directory
|
2075
|
+
# for the respective metadata resource and does not transfer any existing
|
2076
|
+
# data to the new location.
|
2077
|
+
#
|
2078
|
+
# @overload alter_metadata_resource_location(request, options = nil)
|
2079
|
+
# Pass arguments to `alter_metadata_resource_location` via a request object, either of type
|
2080
|
+
# {::Google::Cloud::Metastore::V1::AlterMetadataResourceLocationRequest} or an equivalent Hash.
|
2081
|
+
#
|
2082
|
+
# @param request [::Google::Cloud::Metastore::V1::AlterMetadataResourceLocationRequest, ::Hash]
|
2083
|
+
# A request object representing the call parameters. Required. To specify no
|
2084
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2085
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2086
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2087
|
+
#
|
2088
|
+
# @overload alter_metadata_resource_location(service: nil, resource_name: nil, location_uri: nil)
|
2089
|
+
# Pass arguments to `alter_metadata_resource_location` via keyword arguments. Note that at
|
2090
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2091
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2092
|
+
#
|
2093
|
+
# @param service [::String]
|
2094
|
+
# Required. The relative resource name of the metastore service to mutate
|
2095
|
+
# metadata, in the following format:
|
2096
|
+
#
|
2097
|
+
# `projects/{project_id}/locations/{location_id}/services/{service_id}`.
|
2098
|
+
# @param resource_name [::String]
|
2099
|
+
# Required. The relative metadata resource name in the following format.
|
2100
|
+
#
|
2101
|
+
# `databases/{database_id}`
|
2102
|
+
# or
|
2103
|
+
# `databases/{database_id}/tables/{table_id}`
|
2104
|
+
# or
|
2105
|
+
# `databases/{database_id}/tables/{table_id}/partitions/{partition_id}`
|
2106
|
+
# @param location_uri [::String]
|
2107
|
+
# Required. The new location URI for the metadata resource.
|
2108
|
+
#
|
2109
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2110
|
+
# @yieldparam response [::Gapic::Operation]
|
2111
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2112
|
+
#
|
2113
|
+
# @return [::Gapic::Operation]
|
2114
|
+
#
|
2115
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2116
|
+
#
|
2117
|
+
# @example Basic example
|
2118
|
+
# require "google/cloud/metastore/v1"
|
2119
|
+
#
|
2120
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2121
|
+
# client = Google::Cloud::Metastore::V1::DataprocMetastore::Client.new
|
2122
|
+
#
|
2123
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2124
|
+
# request = Google::Cloud::Metastore::V1::AlterMetadataResourceLocationRequest.new
|
2125
|
+
#
|
2126
|
+
# # Call the alter_metadata_resource_location method.
|
2127
|
+
# result = client.alter_metadata_resource_location request
|
2128
|
+
#
|
2129
|
+
# # The returned object is of type Gapic::Operation. You can use it to
|
2130
|
+
# # check the status of an operation, cancel it, or wait for results.
|
2131
|
+
# # Here is how to wait for a response.
|
2132
|
+
# result.wait_until_done! timeout: 60
|
2133
|
+
# if result.response?
|
2134
|
+
# p result.response
|
2135
|
+
# else
|
2136
|
+
# puts "No response received."
|
2137
|
+
# end
|
2138
|
+
#
|
2139
|
+
def alter_metadata_resource_location request, options = nil
|
2140
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2141
|
+
|
2142
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Metastore::V1::AlterMetadataResourceLocationRequest
|
2143
|
+
|
2144
|
+
# Converts hash and nil to an options object
|
2145
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2146
|
+
|
2147
|
+
# Customize the options with defaults
|
2148
|
+
metadata = @config.rpcs.alter_metadata_resource_location.metadata.to_h
|
2149
|
+
|
2150
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2151
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2152
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2153
|
+
gapic_version: ::Google::Cloud::Metastore::V1::VERSION
|
2154
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2155
|
+
|
2156
|
+
header_params = {}
|
2157
|
+
if request.service
|
2158
|
+
header_params["service"] = request.service
|
2159
|
+
end
|
2160
|
+
|
2161
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2162
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2163
|
+
|
2164
|
+
options.apply_defaults timeout: @config.rpcs.alter_metadata_resource_location.timeout,
|
2165
|
+
metadata: metadata,
|
2166
|
+
retry_policy: @config.rpcs.alter_metadata_resource_location.retry_policy
|
2167
|
+
|
2168
|
+
options.apply_defaults timeout: @config.timeout,
|
2169
|
+
metadata: @config.metadata,
|
2170
|
+
retry_policy: @config.retry_policy
|
2171
|
+
|
2172
|
+
@dataproc_metastore_stub.call_rpc :alter_metadata_resource_location, request, options: options do |response, operation|
|
2173
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2174
|
+
yield response, operation if block_given?
|
2175
|
+
return response
|
2176
|
+
end
|
2177
|
+
rescue ::GRPC::BadStatus => e
|
2178
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2179
|
+
end
|
2180
|
+
|
1871
2181
|
##
|
1872
2182
|
# Configuration class for the DataprocMetastore API.
|
1873
2183
|
#
|
@@ -2080,6 +2390,21 @@ module Google
|
|
2080
2390
|
# @return [::Gapic::Config::Method]
|
2081
2391
|
#
|
2082
2392
|
attr_reader :delete_backup
|
2393
|
+
##
|
2394
|
+
# RPC-specific configuration for `query_metadata`
|
2395
|
+
# @return [::Gapic::Config::Method]
|
2396
|
+
#
|
2397
|
+
attr_reader :query_metadata
|
2398
|
+
##
|
2399
|
+
# RPC-specific configuration for `move_table_to_database`
|
2400
|
+
# @return [::Gapic::Config::Method]
|
2401
|
+
#
|
2402
|
+
attr_reader :move_table_to_database
|
2403
|
+
##
|
2404
|
+
# RPC-specific configuration for `alter_metadata_resource_location`
|
2405
|
+
# @return [::Gapic::Config::Method]
|
2406
|
+
#
|
2407
|
+
attr_reader :alter_metadata_resource_location
|
2083
2408
|
|
2084
2409
|
# @private
|
2085
2410
|
def initialize parent_rpcs = nil
|
@@ -2113,6 +2438,12 @@ module Google
|
|
2113
2438
|
@create_backup = ::Gapic::Config::Method.new create_backup_config
|
2114
2439
|
delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
|
2115
2440
|
@delete_backup = ::Gapic::Config::Method.new delete_backup_config
|
2441
|
+
query_metadata_config = parent_rpcs.query_metadata if parent_rpcs.respond_to? :query_metadata
|
2442
|
+
@query_metadata = ::Gapic::Config::Method.new query_metadata_config
|
2443
|
+
move_table_to_database_config = parent_rpcs.move_table_to_database if parent_rpcs.respond_to? :move_table_to_database
|
2444
|
+
@move_table_to_database = ::Gapic::Config::Method.new move_table_to_database_config
|
2445
|
+
alter_metadata_resource_location_config = parent_rpcs.alter_metadata_resource_location if parent_rpcs.respond_to? :alter_metadata_resource_location
|
2446
|
+
@alter_metadata_resource_location = ::Gapic::Config::Method.new alter_metadata_resource_location_config
|
2116
2447
|
|
2117
2448
|
yield self if block_given?
|
2118
2449
|
end
|
@@ -1438,6 +1438,226 @@ module Google
|
|
1438
1438
|
raise ::Google::Cloud::Error.from_error(e)
|
1439
1439
|
end
|
1440
1440
|
|
1441
|
+
##
|
1442
|
+
# Query DPMS metadata.
|
1443
|
+
#
|
1444
|
+
# @overload query_metadata(request, options = nil)
|
1445
|
+
# Pass arguments to `query_metadata` via a request object, either of type
|
1446
|
+
# {::Google::Cloud::Metastore::V1::QueryMetadataRequest} or an equivalent Hash.
|
1447
|
+
#
|
1448
|
+
# @param request [::Google::Cloud::Metastore::V1::QueryMetadataRequest, ::Hash]
|
1449
|
+
# A request object representing the call parameters. Required. To specify no
|
1450
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1451
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1452
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1453
|
+
#
|
1454
|
+
# @overload query_metadata(service: nil, query: nil)
|
1455
|
+
# Pass arguments to `query_metadata` via keyword arguments. Note that at
|
1456
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1457
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1458
|
+
#
|
1459
|
+
# @param service [::String]
|
1460
|
+
# Required. The relative resource name of the metastore service to query
|
1461
|
+
# metadata, in the following format:
|
1462
|
+
#
|
1463
|
+
# `projects/{project_id}/locations/{location_id}/services/{service_id}`.
|
1464
|
+
# @param query [::String]
|
1465
|
+
# Required. A read-only SQL query to execute against the metadata database.
|
1466
|
+
# The query cannot change or mutate the data.
|
1467
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1468
|
+
# @yieldparam result [::Gapic::Operation]
|
1469
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1470
|
+
#
|
1471
|
+
# @return [::Gapic::Operation]
|
1472
|
+
#
|
1473
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1474
|
+
def query_metadata request, options = nil
|
1475
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1476
|
+
|
1477
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Metastore::V1::QueryMetadataRequest
|
1478
|
+
|
1479
|
+
# Converts hash and nil to an options object
|
1480
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1481
|
+
|
1482
|
+
# Customize the options with defaults
|
1483
|
+
call_metadata = @config.rpcs.query_metadata.metadata.to_h
|
1484
|
+
|
1485
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1486
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1487
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1488
|
+
gapic_version: ::Google::Cloud::Metastore::V1::VERSION,
|
1489
|
+
transports_version_send: [:rest]
|
1490
|
+
|
1491
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1492
|
+
|
1493
|
+
options.apply_defaults timeout: @config.rpcs.query_metadata.timeout,
|
1494
|
+
metadata: call_metadata,
|
1495
|
+
retry_policy: @config.rpcs.query_metadata.retry_policy
|
1496
|
+
|
1497
|
+
options.apply_defaults timeout: @config.timeout,
|
1498
|
+
metadata: @config.metadata,
|
1499
|
+
retry_policy: @config.retry_policy
|
1500
|
+
|
1501
|
+
@dataproc_metastore_stub.query_metadata request, options do |result, operation|
|
1502
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1503
|
+
yield result, operation if block_given?
|
1504
|
+
return result
|
1505
|
+
end
|
1506
|
+
rescue ::Gapic::Rest::Error => e
|
1507
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1508
|
+
end
|
1509
|
+
|
1510
|
+
##
|
1511
|
+
# Move a table to another database.
|
1512
|
+
#
|
1513
|
+
# @overload move_table_to_database(request, options = nil)
|
1514
|
+
# Pass arguments to `move_table_to_database` via a request object, either of type
|
1515
|
+
# {::Google::Cloud::Metastore::V1::MoveTableToDatabaseRequest} or an equivalent Hash.
|
1516
|
+
#
|
1517
|
+
# @param request [::Google::Cloud::Metastore::V1::MoveTableToDatabaseRequest, ::Hash]
|
1518
|
+
# A request object representing the call parameters. Required. To specify no
|
1519
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1520
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1521
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1522
|
+
#
|
1523
|
+
# @overload move_table_to_database(service: nil, table_name: nil, db_name: nil, destination_db_name: nil)
|
1524
|
+
# Pass arguments to `move_table_to_database` via keyword arguments. Note that at
|
1525
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1526
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1527
|
+
#
|
1528
|
+
# @param service [::String]
|
1529
|
+
# Required. The relative resource name of the metastore service to mutate
|
1530
|
+
# metadata, in the following format:
|
1531
|
+
#
|
1532
|
+
# `projects/{project_id}/locations/{location_id}/services/{service_id}`.
|
1533
|
+
# @param table_name [::String]
|
1534
|
+
# Required. The name of the table to be moved.
|
1535
|
+
# @param db_name [::String]
|
1536
|
+
# Required. The name of the database where the table resides.
|
1537
|
+
# @param destination_db_name [::String]
|
1538
|
+
# Required. The name of the database where the table should be moved.
|
1539
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1540
|
+
# @yieldparam result [::Gapic::Operation]
|
1541
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1542
|
+
#
|
1543
|
+
# @return [::Gapic::Operation]
|
1544
|
+
#
|
1545
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1546
|
+
def move_table_to_database request, options = nil
|
1547
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1548
|
+
|
1549
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Metastore::V1::MoveTableToDatabaseRequest
|
1550
|
+
|
1551
|
+
# Converts hash and nil to an options object
|
1552
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1553
|
+
|
1554
|
+
# Customize the options with defaults
|
1555
|
+
call_metadata = @config.rpcs.move_table_to_database.metadata.to_h
|
1556
|
+
|
1557
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1558
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1559
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1560
|
+
gapic_version: ::Google::Cloud::Metastore::V1::VERSION,
|
1561
|
+
transports_version_send: [:rest]
|
1562
|
+
|
1563
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1564
|
+
|
1565
|
+
options.apply_defaults timeout: @config.rpcs.move_table_to_database.timeout,
|
1566
|
+
metadata: call_metadata,
|
1567
|
+
retry_policy: @config.rpcs.move_table_to_database.retry_policy
|
1568
|
+
|
1569
|
+
options.apply_defaults timeout: @config.timeout,
|
1570
|
+
metadata: @config.metadata,
|
1571
|
+
retry_policy: @config.retry_policy
|
1572
|
+
|
1573
|
+
@dataproc_metastore_stub.move_table_to_database request, options do |result, operation|
|
1574
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1575
|
+
yield result, operation if block_given?
|
1576
|
+
return result
|
1577
|
+
end
|
1578
|
+
rescue ::Gapic::Rest::Error => e
|
1579
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1580
|
+
end
|
1581
|
+
|
1582
|
+
##
|
1583
|
+
# Alter metadata resource location. The metadata resource can be a database,
|
1584
|
+
# table, or partition. This functionality only updates the parent directory
|
1585
|
+
# for the respective metadata resource and does not transfer any existing
|
1586
|
+
# data to the new location.
|
1587
|
+
#
|
1588
|
+
# @overload alter_metadata_resource_location(request, options = nil)
|
1589
|
+
# Pass arguments to `alter_metadata_resource_location` via a request object, either of type
|
1590
|
+
# {::Google::Cloud::Metastore::V1::AlterMetadataResourceLocationRequest} or an equivalent Hash.
|
1591
|
+
#
|
1592
|
+
# @param request [::Google::Cloud::Metastore::V1::AlterMetadataResourceLocationRequest, ::Hash]
|
1593
|
+
# A request object representing the call parameters. Required. To specify no
|
1594
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1595
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1596
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
1597
|
+
#
|
1598
|
+
# @overload alter_metadata_resource_location(service: nil, resource_name: nil, location_uri: nil)
|
1599
|
+
# Pass arguments to `alter_metadata_resource_location` via keyword arguments. Note that at
|
1600
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1601
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1602
|
+
#
|
1603
|
+
# @param service [::String]
|
1604
|
+
# Required. The relative resource name of the metastore service to mutate
|
1605
|
+
# metadata, in the following format:
|
1606
|
+
#
|
1607
|
+
# `projects/{project_id}/locations/{location_id}/services/{service_id}`.
|
1608
|
+
# @param resource_name [::String]
|
1609
|
+
# Required. The relative metadata resource name in the following format.
|
1610
|
+
#
|
1611
|
+
# `databases/{database_id}`
|
1612
|
+
# or
|
1613
|
+
# `databases/{database_id}/tables/{table_id}`
|
1614
|
+
# or
|
1615
|
+
# `databases/{database_id}/tables/{table_id}/partitions/{partition_id}`
|
1616
|
+
# @param location_uri [::String]
|
1617
|
+
# Required. The new location URI for the metadata resource.
|
1618
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
1619
|
+
# @yieldparam result [::Gapic::Operation]
|
1620
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
1621
|
+
#
|
1622
|
+
# @return [::Gapic::Operation]
|
1623
|
+
#
|
1624
|
+
# @raise [::Google::Cloud::Error] if the REST call is aborted.
|
1625
|
+
def alter_metadata_resource_location request, options = nil
|
1626
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1627
|
+
|
1628
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Metastore::V1::AlterMetadataResourceLocationRequest
|
1629
|
+
|
1630
|
+
# Converts hash and nil to an options object
|
1631
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1632
|
+
|
1633
|
+
# Customize the options with defaults
|
1634
|
+
call_metadata = @config.rpcs.alter_metadata_resource_location.metadata.to_h
|
1635
|
+
|
1636
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1637
|
+
call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1638
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1639
|
+
gapic_version: ::Google::Cloud::Metastore::V1::VERSION,
|
1640
|
+
transports_version_send: [:rest]
|
1641
|
+
|
1642
|
+
call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1643
|
+
|
1644
|
+
options.apply_defaults timeout: @config.rpcs.alter_metadata_resource_location.timeout,
|
1645
|
+
metadata: call_metadata,
|
1646
|
+
retry_policy: @config.rpcs.alter_metadata_resource_location.retry_policy
|
1647
|
+
|
1648
|
+
options.apply_defaults timeout: @config.timeout,
|
1649
|
+
metadata: @config.metadata,
|
1650
|
+
retry_policy: @config.retry_policy
|
1651
|
+
|
1652
|
+
@dataproc_metastore_stub.alter_metadata_resource_location request, options do |result, operation|
|
1653
|
+
result = ::Gapic::Operation.new result, @operations_client, options: options
|
1654
|
+
yield result, operation if block_given?
|
1655
|
+
return result
|
1656
|
+
end
|
1657
|
+
rescue ::Gapic::Rest::Error => e
|
1658
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1659
|
+
end
|
1660
|
+
|
1441
1661
|
##
|
1442
1662
|
# Configuration class for the DataprocMetastore REST API.
|
1443
1663
|
#
|
@@ -1645,6 +1865,21 @@ module Google
|
|
1645
1865
|
# @return [::Gapic::Config::Method]
|
1646
1866
|
#
|
1647
1867
|
attr_reader :delete_backup
|
1868
|
+
##
|
1869
|
+
# RPC-specific configuration for `query_metadata`
|
1870
|
+
# @return [::Gapic::Config::Method]
|
1871
|
+
#
|
1872
|
+
attr_reader :query_metadata
|
1873
|
+
##
|
1874
|
+
# RPC-specific configuration for `move_table_to_database`
|
1875
|
+
# @return [::Gapic::Config::Method]
|
1876
|
+
#
|
1877
|
+
attr_reader :move_table_to_database
|
1878
|
+
##
|
1879
|
+
# RPC-specific configuration for `alter_metadata_resource_location`
|
1880
|
+
# @return [::Gapic::Config::Method]
|
1881
|
+
#
|
1882
|
+
attr_reader :alter_metadata_resource_location
|
1648
1883
|
|
1649
1884
|
# @private
|
1650
1885
|
def initialize parent_rpcs = nil
|
@@ -1678,6 +1913,12 @@ module Google
|
|
1678
1913
|
@create_backup = ::Gapic::Config::Method.new create_backup_config
|
1679
1914
|
delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
|
1680
1915
|
@delete_backup = ::Gapic::Config::Method.new delete_backup_config
|
1916
|
+
query_metadata_config = parent_rpcs.query_metadata if parent_rpcs.respond_to? :query_metadata
|
1917
|
+
@query_metadata = ::Gapic::Config::Method.new query_metadata_config
|
1918
|
+
move_table_to_database_config = parent_rpcs.move_table_to_database if parent_rpcs.respond_to? :move_table_to_database
|
1919
|
+
@move_table_to_database = ::Gapic::Config::Method.new move_table_to_database_config
|
1920
|
+
alter_metadata_resource_location_config = parent_rpcs.alter_metadata_resource_location if parent_rpcs.respond_to? :alter_metadata_resource_location
|
1921
|
+
@alter_metadata_resource_location = ::Gapic::Config::Method.new alter_metadata_resource_location_config
|
1681
1922
|
|
1682
1923
|
yield self if block_given?
|
1683
1924
|
end
|
@@ -610,6 +610,120 @@ module Google
|
|
610
610
|
result
|
611
611
|
end
|
612
612
|
|
613
|
+
##
|
614
|
+
# Baseline implementation for the query_metadata REST call
|
615
|
+
#
|
616
|
+
# @param request_pb [::Google::Cloud::Metastore::V1::QueryMetadataRequest]
|
617
|
+
# A request object representing the call parameters. Required.
|
618
|
+
# @param options [::Gapic::CallOptions]
|
619
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
620
|
+
#
|
621
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
622
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
623
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
624
|
+
#
|
625
|
+
# @return [::Google::Longrunning::Operation]
|
626
|
+
# A result object deserialized from the server's reply
|
627
|
+
def query_metadata request_pb, options = nil
|
628
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
629
|
+
|
630
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_query_metadata_request request_pb
|
631
|
+
query_string_params = if query_string_params.any?
|
632
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
633
|
+
else
|
634
|
+
{}
|
635
|
+
end
|
636
|
+
|
637
|
+
response = @client_stub.make_http_request(
|
638
|
+
verb,
|
639
|
+
uri: uri,
|
640
|
+
body: body || "",
|
641
|
+
params: query_string_params,
|
642
|
+
options: options
|
643
|
+
)
|
644
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
645
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
646
|
+
|
647
|
+
yield result, operation if block_given?
|
648
|
+
result
|
649
|
+
end
|
650
|
+
|
651
|
+
##
|
652
|
+
# Baseline implementation for the move_table_to_database REST call
|
653
|
+
#
|
654
|
+
# @param request_pb [::Google::Cloud::Metastore::V1::MoveTableToDatabaseRequest]
|
655
|
+
# A request object representing the call parameters. Required.
|
656
|
+
# @param options [::Gapic::CallOptions]
|
657
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
658
|
+
#
|
659
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
660
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
661
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
662
|
+
#
|
663
|
+
# @return [::Google::Longrunning::Operation]
|
664
|
+
# A result object deserialized from the server's reply
|
665
|
+
def move_table_to_database request_pb, options = nil
|
666
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
667
|
+
|
668
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_move_table_to_database_request request_pb
|
669
|
+
query_string_params = if query_string_params.any?
|
670
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
671
|
+
else
|
672
|
+
{}
|
673
|
+
end
|
674
|
+
|
675
|
+
response = @client_stub.make_http_request(
|
676
|
+
verb,
|
677
|
+
uri: uri,
|
678
|
+
body: body || "",
|
679
|
+
params: query_string_params,
|
680
|
+
options: options
|
681
|
+
)
|
682
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
683
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
684
|
+
|
685
|
+
yield result, operation if block_given?
|
686
|
+
result
|
687
|
+
end
|
688
|
+
|
689
|
+
##
|
690
|
+
# Baseline implementation for the alter_metadata_resource_location REST call
|
691
|
+
#
|
692
|
+
# @param request_pb [::Google::Cloud::Metastore::V1::AlterMetadataResourceLocationRequest]
|
693
|
+
# A request object representing the call parameters. Required.
|
694
|
+
# @param options [::Gapic::CallOptions]
|
695
|
+
# Overrides the default settings for this call, e.g, timeout, retries etc. Optional.
|
696
|
+
#
|
697
|
+
# @yield [result, operation] Access the result along with the TransportOperation object
|
698
|
+
# @yieldparam result [::Google::Longrunning::Operation]
|
699
|
+
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
700
|
+
#
|
701
|
+
# @return [::Google::Longrunning::Operation]
|
702
|
+
# A result object deserialized from the server's reply
|
703
|
+
def alter_metadata_resource_location request_pb, options = nil
|
704
|
+
raise ::ArgumentError, "request must be provided" if request_pb.nil?
|
705
|
+
|
706
|
+
verb, uri, query_string_params, body = ServiceStub.transcode_alter_metadata_resource_location_request request_pb
|
707
|
+
query_string_params = if query_string_params.any?
|
708
|
+
query_string_params.to_h { |p| p.split "=", 2 }
|
709
|
+
else
|
710
|
+
{}
|
711
|
+
end
|
712
|
+
|
713
|
+
response = @client_stub.make_http_request(
|
714
|
+
verb,
|
715
|
+
uri: uri,
|
716
|
+
body: body || "",
|
717
|
+
params: query_string_params,
|
718
|
+
options: options
|
719
|
+
)
|
720
|
+
operation = ::Gapic::Rest::TransportOperation.new response
|
721
|
+
result = ::Google::Longrunning::Operation.decode_json response.body, ignore_unknown_fields: true
|
722
|
+
|
723
|
+
yield result, operation if block_given?
|
724
|
+
result
|
725
|
+
end
|
726
|
+
|
613
727
|
##
|
614
728
|
# @private
|
615
729
|
#
|
@@ -931,6 +1045,72 @@ module Google
|
|
931
1045
|
)
|
932
1046
|
transcoder.transcode request_pb
|
933
1047
|
end
|
1048
|
+
|
1049
|
+
##
|
1050
|
+
# @private
|
1051
|
+
#
|
1052
|
+
# GRPC transcoding helper method for the query_metadata REST call
|
1053
|
+
#
|
1054
|
+
# @param request_pb [::Google::Cloud::Metastore::V1::QueryMetadataRequest]
|
1055
|
+
# A request object representing the call parameters. Required.
|
1056
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1057
|
+
# Uri, Body, Query string parameters
|
1058
|
+
def self.transcode_query_metadata_request request_pb
|
1059
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1060
|
+
.with_bindings(
|
1061
|
+
uri_method: :post,
|
1062
|
+
uri_template: "/v1/{service}:queryMetadata",
|
1063
|
+
body: "*",
|
1064
|
+
matches: [
|
1065
|
+
["service", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/?$}, false]
|
1066
|
+
]
|
1067
|
+
)
|
1068
|
+
transcoder.transcode request_pb
|
1069
|
+
end
|
1070
|
+
|
1071
|
+
##
|
1072
|
+
# @private
|
1073
|
+
#
|
1074
|
+
# GRPC transcoding helper method for the move_table_to_database REST call
|
1075
|
+
#
|
1076
|
+
# @param request_pb [::Google::Cloud::Metastore::V1::MoveTableToDatabaseRequest]
|
1077
|
+
# A request object representing the call parameters. Required.
|
1078
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1079
|
+
# Uri, Body, Query string parameters
|
1080
|
+
def self.transcode_move_table_to_database_request request_pb
|
1081
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1082
|
+
.with_bindings(
|
1083
|
+
uri_method: :post,
|
1084
|
+
uri_template: "/v1/{service}:moveTableToDatabase",
|
1085
|
+
body: "*",
|
1086
|
+
matches: [
|
1087
|
+
["service", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/?$}, false]
|
1088
|
+
]
|
1089
|
+
)
|
1090
|
+
transcoder.transcode request_pb
|
1091
|
+
end
|
1092
|
+
|
1093
|
+
##
|
1094
|
+
# @private
|
1095
|
+
#
|
1096
|
+
# GRPC transcoding helper method for the alter_metadata_resource_location REST call
|
1097
|
+
#
|
1098
|
+
# @param request_pb [::Google::Cloud::Metastore::V1::AlterMetadataResourceLocationRequest]
|
1099
|
+
# A request object representing the call parameters. Required.
|
1100
|
+
# @return [Array(String, [String, nil], Hash{String => String})]
|
1101
|
+
# Uri, Body, Query string parameters
|
1102
|
+
def self.transcode_alter_metadata_resource_location_request request_pb
|
1103
|
+
transcoder = Gapic::Rest::GrpcTranscoder.new
|
1104
|
+
.with_bindings(
|
1105
|
+
uri_method: :post,
|
1106
|
+
uri_template: "/v1/{service}:alterLocation",
|
1107
|
+
body: "*",
|
1108
|
+
matches: [
|
1109
|
+
["service", %r{^projects/[^/]+/locations/[^/]+/services/[^/]+/?$}, false]
|
1110
|
+
]
|
1111
|
+
)
|
1112
|
+
transcoder.transcode request_pb
|
1113
|
+
end
|
934
1114
|
end
|
935
1115
|
end
|
936
1116
|
end
|
@@ -15,7 +15,7 @@ require 'google/protobuf/field_mask_pb'
|
|
15
15
|
require 'google/protobuf/timestamp_pb'
|
16
16
|
|
17
17
|
|
18
|
-
descriptor_data = "\n4google/cloud/metastore/v1/metastore_federation.proto\x12\x19google.cloud.metastore.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/metastore/v1/metastore.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xab\x06\n\nFederation\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x41\n\x06labels\x18\x04 \x03(\x0b\x32\x31.google.cloud.metastore.v1.Federation.LabelsEntry\x12\x14\n\x07version\x18\x05 \x01(\tB\x03\xe0\x41\x05\x12X\n\x12\x62\x61\x63kend_metastores\x18\x06 \x03(\x0b\x32<.google.cloud.metastore.v1.Federation.BackendMetastoresEntry\x12\x19\n\x0c\x65ndpoint_uri\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12?\n\x05state\x18\x08 \x01(\x0e\x32+.google.cloud.metastore.v1.Federation.StateB\x03\xe0\x41\x03\x12\x1a\n\rstate_message\x18\t \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\n \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x65\n\x16\x42\x61\x63kendMetastoresEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12:\n\x05value\x18\x02 \x01(\x0b\x32+.google.cloud.metastore.v1.BackendMetastore:\x02\x38\x01\"_\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\t\n\x05\x45RROR\x10\x05:j\xea\x41g\n#metastore.googleapis.com/Federation\x12@projects/{project}/locations/{location}/federations/{federation}\"\
|
18
|
+
descriptor_data = "\n4google/cloud/metastore/v1/metastore_federation.proto\x12\x19google.cloud.metastore.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a)google/cloud/metastore/v1/metastore.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\"\xab\x06\n\nFederation\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x41\n\x06labels\x18\x04 \x03(\x0b\x32\x31.google.cloud.metastore.v1.Federation.LabelsEntry\x12\x14\n\x07version\x18\x05 \x01(\tB\x03\xe0\x41\x05\x12X\n\x12\x62\x61\x63kend_metastores\x18\x06 \x03(\x0b\x32<.google.cloud.metastore.v1.Federation.BackendMetastoresEntry\x12\x19\n\x0c\x65ndpoint_uri\x18\x07 \x01(\tB\x03\xe0\x41\x03\x12?\n\x05state\x18\x08 \x01(\x0e\x32+.google.cloud.metastore.v1.Federation.StateB\x03\xe0\x41\x03\x12\x1a\n\rstate_message\x18\t \x01(\tB\x03\xe0\x41\x03\x12\x10\n\x03uid\x18\n \x01(\tB\x03\xe0\x41\x03\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1a\x65\n\x16\x42\x61\x63kendMetastoresEntry\x12\x0b\n\x03key\x18\x01 \x01(\x05\x12:\n\x05value\x18\x02 \x01(\x0b\x32+.google.cloud.metastore.v1.BackendMetastore:\x02\x38\x01\"_\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\x0c\n\x08\x44\x45LETING\x10\x04\x12\t\n\x05\x45RROR\x10\x05:j\xea\x41g\n#metastore.googleapis.com/Federation\x12@projects/{project}/locations/{location}/federations/{federation}\"\xca\x01\n\x10\x42\x61\x63kendMetastore\x12\x0c\n\x04name\x18\x01 \x01(\t\x12Q\n\x0emetastore_type\x18\x02 \x01(\x0e\x32\x39.google.cloud.metastore.v1.BackendMetastore.MetastoreType\"U\n\rMetastoreType\x12\x1e\n\x1aMETASTORE_TYPE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x42IGQUERY\x10\x02\x12\x16\n\x12\x44\x41TAPROC_METASTORE\x10\x03\"\xb2\x01\n\x16ListFederationsRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#metastore.googleapis.com/Federation\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x83\x01\n\x17ListFederationsResponse\x12:\n\x0b\x66\x65\x64\x65rations\x18\x01 \x03(\x0b\x32%.google.cloud.metastore.v1.Federation\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"Q\n\x14GetFederationRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#metastore.googleapis.com/Federation\"\xcb\x01\n\x17\x43reateFederationRequest\x12;\n\x06parent\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\x12#metastore.googleapis.com/Federation\x12\x1a\n\rfederation_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12>\n\nfederation\x18\x03 \x01(\x0b\x32%.google.cloud.metastore.v1.FederationB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xa8\x01\n\x17UpdateFederationRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12>\n\nfederation\x18\x02 \x01(\x0b\x32%.google.cloud.metastore.v1.FederationB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"m\n\x17\x44\x65leteFederationRequest\x12\x39\n\x04name\x18\x01 \x01(\tB+\xe0\x41\x02\xfa\x41%\n#metastore.googleapis.com/Federation\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\x32\xdc\t\n\x1b\x44\x61taprocMetastoreFederation\x12\xba\x01\n\x0fListFederations\x12\x31.google.cloud.metastore.v1.ListFederationsRequest\x1a\x32.google.cloud.metastore.v1.ListFederationsResponse\"@\x82\xd3\xe4\x93\x02\x31\x12//v1/{parent=projects/*/locations/*}/federations\xda\x41\x06parent\x12\xa7\x01\n\rGetFederation\x12/.google.cloud.metastore.v1.GetFederationRequest\x1a%.google.cloud.metastore.v1.Federation\">\x82\xd3\xe4\x93\x02\x31\x12//v1/{name=projects/*/locations/*/federations/*}\xda\x41\x04name\x12\x89\x02\n\x10\x43reateFederation\x12\x32.google.cloud.metastore.v1.CreateFederationRequest\x1a\x1d.google.longrunning.Operation\"\xa1\x01\x82\xd3\xe4\x93\x02=\"//v1/{parent=projects/*/locations/*}/federations:\nfederation\xda\x41\x1fparent,federation,federation_id\xca\x41\x39\n\nFederation\x12+google.cloud.metastore.v1.OperationMetadata\x12\x8b\x02\n\x10UpdateFederation\x12\x32.google.cloud.metastore.v1.UpdateFederationRequest\x1a\x1d.google.longrunning.Operation\"\xa3\x01\x82\xd3\xe4\x93\x02H2:/v1/{federation.name=projects/*/locations/*/federations/*}:\nfederation\xda\x41\x16\x66\x65\x64\x65ration,update_mask\xca\x41\x39\n\nFederation\x12+google.cloud.metastore.v1.OperationMetadata\x12\xed\x01\n\x10\x44\x65leteFederation\x12\x32.google.cloud.metastore.v1.DeleteFederationRequest\x1a\x1d.google.longrunning.Operation\"\x85\x01\x82\xd3\xe4\x93\x02\x31*//v1/{name=projects/*/locations/*/federations/*}\xda\x41\x04name\xca\x41\x44\n\x15google.protobuf.Empty\x12+google.cloud.metastore.v1.OperationMetadata\x1aL\xca\x41\x18metastore.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformBx\n\x1d\x63om.google.cloud.metastore.v1B\x18MetastoreFederationProtoP\x01Z;cloud.google.com/go/metastore/apiv1/metastorepb;metastorepbb\x06proto3"
|
19
19
|
|
20
20
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
21
21
|
|
@@ -16,7 +16,7 @@ require 'google/protobuf/wrappers_pb'
|
|
16
16
|
require 'google/type/dayofweek_pb'
|
17
17
|
|
18
18
|
|
19
|
-
descriptor_data = "\n)google/cloud/metastore/v1/metastore.proto\x12\x19google.cloud.metastore.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1bgoogle/type/dayofweek.proto\"\x93\r\n\x07Service\x12O\n\x15hive_metastore_config\x18\x05 \x01(\x0b\x32..google.cloud.metastore.v1.HiveMetastoreConfigH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12>\n\x06labels\x18\x04 \x03(\x0b\x32..google.cloud.metastore.v1.Service.LabelsEntry\x12\x37\n\x07network\x18\x07 \x01(\tB&\xe0\x41\x05\xfa\x41 \n\x1e\x63ompute.googleapis.com/Network\x12\x19\n\x0c\x65ndpoint_uri\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x0c\n\x04port\x18\t \x01(\x05\x12<\n\x05state\x18\n \x01(\x0e\x32(.google.cloud.metastore.v1.Service.StateB\x03\xe0\x41\x03\x12\x1a\n\rstate_message\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10\x61rtifact_gcs_uri\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x04tier\x18\r \x01(\x0e\x32\'.google.cloud.metastore.v1.Service.Tier\x12H\n\x12maintenance_window\x18\x0f \x01(\x0b\x32,.google.cloud.metastore.v1.MaintenanceWindow\x12\x10\n\x03uid\x18\x10 \x01(\tB\x03\xe0\x41\x03\x12`\n\x1cmetadata_management_activity\x18\x11 \x01(\x0b\x32\x35.google.cloud.metastore.v1.MetadataManagementActivityB\x03\xe0\x41\x03\x12O\n\x0frelease_channel\x18\x13 \x01(\x0e\x32\x31.google.cloud.metastore.v1.Service.ReleaseChannelB\x03\xe0\x41\x05\x12K\n\x11\x65ncryption_config\x18\x14 \x01(\x0b\x32+.google.cloud.metastore.v1.EncryptionConfigB\x03\xe0\x41\x05\x12@\n\x0enetwork_config\x18\x15 \x01(\x0b\x32(.google.cloud.metastore.v1.NetworkConfig\x12K\n\rdatabase_type\x18\x16 \x01(\x0e\x32/.google.cloud.metastore.v1.Service.DatabaseTypeB\x03\xe0\x41\x05\x12\x44\n\x10telemetry_config\x18\x17 \x01(\x0b\x32*.google.cloud.metastore.v1.TelemetryConfig\x12@\n\x0escaling_config\x18\x18 \x01(\x0b\x32(.google.cloud.metastore.v1.ScalingConfig\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"~\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0e\n\nSUSPENDING\x10\x03\x12\r\n\tSUSPENDED\x10\x04\x12\x0c\n\x08UPDATING\x10\x05\x12\x0c\n\x08\x44\x45LETING\x10\x06\x12\t\n\x05\x45RROR\x10\x07\";\n\x04Tier\x12\x14\n\x10TIER_UNSPECIFIED\x10\x00\x12\r\n\tDEVELOPER\x10\x01\x12\x0e\n\nENTERPRISE\x10\x03\"I\n\x0eReleaseChannel\x12\x1f\n\x1bRELEASE_CHANNEL_UNSPECIFIED\x10\x00\x12\n\n\x06\x43\x41NARY\x10\x01\x12\n\n\x06STABLE\x10\x02\"E\n\x0c\x44\x61tabaseType\x12\x1d\n\x19\x44\x41TABASE_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05MYSQL\x10\x01\x12\x0b\n\x07SPANNER\x10\x02:a\xea\x41^\n metastore.googleapis.com/Service\x12:projects/{project}/locations/{location}/services/{service}B\x12\n\x10metastore_config\"r\n\x11MaintenanceWindow\x12\x30\n\x0bhour_of_day\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12+\n\x0b\x64\x61y_of_week\x18\x02 \x01(\x0e\x32\x16.google.type.DayOfWeek\"\xd6\x03\n\x13HiveMetastoreConfig\x12\x14\n\x07version\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12]\n\x10\x63onfig_overrides\x18\x02 \x03(\x0b\x32\x43.google.cloud.metastore.v1.HiveMetastoreConfig.ConfigOverridesEntry\x12\x42\n\x0fkerberos_config\x18\x03 \x01(\x0b\x32).google.cloud.metastore.v1.KerberosConfig\x12\x61\n\x12\x61uxiliary_versions\x18\x05 \x03(\x0b\x32\x45.google.cloud.metastore.v1.HiveMetastoreConfig.AuxiliaryVersionsEntry\x1a\x36\n\x14\x43onfigOverridesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1ak\n\x16\x41uxiliaryVersionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12@\n\x05value\x18\x02 \x01(\x0b\x32\x31.google.cloud.metastore.v1.AuxiliaryVersionConfig:\x02\x38\x01\"s\n\x0eKerberosConfig\x12\x31\n\x06keytab\x18\x01 \x01(\x0b\x32!.google.cloud.metastore.v1.Secret\x12\x11\n\tprincipal\x18\x02 \x01(\t\x12\x1b\n\x13krb5_config_gcs_uri\x18\x03 \x01(\t\")\n\x06Secret\x12\x16\n\x0c\x63loud_secret\x18\x02 \x01(\tH\x00\x42\x07\n\x05value\"#\n\x10\x45ncryptionConfig\x12\x0f\n\x07kms_key\x18\x01 \x01(\t\"\x8a\x02\n\x16\x41uxiliaryVersionConfig\x12\x0f\n\x07version\x18\x01 \x01(\t\x12`\n\x10\x63onfig_overrides\x18\x02 \x03(\x0b\x32\x46.google.cloud.metastore.v1.AuxiliaryVersionConfig.ConfigOverridesEntry\x12\x45\n\x0enetwork_config\x18\x03 \x01(\x0b\x32(.google.cloud.metastore.v1.NetworkConfigB\x03\xe0\x41\x03\x1a\x36\n\x14\x43onfigOverridesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd2\x01\n\rNetworkConfig\x12I\n\tconsumers\x18\x01 \x03(\x0b\x32\x31.google.cloud.metastore.v1.NetworkConfig.ConsumerB\x03\xe0\x41\x05\x1av\n\x08\x43onsumer\x12?\n\nsubnetwork\x18\x01 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!compute.googleapis.com/SubnetworkH\x00\x12\x19\n\x0c\x65ndpoint_uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\x42\x0e\n\x0cvpc_resource\"\x9a\x01\n\x0fTelemetryConfig\x12H\n\nlog_format\x18\x01 \x01(\x0e\x32\x34.google.cloud.metastore.v1.TelemetryConfig.LogFormat\"=\n\tLogFormat\x12\x1a\n\x16LOG_FORMAT_UNSPECIFIED\x10\x00\x12\n\n\x06LEGACY\x10\x01\x12\x08\n\x04JSON\x10\x02\"\xa1\x01\n\x1aMetadataManagementActivity\x12H\n\x10metadata_exports\x18\x01 \x03(\x0b\x32).google.cloud.metastore.v1.MetadataExportB\x03\xe0\x41\x03\x12\x39\n\x08restores\x18\x02 \x03(\x0b\x32\".google.cloud.metastore.v1.RestoreB\x03\xe0\x41\x03\"\xe3\x06\n\x0eMetadataImport\x12T\n\rdatabase_dump\x18\x06 \x01(\x0b\x32\x36.google.cloud.metastore.v1.MetadataImport.DatabaseDumpB\x03\xe0\x41\x05H\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x43\n\x05state\x18\x05 \x01(\x0e\x32/.google.cloud.metastore.v1.MetadataImport.StateB\x03\xe0\x41\x03\x1a\xfe\x01\n\x0c\x44\x61tabaseDump\x12^\n\rdatabase_type\x18\x01 \x01(\x0e\x32\x43.google.cloud.metastore.v1.MetadataImport.DatabaseDump.DatabaseTypeB\x02\x18\x01\x12\x0f\n\x07gcs_uri\x18\x02 \x01(\t\x12\x43\n\x04type\x18\x04 \x01(\x0e\x32\x30.google.cloud.metastore.v1.DatabaseDumpSpec.TypeB\x03\xe0\x41\x01\"8\n\x0c\x44\x61tabaseType\x12\x1d\n\x19\x44\x41TABASE_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05MYSQL\x10\x01\"T\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04:\x8b\x01\xea\x41\x87\x01\n\'metastore.googleapis.com/MetadataImport\x12\\projects/{project}/locations/{location}/services/{service}/metadataImports/{metadata_import}B\n\n\x08metadata\"\x9a\x03\n\x0eMetadataExport\x12\"\n\x13\x64\x65stination_gcs_uri\x18\x04 \x01(\tB\x03\xe0\x41\x03H\x00\x12\x33\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x43\n\x05state\x18\x03 \x01(\x0e\x32/.google.cloud.metastore.v1.MetadataExport.StateB\x03\xe0\x41\x03\x12Q\n\x12\x64\x61tabase_dump_type\x18\x05 \x01(\x0e\x32\x30.google.cloud.metastore.v1.DatabaseDumpSpec.TypeB\x03\xe0\x41\x03\"U\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\r\n\tCANCELLED\x10\x04\x42\r\n\x0b\x64\x65stination\"\x90\x04\n\x06\x42\x61\x63kup\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12;\n\x05state\x18\x04 \x01(\x0e\x32\'.google.cloud.metastore.v1.Backup.StateB\x03\xe0\x41\x03\x12\x41\n\x10service_revision\x18\x05 \x01(\x0b\x32\".google.cloud.metastore.v1.ServiceB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x1f\n\x12restoring_services\x18\x07 \x03(\tB\x03\xe0\x41\x03\"a\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0c\n\x08\x44\x45LETING\x10\x02\x12\n\n\x06\x41\x43TIVE\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\r\n\tRESTORING\x10\x05:q\xea\x41n\n\x1fmetastore.googleapis.com/Backup\x12Kprojects/{project}/locations/{location}/services/{service}/backups/{backup}\"\xe2\x03\n\x07Restore\x12\x33\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12<\n\x05state\x18\x03 \x01(\x0e\x32(.google.cloud.metastore.v1.Restore.StateB\x03\xe0\x41\x03\x12\x37\n\x06\x62\x61\x63kup\x18\x04 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1fmetastore.googleapis.com/Backup\x12\x41\n\x04type\x18\x05 \x01(\x0e\x32..google.cloud.metastore.v1.Restore.RestoreTypeB\x03\xe0\x41\x03\x12\x14\n\x07\x64\x65tails\x18\x06 \x01(\tB\x03\xe0\x41\x03\"U\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\r\n\tCANCELLED\x10\x04\"H\n\x0bRestoreType\x12\x1c\n\x18RESTORE_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46ULL\x10\x01\x12\x11\n\rMETADATA_ONLY\x10\x02\"\xfd\x01\n\rScalingConfig\x12N\n\rinstance_size\x18\x01 \x01(\x0e\x32\x35.google.cloud.metastore.v1.ScalingConfig.InstanceSizeH\x00\x12\x18\n\x0escaling_factor\x18\x02 \x01(\x02H\x00\"q\n\x0cInstanceSize\x12\x1d\n\x19INSTANCE_SIZE_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x45XTRA_SMALL\x10\x01\x12\t\n\x05SMALL\x10\x02\x12\n\n\x06MEDIUM\x10\x03\x12\t\n\x05LARGE\x10\x04\x12\x0f\n\x0b\x45XTRA_LARGE\x10\x05\x42\x0f\n\rscaling_model\"\xac\x01\n\x13ListServicesRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 metastore.googleapis.com/Service\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"z\n\x14ListServicesResponse\x12\x34\n\x08services\x18\x01 \x03(\x0b\x32\".google.cloud.metastore.v1.Service\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"K\n\x11GetServiceRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n metastore.googleapis.com/Service\"\xbc\x01\n\x14\x43reateServiceRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 metastore.googleapis.com/Service\x12\x17\n\nservice_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x38\n\x07service\x18\x03 \x01(\x0b\x32\".google.cloud.metastore.v1.ServiceB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x9f\x01\n\x14UpdateServiceRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x38\n\x07service\x18\x02 \x01(\x0b\x32\".google.cloud.metastore.v1.ServiceB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"g\n\x14\x44\x65leteServiceRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n metastore.googleapis.com/Service\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xba\x01\n\x1aListMetadataImportsRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'metastore.googleapis.com/MetadataImport\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x90\x01\n\x1bListMetadataImportsResponse\x12\x43\n\x10metadata_imports\x18\x01 \x03(\x0b\x32).google.cloud.metastore.v1.MetadataImport\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"Y\n\x18GetMetadataImportRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'metastore.googleapis.com/MetadataImport\"\xe1\x01\n\x1b\x43reateMetadataImportRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'metastore.googleapis.com/MetadataImport\x12\x1f\n\x12metadata_import_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12G\n\x0fmetadata_import\x18\x03 \x01(\x0b\x32).google.cloud.metastore.v1.MetadataImportB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xb5\x01\n\x1bUpdateMetadataImportRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12G\n\x0fmetadata_import\x18\x02 \x01(\x0b\x32).google.cloud.metastore.v1.MetadataImportB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xaa\x01\n\x12ListBackupsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1fmetastore.googleapis.com/Backup\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"w\n\x13ListBackupsResponse\x12\x32\n\x07\x62\x61\x63kups\x18\x01 \x03(\x0b\x32!.google.cloud.metastore.v1.Backup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"I\n\x10GetBackupRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fmetastore.googleapis.com/Backup\"\xb7\x01\n\x13\x43reateBackupRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1fmetastore.googleapis.com/Backup\x12\x16\n\tbackup_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x36\n\x06\x62\x61\x63kup\x18\x03 \x01(\x0b\x32!.google.cloud.metastore.v1.BackupB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"e\n\x13\x44\x65leteBackupRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fmetastore.googleapis.com/Backup\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xef\x01\n\x15\x45xportMetadataRequest\x12 \n\x16\x64\x65stination_gcs_folder\x18\x02 \x01(\tH\x00\x12\x39\n\x07service\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n metastore.googleapis.com/Service\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12Q\n\x12\x64\x61tabase_dump_type\x18\x04 \x01(\x0e\x32\x30.google.cloud.metastore.v1.DatabaseDumpSpec.TypeB\x03\xe0\x41\x01\x42\r\n\x0b\x64\x65stination\"\xef\x01\n\x15RestoreServiceRequest\x12\x39\n\x07service\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n metastore.googleapis.com/Service\x12\x37\n\x06\x62\x61\x63kup\x18\x02 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fmetastore.googleapis.com/Backup\x12I\n\x0crestore_type\x18\x03 \x01(\x0e\x32..google.cloud.metastore.v1.Restore.RestoreTypeB\x03\xe0\x41\x01\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\"\xbc\x01\n\x10LocationMetadata\x12k\n!supported_hive_metastore_versions\x18\x01 \x03(\x0b\x32@.google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion\x1a;\n\x14HiveMetastoreVersion\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x12\n\nis_default\x18\x02 \x01(\x08\"E\n\x10\x44\x61tabaseDumpSpec\"1\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05MYSQL\x10\x01\x12\x08\n\x04\x41VRO\x10\x02\x32\xbc\x1b\n\x11\x44\x61taprocMetastore\x12\xae\x01\n\x0cListServices\x12..google.cloud.metastore.v1.ListServicesRequest\x1a/.google.cloud.metastore.v1.ListServicesResponse\"=\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/services\xda\x41\x06parent\x12\x9b\x01\n\nGetService\x12,.google.cloud.metastore.v1.GetServiceRequest\x1a\".google.cloud.metastore.v1.Service\";\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/services/*}\xda\x41\x04name\x12\xf4\x01\n\rCreateService\x12/.google.cloud.metastore.v1.CreateServiceRequest\x1a\x1d.google.longrunning.Operation\"\x92\x01\x82\xd3\xe4\x93\x02\x37\",/v1/{parent=projects/*/locations/*}/services:\x07service\xda\x41\x19parent,service,service_id\xca\x41\x36\n\x07Service\x12+google.cloud.metastore.v1.OperationMetadata\x12\xf6\x01\n\rUpdateService\x12/.google.cloud.metastore.v1.UpdateServiceRequest\x1a\x1d.google.longrunning.Operation\"\x94\x01\x82\xd3\xe4\x93\x02?24/v1/{service.name=projects/*/locations/*/services/*}:\x07service\xda\x41\x13service,update_mask\xca\x41\x36\n\x07Service\x12+google.cloud.metastore.v1.OperationMetadata\x12\xe4\x01\n\rDeleteService\x12/.google.cloud.metastore.v1.DeleteServiceRequest\x1a\x1d.google.longrunning.Operation\"\x82\x01\x82\xd3\xe4\x93\x02.*,/v1/{name=projects/*/locations/*/services/*}\xda\x41\x04name\xca\x41\x44\n\x15google.protobuf.Empty\x12+google.cloud.metastore.v1.OperationMetadata\x12\xd5\x01\n\x13ListMetadataImports\x12\x35.google.cloud.metastore.v1.ListMetadataImportsRequest\x1a\x36.google.cloud.metastore.v1.ListMetadataImportsResponse\"O\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/services/*}/metadataImports\xda\x41\x06parent\x12\xc2\x01\n\x11GetMetadataImport\x12\x33.google.cloud.metastore.v1.GetMetadataImportRequest\x1a).google.cloud.metastore.v1.MetadataImport\"M\x82\xd3\xe4\x93\x02@\x12>/v1/{name=projects/*/locations/*/services/*/metadataImports/*}\xda\x41\x04name\x12\xb3\x02\n\x14\x43reateMetadataImport\x12\x36.google.cloud.metastore.v1.CreateMetadataImportRequest\x1a\x1d.google.longrunning.Operation\"\xc3\x01\x82\xd3\xe4\x93\x02Q\">/v1/{parent=projects/*/locations/*/services/*}/metadataImports:\x0fmetadata_import\xda\x41)parent,metadata_import,metadata_import_id\xca\x41=\n\x0eMetadataImport\x12+google.cloud.metastore.v1.OperationMetadata\x12\xb5\x02\n\x14UpdateMetadataImport\x12\x36.google.cloud.metastore.v1.UpdateMetadataImportRequest\x1a\x1d.google.longrunning.Operation\"\xc5\x01\x82\xd3\xe4\x93\x02\x61\x32N/v1/{metadata_import.name=projects/*/locations/*/services/*/metadataImports/*}:\x0fmetadata_import\xda\x41\x1bmetadata_import,update_mask\xca\x41=\n\x0eMetadataImport\x12+google.cloud.metastore.v1.OperationMetadata\x12\xed\x01\n\x0e\x45xportMetadata\x12\x30.google.cloud.metastore.v1.ExportMetadataRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\x82\xd3\xe4\x93\x02\x43\">/v1/{service=projects/*/locations/*/services/*}:exportMetadata:\x01*\xca\x41=\n\x0eMetadataExport\x12+google.cloud.metastore.v1.OperationMetadata\x12\xf0\x01\n\x0eRestoreService\x12\x30.google.cloud.metastore.v1.RestoreServiceRequest\x1a\x1d.google.longrunning.Operation\"\x8c\x01\x82\xd3\xe4\x93\x02<\"7/v1/{service=projects/*/locations/*/services/*}:restore:\x01*\xda\x41\x0eservice,backup\xca\x41\x36\n\x07Restore\x12+google.cloud.metastore.v1.OperationMetadata\x12\xb5\x01\n\x0bListBackups\x12-.google.cloud.metastore.v1.ListBackupsRequest\x1a..google.cloud.metastore.v1.ListBackupsResponse\"G\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{parent=projects/*/locations/*/services/*}/backups\xda\x41\x06parent\x12\xa2\x01\n\tGetBackup\x12+.google.cloud.metastore.v1.GetBackupRequest\x1a!.google.cloud.metastore.v1.Backup\"E\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{name=projects/*/locations/*/services/*/backups/*}\xda\x41\x04name\x12\xf8\x01\n\x0c\x43reateBackup\x12..google.cloud.metastore.v1.CreateBackupRequest\x1a\x1d.google.longrunning.Operation\"\x98\x01\x82\xd3\xe4\x93\x02@\"6/v1/{parent=projects/*/locations/*/services/*}/backups:\x06\x62\x61\x63kup\xda\x41\x17parent,backup,backup_id\xca\x41\x35\n\x06\x42\x61\x63kup\x12+google.cloud.metastore.v1.OperationMetadata\x12\xec\x01\n\x0c\x44\x65leteBackup\x12..google.cloud.metastore.v1.DeleteBackupRequest\x1a\x1d.google.longrunning.Operation\"\x8c\x01\x82\xd3\xe4\x93\x02\x38*6/v1/{name=projects/*/locations/*/services/*/backups/*}\xda\x41\x04name\xca\x41\x44\n\x15google.protobuf.Empty\x12+google.cloud.metastore.v1.OperationMetadata\x1aL\xca\x41\x18metastore.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x96\x03\n\x1d\x63om.google.cloud.metastore.v1B\x0eMetastoreProtoP\x01Z;cloud.google.com/go/metastore/apiv1/metastorepb;metastorepb\xca\x02\x19Google\\Cloud\\Metastore\\V1\xea\x41N\n\x1e\x63ompute.googleapis.com/Network\x12,projects/{project}/global/networks/{network}\xea\x41\x61\n!compute.googleapis.com/Subnetwork\x12<projects/{project}/regions/{region}/subnetworks/{subnetwork}\xea\x41T\n\x1c\x64\x61taplex.googleapis.com/Lake\x12\x34projects/{project}/locations/{location}/lakes/{lake}b\x06proto3"
|
19
|
+
descriptor_data = "\n)google/cloud/metastore/v1/metastore.proto\x12\x19google.cloud.metastore.v1\x1a\x1cgoogle/api/annotations.proto\x1a\x17google/api/client.proto\x1a\x1fgoogle/api/field_behavior.proto\x1a\x19google/api/resource.proto\x1a#google/longrunning/operations.proto\x1a\x1bgoogle/protobuf/empty.proto\x1a google/protobuf/field_mask.proto\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1egoogle/protobuf/wrappers.proto\x1a\x1bgoogle/type/dayofweek.proto\"\x93\r\n\x07Service\x12O\n\x15hive_metastore_config\x18\x05 \x01(\x0b\x32..google.cloud.metastore.v1.HiveMetastoreConfigH\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12>\n\x06labels\x18\x04 \x03(\x0b\x32..google.cloud.metastore.v1.Service.LabelsEntry\x12\x37\n\x07network\x18\x07 \x01(\tB&\xe0\x41\x05\xfa\x41 \n\x1e\x63ompute.googleapis.com/Network\x12\x19\n\x0c\x65ndpoint_uri\x18\x08 \x01(\tB\x03\xe0\x41\x03\x12\x0c\n\x04port\x18\t \x01(\x05\x12<\n\x05state\x18\n \x01(\x0e\x32(.google.cloud.metastore.v1.Service.StateB\x03\xe0\x41\x03\x12\x1a\n\rstate_message\x18\x0b \x01(\tB\x03\xe0\x41\x03\x12\x1d\n\x10\x61rtifact_gcs_uri\x18\x0c \x01(\tB\x03\xe0\x41\x03\x12\x35\n\x04tier\x18\r \x01(\x0e\x32\'.google.cloud.metastore.v1.Service.Tier\x12H\n\x12maintenance_window\x18\x0f \x01(\x0b\x32,.google.cloud.metastore.v1.MaintenanceWindow\x12\x10\n\x03uid\x18\x10 \x01(\tB\x03\xe0\x41\x03\x12`\n\x1cmetadata_management_activity\x18\x11 \x01(\x0b\x32\x35.google.cloud.metastore.v1.MetadataManagementActivityB\x03\xe0\x41\x03\x12O\n\x0frelease_channel\x18\x13 \x01(\x0e\x32\x31.google.cloud.metastore.v1.Service.ReleaseChannelB\x03\xe0\x41\x05\x12K\n\x11\x65ncryption_config\x18\x14 \x01(\x0b\x32+.google.cloud.metastore.v1.EncryptionConfigB\x03\xe0\x41\x05\x12@\n\x0enetwork_config\x18\x15 \x01(\x0b\x32(.google.cloud.metastore.v1.NetworkConfig\x12K\n\rdatabase_type\x18\x16 \x01(\x0e\x32/.google.cloud.metastore.v1.Service.DatabaseTypeB\x03\xe0\x41\x05\x12\x44\n\x10telemetry_config\x18\x17 \x01(\x0b\x32*.google.cloud.metastore.v1.TelemetryConfig\x12@\n\x0escaling_config\x18\x18 \x01(\x0b\x32(.google.cloud.metastore.v1.ScalingConfig\x1a-\n\x0bLabelsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"~\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\n\n\x06\x41\x43TIVE\x10\x02\x12\x0e\n\nSUSPENDING\x10\x03\x12\r\n\tSUSPENDED\x10\x04\x12\x0c\n\x08UPDATING\x10\x05\x12\x0c\n\x08\x44\x45LETING\x10\x06\x12\t\n\x05\x45RROR\x10\x07\";\n\x04Tier\x12\x14\n\x10TIER_UNSPECIFIED\x10\x00\x12\r\n\tDEVELOPER\x10\x01\x12\x0e\n\nENTERPRISE\x10\x03\"I\n\x0eReleaseChannel\x12\x1f\n\x1bRELEASE_CHANNEL_UNSPECIFIED\x10\x00\x12\n\n\x06\x43\x41NARY\x10\x01\x12\n\n\x06STABLE\x10\x02\"E\n\x0c\x44\x61tabaseType\x12\x1d\n\x19\x44\x41TABASE_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05MYSQL\x10\x01\x12\x0b\n\x07SPANNER\x10\x02:a\xea\x41^\n metastore.googleapis.com/Service\x12:projects/{project}/locations/{location}/services/{service}B\x12\n\x10metastore_config\"r\n\x11MaintenanceWindow\x12\x30\n\x0bhour_of_day\x18\x01 \x01(\x0b\x32\x1b.google.protobuf.Int32Value\x12+\n\x0b\x64\x61y_of_week\x18\x02 \x01(\x0e\x32\x16.google.type.DayOfWeek\"\xff\x04\n\x13HiveMetastoreConfig\x12\x14\n\x07version\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12]\n\x10\x63onfig_overrides\x18\x02 \x03(\x0b\x32\x43.google.cloud.metastore.v1.HiveMetastoreConfig.ConfigOverridesEntry\x12\x42\n\x0fkerberos_config\x18\x03 \x01(\x0b\x32).google.cloud.metastore.v1.KerberosConfig\x12Z\n\x11\x65ndpoint_protocol\x18\x04 \x01(\x0e\x32?.google.cloud.metastore.v1.HiveMetastoreConfig.EndpointProtocol\x12\x61\n\x12\x61uxiliary_versions\x18\x05 \x03(\x0b\x32\x45.google.cloud.metastore.v1.HiveMetastoreConfig.AuxiliaryVersionsEntry\x1a\x36\n\x14\x43onfigOverridesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\x1ak\n\x16\x41uxiliaryVersionsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12@\n\x05value\x18\x02 \x01(\x0b\x32\x31.google.cloud.metastore.v1.AuxiliaryVersionConfig:\x02\x38\x01\"K\n\x10\x45ndpointProtocol\x12!\n\x1d\x45NDPOINT_PROTOCOL_UNSPECIFIED\x10\x00\x12\n\n\x06THRIFT\x10\x01\x12\x08\n\x04GRPC\x10\x02\"s\n\x0eKerberosConfig\x12\x31\n\x06keytab\x18\x01 \x01(\x0b\x32!.google.cloud.metastore.v1.Secret\x12\x11\n\tprincipal\x18\x02 \x01(\t\x12\x1b\n\x13krb5_config_gcs_uri\x18\x03 \x01(\t\")\n\x06Secret\x12\x16\n\x0c\x63loud_secret\x18\x02 \x01(\tH\x00\x42\x07\n\x05value\"#\n\x10\x45ncryptionConfig\x12\x0f\n\x07kms_key\x18\x01 \x01(\t\"\x8a\x02\n\x16\x41uxiliaryVersionConfig\x12\x0f\n\x07version\x18\x01 \x01(\t\x12`\n\x10\x63onfig_overrides\x18\x02 \x03(\x0b\x32\x46.google.cloud.metastore.v1.AuxiliaryVersionConfig.ConfigOverridesEntry\x12\x45\n\x0enetwork_config\x18\x03 \x01(\x0b\x32(.google.cloud.metastore.v1.NetworkConfigB\x03\xe0\x41\x03\x1a\x36\n\x14\x43onfigOverridesEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xd2\x01\n\rNetworkConfig\x12I\n\tconsumers\x18\x01 \x03(\x0b\x32\x31.google.cloud.metastore.v1.NetworkConfig.ConsumerB\x03\xe0\x41\x05\x1av\n\x08\x43onsumer\x12?\n\nsubnetwork\x18\x01 \x01(\tB)\xe0\x41\x05\xfa\x41#\n!compute.googleapis.com/SubnetworkH\x00\x12\x19\n\x0c\x65ndpoint_uri\x18\x03 \x01(\tB\x03\xe0\x41\x03\x42\x0e\n\x0cvpc_resource\"\x9a\x01\n\x0fTelemetryConfig\x12H\n\nlog_format\x18\x01 \x01(\x0e\x32\x34.google.cloud.metastore.v1.TelemetryConfig.LogFormat\"=\n\tLogFormat\x12\x1a\n\x16LOG_FORMAT_UNSPECIFIED\x10\x00\x12\n\n\x06LEGACY\x10\x01\x12\x08\n\x04JSON\x10\x02\"\xa1\x01\n\x1aMetadataManagementActivity\x12H\n\x10metadata_exports\x18\x01 \x03(\x0b\x32).google.cloud.metastore.v1.MetadataExportB\x03\xe0\x41\x03\x12\x39\n\x08restores\x18\x02 \x03(\x0b\x32\".google.cloud.metastore.v1.RestoreB\x03\xe0\x41\x03\"\x80\x07\n\x0eMetadataImport\x12T\n\rdatabase_dump\x18\x06 \x01(\x0b\x32\x36.google.cloud.metastore.v1.MetadataImport.DatabaseDumpB\x03\xe0\x41\x05H\x00\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x13\n\x0b\x64\x65scription\x18\x02 \x01(\t\x12\x34\n\x0b\x63reate_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x34\n\x0bupdate_time\x18\x04 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x07 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x43\n\x05state\x18\x05 \x01(\x0e\x32/.google.cloud.metastore.v1.MetadataImport.StateB\x03\xe0\x41\x03\x1a\x9b\x02\n\x0c\x44\x61tabaseDump\x12^\n\rdatabase_type\x18\x01 \x01(\x0e\x32\x43.google.cloud.metastore.v1.MetadataImport.DatabaseDump.DatabaseTypeB\x02\x18\x01\x12\x0f\n\x07gcs_uri\x18\x02 \x01(\t\x12\x1b\n\x0fsource_database\x18\x03 \x01(\tB\x02\x18\x01\x12\x43\n\x04type\x18\x04 \x01(\x0e\x32\x30.google.cloud.metastore.v1.DatabaseDumpSpec.TypeB\x03\xe0\x41\x01\"8\n\x0c\x44\x61tabaseType\x12\x1d\n\x19\x44\x41TABASE_TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05MYSQL\x10\x01\"T\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\x0c\n\x08UPDATING\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04:\x8b\x01\xea\x41\x87\x01\n\'metastore.googleapis.com/MetadataImport\x12\\projects/{project}/locations/{location}/services/{service}/metadataImports/{metadata_import}B\n\n\x08metadata\"\x9a\x03\n\x0eMetadataExport\x12\"\n\x13\x64\x65stination_gcs_uri\x18\x04 \x01(\tB\x03\xe0\x41\x03H\x00\x12\x33\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x43\n\x05state\x18\x03 \x01(\x0e\x32/.google.cloud.metastore.v1.MetadataExport.StateB\x03\xe0\x41\x03\x12Q\n\x12\x64\x61tabase_dump_type\x18\x05 \x01(\x0e\x32\x30.google.cloud.metastore.v1.DatabaseDumpSpec.TypeB\x03\xe0\x41\x03\"U\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\r\n\tCANCELLED\x10\x04\x42\r\n\x0b\x64\x65stination\"\x90\x04\n\x06\x42\x61\x63kup\x12\x11\n\x04name\x18\x01 \x01(\tB\x03\xe0\x41\x05\x12\x34\n\x0b\x63reate_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x03 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12;\n\x05state\x18\x04 \x01(\x0e\x32\'.google.cloud.metastore.v1.Backup.StateB\x03\xe0\x41\x03\x12\x41\n\x10service_revision\x18\x05 \x01(\x0b\x32\".google.cloud.metastore.v1.ServiceB\x03\xe0\x41\x03\x12\x13\n\x0b\x64\x65scription\x18\x06 \x01(\t\x12\x1f\n\x12restoring_services\x18\x07 \x03(\tB\x03\xe0\x41\x03\"a\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0c\n\x08\x43REATING\x10\x01\x12\x0c\n\x08\x44\x45LETING\x10\x02\x12\n\n\x06\x41\x43TIVE\x10\x03\x12\n\n\x06\x46\x41ILED\x10\x04\x12\r\n\tRESTORING\x10\x05:q\xea\x41n\n\x1fmetastore.googleapis.com/Backup\x12Kprojects/{project}/locations/{location}/services/{service}/backups/{backup}\"\xe2\x03\n\x07Restore\x12\x33\n\nstart_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12<\n\x05state\x18\x03 \x01(\x0e\x32(.google.cloud.metastore.v1.Restore.StateB\x03\xe0\x41\x03\x12\x37\n\x06\x62\x61\x63kup\x18\x04 \x01(\tB\'\xe0\x41\x03\xfa\x41!\n\x1fmetastore.googleapis.com/Backup\x12\x41\n\x04type\x18\x05 \x01(\x0e\x32..google.cloud.metastore.v1.Restore.RestoreTypeB\x03\xe0\x41\x03\x12\x14\n\x07\x64\x65tails\x18\x06 \x01(\tB\x03\xe0\x41\x03\"U\n\x05State\x12\x15\n\x11STATE_UNSPECIFIED\x10\x00\x12\x0b\n\x07RUNNING\x10\x01\x12\r\n\tSUCCEEDED\x10\x02\x12\n\n\x06\x46\x41ILED\x10\x03\x12\r\n\tCANCELLED\x10\x04\"H\n\x0bRestoreType\x12\x1c\n\x18RESTORE_TYPE_UNSPECIFIED\x10\x00\x12\x08\n\x04\x46ULL\x10\x01\x12\x11\n\rMETADATA_ONLY\x10\x02\"\xfd\x01\n\rScalingConfig\x12N\n\rinstance_size\x18\x01 \x01(\x0e\x32\x35.google.cloud.metastore.v1.ScalingConfig.InstanceSizeH\x00\x12\x18\n\x0escaling_factor\x18\x02 \x01(\x02H\x00\"q\n\x0cInstanceSize\x12\x1d\n\x19INSTANCE_SIZE_UNSPECIFIED\x10\x00\x12\x0f\n\x0b\x45XTRA_SMALL\x10\x01\x12\t\n\x05SMALL\x10\x02\x12\n\n\x06MEDIUM\x10\x03\x12\t\n\x05LARGE\x10\x04\x12\x0f\n\x0b\x45XTRA_LARGE\x10\x05\x42\x0f\n\rscaling_model\"\xac\x01\n\x13ListServicesRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 metastore.googleapis.com/Service\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"z\n\x14ListServicesResponse\x12\x34\n\x08services\x18\x01 \x03(\x0b\x32\".google.cloud.metastore.v1.Service\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"K\n\x11GetServiceRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n metastore.googleapis.com/Service\"\xbc\x01\n\x14\x43reateServiceRequest\x12\x38\n\x06parent\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\x12 metastore.googleapis.com/Service\x12\x17\n\nservice_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x38\n\x07service\x18\x03 \x01(\x0b\x32\".google.cloud.metastore.v1.ServiceB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x9f\x01\n\x14UpdateServiceRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12\x38\n\x07service\x18\x02 \x01(\x0b\x32\".google.cloud.metastore.v1.ServiceB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"g\n\x14\x44\x65leteServiceRequest\x12\x36\n\x04name\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n metastore.googleapis.com/Service\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xba\x01\n\x1aListMetadataImportsRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'metastore.googleapis.com/MetadataImport\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"\x90\x01\n\x1bListMetadataImportsResponse\x12\x43\n\x10metadata_imports\x18\x01 \x03(\x0b\x32).google.cloud.metastore.v1.MetadataImport\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"Y\n\x18GetMetadataImportRequest\x12=\n\x04name\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\n\'metastore.googleapis.com/MetadataImport\"\xe1\x01\n\x1b\x43reateMetadataImportRequest\x12?\n\x06parent\x18\x01 \x01(\tB/\xe0\x41\x02\xfa\x41)\x12\'metastore.googleapis.com/MetadataImport\x12\x1f\n\x12metadata_import_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12G\n\x0fmetadata_import\x18\x03 \x01(\x0b\x32).google.cloud.metastore.v1.MetadataImportB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\xb5\x01\n\x1bUpdateMetadataImportRequest\x12\x34\n\x0bupdate_mask\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.FieldMaskB\x03\xe0\x41\x02\x12G\n\x0fmetadata_import\x18\x02 \x01(\x0b\x32).google.cloud.metastore.v1.MetadataImportB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\"\xaa\x01\n\x12ListBackupsRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1fmetastore.googleapis.com/Backup\x12\x16\n\tpage_size\x18\x02 \x01(\x05\x42\x03\xe0\x41\x01\x12\x17\n\npage_token\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12\x13\n\x06\x66ilter\x18\x04 \x01(\tB\x03\xe0\x41\x01\x12\x15\n\x08order_by\x18\x05 \x01(\tB\x03\xe0\x41\x01\"w\n\x13ListBackupsResponse\x12\x32\n\x07\x62\x61\x63kups\x18\x01 \x03(\x0b\x32!.google.cloud.metastore.v1.Backup\x12\x17\n\x0fnext_page_token\x18\x02 \x01(\t\x12\x13\n\x0bunreachable\x18\x03 \x03(\t\"I\n\x10GetBackupRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fmetastore.googleapis.com/Backup\"\xb7\x01\n\x13\x43reateBackupRequest\x12\x37\n\x06parent\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\x12\x1fmetastore.googleapis.com/Backup\x12\x16\n\tbackup_id\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x36\n\x06\x62\x61\x63kup\x18\x03 \x01(\x0b\x32!.google.cloud.metastore.v1.BackupB\x03\xe0\x41\x02\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"e\n\x13\x44\x65leteBackupRequest\x12\x35\n\x04name\x18\x01 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fmetastore.googleapis.com/Backup\x12\x17\n\nrequest_id\x18\x02 \x01(\tB\x03\xe0\x41\x01\"\xef\x01\n\x15\x45xportMetadataRequest\x12 \n\x16\x64\x65stination_gcs_folder\x18\x02 \x01(\tH\x00\x12\x39\n\x07service\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n metastore.googleapis.com/Service\x12\x17\n\nrequest_id\x18\x03 \x01(\tB\x03\xe0\x41\x01\x12Q\n\x12\x64\x61tabase_dump_type\x18\x04 \x01(\x0e\x32\x30.google.cloud.metastore.v1.DatabaseDumpSpec.TypeB\x03\xe0\x41\x01\x42\r\n\x0b\x64\x65stination\"\xef\x01\n\x15RestoreServiceRequest\x12\x39\n\x07service\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n metastore.googleapis.com/Service\x12\x37\n\x06\x62\x61\x63kup\x18\x02 \x01(\tB\'\xe0\x41\x02\xfa\x41!\n\x1fmetastore.googleapis.com/Backup\x12I\n\x0crestore_type\x18\x03 \x01(\x0e\x32..google.cloud.metastore.v1.Restore.RestoreTypeB\x03\xe0\x41\x01\x12\x17\n\nrequest_id\x18\x04 \x01(\tB\x03\xe0\x41\x01\"\x80\x02\n\x11OperationMetadata\x12\x34\n\x0b\x63reate_time\x18\x01 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x31\n\x08\x65nd_time\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.TimestampB\x03\xe0\x41\x03\x12\x13\n\x06target\x18\x03 \x01(\tB\x03\xe0\x41\x03\x12\x11\n\x04verb\x18\x04 \x01(\tB\x03\xe0\x41\x03\x12\x1b\n\x0estatus_message\x18\x05 \x01(\tB\x03\xe0\x41\x03\x12#\n\x16requested_cancellation\x18\x06 \x01(\x08\x42\x03\xe0\x41\x03\x12\x18\n\x0b\x61pi_version\x18\x07 \x01(\tB\x03\xe0\x41\x03\"\xbc\x01\n\x10LocationMetadata\x12k\n!supported_hive_metastore_versions\x18\x01 \x03(\x0b\x32@.google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion\x1a;\n\x14HiveMetastoreVersion\x12\x0f\n\x07version\x18\x01 \x01(\t\x12\x12\n\nis_default\x18\x02 \x01(\x08\"E\n\x10\x44\x61tabaseDumpSpec\"1\n\x04Type\x12\x14\n\x10TYPE_UNSPECIFIED\x10\x00\x12\t\n\x05MYSQL\x10\x01\x12\x08\n\x04\x41VRO\x10\x02\"e\n\x14QueryMetadataRequest\x12\x39\n\x07service\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n metastore.googleapis.com/Service\x12\x12\n\x05query\x18\x02 \x01(\tB\x03\xe0\x41\x02\"4\n\x15QueryMetadataResponse\x12\x1b\n\x13result_manifest_uri\x18\x01 \x01(\t\"\x85\x01\n\x0c\x45rrorDetails\x12\x45\n\x07\x64\x65tails\x18\x01 \x03(\x0b\x32\x34.google.cloud.metastore.v1.ErrorDetails.DetailsEntry\x1a.\n\x0c\x44\x65tailsEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\t:\x02\x38\x01\"\xa8\x01\n\x1aMoveTableToDatabaseRequest\x12\x39\n\x07service\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n metastore.googleapis.com/Service\x12\x17\n\ntable_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x14\n\x07\x64\x62_name\x18\x03 \x01(\tB\x03\xe0\x41\x02\x12 \n\x13\x64\x65stination_db_name\x18\x04 \x01(\tB\x03\xe0\x41\x02\"\x1d\n\x1bMoveTableToDatabaseResponse\"\x98\x01\n$AlterMetadataResourceLocationRequest\x12\x39\n\x07service\x18\x01 \x01(\tB(\xe0\x41\x02\xfa\x41\"\n metastore.googleapis.com/Service\x12\x1a\n\rresource_name\x18\x02 \x01(\tB\x03\xe0\x41\x02\x12\x19\n\x0clocation_uri\x18\x03 \x01(\tB\x03\xe0\x41\x02\"\'\n%AlterMetadataResourceLocationResponse2\xe0!\n\x11\x44\x61taprocMetastore\x12\xae\x01\n\x0cListServices\x12..google.cloud.metastore.v1.ListServicesRequest\x1a/.google.cloud.metastore.v1.ListServicesResponse\"=\x82\xd3\xe4\x93\x02.\x12,/v1/{parent=projects/*/locations/*}/services\xda\x41\x06parent\x12\x9b\x01\n\nGetService\x12,.google.cloud.metastore.v1.GetServiceRequest\x1a\".google.cloud.metastore.v1.Service\";\x82\xd3\xe4\x93\x02.\x12,/v1/{name=projects/*/locations/*/services/*}\xda\x41\x04name\x12\xf4\x01\n\rCreateService\x12/.google.cloud.metastore.v1.CreateServiceRequest\x1a\x1d.google.longrunning.Operation\"\x92\x01\x82\xd3\xe4\x93\x02\x37\",/v1/{parent=projects/*/locations/*}/services:\x07service\xda\x41\x19parent,service,service_id\xca\x41\x36\n\x07Service\x12+google.cloud.metastore.v1.OperationMetadata\x12\xf6\x01\n\rUpdateService\x12/.google.cloud.metastore.v1.UpdateServiceRequest\x1a\x1d.google.longrunning.Operation\"\x94\x01\x82\xd3\xe4\x93\x02?24/v1/{service.name=projects/*/locations/*/services/*}:\x07service\xda\x41\x13service,update_mask\xca\x41\x36\n\x07Service\x12+google.cloud.metastore.v1.OperationMetadata\x12\xe4\x01\n\rDeleteService\x12/.google.cloud.metastore.v1.DeleteServiceRequest\x1a\x1d.google.longrunning.Operation\"\x82\x01\x82\xd3\xe4\x93\x02.*,/v1/{name=projects/*/locations/*/services/*}\xda\x41\x04name\xca\x41\x44\n\x15google.protobuf.Empty\x12+google.cloud.metastore.v1.OperationMetadata\x12\xd5\x01\n\x13ListMetadataImports\x12\x35.google.cloud.metastore.v1.ListMetadataImportsRequest\x1a\x36.google.cloud.metastore.v1.ListMetadataImportsResponse\"O\x82\xd3\xe4\x93\x02@\x12>/v1/{parent=projects/*/locations/*/services/*}/metadataImports\xda\x41\x06parent\x12\xc2\x01\n\x11GetMetadataImport\x12\x33.google.cloud.metastore.v1.GetMetadataImportRequest\x1a).google.cloud.metastore.v1.MetadataImport\"M\x82\xd3\xe4\x93\x02@\x12>/v1/{name=projects/*/locations/*/services/*/metadataImports/*}\xda\x41\x04name\x12\xb3\x02\n\x14\x43reateMetadataImport\x12\x36.google.cloud.metastore.v1.CreateMetadataImportRequest\x1a\x1d.google.longrunning.Operation\"\xc3\x01\x82\xd3\xe4\x93\x02Q\">/v1/{parent=projects/*/locations/*/services/*}/metadataImports:\x0fmetadata_import\xda\x41)parent,metadata_import,metadata_import_id\xca\x41=\n\x0eMetadataImport\x12+google.cloud.metastore.v1.OperationMetadata\x12\xb5\x02\n\x14UpdateMetadataImport\x12\x36.google.cloud.metastore.v1.UpdateMetadataImportRequest\x1a\x1d.google.longrunning.Operation\"\xc5\x01\x82\xd3\xe4\x93\x02\x61\x32N/v1/{metadata_import.name=projects/*/locations/*/services/*/metadataImports/*}:\x0fmetadata_import\xda\x41\x1bmetadata_import,update_mask\xca\x41=\n\x0eMetadataImport\x12+google.cloud.metastore.v1.OperationMetadata\x12\xed\x01\n\x0e\x45xportMetadata\x12\x30.google.cloud.metastore.v1.ExportMetadataRequest\x1a\x1d.google.longrunning.Operation\"\x89\x01\x82\xd3\xe4\x93\x02\x43\">/v1/{service=projects/*/locations/*/services/*}:exportMetadata:\x01*\xca\x41=\n\x0eMetadataExport\x12+google.cloud.metastore.v1.OperationMetadata\x12\xf0\x01\n\x0eRestoreService\x12\x30.google.cloud.metastore.v1.RestoreServiceRequest\x1a\x1d.google.longrunning.Operation\"\x8c\x01\x82\xd3\xe4\x93\x02<\"7/v1/{service=projects/*/locations/*/services/*}:restore:\x01*\xda\x41\x0eservice,backup\xca\x41\x36\n\x07Restore\x12+google.cloud.metastore.v1.OperationMetadata\x12\xb5\x01\n\x0bListBackups\x12-.google.cloud.metastore.v1.ListBackupsRequest\x1a..google.cloud.metastore.v1.ListBackupsResponse\"G\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{parent=projects/*/locations/*/services/*}/backups\xda\x41\x06parent\x12\xa2\x01\n\tGetBackup\x12+.google.cloud.metastore.v1.GetBackupRequest\x1a!.google.cloud.metastore.v1.Backup\"E\x82\xd3\xe4\x93\x02\x38\x12\x36/v1/{name=projects/*/locations/*/services/*/backups/*}\xda\x41\x04name\x12\xf8\x01\n\x0c\x43reateBackup\x12..google.cloud.metastore.v1.CreateBackupRequest\x1a\x1d.google.longrunning.Operation\"\x98\x01\x82\xd3\xe4\x93\x02@\"6/v1/{parent=projects/*/locations/*/services/*}/backups:\x06\x62\x61\x63kup\xda\x41\x17parent,backup,backup_id\xca\x41\x35\n\x06\x42\x61\x63kup\x12+google.cloud.metastore.v1.OperationMetadata\x12\xec\x01\n\x0c\x44\x65leteBackup\x12..google.cloud.metastore.v1.DeleteBackupRequest\x1a\x1d.google.longrunning.Operation\"\x8c\x01\x82\xd3\xe4\x93\x02\x38*6/v1/{name=projects/*/locations/*/services/*/backups/*}\xda\x41\x04name\xca\x41\x44\n\x15google.protobuf.Empty\x12+google.cloud.metastore.v1.OperationMetadata\x12\xf1\x01\n\rQueryMetadata\x12/.google.cloud.metastore.v1.QueryMetadataRequest\x1a\x1d.google.longrunning.Operation\"\x8f\x01\x82\xd3\xe4\x93\x02\x42\"=/v1/{service=projects/*/locations/*/services/*}:queryMetadata:\x01*\xca\x41\x44\n\x15QueryMetadataResponse\x12+google.cloud.metastore.v1.OperationMetadata\x12\x89\x02\n\x13MoveTableToDatabase\x12\x35.google.cloud.metastore.v1.MoveTableToDatabaseRequest\x1a\x1d.google.longrunning.Operation\"\x9b\x01\x82\xd3\xe4\x93\x02H\"C/v1/{service=projects/*/locations/*/services/*}:moveTableToDatabase:\x01*\xca\x41J\n\x1bMoveTableToDatabaseResponse\x12+google.cloud.metastore.v1.OperationMetadata\x12\xa1\x02\n\x1d\x41lterMetadataResourceLocation\x12?.google.cloud.metastore.v1.AlterMetadataResourceLocationRequest\x1a\x1d.google.longrunning.Operation\"\x9f\x01\x82\xd3\xe4\x93\x02\x42\"=/v1/{service=projects/*/locations/*/services/*}:alterLocation:\x01*\xca\x41T\n%AlterMetadataResourceLocationResponse\x12+google.cloud.metastore.v1.OperationMetadata\x1aL\xca\x41\x18metastore.googleapis.com\xd2\x41.https://www.googleapis.com/auth/cloud-platformB\x96\x03\n\x1d\x63om.google.cloud.metastore.v1B\x0eMetastoreProtoP\x01Z;cloud.google.com/go/metastore/apiv1/metastorepb;metastorepb\xca\x02\x19Google\\Cloud\\Metastore\\V1\xea\x41N\n\x1e\x63ompute.googleapis.com/Network\x12,projects/{project}/global/networks/{network}\xea\x41\x61\n!compute.googleapis.com/Subnetwork\x12<projects/{project}/regions/{region}/subnetworks/{subnetwork}\xea\x41T\n\x1c\x64\x61taplex.googleapis.com/Lake\x12\x34projects/{project}/locations/{location}/lakes/{lake}b\x06proto3"
|
20
20
|
|
21
21
|
pool = Google::Protobuf::DescriptorPool.generated_pool
|
22
22
|
|
@@ -56,6 +56,7 @@ module Google
|
|
56
56
|
Service::DatabaseType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1.Service.DatabaseType").enummodule
|
57
57
|
MaintenanceWindow = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1.MaintenanceWindow").msgclass
|
58
58
|
HiveMetastoreConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1.HiveMetastoreConfig").msgclass
|
59
|
+
HiveMetastoreConfig::EndpointProtocol = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1.HiveMetastoreConfig.EndpointProtocol").enummodule
|
59
60
|
KerberosConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1.KerberosConfig").msgclass
|
60
61
|
Secret = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1.Secret").msgclass
|
61
62
|
EncryptionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1.EncryptionConfig").msgclass
|
@@ -101,6 +102,13 @@ module Google
|
|
101
102
|
LocationMetadata::HiveMetastoreVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1.LocationMetadata.HiveMetastoreVersion").msgclass
|
102
103
|
DatabaseDumpSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1.DatabaseDumpSpec").msgclass
|
103
104
|
DatabaseDumpSpec::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1.DatabaseDumpSpec.Type").enummodule
|
105
|
+
QueryMetadataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1.QueryMetadataRequest").msgclass
|
106
|
+
QueryMetadataResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1.QueryMetadataResponse").msgclass
|
107
|
+
ErrorDetails = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1.ErrorDetails").msgclass
|
108
|
+
MoveTableToDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1.MoveTableToDatabaseRequest").msgclass
|
109
|
+
MoveTableToDatabaseResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1.MoveTableToDatabaseResponse").msgclass
|
110
|
+
AlterMetadataResourceLocationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1.AlterMetadataResourceLocationRequest").msgclass
|
111
|
+
AlterMetadataResourceLocationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1.AlterMetadataResourceLocationResponse").msgclass
|
104
112
|
end
|
105
113
|
end
|
106
114
|
end
|
@@ -80,6 +80,15 @@ module Google
|
|
80
80
|
rpc :CreateBackup, ::Google::Cloud::Metastore::V1::CreateBackupRequest, ::Google::Longrunning::Operation
|
81
81
|
# Deletes a single backup.
|
82
82
|
rpc :DeleteBackup, ::Google::Cloud::Metastore::V1::DeleteBackupRequest, ::Google::Longrunning::Operation
|
83
|
+
# Query DPMS metadata.
|
84
|
+
rpc :QueryMetadata, ::Google::Cloud::Metastore::V1::QueryMetadataRequest, ::Google::Longrunning::Operation
|
85
|
+
# Move a table to another database.
|
86
|
+
rpc :MoveTableToDatabase, ::Google::Cloud::Metastore::V1::MoveTableToDatabaseRequest, ::Google::Longrunning::Operation
|
87
|
+
# Alter metadata resource location. The metadata resource can be a database,
|
88
|
+
# table, or partition. This functionality only updates the parent directory
|
89
|
+
# for the respective metadata resource and does not transfer any existing
|
90
|
+
# data to the new location.
|
91
|
+
rpc :AlterMetadataResourceLocation, ::Google::Cloud::Metastore::V1::AlterMetadataResourceLocationRequest, ::Google::Longrunning::Operation
|
83
92
|
end
|
84
93
|
|
85
94
|
Stub = Service.rpc_stub_class
|
@@ -221,6 +221,10 @@ module Google
|
|
221
221
|
# method and specify this field's path
|
222
222
|
# (`hive_metastore_config.kerberos_config`) in the request's `update_mask`
|
223
223
|
# while omitting this field from the request's `service`.
|
224
|
+
# @!attribute [rw] endpoint_protocol
|
225
|
+
# @return [::Google::Cloud::Metastore::V1::HiveMetastoreConfig::EndpointProtocol]
|
226
|
+
# The protocol to use for the metastore service endpoint. If unspecified,
|
227
|
+
# defaults to `THRIFT`.
|
224
228
|
# @!attribute [rw] auxiliary_versions
|
225
229
|
# @return [::Google::Protobuf::Map{::String => ::Google::Cloud::Metastore::V1::AuxiliaryVersionConfig}]
|
226
230
|
# A mapping of Hive metastore version to the auxiliary version
|
@@ -252,6 +256,18 @@ module Google
|
|
252
256
|
include ::Google::Protobuf::MessageExts
|
253
257
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
254
258
|
end
|
259
|
+
|
260
|
+
# Protocols available for serving the metastore service endpoint.
|
261
|
+
module EndpointProtocol
|
262
|
+
# The protocol is not set.
|
263
|
+
ENDPOINT_PROTOCOL_UNSPECIFIED = 0
|
264
|
+
|
265
|
+
# Use the legacy Apache Thrift protocol for the metastore service endpoint.
|
266
|
+
THRIFT = 1
|
267
|
+
|
268
|
+
# Use the modernized gRPC protocol for the metastore service endpoint.
|
269
|
+
GRPC = 2
|
270
|
+
end
|
255
271
|
end
|
256
272
|
|
257
273
|
# Configuration information for a Kerberos principal.
|
@@ -427,6 +443,9 @@ module Google
|
|
427
443
|
# @return [::String]
|
428
444
|
# A Cloud Storage object or folder URI that specifies the source from which
|
429
445
|
# to import metadata. It must begin with `gs://`.
|
446
|
+
# @!attribute [rw] source_database
|
447
|
+
# @return [::String]
|
448
|
+
# The name of the source database.
|
430
449
|
# @!attribute [rw] type
|
431
450
|
# @return [::Google::Cloud::Metastore::V1::DatabaseDumpSpec::Type]
|
432
451
|
# Optional. The type of the database dump. If unspecified, defaults to
|
@@ -1236,6 +1255,119 @@ module Google
|
|
1236
1255
|
AVRO = 2
|
1237
1256
|
end
|
1238
1257
|
end
|
1258
|
+
|
1259
|
+
# Request message for
|
1260
|
+
# {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#query_metadata DataprocMetastore.QueryMetadata}.
|
1261
|
+
# @!attribute [rw] service
|
1262
|
+
# @return [::String]
|
1263
|
+
# Required. The relative resource name of the metastore service to query
|
1264
|
+
# metadata, in the following format:
|
1265
|
+
#
|
1266
|
+
# `projects/{project_id}/locations/{location_id}/services/{service_id}`.
|
1267
|
+
# @!attribute [rw] query
|
1268
|
+
# @return [::String]
|
1269
|
+
# Required. A read-only SQL query to execute against the metadata database.
|
1270
|
+
# The query cannot change or mutate the data.
|
1271
|
+
class QueryMetadataRequest
|
1272
|
+
include ::Google::Protobuf::MessageExts
|
1273
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1274
|
+
end
|
1275
|
+
|
1276
|
+
# Response message for
|
1277
|
+
# {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#query_metadata DataprocMetastore.QueryMetadata}.
|
1278
|
+
# @!attribute [rw] result_manifest_uri
|
1279
|
+
# @return [::String]
|
1280
|
+
# The manifest URI is link to a JSON instance in Cloud Storage.
|
1281
|
+
# This instance manifests immediately along with QueryMetadataResponse. The
|
1282
|
+
# content of the URI is not retriable until the long-running operation query
|
1283
|
+
# against the metadata finishes.
|
1284
|
+
class QueryMetadataResponse
|
1285
|
+
include ::Google::Protobuf::MessageExts
|
1286
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1287
|
+
end
|
1288
|
+
|
1289
|
+
# Error details in public error message for
|
1290
|
+
# {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#query_metadata DataprocMetastore.QueryMetadata}.
|
1291
|
+
# @!attribute [rw] details
|
1292
|
+
# @return [::Google::Protobuf::Map{::String => ::String}]
|
1293
|
+
# Additional structured details about this error.
|
1294
|
+
#
|
1295
|
+
# Keys define the failure items.
|
1296
|
+
# Value describes the exception or details of the item.
|
1297
|
+
class ErrorDetails
|
1298
|
+
include ::Google::Protobuf::MessageExts
|
1299
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1300
|
+
|
1301
|
+
# @!attribute [rw] key
|
1302
|
+
# @return [::String]
|
1303
|
+
# @!attribute [rw] value
|
1304
|
+
# @return [::String]
|
1305
|
+
class DetailsEntry
|
1306
|
+
include ::Google::Protobuf::MessageExts
|
1307
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1308
|
+
end
|
1309
|
+
end
|
1310
|
+
|
1311
|
+
# Request message for
|
1312
|
+
# {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#move_table_to_database DataprocMetastore.MoveTableToDatabase}.
|
1313
|
+
# @!attribute [rw] service
|
1314
|
+
# @return [::String]
|
1315
|
+
# Required. The relative resource name of the metastore service to mutate
|
1316
|
+
# metadata, in the following format:
|
1317
|
+
#
|
1318
|
+
# `projects/{project_id}/locations/{location_id}/services/{service_id}`.
|
1319
|
+
# @!attribute [rw] table_name
|
1320
|
+
# @return [::String]
|
1321
|
+
# Required. The name of the table to be moved.
|
1322
|
+
# @!attribute [rw] db_name
|
1323
|
+
# @return [::String]
|
1324
|
+
# Required. The name of the database where the table resides.
|
1325
|
+
# @!attribute [rw] destination_db_name
|
1326
|
+
# @return [::String]
|
1327
|
+
# Required. The name of the database where the table should be moved.
|
1328
|
+
class MoveTableToDatabaseRequest
|
1329
|
+
include ::Google::Protobuf::MessageExts
|
1330
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1331
|
+
end
|
1332
|
+
|
1333
|
+
# Response message for
|
1334
|
+
# {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#move_table_to_database DataprocMetastore.MoveTableToDatabase}.
|
1335
|
+
class MoveTableToDatabaseResponse
|
1336
|
+
include ::Google::Protobuf::MessageExts
|
1337
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1338
|
+
end
|
1339
|
+
|
1340
|
+
# Request message for
|
1341
|
+
# {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#alter_metadata_resource_location DataprocMetastore.AlterMetadataResourceLocation}.
|
1342
|
+
# @!attribute [rw] service
|
1343
|
+
# @return [::String]
|
1344
|
+
# Required. The relative resource name of the metastore service to mutate
|
1345
|
+
# metadata, in the following format:
|
1346
|
+
#
|
1347
|
+
# `projects/{project_id}/locations/{location_id}/services/{service_id}`.
|
1348
|
+
# @!attribute [rw] resource_name
|
1349
|
+
# @return [::String]
|
1350
|
+
# Required. The relative metadata resource name in the following format.
|
1351
|
+
#
|
1352
|
+
# `databases/{database_id}`
|
1353
|
+
# or
|
1354
|
+
# `databases/{database_id}/tables/{table_id}`
|
1355
|
+
# or
|
1356
|
+
# `databases/{database_id}/tables/{table_id}/partitions/{partition_id}`
|
1357
|
+
# @!attribute [rw] location_uri
|
1358
|
+
# @return [::String]
|
1359
|
+
# Required. The new location URI for the metadata resource.
|
1360
|
+
class AlterMetadataResourceLocationRequest
|
1361
|
+
include ::Google::Protobuf::MessageExts
|
1362
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1363
|
+
end
|
1364
|
+
|
1365
|
+
# Response message for
|
1366
|
+
# {::Google::Cloud::Metastore::V1::DataprocMetastore::Client#alter_metadata_resource_location DataprocMetastore.AlterMetadataResourceLocation}.
|
1367
|
+
class AlterMetadataResourceLocationResponse
|
1368
|
+
include ::Google::Protobuf::MessageExts
|
1369
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1370
|
+
end
|
1239
1371
|
end
|
1240
1372
|
end
|
1241
1373
|
end
|
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.
|
4
|
+
version: 0.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|