Class: TencentCloud::Mps::V20190612::ImageProcessTaskResult

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20190612/models.rb

Overview

图片处理任务结果类型

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(status = nil, errmsg = nil, message = nil, output = nil, progress = nil) ⇒ ImageProcessTaskResult

Returns a new instance of ImageProcessTaskResult.



17958
17959
17960
17961
17962
17963
17964
# File 'lib/v20190612/models.rb', line 17958

def initialize(status=nil, errmsg=nil, message=nil, output=nil, progress=nil)
  @Status = status
  @ErrMsg = errmsg
  @Message = message
  @Output = output
  @Progress = progress
end

Instance Attribute Details

#ErrMsgObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Status:

    任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。

  • ErrMsg:

    错误码,空字符串表示成功,其他值表示失败,取值请参考 媒体处理类错误码 列表。

  • Message:

    错误信息。

  • Output:

    转码任务的输出。

  • Progress:

    转码进度,取值范围 [0-100]



17956
17957
17958
# File 'lib/v20190612/models.rb', line 17956

def ErrMsg
  @ErrMsg
end

#MessageObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Status:

    任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。

  • ErrMsg:

    错误码,空字符串表示成功,其他值表示失败,取值请参考 媒体处理类错误码 列表。

  • Message:

    错误信息。

  • Output:

    转码任务的输出。

  • Progress:

    转码进度,取值范围 [0-100]



17956
17957
17958
# File 'lib/v20190612/models.rb', line 17956

def Message
  @Message
end

#OutputObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Status:

    任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。

  • ErrMsg:

    错误码,空字符串表示成功,其他值表示失败,取值请参考 媒体处理类错误码 列表。

  • Message:

    错误信息。

  • Output:

    转码任务的输出。

  • Progress:

    转码进度,取值范围 [0-100]



17956
17957
17958
# File 'lib/v20190612/models.rb', line 17956

def Output
  @Output
end

#ProgressObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Status:

    任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。

  • ErrMsg:

    错误码,空字符串表示成功,其他值表示失败,取值请参考 媒体处理类错误码 列表。

  • Message:

    错误信息。

  • Output:

    转码任务的输出。

  • Progress:

    转码进度,取值范围 [0-100]



17956
17957
17958
# File 'lib/v20190612/models.rb', line 17956

def Progress
  @Progress
end

#StatusObject

注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。 注意:此字段可能返回 null,表示取不到有效值。

Parameters:

  • Status:

    任务状态,有 PROCESSING,SUCCESS 和 FAIL 三种。

  • ErrMsg:

    错误码,空字符串表示成功,其他值表示失败,取值请参考 媒体处理类错误码 列表。

  • Message:

    错误信息。

  • Output:

    转码任务的输出。

  • Progress:

    转码进度,取值范围 [0-100]



17956
17957
17958
# File 'lib/v20190612/models.rb', line 17956

def Status
  @Status
end

Instance Method Details

#deserialize(params) ⇒ Object



17966
17967
17968
17969
17970
17971
17972
17973
17974
17975
# File 'lib/v20190612/models.rb', line 17966

def deserialize(params)
  @Status = params['Status']
  @ErrMsg = params['ErrMsg']
  @Message = params['Message']
  unless params['Output'].nil?
    @Output = ImageProcessTaskOutput.new
    @Output.deserialize(params['Output'])
  end
  @Progress = params['Progress']
end