Class: TencentCloud::Iotvideoindustry::V20201201::ModifyBindSceneDeviceRequest

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

Overview

ModifyBindSceneDevice请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sceneid = nil, type = nil, devices = nil) ⇒ ModifyBindSceneDeviceRequest

Returns a new instance of ModifyBindSceneDeviceRequest.



5317
5318
5319
5320
5321
# File 'lib/v20201201/models.rb', line 5317

def initialize(sceneid=nil, type=nil, devices=nil)
  @SceneId = sceneid
  @Type = type
  @Devices = devices
end

Instance Attribute Details

#DevicesObject

Parameters:

  • SceneId:

    场景ID

  • Type:

    1: 绑定 2: 解绑

  • Devices:

    设备列表



5315
5316
5317
# File 'lib/v20201201/models.rb', line 5315

def Devices
  @Devices
end

#SceneIdObject

Parameters:

  • SceneId:

    场景ID

  • Type:

    1: 绑定 2: 解绑

  • Devices:

    设备列表



5315
5316
5317
# File 'lib/v20201201/models.rb', line 5315

def SceneId
  @SceneId
end

#TypeObject

Parameters:

  • SceneId:

    场景ID

  • Type:

    1: 绑定 2: 解绑

  • Devices:

    设备列表



5315
5316
5317
# File 'lib/v20201201/models.rb', line 5315

def Type
  @Type
end

Instance Method Details

#deserialize(params) ⇒ Object



5323
5324
5325
5326
5327
5328
5329
5330
5331
5332
5333
5334
# File 'lib/v20201201/models.rb', line 5323

def deserialize(params)
  @SceneId = params['SceneId']
  @Type = params['Type']
  unless params['Devices'].nil?
    @Devices = []
    params['Devices'].each do |i|
      deviceitem_tmp = DeviceItem.new
      deviceitem_tmp.deserialize(i)
      @Devices << deviceitem_tmp
    end
  end
end