class TencentCloud::Tsf::V20180326::CreateTaskRequest

CreateTask请求参数结构体

def deserialize(params)

def deserialize(params)
  @TaskName = params['TaskName']
  @TaskContent = params['TaskContent']
  @ExecuteType = params['ExecuteType']
  @TaskType = params['TaskType']
  @TimeOut = params['TimeOut']
  @GroupId = params['GroupId']
  unless params['TaskRule'].nil?
    @TaskRule = TaskRule.new
    @TaskRule.deserialize(params['TaskRule'])
  end
  @RetryCount = params['RetryCount']
  @RetryInterval = params['RetryInterval']
  @ShardCount = params['ShardCount']
  unless params['ShardArguments'].nil?
    @ShardArguments = []
    params['ShardArguments'].each do |i|
      shardargument_tmp = ShardArgument.new
      shardargument_tmp.deserialize(i)
      @ShardArguments << shardargument_tmp
    end
  end
  @SuccessOperator = params['SuccessOperator']
  @SuccessRatio = params['SuccessRatio']
  unless params['AdvanceSettings'].nil?
    @AdvanceSettings = AdvanceSettings.new
    @AdvanceSettings.deserialize(params['AdvanceSettings'])
  end
  @TaskArgument = params['TaskArgument']
  @ProgramIdList = params['ProgramIdList']
end

def initialize(taskname=nil, taskcontent=nil, executetype=nil, tasktype=nil, timeout=nil, groupid=nil, taskrule=nil, retrycount=nil, retryinterval=nil, shardcount=nil, shardarguments=nil, successoperator=nil, successratio=nil, advancesettings=nil, taskargument=nil, programidlist=nil)

def initialize(taskname=nil, taskcontent=nil, executetype=nil, tasktype=nil, timeout=nil, groupid=nil, taskrule=nil, retrycount=nil, retryinterval=nil, shardcount=nil, shardarguments=nil, successoperator=nil, successratio=nil, advancesettings=nil, taskargument=nil, programidlist=nil)
  @TaskName = taskname
  @TaskContent = taskcontent
  @ExecuteType = executetype
  @TaskType = tasktype
  @TimeOut = timeout
  @GroupId = groupid
  @TaskRule = taskrule
  @RetryCount = retrycount
  @RetryInterval = retryinterval
  @ShardCount = shardcount
  @ShardArguments = shardarguments
  @SuccessOperator = successoperator
  @SuccessRatio = successratio
  @AdvanceSettings = advancesettings
  @TaskArgument = taskargument
  @ProgramIdList = programidlist
end