Class: TencentCloud::Iotcloud::V20180614::TopicRulePayload
- Inherits:
-
Common::AbstractModel
- Object
- Common::AbstractModel
- TencentCloud::Iotcloud::V20180614::TopicRulePayload
- Defined in:
- lib/v20180614/models.rb
Overview
创建规则请求包体
Instance Attribute Summary collapse
-
#Actions ⇒ Object
[ { “republish”: { “topic”: “TEST/test” } }, { “forward”: { “api”: “127.0.0.1:8080”, “token”:“xxx” } }, { “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” } } ].
-
#Description ⇒ Object
[ { “republish”: { “topic”: “TEST/test” } }, { “forward”: { “api”: “127.0.0.1:8080”, “token”:“xxx” } }, { “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” } } ].
-
#RuleDisabled ⇒ Object
[ { “republish”: { “topic”: “TEST/test” } }, { “forward”: { “api”: “127.0.0.1:8080”, “token”:“xxx” } }, { “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” } } ].
-
#Sql ⇒ Object
[ { “republish”: { “topic”: “TEST/test” } }, { “forward”: { “api”: “127.0.0.1:8080”, “token”:“xxx” } }, { “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” } } ].
Instance Method Summary collapse
- #deserialize(params) ⇒ Object
-
#initialize(sql = nil, actions = nil, description = nil, ruledisabled = nil) ⇒ TopicRulePayload
constructor
A new instance of TopicRulePayload.
Constructor Details
#initialize(sql = nil, actions = nil, description = nil, ruledisabled = nil) ⇒ TopicRulePayload
Returns a new instance of TopicRulePayload.
4369 4370 4371 4372 4373 4374 |
# File 'lib/v20180614/models.rb', line 4369 def initialize(sql=nil, actions=nil, description=nil, ruledisabled=nil) @Sql = sql @Actions = actions @Description = description @RuleDisabled = ruledisabled end |
Instance Attribute Details
#Actions ⇒ Object
[
{
"republish": {
"topic": "TEST/test"
}
},
{
"forward": {
"api": "http://127.0.0.1:8080",
"token":"xxx"
}
},
{
"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"
}
}
]
4367 4368 4369 |
# File 'lib/v20180614/models.rb', line 4367 def Actions @Actions end |
#Description ⇒ Object
[
{
"republish": {
"topic": "TEST/test"
}
},
{
"forward": {
"api": "http://127.0.0.1:8080",
"token":"xxx"
}
},
{
"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"
}
}
]
4367 4368 4369 |
# File 'lib/v20180614/models.rb', line 4367 def Description @Description end |
#RuleDisabled ⇒ Object
[
{
"republish": {
"topic": "TEST/test"
}
},
{
"forward": {
"api": "http://127.0.0.1:8080",
"token":"xxx"
}
},
{
"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"
}
}
]
4367 4368 4369 |
# File 'lib/v20180614/models.rb', line 4367 def RuleDisabled @RuleDisabled end |
#Sql ⇒ Object
[
{
"republish": {
"topic": "TEST/test"
}
},
{
"forward": {
"api": "http://127.0.0.1:8080",
"token":"xxx"
}
},
{
"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"
}
}
]
4367 4368 4369 |
# File 'lib/v20180614/models.rb', line 4367 def Sql @Sql end |
Instance Method Details
#deserialize(params) ⇒ Object
4376 4377 4378 4379 4380 4381 |
# File 'lib/v20180614/models.rb', line 4376 def deserialize(params) @Sql = params['Sql'] @Actions = params['Actions'] @Description = params['Description'] @RuleDisabled = params['RuleDisabled'] end |