Class: TencentCloud::Iotcloud::V20210408::UpdateDeviceAvailableStateRequest

Inherits:
Common::AbstractModel
  • Object
show all
Defined in:
lib/v20210408/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.



4378
4379
4380
4381
4382
# File 'lib/v20210408/models.rb', line 4378

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为禁用



4376
4377
4378
# File 'lib/v20210408/models.rb', line 4376

def DeviceName
  @DeviceName
end

#EnableStateObject

Parameters:

  • ProductId:

    设备所属产品id

  • DeviceName:

    设备名称

  • EnableState:

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



4376
4377
4378
# File 'lib/v20210408/models.rb', line 4376

def EnableState
  @EnableState
end

#ProductIdObject

Parameters:

  • ProductId:

    设备所属产品id

  • DeviceName:

    设备名称

  • EnableState:

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



4376
4377
4378
# File 'lib/v20210408/models.rb', line 4376

def ProductId
  @ProductId
end

Instance Method Details

#deserialize(params) ⇒ Object



4384
4385
4386
4387
4388
# File 'lib/v20210408/models.rb', line 4384

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