Class: TencentCloud::Ams::V20200608::CreateAudioModerationTaskRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Ams::V20200608::CreateAudioModerationTaskRequest
- Defined in:
- lib/v20200608/models.rb
Overview
CreateAudioModerationTask请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(biztype = nil, type = nil, seed = nil, callbackurl = nil, tasks = nil) ⇒ CreateAudioModerationTaskRequest
constructor
A new instance of CreateAudioModerationTaskRequest.
Constructor Details
#initialize(biztype = nil, type = nil, seed = nil, callbackurl = nil, tasks = nil) ⇒ CreateAudioModerationTaskRequest
Returns a new instance of CreateAudioModerationTaskRequest.
394 395 396 397 398 399 400 |
# File 'lib/v20200608/models.rb', line 394 def initialize(biztype=nil, type=nil, seed=nil, callbackurl=nil, tasks=nil) @BizType = biztype @Type = type @Seed = seed @CallbackUrl = callbackurl @Tasks = tasks end |
Instance Attribute Details
#BizType ⇒ Object
392 393 394 |
# File 'lib/v20200608/models.rb', line 392 def BizType @BizType end |
#CallbackUrl ⇒ Object
392 393 394 |
# File 'lib/v20200608/models.rb', line 392 def CallbackUrl @CallbackUrl end |
#Seed ⇒ Object
392 393 394 |
# File 'lib/v20200608/models.rb', line 392 def Seed @Seed end |
#Tasks ⇒ Object
392 393 394 |
# File 'lib/v20200608/models.rb', line 392 def Tasks @Tasks end |
#Type ⇒ Object
392 393 394 |
# File 'lib/v20200608/models.rb', line 392 def Type @Type end |
Instance Method Details
#deserialize(params) ⇒ Object
402 403 404 405 406 407 408 409 410 411 412 413 414 415 |
# File 'lib/v20200608/models.rb', line 402 def deserialize(params) @BizType = params['BizType'] @Type = params['Type'] @Seed = params['Seed'] @CallbackUrl = params['CallbackUrl'] unless params['Tasks'].nil? @Tasks = [] params['Tasks'].each do |i| taskinput_tmp = TaskInput.new taskinput_tmp.deserialize(i) @Tasks << taskinput_tmp end end end |