Class: TencentCloud::Iotvideoindustry::V20201201::CreateSceneRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iotvideoindustry::V20201201::CreateSceneRequest
- Defined in:
- lib/v20201201/models.rb
Overview
CreateScene请求参数结构体
Instance Attribute Summary collapse
- #Channels ⇒ Object
- #Devices ⇒ Object
- #RecordDuration ⇒ Object
- #SceneName ⇒ Object
- #SceneTrigger ⇒ Object
- #StoreDuration ⇒ Object
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(scenename = nil, scenetrigger = nil, recordduration = nil, storeduration = nil, devices = nil, channels = nil) ⇒ CreateSceneRequest
constructor
A new instance of CreateSceneRequest.
Constructor Details
#initialize(scenename = nil, scenetrigger = nil, recordduration = nil, storeduration = nil, devices = nil, channels = nil) ⇒ CreateSceneRequest
Returns a new instance of CreateSceneRequest.
964 965 966 967 968 969 970 971 |
# File 'lib/v20201201/models.rb', line 964 def initialize(scenename=nil, scenetrigger=nil, recordduration=nil, storeduration=nil, devices=nil, channels=nil) @SceneName = scenename @SceneTrigger = scenetrigger @RecordDuration = recordduration @StoreDuration = storeduration @Devices = devices @Channels = channels end |
Instance Attribute Details
#Channels ⇒ Object
962 963 964 |
# File 'lib/v20201201/models.rb', line 962 def Channels @Channels end |
#Devices ⇒ Object
962 963 964 |
# File 'lib/v20201201/models.rb', line 962 def Devices @Devices end |
#RecordDuration ⇒ Object
962 963 964 |
# File 'lib/v20201201/models.rb', line 962 def RecordDuration @RecordDuration end |
#SceneName ⇒ Object
962 963 964 |
# File 'lib/v20201201/models.rb', line 962 def SceneName @SceneName end |
#SceneTrigger ⇒ Object
962 963 964 |
# File 'lib/v20201201/models.rb', line 962 def SceneTrigger @SceneTrigger end |
#StoreDuration ⇒ Object
962 963 964 |
# File 'lib/v20201201/models.rb', line 962 def StoreDuration @StoreDuration end |
Instance Method Details
#deserialize(params) ⇒ Object
973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 |
# File 'lib/v20201201/models.rb', line 973 def deserialize(params) @SceneName = params['SceneName'] @SceneTrigger = params['SceneTrigger'] @RecordDuration = params['RecordDuration'] @StoreDuration = params['StoreDuration'] unless params['Devices'].nil? @Devices = [] params['Devices'].each do |i| deviceitem_tmp = DeviceItem.new deviceitem_tmp.deserialize(i) @Devices << deviceitem_tmp end end unless params['Channels'].nil? @Channels = [] params['Channels'].each do |i| channelitem_tmp = ChannelItem.new channelitem_tmp.deserialize(i) @Channels << channelitem_tmp end end end |