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, message = nil, output = nil, progress = nil) ⇒ ImageProcessTaskResult

Returns a new instance of ImageProcessTaskResult.



15413
15414
15415
15416
15417
15418
# File 'lib/v20190612/models.rb', line 15413

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

Instance Attribute Details

#MessageObject

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

Parameters:

  • Status:

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

  • Message:

    错误信息。

  • Output:

    转码任务的输出。

  • Progress:

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



15411
15412
15413
# File 'lib/v20190612/models.rb', line 15411

def Message
  @Message
end

#OutputObject

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

Parameters:

  • Status:

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

  • Message:

    错误信息。

  • Output:

    转码任务的输出。

  • Progress:

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



15411
15412
15413
# File 'lib/v20190612/models.rb', line 15411

def Output
  @Output
end

#ProgressObject

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

Parameters:

  • Status:

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

  • Message:

    错误信息。

  • Output:

    转码任务的输出。

  • Progress:

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



15411
15412
15413
# File 'lib/v20190612/models.rb', line 15411

def Progress
  @Progress
end

#StatusObject

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

Parameters:

  • Status:

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

  • Message:

    错误信息。

  • Output:

    转码任务的输出。

  • Progress:

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



15411
15412
15413
# File 'lib/v20190612/models.rb', line 15411

def Status
  @Status
end

Instance Method Details

#deserialize(params) ⇒ Object



15420
15421
15422
15423
15424
15425
15426
15427
15428
# File 'lib/v20190612/models.rb', line 15420

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