"use strict";
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    var desc = Object.getOwnPropertyDescriptor(m, k);
    if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
      desc = { enumerable: true, get: function() { return m[k]; } };
    }
    Object.defineProperty(o, k2, desc);
}) : (function(o, m, k, k2) {
    if (k2 === undefined) k2 = k;
    o[k2] = m[k];
}));
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
    Object.defineProperty(o, "default", { enumerable: true, value: v });
}) : function(o, v) {
    o["default"] = v;
});
var __importStar = (this && this.__importStar) || (function () {
    var ownKeys = function(o) {
        ownKeys = Object.getOwnPropertyNames || function (o) {
            var ar = [];
            for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
            return ar;
        };
        return ownKeys(o);
    };
    return function (mod) {
        if (mod && mod.__esModule) return mod;
        var result = {};
        if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
        __setModuleDefault(result, mod);
        return result;
    };
})();
Object.defineProperty(exports, "__esModule", { value: true });
exports.DescribeCommonBandwidthPackagesResponseBody = exports.DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackages = exports.DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackage = exports.DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackageTags = exports.DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackageTagsTag = exports.DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackageSecurityProtectionTypes = exports.DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddresses = exports.DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddressesPublicIpAddresse = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddressesPublicIpAddresse extends $dara.Model {
    static names() {
        return {
            allocationId: 'AllocationId',
            bandwidthPackageIpRelationStatus: 'BandwidthPackageIpRelationStatus',
            ipAddress: 'IpAddress',
        };
    }
    static types() {
        return {
            allocationId: 'string',
            bandwidthPackageIpRelationStatus: 'string',
            ipAddress: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddressesPublicIpAddresse = DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddressesPublicIpAddresse;
class DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddresses extends $dara.Model {
    static names() {
        return {
            publicIpAddresse: 'PublicIpAddresse',
        };
    }
    static types() {
        return {
            publicIpAddresse: { 'type': 'array', 'itemType': DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddressesPublicIpAddresse },
        };
    }
    validate() {
        if (Array.isArray(this.publicIpAddresse)) {
            $dara.Model.validateArray(this.publicIpAddresse);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddresses = DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddresses;
class DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackageSecurityProtectionTypes extends $dara.Model {
    static names() {
        return {
            securityProtectionType: 'SecurityProtectionType',
        };
    }
    static types() {
        return {
            securityProtectionType: { 'type': 'array', 'itemType': 'string' },
        };
    }
    validate() {
        if (Array.isArray(this.securityProtectionType)) {
            $dara.Model.validateArray(this.securityProtectionType);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackageSecurityProtectionTypes = DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackageSecurityProtectionTypes;
class DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackageTagsTag extends $dara.Model {
    static names() {
        return {
            key: 'Key',
            value: 'Value',
        };
    }
    static types() {
        return {
            key: 'string',
            value: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackageTagsTag = DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackageTagsTag;
class DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackageTags extends $dara.Model {
    static names() {
        return {
            tag: 'Tag',
        };
    }
    static types() {
        return {
            tag: { 'type': 'array', 'itemType': DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackageTagsTag },
        };
    }
    validate() {
        if (Array.isArray(this.tag)) {
            $dara.Model.validateArray(this.tag);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackageTags = DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackageTags;
class DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackage extends $dara.Model {
    static names() {
        return {
            bandwidth: 'Bandwidth',
            bandwidthPackageId: 'BandwidthPackageId',
            bizType: 'BizType',
            businessStatus: 'BusinessStatus',
            creationTime: 'CreationTime',
            deletionProtection: 'DeletionProtection',
            description: 'Description',
            expiredTime: 'ExpiredTime',
            hasReservationData: 'HasReservationData',
            ISP: 'ISP',
            instanceChargeType: 'InstanceChargeType',
            internetChargeType: 'InternetChargeType',
            name: 'Name',
            publicIpAddresses: 'PublicIpAddresses',
            ratio: 'Ratio',
            regionId: 'RegionId',
            reservationActiveTime: 'ReservationActiveTime',
            reservationBandwidth: 'ReservationBandwidth',
            reservationInternetChargeType: 'ReservationInternetChargeType',
            reservationOrderType: 'ReservationOrderType',
            resourceGroupId: 'ResourceGroupId',
            securityProtectionTypes: 'SecurityProtectionTypes',
            serviceManaged: 'ServiceManaged',
            status: 'Status',
            tags: 'Tags',
            zone: 'Zone',
        };
    }
    static types() {
        return {
            bandwidth: 'string',
            bandwidthPackageId: 'string',
            bizType: 'string',
            businessStatus: 'string',
            creationTime: 'string',
            deletionProtection: 'boolean',
            description: 'string',
            expiredTime: 'string',
            hasReservationData: 'string',
            ISP: 'string',
            instanceChargeType: 'string',
            internetChargeType: 'string',
            name: 'string',
            publicIpAddresses: DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackagePublicIpAddresses,
            ratio: 'number',
            regionId: 'string',
            reservationActiveTime: 'string',
            reservationBandwidth: 'string',
            reservationInternetChargeType: 'string',
            reservationOrderType: 'string',
            resourceGroupId: 'string',
            securityProtectionTypes: DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackageSecurityProtectionTypes,
            serviceManaged: 'number',
            status: 'string',
            tags: DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackageTags,
            zone: 'string',
        };
    }
    validate() {
        if (this.publicIpAddresses && typeof this.publicIpAddresses.validate === 'function') {
            this.publicIpAddresses.validate();
        }
        if (this.securityProtectionTypes && typeof this.securityProtectionTypes.validate === 'function') {
            this.securityProtectionTypes.validate();
        }
        if (this.tags && typeof this.tags.validate === 'function') {
            this.tags.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackage = DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackage;
class DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackages extends $dara.Model {
    static names() {
        return {
            commonBandwidthPackage: 'CommonBandwidthPackage',
        };
    }
    static types() {
        return {
            commonBandwidthPackage: { 'type': 'array', 'itemType': DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackagesCommonBandwidthPackage },
        };
    }
    validate() {
        if (Array.isArray(this.commonBandwidthPackage)) {
            $dara.Model.validateArray(this.commonBandwidthPackage);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackages = DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackages;
class DescribeCommonBandwidthPackagesResponseBody extends $dara.Model {
    static names() {
        return {
            commonBandwidthPackages: 'CommonBandwidthPackages',
            pageNumber: 'PageNumber',
            pageSize: 'PageSize',
            requestId: 'RequestId',
            totalCount: 'TotalCount',
        };
    }
    static types() {
        return {
            commonBandwidthPackages: DescribeCommonBandwidthPackagesResponseBodyCommonBandwidthPackages,
            pageNumber: 'number',
            pageSize: 'number',
            requestId: 'string',
            totalCount: 'number',
        };
    }
    validate() {
        if (this.commonBandwidthPackages && typeof this.commonBandwidthPackages.validate === 'function') {
            this.commonBandwidthPackages.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeCommonBandwidthPackagesResponseBody = DescribeCommonBandwidthPackagesResponseBody;
//# sourceMappingURL=DescribeCommonBandwidthPackagesResponseBody.js.map