"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.DescribeRecommendInstanceTypeResponseBody = exports.DescribeRecommendInstanceTypeResponseBodyData = exports.DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType = exports.DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZones = exports.DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZone = exports.DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZoneNetworkTypes = exports.DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeInstanceType = void 0;
// This file is auto-generated, don't edit it
const $dara = __importStar(require("@darabonba/typescript"));
class DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeInstanceType extends $dara.Model {
    static names() {
        return {
            cores: 'Cores',
            generation: 'Generation',
            instanceType: 'InstanceType',
            instanceTypeFamily: 'InstanceTypeFamily',
            memory: 'Memory',
            supportIoOptimized: 'SupportIoOptimized',
        };
    }
    static types() {
        return {
            cores: 'number',
            generation: 'string',
            instanceType: 'string',
            instanceTypeFamily: 'string',
            memory: 'number',
            supportIoOptimized: 'string',
        };
    }
    validate() {
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeInstanceType = DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeInstanceType;
class DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZoneNetworkTypes extends $dara.Model {
    static names() {
        return {
            networkType: 'NetworkType',
        };
    }
    static types() {
        return {
            networkType: { 'type': 'array', 'itemType': 'string' },
        };
    }
    validate() {
        if (Array.isArray(this.networkType)) {
            $dara.Model.validateArray(this.networkType);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZoneNetworkTypes = DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZoneNetworkTypes;
class DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZone extends $dara.Model {
    static names() {
        return {
            networkTypes: 'NetworkTypes',
            zoneNo: 'ZoneNo',
        };
    }
    static types() {
        return {
            networkTypes: DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZoneNetworkTypes,
            zoneNo: 'string',
        };
    }
    validate() {
        if (this.networkTypes && typeof this.networkTypes.validate === 'function') {
            this.networkTypes.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZone = DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZone;
class DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZones extends $dara.Model {
    static names() {
        return {
            zone: 'zone',
        };
    }
    static types() {
        return {
            zone: { 'type': 'array', 'itemType': DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZonesZone },
        };
    }
    validate() {
        if (Array.isArray(this.zone)) {
            $dara.Model.validateArray(this.zone);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZones = DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZones;
class DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType extends $dara.Model {
    static names() {
        return {
            commodityCode: 'CommodityCode',
            instanceChargeType: 'InstanceChargeType',
            instanceType: 'InstanceType',
            networkType: 'NetworkType',
            priority: 'Priority',
            regionId: 'RegionId',
            scene: 'Scene',
            spotStrategy: 'SpotStrategy',
            zoneId: 'ZoneId',
            zones: 'Zones',
        };
    }
    static types() {
        return {
            commodityCode: 'string',
            instanceChargeType: 'string',
            instanceType: DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeInstanceType,
            networkType: 'string',
            priority: 'number',
            regionId: 'string',
            scene: 'string',
            spotStrategy: 'string',
            zoneId: 'string',
            zones: DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceTypeZones,
        };
    }
    validate() {
        if (this.instanceType && typeof this.instanceType.validate === 'function') {
            this.instanceType.validate();
        }
        if (this.zones && typeof this.zones.validate === 'function') {
            this.zones.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType = DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType;
class DescribeRecommendInstanceTypeResponseBodyData extends $dara.Model {
    static names() {
        return {
            recommendInstanceType: 'RecommendInstanceType',
        };
    }
    static types() {
        return {
            recommendInstanceType: { 'type': 'array', 'itemType': DescribeRecommendInstanceTypeResponseBodyDataRecommendInstanceType },
        };
    }
    validate() {
        if (Array.isArray(this.recommendInstanceType)) {
            $dara.Model.validateArray(this.recommendInstanceType);
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeRecommendInstanceTypeResponseBodyData = DescribeRecommendInstanceTypeResponseBodyData;
class DescribeRecommendInstanceTypeResponseBody extends $dara.Model {
    static names() {
        return {
            data: 'Data',
            requestId: 'RequestId',
        };
    }
    static types() {
        return {
            data: DescribeRecommendInstanceTypeResponseBodyData,
            requestId: 'string',
        };
    }
    validate() {
        if (this.data && typeof this.data.validate === 'function') {
            this.data.validate();
        }
        super.validate();
    }
    constructor(map) {
        super(map);
    }
}
exports.DescribeRecommendInstanceTypeResponseBody = DescribeRecommendInstanceTypeResponseBody;
//# sourceMappingURL=DescribeRecommendInstanceTypeResponseBody.js.map