Class: TencentCloud::Iotcloud::V20210408::CreateTopicPolicyRequest
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iotcloud::V20210408::CreateTopicPolicyRequest
- Defined in:
- lib/v20210408/models.rb
Overview
CreateTopicPolicy请求参数结构体
Instance Attribute Summary collapse
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(productid = nil, topicname = nil, privilege = nil, brokersubscribe = nil) ⇒ CreateTopicPolicyRequest
constructor
A new instance of CreateTopicPolicyRequest.
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
#BrokerSubscribe ⇒ Object
688 689 690 |
# File 'lib/v20210408/models.rb', line 688 def BrokerSubscribe @BrokerSubscribe end |
#Privilege ⇒ Object
688 689 690 |
# File 'lib/v20210408/models.rb', line 688 def Privilege @Privilege end |
#ProductId ⇒ Object
688 689 690 |
# File 'lib/v20210408/models.rb', line 688 def ProductId @ProductId end |
#TopicName ⇒ Object
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 |