UNPKG

tencentcloud-sdk-nodejs-intl-en

Version:
1,995 lines (1,676 loc) 121 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"); /** * QueryAsyncBindVpcStatus response structure. * @class */ class QueryAsyncBindVpcStatusResponse extends AbstractModel { constructor(){ super(); /** * processing: Processing is ongoing. success: Execution succeeded. failed: Execution failed. * @type {string || null} */ this.Status = null; /** * Error message Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ErrorMsg = 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.ErrorMsg = 'ErrorMsg' in params ? params.ErrorMsg : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeAccountVpcList request structure. * @class */ class DescribeAccountVpcListRequest extends AbstractModel { constructor(){ super(); /** * UIN of account * @type {string || null} */ this.AccountUin = null; /** * Pagination offset, starting from 0 * @type {number || null} */ this.Offset = null; /** * Number of entries per page. Maximum value: `100`. Default value: `20` * @type {number || null} */ this.Limit = null; /** * Filter parameters * @type {Array.<Filter> || null} */ this.Filters = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.AccountUin = 'AccountUin' in params ? params.AccountUin : 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 Filter(); obj.deserialize(params.Filters[z]); this.Filters.push(obj); } } } } /** * Output parameters of the associated VPC * @class */ class AccountVpcInfoOutput extends AbstractModel { constructor(){ super(); /** * UIN of the VPC account * @type {string || null} */ this.Uin = null; /** * VPC ID * @type {string || null} */ this.UniqVpcId = null; /** * Region * @type {string || null} */ this.Region = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Uin = 'Uin' in params ? params.Uin : null; this.UniqVpcId = 'UniqVpcId' in params ? params.UniqVpcId : null; this.Region = 'Region' in params ? params.Region : null; } } /** * DescribeEndPointRegion request structure. * @class */ class DescribeEndPointRegionRequest extends AbstractModel { constructor(){ super(); } /** * @private */ deserialize(params) { if (!params) { return; } } } /** * DescribeAccountVpcList response structure. * @class */ class DescribeAccountVpcListResponse extends AbstractModel { constructor(){ super(); /** * Number of VPCs * @type {number || null} */ this.TotalCount = null; /** * VPC list * @type {Array.<AccountVpcInfoOut> || null} */ this.VpcSet = 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.VpcSet) { this.VpcSet = new Array(); for (let z in params.VpcSet) { let obj = new AccountVpcInfoOut(); obj.deserialize(params.VpcSet[z]); this.VpcSet.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Log details * @class */ class AuditLogInfo extends AbstractModel { constructor(){ super(); /** * Time * @type {string || null} */ this.Date = null; /** * Operator UIN * @type {string || null} */ this.OperatorUin = null; /** * Log content * @type {string || null} */ this.Content = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.Date = 'Date' in params ? params.Date : null; this.OperatorUin = 'OperatorUin' in params ? params.OperatorUin : null; this.Content = 'Content' in params ? params.Content : null; } } /** * AddSpecifyPrivateZoneVpc request structure. * @class */ class AddSpecifyPrivateZoneVpcRequest extends AbstractModel { constructor(){ super(); /** * Private domain ID. * @type {string || null} */ this.ZoneId = null; /** * Information about the new VPC. * @type {Array.<VpcInfo> || null} */ this.VpcSet = null; /** * Information about the new VPC of the associated account. * @type {Array.<AccountVpcInfo> || null} */ this.AccountVpcSet = null; /** * Whether the operation is synchronous. * @type {boolean || null} */ this.Sync = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ZoneId = 'ZoneId' in params ? params.ZoneId : null; if (params.VpcSet) { this.VpcSet = new Array(); for (let z in params.VpcSet) { let obj = new VpcInfo(); obj.deserialize(params.VpcSet[z]); this.VpcSet.push(obj); } } if (params.AccountVpcSet) { this.AccountVpcSet = new Array(); for (let z in params.AccountVpcSet) { let obj = new AccountVpcInfo(); obj.deserialize(params.AccountVpcSet[z]); this.AccountVpcSet.push(obj); } } this.Sync = 'Sync' in params ? params.Sync : null; } } /** * DescribeForwardRule response structure. * @class */ class DescribeForwardRuleResponse extends AbstractModel { constructor(){ super(); /** * Forwarding rule details. * @type {ForwardRule || null} */ this.ForwardRule = 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.ForwardRule) { let obj = new ForwardRule(); obj.deserialize(params.ForwardRule) this.ForwardRule = obj; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * VPC information * @class */ class VpcInfo extends AbstractModel { constructor(){ super(); /** * VpcId: vpc-xadsafsdasd * @type {string || null} */ this.UniqVpcId = null; /** * VPC region: ap-guangzhou, ap-shanghai * @type {string || null} */ this.Region = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.UniqVpcId = 'UniqVpcId' in params ? params.UniqVpcId : null; this.Region = 'Region' in params ? params.Region : null; } } /** * CreatePrivateDNSAccount response structure. * @class */ class CreatePrivateDNSAccountResponse 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; } } /** * SubscribePrivateZoneService request structure. * @class */ class SubscribePrivateZoneServiceRequest extends AbstractModel { constructor(){ super(); } /** * @private */ deserialize(params) { if (!params) { return; } } } /** * CreateEndPoint request structure. * @class */ class CreateEndPointRequest extends AbstractModel { constructor(){ super(); /** * Endpoint name. * @type {string || null} */ this.EndPointName = null; /** * Endpoint service ID (namely, VPC endpoint service ID). * @type {string || null} */ this.EndPointServiceId = null; /** * Endpoint region, which should be consistent with the region of the endpoint service. * @type {string || null} */ this.EndPointRegion = null; /** * Number of endpoint IP addresses. * @type {number || null} */ this.IpNum = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.EndPointName = 'EndPointName' in params ? params.EndPointName : null; this.EndPointServiceId = 'EndPointServiceId' in params ? params.EndPointServiceId : null; this.EndPointRegion = 'EndPointRegion' in params ? params.EndPointRegion : null; this.IpNum = 'IpNum' in params ? params.IpNum : null; } } /** * DescribeEndPointList request structure. * @class */ class DescribeEndPointListRequest extends AbstractModel { constructor(){ super(); /** * Pagination offset, starting from 0. * @type {number || null} */ this.Offset = null; /** * Pagination limit. Maximum value: 100. Default value: 20. * @type {number || null} */ this.Limit = null; /** * Filter parameters. Valid values: EndPointName, EndPointId, EndPointServiceId, and EndPointVip. * @type {Array.<Filter> || null} */ this.Filters = null; } /** * @private */ deserialize(params) { if (!params) { return; } 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 Filter(); obj.deserialize(params.Filters[z]); this.Filters.push(obj); } } } } /** * Private domain information. * @class */ class PrivateZone extends AbstractModel { constructor(){ super(); /** * Private domain ID, which is in zone-xxxxxxxx format. * @type {string || null} */ this.ZoneId = null; /** * UIN of the domain name owner. * @type {number || null} */ this.OwnerUin = null; /** * Private domain name. * @type {string || null} */ this.Domain = null; /** * Creation time * @type {string || null} */ this.CreatedOn = null; /** * Modification time * @type {string || null} */ this.UpdatedOn = null; /** * Number of records. * @type {number || null} */ this.RecordCount = null; /** * Remarks. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Remark = null; /** * List of bound VPCs. * @type {Array.<VpcInfo> || null} */ this.VpcSet = null; /** * Status of the VPC bound with the private domain. SUSPEND: The VPC is not associated; ENABLED: the VPC has been associated. , FAILED: the VPC fails to be associated. * @type {string || null} */ this.Status = null; /** * Recursive resolution status of the domain name. ENABLED: enabled; DISABLED: disabled. * @type {string || null} */ this.DnsForwardStatus = null; /** * Tag key-value pair collection. * @type {Array.<TagInfo> || null} */ this.Tags = null; /** * List of bound VPCs of the associated account. Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<AccountVpcInfoOutput> || null} */ this.AccountVpcSet = null; /** * Whether the TLD is a custom one. Note: This field may return null, indicating that no valid values can be obtained. * @type {boolean || null} */ this.IsCustomTld = null; /** * CNAME acceleration status. ENABLED: enabled; DISABLED: disabled. * @type {string || null} */ this.CnameSpeedupStatus = null; /** * Forwarding rule name. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ForwardRuleName = null; /** * Forwarding rule type. DOWN: from cloud to off-cloud; UP: from off-cloud to cloud. Currently, only DOWN is supported. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ForwardRuleType = null; /** * Forwarding address. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.ForwardAddress = null; /** * Endpoint name. Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.EndPointName = null; /** * Deleted VPC. Note: This field may return null, indicating that no valid values can be obtained. * @type {Array.<VpcInfo> || null} */ this.DeletedVpcSet = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ZoneId = 'ZoneId' in params ? params.ZoneId : null; this.OwnerUin = 'OwnerUin' in params ? params.OwnerUin : null; this.Domain = 'Domain' in params ? params.Domain : null; this.CreatedOn = 'CreatedOn' in params ? params.CreatedOn : null; this.UpdatedOn = 'UpdatedOn' in params ? params.UpdatedOn : null; this.RecordCount = 'RecordCount' in params ? params.RecordCount : null; this.Remark = 'Remark' in params ? params.Remark : null; if (params.VpcSet) { this.VpcSet = new Array(); for (let z in params.VpcSet) { let obj = new VpcInfo(); obj.deserialize(params.VpcSet[z]); this.VpcSet.push(obj); } } this.Status = 'Status' in params ? params.Status : null; this.DnsForwardStatus = 'DnsForwardStatus' in params ? params.DnsForwardStatus : null; if (params.Tags) { this.Tags = new Array(); for (let z in params.Tags) { let obj = new TagInfo(); obj.deserialize(params.Tags[z]); this.Tags.push(obj); } } if (params.AccountVpcSet) { this.AccountVpcSet = new Array(); for (let z in params.AccountVpcSet) { let obj = new AccountVpcInfoOutput(); obj.deserialize(params.AccountVpcSet[z]); this.AccountVpcSet.push(obj); } } this.IsCustomTld = 'IsCustomTld' in params ? params.IsCustomTld : null; this.CnameSpeedupStatus = 'CnameSpeedupStatus' in params ? params.CnameSpeedupStatus : null; this.ForwardRuleName = 'ForwardRuleName' in params ? params.ForwardRuleName : null; this.ForwardRuleType = 'ForwardRuleType' in params ? params.ForwardRuleType : null; this.ForwardAddress = 'ForwardAddress' in params ? params.ForwardAddress : null; this.EndPointName = 'EndPointName' in params ? params.EndPointName : null; if (params.DeletedVpcSet) { this.DeletedVpcSet = new Array(); for (let z in params.DeletedVpcSet) { let obj = new VpcInfo(); obj.deserialize(params.DeletedVpcSet[z]); this.DeletedVpcSet.push(obj); } } } } /** * CreatePrivateDNSAccount request structure. * @class */ class CreatePrivateDNSAccountRequest extends AbstractModel { constructor(){ super(); /** * Private DNS account * @type {PrivateDNSAccount || null} */ this.Account = null; } /** * @private */ deserialize(params) { if (!params) { return; } if (params.Account) { let obj = new PrivateDNSAccount(); obj.deserialize(params.Account) this.Account = obj; } } } /** * Traffic package usage * @class */ class FlowUsage extends AbstractModel { constructor(){ super(); /** * Traffic package type, Valid values: ZONE (private domain); TRAFFIC (DNS traffic package) * @type {string || null} */ this.FlowType = null; /** * Traffic package quota * @type {number || null} */ this.TotalQuantity = null; /** * Available quota of traffic package * @type {number || null} */ this.AvailableQuantity = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.FlowType = 'FlowType' in params ? params.FlowType : null; this.TotalQuantity = 'TotalQuantity' in params ? params.TotalQuantity : null; this.AvailableQuantity = 'AvailableQuantity' in params ? params.AvailableQuantity : null; } } /** * CreateForwardRule response structure. * @class */ class CreateForwardRuleResponse extends AbstractModel { constructor(){ super(); /** * Forwarding rule ID. * @type {string || null} */ this.RuleId = null; /** * Forwarding rule name. * @type {string || null} */ this.RuleName = null; /** * Forwarding rule type. * @type {string || null} */ this.RuleType = null; /** * Private domain ID. * @type {string || null} */ this.ZoneId = null; /** * Endpoint ID. * @type {string || null} */ this.EndPointId = 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.RuleId = 'RuleId' in params ? params.RuleId : null; this.RuleName = 'RuleName' in params ? params.RuleName : null; this.RuleType = 'RuleType' in params ? params.RuleType : null; this.ZoneId = 'ZoneId' in params ? params.ZoneId : null; this.EndPointId = 'EndPointId' in params ? params.EndPointId : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * PrivateDNS outbound endpoint forwarding IP * @class */ class EndpointService extends AbstractModel { constructor(){ super(); /** * Specifies the forwarding target IP network access type. CLB: Specifies that the forwarding IP is the private CLB VIP. CCN: Specifies forwarding IP through CCN routing. * @type {string || null} */ this.AccessType = null; /** * Specifies the forwarding target IP address. * @type {string || null} */ this.Pip = null; /** * Specifies the forwarding IP port number. * @type {number || null} */ this.Pport = null; /** * Specifies the unique VPC ID. * @type {string || null} */ this.VpcId = null; /** * Specifies the forwarding target IP proxy IP. * @type {string || null} */ this.Vip = null; /** * Specifies the forwarding target IP proxy port. * @type {number || null} */ this.Vport = null; /** * Specifies the forwarding target IP protocol. * @type {string || null} */ this.Proto = null; /** * Specifies the unique subnet ID. Required if the access type is CCN. * @type {string || null} */ this.SubnetId = null; /** * ccn id Required if the access type is CCN. * @type {string || null} */ this.AccessGatewayId = null; /** * The SNAT CIDR block of the outbound endpoint. * @type {string || null} */ this.SnatVipCidr = null; /** * The SNAT IP list of the outbound endpoint. * @type {string || null} */ this.SnatVipSet = null; /** * The region of the outbound endpoint service. * @type {string || null} */ this.Region = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.AccessType = 'AccessType' in params ? params.AccessType : null; this.Pip = 'Pip' in params ? params.Pip : null; this.Pport = 'Pport' in params ? params.Pport : null; this.VpcId = 'VpcId' in params ? params.VpcId : null; this.Vip = 'Vip' in params ? params.Vip : null; this.Vport = 'Vport' in params ? params.Vport : null; this.Proto = 'Proto' in params ? params.Proto : null; this.SubnetId = 'SubnetId' in params ? params.SubnetId : null; this.AccessGatewayId = 'AccessGatewayId' in params ? params.AccessGatewayId : null; this.SnatVipCidr = 'SnatVipCidr' in params ? params.SnatVipCidr : null; this.SnatVipSet = 'SnatVipSet' in params ? params.SnatVipSet : null; this.Region = 'Region' in params ? params.Region : null; } } /** * ModifyPrivateZoneVpc request structure. * @class */ class ModifyPrivateZoneVpcRequest extends AbstractModel { constructor(){ super(); /** * Private domain ID * @type {string || null} */ this.ZoneId = null; /** * List of all VPCs associated with private domain * @type {Array.<VpcInfo> || null} */ this.VpcSet = null; /** * List of authorized accounts' VPCs to associate with the private domain * @type {Array.<AccountVpcInfo> || null} */ this.AccountVpcSet = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ZoneId = 'ZoneId' in params ? params.ZoneId : null; if (params.VpcSet) { this.VpcSet = new Array(); for (let z in params.VpcSet) { let obj = new VpcInfo(); obj.deserialize(params.VpcSet[z]); this.VpcSet.push(obj); } } if (params.AccountVpcSet) { this.AccountVpcSet = new Array(); for (let z in params.AccountVpcSet) { let obj = new AccountVpcInfo(); obj.deserialize(params.AccountVpcSet[z]); this.AccountVpcSet.push(obj); } } } } /** * DescribePrivateDNSAccountList response structure. * @class */ class DescribePrivateDNSAccountListResponse extends AbstractModel { constructor(){ super(); /** * Number of Private DNS accounts * @type {number || null} */ this.TotalCount = null; /** * List of Private DNS accounts * @type {Array.<PrivateDNSAccount> || null} */ this.AccountSet = 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.AccountSet) { this.AccountSet = new Array(); for (let z in params.AccountSet) { let obj = new PrivateDNSAccount(); obj.deserialize(params.AccountSet[z]); this.AccountSet.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * CreateExtendEndpoint request structure. * @class */ class CreateExtendEndpointRequest extends AbstractModel { constructor(){ super(); /** * Outbound endpoint name. * @type {string || null} */ this.EndpointName = null; /** * The region of the outbound endpoint must be consistent with the region of the forwarding target VIP. * @type {string || null} */ this.EndpointRegion = null; /** * Forwarding target. * @type {ForwardIp || null} */ this.ForwardIp = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.EndpointName = 'EndpointName' in params ? params.EndpointName : null; this.EndpointRegion = 'EndpointRegion' in params ? params.EndpointRegion : null; if (params.ForwardIp) { let obj = new ForwardIp(); obj.deserialize(params.ForwardIp) this.ForwardIp = obj; } } } /** * DescribePrivateZoneService request structure. * @class */ class DescribePrivateZoneServiceRequest extends AbstractModel { constructor(){ super(); } /** * @private */ deserialize(params) { if (!params) { return; } } } /** * Private domain information. * @class */ class PrivateZoneRecord extends AbstractModel { constructor(){ super(); /** * Record ID. * @type {string || null} */ this.RecordId = null; /** * Private domain ID, which is in zone-xxxxxxxx format. * @type {string || null} */ this.ZoneId = null; /** * Subdomain name. * @type {string || null} */ this.SubDomain = null; /** * Record type. Valid values: A, AAAA, CNAME, MX, TXT, and PTR. * @type {string || null} */ this.RecordType = null; /** * Record value. * @type {string || null} */ this.RecordValue = null; /** * Record cache time. The smaller the value, the faster the record will take effect. Value range: 1-86,400s. Default value: 600. * @type {number || null} */ this.TTL = null; /** * MX priority, which is required when the record type is MX. Valid values: 5, 10, 15, 20, 30, 40, and 50. Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.MX = null; /** * Record status: ENABLED. * @type {string || null} */ this.Status = null; /** * Record weight. Value range: 1–100. Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.Weight = null; /** * Record creation time. * @type {string || null} */ this.CreatedOn = null; /** * Record update time. * @type {string || null} */ this.UpdatedOn = null; /** * Additional information Note: This field may return null, indicating that no valid values can be obtained. * @type {string || null} */ this.Extra = null; /** * 0: pause; 1: enable. Note: This field may return null, indicating that no valid values can be obtained. * @type {number || null} */ this.Enabled = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RecordId = 'RecordId' in params ? params.RecordId : null; this.ZoneId = 'ZoneId' in params ? params.ZoneId : null; this.SubDomain = 'SubDomain' in params ? params.SubDomain : null; this.RecordType = 'RecordType' in params ? params.RecordType : null; this.RecordValue = 'RecordValue' in params ? params.RecordValue : null; this.TTL = 'TTL' in params ? params.TTL : null; this.MX = 'MX' in params ? params.MX : null; this.Status = 'Status' in params ? params.Status : null; this.Weight = 'Weight' in params ? params.Weight : null; this.CreatedOn = 'CreatedOn' in params ? params.CreatedOn : null; this.UpdatedOn = 'UpdatedOn' in params ? params.UpdatedOn : null; this.Extra = 'Extra' in params ? params.Extra : null; this.Enabled = 'Enabled' in params ? params.Enabled : null; } } /** * CreatePrivateZoneRecord request structure. * @class */ class CreatePrivateZoneRecordRequest extends AbstractModel { constructor(){ super(); /** * Private domain ID * @type {string || null} */ this.ZoneId = null; /** * Record type. Valid values: "A", "AAAA", "CNAME", "MX", "TXT", "PTR" * @type {string || null} */ this.RecordType = null; /** * Subdomain, such as "www", "m", and "@" * @type {string || null} */ this.SubDomain = null; /** * Record value, such as IP: 192.168.10.2, CNAME: cname.qcloud.com., and MX: mail.qcloud.com. * @type {string || null} */ this.RecordValue = null; /** * Record weight. Value range: 1–100 * @type {number || null} */ this.Weight = null; /** * MX priority, which is required when the record type is MX. Valid values: 5, 10, 15, 20, 30, 40, 50 * @type {number || null} */ this.MX = null; /** * Record cache time. The smaller the value, the faster the record will take effect. Value range: 1–86400s. Default value: 600 * @type {number || null} */ this.TTL = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ZoneId = 'ZoneId' in params ? params.ZoneId : null; this.RecordType = 'RecordType' in params ? params.RecordType : null; this.SubDomain = 'SubDomain' in params ? params.SubDomain : null; this.RecordValue = 'RecordValue' in params ? params.RecordValue : null; this.Weight = 'Weight' in params ? params.Weight : null; this.MX = 'MX' in params ? params.MX : null; this.TTL = 'TTL' in params ? params.TTL : null; } } /** * ModifyPrivateZoneRecord response structure. * @class */ class ModifyPrivateZoneRecordResponse 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; } } /** * DescribePrivateZoneRecordList response structure. * @class */ class DescribePrivateZoneRecordListResponse extends AbstractModel { constructor(){ super(); /** * Number of private DNS records. * @type {number || null} */ this.TotalCount = null; /** * Private DNS record list. * @type {Array.<PrivateZoneRecord> || null} */ this.RecordSet = 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.RecordSet) { this.RecordSet = new Array(); for (let z in params.RecordSet) { let obj = new PrivateZoneRecord(); obj.deserialize(params.RecordSet[z]); this.RecordSet.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeRequestData response structure. * @class */ class DescribeRequestDataResponse extends AbstractModel { constructor(){ super(); /** * Request volume statistics table * @type {Array.<MetricData> || null} */ this.Data = null; /** * Request volume unit time. Valid values: Day, Hour * @type {string || null} */ this.Interval = 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) { this.Data = new Array(); for (let z in params.Data) { let obj = new MetricData(); obj.deserialize(params.Data[z]); this.Data.push(obj); } } this.Interval = 'Interval' in params ? params.Interval : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeRecord request structure. * @class */ class DescribeRecordRequest extends AbstractModel { constructor(){ super(); /** * Private domain ID. * @type {string || null} */ this.ZoneId = null; /** * Record ID * @type {string || null} */ this.RecordId = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ZoneId = 'ZoneId' in params ? params.ZoneId : null; this.RecordId = 'RecordId' in params ? params.RecordId : null; } } /** * DeleteForwardRule request structure. * @class */ class DeleteForwardRuleRequest extends AbstractModel { constructor(){ super(); /** * Array of forwarding rule IDs. * @type {Array.<string> || null} */ this.RuleIdSet = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RuleIdSet = 'RuleIdSet' in params ? params.RuleIdSet : null; } } /** * ModifyPrivateZone response structure. * @class */ class ModifyPrivateZoneResponse 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; } } /** * DeleteSpecifyPrivateZoneVpc request structure. * @class */ class DeleteSpecifyPrivateZoneVpcRequest extends AbstractModel { constructor(){ super(); /** * Private domain ID. * @type {string || null} */ this.ZoneId = null; /** * VPC to be deleted. * @type {Array.<VpcInfo> || null} */ this.VpcSet = null; /** * VPC of the associated account that is to be deleted. * @type {Array.<AccountVpcInfo> || null} */ this.AccountVpcSet = null; /** * Whether the operation is synchronous. * @type {boolean || null} */ this.Sync = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ZoneId = 'ZoneId' in params ? params.ZoneId : null; if (params.VpcSet) { this.VpcSet = new Array(); for (let z in params.VpcSet) { let obj = new VpcInfo(); obj.deserialize(params.VpcSet[z]); this.VpcSet.push(obj); } } if (params.AccountVpcSet) { this.AccountVpcSet = new Array(); for (let z in params.AccountVpcSet) { let obj = new AccountVpcInfo(); obj.deserialize(params.AccountVpcSet[z]); this.AccountVpcSet.push(obj); } } this.Sync = 'Sync' in params ? params.Sync : null; } } /** * ModifyPrivateZone request structure. * @class */ class ModifyPrivateZoneRequest extends AbstractModel { constructor(){ super(); /** * Private domain ID * @type {string || null} */ this.ZoneId = null; /** * Remarks * @type {string || null} */ this.Remark = null; /** * Whether to enable subdomain recursive DNS. Valid values: ENABLED, DISABLED * @type {string || null} */ this.DnsForwardStatus = null; /** * Whether to enable CNAME flattening. Valid values: `ENABLED` and `DISABLED`. * @type {string || null} */ this.CnameSpeedupStatus = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.ZoneId = 'ZoneId' in params ? params.ZoneId : null; this.Remark = 'Remark' in params ? params.Remark : null; this.DnsForwardStatus = 'DnsForwardStatus' in params ? params.DnsForwardStatus : null; this.CnameSpeedupStatus = 'CnameSpeedupStatus' in params ? params.CnameSpeedupStatus : null; } } /** * DescribeRecord response structure. * @class */ class DescribeRecordResponse extends AbstractModel { constructor(){ super(); /** * Record information. * @type {RecordInfo || null} */ this.RecordInfo = 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.RecordInfo) { let obj = new RecordInfo(); obj.deserialize(params.RecordInfo) this.RecordInfo = obj; } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * DescribeDashboard response structure. * @class */ class DescribeDashboardResponse extends AbstractModel { constructor(){ super(); /** * Total number of private domain DNS records * @type {number || null} */ this.ZoneTotal = null; /** * Number of VPCs associated with private domain * @type {number || null} */ this.ZoneVpcCount = null; /** * Total number of historical requests * @type {number || null} */ this.RequestTotalCount = null; /** * Traffic package usage * @type {Array.<FlowUsage> || null} */ this.FlowUsage = 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.ZoneTotal = 'ZoneTotal' in params ? params.ZoneTotal : null; this.ZoneVpcCount = 'ZoneVpcCount' in params ? params.ZoneVpcCount : null; this.RequestTotalCount = 'RequestTotalCount' in params ? params.RequestTotalCount : null; if (params.FlowUsage) { this.FlowUsage = new Array(); for (let z in params.FlowUsage) { let obj = new FlowUsage(); obj.deserialize(params.FlowUsage[z]); this.FlowUsage.push(obj); } } this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Private domain information. * @class */ class RecordInfo extends AbstractModel { constructor(){ super(); /** * Record ID. * @type {string || null} */ this.RecordId = null; /** * Private domain ID, which is in zone-xxxxxxxx format. * @type {string || null} */ this.ZoneId = null; /** * Subdomain name. * @type {string || null} */ this.SubDomain = null; /** * Record type. Valid values: A, AAAA, CNAME, MX, TXT, and PTR. * @type {string || null} */ this.RecordType = null; /** * Record value. * @type {string || null} */ this.RecordValue = null; /** * Record cache time. The smaller the value, the faster the record will take effect. Value range: 1-86,400s. Default value: 600. * @type {number || null} */ this.TTL = null; /** * MX priority, which is required when the record type is mx. valid values: 5, 10, 15, 20, 30, 40, and 50. * @type {number || null} */ this.MX = null; /** * Record weight. valid values: 1–100. * @type {number || null} */ this.Weight = null; /** * Record creation time. * @type {string || null} */ this.CreatedOn = null; /** * Record update time. * @type {string || null} */ this.UpdatedOn = null; /** * 0 suspend 1 enable. * @type {number || null} */ this.Enabled = null; /** * Remarks * @type {string || null} */ this.Remark = null; } /** * @private */ deserialize(params) { if (!params) { return; } this.RecordId = 'RecordId' in params ? params.RecordId : null; this.ZoneId = 'ZoneId' in params ? params.ZoneId : null; this.SubDomain = 'SubDomain' in params ? params.SubDomain : null; this.RecordType = 'RecordType' in params ? params.RecordType : null; this.RecordValue = 'RecordValue' in params ? params.RecordValue : null; this.TTL = 'TTL' in params ? params.TTL : null; this.MX = 'MX' in params ? params.MX : null; this.Weight = 'Weight' in params ? params.Weight : null; this.CreatedOn = 'CreatedOn' in params ? params.CreatedOn : null; this.UpdatedOn = 'UpdatedOn' in params ? params.UpdatedOn : null; this.Enabled = 'Enabled' in params ? params.Enabled : null; this.Remark = 'Remark' in params ? params.Remark : null; } } /** * ModifyForwardRule response structure. * @class */ class ModifyForwardRuleResponse 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; } } /** * SubscribePrivateZoneService response structure. * @class */ class SubscribePrivateZoneServiceResponse extends AbstractModel { constructor(){ super(); /** * Private DNS service activation status * @type {string || null} */ this.ServiceStatus = 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.ServiceStatus = 'ServiceStatus' in params ? params.ServiceStatus : null; this.RequestId = 'RequestId' in params ? params.RequestId : null; } } /** * Output parameters of the associated VPC * @class */ class AccountVpcInfoOut extends AbstractModel { constructor(){ super(); /** * VpcId: vpc-xadsafsdasd * @type {string || null} */ this.VpcId = null; /** * Region: ap-guangzhou, ap-shanghai * @type {string || null} */ this.Region = null; /**