Class: TencentCloud::Iotexplorer::V20190423::TopicRulePayload

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

Overview

TopicRulePayload结构

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(sql = nil, actions = nil, description = nil, ruledisabled = nil) ⇒ TopicRulePayload



14026
14027
14028
14029
14030
14031
# File 'lib/v20190423/models.rb', line 14026

def initialize(sql=nil, actions=nil, description=nil, ruledisabled=nil)
  @Sql = sql
  @Actions = actions
  @Description = description
  @RuleDisabled = ruledisabled
end

Instance Attribute Details

#ActionsObject

[ { “republish”: { “topic”: “TEST/test” } }, { “forward”: { “api”: “test.com:8080” } }, { “ckafka”: { “instance”: { “id”: “ckafka-test”, “name”: “” }, “topic”: { “id”: “topic-test”, “name”: “test” }, “region”: “gz” } }, { “cmqqueue”: { “queuename”: “queue-test-TEST”, “region”: “gz” } }, { “mysql”: { “instanceid”: “cdb-test”, “region”: “gz”, “username”: “test”, “userpwd”: “*****”, “dbname”: “d_mqtt”, “tablename”: “t_test”, “fieldpairs”: [ { “field”: “test”, “value”: “test” } ], “devicetype”: “CUSTOM” } } ]



14024
14025
14026
# File 'lib/v20190423/models.rb', line 14024

def Actions
  @Actions
end

#DescriptionObject

[ { “republish”: { “topic”: “TEST/test” } }, { “forward”: { “api”: “test.com:8080” } }, { “ckafka”: { “instance”: { “id”: “ckafka-test”, “name”: “” }, “topic”: { “id”: “topic-test”, “name”: “test” }, “region”: “gz” } }, { “cmqqueue”: { “queuename”: “queue-test-TEST”, “region”: “gz” } }, { “mysql”: { “instanceid”: “cdb-test”, “region”: “gz”, “username”: “test”, “userpwd”: “*****”, “dbname”: “d_mqtt”, “tablename”: “t_test”, “fieldpairs”: [ { “field”: “test”, “value”: “test” } ], “devicetype”: “CUSTOM” } } ]



14024
14025
14026
# File 'lib/v20190423/models.rb', line 14024

def Description
  @Description
end

#RuleDisabledObject

[ { “republish”: { “topic”: “TEST/test” } }, { “forward”: { “api”: “test.com:8080” } }, { “ckafka”: { “instance”: { “id”: “ckafka-test”, “name”: “” }, “topic”: { “id”: “topic-test”, “name”: “test” }, “region”: “gz” } }, { “cmqqueue”: { “queuename”: “queue-test-TEST”, “region”: “gz” } }, { “mysql”: { “instanceid”: “cdb-test”, “region”: “gz”, “username”: “test”, “userpwd”: “*****”, “dbname”: “d_mqtt”, “tablename”: “t_test”, “fieldpairs”: [ { “field”: “test”, “value”: “test” } ], “devicetype”: “CUSTOM” } } ]



14024
14025
14026
# File 'lib/v20190423/models.rb', line 14024

def RuleDisabled
  @RuleDisabled
end

#SqlObject

[ { “republish”: { “topic”: “TEST/test” } }, { “forward”: { “api”: “test.com:8080” } }, { “ckafka”: { “instance”: { “id”: “ckafka-test”, “name”: “” }, “topic”: { “id”: “topic-test”, “name”: “test” }, “region”: “gz” } }, { “cmqqueue”: { “queuename”: “queue-test-TEST”, “region”: “gz” } }, { “mysql”: { “instanceid”: “cdb-test”, “region”: “gz”, “username”: “test”, “userpwd”: “*****”, “dbname”: “d_mqtt”, “tablename”: “t_test”, “fieldpairs”: [ { “field”: “test”, “value”: “test” } ], “devicetype”: “CUSTOM” } } ]



14024
14025
14026
# File 'lib/v20190423/models.rb', line 14024

def Sql
  @Sql
end

Instance Method Details

#deserialize(params) ⇒ Object



14033
14034
14035
14036
14037
14038
# File 'lib/v20190423/models.rb', line 14033

def deserialize(params)
  @Sql = params['Sql']
  @Actions = params['Actions']
  @Description = params['Description']
  @RuleDisabled = params['RuleDisabled']
end