UNPKG

tencentcloud-sdk-nodejs-intl-en

Version:
1,925 lines (1,623 loc) 137 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"); /** * CreateRecord request structure. * @class */ class CreateRecordRequest extends AbstractModel { constructor(){ super(); /** * Domain * @type {string || null} */ this.Domain = null; /** * Record type, which is obtained through the record type API. The value contains uppercase letters, such as `A`. * @type {string || null} */ this.RecordType = null; /** * Record split zone, which is obtained through the record split zone API. * @type {string || null} */ this.RecordLine = null; /** * Record value, such as `IP : 200.200.200.200`, `CNAME : cname.dnspod.com`, and `MX : mail.dnspod.com`. * @type {string || null} */ this.Value = null; /** * Domain ID. The `DomainId` parameter has a higher priority than `Domain`. If `DomainId` is passed in, `Domain` will be ignored. * @type {number || null} */ this.DomainId = null; /** * Host record such as `www`. If it is not passed in, it will be `@` by default. * @type {string || null} */ this.SubDomain = null; /** * Split zone ID, which is obtained through the record split zone API. The value is a string such as `10=1`. The `RecordLineId` parameter has a higher priority than `RecordLine`. If both of them are passed in, `RecordLineId` will be used first. * @type {string || null} */ this.RecordLineId = null; /** * MX priority, which is required for an MX record and will take effect if the record type is MX. Value range: 1–20. * @type {number || null} */ this.MX = null; /** * TTL. Value range: 1–604800. The minimum value varies by domain level. * @type {number || null} */ this.TTL = null; /** * Weight information, which is an integer between 0 and 100. It is supported only for enterprise VIP domains. `0` indicates not to pass in this parameter, i.e., not to set the weight. * @type {number || null} */ this.Weight = null; /** * Initial status of the record. Valid values: ENABLE, DISABLE. Default value: ENABLE. If `DISABLE` is passed in, the DNS record won't take effect, and the limit on round-robin DNS won't be verified. * @type {string || null} */ this.Status = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Domain = 'Domain' in params ? params.Domain : null; this.RecordType = 'RecordType' in params ? params.RecordType : null; this.RecordLine = 'RecordLine' in params ? params.RecordLine : null; this.Value = 'Value' in params ? params.Value : null; this.DomainId = 'DomainId' in params ? params.DomainId : null; this.SubDomain = 'SubDomain' in params ? params.SubDomain : null; this.RecordLineId = 'RecordLineId' in params ? params.RecordLineId : null; this.MX = 'MX' in params ? params.MX : null; this.TTL = 'TTL' in params ? params.TTL : null; this.Weight = 'Weight' in params ? params.Weight : null; this.Status = 'Status' in params ? params.Status : null; } } /** * DeleteDomainAlias response structure. * @class */ class DeleteDomainAliasResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, which is returned for each request. 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; } } /** * DeleteDomainBatch response structure. * @class */ class DeleteDomainBatchResponse extends AbstractModel { constructor(){ super(); /** * The task ID. * @type {number || null} */ this.JobId = null; /** * The array of task details. * @type {Array.<DeleteDomainBatchDetail> || null} */ this.DetailList = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.JobId = 'JobId' in params ? params.JobId : null; if (params.DetailList) { this.DetailList = new Array(); for (let z in params.DetailList) { let obj = new DeleteDomainBatchDetail(); obj.deserialize(params.DetailList[z]); this.DetailList.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Information of a DNS record group * @class */ class RecordGroupInfo extends AbstractModel { constructor(){ super(); /** * Group ID * @type {number || null} */ this.GroupId = null; /** * Group name * @type {string || null} */ this.GroupName = null; /** * Group type. Valid values: `system`, `user`. * @type {string || null} */ this.GroupType = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.GroupId = 'GroupId' in params ? params.GroupId : null; this.GroupName = 'GroupName' in params ? params.GroupName : null; this.GroupType = 'GroupType' in params ? params.GroupType : null; } } /** * CreateRecordBatch response structure. * @class */ class CreateRecordBatchResponse extends AbstractModel { constructor(){ super(); /** * Information of the bulk added domains * @type {Array.<CreateRecordBatchDetail> || null} */ this.DetailList = null; /** * Bulk task ID * @type {number || null} */ this.JobId = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.DetailList) { this.DetailList = new Array(); for (let z in params.DetailList) { let obj = new CreateRecordBatchDetail(); obj.deserialize(params.DetailList[z]); this.DetailList.push(obj); } } this.JobId = 'JobId' in params ? params.JobId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Record information in the task of bulk adding domains * @class */ class CreateDomainBatchRecord extends AbstractModel { constructor(){ super(); /** * Subdomain (host record). Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.SubDomain = null; /** * Record type. For more information, see the `DescribeRecordType` API. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.RecordType = null; /** * Split zone of the DNS record. For more information, see the `DescribeRecordLineList` API. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.RecordLine = null; /** * Record value Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Value = null; /** * TTL value of the record Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.TTL = null; /** * Record adding status Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Status = null; /** * Operation type Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Operation = null; /** * Error message Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ErrMsg = null; /** * ID of the record in the list * @type {number || null} */ this.Id = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.SubDomain = 'SubDomain' in params ? params.SubDomain : null; this.RecordType = 'RecordType' in params ? params.RecordType : null; this.RecordLine = 'RecordLine' in params ? params.RecordLine : null; this.Value = 'Value' in params ? params.Value : null; this.TTL = 'TTL' in params ? params.TTL : null; this.Status = 'Status' in params ? params.Status : null; this.Operation = 'Operation' in params ? params.Operation : null; this.ErrMsg = 'ErrMsg' in params ? params.ErrMsg : null; this.Id = 'Id' in params ? params.Id : null; } } /** * ModifyRecordGroup request structure. * @class */ class ModifyRecordGroupRequest extends AbstractModel { constructor(){ super(); /** * Domain * @type {string || null} */ this.Domain = null; /** * Group name * @type {string || null} */ this.GroupName = null; /** * ID of the group to be modified * @type {number || null} */ this.GroupId = null; /** * The domain ID. `DomainId` takes priority over `Domain`. If `DomainId` is passed in, `Domain` is ignored. * @type {number || null} */ this.DomainId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Domain = 'Domain' in params ? params.Domain : null; this.GroupName = 'GroupName' in params ? params.GroupName : null; this.GroupId = 'GroupId' in params ? params.GroupId : null; this.DomainId = 'DomainId' in params ? params.DomainId : null; } } /** * DNS query volume in the current statistical dimension * @class */ class DomainAnalyticsDetail extends AbstractModel { constructor(){ super(); /** * DNS query volume in the current statistical dimension * @type {number || null} */ this.Num = null; /** * Collection date for daily collection * @type {string || null} */ this.DateKey = null; /** * The last hour (0–23) for hourly collection. For example, if `HourKey` is `23`, the DNS query volume in the statistical period of 22:00–23:00 will be collected. Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.HourKey = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Num = 'Num' in params ? params.Num : null; this.DateKey = 'DateKey' in params ? params.DateKey : null; this.HourKey = 'HourKey' in params ? params.HourKey : null; } } /** * DeleteRecordGroup request structure. * @class */ class DeleteRecordGroupRequest extends AbstractModel { constructor(){ super(); /** * Domain * @type {string || null} */ this.Domain = null; /** * Group ID * @type {number || null} */ this.GroupId = null; /** * The domain ID. `DomainId` takes priority over `Domain`. If `DomainId` is passed in, `Domain` is ignored. * @type {number || null} */ this.DomainId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Domain = 'Domain' in params ? params.Domain : null; this.GroupId = 'GroupId' in params ? params.GroupId : null; this.DomainId = 'DomainId' in params ? params.DomainId : null; } } /** * DescribeDomain response structure. * @class */ class DescribeDomainResponse extends AbstractModel { constructor(){ super(); /** * Domain information * @type {DomainInfo || null} */ this.DomainInfo = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.DomainInfo) { let obj = new DomainInfo(); obj.deserialize(params.DomainInfo) this.DomainInfo = obj; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeRecordLineList response structure. * @class */ class DescribeRecordLineListResponse extends AbstractModel { constructor(){ super(); /** * List of split zones. * @type {Array.<LineInfo> || null} */ this.LineList = null; /** * List of split zone groups. * @type {Array.<LineGroupInfo> || null} */ this.LineGroupList = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.LineList) { this.LineList = new Array(); for (let z in params.LineList) { let obj = new LineInfo(); obj.deserialize(params.LineList[z]); this.LineList.push(obj); } } if (params.LineGroupList) { this.LineGroupList = new Array(); for (let z in params.LineGroupList) { let obj = new LineGroupInfo(); obj.deserialize(params.LineGroupList[z]); this.LineGroupList.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Domain details * @class */ class DomainInfo extends AbstractModel { constructor(){ super(); /** * Domain ID * @type {number || null} */ this.DomainId = null; /** * Domain status * @type {string || null} */ this.Status = null; /** * DNS plan level * @type {string || null} */ this.Grade = null; /** * Domain group ID * @type {number || null} */ this.GroupId = null; /** * Whether the domain is starred * @type {string || null} */ this.IsMark = null; /** * TTL (DNS record cache time) * @type {number || null} */ this.TTL = null; /** * Whether CNAME flattening is enabled * @type {string || null} */ this.CnameSpeedup = null; /** * Domain remarks Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Remark = null; /** * Domain Punycode * @type {string || null} */ this.Punycode = null; /** * DNS status of the domain * @type {string || null} */ this.DnsStatus = null; /** * NS list of the domain * @type {Array.<string> || null} */ this.DnspodNsList = null; /** * Domain * @type {string || null} */ this.Domain = null; /** * Domain level ID * @type {number || null} */ this.GradeLevel = null; /** * Domain user ID * @type {number || null} */ this.UserId = null; /** * Whether the domain is a VIP domain * @type {string || null} */ this.IsVip = null; /** * Domain owner account * @type {string || null} */ this.Owner = null; /** * Domain level description * @type {string || null} */ this.GradeTitle = null; /** * Domain creation time * @type {string || null} */ this.CreatedOn = null; /** * Last update time * @type {string || null} */ this.UpdatedOn = null; /** * Tencent Cloud account `Uin` * @type {string || null} */ this.Uin = null; /** * NS list actually used by the domain Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<string> || null} */ this.ActualNsList = null; /** * Number of domain records * @type {number || null} */ this.RecordCount = null; /** * Alias of the domain account owner Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.OwnerNick = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.DomainId = 'DomainId' in params ? params.DomainId : null; this.Status = 'Status' in params ? params.Status : null; this.Grade = 'Grade' in params ? params.Grade : null; this.GroupId = 'GroupId' in params ? params.GroupId : null; this.IsMark = 'IsMark' in params ? params.IsMark : null; this.TTL = 'TTL' in params ? params.TTL : null; this.CnameSpeedup = 'CnameSpeedup' in params ? params.CnameSpeedup : null; this.Remark = 'Remark' in params ? params.Remark : null; this.Punycode = 'Punycode' in params ? params.Punycode : null; this.DnsStatus = 'DnsStatus' in params ? params.DnsStatus : null; this.DnspodNsList = 'DnspodNsList' in params ? params.DnspodNsList : null; this.Domain = 'Domain' in params ? params.Domain : null; this.GradeLevel = 'GradeLevel' in params ? params.GradeLevel : null; this.UserId = 'UserId' in params ? params.UserId : null; this.IsVip = 'IsVip' in params ? params.IsVip : null; this.Owner = 'Owner' in params ? params.Owner : null; this.GradeTitle = 'GradeTitle' in params ? params.GradeTitle : null; this.CreatedOn = 'CreatedOn' in params ? params.CreatedOn : null; this.UpdatedOn = 'UpdatedOn' in params ? params.UpdatedOn : null; this.Uin = 'Uin' in params ? params.Uin : null; this.ActualNsList = 'ActualNsList' in params ? params.ActualNsList : null; this.RecordCount = 'RecordCount' in params ? params.RecordCount : null; this.OwnerNick = 'OwnerNick' in params ? params.OwnerNick : null; } } /** * CreateDomainBatch request structure. * @class */ class CreateDomainBatchRequest extends AbstractModel { constructor(){ super(); /** * Domain array * @type {Array.<string> || null} */ this.DomainList = null; /** * Add A records of @ and www for each domain with the record value of the IP. If this parameter is not passed in or is set to an empty string or null, only the domain but not the records will be added. * @type {string || null} */ this.RecordValue = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.DomainList = 'DomainList' in params ? params.DomainList : null; this.RecordValue = 'RecordValue' in params ? params.RecordValue : null; } } /** * ModifyRecordGroup response structure. * @class */ class ModifyRecordGroupResponse extends AbstractModel { constructor(){ super(); /** * ID of the modified group * @type {number || null} */ this.GroupId = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.GroupId = 'GroupId' in params ? params.GroupId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeDomainGroupList request structure. * @class */ class DescribeDomainGroupListRequest extends AbstractModel { constructor(){ super(); } /** * @private */ deserialize(params) { if (!params) { return; } } } /** * Element in the domain list * @class */ class DomainListItem extends AbstractModel { constructor(){ super(); /** * Unique ID assigned to the domain by the system * @type {number || null} */ this.DomainId = null; /** * Original format of the domain * @type {string || null} */ this.Name = null; /** * Domain status. Valid values: `ENABLE` (normal), `PAUSE` (suspended), `SPAM` (blocked). * @type {string || null} */ this.Status = null; /** * Default TTL of the default DNS record of the domain * @type {number || null} */ this.TTL = null; /** * Whether CNAME flattening is enabled. Valid values: `ENABLE` (enabled); `DISABLE` (disabled). * @type {string || null} */ this.CNAMESpeedup = null; /** * DNS configuration status. Valid values: `DNSERROR` (error), an empty string (normal). * @type {string || null} */ this.DNSStatus = null; /** * Plan level code of the domain * @type {string || null} */ this.Grade = null; /** * Group ID of the domain * @type {number || null} */ this.GroupId = null; /** * Whether search engine push optimization is enabled. Valid values: `YES` (yes), `NO` (no). * @type {string || null} */ this.SearchEnginePush = null; /** * Domain remarks * @type {string || null} */ this.Remark = null; /** * Punycode-encoded domain format * @type {string || null} */ this.Punycode = null; /** * Effective DNS assigned to the domain by the system * @type {Array.<string> || null} */ this.EffectiveDNS = null; /** * Number corresponding to the plan level of the domain * @type {number || null} */ this.GradeLevel = null; /** * Plan name * @type {string || null} */ this.GradeTitle = null; /** * Whether it is a paid plan * @type {string || null} */ this.IsVip = null; /** * Activation time of the paid plan * @type {string || null} */ this.VipStartAt = null; /** * Expiry time of the paid plan * @type {string || null} */ this.VipEndAt = null; /** * Whether VIP automatic renewal is enabled for the domain. Valid values: `YES` (yes); `NO` (no). Default value: `DEFAULT`. * @type {string || null} */ this.VipAutoRenew = null; /** * Number of records under the domain * @type {number || null} */ this.RecordCount = null; /** * Domain adding time * @type {string || null} */ this.CreatedOn = null; /** * Domain update time * @type {string || null} */ this.UpdatedOn = null; /** * Account of the domain * @type {string || null} */ this.Owner = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.DomainId = 'DomainId' in params ? params.DomainId : null; this.Name = 'Name' in params ? params.Name : null; this.Status = 'Status' in params ? params.Status : null; this.TTL = 'TTL' in params ? params.TTL : null; this.CNAMESpeedup = 'CNAMESpeedup' in params ? params.CNAMESpeedup : null; this.DNSStatus = 'DNSStatus' in params ? params.DNSStatus : null; this.Grade = 'Grade' in params ? params.Grade : null; this.GroupId = 'GroupId' in params ? params.GroupId : null; this.SearchEnginePush = 'SearchEnginePush' in params ? params.SearchEnginePush : null; this.Remark = 'Remark' in params ? params.Remark : null; this.Punycode = 'Punycode' in params ? params.Punycode : null; this.EffectiveDNS = 'EffectiveDNS' in params ? params.EffectiveDNS : null; this.GradeLevel = 'GradeLevel' in params ? params.GradeLevel : null; this.GradeTitle = 'GradeTitle' in params ? params.GradeTitle : null; this.IsVip = 'IsVip' in params ? params.IsVip : null; this.VipStartAt = 'VipStartAt' in params ? params.VipStartAt : null; this.VipEndAt = 'VipEndAt' in params ? params.VipEndAt : null; this.VipAutoRenew = 'VipAutoRenew' in params ? params.VipAutoRenew : null; this.RecordCount = 'RecordCount' in params ? params.RecordCount : null; this.CreatedOn = 'CreatedOn' in params ? params.CreatedOn : null; this.UpdatedOn = 'UpdatedOn' in params ? params.UpdatedOn : null; this.Owner = 'Owner' in params ? params.Owner : null; } } /** * DeleteDomainBatch request structure. * @class */ class DeleteDomainBatchRequest extends AbstractModel { constructor(){ super(); /** * The domain array. * @type {Array.<string> || null} */ this.DomainList = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.DomainList = 'DomainList' in params ? params.DomainList : null; } } /** * DescribeRecordType response structure. * @class */ class DescribeRecordTypeResponse extends AbstractModel { constructor(){ super(); /** * List of record types * @type {Array.<string> || null} */ this.TypeList = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.TypeList = 'TypeList' in params ? params.TypeList : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyDomainRemark response structure. * @class */ class ModifyDomainRemarkResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, which is returned for each request. 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; } } /** * DescribeDomainAliasList response structure. * @class */ class DescribeDomainAliasListResponse extends AbstractModel { constructor(){ super(); /** * List of domain aliases * @type {Array.<DomainAliasInfo> || null} */ this.DomainAliasList = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.DomainAliasList) { this.DomainAliasList = new Array(); for (let z in params.DomainAliasList) { let obj = new DomainAliasInfo(); obj.deserialize(params.DomainAliasList[z]); this.DomainAliasList.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * ModifyRecordToGroup request structure. * @class */ class ModifyRecordToGroupRequest extends AbstractModel { constructor(){ super(); /** * Domain * @type {string || null} */ this.Domain = null; /** * Group ID * @type {number || null} */ this.GroupId = null; /** * Record ID. Separate multiple IDs by vertical bar ("|"). * @type {string || null} */ this.RecordId = null; /** * The domain ID. `DomainId` takes priority over `Domain`. If `DomainId` is passed in, `Domain` is ignored. * @type {number || null} */ this.DomainId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Domain = 'Domain' in params ? params.Domain : null; this.GroupId = 'GroupId' in params ? params.GroupId : null; this.RecordId = 'RecordId' in params ? params.RecordId : null; this.DomainId = 'DomainId' in params ? params.DomainId : null; } } /** * Count info of the queried record list * @class */ class RecordCountInfo extends AbstractModel { constructor(){ super(); /** * The subdomain count. * @type {number || null} */ this.SubdomainCount = null; /** * The count of records returned in the list. * @type {number || null} */ this.ListCount = null; /** * The total record count. * @type {number || null} */ this.TotalCount = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.SubdomainCount = 'SubdomainCount' in params ? params.SubdomainCount : null; this.ListCount = 'ListCount' in params ? params.ListCount : null; this.TotalCount = 'TotalCount' in params ? params.TotalCount : null; } } /** * DeleteShareDomain response structure. * @class */ class DeleteShareDomainResponse extends AbstractModel { constructor(){ super(); /** * The unique request ID, which is returned for each request. 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; } } /** * ModifyRecord request structure. * @class */ class ModifyRecordRequest extends AbstractModel { constructor(){ super(); /** * Domain * @type {string || null} */ this.Domain = null; /** * Record type, which is obtained through the record type API. The value contains uppercase letters, such as `A`. * @type {string || null} */ this.RecordType = null; /** * Record split zone, which is obtained through the record split zone API. * @type {string || null} */ this.RecordLine = null; /** * Record value, such as `IP : 200.200.200.200`, `CNAME : cname.dnspod.com`, and `MX : mail.dnspod.com`. * @type {string || null} */ this.Value = null; /** * The record ID. You can view all DNS records and their IDs via the `DescribeRecordList` API. * @type {number || null} */ this.RecordId = null; /** * The domain ID. `DomainId` takes priority over `Domain`. If `DomainId` is passed in, `Domain` is ignored. You can view all `Domain` and `DomainId` values via the `DescribeDomainList` API. * @type {number || null} */ this.DomainId = null; /** * Host record such as `www`. If it is not passed in, it will be `@` by default. * @type {string || null} */ this.SubDomain = null; /** * Split zone ID, which is obtained through the record split zone API. The value is a string such as `10=1`. The `RecordLineId` parameter has a higher priority than `RecordLine`. If both of them are passed in, `RecordLineId` will be used first. * @type {string || null} */ this.RecordLineId = null; /** * MX priority, which is required for an MX record and will take effect if the record type is MX. Value range: 1–20. * @type {number || null} */ this.MX = null; /** * TTL. Value range: 1–604800. The minimum value varies by domain level. * @type {number || null} */ this.TTL = null; /** * Weight information, which is an integer between 0 and 100. It is supported only for enterprise VIP domains. `0` indicates not to pass in this parameter, i.e., not to set the weight. * @type {number || null} */ this.Weight = null; /** * Initial status of the record. Valid values: ENABLE, DISABLE. Default value: ENABLE. If `DISABLE` is passed in, the DNS record won't take effect, and the limit on round-robin DNS won't be verified. * @type {string || null} */ this.Status = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Domain = 'Domain' in params ? params.Domain : null; this.RecordType = 'RecordType' in params ? params.RecordType : null; this.RecordLine = 'RecordLine' in params ? params.RecordLine : null; this.Value = 'Value' in params ? params.Value : null; this.RecordId = 'RecordId' in params ? params.RecordId : null; this.DomainId = 'DomainId' in params ? params.DomainId : null; this.SubDomain = 'SubDomain' in params ? params.SubDomain : null; this.RecordLineId = 'RecordLineId' in params ? params.RecordLineId : null; this.MX = 'MX' in params ? params.MX : null; this.TTL = 'TTL' in params ? params.TTL : null; this.Weight = 'Weight' in params ? params.Weight : null; this.Status = 'Status' in params ? params.Status : null; } } /** * Record information in the bulk task * @class */ class BatchRecordInfo extends AbstractModel { constructor(){ super(); /** * Record ID Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.RecordId = null; /** * Subdomain (host record). Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.SubDomain = null; /** * Record type. For more information, see the `DescribeRecordType` API. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.RecordType = null; /** * Split zone of the DNS record. For more information, see the `DescribeRecordLineList` API. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.RecordLine = null; /** * Record value Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Value = null; /** * TTL value of the record Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.TTL = null; /** * Record adding status Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Status = null; /** * Operation type Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Operation = null; /** * Error message Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ErrMsg = null; /** * ID of the record in the list * @type {number || null} */ this.Id = null; /** * Record status Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.Enabled = null; /** * MX weight of the record Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.MX = null; /** * The record weight. Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.Weight = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RecordId = 'RecordId' in params ? params.RecordId : null; this.SubDomain = 'SubDomain' in params ? params.SubDomain : null; this.RecordType = 'RecordType' in params ? params.RecordType : null; this.RecordLine = 'RecordLine' in params ? params.RecordLine : null; this.Value = 'Value' in params ? params.Value : null; this.TTL = 'TTL' in params ? params.TTL : null; this.Status = 'Status' in params ? params.Status : null; this.Operation = 'Operation' in params ? params.Operation : null; this.ErrMsg = 'ErrMsg' in params ? params.ErrMsg : null; this.Id = 'Id' in params ? params.Id : null; this.Enabled = 'Enabled' in params ? params.Enabled : null; this.MX = 'MX' in params ? params.MX : null; this.Weight = 'Weight' in params ? params.Weight : null; } } /** * Information of a split zone group * @class */ class LineGroupInfo extends AbstractModel { constructor(){ super(); /** * Split zone group ID * @type {string || null} */ this.LineId = null; /** * Split zone group name * @type {string || null} */ this.Name = null; /** * Group type * @type {string || null} */ this.Type = null; /** * List of split zones in the split zone group * @type {Array.<string> || null} */ this.LineList = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.LineId = 'LineId' in params ? params.LineId : null; this.Name = 'Name' in params ? params.Name : null; this.Type = 'Type' in params ? params.Type : null; this.LineList = 'LineList' in params ? params.LineList : null; } } /** * DeleteDomain request structure. * @class */ class DeleteDomainRequest extends AbstractModel { constructor(){ super(); /** * Domain * @type {string || null} */ this.Domain = null; /** * The domain ID. `DomainId` takes priority over `Domain`. If `DomainId` is passed in, `Domain` is ignored. You can view all `Domain` and `DomainId` values via the `DescribeDomainList` API. * @type {number || null} */ this.DomainId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Domain = 'Domain' in params ? params.Domain : null; this.DomainId = 'DomainId' in params ? params.DomainId : null; } } /** * ModifyDomainOwner request structure. * @class */ class ModifyDomainOwnerRequest extends AbstractModel { constructor(){ super(); /** * Domain * @type {string || null} */ this.Domain = null; /** * The account to which to transfer the domain, which can be an UIN or email address * @type {string || null} */ this.Account = null; /** * The domain ID. `DomainId` takes priority over `Domain`. If `DomainId` is passed in, `Domain` is ignored. You can view all `Domain` and `DomainId` values via the `DescribeDomainList` API. * @type {number || null} */ this.DomainId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Domain = 'Domain' in params ? params.Domain : null; this.Account = 'Account' in params ? params.Account : null; this.DomainId = 'DomainId' in params ? params.DomainId : null; } } /** * Domain sharing information * @class */ class DomainShareInfo extends AbstractModel { constructor(){ super(); /** * Account with which the domain is shared * @type {string || null} */ this.ShareTo = null; /** * Sharing mode. Valid values: `rw` (read/write), `r` (read-only). * @type {string || null} */ this.Mode = null; /** * Sharing status. Valid values: `enabled` (shared successfully); `pending` (the account shared to does not exist and is pending registration). * @type {string || null} */ this.Status = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ShareTo = 'ShareTo' in params ? params.ShareTo : null; this.Mode = 'Mode' in params ? params.Mode : null; this.Status = 'Status' in params ? params.Status : null; } } /** * DescribeRecordLineList request structure. * @class */ class DescribeRecordLineListRequest extends AbstractModel { constructor(){ super(); /** * Domain. * @type {string || null} */ this.Domain = null; /** * Domain level. + Original plan. Valid values: `D_FREE` (Free Plan); `D_PLUS` (Individual Plus Plan); `D_EXTRA` (Enterprise 1 Plan); `D_EXPERT` (Enterprise 2 Plan); `D_ULTRA` (Enterprise 3 Plan). + New plan. Valid values: `DP_FREE` (Free Version); `DP_PLUS` (Professional); `DP_EXTRA` (Enterprise Basic); `DP_EXPERT` (Enterprise); `DP_ULTRA` (Ultimate). * @type {string || null} */ this.DomainGrade = null; /** * The domain ID. `DomainId` takes priority over `Domain`. If `DomainId` is passed in, `Domain` is ignored. You can view all `Domain` and `DomainId` values via the `DescribeDomainList` API. * @type {number || null} */ this.DomainId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Domain = 'Domain' in params ? params.Domain : null; this.DomainGrade = 'DomainGrade' in params ? params.DomainGrade : null; this.DomainId = 'DomainId' in params ? params.DomainId : null; } } /** * DescribeRecordList response structure. * @class */ class DescribeRecordListResponse extends AbstractModel { constructor(){ super(); /** * The record count info. * @type {RecordCountInfo || null} */ this.RecordCountInfo = null; /** * The record list result. * @type {Array.<RecordListItem> || null} */ this.RecordList = null; /** * The unique request ID, which is returned for each request. RequestId is required for locating a problem. * @type {string || null} */ this.RequestId = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.RecordCountInfo) { let obj = new RecordCountInfo(); obj.deserialize(params.RecordCountInfo) this.RecordCountInfo = obj; } if (params.RecordList) { this.RecordList = new Array(); for (let z in params.RecordList) { let obj = new RecordListItem(); obj.deserialize(params.RecordList[z]); this.RecordList.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * CreateRecordBatch request structure. * @class */ class CreateRecordBatchRequest extends AbstractModel { constructor(){ super(); /** * Domain ID. Separate multiple ones by comma. * @type {Array.<string> || null} */ this.DomainIdList = null; /** * Record array * @type {Array.<AddRecordBatch> || null} */ this.RecordList = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.DomainIdList = 'DomainIdList' in params ? params.DomainIdList : null; if (params.RecordList) { this.RecordList = new Array(); for (let z in params.RecordList) { let obj = new AddRecordBatch(); obj.deserialize(params.RecordList[z]); this.RecordList.push(obj); } } } } /** * DeleteDomainAlias request structure. * @class */ class DeleteDomainAliasRequest extends AbstractModel { constructor(){ super(); /** * Domain alias ID. You can view all domain aliases and their IDs via the `DescribeDomainAliasList` API. * @type {number || null} */ this.DomainAliasId = null; /** * Domain * @type {string || null} */ this.Domain = null; /** * The domain ID. `DomainId` takes priority over `Domain`. If `DomainId` is passed in, `Domain` is ignored. You can view all `Domain` and `DomainId` values via the `DescribeDomainList` API. * @type {number || null} */ this.DomainId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.DomainAliasId = 'DomainAliasId' in params ? params.DomainAliasId : null; this.Domain = 'Domain' in params ? params.Domain : null; this.DomainId = 'DomainId' in params ? params.DomainId : null; } } /** * Information of a domain alias * @class */ class DomainAliasInfo extends AbstractModel { constructor(){ super(); /** * Domain alias ID * @type {number || null} */ this.Id = null; /** * Domain alias * @type {string || null} */ this.DomainAlias = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Id = 'Id' in