184 lines
5.8 KiB
C#
184 lines
5.8 KiB
C#
|
|
/*
|
|||
|
|
* 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 Product : AbstractModel
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 产品Id
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("ProductId")]
|
|||
|
|
public string ProductId{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 产品Key
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("ProductKey")]
|
|||
|
|
public string ProductKey{ 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("Domain")]
|
|||
|
|
public string Domain{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 产品规格
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Standard")]
|
|||
|
|
public ulong? Standard{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 鉴权类型(0:直连,1:Token)
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("AuthType")]
|
|||
|
|
public ulong? AuthType{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 删除(0未删除)
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Deleted")]
|
|||
|
|
public ulong? Deleted{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 备注
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Message")]
|
|||
|
|
public string Message{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 创建时间
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("CreateTime")]
|
|||
|
|
public string CreateTime{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 更新时间
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("UpdateTime")]
|
|||
|
|
public string UpdateTime{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 数据模版
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("DataTemplate")]
|
|||
|
|
public DataTemplate[] DataTemplate{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 数据协议(native/template)
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("DataProtocol")]
|
|||
|
|
public string DataProtocol{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 直连用户名
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Username")]
|
|||
|
|
public string Username{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 直连密码
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Password")]
|
|||
|
|
public string Password{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 通信方式
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("CommProtocol")]
|
|||
|
|
public string CommProtocol{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// qps
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Qps")]
|
|||
|
|
public ulong? Qps{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 地域
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("Region")]
|
|||
|
|
public string Region{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 产品的设备类型
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("DeviceType")]
|
|||
|
|
public string DeviceType{ get; set; }
|
|||
|
|
|
|||
|
|
/// <summary>
|
|||
|
|
/// 关联的产品列表
|
|||
|
|
/// </summary>
|
|||
|
|
[JsonProperty("AssociatedProducts")]
|
|||
|
|
public string[] AssociatedProducts{ 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 + "ProductId", this.ProductId);
|
|||
|
|
this.SetParamSimple(map, prefix + "ProductKey", this.ProductKey);
|
|||
|
|
this.SetParamSimple(map, prefix + "AppId", this.AppId);
|
|||
|
|
this.SetParamSimple(map, prefix + "Name", this.Name);
|
|||
|
|
this.SetParamSimple(map, prefix + "Description", this.Description);
|
|||
|
|
this.SetParamSimple(map, prefix + "Domain", this.Domain);
|
|||
|
|
this.SetParamSimple(map, prefix + "Standard", this.Standard);
|
|||
|
|
this.SetParamSimple(map, prefix + "AuthType", this.AuthType);
|
|||
|
|
this.SetParamSimple(map, prefix + "Deleted", this.Deleted);
|
|||
|
|
this.SetParamSimple(map, prefix + "Message", this.Message);
|
|||
|
|
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
|
|||
|
|
this.SetParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
|
|||
|
|
this.SetParamArrayObj(map, prefix + "DataTemplate.", this.DataTemplate);
|
|||
|
|
this.SetParamSimple(map, prefix + "DataProtocol", this.DataProtocol);
|
|||
|
|
this.SetParamSimple(map, prefix + "Username", this.Username);
|
|||
|
|
this.SetParamSimple(map, prefix + "Password", this.Password);
|
|||
|
|
this.SetParamSimple(map, prefix + "CommProtocol", this.CommProtocol);
|
|||
|
|
this.SetParamSimple(map, prefix + "Qps", this.Qps);
|
|||
|
|
this.SetParamSimple(map, prefix + "Region", this.Region);
|
|||
|
|
this.SetParamSimple(map, prefix + "DeviceType", this.DeviceType);
|
|||
|
|
this.SetParamArraySimple(map, prefix + "AssociatedProducts.", this.AssociatedProducts);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
|