代码修改后的版本,全部提交

This commit is contained in:
ss001
2026-02-07 15:48:27 +08:00
parent cccbaa37c9
commit c2cda58c65
15604 changed files with 2455502 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,43 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Attribute : AbstractModel
{
/// <summary>
/// 属性列表
/// </summary>
[JsonProperty("Tags")]
public DeviceTag[] Tags{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamArrayObj(map, prefix + "Tags.", this.Tags);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class BatchPublishMessage : AbstractModel
{
/// <summary>
/// 消息发往的主题。为 Topic 权限中去除 ProductID 和 DeviceName 的部分,如 “event”
/// </summary>
[JsonProperty("Topic")]
public string Topic{ get; set; }
/// <summary>
/// 消息内容
/// </summary>
[JsonProperty("Payload")]
public string Payload{ 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 + "Topic", this.Topic);
this.SetParamSimple(map, prefix + "Payload", this.Payload);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class BatchUpdateShadow : AbstractModel
{
/// <summary>
/// 设备影子的期望状态,格式为 Json 对象序列化之后的字符串
/// </summary>
[JsonProperty("Desired")]
public string Desired{ 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 + "Desired", this.Desired);
}
}
}

View File

@@ -0,0 +1,71 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class BindDevicesRequest : AbstractModel
{
/// <summary>
/// 网关设备的产品ID
/// </summary>
[JsonProperty("GatewayProductId")]
public string GatewayProductId{ get; set; }
/// <summary>
/// 网关设备的设备名
/// </summary>
[JsonProperty("GatewayDeviceName")]
public string GatewayDeviceName{ get; set; }
/// <summary>
/// 被绑定设备的产品ID
/// </summary>
[JsonProperty("ProductId")]
public string ProductId{ get; set; }
/// <summary>
/// 被绑定的多个设备名
/// </summary>
[JsonProperty("DeviceNames")]
public string[] DeviceNames{ get; set; }
/// <summary>
/// 中兴CLAA设备的绑定需要skey普通的设备不需要
/// </summary>
[JsonProperty("Skey")]
public string Skey{ 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 + "GatewayProductId", this.GatewayProductId);
this.SetParamSimple(map, prefix + "GatewayDeviceName", this.GatewayDeviceName);
this.SetParamSimple(map, prefix + "ProductId", this.ProductId);
this.SetParamArraySimple(map, prefix + "DeviceNames.", this.DeviceNames);
this.SetParamSimple(map, prefix + "Skey", this.Skey);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class BindDevicesResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class BrokerSubscribe : AbstractModel
{
/// <summary>
/// 产品ID
/// </summary>
[JsonProperty("ProductId")]
public string ProductId{ get; set; }
/// <summary>
/// 设备名
/// </summary>
[JsonProperty("DeviceName")]
public string DeviceName{ 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 + "DeviceName", this.DeviceName);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CancelTaskRequest : AbstractModel
{
/// <summary>
/// 任务 ID
/// </summary>
[JsonProperty("Id")]
public string Id{ 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 + "Id", this.Id);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CancelTaskResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,106 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateDeviceRequest : AbstractModel
{
/// <summary>
/// 产品 ID 。创建产品时腾讯云为用户分配全局唯一的 ID
/// </summary>
[JsonProperty("ProductId")]
public string ProductId{ get; set; }
/// <summary>
/// 设备名称。命名规则:[a-zA-Z0-9:_-]{1,48}。
/// </summary>
[JsonProperty("DeviceName")]
public string DeviceName{ get; set; }
/// <summary>
/// 设备属性
/// </summary>
[JsonProperty("Attribute")]
public Attribute Attribute{ get; set; }
/// <summary>
/// 是否使用自定义PSK默认不使用
/// </summary>
[JsonProperty("DefinedPsk")]
public string DefinedPsk{ get; set; }
/// <summary>
/// 运营商类型当产品是NB-IoT产品时此字段必填。1表示中国电信2表示中国移动3表示中国联通
/// </summary>
[JsonProperty("Isp")]
public ulong? Isp{ get; set; }
/// <summary>
/// IMEI当产品是NB-IoT产品时此字段必填
/// </summary>
[JsonProperty("Imei")]
public string Imei{ get; set; }
/// <summary>
/// LoRa设备的DevEui当创建LoRa时此字段必填
/// </summary>
[JsonProperty("LoraDevEui")]
public string LoraDevEui{ get; set; }
/// <summary>
/// LoRa设备的MoteType
/// </summary>
[JsonProperty("LoraMoteType")]
public ulong? LoraMoteType{ get; set; }
/// <summary>
/// 创建LoRa设备需要skey
/// </summary>
[JsonProperty("Skey")]
public string Skey{ get; set; }
/// <summary>
/// LoRa设备的AppKey
/// </summary>
[JsonProperty("LoraAppKey")]
public string LoraAppKey{ 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 + "DeviceName", this.DeviceName);
this.SetParamObj(map, prefix + "Attribute.", this.Attribute);
this.SetParamSimple(map, prefix + "DefinedPsk", this.DefinedPsk);
this.SetParamSimple(map, prefix + "Isp", this.Isp);
this.SetParamSimple(map, prefix + "Imei", this.Imei);
this.SetParamSimple(map, prefix + "LoraDevEui", this.LoraDevEui);
this.SetParamSimple(map, prefix + "LoraMoteType", this.LoraMoteType);
this.SetParamSimple(map, prefix + "Skey", this.Skey);
this.SetParamSimple(map, prefix + "LoraAppKey", this.LoraAppKey);
}
}
}

View File

@@ -0,0 +1,99 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateDeviceResponse : AbstractModel
{
/// <summary>
/// 设备名称
/// </summary>
[JsonProperty("DeviceName")]
public string DeviceName{ get; set; }
/// <summary>
/// 对称加密密钥base64编码。采用对称加密时返回该参数
/// </summary>
[JsonProperty("DevicePsk")]
public string DevicePsk{ get; set; }
/// <summary>
/// 设备证书,用于 TLS 建立链接时校验客户端身份。采用非对称加密时返回该参数
/// </summary>
[JsonProperty("DeviceCert")]
public string DeviceCert{ get; set; }
/// <summary>
/// 设备私钥,用于 TLS 建立链接时校验客户端身份,腾讯云后台不保存,请妥善保管。采用非对称加密时返回该参数
/// </summary>
[JsonProperty("DevicePrivateKey")]
public string DevicePrivateKey{ get; set; }
/// <summary>
/// LoRa设备的DevEui当设备是LoRa设备时会返回该字段
/// </summary>
[JsonProperty("LoraDevEui")]
public string LoraDevEui{ get; set; }
/// <summary>
/// LoRa设备的MoteType当设备是LoRa设备时会返回该字段
/// </summary>
[JsonProperty("LoraMoteType")]
public ulong? LoraMoteType{ get; set; }
/// <summary>
/// LoRa设备的AppKey当设备是LoRa设备时会返回该字段
/// </summary>
[JsonProperty("LoraAppKey")]
public string LoraAppKey{ get; set; }
/// <summary>
/// LoRa设备的NwkKey当设备是LoRa设备时会返回该字段
/// </summary>
[JsonProperty("LoraNwkKey")]
public string LoraNwkKey{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "DeviceName", this.DeviceName);
this.SetParamSimple(map, prefix + "DevicePsk", this.DevicePsk);
this.SetParamSimple(map, prefix + "DeviceCert", this.DeviceCert);
this.SetParamSimple(map, prefix + "DevicePrivateKey", this.DevicePrivateKey);
this.SetParamSimple(map, prefix + "LoraDevEui", this.LoraDevEui);
this.SetParamSimple(map, prefix + "LoraMoteType", this.LoraMoteType);
this.SetParamSimple(map, prefix + "LoraAppKey", this.LoraAppKey);
this.SetParamSimple(map, prefix + "LoraNwkKey", this.LoraNwkKey);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,92 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateLoraDeviceRequest : AbstractModel
{
/// <summary>
/// 产品 ID ,创建产品时腾讯云为用户分配全局唯一的 ID
/// </summary>
[JsonProperty("ProductId")]
public string ProductId{ get; set; }
/// <summary>
/// 设备名称
/// </summary>
[JsonProperty("DeviceName")]
public string DeviceName{ get; set; }
/// <summary>
/// 设备类型 目前支持A、B、C三种
/// </summary>
[JsonProperty("DeviceType")]
public string DeviceType{ get; set; }
/// <summary>
/// LoRa应用UUID
/// </summary>
[JsonProperty("AppEui")]
public string AppEui{ get; set; }
/// <summary>
/// LoRa设备UUID
/// </summary>
[JsonProperty("DeviceEui")]
public string DeviceEui{ get; set; }
/// <summary>
/// LoRa应用密钥
/// </summary>
[JsonProperty("AppKey")]
public string AppKey{ get; set; }
/// <summary>
/// LoRa设备验证密钥
/// </summary>
[JsonProperty("AuthKey")]
public string AuthKey{ get; set; }
/// <summary>
/// 设备备注
/// </summary>
[JsonProperty("Memo")]
public string Memo{ 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 + "DeviceName", this.DeviceName);
this.SetParamSimple(map, prefix + "DeviceType", this.DeviceType);
this.SetParamSimple(map, prefix + "AppEui", this.AppEui);
this.SetParamSimple(map, prefix + "DeviceEui", this.DeviceEui);
this.SetParamSimple(map, prefix + "AppKey", this.AppKey);
this.SetParamSimple(map, prefix + "AuthKey", this.AuthKey);
this.SetParamSimple(map, prefix + "Memo", this.Memo);
}
}
}

View File

@@ -0,0 +1,71 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateLoraDeviceResponse : AbstractModel
{
/// <summary>
/// LoRa应用UUID
/// </summary>
[JsonProperty("AppEui")]
public string AppEui{ get; set; }
/// <summary>
/// LoRa设备UUID
/// </summary>
[JsonProperty("DeviceEui")]
public string DeviceEui{ get; set; }
/// <summary>
/// 设备类型,目前支持A、B、C三种
/// </summary>
[JsonProperty("ClassType")]
public string ClassType{ get; set; }
/// <summary>
/// 设备名称
/// </summary>
[JsonProperty("DeviceName")]
public string DeviceName{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "AppEui", this.AppEui);
this.SetParamSimple(map, prefix + "DeviceEui", this.DeviceEui);
this.SetParamSimple(map, prefix + "ClassType", this.ClassType);
this.SetParamSimple(map, prefix + "DeviceName", this.DeviceName);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateMultiDeviceRequest : AbstractModel
{
/// <summary>
/// 产品 ID。创建产品时腾讯云为用户分配全局唯一的 ID
/// </summary>
[JsonProperty("ProductId")]
public string ProductId{ get; set; }
/// <summary>
/// 批量创建的设备名数组,单次最多创建 100 个设备。命名规则:[a-zA-Z0-9:_-]{1,48}
/// </summary>
[JsonProperty("DeviceNames")]
public string[] DeviceNames{ 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.SetParamArraySimple(map, prefix + "DeviceNames.", this.DeviceNames);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateMultiDeviceResponse : AbstractModel
{
/// <summary>
/// 任务ID腾讯云生成全局唯一的任务 ID有效期一个月一个月之后任务失效。可以调用获取创建多设备任务状态接口获取该任务的执行状态当状态为成功时可以调用获取创建多设备任务结果接口获取该任务的结果
/// </summary>
[JsonProperty("TaskId")]
public string TaskId{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "TaskId", this.TaskId);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateProductRequest : AbstractModel
{
/// <summary>
/// 产品名称,名称不能和已经存在的产品名称重复。命名规则:[a-zA-Z0-9:_-]{1,32}
/// </summary>
[JsonProperty("ProductName")]
public string ProductName{ get; set; }
/// <summary>
/// 产品属性
/// </summary>
[JsonProperty("ProductProperties")]
public ProductProperties ProductProperties{ get; set; }
/// <summary>
/// 创建CLAA产品时需要Skey
/// </summary>
[JsonProperty("Skey")]
public string Skey{ 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 + "ProductName", this.ProductName);
this.SetParamObj(map, prefix + "ProductProperties.", this.ProductProperties);
this.SetParamSimple(map, prefix + "Skey", this.Skey);
}
}
}

View File

@@ -0,0 +1,64 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateProductResponse : AbstractModel
{
/// <summary>
/// 产品名称
/// </summary>
[JsonProperty("ProductName")]
public string ProductName{ get; set; }
/// <summary>
/// 产品 ID腾讯云生成全局唯一 ID
/// </summary>
[JsonProperty("ProductId")]
public string ProductId{ get; set; }
/// <summary>
/// 产品属性
/// </summary>
[JsonProperty("ProductProperties")]
public ProductProperties ProductProperties{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "ProductName", this.ProductName);
this.SetParamSimple(map, prefix + "ProductId", this.ProductId);
this.SetParamObj(map, prefix + "ProductProperties.", this.ProductProperties);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,78 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateTaskRequest : AbstractModel
{
/// <summary>
/// 任务类型,取值为 “UpdateShadow” 或者 “PublishMessage”
/// </summary>
[JsonProperty("TaskType")]
public string TaskType{ get; set; }
/// <summary>
/// 执行任务的产品ID
/// </summary>
[JsonProperty("ProductId")]
public string ProductId{ get; set; }
/// <summary>
/// 执行任务的设备名的正则表达式
/// </summary>
[JsonProperty("DeviceNameFilter")]
public string DeviceNameFilter{ get; set; }
/// <summary>
/// 任务开始执行的时间。 取值为 Unix 时间戳单位秒且需大于等于当前时间时间戳0为系统当前时间时间戳即立即执行最大为当前时间86400秒后超过则取值为当前时间86400秒后
/// </summary>
[JsonProperty("ScheduleTimeInSeconds")]
public ulong? ScheduleTimeInSeconds{ get; set; }
/// <summary>
/// 任务描述细节,描述见下 Task
/// </summary>
[JsonProperty("Tasks")]
public Task Tasks{ get; set; }
/// <summary>
/// 最长执行时间单位秒被调度后超过此时间仍未有结果则视为任务失败。取值为0-86400默认为86400
/// </summary>
[JsonProperty("MaxExecutionTimeInSeconds")]
public ulong? MaxExecutionTimeInSeconds{ 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 + "TaskType", this.TaskType);
this.SetParamSimple(map, prefix + "ProductId", this.ProductId);
this.SetParamSimple(map, prefix + "DeviceNameFilter", this.DeviceNameFilter);
this.SetParamSimple(map, prefix + "ScheduleTimeInSeconds", this.ScheduleTimeInSeconds);
this.SetParamObj(map, prefix + "Tasks.", this.Tasks);
this.SetParamSimple(map, prefix + "MaxExecutionTimeInSeconds", this.MaxExecutionTimeInSeconds);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateTaskResponse : AbstractModel
{
/// <summary>
/// 创建的任务ID
/// </summary>
[JsonProperty("TaskId")]
public string TaskId{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "TaskId", this.TaskId);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,64 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateTopicPolicyRequest : AbstractModel
{
/// <summary>
/// 产品自身ID
/// </summary>
[JsonProperty("ProductID")]
public string ProductID{ get; set; }
/// <summary>
/// Topic名称
/// </summary>
[JsonProperty("TopicName")]
public string TopicName{ get; set; }
/// <summary>
/// Topic权限1发布2订阅3订阅和发布
/// </summary>
[JsonProperty("Privilege")]
public ulong? Privilege{ get; set; }
/// <summary>
/// 代理订阅信息网关产品为绑定的子产品创建topic时需要填写内容为子产品的ID和设备信息。
/// </summary>
[JsonProperty("BrokerSubscribe")]
public BrokerSubscribe BrokerSubscribe{ 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 + "TopicName", this.TopicName);
this.SetParamSimple(map, prefix + "Privilege", this.Privilege);
this.SetParamObj(map, prefix + "BrokerSubscribe.", this.BrokerSubscribe);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateTopicPolicyResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateTopicRuleRequest : AbstractModel
{
/// <summary>
/// 规则名称
/// </summary>
[JsonProperty("RuleName")]
public string RuleName{ get; set; }
/// <summary>
/// 规则内容
/// </summary>
[JsonProperty("TopicRulePayload")]
public TopicRulePayload TopicRulePayload{ 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 + "RuleName", this.RuleName);
this.SetParamObj(map, prefix + "TopicRulePayload.", this.TopicRulePayload);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class CreateTopicRuleResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteDeviceRequest : AbstractModel
{
/// <summary>
/// 设备所属的产品 ID
/// </summary>
[JsonProperty("ProductId")]
public string ProductId{ get; set; }
/// <summary>
/// 需要删除的设备名称
/// </summary>
[JsonProperty("DeviceName")]
public string DeviceName{ get; set; }
/// <summary>
/// 删除LoRa设备以及LoRa网关设备需要skey
/// </summary>
[JsonProperty("Skey")]
public string Skey{ 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 + "DeviceName", this.DeviceName);
this.SetParamSimple(map, prefix + "Skey", this.Skey);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteDeviceResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteLoraDeviceRequest : AbstractModel
{
/// <summary>
/// 设备所属产品ID
/// </summary>
[JsonProperty("ProductId")]
public string ProductId{ get; set; }
/// <summary>
/// 设备名称
/// </summary>
[JsonProperty("DeviceName")]
public string DeviceName{ 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 + "DeviceName", this.DeviceName);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteLoraDeviceResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteProductRequest : AbstractModel
{
/// <summary>
/// 需要删除的产品 ID
/// </summary>
[JsonProperty("ProductId")]
public string ProductId{ get; set; }
/// <summary>
/// 删除LoRa产品需要skey
/// </summary>
[JsonProperty("Skey")]
public string Skey{ 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 + "Skey", this.Skey);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteProductResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteTopicRuleRequest : AbstractModel
{
/// <summary>
/// 规则名
/// </summary>
[JsonProperty("RuleName")]
public string RuleName{ 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 + "RuleName", this.RuleName);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeleteTopicRuleResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeDeviceClientKeyRequest : AbstractModel
{
/// <summary>
/// 所属产品的Id
/// </summary>
[JsonProperty("ProductId")]
public string ProductId{ get; set; }
/// <summary>
/// 设备名称
/// </summary>
[JsonProperty("DeviceName")]
public string DeviceName{ 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 + "DeviceName", this.DeviceName);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeDeviceClientKeyResponse : AbstractModel
{
/// <summary>
/// 设备的私钥
/// </summary>
[JsonProperty("ClientKey")]
public string ClientKey{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "ClientKey", this.ClientKey);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeDeviceRequest : AbstractModel
{
/// <summary>
/// 产品ID
/// </summary>
[JsonProperty("ProductID")]
public string ProductID{ get; set; }
/// <summary>
/// 设备名
/// </summary>
[JsonProperty("DeviceName")]
public string DeviceName{ 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 + "DeviceName", this.DeviceName);
}
}
}

View File

@@ -0,0 +1,204 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeDeviceResponse : AbstractModel
{
/// <summary>
/// 设备名
/// </summary>
[JsonProperty("DeviceName")]
public string DeviceName{ get; set; }
/// <summary>
/// 设备是否在线0不在线1在线
/// </summary>
[JsonProperty("Online")]
public ulong? Online{ get; set; }
/// <summary>
/// 设备登录时间
/// </summary>
[JsonProperty("LoginTime")]
public ulong? LoginTime{ get; set; }
/// <summary>
/// 设备固件版本
/// </summary>
[JsonProperty("Version")]
public string Version{ get; set; }
/// <summary>
/// 设备最后更新时间
/// </summary>
[JsonProperty("LastUpdateTime")]
public ulong? LastUpdateTime{ get; set; }
/// <summary>
/// 设备证书
/// </summary>
[JsonProperty("DeviceCert")]
public string DeviceCert{ get; set; }
/// <summary>
/// 设备密钥
/// </summary>
[JsonProperty("DevicePsk")]
public string DevicePsk{ get; set; }
/// <summary>
/// 设备属性
/// </summary>
[JsonProperty("Tags")]
public DeviceTag[] Tags{ get; set; }
/// <summary>
/// 设备类型
/// </summary>
[JsonProperty("DeviceType")]
public ulong? DeviceType{ get; set; }
/// <summary>
/// IMEI
/// </summary>
[JsonProperty("Imei")]
public string Imei{ get; set; }
/// <summary>
/// 运营商类型
/// </summary>
[JsonProperty("Isp")]
public ulong? Isp{ get; set; }
/// <summary>
/// IP地址
/// </summary>
[JsonProperty("ConnIP")]
public ulong? ConnIP{ get; set; }
/// <summary>
/// NB IoT运营商处的DeviceID
/// </summary>
[JsonProperty("NbiotDeviceID")]
public string NbiotDeviceID{ get; set; }
/// <summary>
/// Lora设备的dev eui
/// </summary>
[JsonProperty("LoraDevEui")]
public string LoraDevEui{ get; set; }
/// <summary>
/// Lora设备的mote type
/// </summary>
[JsonProperty("LoraMoteType")]
public ulong? LoraMoteType{ get; set; }
/// <summary>
/// 设备的sdk日志等级
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("LogLevel")]
public ulong? LogLevel{ get; set; }
/// <summary>
/// 首次上线时间
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("FirstOnlineTime")]
public ulong? FirstOnlineTime{ get; set; }
/// <summary>
/// 最近下线时间
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("LastOfflineTime")]
public ulong? LastOfflineTime{ get; set; }
/// <summary>
/// 设备创建时间
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("CreateTime")]
public ulong? CreateTime{ get; set; }
/// <summary>
/// 设备证书获取状态0 未获取过设备密钥, 1 已获取过设备密钥
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("CertState")]
public ulong? CertState{ get; set; }
/// <summary>
/// 设备启用状态
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("EnableState")]
public ulong? EnableState{ get; set; }
/// <summary>
/// 设备标签
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Labels")]
public DeviceLabel[] Labels{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "DeviceName", this.DeviceName);
this.SetParamSimple(map, prefix + "Online", this.Online);
this.SetParamSimple(map, prefix + "LoginTime", this.LoginTime);
this.SetParamSimple(map, prefix + "Version", this.Version);
this.SetParamSimple(map, prefix + "LastUpdateTime", this.LastUpdateTime);
this.SetParamSimple(map, prefix + "DeviceCert", this.DeviceCert);
this.SetParamSimple(map, prefix + "DevicePsk", this.DevicePsk);
this.SetParamArrayObj(map, prefix + "Tags.", this.Tags);
this.SetParamSimple(map, prefix + "DeviceType", this.DeviceType);
this.SetParamSimple(map, prefix + "Imei", this.Imei);
this.SetParamSimple(map, prefix + "Isp", this.Isp);
this.SetParamSimple(map, prefix + "ConnIP", this.ConnIP);
this.SetParamSimple(map, prefix + "NbiotDeviceID", this.NbiotDeviceID);
this.SetParamSimple(map, prefix + "LoraDevEui", this.LoraDevEui);
this.SetParamSimple(map, prefix + "LoraMoteType", this.LoraMoteType);
this.SetParamSimple(map, prefix + "LogLevel", this.LogLevel);
this.SetParamSimple(map, prefix + "FirstOnlineTime", this.FirstOnlineTime);
this.SetParamSimple(map, prefix + "LastOfflineTime", this.LastOfflineTime);
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.SetParamSimple(map, prefix + "CertState", this.CertState);
this.SetParamSimple(map, prefix + "EnableState", this.EnableState);
this.SetParamArrayObj(map, prefix + "Labels.", this.Labels);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeDeviceShadowRequest : AbstractModel
{
/// <summary>
/// 产品 ID
/// </summary>
[JsonProperty("ProductId")]
public string ProductId{ get; set; }
/// <summary>
/// 设备名称。命名规则:[a-zA-Z0-9:_-]{1,48}
/// </summary>
[JsonProperty("DeviceName")]
public string DeviceName{ 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 + "DeviceName", this.DeviceName);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeDeviceShadowResponse : AbstractModel
{
/// <summary>
/// 设备影子数据
/// </summary>
[JsonProperty("Data")]
public string Data{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "Data", this.Data);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,64 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeDevicesRequest : AbstractModel
{
/// <summary>
/// 需要查看设备列表的产品 ID
/// </summary>
[JsonProperty("ProductId")]
public string ProductId{ get; set; }
/// <summary>
/// 偏移量Offset从0开始
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// 分页的大小,数值范围 10-250
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ get; set; }
/// <summary>
/// 设备固件版本号,若不带此参数会返回所有固件版本的设备
/// </summary>
[JsonProperty("FirmwareVersion")]
public string FirmwareVersion{ 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 + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
this.SetParamSimple(map, prefix + "FirmwareVersion", this.FirmwareVersion);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeDevicesResponse : AbstractModel
{
/// <summary>
/// 设备总数
/// </summary>
[JsonProperty("TotalCount")]
public ulong? TotalCount{ get; set; }
/// <summary>
/// 设备详细信息列表
/// </summary>
[JsonProperty("Devices")]
public DeviceInfo[] Devices{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "TotalCount", this.TotalCount);
this.SetParamArrayObj(map, prefix + "Devices.", this.Devices);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeLoraDeviceRequest : AbstractModel
{
/// <summary>
/// 产品id
/// </summary>
[JsonProperty("ProductId")]
public string ProductId{ get; set; }
/// <summary>
/// 设备名称
/// </summary>
[JsonProperty("DeviceName")]
public string DeviceName{ 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 + "DeviceName", this.DeviceName);
}
}
}

View File

@@ -0,0 +1,85 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeLoraDeviceResponse : AbstractModel
{
/// <summary>
/// 设备名称
/// </summary>
[JsonProperty("DeviceName")]
public string DeviceName{ get; set; }
/// <summary>
/// LoRa应用UUID
/// </summary>
[JsonProperty("AppEui")]
public string AppEui{ get; set; }
/// <summary>
/// LoRa设备UUID
/// </summary>
[JsonProperty("DeviceEui")]
public string DeviceEui{ get; set; }
/// <summary>
/// LoRa应用密钥
/// </summary>
[JsonProperty("AppKey")]
public string AppKey{ get; set; }
/// <summary>
/// 设备类型,目前支持A、B、C三种
/// </summary>
[JsonProperty("ClassType")]
public string ClassType{ get; set; }
/// <summary>
/// 设备所属产品id
/// </summary>
[JsonProperty("ProductId")]
public string ProductId{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "DeviceName", this.DeviceName);
this.SetParamSimple(map, prefix + "AppEui", this.AppEui);
this.SetParamSimple(map, prefix + "DeviceEui", this.DeviceEui);
this.SetParamSimple(map, prefix + "AppKey", this.AppKey);
this.SetParamSimple(map, prefix + "ClassType", this.ClassType);
this.SetParamSimple(map, prefix + "ProductId", this.ProductId);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeMultiDevTaskRequest : AbstractModel
{
/// <summary>
/// 任务 ID由批量创建设备接口返回
/// </summary>
[JsonProperty("TaskId")]
public string TaskId{ get; set; }
/// <summary>
/// 产品 ID创建产品时腾讯云为用户分配全局唯一的 ID
/// </summary>
[JsonProperty("ProductId")]
public string ProductId{ 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 + "TaskId", this.TaskId);
this.SetParamSimple(map, prefix + "ProductId", this.ProductId);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeMultiDevTaskResponse : AbstractModel
{
/// <summary>
/// 任务 ID
/// </summary>
[JsonProperty("TaskId")]
public string TaskId{ get; set; }
/// <summary>
/// 任务是否完成。0 代表任务未开始1 代表任务正在执行2 代表任务已完成
/// </summary>
[JsonProperty("TaskStatus")]
public ulong? TaskStatus{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "TaskId", this.TaskId);
this.SetParamSimple(map, prefix + "TaskStatus", this.TaskStatus);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,64 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeMultiDevicesRequest : AbstractModel
{
/// <summary>
/// 产品 ID创建产品时腾讯云为用户分配全局唯一的 ID
/// </summary>
[JsonProperty("ProductId")]
public string ProductId{ get; set; }
/// <summary>
/// 任务 ID由批量创建设备接口返回
/// </summary>
[JsonProperty("TaskId")]
public string TaskId{ get; set; }
/// <summary>
/// 分页偏移
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// 分页大小,每页返回的设备个数
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ 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 + "TaskId", this.TaskId);
this.SetParamSimple(map, prefix + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
}
}
}

View File

@@ -0,0 +1,64 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeMultiDevicesResponse : AbstractModel
{
/// <summary>
/// 任务 ID由批量创建设备接口返回
/// </summary>
[JsonProperty("TaskId")]
public string TaskId{ get; set; }
/// <summary>
/// 设备详细信息列表
/// </summary>
[JsonProperty("DevicesInfo")]
public MultiDevicesInfo[] DevicesInfo{ get; set; }
/// <summary>
/// 该任务创建设备的总数
/// </summary>
[JsonProperty("TotalDevNum")]
public ulong? TotalDevNum{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "TaskId", this.TaskId);
this.SetParamArrayObj(map, prefix + "DevicesInfo.", this.DevicesInfo);
this.SetParamSimple(map, prefix + "TotalDevNum", this.TotalDevNum);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeProductsRequest : AbstractModel
{
/// <summary>
/// 偏移量Offset从0开始
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// 分页大小,当前页面中显示的最大数量,值范围 10-250。
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ 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 + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeProductsResponse : AbstractModel
{
/// <summary>
/// 产品总数
/// </summary>
[JsonProperty("TotalCount")]
public ulong? TotalCount{ get; set; }
/// <summary>
/// 产品详细信息列表
/// </summary>
[JsonProperty("Products")]
public ProductInfo[] Products{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "TotalCount", this.TotalCount);
this.SetParamArrayObj(map, prefix + "Products.", this.Products);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeTaskRequest : AbstractModel
{
/// <summary>
/// 任务ID
/// </summary>
[JsonProperty("Id")]
public string Id{ 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 + "Id", this.Id);
}
}
}

View File

@@ -0,0 +1,134 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeTaskResponse : AbstractModel
{
/// <summary>
/// 任务类型,目前取值为 “UpdateShadow” 或者 “PublishMessage”
/// </summary>
[JsonProperty("Type")]
public string Type{ get; set; }
/// <summary>
/// 任务 ID
/// </summary>
[JsonProperty("Id")]
public string Id{ get; set; }
/// <summary>
/// 产品 ID
/// </summary>
[JsonProperty("ProductId")]
public string ProductId{ get; set; }
/// <summary>
/// 状态。1表示等待处理2表示调度处理中3表示已完成4表示失败5表示已取消
/// </summary>
[JsonProperty("Status")]
public ulong? Status{ get; set; }
/// <summary>
/// 任务创建时间Unix 时间戳
/// </summary>
[JsonProperty("CreateTime")]
public ulong? CreateTime{ get; set; }
/// <summary>
/// 最后任务更新时间Unix 时间戳
/// </summary>
[JsonProperty("UpdateTime")]
public ulong? UpdateTime{ get; set; }
/// <summary>
/// 任务完成时间Unix 时间戳
/// </summary>
[JsonProperty("DoneTime")]
public ulong? DoneTime{ get; set; }
/// <summary>
/// 被调度时间Unix 时间戳
/// </summary>
[JsonProperty("ScheduleTime")]
public ulong? ScheduleTime{ get; set; }
/// <summary>
/// 返回的错误码
/// </summary>
[JsonProperty("RetCode")]
public ulong? RetCode{ get; set; }
/// <summary>
/// 返回的错误信息
/// </summary>
[JsonProperty("ErrMsg")]
public string ErrMsg{ get; set; }
/// <summary>
/// 完成任务的设备比例
/// </summary>
[JsonProperty("Percent")]
public ulong? Percent{ get; set; }
/// <summary>
/// 匹配到的需执行任务的设备数目
/// </summary>
[JsonProperty("AllDeviceCnt")]
public ulong? AllDeviceCnt{ get; set; }
/// <summary>
/// 已完成任务的设备数目
/// </summary>
[JsonProperty("DoneDeviceCnt")]
public ulong? DoneDeviceCnt{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "Type", this.Type);
this.SetParamSimple(map, prefix + "Id", this.Id);
this.SetParamSimple(map, prefix + "ProductId", this.ProductId);
this.SetParamSimple(map, prefix + "Status", this.Status);
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.SetParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
this.SetParamSimple(map, prefix + "DoneTime", this.DoneTime);
this.SetParamSimple(map, prefix + "ScheduleTime", this.ScheduleTime);
this.SetParamSimple(map, prefix + "RetCode", this.RetCode);
this.SetParamSimple(map, prefix + "ErrMsg", this.ErrMsg);
this.SetParamSimple(map, prefix + "Percent", this.Percent);
this.SetParamSimple(map, prefix + "AllDeviceCnt", this.AllDeviceCnt);
this.SetParamSimple(map, prefix + "DoneDeviceCnt", this.DoneDeviceCnt);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeTasksRequest : AbstractModel
{
/// <summary>
/// 偏移量从0开始
/// </summary>
[JsonProperty("Offset")]
public ulong? Offset{ get; set; }
/// <summary>
/// 分页的大小,数值范围 1-250
/// </summary>
[JsonProperty("Limit")]
public ulong? Limit{ 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 + "Offset", this.Offset);
this.SetParamSimple(map, prefix + "Limit", this.Limit);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DescribeTasksResponse : AbstractModel
{
/// <summary>
/// 用户一个月内创建的任务总数
/// </summary>
[JsonProperty("TotalCount")]
public ulong? TotalCount{ get; set; }
/// <summary>
/// 此页任务对象的数组,按创建时间排序
/// </summary>
[JsonProperty("Tasks")]
public TaskInfo[] Tasks{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "TotalCount", this.TotalCount);
this.SetParamArrayObj(map, prefix + "Tasks.", this.Tasks);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,197 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeviceInfo : AbstractModel
{
/// <summary>
/// 设备名
/// </summary>
[JsonProperty("DeviceName")]
public string DeviceName{ get; set; }
/// <summary>
/// 设备是否在线0不在线1在线
/// </summary>
[JsonProperty("Online")]
public ulong? Online{ get; set; }
/// <summary>
/// 设备登录时间
/// </summary>
[JsonProperty("LoginTime")]
public ulong? LoginTime{ get; set; }
/// <summary>
/// 设备版本
/// </summary>
[JsonProperty("Version")]
public string Version{ get; set; }
/// <summary>
/// 设备证书,证书加密的设备返回
/// </summary>
[JsonProperty("DeviceCert")]
public string DeviceCert{ get; set; }
/// <summary>
/// 设备密钥,密钥加密的设备返回
/// </summary>
[JsonProperty("DevicePsk")]
public string DevicePsk{ get; set; }
/// <summary>
/// 设备属性
/// </summary>
[JsonProperty("Tags")]
public DeviceTag[] Tags{ get; set; }
/// <summary>
/// 设备类型
/// </summary>
[JsonProperty("DeviceType")]
public ulong? DeviceType{ get; set; }
/// <summary>
/// IMEI
/// </summary>
[JsonProperty("Imei")]
public string Imei{ get; set; }
/// <summary>
/// 运营商类型
/// </summary>
[JsonProperty("Isp")]
public ulong? Isp{ get; set; }
/// <summary>
/// NB IOT运营商处的DeviceID
/// </summary>
[JsonProperty("NbiotDeviceID")]
public string NbiotDeviceID{ get; set; }
/// <summary>
/// IP地址
/// </summary>
[JsonProperty("ConnIP")]
public ulong? ConnIP{ get; set; }
/// <summary>
/// 设备最后更新时间
/// </summary>
[JsonProperty("LastUpdateTime")]
public ulong? LastUpdateTime{ get; set; }
/// <summary>
/// LoRa设备的dev eui
/// </summary>
[JsonProperty("LoraDevEui")]
public string LoraDevEui{ get; set; }
/// <summary>
/// LoRa设备的Mote type
/// </summary>
[JsonProperty("LoraMoteType")]
public ulong? LoraMoteType{ get; set; }
/// <summary>
/// 首次上线时间
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("FirstOnlineTime")]
public ulong? FirstOnlineTime{ get; set; }
/// <summary>
/// 最近下线时间
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("LastOfflineTime")]
public ulong? LastOfflineTime{ get; set; }
/// <summary>
/// 设备创建时间
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("CreateTime")]
public ulong? CreateTime{ get; set; }
/// <summary>
/// 设备日志级别
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("LogLevel")]
public ulong? LogLevel{ get; set; }
/// <summary>
/// 设备证书获取状态, 1 已获取过设备密钥0 未获取过设备密钥
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("CertState")]
public ulong? CertState{ get; set; }
/// <summary>
/// 设备可用状态0禁用1启用
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("EnableState")]
public ulong? EnableState{ get; set; }
/// <summary>
/// 设备标签
/// 注意:此字段可能返回 null表示取不到有效值。
/// </summary>
[JsonProperty("Labels")]
public DeviceLabel[] Labels{ 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 + "DeviceName", this.DeviceName);
this.SetParamSimple(map, prefix + "Online", this.Online);
this.SetParamSimple(map, prefix + "LoginTime", this.LoginTime);
this.SetParamSimple(map, prefix + "Version", this.Version);
this.SetParamSimple(map, prefix + "DeviceCert", this.DeviceCert);
this.SetParamSimple(map, prefix + "DevicePsk", this.DevicePsk);
this.SetParamArrayObj(map, prefix + "Tags.", this.Tags);
this.SetParamSimple(map, prefix + "DeviceType", this.DeviceType);
this.SetParamSimple(map, prefix + "Imei", this.Imei);
this.SetParamSimple(map, prefix + "Isp", this.Isp);
this.SetParamSimple(map, prefix + "NbiotDeviceID", this.NbiotDeviceID);
this.SetParamSimple(map, prefix + "ConnIP", this.ConnIP);
this.SetParamSimple(map, prefix + "LastUpdateTime", this.LastUpdateTime);
this.SetParamSimple(map, prefix + "LoraDevEui", this.LoraDevEui);
this.SetParamSimple(map, prefix + "LoraMoteType", this.LoraMoteType);
this.SetParamSimple(map, prefix + "FirstOnlineTime", this.FirstOnlineTime);
this.SetParamSimple(map, prefix + "LastOfflineTime", this.LastOfflineTime);
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.SetParamSimple(map, prefix + "LogLevel", this.LogLevel);
this.SetParamSimple(map, prefix + "CertState", this.CertState);
this.SetParamSimple(map, prefix + "EnableState", this.EnableState);
this.SetParamArrayObj(map, prefix + "Labels.", this.Labels);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeviceLabel : AbstractModel
{
/// <summary>
/// 标签标识
/// </summary>
[JsonProperty("Key")]
public string Key{ get; set; }
/// <summary>
/// 标签值
/// </summary>
[JsonProperty("Value")]
public string Value{ 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 + "Key", this.Key);
this.SetParamSimple(map, prefix + "Value", this.Value);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DeviceTag : AbstractModel
{
/// <summary>
/// 属性名称
/// </summary>
[JsonProperty("Tag")]
public string Tag{ get; set; }
/// <summary>
/// 属性值的类型1 int2 string
/// </summary>
[JsonProperty("Type")]
public ulong? Type{ get; set; }
/// <summary>
/// 属性的值
/// </summary>
[JsonProperty("Value")]
public string Value{ 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 + "Tag", this.Tag);
this.SetParamSimple(map, prefix + "Type", this.Type);
this.SetParamSimple(map, prefix + "Value", this.Value);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DisableTopicRuleRequest : AbstractModel
{
/// <summary>
/// 规则名称
/// </summary>
[JsonProperty("RuleName")]
public string RuleName{ 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 + "RuleName", this.RuleName);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class DisableTopicRuleResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class EnableTopicRuleRequest : AbstractModel
{
/// <summary>
/// 规则名称
/// </summary>
[JsonProperty("RuleName")]
public string RuleName{ 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 + "RuleName", this.RuleName);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class EnableTopicRuleResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,78 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class MultiDevicesInfo : AbstractModel
{
/// <summary>
/// 设备名
/// </summary>
[JsonProperty("DeviceName")]
public string DeviceName{ get; set; }
/// <summary>
/// 对称加密密钥base64 编码,采用对称加密时返回该参数
/// </summary>
[JsonProperty("DevicePsk")]
public string DevicePsk{ get; set; }
/// <summary>
/// 设备证书,采用非对称加密时返回该参数
/// </summary>
[JsonProperty("DeviceCert")]
public string DeviceCert{ get; set; }
/// <summary>
/// 设备私钥,采用非对称加密时返回该参数,腾讯云为用户缓存起来,其生命周期与任务生命周期一致
/// </summary>
[JsonProperty("DevicePrivateKey")]
public string DevicePrivateKey{ get; set; }
/// <summary>
/// 错误码
/// </summary>
[JsonProperty("Result")]
public ulong? Result{ get; set; }
/// <summary>
/// 错误信息
/// </summary>
[JsonProperty("ErrMsg")]
public string ErrMsg{ 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 + "DeviceName", this.DeviceName);
this.SetParamSimple(map, prefix + "DevicePsk", this.DevicePsk);
this.SetParamSimple(map, prefix + "DeviceCert", this.DeviceCert);
this.SetParamSimple(map, prefix + "DevicePrivateKey", this.DevicePrivateKey);
this.SetParamSimple(map, prefix + "Result", this.Result);
this.SetParamSimple(map, prefix + "ErrMsg", this.ErrMsg);
}
}
}

View File

@@ -0,0 +1,64 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ProductInfo : AbstractModel
{
/// <summary>
/// 产品ID
/// </summary>
[JsonProperty("ProductId")]
public string ProductId{ get; set; }
/// <summary>
/// 产品名
/// </summary>
[JsonProperty("ProductName")]
public string ProductName{ get; set; }
/// <summary>
/// 产品元数据
/// </summary>
[JsonProperty("ProductMetadata")]
public ProductMetadata ProductMetadata{ get; set; }
/// <summary>
/// 产品属性
/// </summary>
[JsonProperty("ProductProperties")]
public ProductProperties ProductProperties{ 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 + "ProductName", this.ProductName);
this.SetParamObj(map, prefix + "ProductMetadata.", this.ProductMetadata);
this.SetParamObj(map, prefix + "ProductProperties.", this.ProductProperties);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ProductMetadata : AbstractModel
{
/// <summary>
/// 产品创建时间
/// </summary>
[JsonProperty("CreationDate")]
public ulong? CreationDate{ 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 + "CreationDate", this.CreationDate);
}
}
}

View File

@@ -0,0 +1,128 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ProductProperties : AbstractModel
{
/// <summary>
/// 产品描述
/// </summary>
[JsonProperty("ProductDescription")]
public string ProductDescription{ get; set; }
/// <summary>
/// 加密类型1表示证书认证2表示签名认证。如不填写默认值是1
/// </summary>
[JsonProperty("EncryptionType")]
public string EncryptionType{ get; set; }
/// <summary>
/// 产品所属区域目前只支持广州gz
/// </summary>
[JsonProperty("Region")]
public string Region{ get; set; }
/// <summary>
/// 产品类型,各个类型值代表的节点-类型如下:
/// 0 普通产品2 NB-IoT产品4 LoRa产品3 LoRa网关产品5 普通网关产品 默认值是0
/// </summary>
[JsonProperty("ProductType")]
public ulong? ProductType{ get; set; }
/// <summary>
/// 数据格式取值为json或者custom默认值是json
/// </summary>
[JsonProperty("Format")]
public string Format{ get; set; }
/// <summary>
/// 产品所属平台默认值是0
/// </summary>
[JsonProperty("Platform")]
public string Platform{ get; set; }
/// <summary>
/// LoRa产品运营侧APPEUI只有LoRa产品需要填写
/// </summary>
[JsonProperty("Appeui")]
public string Appeui{ get; set; }
/// <summary>
/// 产品绑定的物模型ID-1表示不绑定
/// </summary>
[JsonProperty("ModelId")]
public string ModelId{ get; set; }
/// <summary>
/// 产品绑定的物模型名称
/// </summary>
[JsonProperty("ModelName")]
public string ModelName{ get; set; }
/// <summary>
/// 产品密钥suite产品才会有
/// </summary>
[JsonProperty("ProductKey")]
public string ProductKey{ get; set; }
/// <summary>
/// 动态注册类型 0-关闭, 1-预定义设备名 2-动态定义设备名
/// </summary>
[JsonProperty("RegisterType")]
public ulong? RegisterType{ get; set; }
/// <summary>
/// 动态注册产品秘钥
/// </summary>
[JsonProperty("ProductSecret")]
public string ProductSecret{ get; set; }
/// <summary>
/// RegisterType为2时设备动态创建的限制数量
/// </summary>
[JsonProperty("RegisterLimit")]
public ulong? RegisterLimit{ 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 + "ProductDescription", this.ProductDescription);
this.SetParamSimple(map, prefix + "EncryptionType", this.EncryptionType);
this.SetParamSimple(map, prefix + "Region", this.Region);
this.SetParamSimple(map, prefix + "ProductType", this.ProductType);
this.SetParamSimple(map, prefix + "Format", this.Format);
this.SetParamSimple(map, prefix + "Platform", this.Platform);
this.SetParamSimple(map, prefix + "Appeui", this.Appeui);
this.SetParamSimple(map, prefix + "ModelId", this.ModelId);
this.SetParamSimple(map, prefix + "ModelName", this.ModelName);
this.SetParamSimple(map, prefix + "ProductKey", this.ProductKey);
this.SetParamSimple(map, prefix + "RegisterType", this.RegisterType);
this.SetParamSimple(map, prefix + "ProductSecret", this.ProductSecret);
this.SetParamSimple(map, prefix + "RegisterLimit", this.RegisterLimit);
}
}
}

View File

@@ -0,0 +1,64 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PublishAsDeviceRequest : AbstractModel
{
/// <summary>
/// 产品ID
/// </summary>
[JsonProperty("ProductId")]
public string ProductId{ get; set; }
/// <summary>
/// 设备名称
/// </summary>
[JsonProperty("DeviceName")]
public string DeviceName{ get; set; }
/// <summary>
/// LoRa 设备端口
/// </summary>
[JsonProperty("Port")]
public ulong? Port{ get; set; }
/// <summary>
/// 消息内容
/// </summary>
[JsonProperty("Payload")]
public string Payload{ 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 + "DeviceName", this.DeviceName);
this.SetParamSimple(map, prefix + "Port", this.Port);
this.SetParamSimple(map, prefix + "Payload", this.Payload);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PublishAsDeviceResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,71 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PublishMessageRequest : AbstractModel
{
/// <summary>
/// 消息发往的主题。命名规则:${ProductId}/${DeviceName}/[a-zA-Z0-9:_-]{1,128}
/// </summary>
[JsonProperty("Topic")]
public string Topic{ get; set; }
/// <summary>
/// 消息内容
/// </summary>
[JsonProperty("Payload")]
public string Payload{ get; set; }
/// <summary>
/// 产品ID
/// </summary>
[JsonProperty("ProductId")]
public string ProductId{ get; set; }
/// <summary>
/// 设备名称
/// </summary>
[JsonProperty("DeviceName")]
public string DeviceName{ get; set; }
/// <summary>
/// 服务质量等级取值为0或1
/// </summary>
[JsonProperty("Qos")]
public ulong? Qos{ 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 + "Topic", this.Topic);
this.SetParamSimple(map, prefix + "Payload", this.Payload);
this.SetParamSimple(map, prefix + "ProductId", this.ProductId);
this.SetParamSimple(map, prefix + "DeviceName", this.DeviceName);
this.SetParamSimple(map, prefix + "Qos", this.Qos);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PublishMessageResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,64 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PublishToDeviceRequest : AbstractModel
{
/// <summary>
/// 产品id
/// </summary>
[JsonProperty("ProductId")]
public string ProductId{ get; set; }
/// <summary>
/// 设备名称
/// </summary>
[JsonProperty("DeviceName")]
public string DeviceName{ get; set; }
/// <summary>
/// LoRa 端口
/// </summary>
[JsonProperty("Port")]
public ulong? Port{ get; set; }
/// <summary>
/// 消息内容
/// </summary>
[JsonProperty("Payload")]
public string Payload{ 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 + "DeviceName", this.DeviceName);
this.SetParamSimple(map, prefix + "Port", this.Port);
this.SetParamSimple(map, prefix + "Payload", this.Payload);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class PublishToDeviceResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,64 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ReplaceTopicRuleRequest : AbstractModel
{
/// <summary>
/// 规则名称
/// </summary>
[JsonProperty("RuleName")]
public string RuleName{ get; set; }
/// <summary>
/// 替换的规则包体
/// </summary>
[JsonProperty("TopicRulePayload")]
public TopicRulePayload TopicRulePayload{ get; set; }
/// <summary>
/// 修改类型0其他1创建行为2更新行为3删除行为
/// </summary>
[JsonProperty("ModifyType")]
public ulong? ModifyType{ get; set; }
/// <summary>
/// action增删改变更填对应topicRulePayload里面第几个action
/// </summary>
[JsonProperty("ActionIndex")]
public ulong? ActionIndex{ 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 + "RuleName", this.RuleName);
this.SetParamObj(map, prefix + "TopicRulePayload.", this.TopicRulePayload);
this.SetParamSimple(map, prefix + "ModifyType", this.ModifyType);
this.SetParamSimple(map, prefix + "ActionIndex", this.ActionIndex);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ReplaceTopicRuleResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ResetDeviceStateRequest : AbstractModel
{
/// <summary>
/// 产品ID
/// </summary>
[JsonProperty("ProductId")]
public string ProductId{ get; set; }
/// <summary>
/// 设备名称
/// </summary>
[JsonProperty("DeviceNames")]
public string[] DeviceNames{ 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.SetParamArraySimple(map, prefix + "DeviceNames.", this.DeviceNames);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class ResetDeviceStateResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class Task : AbstractModel
{
/// <summary>
/// 批量更新影子任务的描述细节,当 taskType 取值为 “UpdateShadow” 时,此字段必填。描述见下 BatchUpdateShadow
/// </summary>
[JsonProperty("UpdateShadowTask")]
public BatchUpdateShadow UpdateShadowTask{ get; set; }
/// <summary>
/// 批量下发消息任务的描述细节,当 taskType 取值为 “PublishMessage” 时,此字段必填。描述见下 BatchPublishMessage
/// </summary>
[JsonProperty("PublishMessageTask")]
public BatchPublishMessage PublishMessageTask{ get; set; }
/// <summary>
/// For internal usage only. DO NOT USE IT.
/// </summary>
internal override void ToMap(Dictionary<string, string> map, string prefix)
{
this.SetParamObj(map, prefix + "UpdateShadowTask.", this.UpdateShadowTask);
this.SetParamObj(map, prefix + "PublishMessageTask.", this.PublishMessageTask);
}
}
}

View File

@@ -0,0 +1,92 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class TaskInfo : AbstractModel
{
/// <summary>
/// 任务类型,目前取值为 “UpdateShadow” 或者 “PublishMessage”
/// </summary>
[JsonProperty("Type")]
public string Type{ get; set; }
/// <summary>
/// 任务 ID
/// </summary>
[JsonProperty("Id")]
public string Id{ get; set; }
/// <summary>
/// 产品 ID
/// </summary>
[JsonProperty("ProductId")]
public string ProductId{ get; set; }
/// <summary>
/// 状态。1表示等待处理2表示调度处理中3表示已完成4表示失败5表示已取消
/// </summary>
[JsonProperty("Status")]
public ulong? Status{ get; set; }
/// <summary>
/// 任务创建时间Unix 时间戳
/// </summary>
[JsonProperty("CreateTime")]
public ulong? CreateTime{ get; set; }
/// <summary>
/// 最后任务更新时间Unix 时间戳
/// </summary>
[JsonProperty("UpdateTime")]
public ulong? UpdateTime{ get; set; }
/// <summary>
/// 返回的错误码
/// </summary>
[JsonProperty("RetCode")]
public ulong? RetCode{ get; set; }
/// <summary>
/// 返回的错误信息
/// </summary>
[JsonProperty("ErrMsg")]
public string ErrMsg{ 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 + "Type", this.Type);
this.SetParamSimple(map, prefix + "Id", this.Id);
this.SetParamSimple(map, prefix + "ProductId", this.ProductId);
this.SetParamSimple(map, prefix + "Status", this.Status);
this.SetParamSimple(map, prefix + "CreateTime", this.CreateTime);
this.SetParamSimple(map, prefix + "UpdateTime", this.UpdateTime);
this.SetParamSimple(map, prefix + "RetCode", this.RetCode);
this.SetParamSimple(map, prefix + "ErrMsg", this.ErrMsg);
}
}
}

View File

@@ -0,0 +1,112 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class TopicRulePayload : AbstractModel
{
/// <summary>
/// 规则的SQL语句 SELECT * FROM 'pid/dname/event'然后对其进行base64编码U0VMRUNUICogRlJPTSAncGlkL2RuYW1lL2V2ZW50Jw==
/// </summary>
[JsonProperty("Sql")]
public string Sql{ get; set; }
/// <summary>
/// 行为的JSON字符串大部分种类举例如下
/// [
/// {
/// "republish": {
/// "topic": "TEST/test"
/// }
/// },
/// {
/// "forward": {
/// "api": "http://127.0.0.1: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"
/// }
/// }
/// ]
/// </summary>
[JsonProperty("Actions")]
public string Actions{ get; set; }
/// <summary>
/// 规则描述
/// </summary>
[JsonProperty("Description")]
public string Description{ get; set; }
/// <summary>
/// 是否禁用规则
/// </summary>
[JsonProperty("RuleDisabled")]
public bool? RuleDisabled{ 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 + "Sql", this.Sql);
this.SetParamSimple(map, prefix + "Actions", this.Actions);
this.SetParamSimple(map, prefix + "Description", this.Description);
this.SetParamSimple(map, prefix + "RuleDisabled", this.RuleDisabled);
}
}
}

View File

@@ -0,0 +1,71 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class UnbindDevicesRequest : AbstractModel
{
/// <summary>
/// 网关设备的产品ID
/// </summary>
[JsonProperty("GatewayProductId")]
public string GatewayProductId{ get; set; }
/// <summary>
/// 网关设备的设备名
/// </summary>
[JsonProperty("GatewayDeviceName")]
public string GatewayDeviceName{ get; set; }
/// <summary>
/// 产品ID
/// </summary>
[JsonProperty("ProductId")]
public string ProductId{ get; set; }
/// <summary>
/// 多个设备名
/// </summary>
[JsonProperty("DeviceNames")]
public string[] DeviceNames{ get; set; }
/// <summary>
/// 中兴CLAA设备的解绑需要Skey普通设备不需要
/// </summary>
[JsonProperty("Skey")]
public string Skey{ 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 + "GatewayProductId", this.GatewayProductId);
this.SetParamSimple(map, prefix + "GatewayDeviceName", this.GatewayDeviceName);
this.SetParamSimple(map, prefix + "ProductId", this.ProductId);
this.SetParamArraySimple(map, prefix + "DeviceNames.", this.DeviceNames);
this.SetParamSimple(map, prefix + "Skey", this.Skey);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class UnbindDevicesResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,57 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class UpdateDeviceAvailableStateRequest : AbstractModel
{
/// <summary>
/// 设备所属产品id
/// </summary>
[JsonProperty("ProductId")]
public string ProductId{ get; set; }
/// <summary>
/// 设备名称
/// </summary>
[JsonProperty("DeviceName")]
public string DeviceName{ get; set; }
/// <summary>
/// 要设置的设备状态1为启用0为禁用
/// </summary>
[JsonProperty("EnableState")]
public ulong? EnableState{ 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 + "DeviceName", this.DeviceName);
this.SetParamSimple(map, prefix + "EnableState", this.EnableState);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class UpdateDeviceAvailableStateResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,71 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class UpdateDeviceShadowRequest : AbstractModel
{
/// <summary>
/// 产品ID
/// </summary>
[JsonProperty("ProductId")]
public string ProductId{ get; set; }
/// <summary>
/// 设备名称
/// </summary>
[JsonProperty("DeviceName")]
public string DeviceName{ get; set; }
/// <summary>
/// 虚拟设备的状态JSON字符串格式由desired结构组成
/// </summary>
[JsonProperty("State")]
public string State{ get; set; }
/// <summary>
/// 当前版本号需要和后台的version保持一致才能更新成功
/// </summary>
[JsonProperty("ShadowVersion")]
public ulong? ShadowVersion{ get; set; }
/// <summary>
/// 下发delta消息的topic前缀可选类型: "$shadow","$template"。不填写默认"$shadow"。
/// </summary>
[JsonProperty("Prefix")]
public string Prefix{ 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 + "DeviceName", this.DeviceName);
this.SetParamSimple(map, prefix + "State", this.State);
this.SetParamSimple(map, prefix + "ShadowVersion", this.ShadowVersion);
this.SetParamSimple(map, prefix + "Prefix", this.Prefix);
}
}
}

View File

@@ -0,0 +1,50 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class UpdateDeviceShadowResponse : AbstractModel
{
/// <summary>
/// 设备影子数据JSON字符串格式
/// </summary>
[JsonProperty("Data")]
public string Data{ get; set; }
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "Data", this.Data);
this.SetParamSimple(map, prefix + "RequestId", this.RequestId);
}
}
}

View File

@@ -0,0 +1,71 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class UpdateTopicPolicyRequest : AbstractModel
{
/// <summary>
/// 产品ID
/// </summary>
[JsonProperty("ProductID")]
public string ProductID{ get; set; }
/// <summary>
/// 更新前Topic名
/// </summary>
[JsonProperty("TopicName")]
public string TopicName{ get; set; }
/// <summary>
/// 更新后Topic名
/// </summary>
[JsonProperty("NewTopicName")]
public string NewTopicName{ get; set; }
/// <summary>
/// Topic权限
/// </summary>
[JsonProperty("Privilege")]
public ulong? Privilege{ get; set; }
/// <summary>
/// 代理订阅信息
/// </summary>
[JsonProperty("BrokerSubscribe")]
public BrokerSubscribe BrokerSubscribe{ 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 + "TopicName", this.TopicName);
this.SetParamSimple(map, prefix + "NewTopicName", this.NewTopicName);
this.SetParamSimple(map, prefix + "Privilege", this.Privilege);
this.SetParamObj(map, prefix + "BrokerSubscribe.", this.BrokerSubscribe);
}
}
}

View File

@@ -0,0 +1,43 @@
/*
* 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.Iotcloud.V20180614.Models
{
using Newtonsoft.Json;
using System.Collections.Generic;
using TencentCloud.Common;
public class UpdateTopicPolicyResponse : AbstractModel
{
/// <summary>
/// 唯一请求 ID每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
/// </summary>
[JsonProperty("RequestId")]
public string RequestId{ 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 + "RequestId", this.RequestId);
}
}
}