Files
g.hnyhua.cn/TencentCloud/Iot/V20180123/Models/Rule.cs

121 lines
3.6 KiB
C#
Raw Normal View History

/*
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*/
namespace TencentCloud.Iot.V20180123.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Rule : AbstractModel
{
/// <summary>
/// 规则Id
/// </summary>
[JsonProperty("RuleId")]
public string RuleId{ get; set; }
/// <summary>
/// AppId
/// </summary>
[JsonProperty("AppId")]
public ulong? AppId{ get; set; }
/// <summary>
/// 名称
/// </summary>
[JsonProperty("Name")]
public string Name{ get; set; }
/// <summary>
/// 描述
/// </summary>
[JsonProperty("Description")]
public string Description{ get; set; }
/// <summary>
/// 查询
/// </summary>
[JsonProperty("Query")]
public RuleQuery Query{ get; set; }
/// <summary>
/// 转发
/// </summary>
[JsonProperty("Actions")]
public Action[] Actions{ get; set; }
/// <summary>
/// 已启动
/// </summary>
[JsonProperty("Active")]
public ulong? Active{ get; set; }
/// <summary>
/// 已删除
/// </summary>
[JsonProperty("Deleted")]
public ulong? Deleted{ get; set; }
/// <summary>
/// 创建时间
/// </summary>
[JsonProperty("CreateTime")]
public string CreateTime{ get; set; }
/// <summary>
/// 更新时间
/// </summary>
[JsonProperty("UpdateTime")]
public string UpdateTime{ get; set; }
/// <summary>
/// 消息顺序
/// </summary>
[JsonProperty("MsgOrder")]
public ulong? MsgOrder{ get; set; }
/// <summary>
/// 数据类型0文本1二进制
/// </summary>
[JsonProperty("DataType")]
public ulong? DataType{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamSimple(map, prefix + "RuleId", this.RuleId);
this.SetParamSimple(map, prefix + "AppId", this.AppId);
this.SetParamSimple(map, prefix + "Name", this.Name);
this.SetParamSimple(map, prefix + "Description", this.Description);
this.SetParamObj(map, prefix + "Query.", this.Query);
this.SetParamArrayObj(map, prefix + "Actions.", this.Actions);
this.SetParamSimple(map, prefix + "Active", this.Active);
this.SetParamSimple(map, prefix + "Deleted", this.Deleted);
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.SetParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
this.SetParamSimple(map, prefix + "MsgOrder", this.MsgOrder);
this.SetParamSimple(map, prefix + "DataType", this.DataType);
}
}
}