/* * 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 { /// /// 产品Id /// [JsonProperty("ProductId")] public string ProductId{ get; set; } /// /// 产品Key /// [JsonProperty("ProductKey")] public string ProductKey{ get; set; } /// /// AppId /// [JsonProperty("AppId")] public ulong? AppId{ get; set; } /// /// 产品名称 /// [JsonProperty("Name")] public string Name{ get; set; } /// /// 产品描述 /// [JsonProperty("Description")] public string Description{ get; set; } /// /// 连接域名 /// [JsonProperty("Domain")] public string Domain{ get; set; } /// /// 产品规格 /// [JsonProperty("Standard")] public ulong? Standard{ get; set; } /// /// 鉴权类型(0:直连,1:Token) /// [JsonProperty("AuthType")] public ulong? AuthType{ get; set; } /// /// 删除(0未删除) /// [JsonProperty("Deleted")] public ulong? Deleted{ get; set; } /// /// 备注 /// [JsonProperty("Message")] public string Message{ get; set; } /// /// 创建时间 /// [JsonProperty("CreateTime")] public string CreateTime{ get; set; } /// /// 更新时间 /// [JsonProperty("UpdateTime")] public string UpdateTime{ get; set; } /// /// 数据模版 /// [JsonProperty("DataTemplate")] public DataTemplate[] DataTemplate{ get; set; } /// /// 数据协议(native/template) /// [JsonProperty("DataProtocol")] public string DataProtocol{ get; set; } /// /// 直连用户名 /// [JsonProperty("Username")] public string Username{ get; set; } /// /// 直连密码 /// [JsonProperty("Password")] public string Password{ get; set; } /// /// 通信方式 /// [JsonProperty("CommProtocol")] public string CommProtocol{ get; set; } /// /// qps /// [JsonProperty("Qps")] public ulong? Qps{ get; set; } /// /// 地域 /// [JsonProperty("Region")] public string Region{ get; set; } /// /// 产品的设备类型 /// [JsonProperty("DeviceType")] public string DeviceType{ get; set; } /// /// 关联的产品列表 /// [JsonProperty("AssociatedProducts")] public string[] AssociatedProducts{ get; set; } /// /// For internal usage only. DO NOT USE IT. /// internal override void ToMap(Dictionary 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); } } }