Class: TencentCloud::Ams::V20201229::CreateAudioModerationTaskRequest

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

Overview

CreateAudioModerationTask请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(tasks = nil, biztype = nil, type = nil, seed = nil, callbackurl = nil, user = nil) ⇒ CreateAudioModerationTaskRequest

Returns a new instance of CreateAudioModerationTaskRequest.



593
594
595
596
597
598
599
600
# File 'lib/v20201229/models.rb', line 593

def initialize(tasks=nil, biztype=nil, type=nil, seed=nil, callbackurl=nil, user=nil)
  @Tasks = tasks
  @BizType = biztype
  @Type = type
  @Seed = seed
  @CallbackUrl = callbackurl
  @User = user
end

Instance Attribute Details

#BizTypeObject

Parameters:



591
592
593
# File 'lib/v20201229/models.rb', line 591

def BizType
  @BizType
end

#CallbackUrlObject

Parameters:



591
592
593
# File 'lib/v20201229/models.rb', line 591

def CallbackUrl
  @CallbackUrl
end

#SeedObject

Parameters:



591
592
593
# File 'lib/v20201229/models.rb', line 591

def Seed
  @Seed
end

#TasksObject

Parameters:



591
592
593
# File 'lib/v20201229/models.rb', line 591

def Tasks
  @Tasks
end

#TypeObject

Parameters:



591
592
593
# File 'lib/v20201229/models.rb', line 591

def Type
  @Type
end

#UserObject

Parameters:



591
592
593
# File 'lib/v20201229/models.rb', line 591

def User
  @User
end

Instance Method Details

#deserialize(params) ⇒ Object



602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
# File 'lib/v20201229/models.rb', line 602

def deserialize(params)
  unless params['Tasks'].nil?
    @Tasks = []
    params['Tasks'].each do |i|
      taskinput_tmp = TaskInput.new
      taskinput_tmp.deserialize(i)
      @Tasks << taskinput_tmp
    end
  end
  @BizType = params['BizType']
  @Type = params['Type']
  @Seed = params['Seed']
  @CallbackUrl = params['CallbackUrl']
  unless params['User'].nil?
    @User = User.new
    @User.deserialize(params['User'])
  end
end