Class: TencentCloud::Ams::V20201229::CreateAudioModerationTaskRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ams::V20201229::CreateAudioModerationTaskRequest
- Defined in:
- lib/v20201229/models.rb
Overview
CreateAudioModerationTask请求参数结构体
Instance Attribute Summary collapse
- #BizType ⇒ Object
- #CallbackUrl ⇒ Object
- #Seed ⇒ Object
- #Tasks ⇒ Object
- #Type ⇒ Object
- #User ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(tasks = nil, biztype = nil, type = nil, seed = nil, callbackurl = nil, user = nil) ⇒ CreateAudioModerationTaskRequest
constructor
A new instance of CreateAudioModerationTaskRequest.
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
#BizType ⇒ Object
591 592 593 |
# File 'lib/v20201229/models.rb', line 591 def BizType @BizType end |
#CallbackUrl ⇒ Object
591 592 593 |
# File 'lib/v20201229/models.rb', line 591 def CallbackUrl @CallbackUrl end |
#Seed ⇒ Object
591 592 593 |
# File 'lib/v20201229/models.rb', line 591 def Seed @Seed end |
#Tasks ⇒ Object
591 592 593 |
# File 'lib/v20201229/models.rb', line 591 def Tasks @Tasks end |
#Type ⇒ Object
591 592 593 |
# File 'lib/v20201229/models.rb', line 591 def Type @Type end |
#User ⇒ Object
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 |