Class: TencentCloud::Iotcloud::V20210408::CreateTopicPolicyRequest

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

Overview

CreateTopicPolicy请求参数结构体

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(productid = nil, topicname = nil, privilege = nil, brokersubscribe = nil) ⇒ CreateTopicPolicyRequest

Returns a new instance of CreateTopicPolicyRequest.



690
691
692
693
694
695
# File 'lib/v20210408/models.rb', line 690

def initialize(productid=nil, topicname=nil, privilege=nil, brokersubscribe=nil)
  @ProductId = productid
  @TopicName = topicname
  @Privilege = privilege
  @BrokerSubscribe = brokersubscribe
end

Instance Attribute Details

#BrokerSubscribeObject

Parameters:

  • ProductId:

    产品自身ID

  • TopicName:

    Topic名称

  • Privilege:

    Topic权限,1发布,2订阅,3订阅和发布

  • BrokerSubscribe:

    代理订阅信息,网关产品为绑定的子产品创建topic时需要填写,内容为子产品的ID和设备信息。



688
689
690
# File 'lib/v20210408/models.rb', line 688

def BrokerSubscribe
  @BrokerSubscribe
end

#PrivilegeObject

Parameters:

  • ProductId:

    产品自身ID

  • TopicName:

    Topic名称

  • Privilege:

    Topic权限,1发布,2订阅,3订阅和发布

  • BrokerSubscribe:

    代理订阅信息,网关产品为绑定的子产品创建topic时需要填写,内容为子产品的ID和设备信息。



688
689
690
# File 'lib/v20210408/models.rb', line 688

def Privilege
  @Privilege
end

#ProductIdObject

Parameters:

  • ProductId:

    产品自身ID

  • TopicName:

    Topic名称

  • Privilege:

    Topic权限,1发布,2订阅,3订阅和发布

  • BrokerSubscribe:

    代理订阅信息,网关产品为绑定的子产品创建topic时需要填写,内容为子产品的ID和设备信息。



688
689
690
# File 'lib/v20210408/models.rb', line 688

def ProductId
  @ProductId
end

#TopicNameObject

Parameters:

  • ProductId:

    产品自身ID

  • TopicName:

    Topic名称

  • Privilege:

    Topic权限,1发布,2订阅,3订阅和发布

  • BrokerSubscribe:

    代理订阅信息,网关产品为绑定的子产品创建topic时需要填写,内容为子产品的ID和设备信息。



688
689
690
# File 'lib/v20210408/models.rb', line 688

def TopicName
  @TopicName
end

Instance Method Details

#deserialize(params) ⇒ Object



697
698
699
700
701
702
703
704
705
# File 'lib/v20210408/models.rb', line 697

def deserialize(params)
  @ProductId = params['ProductId']
  @TopicName = params['TopicName']
  @Privilege = params['Privilege']
  unless params['BrokerSubscribe'].nil?
    @BrokerSubscribe = BrokerSubscribe.new
    @BrokerSubscribe.deserialize(params['BrokerSubscribe'])
  end
end