"use strict";
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
    var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
    if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
    else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
    return c > 3 && r && Object.defineProperty(target, key, r), r;
};
var __metadata = (this && this.__metadata) || function (k, v) {
    if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.ClusterCapacityPlanDto = exports.CapacityStorageDto = exports.CapacityCandidateDto = exports.CapacityMasterDto = void 0;
const swagger_1 = require("@nestjs/swagger");
class CapacityMasterDto {
}
exports.CapacityMasterDto = CapacityMasterDto;
__decorate([
    (0, swagger_1.ApiProperty)(),
    __metadata("design:type", String)
], CapacityMasterDto.prototype, "nodeName", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Provider server type (e.g. cx22, DEV1-S)' }),
    __metadata("design:type", String)
], CapacityMasterDto.prototype, "serverType", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Allocatable CPU in millicores' }),
    __metadata("design:type", Number)
], CapacityMasterDto.prototype, "allocatableCpuMillicores", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Allocatable memory in MiB' }),
    __metadata("design:type", Number)
], CapacityMasterDto.prototype, "allocatableMemoryMi", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Sum of pod CPU requests on master in millicores',
    }),
    __metadata("design:type", Number)
], CapacityMasterDto.prototype, "usedCpuMillicores", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Sum of pod memory requests on master in MiB' }),
    __metadata("design:type", Number)
], CapacityMasterDto.prototype, "usedMemoryMi", void 0);
__decorate([
    (0, swagger_1.ApiProperty)(),
    __metadata("design:type", Number)
], CapacityMasterDto.prototype, "freeCpuMillicores", void 0);
__decorate([
    (0, swagger_1.ApiProperty)(),
    __metadata("design:type", Number)
], CapacityMasterDto.prototype, "freeMemoryMi", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Monthly cost of current server type in EUR (net)',
    }),
    __metadata("design:type", String)
], CapacityMasterDto.prototype, "monthlyCostEur", void 0);
class CapacityCandidateDto {
}
exports.CapacityCandidateDto = CapacityCandidateDto;
__decorate([
    (0, swagger_1.ApiProperty)(),
    __metadata("design:type", String)
], CapacityCandidateDto.prototype, "name", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ enum: ['upgrade', 'downgrade', 'current'] }),
    __metadata("design:type", String)
], CapacityCandidateDto.prototype, "direction", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Cores' }),
    __metadata("design:type", Number)
], CapacityCandidateDto.prototype, "cores", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Memory in GB' }),
    __metadata("design:type", Number)
], CapacityCandidateDto.prototype, "memoryGb", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Local disk in GB' }),
    __metadata("design:type", Number)
], CapacityCandidateDto.prototype, "diskGb", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Monthly price EUR (net)' }),
    __metadata("design:type", String)
], CapacityCandidateDto.prototype, "monthlyCostEur", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Monthly price delta vs current type in EUR (net). Negative = cheaper.',
    }),
    __metadata("design:type", String)
], CapacityCandidateDto.prototype, "monthlyDeltaEur", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ enum: ['shared', 'dedicated'] }),
    __metadata("design:type", String)
], CapacityCandidateDto.prototype, "cpuType", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'True if deprecated by the provider' }),
    __metadata("design:type", Boolean)
], CapacityCandidateDto.prototype, "deprecated", void 0);
class CapacityStorageDto {
}
exports.CapacityStorageDto = CapacityStorageDto;
__decorate([
    (0, swagger_1.ApiProperty)(),
    __metadata("design:type", String)
], CapacityStorageDto.prototype, "volumeId", void 0);
__decorate([
    (0, swagger_1.ApiProperty)(),
    __metadata("design:type", Number)
], CapacityStorageDto.prototype, "sizeGb", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Sum of PVC requests bound to flui-shared in GB',
    }),
    __metadata("design:type", Number)
], CapacityStorageDto.prototype, "requestedGb", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Monthly cost per additional GB in EUR (net), if the provider charges by volume size.',
    }),
    __metadata("design:type", String)
], CapacityStorageDto.prototype, "pricePerGbMonthlyEur", void 0);
class ClusterCapacityPlanDto {
}
exports.ClusterCapacityPlanDto = ClusterCapacityPlanDto;
__decorate([
    (0, swagger_1.ApiProperty)(),
    __metadata("design:type", String)
], ClusterCapacityPlanDto.prototype, "clusterId", void 0);
__decorate([
    (0, swagger_1.ApiProperty)(),
    __metadata("design:type", String)
], ClusterCapacityPlanDto.prototype, "provider", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ type: CapacityMasterDto }),
    __metadata("design:type", CapacityMasterDto)
], ClusterCapacityPlanDto.prototype, "master", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ type: [CapacityCandidateDto] }),
    __metadata("design:type", Array)
], ClusterCapacityPlanDto.prototype, "candidates", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ type: CapacityStorageDto }),
    __metadata("design:type", CapacityStorageDto)
], ClusterCapacityPlanDto.prototype, "storage", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Explanation if some data could not be resolved (e.g. provider does not expose pricing).',
    }),
    __metadata("design:type", String)
], ClusterCapacityPlanDto.prototype, "message", void 0);
