Class: TencentCloud::Iotcloud::V20210408::UpdateDeviceShadowRequest

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

Overview

UpdateDeviceShadow请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(productid = nil, devicename = nil, state = nil, shadowversion = nil) ⇒ UpdateDeviceShadowRequest

Returns a new instance of UpdateDeviceShadowRequest.



4500
4501
4502
4503
4504
4505
# File 'lib/v20210408/models.rb', line 4500

def initialize(productid=nil, devicename=nil, state=nil, shadowversion=nil)
  @ProductId = productid
  @DeviceName = devicename
  @State = state
  @ShadowVersion = shadowversion
end

Instance Attribute Details

#DeviceNameObject

Parameters:

  • ProductId:

    产品ID

  • DeviceName:

    设备名称

  • State:

    虚拟设备的状态,JSON字符串格式,由desired结构组成

  • ShadowVersion:

    当前版本号,需要和后台的version保持一致,才能更新成功



4498
4499
4500
# File 'lib/v20210408/models.rb', line 4498

def DeviceName
  @DeviceName
end

#ProductIdObject

Parameters:

  • ProductId:

    产品ID

  • DeviceName:

    设备名称

  • State:

    虚拟设备的状态,JSON字符串格式,由desired结构组成

  • ShadowVersion:

    当前版本号,需要和后台的version保持一致,才能更新成功



4498
4499
4500
# File 'lib/v20210408/models.rb', line 4498

def ProductId
  @ProductId
end

#ShadowVersionObject

Parameters:

  • ProductId:

    产品ID

  • DeviceName:

    设备名称

  • State:

    虚拟设备的状态,JSON字符串格式,由desired结构组成

  • ShadowVersion:

    当前版本号,需要和后台的version保持一致,才能更新成功



4498
4499
4500
# File 'lib/v20210408/models.rb', line 4498

def ShadowVersion
  @ShadowVersion
end

#StateObject

Parameters:

  • ProductId:

    产品ID

  • DeviceName:

    设备名称

  • State:

    虚拟设备的状态,JSON字符串格式,由desired结构组成

  • ShadowVersion:

    当前版本号,需要和后台的version保持一致,才能更新成功



4498
4499
4500
# File 'lib/v20210408/models.rb', line 4498

def State
  @State
end

Instance Method Details

#deserialize(params) ⇒ Object



4507
4508
4509
4510
4511
4512
# File 'lib/v20210408/models.rb', line 4507

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