Class: TencentCloud::Iss::V20230517::ControlDevicePresetRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20230517/models.rb

Overview

ControlDevicePreset请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(channelid = nil, cmd = nil, index = nil) ⇒ ControlDevicePresetRequest

Returns a new instance of ControlDevicePresetRequest.



1632
1633
1634
1635
1636
# File 'lib/v20230517/models.rb', line 1632

def initialize(channelid=nil, cmd=nil, index=nil)
  @ChannelId = channelid
  @Cmd = cmd
  @Index = index
end

Instance Attribute Details

#ChannelIdObject

set:预置位设置;del:预置位删除)

Parameters:

  • ChannelId:

    通道 ID(从通道查询接口DescribeDeviceChannel中获取)

  • Cmd:

    命令(goto:预置位调用;

  • Index:

    预置位索引(只支持1-10的索引位置,超出报错)



1630
1631
1632
# File 'lib/v20230517/models.rb', line 1630

def ChannelId
  @ChannelId
end

#CmdObject

set:预置位设置;del:预置位删除)

Parameters:

  • ChannelId:

    通道 ID(从通道查询接口DescribeDeviceChannel中获取)

  • Cmd:

    命令(goto:预置位调用;

  • Index:

    预置位索引(只支持1-10的索引位置,超出报错)



1630
1631
1632
# File 'lib/v20230517/models.rb', line 1630

def Cmd
  @Cmd
end

#IndexObject

set:预置位设置;del:预置位删除)

Parameters:

  • ChannelId:

    通道 ID(从通道查询接口DescribeDeviceChannel中获取)

  • Cmd:

    命令(goto:预置位调用;

  • Index:

    预置位索引(只支持1-10的索引位置,超出报错)



1630
1631
1632
# File 'lib/v20230517/models.rb', line 1630

def Index
  @Index
end

Instance Method Details

#deserialize(params) ⇒ Object



1638
1639
1640
1641
1642
# File 'lib/v20230517/models.rb', line 1638

def deserialize(params)
  @ChannelId = params['ChannelId']
  @Cmd = params['Cmd']
  @Index = params['Index']
end