lib/v20210820/client.rb in tencentcloud-sdk-wedata-3.0.456 vs lib/v20210820/client.rb in tencentcloud-sdk-wedata-3.0.457

- old
+ new

@@ -848,9 +848,33 @@ raise e rescue StandardError => e raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect) end + # 文件路径的根目录为 /datastudio/resource,如果要在根目录下创建 aaa 文件夹,FilePath的值应该为 /datastudio/resource,如果根目录下已经创建了 aaa 文件夹,要在 aaa 下创建 bbb 文件夹,FilePath的值应该为 /datastudio/resource/aaa + + # @param request: Request instance for CreateResourcePath. + # @type request: :class:`Tencentcloud::wedata::V20210820::CreateResourcePathRequest` + # @rtype: :class:`Tencentcloud::wedata::V20210820::CreateResourcePathResponse` + def CreateResourcePath(request) + body = send_request('CreateResourcePath', request.serialize) + response = JSON.parse(body) + if response['Response'].key?('Error') == false + model = CreateResourcePathResponse.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 + # 创建质量规则接口 # @param request: Request instance for CreateRule. # @type request: :class:`Tencentcloud::wedata::V20210820::CreateRuleRequest` # @rtype: :class:`Tencentcloud::wedata::V20210820::CreateRuleResponse` \ No newline at end of file