UNPKG

tencentcloud-sdk-nodejs-intl-en

Version:
1,948 lines (1,628 loc) • 458 kB
/* * 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. */ const AbstractModel = require("../../common/abstract_model"); /** * ModifyUserLevel response structure. * @class */ class ModifyUserLevelResponse 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; } } /** * SearchAttackLog response structure. * @class */ class SearchAttackLogResponse extends AbstractModel { constructor(){ super(); /** * Number of attack logs returned * @type {number || null} */ this.Count = null; /** * API upgrade: this field is invalid, defaults to returning an empty string * @type {string || null} */ this.Context = null; /** * Attack log array entry content * @type {Array.<AttackLogInfo> || null} */ this.Data = null; /** * CLS API returned content * @type {boolean || null} */ this.ListOver = null; /** * CLS API returned content, indicating whether to enable the new version index * @type {boolean || null} */ this.SqlFlag = 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.Count = 'Count' in params ? params.Count : null; this.Context = 'Context' in params ? params.Context : null; if (params.Data) { this.Data = new Array(); for (let z in params.Data) { let obj = new AttackLogInfo(); obj.deserialize(params.Data[z]); this.Data.push(obj); } } this.ListOver = 'ListOver' in params ? params.ListOver : null; this.SqlFlag = 'SqlFlag' in params ? params.SqlFlag : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * In the form of Key-Value, where Value is an Int * @class */ class KVInt extends AbstractModel { constructor(){ super(); /** * Key * @type {string || null} */ this.Key = null; /** * Value * @type {number || null} */ this.Value = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Key = 'Key' in params ? params.Key : null; this.Value = 'Value' in params ? params.Value : null; } } /** * Complex type in the DescribeCustomRules interface response packet * @class */ class DescribeCustomRulesRspRuleListItem extends AbstractModel { constructor(){ super(); /** * Action type * @type {string || null} */ this.ActionType = null; /** * Skipped Policy * @type {string || null} */ this.Bypass = null; /** * Creation time * @type {string || null} */ this.CreateTime = null; /** * Expiration time * @type {string || null} */ this.ExpireTime = null; /** * Policy name * @type {string || null} */ this.Name = null; /** * URL for redirection * @type {string || null} */ this.Redirect = null; /** * Policy ID * @type {string || null} */ this.RuleId = null; /** * Priority * @type {string || null} */ this.SortId = null; /** * Status * @type {string || null} */ this.Status = null; /** * Policy details * @type {Array.<Strategy> || null} */ this.Strategies = null; /** * Event ID Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.EventId = null; /** * Modification time Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ModifyTime = null; /** * Effective status Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.ValidStatus = null; /** * Source Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Source = null; /** * Scheduled task type Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.JobType = null; /** * Scheduled task configuration Note: This field may return null, indicating that no valid values can be obtained. * @type {JobDateTime || null} */ this.JobDateTime = null; /** * Periodic task granularity Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.CronType = null; /** * Custom tag in risk control rules, indicating whether a rule is built-in or user-defined Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Label = null; /** * ID of the blocked page Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.PageId = null; /** * Domain name Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Domain = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ActionType = 'ActionType' in params ? params.ActionType : null; this.Bypass = 'Bypass' in params ? params.Bypass : null; this.CreateTime = 'CreateTime' in params ? params.CreateTime : null; this.ExpireTime = 'ExpireTime' in params ? params.ExpireTime : null; this.Name = 'Name' in params ? params.Name : null; this.Redirect = 'Redirect' in params ? params.Redirect : null; this.RuleId = 'RuleId' in params ? params.RuleId : null; this.SortId = 'SortId' in params ? params.SortId : null; this.Status = 'Status' in params ? params.Status : null; if (params.Strategies) { this.Strategies = new Array(); for (let z in params.Strategies) { let obj = new Strategy(); obj.deserialize(params.Strategies[z]); this.Strategies.push(obj); } } this.EventId = 'EventId' in params ? params.EventId : null; this.ModifyTime = 'ModifyTime' in params ? params.ModifyTime : null; this.ValidStatus = 'ValidStatus' in params ? params.ValidStatus : null; this.Source = 'Source' in params ? params.Source : null; this.JobType = 'JobType' in params ? params.JobType : null; if (params.JobDateTime) { let obj = new JobDateTime(); obj.deserialize(params.JobDateTime) this.JobDateTime = obj; } this.CronType = 'CronType' in params ? params.CronType : null; this.Label = 'Label' in params ? params.Label : null; this.PageId = 'PageId' in params ? params.PageId : null; this.Domain = 'Domain' in params ? params.Domain : null; } } /** * ModifyAntiInfoLeakRules response structure. * @class */ class ModifyAntiInfoLeakRulesResponse 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; } } /** * ModifyWebshellStatus request structure. * @class */ class ModifyWebshellStatusRequest extends AbstractModel { constructor(){ super(); /** * Domain Webshell Status * @type {WebshellStatus || null} */ this.Webshell = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.Webshell) { let obj = new WebshellStatus(); obj.deserialize(params.Webshell) this.Webshell = obj; } } } /** * DescribeCertificateVerifyResult request structure. * @class */ class DescribeCertificateVerifyResultRequest extends AbstractModel { constructor(){ super(); /** * Domain name * @type {string || null} */ this.Domain = null; /** * Certificate type. 0: Do not check international standard certificates; 1: The certificate is a self-owned certificate; 2: The certificate is a managed certificate. * @type {number || null} */ this.CertType = null; /** * When CertType is 1, this parameter is required, indicating the self-owned certificate chain * @type {string || null} */ this.Certificate = null; /** * When CertType is 2, this parameter must be filled, indicating the certificate ID hosted on Tencent Cloud's SSL platform * @type {string || null} */ this.CertID = null; /** * When CertType=1, this parameter is required, indicating the private key of the self-owned certificate. * @type {string || null} */ this.PrivateKey = null; /** * SM certificate type. 0: Do not check SM certificates; 1: The certificate is a self-owned SM certificate; 2: The certificate is a managed SM certificate. * @type {number || null} */ this.GmCertType = null; /** * When GmCertType is 1, this parameter needs to be set, indicating the certificate chain of the self-owned SM certificate. * @type {string || null} */ this.GmCert = null; /** * When GmCertType is 1, this parameter needs to be set, indicating the private key of the self-owned SM certificate. * @type {string || null} */ this.GmPrivateKey = null; /** * When GmCertType is 1, this parameter needs to be set, indicating the encryption certificate of the self-owned SM certificate. * @type {string || null} */ this.GmEncCert = null; /** * When GmCertType is 1, this parameter needs to be set, indicating the private key of the encryption certificate for the self-owned SM certificate. * @type {string || null} */ this.GmEncPrivateKey = null; /** * When GmCertType is 2, this parameter needs to be set, indicating the ID of the certificate managed by the Tencent Cloud SSL platform. * @type {string || null} */ this.GmSSLId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Domain = 'Domain' in params ? params.Domain : null; this.CertType = 'CertType' in params ? params.CertType : null; this.Certificate = 'Certificate' in params ? params.Certificate : null; this.CertID = 'CertID' in params ? params.CertID : null; this.PrivateKey = 'PrivateKey' in params ? params.PrivateKey : null; this.GmCertType = 'GmCertType' in params ? params.GmCertType : null; this.GmCert = 'GmCert' in params ? params.GmCert : null; this.GmPrivateKey = 'GmPrivateKey' in params ? params.GmPrivateKey : null; this.GmEncCert = 'GmEncCert' in params ? params.GmEncCert : null; this.GmEncPrivateKey = 'GmEncPrivateKey' in params ? params.GmEncPrivateKey : null; this.GmSSLId = 'GmSSLId' in params ? params.GmSSLId : null; } } /** * DescribeUserClbWafRegions response structure. * @class */ class DescribeUserClbWafRegionsResponse extends AbstractModel { constructor(){ super(); /** * Region (in standard ap-format) list Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<string> || null} */ this.Data = null; /** * Geographical information with detailed attributes Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<ClbWafRegionItem> || null} */ this.RichDatas = 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.Data = 'Data' in params ? params.Data : null; if (params.RichDatas) { this.RichDatas = new Array(); for (let z in params.RichDatas) { let obj = new ClbWafRegionItem(); obj.deserialize(params.RichDatas[z]); this.RichDatas.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * CreateIpAccessControl request structure. * @class */ class CreateIpAccessControlRequest extends AbstractModel { constructor(){ super(); /** * Specific domain name, for example, test.qcloudwaf.com. Global domain name, that is, global. * @type {string || null} */ this.Domain = null; /** * IP parameter list. * @type {Array.<string> || null} */ this.IpList = null; /** * 42: blocklist; 40: allowlist. * @type {number || null} */ this.ActionType = null; /** * valid_ts indicates a valid date. Its value is a second-level timestamp, such as 1680570420, which indicates 2023-04-04 09:07:00. * @type {number || null} */ this.ValidTS = null; /** * Instance ID * @type {string || null} */ this.InstanceId = null; /** * WAF instance type: sparta-waf for SaaS WAF, clb-waf for CLB WAF. * @type {string || null} */ this.Edition = null; /** * Valid values: batch (adding in batches), bot (adding to the bot details list in bot traffic analysis), cc (adding to IP addresses of the CC attack type in the attack log list), custom (default value for adding not in batches). * @type {string || null} */ this.SourceType = null; /** * Remarks * @type {string || null} */ this.Note = null; /** * Scheduled configuration type. * @type {string || null} */ this.JobType = null; /** * Details of scheduled configuration. * @type {JobDateTime || null} */ this.JobDateTime = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Domain = 'Domain' in params ? params.Domain : null; this.IpList = 'IpList' in params ? params.IpList : null; this.ActionType = 'ActionType' in params ? params.ActionType : null; this.ValidTS = 'ValidTS' in params ? params.ValidTS : null; this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; this.Edition = 'Edition' in params ? params.Edition : null; this.SourceType = 'SourceType' in params ? params.SourceType : null; this.Note = 'Note' in params ? params.Note : null; this.JobType = 'JobType' in params ? params.JobType : null; if (params.JobDateTime) { let obj = new JobDateTime(); obj.deserialize(params.JobDateTime) this.JobDateTime = obj; } } } /** * TLS encryption suite * @class */ class TLSCiphers extends AbstractModel { constructor(){ super(); /** * TLS version ID Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.VersionId = null; /** * Encryption Suite ID Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.CipherId = null; /** * Cipher suite Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.CipherName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.VersionId = 'VersionId' in params ? params.VersionId : null; this.CipherId = 'CipherId' in params ? params.CipherId : null; this.CipherName = 'CipherName' in params ? params.CipherName : null; } } /** * AddAntiFakeUrl request structure. * @class */ class AddAntiFakeUrlRequest extends AbstractModel { constructor(){ super(); /** * Domain name * @type {string || null} */ this.Domain = null; /** * Name * @type {string || null} */ this.Name = null; /** * uri * @type {string || null} */ this.Uri = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Domain = 'Domain' in params ? params.Domain : null; this.Name = 'Name' in params ? params.Name : null; this.Uri = 'Uri' in params ? params.Uri : null; } } /** * Domain's Webshell activation status * @class */ class WebshellStatus extends AbstractModel { constructor(){ super(); /** * Domain name * @type {string || null} */ this.Domain = null; /** * Webshell Switch, 1: On. 0: Off. 2: Observation * @type {number || null} */ this.Status = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Domain = 'Domain' in params ? params.Domain : null; this.Status = 'Status' in params ? params.Status : null; } } /** * AddCustomWhiteRule response structure. * @class */ class AddCustomWhiteRuleResponse extends AbstractModel { constructor(){ super(); /** * Operation status code: if all resource operations succeed, the success status code is returned; if any resource operation fails, the content of Message needs to be parsed to see which resource failed. * @type {ResponseCode || null} */ this.Success = null; /** * Successfully added rule ID Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.RuleId = 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.Success) { let obj = new ResponseCode(); obj.deserialize(params.Success) this.Success = obj; } this.RuleId = 'RuleId' in params ? params.RuleId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * SearchAttackLog request structure. * @class */ class SearchAttackLogRequest extends AbstractModel { constructor(){ super(); /** * Queried domain: use all for all domains * @type {string || null} */ this.Domain = null; /** * Query start time * @type {string || null} */ this.StartTime = null; /** * Query end time * @type {string || null} */ this.EndTime = null; /** * API upgrade. Input an empty string for this field. Use the Page field for page turning. * @type {string || null} */ this.Context = null; /** * Lucene syntax. * @type {string || null} */ this.QueryString = null; /** * Number of queries: 10 by default, up to 100 * @type {number || null} */ this.Count = null; /** * desc by default. Value can be set to desc or asc. * @type {string || null} */ this.Sort = null; /** * Page number, starting from 0 * @type {number || null} */ this.Page = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Domain = 'Domain' in params ? params.Domain : null; this.StartTime = 'StartTime' in params ? params.StartTime : null; this.EndTime = 'EndTime' in params ? params.EndTime : null; this.Context = 'Context' in params ? params.Context : null; this.QueryString = 'QueryString' in params ? params.QueryString : null; this.Count = 'Count' in params ? params.Count : null; this.Sort = 'Sort' in params ? params.Sort : null; this.Page = 'Page' in params ? params.Page : null; } } /** * ModifyHostFlowMode response structure. * @class */ class ModifyHostFlowModeResponse extends AbstractModel { constructor(){ super(); /** * Successful status code * @type {ResponseCode || null} */ this.Success = 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.Success) { let obj = new ResponseCode(); obj.deserialize(params.Success) this.Success = obj; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * CLB-WAF domain extension package * @class */ class DomainPackageNew extends AbstractModel { constructor(){ super(); /** * Resource ID Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ResourceIds = null; /** * Expiration time Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ValidTime = null; /** * Auto-renewal, 1: Enabled, 0: Disabled Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.RenewFlag = null; /** * Number of Package Purchases Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.Count = null; /** * Package Purchase Region, currently not used in CLB-WAF Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Region = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ResourceIds = 'ResourceIds' in params ? params.ResourceIds : null; this.ValidTime = 'ValidTime' in params ? params.ValidTime : null; this.RenewFlag = 'RenewFlag' in params ? params.RenewFlag : null; this.Count = 'Count' in params ? params.Count : null; this.Region = 'Region' in params ? params.Region : null; } } /** * SwitchElasticMode request structure. * @class */ class SwitchElasticModeRequest extends AbstractModel { constructor(){ super(); /** * Version, can only be sparta-waf, clb-waf, or cdn-waf * @type {string || null} */ this.Edition = null; /** * 0 indicates Off; 1 indicates On * @type {number || null} */ this.Mode = null; /** * Instance ID * @type {string || null} */ this.InstanceID = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Edition = 'Edition' in params ? params.Edition : null; this.Mode = 'Mode' in params ? params.Mode : null; this.InstanceID = 'InstanceID' in params ? params.InstanceID : null; } } /** * ModifyInstanceName request structure. * @class */ class ModifyInstanceNameRequest extends AbstractModel { constructor(){ super(); /** * New name. * @type {string || null} */ this.InstanceName = null; /** * Instance ID * @type {string || null} */ this.InstanceID = null; /** * Version * @type {string || null} */ this.Edition = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceName = 'InstanceName' in params ? params.InstanceName : null; this.InstanceID = 'InstanceID' in params ? params.InstanceID : null; this.Edition = 'Edition' in params ? params.Edition : null; } } /** * CLB-WAF deleted domain parameters * @class */ class HostDel extends AbstractModel { constructor(){ super(); /** * Domain name * @type {string || null} */ this.Domain = null; /** * Domain ID * @type {string || null} */ this.DomainId = null; /** * Instance type * @type {string || null} */ this.InstanceID = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Domain = 'Domain' in params ? params.Domain : null; this.DomainId = 'DomainId' in params ? params.DomainId : null; this.InstanceID = 'InstanceID' in params ? params.InstanceID : null; } } /** * DeleteCustomWhiteRule response structure. * @class */ class DeleteCustomWhiteRuleResponse extends AbstractModel { constructor(){ super(); /** * Operation status code: if all resource operations succeed, the success status code is returned; if any resource operation fails, the content of Message needs to be parsed to see which resource failed. * @type {ResponseCode || null} */ this.Success = 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.Success) { let obj = new ResponseCode(); obj.deserialize(params.Success) this.Success = obj; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeIpAccessControl response structure. * @class */ class DescribeIpAccessControlResponse extends AbstractModel { constructor(){ super(); /** * Output. Note: This field may return null, indicating that no valid values can be obtained. * @type {IpAccessControlData || null} */ this.Data = null; /** * Total number of IP addresses in the used IP allowlist/blocklist. Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.UsedTotal = 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.Data) { let obj = new IpAccessControlData(); obj.deserialize(params.Data) this.Data = obj; } this.UsedTotal = 'UsedTotal' in params ? params.UsedTotal : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Output parameters * @class */ class DescribeAntiLeakageItem extends AbstractModel { constructor(){ super(); /** * Rule ID * @type {number || null} */ this.RuleId = null; /** * Name * @type {string || null} */ this.Name = null; /** * Status value * @type {number || null} */ this.Status = null; /** * Action * @type {string || null} */ this.Action = null; /** * Creation time * @type {string || null} */ this.CreateTime = null; /** * Match condition Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<DescribeAntiInfoLeakRulesStrategyItem> || null} */ this.Strategies = null; /** * Matched URL Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Uri = null; /** * Modification time Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ModifyTime = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RuleId = 'RuleId' in params ? params.RuleId : null; this.Name = 'Name' in params ? params.Name : null; this.Status = 'Status' in params ? params.Status : null; this.Action = 'Action' in params ? params.Action : null; this.CreateTime = 'CreateTime' in params ? params.CreateTime : null; if (params.Strategies) { this.Strategies = new Array(); for (let z in params.Strategies) { let obj = new DescribeAntiInfoLeakRulesStrategyItem(); obj.deserialize(params.Strategies[z]); this.Strategies.push(obj); } } this.Uri = 'Uri' in params ? params.Uri : null; this.ModifyTime = 'ModifyTime' in params ? params.ModifyTime : null; } } /** * CLB * @class */ class LoadBalancerPackageNew extends AbstractModel { constructor(){ super(); /** * Listener ID Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ListenerId = null; /** * Listening Name Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ListenerName = null; /** * CLB instance ID Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.LoadBalancerId = null; /** * CLB name Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.LoadBalancerName = null; /** * Protocol Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Protocol = null; /** * Region "Toronto": "ca", "Guangzhou": "gz", "Chengdu": "cd", "Fuzhou": "fzec", "Shenzhen": "szx", "India": "in", "Jinan": "jnec", "Chongqing": "cq", "Tianjin": "tsn", "Northeast Europe": "ru", "Nanjing": "nj", "Silicon Valley (U.S.)": "usw", "Thailand": "th", "Guangzhou Open": "gzopen", "Shenzhen Finance": "szjr", "Frankfurt": "de", "Japan": "jp", "Virginia": "use", "Beijing": "bj", "Hong Kong (China)": "hk", "Hangzhou": "hzec", "Beijing Finance": "bjjr", "Shanghai Finance": "shjr", "Taipei (China)": "tpe", "Seoul": "kr", "Shanghai": "sh", "Singapore": "sg", "Qingyuan": "qy" Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Region = null; /** * Access IP Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Vip = null; /** * Access Port Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.Vport = null; /** * Region Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Zone = null; /** * VPCID Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.NumericalVpcId = null; /** * CLB Type Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.LoadBalancerType = null; /** * Domain Name of CLB Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.LoadBalancerDomain = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ListenerId = 'ListenerId' in params ? params.ListenerId : null; this.ListenerName = 'ListenerName' in params ? params.ListenerName : null; this.LoadBalancerId = 'LoadBalancerId' in params ? params.LoadBalancerId : null; this.LoadBalancerName = 'LoadBalancerName' in params ? params.LoadBalancerName : null; this.Protocol = 'Protocol' in params ? params.Protocol : null; this.Region = 'Region' in params ? params.Region : null; this.Vip = 'Vip' in params ? params.Vip : null; this.Vport = 'Vport' in params ? params.Vport : null; this.Zone = 'Zone' in params ? params.Zone : null; this.NumericalVpcId = 'NumericalVpcId' in params ? params.NumericalVpcId : null; this.LoadBalancerType = 'LoadBalancerType' in params ? params.LoadBalancerType : null; this.LoadBalancerDomain = 'LoadBalancerDomain' in params ? params.LoadBalancerDomain : null; } } /** * ModifyDomainIpv6Status response structure. * @class */ class ModifyDomainIpv6StatusResponse extends AbstractModel { constructor(){ super(); /** * Returned status (0: Operation Failed 1: Operation Succeeded 2: Not Supported for Enterprise Edition and Above 3: Not Supported for Below Enterprise Edition) * @type {number || null} */ this.Ipv6Status = 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.Ipv6Status = 'Ipv6Status' in params ? params.Ipv6Status : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Data Encapsulation * @class */ class CCRuleData extends AbstractModel { constructor(){ super(); /** * CC rules * @type {Array.<CCRuleItem> || null} */ this.Res = null; /** * Number of Rules * @type {number || null} */ this.TotalCount = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.Res) { this.Res = new Array(); for (let z in params.Res) { let obj = new CCRuleItem(); obj.deserialize(params.Res[z]); this.Res.push(obj); } } this.TotalCount = 'TotalCount' in params ? params.TotalCount : null; } } /** * DescribeCustomRuleList request structure. * @class */ class DescribeCustomRuleListRequest extends AbstractModel { constructor(){ super(); /** * Domain name * @type {string || null} */ this.Domain = null; /** * Offset * @type {number || null} */ this.Offset = null; /** * Capacity * @type {number || null} */ this.Limit = null; /** * Filter array. A name can be one of the following: RuleID, RuleName, and Match. * @type {Array.<FiltersItemNew> || null} */ this.Filters = null; /** * asc or desc * @type {string || null} */ this.Order = null; /** * exp_ts or mod_ts * @type {string || null} */ this.By = null; /** * Domain name list to query. This parameter is not required on the access control page. * @type {Array.<string> || null} */ this.DomainList = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Domain = 'Domain' in params ? params.Domain : null; this.Offset = 'Offset' in params ? params.Offset : null; this.Limit = 'Limit' in params ? params.Limit : null; if (params.Filters) { this.Filters = new Array(); for (let z in params.Filters) { let obj = new FiltersItemNew(); obj.deserialize(params.Filters[z]); this.Filters.push(obj); } } this.Order = 'Order' in params ? params.Order : null; this.By = 'By' in params ? params.By : null; this.DomainList = 'DomainList' in params ? params.DomainList : null; } } /** * DescribeUserClbWafRegions request structure. * @class */ class DescribeUserClbWafRegionsRequest extends AbstractModel { constructor(){ super(); /** * Traffic source. The default value is clb if not specified. clb: Cloud Load Balancer; tsegw: cloud-native API gateway; scf: Serverless Cloud Function; apisix: other gateways on Tencent Cloud. * @type {string || null} */ this.AlbType = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.AlbType = 'AlbType' in params ? params.AlbType : null; } } /** * DescribeHosts response structure. * @class */ class DescribeHostsResponse extends AbstractModel { constructor(){ super(); /** * Length of a protection domain list * @type {number || null} */ this.TotalCount = null; /** * List of protection domains Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<HostRecord> || null} */ this.HostList = 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.TotalCount = 'TotalCount' in params ? params.TotalCount : null; if (params.HostList) { this.HostList = new Array(); for (let z in params.HostList) { let obj = new HostRecord(); obj.deserialize(params.HostList[z]); this.HostList.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribePeakPoints request structure. * @class */ class DescribePeakPointsRequest extends AbstractModel { constructor(){ super(); /** * Query start time * @type {string || null} */ this.FromTime = null; /** * Query End Time * @type {string || null} */ this.ToTime = null; /** * The domain to query, leave this parameter blank if querying data for all domains * @type {string || null} */ this.Domain = null; /** * Only two values are valid: sparta-waf, clb-waf. No filtering if not input. * @type {string || null} */ this.Edition = null; /** * WAF instance ID. No filter will be carried out if it is not input. * @type {string || null} */ this.InstanceID = null; /** * Twelve available values: access: peak QPS trend chart botAccess: peak bot QPS trend chart down: downstream peak bandwidth trend chart up: upstream peak bandwidth trend chart attack: trend chart of total web attacks cc: trend chart of total CC attacks bw: trend chart of total attacks from blocklisted IP addresses tamper: trend chart of total tampering attacks leak: total leakage trend chart acl: trend chart of total access control attacks http_status: status code trend chart wx_access: trend chart of peak WeChat mini program QPS * @type {string || null} */ this.MetricName = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.FromTime = 'FromTime' in params ? params.FromTime : null; this.ToTime = 'ToTime' in params ? params.ToTime : null; this.Domain = 'Domain' in params ? params.Domain : null; this.Edition = 'Edition' in params ? params.Edition : null; this.InstanceID = 'InstanceID' in params ? params.InstanceID : null; this.MetricName = 'MetricName' in params ? params.MetricName : null; } } /** * ModifyInstanceQpsLimit request structure. * @class */ class ModifyInstanceQpsLimitRequest extends AbstractModel { constructor(){ super(); /** * Package instance ID * @type {string || null} */ this.InstanceId = null; /** * QPS cap * @type {number || null} */ this.QpsLimit = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.InstanceId = 'InstanceId' in params ? params.InstanceId : null; this.QpsLimit = 'QpsLimit' in params ? params.QpsLimit : null; } } /** * DeleteHost request structure. * @class */ class DeleteHostRequest extends AbstractModel { constructor(){ super(); /** * List of domains to be deleted * @type {Array.<HostDel> || null} */ this.HostsDel = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.HostsDel) { this.HostsDel = new Array(); for (let z in params.HostsDel) { let obj = new HostDel(); obj.deserialize(params.HostsDel[z]); this.HostsDel.push(obj); } } } } /** * ModifyDomainPostAction response structure. * @class */ class ModifyDomainPostActionResponse 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; } } /** * DescribeCertificateVerifyResult response structure. * @class */ class DescribeCertificateVerifyResultResponse extends AbstractModel { constructor(){ super(); /** * Status code 0: normal certificate 310: abnormal certificate 311: certificate expired 312: certificate about to expire * @type {number || null} */ this.Status = null; /** * Error details * @type {Array.<string> || null} */ this.Detail = null; /** * Expiration time * @type {string || null} */ this.NotAfter = null; /** * Whether the certificate is changed 0: not changed 1: changed Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.Changed = 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.Status = 'Status' in params ? params.Status : null; this.Detail = 'Detail' in params ? params.Detail : null; this.NotAfter = 'NotAfter' in params ? params.NotAfter : null; this.Changed = 'Changed' in params ? params.Changed : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyUserSignatureRule response structure. * @class */ class ModifyUserSignatureRuleResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, generated by the server, will be retur