Class: TencentCloud::Iotvideoindustry::V20201201::UpdateTimeTemplateRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iotvideoindustry::V20201201::UpdateTimeTemplateRequest
- Defined in:
- lib/v20201201/models.rb
Overview
UpdateTimeTemplate请求参数结构体
Instance Attribute Summary collapse
-
#IsAllWeek ⇒ Object
0:非全时录制;1:全时录制。默认1.
-
#Name ⇒ Object
0:非全时录制;1:全时录制。默认1.
-
#TemplateId ⇒ Object
0:非全时录制;1:全时录制。默认1.
-
#TimeTemplateSpecs ⇒ Object
0:非全时录制;1:全时录制。默认1.
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(templateid = nil, name = nil, isallweek = nil, timetemplatespecs = nil) ⇒ UpdateTimeTemplateRequest
constructor
A new instance of UpdateTimeTemplateRequest.
Constructor Details
#initialize(templateid = nil, name = nil, isallweek = nil, timetemplatespecs = nil) ⇒ UpdateTimeTemplateRequest
Returns a new instance of UpdateTimeTemplateRequest.
6405 6406 6407 6408 6409 6410 |
# File 'lib/v20201201/models.rb', line 6405 def initialize(templateid=nil, name=nil, isallweek=nil, timetemplatespecs=nil) @TemplateId = templateid @Name = name @IsAllWeek = isallweek @TimeTemplateSpecs = timetemplatespecs end |
Instance Attribute Details
#IsAllWeek ⇒ Object
0:非全时录制;1:全时录制。默认1
6403 6404 6405 |
# File 'lib/v20201201/models.rb', line 6403 def IsAllWeek @IsAllWeek end |
#Name ⇒ Object
0:非全时录制;1:全时录制。默认1
6403 6404 6405 |
# File 'lib/v20201201/models.rb', line 6403 def Name @Name end |
#TemplateId ⇒ Object
0:非全时录制;1:全时录制。默认1
6403 6404 6405 |
# File 'lib/v20201201/models.rb', line 6403 def TemplateId @TemplateId end |
#TimeTemplateSpecs ⇒ Object
0:非全时录制;1:全时录制。默认1
6403 6404 6405 |
# File 'lib/v20201201/models.rb', line 6403 def TimeTemplateSpecs @TimeTemplateSpecs end |
Instance Method Details
#deserialize(params) ⇒ Object
6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 |
# File 'lib/v20201201/models.rb', line 6412 def deserialize(params) @TemplateId = params['TemplateId'] @Name = params['Name'] @IsAllWeek = params['IsAllWeek'] unless params['TimeTemplateSpecs'].nil? @TimeTemplateSpecs = [] params['TimeTemplateSpecs'].each do |i| timetemplatespec_tmp = TimeTemplateSpec.new timetemplatespec_tmp.deserialize(i) @TimeTemplateSpecs << timetemplatespec_tmp end end end |