lib/v20201016/client.rb in tencentcloud-sdk-cls-1.0.234 vs lib/v20201016/client.rb in tencentcloud-sdk-cls-1.0.235
- old
+ new
@@ -99,58 +99,10 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
- # 本接口用于创建离线上下文任务
-
- # @param request: Request instance for CreateAsyncContextTask.
- # @type request: :class:`Tencentcloud::cls::V20201016::CreateAsyncContextTaskRequest`
- # @rtype: :class:`Tencentcloud::cls::V20201016::CreateAsyncContextTaskResponse`
- def CreateAsyncContextTask(request)
- body = send_request('CreateAsyncContextTask', request.serialize)
- response = JSON.parse(body)
- if response['Response'].key?('Error') == false
- model = CreateAsyncContextTaskResponse.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 CreateAsyncSearchTask.
- # @type request: :class:`Tencentcloud::cls::V20201016::CreateAsyncSearchTaskRequest`
- # @rtype: :class:`Tencentcloud::cls::V20201016::CreateAsyncSearchTaskResponse`
- def CreateAsyncSearchTask(request)
- body = send_request('CreateAsyncSearchTask', request.serialize)
- response = JSON.parse(body)
- if response['Response'].key?('Error') == false
- model = CreateAsyncSearchTaskResponse.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 CreateConfig.
# @type request: :class:`Tencentcloud::cls::V20201016::CreateConfigRequest`
# @rtype: :class:`Tencentcloud::cls::V20201016::CreateConfigResponse`
@@ -387,58 +339,10 @@
raise e
rescue StandardError => e
raise TencentCloud::Common::TencentCloudSDKException.new(nil, e.inspect)
end
- # 本接口用于删除离线上下文任务
-
- # @param request: Request instance for DeleteAsyncContextTask.
- # @type request: :class:`Tencentcloud::cls::V20201016::DeleteAsyncContextTaskRequest`
- # @rtype: :class:`Tencentcloud::cls::V20201016::DeleteAsyncContextTaskResponse`
- def DeleteAsyncContextTask(request)
- body = send_request('DeleteAsyncContextTask', request.serialize)
- response = JSON.parse(body)
- if response['Response'].key?('Error') == false
- model = DeleteAsyncContextTaskResponse.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 DeleteAsyncSearchTask.
- # @type request: :class:`Tencentcloud::cls::V20201016::DeleteAsyncSearchTaskRequest`
- # @rtype: :class:`Tencentcloud::cls::V20201016::DeleteAsyncSearchTaskResponse`
- def DeleteAsyncSearchTask(request)
- body = send_request('DeleteAsyncSearchTask', request.serialize)
- response = JSON.parse(body)
- if response['Response'].key?('Error') == false
- model = DeleteAsyncSearchTaskResponse.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 DeleteConfig.
# @type request: :class:`Tencentcloud::cls::V20201016::DeleteConfigRequest`
# @rtype: :class:`Tencentcloud::cls::V20201016::DeleteConfigResponse`
@@ -685,105 +589,9 @@
def DescribeAlarms(request)
body = send_request('DescribeAlarms', request.serialize)
response = JSON.parse(body)
if response['Response'].key?('Error') == false
model = DescribeAlarmsResponse.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 DescribeAsyncContextResult.
- # @type request: :class:`Tencentcloud::cls::V20201016::DescribeAsyncContextResultRequest`
- # @rtype: :class:`Tencentcloud::cls::V20201016::DescribeAsyncContextResultResponse`
- def DescribeAsyncContextResult(request)
- body = send_request('DescribeAsyncContextResult', request.serialize)
- response = JSON.parse(body)
- if response['Response'].key?('Error') == false
- model = DescribeAsyncContextResultResponse.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 DescribeAsyncContextTasks.
- # @type request: :class:`Tencentcloud::cls::V20201016::DescribeAsyncContextTasksRequest`
- # @rtype: :class:`Tencentcloud::cls::V20201016::DescribeAsyncContextTasksResponse`
- def DescribeAsyncContextTasks(request)
- body = send_request('DescribeAsyncContextTasks', request.serialize)
- response = JSON.parse(body)
- if response['Response'].key?('Error') == false
- model = DescribeAsyncContextTasksResponse.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 DescribeAsyncSearchResult.
- # @type request: :class:`Tencentcloud::cls::V20201016::DescribeAsyncSearchResultRequest`
- # @rtype: :class:`Tencentcloud::cls::V20201016::DescribeAsyncSearchResultResponse`
- def DescribeAsyncSearchResult(request)
- body = send_request('DescribeAsyncSearchResult', request.serialize)
- response = JSON.parse(body)
- if response['Response'].key?('Error') == false
- model = DescribeAsyncSearchResultResponse.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 DescribeAsyncSearchTasks.
- # @type request: :class:`Tencentcloud::cls::V20201016::DescribeAsyncSearchTasksRequest`
- # @rtype: :class:`Tencentcloud::cls::V20201016::DescribeAsyncSearchTasksResponse`
- def DescribeAsyncSearchTasks(request)
- body = send_request('DescribeAsyncSearchTasks', request.serialize)
- response = JSON.parse(body)
- if response['Response'].key?('Error') == false
- model = DescribeAsyncSearchTasksResponse.new
model.deserialize(response['Response'])
model
else
code = response['Response']['Error']['Code']
message = response['Response']['Error']['Message']
\ No newline at end of file