Class: TencentCloud::Iotvideoindustry::V20201201::CreateRecordingPlanRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iotvideoindustry::V20201201::CreateRecordingPlanRequest
- Defined in:
- lib/v20201201/models.rb
Overview
CreateRecordingPlan请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(name = nil, timetemplateid = nil, channels = nil, recordstoragetime = nil) ⇒ CreateRecordingPlanRequest
constructor
A new instance of CreateRecordingPlanRequest.
Constructor Details
#initialize(name = nil, timetemplateid = nil, channels = nil, recordstoragetime = nil) ⇒ CreateRecordingPlanRequest
Returns a new instance of CreateRecordingPlanRequest.
905 906 907 908 909 910 |
# File 'lib/v20201201/models.rb', line 905 def initialize(name=nil, timetemplateid=nil, channels=nil, recordstoragetime=nil) @Name = name @TimeTemplateId = timetemplateid @Channels = channels @RecordStorageTime = recordstoragetime end |
Instance Attribute Details
#Channels ⇒ Object
903 904 905 |
# File 'lib/v20201201/models.rb', line 903 def Channels @Channels end |
#Name ⇒ Object
903 904 905 |
# File 'lib/v20201201/models.rb', line 903 def Name @Name end |
#RecordStorageTime ⇒ Object
903 904 905 |
# File 'lib/v20201201/models.rb', line 903 def RecordStorageTime @RecordStorageTime end |
#TimeTemplateId ⇒ Object
903 904 905 |
# File 'lib/v20201201/models.rb', line 903 def TimeTemplateId @TimeTemplateId end |
Instance Method Details
#deserialize(params) ⇒ Object
912 913 914 915 916 917 918 919 920 921 922 923 924 |
# File 'lib/v20201201/models.rb', line 912 def deserialize(params) @Name = params['Name'] @TimeTemplateId = params['TimeTemplateId'] unless params['Channels'].nil? @Channels = [] params['Channels'].each do |i| channelitem_tmp = ChannelItem.new channelitem_tmp.deserialize(i) @Channels << channelitem_tmp end end @RecordStorageTime = params['RecordStorageTime'] end |