UNPKG

tencentcloud-sdk-nodejs-intl-en

Version:
1,937 lines (1,622 loc) • 170 kB
/* * Copyright (c) 2018 Tencent. 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. */ const AbstractModel = require("../../common/abstract_model"); /** * DeleteL3Conn response structure. * @class */ class DeleteL3ConnResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * GetDevice response structure. * @class */ class GetDeviceResponse extends AbstractModel { constructor(){ super(); /** * device details * @type {DeviceDetails || null} */ this.DeviceDetails = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.DeviceDetails) { let obj = new DeviceDetails(); obj.deserialize(params.DeviceDetails) this.DeviceDetails = obj; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * GetMultiFlowStatistic response structure. * @class */ class GetMultiFlowStatisticResponse extends AbstractModel { constructor(){ super(); /** * Batch device traffic information * @type {Array.<FlowDetails> || null} */ this.FlowDetails = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.FlowDetails) { this.FlowDetails = new Array(); for (let z in params.FlowDetails) { let obj = new FlowDetails(); obj.deserialize(params.FlowDetails[z]); this.FlowDetails.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Return the reported order information * @class */ class OrderInfo extends AbstractModel { constructor(){ super(); /** * Account uin of the parent account * @type {string || null} */ this.Uin = null; /** * Project ID * @type {string || null} */ this.ProjectId = null; /** * Usage type * @type {string || null} */ this.PackageType = null; /** * Order number unique identifier * @type {string || null} */ this.OrderId = null; /** * Report month, current month by default * @type {string || null} */ this.ReportMonth = null; /** * Data update time * @type {string || null} */ this.Updated = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Uin = 'Uin' in params ? params.Uin : null; this.ProjectId = 'ProjectId' in params ? params.ProjectId : null; this.PackageType = 'PackageType' in params ? params.PackageType : null; this.OrderId = 'OrderId' in params ? params.OrderId : null; this.ReportMonth = 'ReportMonth' in params ? params.ReportMonth : null; this.Updated = 'Updated' in params ? params.Updated : null; } } /** * Device traffic information * @class */ class FlowDetails extends AbstractModel { constructor(){ super(); /** * Traffic data point * @type {Array.<NetDetails> || null} */ this.NetDetails = null; /** * device ID * @type {string || null} */ this.DeviceId = null; /** * Maximum value of traffic (measurement unit: bytes) * @type {number || null} */ this.MaxValue = null; /** * Average traffic (unit: bytes) * @type {number || null} */ this.AvgValue = null; /** * Total traffic (unit: bytes) * @type {number || null} */ this.TotalValue = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.NetDetails) { this.NetDetails = new Array(); for (let z in params.NetDetails) { let obj = new NetDetails(); obj.deserialize(params.NetDetails[z]); this.NetDetails.push(obj); } } this.DeviceId = 'DeviceId' in params ? params.DeviceId : null; this.MaxValue = 'MaxValue' in params ? params.MaxValue : null; this.AvgValue = 'AvgValue' in params ? params.AvgValue : null; this.TotalValue = 'TotalValue' in params ? params.TotalValue : null; } } /** * UpdateApplicationKey response structure. * @class */ class UpdateApplicationKeyResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * UpdateL3Conn response structure. * @class */ class UpdateL3ConnResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * UpdateHardware response structure. * @class */ class UpdateHardwareResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Update device network status information * @class */ class UpdateNetInfo extends AbstractModel { constructor(){ super(); /** * Network type: Data 1:Wi-Fi * @type {number || null} */ this.Type = null; /** * Enable or disable. * @type {boolean || null} */ this.DataEnable = null; /** * Uplink speed limit: bit * @type {number || null} */ this.UploadLimit = null; /** * Downstream speed limit: bit. * @type {number || null} */ this.DownloadLimit = null; /** * NIC Name * @type {string || null} */ this.NetInfoName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Type = 'Type' in params ? params.Type : null; this.DataEnable = 'DataEnable' in params ? params.DataEnable : null; this.UploadLimit = 'UploadLimit' in params ? params.UploadLimit : null; this.DownloadLimit = 'DownloadLimit' in params ? params.DownloadLimit : null; this.NetInfoName = 'NetInfoName' in params ? params.NetInfoName : null; } } /** * UpdateL3Switch request structure. * @class */ class UpdateL3SwitchRequest extends AbstractModel { constructor(){ super(); /** * Interconnection rule ID * @type {string || null} */ this.L3ConnId = null; /** * Interconnection rule switch * @type {boolean || null} */ this.Enable = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.L3ConnId = 'L3ConnId' in params ? params.L3ConnId : null; this.Enable = 'Enable' in params ? params.Enable : null; } } /** * AddL3Conn request structure. * @class */ class AddL3ConnRequest extends AbstractModel { constructor(){ super(); /** * Set the interconnect CIDR1. Supported ranges: 10.0.0.0 - 10.255.255.255, 172.16.0.0 - 172.31.255.255, 192.168.0.0 - 192.168.255.255. * @type {string || null} */ this.Cidr1 = null; /** * Set the interconnection CIDR2. Supported ranges: 10.0.0.0 - 10.255.255.255, 172.16.0.0 - 172.31.255.255, 192.168.0.0 - 192.168.255.255. * @type {string || null} */ this.Cidr2 = null; /** * Device ID corresponding to CIDR1 * @type {string || null} */ this.DeviceId1 = null; /** * Device ID corresponding to CIDR2 * @type {string || null} */ this.DeviceId2 = null; /** * Rule description * @type {string || null} */ this.Description = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Cidr1 = 'Cidr1' in params ? params.Cidr1 : null; this.Cidr2 = 'Cidr2' in params ? params.Cidr2 : null; this.DeviceId1 = 'DeviceId1' in params ? params.DeviceId1 : null; this.DeviceId2 = 'DeviceId2' in params ? params.DeviceId2 : null; this.Description = 'Description' in params ? params.Description : null; } } /** * OrderPerLicense response structure. * @class */ class OrderPerLicenseResponse extends AbstractModel { constructor(){ super(); /** * Resource ID of the single-use License * @type {string || null} */ this.ResourceId = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ResourceId = 'ResourceId' in params ? params.ResourceId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * GetFlowPackages request structure. * @class */ class GetFlowPackagesRequest extends AbstractModel { constructor(){ super(); /** * Page number, starting from 1. * @type {number || null} */ this.PageNumber = null; /** * Number of Entry Per Page * @type {number || null} */ this.PageSize = null; /** * Unique resource ID of the data transfer plan * @type {string || null} */ this.ResourceId = null; /** * Device ID bound to the data transfer plan * @type {string || null} */ this.DeviceId = null; /** * Traffic packet status. 0: Not in effect, 1: Within the validity period, 2: Expired. * @type {number || null} */ this.Status = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.PageNumber = 'PageNumber' in params ? params.PageNumber : null; this.PageSize = 'PageSize' in params ? params.PageSize : null; this.ResourceId = 'ResourceId' in params ? params.ResourceId : null; this.DeviceId = 'DeviceId' in params ? params.DeviceId : null; this.Status = 'Status' in params ? params.Status : null; } } /** * SetNotifyUrl response structure. * @class */ class SetNotifyUrlResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * UpdateL3Cidr response structure. * @class */ class UpdateL3CidrResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * UpdateApplicationKey request structure. * @class */ class UpdateApplicationKeyRequest extends AbstractModel { constructor(){ super(); /** * base64 key string of the application * @type {string || null} */ this.MpApplicationKey = null; /** * Application ID * @type {string || null} */ this.MpApplicationId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.MpApplicationKey = 'MpApplicationKey' in params ? params.MpApplicationKey : null; this.MpApplicationId = 'MpApplicationId' in params ? params.MpApplicationId : null; } } /** * AddApplication request structure. * @class */ class AddApplicationRequest extends AbstractModel { constructor(){ super(); /** * Application name of the created app * @type {string || null} */ this.MpApplicationName = null; /** * Remark of the created device * @type {string || null} */ this.Remark = null; /** * base64 key string of the new application, optional, automatically generated by the system if not filled * @type {string || null} */ this.MpApplicationKey = null; /** * Access environment. 0: public cloud gateway; 1: private gateway; 2: public cloud gateway and private gateway. By default if left blank, public cloud gateway is selected. Specific meaning: Public cloud gateway: The device can only connect to public cloud gateway (Proximity access). Private gateway: The device can only connect to already launched private gateway (Proximity access or fixed ip access). Public cloud gateway and private gateway: The device can also connect to both public cloud gateway and already launched private gateway (Proximity access or fixed ip access). * @type {number || null} */ this.AccessScope = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.MpApplicationName = 'MpApplicationName' in params ? params.MpApplicationName : null; this.Remark = 'Remark' in params ? params.Remark : null; this.MpApplicationKey = 'MpApplicationKey' in params ? params.MpApplicationKey : null; this.AccessScope = 'AccessScope' in params ? params.AccessScope : null; } } /** * ModifyPackageRenewFlag request structure. * @class */ class ModifyPackageRenewFlagRequest extends AbstractModel { constructor(){ super(); /** * Unique resource ID of the data transfer plan * @type {string || null} */ this.ResourceId = null; /** * Auto-renewal flag. true represents auto-renewal, false represents no auto-renewal. * @type {boolean || null} */ this.RenewFlag = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ResourceId = 'ResourceId' in params ? params.ResourceId : null; this.RenewFlag = 'RenewFlag' in params ? params.RenewFlag : null; } } /** * GetFlowPackages response structure. * @class */ class GetFlowPackagesResponse extends AbstractModel { constructor(){ super(); /** * Data Transfer Plan List * @type {Array.<FlowPackageInfo> || null} */ this.PackageList = null; /** * Total number. * @type {number || null} */ this.Total = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.PackageList) { this.PackageList = new Array(); for (let z in params.PackageList) { let obj = new FlowPackageInfo(); obj.deserialize(params.PackageList[z]); this.PackageList.push(obj); } } this.Total = 'Total' in params ? params.Total : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ReportOrder request structure. * @class */ class ReportOrderRequest extends AbstractModel { constructor(){ super(); /** * Order number unique identifier * @type {string || null} */ this.OrderId = null; /** * Project ID * @type {string || null} */ this.ProjectId = null; /** * Usage type * @type {string || null} */ this.PackageType = null; /** * Report month, current month by default * @type {string || null} */ this.ReportMonth = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.OrderId = 'OrderId' in params ? params.OrderId : null; this.ProjectId = 'ProjectId' in params ? params.ProjectId : null; this.PackageType = 'PackageType' in params ? params.PackageType : null; this.ReportMonth = 'ReportMonth' in params ? params.ReportMonth : null; } } /** * DeleteL3Conn request structure. * @class */ class DeleteL3ConnRequest extends AbstractModel { constructor(){ super(); /** * List of interconnection rule IDs * @type {Array.<string> || null} */ this.L3ConnIdList = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.L3ConnIdList = 'L3ConnIdList' in params ? params.L3ConnIdList : null; } } /** * Application ID list * @class */ class DelApplicationList extends AbstractModel { constructor(){ super(); /** * Application ID. * @type {string || null} */ this.MpApplicationId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.MpApplicationId = 'MpApplicationId' in params ? params.MpApplicationId : null; } } /** * GetVendorHardware response structure. * @class */ class GetVendorHardwareResponse extends AbstractModel { constructor(){ super(); /** * List of Hardware Information * @type {Array.<VendorHardware> || null} */ this.VendorHardware = null; /** * Total number of devices * @type {number || null} */ this.Length = null; /** * Total pages * @type {number || null} */ this.TotalPage = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.VendorHardware) { this.VendorHardware = new Array(); for (let z in params.VendorHardware) { let obj = new VendorHardware(); obj.deserialize(params.VendorHardware[z]); this.VendorHardware.push(obj); } } this.Length = 'Length' in params ? params.Length : null; this.TotalPage = 'TotalPage' in params ? params.TotalPage : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * GetApplication response structure. * @class */ class GetApplicationResponse extends AbstractModel { constructor(){ super(); /** * Application ID * @type {string || null} */ this.MpApplicationId = null; /** * base64-format key encrypted with the encryption algorithm * @type {string || null} */ this.MpApplicationKey = null; /** * Application name * @type {string || null} */ this.MpApplicationName = null; /** * Device remark * @type {string || null} */ this.Remark = null; /** * Access environment. 0: public cloud gateway; 1: private gateway; 2: public cloud gateway and private gateway. By default if left blank, public cloud gateway is selected. Specific meaning: Public cloud gateway: The device can only connect to public cloud gateway (Proximity access). Private gateway: The device can only connect to already launched private gateway (Proximity access or fixed ip access). Public cloud gateway and private gateway: The device can also connect to both public cloud gateway and already launched private gateway (Proximity access or fixed ip access). * @type {number || null} */ this.AccessScope = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.MpApplicationId = 'MpApplicationId' in params ? params.MpApplicationId : null; this.MpApplicationKey = 'MpApplicationKey' in params ? params.MpApplicationKey : null; this.MpApplicationName = 'MpApplicationName' in params ? params.MpApplicationName : null; this.Remark = 'Remark' in params ? params.Remark : null; this.AccessScope = 'AccessScope' in params ? params.AccessScope : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * GetActiveDeviceCount response structure. * @class */ class GetActiveDeviceCountResponse extends AbstractModel { constructor(){ super(); /** * Activate device statistics * @type {Array.<ActiveDeviceList> || null} */ this.ActiveDeviceList = null; /** * Query granularity. Valid values: 0: day, 1: week, 2: month. Default is day. * @type {number || null} */ this.Period = null; /** * Start time. * @type {string || null} */ this.StartTime = null; /** * End time. * @type {string || null} */ this.EndTime = null; /** * device group * @type {string || null} */ this.DevGroup = null; /** * License type. If not passed, query all. 1: Tenant monthly payment, 2: Manufacturer monthly payment, 3: Permanent license. * @type {string || null} */ this.LicenseType = null; /** * tenant ID * @type {string || null} */ this.AppId = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.ActiveDeviceList) { this.ActiveDeviceList = new Array(); for (let z in params.ActiveDeviceList) { let obj = new ActiveDeviceList(); obj.deserialize(params.ActiveDeviceList[z]); this.ActiveDeviceList.push(obj); } } this.Period = 'Period' in params ? params.Period : null; this.StartTime = 'StartTime' in params ? params.StartTime : null; this.EndTime = 'EndTime' in params ? params.EndTime : null; this.DevGroup = 'DevGroup' in params ? params.DevGroup : null; this.LicenseType = 'LicenseType' in params ? params.LicenseType : null; this.AppId = 'AppId' in params ? params.AppId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Target IP info * @class */ class DestIpInfo extends AbstractModel { constructor(){ super(); /** * Time: s * @type {string || null} */ this.Time = null; /** * Gateway IP Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.GatewayIp = null; /** * gateway address Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.GatewaySite = null; /** * Number of target IPs Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.IpCount = null; /** * Target IP list Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<string> || null} */ this.IpList = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Time = 'Time' in params ? params.Time : null; this.GatewayIp = 'GatewayIp' in params ? params.GatewayIp : null; this.GatewaySite = 'GatewaySite' in params ? params.GatewaySite : null; this.IpCount = 'IpCount' in params ? params.IpCount : null; this.IpList = 'IpList' in params ? params.IpList : null; } } /** * basic device information * @class */ class DeviceBaseInfo extends AbstractModel { constructor(){ super(); /** * <p>Unique ID of the device</p> * @type {string || null} */ this.DeviceId = null; /** * <p>Device name</p> * @type {string || null} */ this.DeviceName = null; /** * <p>The time when the device is created, in ms</p> * @type {string || null} */ this.CreateTime = null; /** * <p>Last online time of the device, in ms</p> * @type {string || null} */ this.LastTime = null; /** * <p>Remark of the device</p> * @type {string || null} */ this.Remark = null; /** * <p>Access environment. 0: public cloud gateway; 1: private gateway; 2: public cloud gateway and private gateway. Defaults to public cloud gateway. Specific meaning: Public cloud gateway: The device can only access the public cloud gateway (nearby access). Private gateway: The device can only access the already launched private gateway (nearby access or fixed ip access). Public cloud gateway and private gateway: The device can also access both the public cloud gateway and the already launched private gateway (nearby access or fixed ip access).</p> * @type {number || null} */ this.AccessScope = null; /** * <p>license authorization validity period 0: monthly authorization 1: permanent license</p> * @type {number || null} */ this.LicensePayMode = null; /** * <p>Payment party 0: Manufacturer pays 1: Customer pays</p> * @type {number || null} */ this.Payer = null; /** * <p>device group ID</p> * @type {string || null} */ this.GroupId = null; /** * <p>Device group name</p> * @type {string || null} */ this.GroupName = null; /** * <p>Device data transfer plan processing method, 0: pay-as-you-go, 1: truncate acceleration</p> * @type {number || null} */ this.FlowTrunc = null; /** * <p>Device sn</p> * @type {string || null} */ this.Sn = null; /** * <p>Manufacturer</p> * @type {string || null} */ this.Vendor = null; /** * <p>Access region list.</p> * @type {Array.<string> || null} */ this.AllowedRegions = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.DeviceId = 'DeviceId' in params ? params.DeviceId : null; this.DeviceName = 'DeviceName' in params ? params.DeviceName : null; this.CreateTime = 'CreateTime' in params ? params.CreateTime : null; this.LastTime = 'LastTime' in params ? params.LastTime : null; this.Remark = 'Remark' in params ? params.Remark : null; this.AccessScope = 'AccessScope' in params ? params.AccessScope : null; this.LicensePayMode = 'LicensePayMode' in params ? params.LicensePayMode : null; this.Payer = 'Payer' in params ? params.Payer : null; this.GroupId = 'GroupId' in params ? params.GroupId : null; this.GroupName = 'GroupName' in params ? params.GroupName : null; this.FlowTrunc = 'FlowTrunc' in params ? params.FlowTrunc : null; this.Sn = 'Sn' in params ? params.Sn : null; this.Vendor = 'Vendor' in params ? params.Vendor : null; this.AllowedRegions = 'AllowedRegions' in params ? params.AllowedRegions : null; } } /** * AddGroup request structure. * @class */ class AddGroupRequest extends AbstractModel { constructor(){ super(); /** * Group name * @type {string || null} */ this.GroupName = null; /** * Group description * @type {string || null} */ this.Description = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.GroupName = 'GroupName' in params ? params.GroupName : null; this.Description = 'Description' in params ? params.Description : null; } } /** * GetGroupList request structure. * @class */ class GetGroupListRequest extends AbstractModel { constructor(){ super(); /** * Number of records displayed per page. When both PageSize and PageNumber are -1, match all devices with no limit on a single page. Example value: 10. * @type {number || null} */ this.PageSize = null; /** * Currently viewed page number. When both PageSize and PageNumber are -1, match all devices as one page with no limit on entries. Example value: 1. * @type {number || null} */ this.PageNumber = null; /** * Search for groups by keyword. Match all groups when empty. * @type {string || null} */ this.Keyword = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.PageSize = 'PageSize' in params ? params.PageSize : null; this.PageNumber = 'PageNumber' in params ? params.PageNumber : null; this.Keyword = 'Keyword' in params ? params.Keyword : null; } } /** * Hardware Information * @class */ class HardwareInfo extends AbstractModel { constructor(){ super(); /** * device ID * @type {string || null} */ this.DeviceId = null; /** * Device name. * @type {string || null} */ this.DeviceName = null; /** * Activation time * @type {string || null} */ this.ActiveTime = null; /** * Last online time * @type {string || null} */ this.LastOnlineTime = null; /** * Remarks * @type {string || null} */ this.Description = null; /** * vendor remarks * @type {string || null} */ this.VendorDescription = null; /** * License billing mode: 1. Tenant monthly payment 2. Manufacturer monthly payment 3. Permanent license. Note: This parameter will be subsequently deprecated. Please use LicensePayMode and Payer for new access. * @type {number || null} */ this.LicenseChargingMode = null; /** * Creation time. * @type {string || null} */ this.CreateTime = null; /** * Hardware Serial Number * @type {string || null} */ this.SN = null; /** * Authorization validity period of license 0: Monthly authorization 1: Permanent license * @type {number || null} */ this.LicensePayMode = null; /** * Payer 0: Customer payment 1: Manufacturer payment * @type {number || null} */ this.Payer = null; /** * device group ID * @type {string || null} */ this.GroupId = null; /** * Device group name * @type {string || null} */ this.GroupName = null; /** * No traffic processing method for the device. 0: pay-as-you-go, 1: truncate and accelerate * @type {number || null} */ this.FlowTrunc = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.DeviceId = 'DeviceId' in params ? params.DeviceId : null; this.DeviceName = 'DeviceName' in params ? params.DeviceName : null; this.ActiveTime = 'ActiveTime' in params ? params.ActiveTime : null; this.LastOnlineTime = 'LastOnlineTime' in params ? params.LastOnlineTime : null; this.Description = 'Description' in params ? params.Description : null; this.VendorDescription = 'VendorDescription' in params ? params.VendorDescription : null; this.LicenseChargingMode = 'LicenseChargingMode' in params ? params.LicenseChargingMode : null; this.CreateTime = 'CreateTime' in params ? params.CreateTime : null; this.SN = 'SN' in params ? params.SN : null; this.LicensePayMode = 'LicensePayMode' in params ? params.LicensePayMode : null; this.Payer = 'Payer' in params ? params.Payer : null; this.GroupId = 'GroupId' in params ? params.GroupId : null; this.GroupName = 'GroupName' in params ? params.GroupName : null; this.FlowTrunc = 'FlowTrunc' in params ? params.FlowTrunc : null; } } /** * DeleteApplication response structure. * @class */ class DeleteApplicationResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * GetGroupDetail request structure. * @class */ class GetGroupDetailRequest extends AbstractModel { constructor(){ super(); /** * group ID * @type {string || null} */ this.GroupId = null; /** * Display per page number of records. When PageSize and PageNumber are -1, match all devices by 1 page with no limit entries. Example value: 1. * @type {number || null} */ this.PageSize = null; /** * Number of records displayed per page. When PageSize and PageNumber are both -1, match all devices by 1 page with no limit entries. Example value: 10. * @type {number || null} */ this.PageNumber = null; /** * Search Keywords * @type {string || null} */ this.KeyWord = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.GroupId = 'GroupId' in params ? params.GroupId : null; this.PageSize = 'PageSize' in params ? params.PageSize : null; this.PageNumber = 'PageNumber' in params ? params.PageNumber : null; this.KeyWord = 'KeyWord' in params ? params.KeyWord : null; } } /** * GroupDeleteDevice response structure. * @class */ class GroupDeleteDeviceResponse extends AbstractModel { constructor(){ super(); /** * Number of devices grouped in * @type {number || null} */ this.DeviceNum = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.DeviceNum = 'DeviceNum' in params ? params.DeviceNum : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * GroupAddDevice request structure. * @class */ class GroupAddDeviceRequest extends AbstractModel { constructor(){ super(); /** * group ID * @type {string || null} */ this.GroupId = null; /** * Device list to be added * @type {Array.<string> || null} */ this.DeviceList = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.GroupId = 'GroupId' in params ? params.GroupId : null; this.DeviceList = 'DeviceList' in params ? params.DeviceList : null; } } /** * GetStatisticData response structure. * @class */ class GetStatisticDataResponse extends AbstractModel { constructor(){ super(); /** * File address url * @type {string || null} */ this.FilePath = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.FilePath = 'FilePath' in params ? params.FilePath : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * UpdateApplicationInfo request structure. * @class */ class UpdateApplicationInfoRequest extends AbstractModel { constructor(){ super(); /** * Application ID * @type {string || null} */ this.MpApplicationId = null; /** * Application name of the created app * @type {string || null} */ this.MpApplicationName = null; /** * Remark of the created device * @type {string || null} */ this.Remark = null; /** * Access environment. 0: public cloud gateway; 1: private gateway; 2: public cloud gateway and private gateway. By default if left blank, public cloud gateway is selected. Specific meaning: Public cloud gateway: The device can only connect to public cloud gateway (Proximity access). Private gateway: The device can only connect to already launched private gateway (Proximity access or fixed ip access). Public cloud gateway and private gateway: The device can also connect to both public cloud gateway and already launched private gateway (Proximity access or fixed ip access). * @type {number || null} */ this.AccessScope = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.MpApplicationId = 'MpApplicationId' in params ? params.MpApplicationId : null; this.MpApplicationName = 'MpApplicationName' in params ? params.MpApplicationName : null; this.Remark = 'Remark' in params ? params.Remark : null; this.AccessScope = 'AccessScope' in params ? params.AccessScope : null; } } /** * GetPublicKey request structure. * @class */ class GetPublicKeyRequest extends AbstractModel { constructor(){ super(); } /** * @private */ deserialize(params) { if (!params) { return; } } } /** * GetHardwareInfo request structure. * @class */ class GetHardwareInfoRequest extends AbstractModel { constructor(){ super(); /** * Vendor name * @type {string || null} */ this.Vendor = null; /** * Device SN serial number * @type {string || null} */ this.SN = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Vendor = 'Vendor' in params ? params.Vendor : null; this.SN = 'SN' in params ? params.SN : null; } } /** * GetFlowStatisticByGroup response structure. * @class */ class GetFlowStatisticByGroupResponse extends AbstractModel { constructor(){ super(); /** * Traffic details * @type {Array.<NetDetails> || null} */ this.NetDetails = null; /** * Search the maximum value of traffic usage in a time period (measurement unit: byte) * @type {number || null} */ this.MaxValue = null; /** * Search time period traffic usage average (unit: byte) * @type {number || null} */ this.AvgValue = null; /** * Search total traffic usage in the time period (unit: byte) * @type {number || null} */ this.TotalValue = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.NetDetails) { this.NetDetails = new Array(); for (let z in params.NetDetails) { let obj = new NetDetails(); obj.deserialize(params.NetDetails[z]); this.NetDetails.push(obj); } } this.MaxValue = 'MaxValue' in params ? params.MaxValue : null; this.AvgValue = 'AvgValue' in params ? params.AvgValue : null; this.TotalValue = 'TotalValue' in params ? params.TotalValue : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * GetNetMonitor response structure. * @class */ class GetNetMonitorResponse extends AbstractModel { constructor(){ super(); /** * <p>Monitoring data.</p> * @type {Array.<MonitorData> || null} */ this.MonitorData = null; /** * <p>Access region. Value ranges from 'MC' to 'AM'<br>MC=Chinese mainland<br>AP=Asia Pacific<br>EU=Europe<br>AM=Americas</p> * @type {string || null} */ this.AccessRegion = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reasons, the request will not obtain a RequestId). RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.MonitorData) { this.MonitorData = new Array(); for (let z in params.MonitorData) { let obj = new MonitorData(); obj.deserialize(params.MonitorData[z]); this.MonitorData.push(obj); } } this.AccessRegion = 'AccessRegion' in params ? params.AccessRegion : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * GetFlowStatisticByName response structure. * @class */ class GetFlowStatisticByNameResponse extends AbstractModel { constructor(){ super(); /** * Traffic details * @type {Array.<NetDetails> || null} */ this.NetDetails = null; /** * Search the maximum value of traffic usage in a time period (measurement unit: byte) * @type {number || null} */ this.MaxValue = null; /** * Search time period traffic usage average (unit: byte) * @type {number || null} */ this.AvgValue = null; /** * Search total traffic usage in the time period (unit: byte) * @type {number || null} */ this.TotalValue = null; /** * The unique request ID, generated by the server, will be returned for every request (if the request fails to reach the server for other reason