class TencentCloud::Vclm::V20240523::Client
def CheckAnimateImageJob(request)
-
request:
() -- Request instance for CheckAnimateImageJob.
def CheckAnimateImageJob(request) body = send_request('CheckAnimateImageJob', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = CheckAnimateImageJobResponse.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
def ConfirmVideoTranslateJob(request)
-
request:
() -- Request instance for ConfirmVideoTranslateJob.
def ConfirmVideoTranslateJob(request) body = send_request('ConfirmVideoTranslateJob', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = ConfirmVideoTranslateJobResponse.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
def DescribeImageAnimateJob(request)
-
request:
() -- Request instance for DescribeImageAnimateJob.
def DescribeImageAnimateJob(request) body = send_request('DescribeImageAnimateJob', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeImageAnimateJobResponse.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
def DescribePortraitSingJob(request)
-
request:
() -- Request instance for DescribePortraitSingJob.
def DescribePortraitSingJob(request) body = send_request('DescribePortraitSingJob', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribePortraitSingJobResponse.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
def DescribeVideoStylizationJob(request)
-
request:
() -- Request instance for DescribeVideoStylizationJob.
def DescribeVideoStylizationJob(request) body = send_request('DescribeVideoStylizationJob', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeVideoStylizationJobResponse.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
def DescribeVideoTranslateJob(request)
-
request:
() -- Request instance for DescribeVideoTranslateJob.
def DescribeVideoTranslateJob(request) body = send_request('DescribeVideoTranslateJob', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = DescribeVideoTranslateJobResponse.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
def SubmitImageAnimateJob(request)
-
request:
() -- Request instance for SubmitImageAnimateJob.
def SubmitImageAnimateJob(request) body = send_request('SubmitImageAnimateJob', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SubmitImageAnimateJobResponse.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
def SubmitPortraitSingJob(request)
-
request:
() -- Request instance for SubmitPortraitSingJob.
def SubmitPortraitSingJob(request) body = send_request('SubmitPortraitSingJob', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SubmitPortraitSingJobResponse.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
def SubmitVideoStylizationJob(request)
-
request:
() -- Request instance for SubmitVideoStylizationJob.
def SubmitVideoStylizationJob(request) body = send_request('SubmitVideoStylizationJob', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SubmitVideoStylizationJobResponse.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
def SubmitVideoTranslateJob(request)
-
request:
() -- Request instance for SubmitVideoTranslateJob.
def SubmitVideoTranslateJob(request) body = send_request('SubmitVideoTranslateJob', request.serialize) response = JSON.parse(body) if response['Response'].key?('Error') == false model = SubmitVideoTranslateJobResponse.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
def initialize(credential, region, profile = nil)
def initialize(credential, region, profile = nil) api_version = '2024-05-23' api_endpoint = 'vclm.tencentcloudapi.com' sdk_version = 'VCLM_' + File.read(File.expand_path('../VERSION', __dir__)).strip super(credential, region, api_version, api_endpoint, sdk_version, profile) end