"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.ClusterStorageStatusDto = exports.ClusterStoragePvcSummaryDto = exports.ClusterStorageNfsDto = exports.ClusterStorageVolumeDto = exports.ClusterStorageStatus = void 0;
const swagger_1 = require("@nestjs/swagger");
const cloud_provider_enum_1 = require("../../../providers/enums/cloud-provider.enum");
var ClusterStorageStatus;
(function (ClusterStorageStatus) {
    ClusterStorageStatus["DISABLED"] = "DISABLED";
    ClusterStorageStatus["PROVISIONING"] = "PROVISIONING";
    ClusterStorageStatus["READY"] = "READY";
    ClusterStorageStatus["DEGRADED"] = "DEGRADED";
    ClusterStorageStatus["ERROR"] = "ERROR";
    ClusterStorageStatus["UNKNOWN"] = "UNKNOWN";
})(ClusterStorageStatus || (exports.ClusterStorageStatus = ClusterStorageStatus = {}));
class ClusterStorageVolumeDto {
}
exports.ClusterStorageVolumeDto = ClusterStorageVolumeDto;
__decorate([
    (0, swagger_1.ApiProperty)({ enum: cloud_provider_enum_1.CloudProvider }),
    __metadata("design:type", String)
], ClusterStorageVolumeDto.prototype, "provider", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Provider volume id (Hetzner numeric, Scaleway uuid)',
    }),
    __metadata("design:type", String)
], ClusterStorageVolumeDto.prototype, "volumeId", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Provisioned size in GB' }),
    __metadata("design:type", Number)
], ClusterStorageVolumeDto.prototype, "sizeGb", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: 'Mount path on the master node' }),
    __metadata("design:type", String)
], ClusterStorageVolumeDto.prototype, "mountPath", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Filesystem label applied at format time',
    }),
    __metadata("design:type", String)
], ClusterStorageVolumeDto.prototype, "fsLabel", void 0);
class ClusterStorageNfsDto {
}
exports.ClusterStorageNfsDto = ClusterStorageNfsDto;
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Path exported via NFSv4 from the master' }),
    __metadata("design:type", String)
], ClusterStorageNfsDto.prototype, "exportPath", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'NFS export options applied on the master' }),
    __metadata("design:type", String)
], ClusterStorageNfsDto.prototype, "exportOptions", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'NFS mount options applied on the workers' }),
    __metadata("design:type", String)
], ClusterStorageNfsDto.prototype, "mountOptions", void 0);
class ClusterStoragePvcSummaryDto {
}
exports.ClusterStoragePvcSummaryDto = ClusterStoragePvcSummaryDto;
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Total PVCs bound to flui-shared storage class' }),
    __metadata("design:type", Number)
], ClusterStoragePvcSummaryDto.prototype, "bound", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Sum of requested storage in GB across bound PVCs',
    }),
    __metadata("design:type", Number)
], ClusterStoragePvcSummaryDto.prototype, "requestedGb", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Per-namespace breakdown of bound PVC counts',
        type: 'object',
        additionalProperties: { type: 'number' },
        example: { 'flui-app-foo': 2, 'flui-app-bar': 1 },
    }),
    __metadata("design:type", Object)
], ClusterStoragePvcSummaryDto.prototype, "byNamespace", void 0);
class ClusterStorageStatusDto {
}
exports.ClusterStorageStatusDto = ClusterStorageStatusDto;
__decorate([
    (0, swagger_1.ApiProperty)({ enum: ClusterStorageStatus }),
    __metadata("design:type", String)
], ClusterStorageStatusDto.prototype, "status", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Whether shared storage is enabled on this cluster',
    }),
    __metadata("design:type", Boolean)
], ClusterStorageStatusDto.prototype, "enabled", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Cluster id this storage belongs to' }),
    __metadata("design:type", String)
], ClusterStorageStatusDto.prototype, "clusterId", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ type: ClusterStorageVolumeDto }),
    __metadata("design:type", ClusterStorageVolumeDto)
], ClusterStorageStatusDto.prototype, "volume", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ type: ClusterStorageNfsDto }),
    __metadata("design:type", ClusterStorageNfsDto)
], ClusterStorageStatusDto.prototype, "nfs", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ type: ClusterStoragePvcSummaryDto }),
    __metadata("design:type", ClusterStoragePvcSummaryDto)
], ClusterStorageStatusDto.prototype, "pvcs", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Human-readable explanation when status is DEGRADED/ERROR/UNKNOWN.',
    }),
    __metadata("design:type", String)
], ClusterStorageStatusDto.prototype, "message", void 0);
