Class: TencentCloud::Iotcloud::V20180614::UpdateDeviceAvailableStateRequest

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

Overview

UpdateDeviceAvailableState请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(productid = nil, devicename = nil, enablestate = nil) ⇒ UpdateDeviceAvailableStateRequest

Returns a new instance of UpdateDeviceAvailableStateRequest.



4443
4444
4445
4446
4447
# File 'lib/v20180614/models.rb', line 4443

def initialize(productid=nil, devicename=nil, enablestate=nil)
  @ProductId = productid
  @DeviceName = devicename
  @EnableState = enablestate
end

Instance Attribute Details

#DeviceNameObject

Parameters:

  • ProductId:

    设备所属产品id

  • DeviceName:

    设备名称

  • EnableState:

    要设置的设备状态,1为启用,0为禁用



4441
4442
4443
# File 'lib/v20180614/models.rb', line 4441

def DeviceName
  @DeviceName
end

#EnableStateObject

Parameters:

  • ProductId:

    设备所属产品id

  • DeviceName:

    设备名称

  • EnableState:

    要设置的设备状态,1为启用,0为禁用



4441
4442
4443
# File 'lib/v20180614/models.rb', line 4441

def EnableState
  @EnableState
end

#ProductIdObject

Parameters:

  • ProductId:

    设备所属产品id

  • DeviceName:

    设备名称

  • EnableState:

    要设置的设备状态,1为启用,0为禁用



4441
4442
4443
# File 'lib/v20180614/models.rb', line 4441

def ProductId
  @ProductId
end

Instance Method Details

#deserialize(params) ⇒ Object



4449
4450
4451
4452
4453
# File 'lib/v20180614/models.rb', line 4449

def deserialize(params)
  @ProductId = params['ProductId']
  @DeviceName = params['DeviceName']
  @EnableState = params['EnableState']
end