google-cloud-metastore-v1beta 0.3.0 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/google/cloud/metastore/v1beta/dataproc_metastore/client.rb +431 -0
- data/lib/google/cloud/metastore/v1beta/dataproc_metastore.rb +1 -1
- data/lib/google/cloud/metastore/v1beta/dataproc_metastore_federation/client.rb +22 -21
- data/lib/google/cloud/metastore/v1beta/dataproc_metastore_federation.rb +1 -1
- data/lib/google/cloud/metastore/v1beta/metastore_pb.rb +37 -0
- data/lib/google/cloud/metastore/v1beta/metastore_services_pb.rb +11 -0
- data/lib/google/cloud/metastore/v1beta/version.rb +1 -1
- data/lib/google/cloud/metastore/v1beta.rb +2 -2
- data/proto_docs/google/cloud/metastore/v1beta/metastore.rb +120 -0
- data/proto_docs/google/cloud/metastore/v1beta/metastore_federation.rb +28 -26
- data/proto_docs/google/rpc/status.rb +4 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 71a6f62650164a0f55c61c3e21ca77ee52fae49edd74e73ec7c2e3ddfe3cfc79
|
4
|
+
data.tar.gz: 7bc10fbf944b68f2fd3b211cb1cd1deb5426ec3ff9b272adba921d4682115416
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 95cc5e8407a0b7a719efd1e2d9862858c6d97b00291d52f6c57105cdd1e5dd97c49e77c42c867639a7aa4c9cc87bf07e902a5384533f0c7eba606bf3747cb028
|
7
|
+
data.tar.gz: 8f738642ae413e89a88acad7bc3aa1ac806b4111cfde56a0d739e2e540d338441496db4a1de6b4de05507a4fb1ec25ab32e733d6c3d27a4141046362aa728e00
|
@@ -1846,6 +1846,409 @@ module Google
|
|
1846
1846
|
raise ::Google::Cloud::Error.from_error(e)
|
1847
1847
|
end
|
1848
1848
|
|
1849
|
+
##
|
1850
|
+
# Removes the attached IAM policies for a resource
|
1851
|
+
#
|
1852
|
+
# @overload remove_iam_policy(request, options = nil)
|
1853
|
+
# Pass arguments to `remove_iam_policy` via a request object, either of type
|
1854
|
+
# {::Google::Cloud::Metastore::V1beta::RemoveIamPolicyRequest} or an equivalent Hash.
|
1855
|
+
#
|
1856
|
+
# @param request [::Google::Cloud::Metastore::V1beta::RemoveIamPolicyRequest, ::Hash]
|
1857
|
+
# A request object representing the call parameters. Required. To specify no
|
1858
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1859
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1860
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1861
|
+
#
|
1862
|
+
# @overload remove_iam_policy(resource: nil, asynchronous: nil)
|
1863
|
+
# Pass arguments to `remove_iam_policy` via keyword arguments. Note that at
|
1864
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1865
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1866
|
+
#
|
1867
|
+
# @param resource [::String]
|
1868
|
+
# Required. The relative resource name of the dataplane resource to remove
|
1869
|
+
# IAM policy, in the following form:
|
1870
|
+
#
|
1871
|
+
# `projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}`
|
1872
|
+
# or
|
1873
|
+
# `projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}/tables/{table_id}`.
|
1874
|
+
# @param asynchronous [::Boolean]
|
1875
|
+
# Optional. Removes IAM policy attached to database or table asynchronously
|
1876
|
+
# when it is set. The default is false.
|
1877
|
+
#
|
1878
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1879
|
+
# @yieldparam response [::Google::Cloud::Metastore::V1beta::RemoveIamPolicyResponse]
|
1880
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1881
|
+
#
|
1882
|
+
# @return [::Google::Cloud::Metastore::V1beta::RemoveIamPolicyResponse]
|
1883
|
+
#
|
1884
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1885
|
+
#
|
1886
|
+
# @example Basic example
|
1887
|
+
# require "google/cloud/metastore/v1beta"
|
1888
|
+
#
|
1889
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1890
|
+
# client = Google::Cloud::Metastore::V1beta::DataprocMetastore::Client.new
|
1891
|
+
#
|
1892
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1893
|
+
# request = Google::Cloud::Metastore::V1beta::RemoveIamPolicyRequest.new
|
1894
|
+
#
|
1895
|
+
# # Call the remove_iam_policy method.
|
1896
|
+
# result = client.remove_iam_policy request
|
1897
|
+
#
|
1898
|
+
# # The returned object is of type Google::Cloud::Metastore::V1beta::RemoveIamPolicyResponse.
|
1899
|
+
# p result
|
1900
|
+
#
|
1901
|
+
def remove_iam_policy request, options = nil
|
1902
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
1903
|
+
|
1904
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Metastore::V1beta::RemoveIamPolicyRequest
|
1905
|
+
|
1906
|
+
# Converts hash and nil to an options object
|
1907
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
1908
|
+
|
1909
|
+
# Customize the options with defaults
|
1910
|
+
metadata = @config.rpcs.remove_iam_policy.metadata.to_h
|
1911
|
+
|
1912
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
1913
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
1914
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
1915
|
+
gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION
|
1916
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
1917
|
+
|
1918
|
+
header_params = {}
|
1919
|
+
if request.resource
|
1920
|
+
header_params["resource"] = request.resource
|
1921
|
+
end
|
1922
|
+
|
1923
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
1924
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
1925
|
+
|
1926
|
+
options.apply_defaults timeout: @config.rpcs.remove_iam_policy.timeout,
|
1927
|
+
metadata: metadata,
|
1928
|
+
retry_policy: @config.rpcs.remove_iam_policy.retry_policy
|
1929
|
+
|
1930
|
+
options.apply_defaults timeout: @config.timeout,
|
1931
|
+
metadata: @config.metadata,
|
1932
|
+
retry_policy: @config.retry_policy
|
1933
|
+
|
1934
|
+
@dataproc_metastore_stub.call_rpc :remove_iam_policy, request, options: options do |response, operation|
|
1935
|
+
yield response, operation if block_given?
|
1936
|
+
return response
|
1937
|
+
end
|
1938
|
+
rescue ::GRPC::BadStatus => e
|
1939
|
+
raise ::Google::Cloud::Error.from_error(e)
|
1940
|
+
end
|
1941
|
+
|
1942
|
+
##
|
1943
|
+
# Query DPMS metadata.
|
1944
|
+
#
|
1945
|
+
# @overload query_metadata(request, options = nil)
|
1946
|
+
# Pass arguments to `query_metadata` via a request object, either of type
|
1947
|
+
# {::Google::Cloud::Metastore::V1beta::QueryMetadataRequest} or an equivalent Hash.
|
1948
|
+
#
|
1949
|
+
# @param request [::Google::Cloud::Metastore::V1beta::QueryMetadataRequest, ::Hash]
|
1950
|
+
# A request object representing the call parameters. Required. To specify no
|
1951
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
1952
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
1953
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
1954
|
+
#
|
1955
|
+
# @overload query_metadata(service: nil, query: nil)
|
1956
|
+
# Pass arguments to `query_metadata` via keyword arguments. Note that at
|
1957
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
1958
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
1959
|
+
#
|
1960
|
+
# @param service [::String]
|
1961
|
+
# Required. The relative resource name of the metastore service to query
|
1962
|
+
# metadata, in the following format:
|
1963
|
+
#
|
1964
|
+
# `projects/{project_id}/locations/{location_id}/services/{service_id}`.
|
1965
|
+
# @param query [::String]
|
1966
|
+
# Required. A read-only SQL query to execute against the metadata database.
|
1967
|
+
# The query cannot change or mutate the data.
|
1968
|
+
#
|
1969
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
1970
|
+
# @yieldparam response [::Gapic::Operation]
|
1971
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
1972
|
+
#
|
1973
|
+
# @return [::Gapic::Operation]
|
1974
|
+
#
|
1975
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
1976
|
+
#
|
1977
|
+
# @example Basic example
|
1978
|
+
# require "google/cloud/metastore/v1beta"
|
1979
|
+
#
|
1980
|
+
# # Create a client object. The client can be reused for multiple calls.
|
1981
|
+
# client = Google::Cloud::Metastore::V1beta::DataprocMetastore::Client.new
|
1982
|
+
#
|
1983
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
1984
|
+
# request = Google::Cloud::Metastore::V1beta::QueryMetadataRequest.new
|
1985
|
+
#
|
1986
|
+
# # Call the query_metadata method.
|
1987
|
+
# result = client.query_metadata request
|
1988
|
+
#
|
1989
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
1990
|
+
# # object to check the status of an operation, cancel it, or wait
|
1991
|
+
# # for results. Here is how to block until completion:
|
1992
|
+
# result.wait_until_done! timeout: 60
|
1993
|
+
# if result.response?
|
1994
|
+
# p result.response
|
1995
|
+
# else
|
1996
|
+
# puts "Error!"
|
1997
|
+
# end
|
1998
|
+
#
|
1999
|
+
def query_metadata request, options = nil
|
2000
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2001
|
+
|
2002
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Metastore::V1beta::QueryMetadataRequest
|
2003
|
+
|
2004
|
+
# Converts hash and nil to an options object
|
2005
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2006
|
+
|
2007
|
+
# Customize the options with defaults
|
2008
|
+
metadata = @config.rpcs.query_metadata.metadata.to_h
|
2009
|
+
|
2010
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2011
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2012
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2013
|
+
gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION
|
2014
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2015
|
+
|
2016
|
+
header_params = {}
|
2017
|
+
if request.service
|
2018
|
+
header_params["service"] = request.service
|
2019
|
+
end
|
2020
|
+
|
2021
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2022
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2023
|
+
|
2024
|
+
options.apply_defaults timeout: @config.rpcs.query_metadata.timeout,
|
2025
|
+
metadata: metadata,
|
2026
|
+
retry_policy: @config.rpcs.query_metadata.retry_policy
|
2027
|
+
|
2028
|
+
options.apply_defaults timeout: @config.timeout,
|
2029
|
+
metadata: @config.metadata,
|
2030
|
+
retry_policy: @config.retry_policy
|
2031
|
+
|
2032
|
+
@dataproc_metastore_stub.call_rpc :query_metadata, request, options: options do |response, operation|
|
2033
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2034
|
+
yield response, operation if block_given?
|
2035
|
+
return response
|
2036
|
+
end
|
2037
|
+
rescue ::GRPC::BadStatus => e
|
2038
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2039
|
+
end
|
2040
|
+
|
2041
|
+
##
|
2042
|
+
# Move a table to another database.
|
2043
|
+
#
|
2044
|
+
# @overload move_table_to_database(request, options = nil)
|
2045
|
+
# Pass arguments to `move_table_to_database` via a request object, either of type
|
2046
|
+
# {::Google::Cloud::Metastore::V1beta::MoveTableToDatabaseRequest} or an equivalent Hash.
|
2047
|
+
#
|
2048
|
+
# @param request [::Google::Cloud::Metastore::V1beta::MoveTableToDatabaseRequest, ::Hash]
|
2049
|
+
# A request object representing the call parameters. Required. To specify no
|
2050
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2051
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2052
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2053
|
+
#
|
2054
|
+
# @overload move_table_to_database(service: nil, table_name: nil, db_name: nil, destination_db_name: nil)
|
2055
|
+
# Pass arguments to `move_table_to_database` via keyword arguments. Note that at
|
2056
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2057
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2058
|
+
#
|
2059
|
+
# @param service [::String]
|
2060
|
+
# Required. The relative resource name of the metastore service to mutate
|
2061
|
+
# metadata, in the following format:
|
2062
|
+
#
|
2063
|
+
# `projects/{project_id}/locations/{location_id}/services/{service_id}`.
|
2064
|
+
# @param table_name [::String]
|
2065
|
+
# Required. The name of the table to be moved.
|
2066
|
+
# @param db_name [::String]
|
2067
|
+
# Required. The name of the database where the table resides.
|
2068
|
+
# @param destination_db_name [::String]
|
2069
|
+
# Required. The name of the database where the table should be moved.
|
2070
|
+
#
|
2071
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2072
|
+
# @yieldparam response [::Gapic::Operation]
|
2073
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2074
|
+
#
|
2075
|
+
# @return [::Gapic::Operation]
|
2076
|
+
#
|
2077
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2078
|
+
#
|
2079
|
+
# @example Basic example
|
2080
|
+
# require "google/cloud/metastore/v1beta"
|
2081
|
+
#
|
2082
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2083
|
+
# client = Google::Cloud::Metastore::V1beta::DataprocMetastore::Client.new
|
2084
|
+
#
|
2085
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2086
|
+
# request = Google::Cloud::Metastore::V1beta::MoveTableToDatabaseRequest.new
|
2087
|
+
#
|
2088
|
+
# # Call the move_table_to_database method.
|
2089
|
+
# result = client.move_table_to_database request
|
2090
|
+
#
|
2091
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
2092
|
+
# # object to check the status of an operation, cancel it, or wait
|
2093
|
+
# # for results. Here is how to block until completion:
|
2094
|
+
# result.wait_until_done! timeout: 60
|
2095
|
+
# if result.response?
|
2096
|
+
# p result.response
|
2097
|
+
# else
|
2098
|
+
# puts "Error!"
|
2099
|
+
# end
|
2100
|
+
#
|
2101
|
+
def move_table_to_database request, options = nil
|
2102
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2103
|
+
|
2104
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Metastore::V1beta::MoveTableToDatabaseRequest
|
2105
|
+
|
2106
|
+
# Converts hash and nil to an options object
|
2107
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2108
|
+
|
2109
|
+
# Customize the options with defaults
|
2110
|
+
metadata = @config.rpcs.move_table_to_database.metadata.to_h
|
2111
|
+
|
2112
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2113
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2114
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2115
|
+
gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION
|
2116
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2117
|
+
|
2118
|
+
header_params = {}
|
2119
|
+
if request.service
|
2120
|
+
header_params["service"] = request.service
|
2121
|
+
end
|
2122
|
+
|
2123
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2124
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2125
|
+
|
2126
|
+
options.apply_defaults timeout: @config.rpcs.move_table_to_database.timeout,
|
2127
|
+
metadata: metadata,
|
2128
|
+
retry_policy: @config.rpcs.move_table_to_database.retry_policy
|
2129
|
+
|
2130
|
+
options.apply_defaults timeout: @config.timeout,
|
2131
|
+
metadata: @config.metadata,
|
2132
|
+
retry_policy: @config.retry_policy
|
2133
|
+
|
2134
|
+
@dataproc_metastore_stub.call_rpc :move_table_to_database, request, options: options do |response, operation|
|
2135
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2136
|
+
yield response, operation if block_given?
|
2137
|
+
return response
|
2138
|
+
end
|
2139
|
+
rescue ::GRPC::BadStatus => e
|
2140
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2141
|
+
end
|
2142
|
+
|
2143
|
+
##
|
2144
|
+
# Alter metadata resource location. The metadata resource can be a database,
|
2145
|
+
# table, or partition. This functionality only updates the parent directory
|
2146
|
+
# for the respective metadata resource and does not transfer any existing
|
2147
|
+
# data to the new location.
|
2148
|
+
#
|
2149
|
+
# @overload alter_metadata_resource_location(request, options = nil)
|
2150
|
+
# Pass arguments to `alter_metadata_resource_location` via a request object, either of type
|
2151
|
+
# {::Google::Cloud::Metastore::V1beta::AlterMetadataResourceLocationRequest} or an equivalent Hash.
|
2152
|
+
#
|
2153
|
+
# @param request [::Google::Cloud::Metastore::V1beta::AlterMetadataResourceLocationRequest, ::Hash]
|
2154
|
+
# A request object representing the call parameters. Required. To specify no
|
2155
|
+
# parameters, or to keep all the default parameter values, pass an empty Hash.
|
2156
|
+
# @param options [::Gapic::CallOptions, ::Hash]
|
2157
|
+
# Overrides the default settings for this call, e.g, timeout, retries, etc. Optional.
|
2158
|
+
#
|
2159
|
+
# @overload alter_metadata_resource_location(service: nil, resource_name: nil, location_uri: nil)
|
2160
|
+
# Pass arguments to `alter_metadata_resource_location` via keyword arguments. Note that at
|
2161
|
+
# least one keyword argument is required. To specify no parameters, or to keep all
|
2162
|
+
# the default parameter values, pass an empty Hash as a request object (see above).
|
2163
|
+
#
|
2164
|
+
# @param service [::String]
|
2165
|
+
# Required. The relative resource name of the metastore service to mutate
|
2166
|
+
# metadata, in the following format:
|
2167
|
+
#
|
2168
|
+
# `projects/{project_id}/locations/{location_id}/services/{service_id}`.
|
2169
|
+
# @param resource_name [::String]
|
2170
|
+
# Required. The relative metadata resource name in the following format.
|
2171
|
+
#
|
2172
|
+
# `databases/{database_id}`
|
2173
|
+
# or
|
2174
|
+
# `databases/{database_id}/tables/{table_id}`
|
2175
|
+
# or
|
2176
|
+
# `databases/{database_id}/tables/{table_id}/partitions/{partition_id}`
|
2177
|
+
# @param location_uri [::String]
|
2178
|
+
# Required. The new location URI for the metadata resource.
|
2179
|
+
#
|
2180
|
+
# @yield [response, operation] Access the result along with the RPC operation
|
2181
|
+
# @yieldparam response [::Gapic::Operation]
|
2182
|
+
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
2183
|
+
#
|
2184
|
+
# @return [::Gapic::Operation]
|
2185
|
+
#
|
2186
|
+
# @raise [::Google::Cloud::Error] if the RPC is aborted.
|
2187
|
+
#
|
2188
|
+
# @example Basic example
|
2189
|
+
# require "google/cloud/metastore/v1beta"
|
2190
|
+
#
|
2191
|
+
# # Create a client object. The client can be reused for multiple calls.
|
2192
|
+
# client = Google::Cloud::Metastore::V1beta::DataprocMetastore::Client.new
|
2193
|
+
#
|
2194
|
+
# # Create a request. To set request fields, pass in keyword arguments.
|
2195
|
+
# request = Google::Cloud::Metastore::V1beta::AlterMetadataResourceLocationRequest.new
|
2196
|
+
#
|
2197
|
+
# # Call the alter_metadata_resource_location method.
|
2198
|
+
# result = client.alter_metadata_resource_location request
|
2199
|
+
#
|
2200
|
+
# # The returned object is of type Gapic::Operation. You can use this
|
2201
|
+
# # object to check the status of an operation, cancel it, or wait
|
2202
|
+
# # for results. Here is how to block until completion:
|
2203
|
+
# result.wait_until_done! timeout: 60
|
2204
|
+
# if result.response?
|
2205
|
+
# p result.response
|
2206
|
+
# else
|
2207
|
+
# puts "Error!"
|
2208
|
+
# end
|
2209
|
+
#
|
2210
|
+
def alter_metadata_resource_location request, options = nil
|
2211
|
+
raise ::ArgumentError, "request must be provided" if request.nil?
|
2212
|
+
|
2213
|
+
request = ::Gapic::Protobuf.coerce request, to: ::Google::Cloud::Metastore::V1beta::AlterMetadataResourceLocationRequest
|
2214
|
+
|
2215
|
+
# Converts hash and nil to an options object
|
2216
|
+
options = ::Gapic::CallOptions.new(**options.to_h) if options.respond_to? :to_h
|
2217
|
+
|
2218
|
+
# Customize the options with defaults
|
2219
|
+
metadata = @config.rpcs.alter_metadata_resource_location.metadata.to_h
|
2220
|
+
|
2221
|
+
# Set x-goog-api-client and x-goog-user-project headers
|
2222
|
+
metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
|
2223
|
+
lib_name: @config.lib_name, lib_version: @config.lib_version,
|
2224
|
+
gapic_version: ::Google::Cloud::Metastore::V1beta::VERSION
|
2225
|
+
metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
|
2226
|
+
|
2227
|
+
header_params = {}
|
2228
|
+
if request.service
|
2229
|
+
header_params["service"] = request.service
|
2230
|
+
end
|
2231
|
+
|
2232
|
+
request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
|
2233
|
+
metadata[:"x-goog-request-params"] ||= request_params_header
|
2234
|
+
|
2235
|
+
options.apply_defaults timeout: @config.rpcs.alter_metadata_resource_location.timeout,
|
2236
|
+
metadata: metadata,
|
2237
|
+
retry_policy: @config.rpcs.alter_metadata_resource_location.retry_policy
|
2238
|
+
|
2239
|
+
options.apply_defaults timeout: @config.timeout,
|
2240
|
+
metadata: @config.metadata,
|
2241
|
+
retry_policy: @config.retry_policy
|
2242
|
+
|
2243
|
+
@dataproc_metastore_stub.call_rpc :alter_metadata_resource_location, request, options: options do |response, operation|
|
2244
|
+
response = ::Gapic::Operation.new response, @operations_client, options: options
|
2245
|
+
yield response, operation if block_given?
|
2246
|
+
return response
|
2247
|
+
end
|
2248
|
+
rescue ::GRPC::BadStatus => e
|
2249
|
+
raise ::Google::Cloud::Error.from_error(e)
|
2250
|
+
end
|
2251
|
+
|
1849
2252
|
##
|
1850
2253
|
# Configuration class for the DataprocMetastore API.
|
1851
2254
|
#
|
@@ -2056,6 +2459,26 @@ module Google
|
|
2056
2459
|
# @return [::Gapic::Config::Method]
|
2057
2460
|
#
|
2058
2461
|
attr_reader :delete_backup
|
2462
|
+
##
|
2463
|
+
# RPC-specific configuration for `remove_iam_policy`
|
2464
|
+
# @return [::Gapic::Config::Method]
|
2465
|
+
#
|
2466
|
+
attr_reader :remove_iam_policy
|
2467
|
+
##
|
2468
|
+
# RPC-specific configuration for `query_metadata`
|
2469
|
+
# @return [::Gapic::Config::Method]
|
2470
|
+
#
|
2471
|
+
attr_reader :query_metadata
|
2472
|
+
##
|
2473
|
+
# RPC-specific configuration for `move_table_to_database`
|
2474
|
+
# @return [::Gapic::Config::Method]
|
2475
|
+
#
|
2476
|
+
attr_reader :move_table_to_database
|
2477
|
+
##
|
2478
|
+
# RPC-specific configuration for `alter_metadata_resource_location`
|
2479
|
+
# @return [::Gapic::Config::Method]
|
2480
|
+
#
|
2481
|
+
attr_reader :alter_metadata_resource_location
|
2059
2482
|
|
2060
2483
|
# @private
|
2061
2484
|
def initialize parent_rpcs = nil
|
@@ -2089,6 +2512,14 @@ module Google
|
|
2089
2512
|
@create_backup = ::Gapic::Config::Method.new create_backup_config
|
2090
2513
|
delete_backup_config = parent_rpcs.delete_backup if parent_rpcs.respond_to? :delete_backup
|
2091
2514
|
@delete_backup = ::Gapic::Config::Method.new delete_backup_config
|
2515
|
+
remove_iam_policy_config = parent_rpcs.remove_iam_policy if parent_rpcs.respond_to? :remove_iam_policy
|
2516
|
+
@remove_iam_policy = ::Gapic::Config::Method.new remove_iam_policy_config
|
2517
|
+
query_metadata_config = parent_rpcs.query_metadata if parent_rpcs.respond_to? :query_metadata
|
2518
|
+
@query_metadata = ::Gapic::Config::Method.new query_metadata_config
|
2519
|
+
move_table_to_database_config = parent_rpcs.move_table_to_database if parent_rpcs.respond_to? :move_table_to_database
|
2520
|
+
@move_table_to_database = ::Gapic::Config::Method.new move_table_to_database_config
|
2521
|
+
alter_metadata_resource_location_config = parent_rpcs.alter_metadata_resource_location if parent_rpcs.respond_to? :alter_metadata_resource_location
|
2522
|
+
@alter_metadata_resource_location = ::Gapic::Config::Method.new alter_metadata_resource_location_config
|
2092
2523
|
|
2093
2524
|
yield self if block_given?
|
2094
2525
|
end
|
@@ -50,7 +50,7 @@ module Google
|
|
50
50
|
#
|
51
51
|
# `/projects/{project_number}/locations/{location_id}/services/{service_id}`.
|
52
52
|
#
|
53
|
-
#
|
53
|
+
# @example Load this service and instantiate a gRPC client
|
54
54
|
#
|
55
55
|
# require "google/cloud/metastore/v1beta/dataproc_metastore"
|
56
56
|
# client = ::Google::Cloud::Metastore::V1beta::DataprocMetastore::Client.new
|
@@ -188,13 +188,14 @@ module Google
|
|
188
188
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
189
189
|
#
|
190
190
|
# @param parent [::String]
|
191
|
-
# Required. The relative resource name of the location of metastore
|
192
|
-
# to list, in the following form:
|
191
|
+
# Required. The relative resource name of the location of metastore
|
192
|
+
# federations to list, in the following form:
|
193
193
|
# `projects/{project_number}/locations/{location_id}`.
|
194
194
|
# @param page_size [::Integer]
|
195
|
-
# Optional. The maximum number of federations to return. The response may
|
196
|
-
# than the maximum number. If unspecified, no more than 500
|
197
|
-
# returned. The maximum value is 1000; values above 1000 are
|
195
|
+
# Optional. The maximum number of federations to return. The response may
|
196
|
+
# contain less than the maximum number. If unspecified, no more than 500
|
197
|
+
# services are returned. The maximum value is 1000; values above 1000 are
|
198
|
+
# changed to 1000.
|
198
199
|
# @param page_token [::String]
|
199
200
|
# Optional. A page token, received from a previous ListFederationServices
|
200
201
|
# call. Provide this token to retrieve the subsequent page.
|
@@ -301,8 +302,8 @@ module Google
|
|
301
302
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
302
303
|
#
|
303
304
|
# @param name [::String]
|
304
|
-
# Required. The relative resource name of the metastore federation to
|
305
|
-
# in the following form:
|
305
|
+
# Required. The relative resource name of the metastore federation to
|
306
|
+
# retrieve, in the following form:
|
306
307
|
#
|
307
308
|
# `projects/{project_number}/locations/{location_id}/federations/{federation_id}`.
|
308
309
|
#
|
@@ -389,8 +390,8 @@ module Google
|
|
389
390
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
390
391
|
#
|
391
392
|
# @param parent [::String]
|
392
|
-
# Required. The relative resource name of the location in which to create a
|
393
|
-
# service, in the following form:
|
393
|
+
# Required. The relative resource name of the location in which to create a
|
394
|
+
# federation service, in the following form:
|
394
395
|
#
|
395
396
|
# `projects/{project_number}/locations/{location_id}`.
|
396
397
|
# @param federation_id [::String]
|
@@ -405,10 +406,10 @@ module Google
|
|
405
406
|
# ignored. The ID of the created metastore federation must be
|
406
407
|
# provided in the request's `federation_id` field.
|
407
408
|
# @param request_id [::String]
|
408
|
-
# Optional. A request ID. Specify a unique request ID to allow the server to
|
409
|
-
# request if it has completed. The server will ignore subsequent
|
410
|
-
# that provide a duplicate request ID for at least 60 minutes after
|
411
|
-
# request.
|
409
|
+
# Optional. A request ID. Specify a unique request ID to allow the server to
|
410
|
+
# ignore the request if it has completed. The server will ignore subsequent
|
411
|
+
# requests that provide a duplicate request ID for at least 60 minutes after
|
412
|
+
# the first request.
|
412
413
|
#
|
413
414
|
# For example, if an initial request times out, followed by another request
|
414
415
|
# with the same request ID, the server ignores the second request to prevent
|
@@ -520,10 +521,10 @@ module Google
|
|
520
521
|
# The metastore federation's `name` field is used to identify the
|
521
522
|
# metastore service to be updated.
|
522
523
|
# @param request_id [::String]
|
523
|
-
# Optional. A request ID. Specify a unique request ID to allow the server to
|
524
|
-
# request if it has completed. The server will ignore subsequent
|
525
|
-
# that provide a duplicate request ID for at least 60 minutes after
|
526
|
-
# request.
|
524
|
+
# Optional. A request ID. Specify a unique request ID to allow the server to
|
525
|
+
# ignore the request if it has completed. The server will ignore subsequent
|
526
|
+
# requests that provide a duplicate request ID for at least 60 minutes after
|
527
|
+
# the first request.
|
527
528
|
#
|
528
529
|
# For example, if an initial request times out, followed by another request
|
529
530
|
# with the same request ID, the server ignores the second request to prevent
|
@@ -629,10 +630,10 @@ module Google
|
|
629
630
|
#
|
630
631
|
# `projects/{project_number}/locations/{location_id}/federations/{federation_id}`.
|
631
632
|
# @param request_id [::String]
|
632
|
-
# Optional. A request ID. Specify a unique request ID to allow the server to
|
633
|
-
# request if it has completed. The server will ignore subsequent
|
634
|
-
# that provide a duplicate request ID for at least 60 minutes after
|
635
|
-
# request.
|
633
|
+
# Optional. A request ID. Specify a unique request ID to allow the server to
|
634
|
+
# ignore the request if it has completed. The server will ignore subsequent
|
635
|
+
# requests that provide a duplicate request ID for at least 60 minutes after
|
636
|
+
# the first request.
|
636
637
|
#
|
637
638
|
# For example, if an initial request times out, followed by another request
|
638
639
|
# with the same request ID, the server ignores the second request to prevent
|
@@ -46,7 +46,7 @@ module Google
|
|
46
46
|
# form:
|
47
47
|
# `projects/{project_number}/locations/{location_id}/federations/{federation_id}`.
|
48
48
|
#
|
49
|
-
#
|
49
|
+
# @example Load this service and instantiate a gRPC client
|
50
50
|
#
|
51
51
|
# require "google/cloud/metastore/v1beta/dataproc_metastore_federation"
|
52
52
|
# client = ::Google::Cloud::Metastore::V1beta::DataprocMetastoreFederation::Client.new
|
@@ -332,6 +332,35 @@ Google::Protobuf::DescriptorPool.generated_pool.build do
|
|
332
332
|
value :MYSQL, 1
|
333
333
|
value :AVRO, 2
|
334
334
|
end
|
335
|
+
add_message "google.cloud.metastore.v1beta.RemoveIamPolicyRequest" do
|
336
|
+
optional :resource, :string, 1
|
337
|
+
optional :asynchronous, :bool, 2
|
338
|
+
end
|
339
|
+
add_message "google.cloud.metastore.v1beta.RemoveIamPolicyResponse" do
|
340
|
+
optional :success, :bool, 1
|
341
|
+
end
|
342
|
+
add_message "google.cloud.metastore.v1beta.QueryMetadataRequest" do
|
343
|
+
optional :service, :string, 1
|
344
|
+
optional :query, :string, 2
|
345
|
+
end
|
346
|
+
add_message "google.cloud.metastore.v1beta.QueryMetadataResponse" do
|
347
|
+
optional :result_manifest_uri, :string, 1
|
348
|
+
end
|
349
|
+
add_message "google.cloud.metastore.v1beta.MoveTableToDatabaseRequest" do
|
350
|
+
optional :service, :string, 1
|
351
|
+
optional :table_name, :string, 2
|
352
|
+
optional :db_name, :string, 3
|
353
|
+
optional :destination_db_name, :string, 4
|
354
|
+
end
|
355
|
+
add_message "google.cloud.metastore.v1beta.MoveTableToDatabaseResponse" do
|
356
|
+
end
|
357
|
+
add_message "google.cloud.metastore.v1beta.AlterMetadataResourceLocationRequest" do
|
358
|
+
optional :service, :string, 1
|
359
|
+
optional :resource_name, :string, 2
|
360
|
+
optional :location_uri, :string, 3
|
361
|
+
end
|
362
|
+
add_message "google.cloud.metastore.v1beta.AlterMetadataResourceLocationResponse" do
|
363
|
+
end
|
335
364
|
end
|
336
365
|
end
|
337
366
|
|
@@ -394,6 +423,14 @@ module Google
|
|
394
423
|
LocationMetadata::HiveMetastoreVersion = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1beta.LocationMetadata.HiveMetastoreVersion").msgclass
|
395
424
|
DatabaseDumpSpec = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1beta.DatabaseDumpSpec").msgclass
|
396
425
|
DatabaseDumpSpec::Type = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1beta.DatabaseDumpSpec.Type").enummodule
|
426
|
+
RemoveIamPolicyRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1beta.RemoveIamPolicyRequest").msgclass
|
427
|
+
RemoveIamPolicyResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1beta.RemoveIamPolicyResponse").msgclass
|
428
|
+
QueryMetadataRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1beta.QueryMetadataRequest").msgclass
|
429
|
+
QueryMetadataResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1beta.QueryMetadataResponse").msgclass
|
430
|
+
MoveTableToDatabaseRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1beta.MoveTableToDatabaseRequest").msgclass
|
431
|
+
MoveTableToDatabaseResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1beta.MoveTableToDatabaseResponse").msgclass
|
432
|
+
AlterMetadataResourceLocationRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1beta.AlterMetadataResourceLocationRequest").msgclass
|
433
|
+
AlterMetadataResourceLocationResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.metastore.v1beta.AlterMetadataResourceLocationResponse").msgclass
|
397
434
|
end
|
398
435
|
end
|
399
436
|
end
|
@@ -80,6 +80,17 @@ module Google
|
|
80
80
|
rpc :CreateBackup, ::Google::Cloud::Metastore::V1beta::CreateBackupRequest, ::Google::Longrunning::Operation
|
81
81
|
# Deletes a single backup.
|
82
82
|
rpc :DeleteBackup, ::Google::Cloud::Metastore::V1beta::DeleteBackupRequest, ::Google::Longrunning::Operation
|
83
|
+
# Removes the attached IAM policies for a resource
|
84
|
+
rpc :RemoveIamPolicy, ::Google::Cloud::Metastore::V1beta::RemoveIamPolicyRequest, ::Google::Cloud::Metastore::V1beta::RemoveIamPolicyResponse
|
85
|
+
# Query DPMS metadata.
|
86
|
+
rpc :QueryMetadata, ::Google::Cloud::Metastore::V1beta::QueryMetadataRequest, ::Google::Longrunning::Operation
|
87
|
+
# Move a table to another database.
|
88
|
+
rpc :MoveTableToDatabase, ::Google::Cloud::Metastore::V1beta::MoveTableToDatabaseRequest, ::Google::Longrunning::Operation
|
89
|
+
# Alter metadata resource location. The metadata resource can be a database,
|
90
|
+
# table, or partition. This functionality only updates the parent directory
|
91
|
+
# for the respective metadata resource and does not transfer any existing
|
92
|
+
# data to the new location.
|
93
|
+
rpc :AlterMetadataResourceLocation, ::Google::Cloud::Metastore::V1beta::AlterMetadataResourceLocationRequest, ::Google::Longrunning::Operation
|
83
94
|
end
|
84
95
|
|
85
96
|
Stub = Service.rpc_stub_class
|
@@ -24,9 +24,9 @@ module Google
|
|
24
24
|
module Cloud
|
25
25
|
module Metastore
|
26
26
|
##
|
27
|
-
#
|
27
|
+
# API client module.
|
28
28
|
#
|
29
|
-
# @example
|
29
|
+
# @example Load this package, including all its services, and instantiate a gRPC client
|
30
30
|
#
|
31
31
|
# require "google/cloud/metastore/v1beta"
|
32
32
|
# client = ::Google::Cloud::Metastore::V1beta::DataprocMetastore::Client.new
|
@@ -1276,6 +1276,126 @@ module Google
|
|
1276
1276
|
AVRO = 2
|
1277
1277
|
end
|
1278
1278
|
end
|
1279
|
+
|
1280
|
+
# Request message for
|
1281
|
+
# {::Google::Cloud::Metastore::V1beta::DataprocMetastore::Client#remove_iam_policy DataprocMetastore.RemoveIamPolicy}.
|
1282
|
+
# @!attribute [rw] resource
|
1283
|
+
# @return [::String]
|
1284
|
+
# Required. The relative resource name of the dataplane resource to remove
|
1285
|
+
# IAM policy, in the following form:
|
1286
|
+
#
|
1287
|
+
# `projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}`
|
1288
|
+
# or
|
1289
|
+
# `projects/{project_id}/locations/{location_id}/services/{service_id}/databases/{database_id}/tables/{table_id}`.
|
1290
|
+
# @!attribute [rw] asynchronous
|
1291
|
+
# @return [::Boolean]
|
1292
|
+
# Optional. Removes IAM policy attached to database or table asynchronously
|
1293
|
+
# when it is set. The default is false.
|
1294
|
+
class RemoveIamPolicyRequest
|
1295
|
+
include ::Google::Protobuf::MessageExts
|
1296
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1297
|
+
end
|
1298
|
+
|
1299
|
+
# Response message for
|
1300
|
+
# {::Google::Cloud::Metastore::V1beta::DataprocMetastore::Client#remove_iam_policy DataprocMetastore.RemoveIamPolicy}.
|
1301
|
+
# @!attribute [rw] success
|
1302
|
+
# @return [::Boolean]
|
1303
|
+
# True if the policy is successfully removed.
|
1304
|
+
class RemoveIamPolicyResponse
|
1305
|
+
include ::Google::Protobuf::MessageExts
|
1306
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1307
|
+
end
|
1308
|
+
|
1309
|
+
# Request message for
|
1310
|
+
# {::Google::Cloud::Metastore::V1beta::DataprocMetastore::Client#query_metadata DataprocMetastore.QueryMetadata}.
|
1311
|
+
# @!attribute [rw] service
|
1312
|
+
# @return [::String]
|
1313
|
+
# Required. The relative resource name of the metastore service to query
|
1314
|
+
# metadata, in the following format:
|
1315
|
+
#
|
1316
|
+
# `projects/{project_id}/locations/{location_id}/services/{service_id}`.
|
1317
|
+
# @!attribute [rw] query
|
1318
|
+
# @return [::String]
|
1319
|
+
# Required. A read-only SQL query to execute against the metadata database.
|
1320
|
+
# The query cannot change or mutate the data.
|
1321
|
+
class QueryMetadataRequest
|
1322
|
+
include ::Google::Protobuf::MessageExts
|
1323
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1324
|
+
end
|
1325
|
+
|
1326
|
+
# Response message for
|
1327
|
+
# {::Google::Cloud::Metastore::V1beta::DataprocMetastore::Client#query_metadata DataprocMetastore.QueryMetadata}.
|
1328
|
+
# @!attribute [rw] result_manifest_uri
|
1329
|
+
# @return [::String]
|
1330
|
+
# The manifest URI is link to a JSON instance in Cloud Storage.
|
1331
|
+
# This instance manifests immediately along with QueryMetadataResponse. The
|
1332
|
+
# content of the URI is not retriable until the long-running operation query
|
1333
|
+
# against the metadata finishes.
|
1334
|
+
class QueryMetadataResponse
|
1335
|
+
include ::Google::Protobuf::MessageExts
|
1336
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1337
|
+
end
|
1338
|
+
|
1339
|
+
# Request message for
|
1340
|
+
# {::Google::Cloud::Metastore::V1beta::DataprocMetastore::Client#move_table_to_database DataprocMetastore.MoveTableToDatabase}.
|
1341
|
+
# @!attribute [rw] service
|
1342
|
+
# @return [::String]
|
1343
|
+
# Required. The relative resource name of the metastore service to mutate
|
1344
|
+
# metadata, in the following format:
|
1345
|
+
#
|
1346
|
+
# `projects/{project_id}/locations/{location_id}/services/{service_id}`.
|
1347
|
+
# @!attribute [rw] table_name
|
1348
|
+
# @return [::String]
|
1349
|
+
# Required. The name of the table to be moved.
|
1350
|
+
# @!attribute [rw] db_name
|
1351
|
+
# @return [::String]
|
1352
|
+
# Required. The name of the database where the table resides.
|
1353
|
+
# @!attribute [rw] destination_db_name
|
1354
|
+
# @return [::String]
|
1355
|
+
# Required. The name of the database where the table should be moved.
|
1356
|
+
class MoveTableToDatabaseRequest
|
1357
|
+
include ::Google::Protobuf::MessageExts
|
1358
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1359
|
+
end
|
1360
|
+
|
1361
|
+
# Response message for
|
1362
|
+
# {::Google::Cloud::Metastore::V1beta::DataprocMetastore::Client#move_table_to_database DataprocMetastore.MoveTableToDatabase}.
|
1363
|
+
class MoveTableToDatabaseResponse
|
1364
|
+
include ::Google::Protobuf::MessageExts
|
1365
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1366
|
+
end
|
1367
|
+
|
1368
|
+
# Request message for
|
1369
|
+
# {::Google::Cloud::Metastore::V1beta::DataprocMetastore::Client#alter_metadata_resource_location DataprocMetastore.AlterMetadataResourceLocation}.
|
1370
|
+
# @!attribute [rw] service
|
1371
|
+
# @return [::String]
|
1372
|
+
# Required. The relative resource name of the metastore service to mutate
|
1373
|
+
# metadata, in the following format:
|
1374
|
+
#
|
1375
|
+
# `projects/{project_id}/locations/{location_id}/services/{service_id}`.
|
1376
|
+
# @!attribute [rw] resource_name
|
1377
|
+
# @return [::String]
|
1378
|
+
# Required. The relative metadata resource name in the following format.
|
1379
|
+
#
|
1380
|
+
# `databases/{database_id}`
|
1381
|
+
# or
|
1382
|
+
# `databases/{database_id}/tables/{table_id}`
|
1383
|
+
# or
|
1384
|
+
# `databases/{database_id}/tables/{table_id}/partitions/{partition_id}`
|
1385
|
+
# @!attribute [rw] location_uri
|
1386
|
+
# @return [::String]
|
1387
|
+
# Required. The new location URI for the metadata resource.
|
1388
|
+
class AlterMetadataResourceLocationRequest
|
1389
|
+
include ::Google::Protobuf::MessageExts
|
1390
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1391
|
+
end
|
1392
|
+
|
1393
|
+
# Response message for
|
1394
|
+
# {::Google::Cloud::Metastore::V1beta::DataprocMetastore::Client#alter_metadata_resource_location DataprocMetastore.AlterMetadataResourceLocation}.
|
1395
|
+
class AlterMetadataResourceLocationResponse
|
1396
|
+
include ::Google::Protobuf::MessageExts
|
1397
|
+
extend ::Google::Protobuf::MessageExts::ClassMethods
|
1398
|
+
end
|
1279
1399
|
end
|
1280
1400
|
end
|
1281
1401
|
end
|
@@ -38,8 +38,8 @@ module Google
|
|
38
38
|
# User-defined labels for the metastore federation.
|
39
39
|
# @!attribute [rw] version
|
40
40
|
# @return [::String]
|
41
|
-
# Immutable. The Apache Hive metastore version of the federation. All backend
|
42
|
-
# versions must be compatible with the federation version.
|
41
|
+
# Immutable. The Apache Hive metastore version of the federation. All backend
|
42
|
+
# metastore versions must be compatible with the federation version.
|
43
43
|
# @!attribute [rw] backend_metastores
|
44
44
|
# @return [::Google::Protobuf::Map{::Integer => ::Google::Cloud::Metastore::V1beta::BackendMetastore}]
|
45
45
|
# A map from `BackendMetastore` rank to `BackendMetastore`s from which the
|
@@ -56,11 +56,12 @@ module Google
|
|
56
56
|
# Output only. The current state of the federation.
|
57
57
|
# @!attribute [r] state_message
|
58
58
|
# @return [::String]
|
59
|
-
# Output only. Additional information about the current state of the
|
60
|
-
# if available.
|
59
|
+
# Output only. Additional information about the current state of the
|
60
|
+
# metastore federation, if available.
|
61
61
|
# @!attribute [r] uid
|
62
62
|
# @return [::String]
|
63
|
-
# Output only. The globally unique resource identifier of the metastore
|
63
|
+
# Output only. The globally unique resource identifier of the metastore
|
64
|
+
# federation.
|
64
65
|
class Federation
|
65
66
|
include ::Google::Protobuf::MessageExts
|
66
67
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -143,14 +144,15 @@ module Google
|
|
143
144
|
# Request message for ListFederations.
|
144
145
|
# @!attribute [rw] parent
|
145
146
|
# @return [::String]
|
146
|
-
# Required. The relative resource name of the location of metastore
|
147
|
-
# to list, in the following form:
|
147
|
+
# Required. The relative resource name of the location of metastore
|
148
|
+
# federations to list, in the following form:
|
148
149
|
# `projects/{project_number}/locations/{location_id}`.
|
149
150
|
# @!attribute [rw] page_size
|
150
151
|
# @return [::Integer]
|
151
|
-
# Optional. The maximum number of federations to return. The response may
|
152
|
-
# than the maximum number. If unspecified, no more than 500
|
153
|
-
# returned. The maximum value is 1000; values above 1000 are
|
152
|
+
# Optional. The maximum number of federations to return. The response may
|
153
|
+
# contain less than the maximum number. If unspecified, no more than 500
|
154
|
+
# services are returned. The maximum value is 1000; values above 1000 are
|
155
|
+
# changed to 1000.
|
154
156
|
# @!attribute [rw] page_token
|
155
157
|
# @return [::String]
|
156
158
|
# Optional. A page token, received from a previous ListFederationServices
|
@@ -193,8 +195,8 @@ module Google
|
|
193
195
|
# Request message for GetFederation.
|
194
196
|
# @!attribute [rw] name
|
195
197
|
# @return [::String]
|
196
|
-
# Required. The relative resource name of the metastore federation to
|
197
|
-
# in the following form:
|
198
|
+
# Required. The relative resource name of the metastore federation to
|
199
|
+
# retrieve, in the following form:
|
198
200
|
#
|
199
201
|
# `projects/{project_number}/locations/{location_id}/federations/{federation_id}`.
|
200
202
|
class GetFederationRequest
|
@@ -205,8 +207,8 @@ module Google
|
|
205
207
|
# Request message for CreateFederation.
|
206
208
|
# @!attribute [rw] parent
|
207
209
|
# @return [::String]
|
208
|
-
# Required. The relative resource name of the location in which to create a
|
209
|
-
# service, in the following form:
|
210
|
+
# Required. The relative resource name of the location in which to create a
|
211
|
+
# federation service, in the following form:
|
210
212
|
#
|
211
213
|
# `projects/{project_number}/locations/{location_id}`.
|
212
214
|
# @!attribute [rw] federation_id
|
@@ -224,10 +226,10 @@ module Google
|
|
224
226
|
# provided in the request's `federation_id` field.
|
225
227
|
# @!attribute [rw] request_id
|
226
228
|
# @return [::String]
|
227
|
-
# Optional. A request ID. Specify a unique request ID to allow the server to
|
228
|
-
# request if it has completed. The server will ignore subsequent
|
229
|
-
# that provide a duplicate request ID for at least 60 minutes after
|
230
|
-
# request.
|
229
|
+
# Optional. A request ID. Specify a unique request ID to allow the server to
|
230
|
+
# ignore the request if it has completed. The server will ignore subsequent
|
231
|
+
# requests that provide a duplicate request ID for at least 60 minutes after
|
232
|
+
# the first request.
|
231
233
|
#
|
232
234
|
# For example, if an initial request times out, followed by another request
|
233
235
|
# with the same request ID, the server ignores the second request to prevent
|
@@ -257,10 +259,10 @@ module Google
|
|
257
259
|
# metastore service to be updated.
|
258
260
|
# @!attribute [rw] request_id
|
259
261
|
# @return [::String]
|
260
|
-
# Optional. A request ID. Specify a unique request ID to allow the server to
|
261
|
-
# request if it has completed. The server will ignore subsequent
|
262
|
-
# that provide a duplicate request ID for at least 60 minutes after
|
263
|
-
# request.
|
262
|
+
# Optional. A request ID. Specify a unique request ID to allow the server to
|
263
|
+
# ignore the request if it has completed. The server will ignore subsequent
|
264
|
+
# requests that provide a duplicate request ID for at least 60 minutes after
|
265
|
+
# the first request.
|
264
266
|
#
|
265
267
|
# For example, if an initial request times out, followed by another request
|
266
268
|
# with the same request ID, the server ignores the second request to prevent
|
@@ -283,10 +285,10 @@ module Google
|
|
283
285
|
# `projects/{project_number}/locations/{location_id}/federations/{federation_id}`.
|
284
286
|
# @!attribute [rw] request_id
|
285
287
|
# @return [::String]
|
286
|
-
# Optional. A request ID. Specify a unique request ID to allow the server to
|
287
|
-
# request if it has completed. The server will ignore subsequent
|
288
|
-
# that provide a duplicate request ID for at least 60 minutes after
|
289
|
-
# request.
|
288
|
+
# Optional. A request ID. Specify a unique request ID to allow the server to
|
289
|
+
# ignore the request if it has completed. The server will ignore subsequent
|
290
|
+
# requests that provide a duplicate request ID for at least 60 minutes after
|
291
|
+
# the first request.
|
290
292
|
#
|
291
293
|
# For example, if an initial request times out, followed by another request
|
292
294
|
# with the same request ID, the server ignores the second request to prevent
|
@@ -28,12 +28,14 @@ module Google
|
|
28
28
|
# [API Design Guide](https://cloud.google.com/apis/design/errors).
|
29
29
|
# @!attribute [rw] code
|
30
30
|
# @return [::Integer]
|
31
|
-
# The status code, which should be an enum value of
|
31
|
+
# The status code, which should be an enum value of
|
32
|
+
# [google.rpc.Code][google.rpc.Code].
|
32
33
|
# @!attribute [rw] message
|
33
34
|
# @return [::String]
|
34
35
|
# A developer-facing error message, which should be in English. Any
|
35
36
|
# user-facing error message should be localized and sent in the
|
36
|
-
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
37
|
+
# {::Google::Rpc::Status#details google.rpc.Status.details} field, or localized
|
38
|
+
# by the client.
|
37
39
|
# @!attribute [rw] details
|
38
40
|
# @return [::Array<::Google::Protobuf::Any>]
|
39
41
|
# A list of messages that carry the error details. There is a common set of
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-metastore-v1beta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.4.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:
|
11
|
+
date: 2023-01-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: gapic-common
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 0.16.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version:
|
29
|
+
version: 0.16.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|