Class: TencentCloud::Iotvideoindustry::V20201201::RecordPlanItem
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iotvideoindustry::V20201201::RecordPlanItem
- Defined in:
- lib/v20201201/models.rb
Overview
录制计划详情
Instance Attribute Summary collapse
- #Devices ⇒ Object
- #EventId ⇒ Object
- #Name ⇒ Object
- #PlanId ⇒ Object
- #RecordStorageTime ⇒ Object
- #TimeTemplateId ⇒ Object
- #TimeTemplateName ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(planid = nil, name = nil, timetemplateid = nil, timetemplatename = nil, eventid = nil, devices = nil, recordstoragetime = nil) ⇒ RecordPlanItem
constructor
A new instance of RecordPlanItem.
Constructor Details
#initialize(planid = nil, name = nil, timetemplateid = nil, timetemplatename = nil, eventid = nil, devices = nil, recordstoragetime = nil) ⇒ RecordPlanItem
Returns a new instance of RecordPlanItem.
5669 5670 5671 5672 5673 5674 5675 5676 5677 |
# File 'lib/v20201201/models.rb', line 5669 def initialize(planid=nil, name=nil, timetemplateid=nil, timetemplatename=nil, eventid=nil, devices=nil, recordstoragetime=nil) @PlanId = planid @Name = name @TimeTemplateId = timetemplateid @TimeTemplateName = timetemplatename @EventId = eventid @Devices = devices @RecordStorageTime = recordstoragetime end |
Instance Attribute Details
#Devices ⇒ Object
5667 5668 5669 |
# File 'lib/v20201201/models.rb', line 5667 def Devices @Devices end |
#EventId ⇒ Object
5667 5668 5669 |
# File 'lib/v20201201/models.rb', line 5667 def EventId @EventId end |
#Name ⇒ Object
5667 5668 5669 |
# File 'lib/v20201201/models.rb', line 5667 def Name @Name end |
#PlanId ⇒ Object
5667 5668 5669 |
# File 'lib/v20201201/models.rb', line 5667 def PlanId @PlanId end |
#RecordStorageTime ⇒ Object
5667 5668 5669 |
# File 'lib/v20201201/models.rb', line 5667 def RecordStorageTime @RecordStorageTime end |
#TimeTemplateId ⇒ Object
5667 5668 5669 |
# File 'lib/v20201201/models.rb', line 5667 def TimeTemplateId @TimeTemplateId end |
#TimeTemplateName ⇒ Object
5667 5668 5669 |
# File 'lib/v20201201/models.rb', line 5667 def TimeTemplateName @TimeTemplateName end |
Instance Method Details
#deserialize(params) ⇒ Object
5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 |
# File 'lib/v20201201/models.rb', line 5679 def deserialize(params) @PlanId = params['PlanId'] @Name = params['Name'] @TimeTemplateId = params['TimeTemplateId'] @TimeTemplateName = params['TimeTemplateName'] @EventId = params['EventId'] unless params['Devices'].nil? @Devices = [] params['Devices'].each do |i| deviceitem_tmp = DeviceItem.new deviceitem_tmp.deserialize(i) @Devices << deviceitem_tmp end end @RecordStorageTime = params['RecordStorageTime'] end |