"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.ProviderConfigurationDto = void 0;
const swagger_1 = require("@nestjs/swagger");
const cloud_provider_enum_1 = require("../../providers/enums/cloud-provider.enum");
const provider_status_enum_1 = require("../entities/provider-status.enum");
const credentials_entity_1 = require("../entities/credentials.entity");
class ProviderConfigurationDto {
}
exports.ProviderConfigurationDto = ProviderConfigurationDto;
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Provider configuration ID' }),
    __metadata("design:type", String)
], ProviderConfigurationDto.prototype, "id", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ enum: cloud_provider_enum_1.CloudProvider, description: 'Cloud provider' }),
    __metadata("design:type", String)
], ProviderConfigurationDto.prototype, "provider", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ enum: provider_status_enum_1.ProviderStatus, description: 'Provider status' }),
    __metadata("design:type", String)
], ProviderConfigurationDto.prototype, "status", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Enabled regions', type: [String] }),
    __metadata("design:type", Array)
], ProviderConfigurationDto.prototype, "enabledRegions", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: 'Last health check timestamp' }),
    __metadata("design:type", Date)
], ProviderConfigurationDto.prototype, "lastHealthCheck", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Whether provider is active' }),
    __metadata("design:type", Boolean)
], ProviderConfigurationDto.prototype, "isActive", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: 'Available regions', type: [Object] }),
    __metadata("design:type", Array)
], ProviderConfigurationDto.prototype, "availableRegions", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        enum: credentials_entity_1.CredentialType,
        description: 'Type of credentials currently stored for this provider',
    }),
    __metadata("design:type", String)
], ProviderConfigurationDto.prototype, "credentialsType", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({
        description: 'Expiry of the stored credentials, if the user provided one. ISO 8601.',
    }),
    __metadata("design:type", Date)
], ProviderConfigurationDto.prototype, "credentialsExpiresAt", void 0);
__decorate([
    (0, swagger_1.ApiPropertyOptional)({ description: 'Provider metadata' }),
    __metadata("design:type", Object)
], ProviderConfigurationDto.prototype, "metadata", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Creation timestamp' }),
    __metadata("design:type", Date)
], ProviderConfigurationDto.prototype, "createdAt", void 0);
__decorate([
    (0, swagger_1.ApiProperty)({ description: 'Last update timestamp' }),
    __metadata("design:type", Date)
], ProviderConfigurationDto.prototype, "updatedAt", void 0);
