Class: TencentCloud::Iotvideoindustry::V20201201::CreateDeviceRequest

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

Overview

CreateDevice请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(nickname = nil, password = nil, devicetype = nil, groupid = nil) ⇒ CreateDeviceRequest

Returns a new instance of CreateDeviceRequest.



627
628
629
630
631
632
# File 'lib/v20201201/models.rb', line 627

def initialize(nickname=nil, password=nil, devicetype=nil, groupid=nil)
  @NickName = nickname
  @PassWord = password
  @DeviceType = devicetype
  @GroupId = groupid
end

Instance Attribute Details

#DeviceTypeObject

Parameters:

  • NickName:

    设备名称

  • PassWord:

    设备密码

  • DeviceType:

    设备类型,1:国标VMS设备(公有云不支持此类型),2:国标IPC设备,3:国标NVR设备,9:智能告警设备(公有云不支持此类型)

  • GroupId:

    设备需要绑定的分组ID,参数为空则默认绑定到根分组



625
626
627
# File 'lib/v20201201/models.rb', line 625

def DeviceType
  @DeviceType
end

#GroupIdObject

Parameters:

  • NickName:

    设备名称

  • PassWord:

    设备密码

  • DeviceType:

    设备类型,1:国标VMS设备(公有云不支持此类型),2:国标IPC设备,3:国标NVR设备,9:智能告警设备(公有云不支持此类型)

  • GroupId:

    设备需要绑定的分组ID,参数为空则默认绑定到根分组



625
626
627
# File 'lib/v20201201/models.rb', line 625

def GroupId
  @GroupId
end

#NickNameObject

Parameters:

  • NickName:

    设备名称

  • PassWord:

    设备密码

  • DeviceType:

    设备类型,1:国标VMS设备(公有云不支持此类型),2:国标IPC设备,3:国标NVR设备,9:智能告警设备(公有云不支持此类型)

  • GroupId:

    设备需要绑定的分组ID,参数为空则默认绑定到根分组



625
626
627
# File 'lib/v20201201/models.rb', line 625

def NickName
  @NickName
end

#PassWordObject

Parameters:

  • NickName:

    设备名称

  • PassWord:

    设备密码

  • DeviceType:

    设备类型,1:国标VMS设备(公有云不支持此类型),2:国标IPC设备,3:国标NVR设备,9:智能告警设备(公有云不支持此类型)

  • GroupId:

    设备需要绑定的分组ID,参数为空则默认绑定到根分组



625
626
627
# File 'lib/v20201201/models.rb', line 625

def PassWord
  @PassWord
end

Instance Method Details

#deserialize(params) ⇒ Object



634
635
636
637
638
639
# File 'lib/v20201201/models.rb', line 634

def deserialize(params)
  @NickName = params['NickName']
  @PassWord = params['PassWord']
  @DeviceType = params['DeviceType']
  @GroupId = params['GroupId']
end