Class: TencentCloud::Iotvideoindustry::V20201201::CreateRecordPlanRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iotvideoindustry::V20201201::CreateRecordPlanRequest
- Defined in:
- lib/v20201201/models.rb
Overview
CreateRecordPlan请求参数结构体
Instance Attribute Summary collapse
- #Devices ⇒ Object
- #EventId ⇒ Object
- #Name ⇒ Object
- #RecordStorageTime ⇒ Object
- #TimeTemplateId ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, timetemplateid = nil, eventid = nil, devices = nil, recordstoragetime = nil) ⇒ CreateRecordPlanRequest
constructor
A new instance of CreateRecordPlanRequest.
Constructor Details
#initialize(name = nil, timetemplateid = nil, eventid = nil, devices = nil, recordstoragetime = nil) ⇒ CreateRecordPlanRequest
Returns a new instance of CreateRecordPlanRequest.
848 849 850 851 852 853 854 |
# File 'lib/v20201201/models.rb', line 848 def initialize(name=nil, timetemplateid=nil, eventid=nil, devices=nil, recordstoragetime=nil) @Name = name @TimeTemplateId = timetemplateid @EventId = eventid @Devices = devices @RecordStorageTime = recordstoragetime end |
Instance Attribute Details
#Devices ⇒ Object
846 847 848 |
# File 'lib/v20201201/models.rb', line 846 def Devices @Devices end |
#EventId ⇒ Object
846 847 848 |
# File 'lib/v20201201/models.rb', line 846 def EventId @EventId end |
#Name ⇒ Object
846 847 848 |
# File 'lib/v20201201/models.rb', line 846 def Name @Name end |
#RecordStorageTime ⇒ Object
846 847 848 |
# File 'lib/v20201201/models.rb', line 846 def RecordStorageTime @RecordStorageTime end |
#TimeTemplateId ⇒ Object
846 847 848 |
# File 'lib/v20201201/models.rb', line 846 def TimeTemplateId @TimeTemplateId end |
Instance Method Details
#deserialize(params) ⇒ Object
856 857 858 859 860 861 862 863 864 865 866 867 868 869 |
# File 'lib/v20201201/models.rb', line 856 def deserialize(params) @Name = params['Name'] @TimeTemplateId = params['TimeTemplateId'] @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 |