lib/v20210820/client.rb in tencentcloud-sdk-wedata-3.0.688 vs lib/v20210820/client.rb in tencentcloud-sdk-wedata-3.0.689
- old
+ new
@@ -2319,9 +2319,33 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
+ # 查询数据库列表
+
+ # @param request: Request instance for DescribeDatabaseMetas.
+ # @type request: :class:`Tencentcloud::wedata::V20210820::DescribeDatabaseMetasRequest`
+ # @rtype: :class:`Tencentcloud::wedata::V20210820::DescribeDatabaseMetasResponse`
+ def DescribeDatabaseMetas(request)
+ body = send_request('DescribeDatabaseMetas', request.serialize)
+ response = JSON.parse(body)
+ if response['Response'].key?('Error') == false
+ model = DescribeDatabaseMetasResponse.new
+ model.deserialize(response['Response'])
+ model
+ else
+ code = response['Response']['Error']['Code']
+ message = response['Response']['Error']['Message']
+ reqid = response['Response']['RequestId']
+ raise TencentCloud::Common::TencentCloudSDKException.new(code, message, reqid)
+ end
+ rescue TencentCloud::Common::TencentCloudSDKException => e
+ raise e
+ rescue StandardError => e
+ raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
+ end
+
# <p style="color:red;">[注意:该Beta版本只满足广州区部分白名单客户使用]</p>
# 数据源详情
# @param request: Request instance for DescribeDatasource.
# @type request: :class:`Tencentcloud::wedata::V20210820::DescribeDatasourceRequest`
\ No newline at end of file