"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.CreateSSHKeyDto = void 0;
const swagger_1 = require("@nestjs/swagger");
const class_validator_1 = require("class-validator");
const cloud_provider_enum_1 = require("../../providers/enums/cloud-provider.enum");
class CreateSSHKeyDto {
}
exports.CreateSSHKeyDto = CreateSSHKeyDto;
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'Name of the SSH key',
        example: 'my-deployment-key',
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsNotEmpty)(),
    __metadata("design:type", String)
], CreateSSHKeyDto.prototype, "name", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({
        description: 'User name for the SSH key',
        example: 'john.doe',
    }),
    (0, class_validator_1.IsString)(),
    (0, class_validator_1.IsNotEmpty)(),
    __metadata("design:type", String)
], CreateSSHKeyDto.prototype, "userName", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Key-value pairs for tagging. Values can be strings or arrays',
        example: {
            'cluster-id': ['k3s-prod-eu-001', 'k3s-prod-eu-002'],
            'cluster-node-id': 'node-master-01',
            environment: 'production',
        },
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsObject)(),
    __metadata("design:type", Object)
], CreateSSHKeyDto.prototype, "tags", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Cloud providers to sync the SSH key to. Defaults to all configured providers.',
        enum: cloud_provider_enum_1.CloudProvider,
        isArray: true,
        example: [cloud_provider_enum_1.CloudProvider.SCALEWAY],
    }),
    (0, class_validator_1.IsOptional)(),
    (0, class_validator_1.IsArray)(),
    (0, class_validator_1.IsEnum)(cloud_provider_enum_1.CloudProvider, { each: true }),
    __metadata("design:type", Array)
], CreateSSHKeyDto.prototype, "providers", void 0);
