"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.ServerResponseDto = exports.VNetAttachmentDto = exports.LabelDto = void 0;
const swagger_1 = require("@nestjs/swagger");
const cloud_provider_enum_1 = require("../../../../modules/providers/enums/cloud-provider.enum");
class LabelDto {
}
exports.LabelDto = LabelDto;
__decorate([
    (0, swagger_1.ApiProperty)(),
    __metadata("design:type", String)
], LabelDto.prototype, "key", void 0);
__decorate([
    (0, swagger_1.ApiProperty)(),
    __metadata("design:type", String)
], LabelDto.prototype, "value", void 0);
class VNetAttachmentDto {
}
exports.VNetAttachmentDto = VNetAttachmentDto;
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'VNet UUID',
        example: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
    }),
    __metadata("design:type", String)
], VNetAttachmentDto.prototype, "vnetId", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'VNet name', example: 'production-vnet' }),
    __metadata("design:type", String)
], VNetAttachmentDto.prototype, "vnetName", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Subnet UUID',
        example: 'b2c3d4e5-f6a7-8901-bcde-f12345678901',
    }),
    __metadata("design:type", String)
], VNetAttachmentDto.prototype, "subnetId", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Private IP address in VNet',
        example: '10.0.1.5',
    }),
    __metadata("design:type", String)
], VNetAttachmentDto.prototype, "ip", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Alias IP addresses',
        type: [String],
        example: ['10.0.1.10', '10.0.1.11'],
    }),
    __metadata("design:type", Array)
], VNetAttachmentDto.prototype, "aliasIps", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Provider-specific VNet resource ID',
        example: '12345678',
    }),
    __metadata("design:type", String)
], VNetAttachmentDto.prototype, "providerVnetId", void 0);
class ServerResponseDto {
}
exports.ServerResponseDto = ServerResponseDto;
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Server unique identifier' }),
    __metadata("design:type", String)
], ServerResponseDto.prototype, "id", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Server name' }),
    __metadata("design:type", String)
], ServerResponseDto.prototype, "name", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ enum: cloud_provider_enum_1.CloudProvider, description: 'Cloud provider' }),
    __metadata("design:type", String)
], ServerResponseDto.prototype, "provider", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Provider-specific resource ID' }),
    __metadata("design:type", String)
], ServerResponseDto.prototype, "provider_resource_id", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Server type/size' }),
    __metadata("design:type", String)
], ServerResponseDto.prototype, "server_type", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Server location/datacenter' }),
    __metadata("design:type", String)
], ServerResponseDto.prototype, "location", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Current server status' }),
    __metadata("design:type", String)
], ServerResponseDto.prototype, "status", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: 'Public IP address' }),
    __metadata("design:type", String)
], ServerResponseDto.prototype, "public_ip", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: 'Private IP address' }),
    __metadata("design:type", String)
], ServerResponseDto.prototype, "private_ip", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Server creation date' }),
    __metadata("design:type", Date)
], ServerResponseDto.prototype, "created_at", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Last update timestamp' }),
    __metadata("design:type", Date)
], ServerResponseDto.prototype, "updated_at", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: 'Last sync timestamp from provider' }),
    __metadata("design:type", Date)
], ServerResponseDto.prototype, "lastSyncAt", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Server labels/tags',
        type: [LabelDto],
        example: [
            { key: 'managed-by', value: 'flui-cloud' },
            { key: 'environment', value: 'production' },
        ],
    }),
    __metadata("design:type", Array)
], ServerResponseDto.prototype, "labels", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'VNet attachments for this server',
        type: [VNetAttachmentDto],
        example: [
            {
                vnetId: 'a1b2c3d4-e5f6-7890-abcd-ef1234567890',
                vnetName: 'production-vnet',
                subnetId: 'b2c3d4e5-f6a7-8901-bcde-f12345678901',
                ip: '10.0.1.5',
                aliasIps: ['10.0.1.10'],
                providerVnetId: '12345678',
            },
        ],
    }),
    __metadata("design:type", Array)
], ServerResponseDto.prototype, "vnetAttachments", void 0);
