Class: TencentCloud::Iotvideoindustry::V20201201::ModifySubscriptionStatusRequest

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

Overview

ModifySubscriptionStatus请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(deviceid = nil, status = nil, subscriptionitem = nil) ⇒ ModifySubscriptionStatusRequest

Returns a new instance of ModifySubscriptionStatusRequest.



5685
5686
5687
5688
5689
# File 'lib/v20201201/models.rb', line 5685

def initialize(deviceid=nil, status=nil, subscriptionitem=nil)
  @DeviceId = deviceid
  @Status = status
  @SubscriptionItem = subscriptionitem
end

Instance Attribute Details

#DeviceIdObject

Parameters:

  • DeviceId:

    设备ID

  • Status:

    订阅状态 1:关闭订阅 2:开启订阅

  • SubscriptionItem:

    订阅类型 Alarm:告警订阅 Catalog:目录订阅 MobilePosition:移动位置订阅



5683
5684
5685
# File 'lib/v20201201/models.rb', line 5683

def DeviceId
  @DeviceId
end

#StatusObject

Parameters:

  • DeviceId:

    设备ID

  • Status:

    订阅状态 1:关闭订阅 2:开启订阅

  • SubscriptionItem:

    订阅类型 Alarm:告警订阅 Catalog:目录订阅 MobilePosition:移动位置订阅



5683
5684
5685
# File 'lib/v20201201/models.rb', line 5683

def Status
  @Status
end

#SubscriptionItemObject

Parameters:

  • DeviceId:

    设备ID

  • Status:

    订阅状态 1:关闭订阅 2:开启订阅

  • SubscriptionItem:

    订阅类型 Alarm:告警订阅 Catalog:目录订阅 MobilePosition:移动位置订阅



5683
5684
5685
# File 'lib/v20201201/models.rb', line 5683

def SubscriptionItem
  @SubscriptionItem
end

Instance Method Details

#deserialize(params) ⇒ Object



5691
5692
5693
5694
5695
# File 'lib/v20201201/models.rb', line 5691

def deserialize(params)
  @DeviceId = params['DeviceId']
  @Status = params['Status']
  @SubscriptionItem = params['SubscriptionItem']
end