package com.banesco.application;

import io.quarkus.runtime.annotations.RegisterForReflection;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;


@Data
@RegisterForReflection
public class UpdateConfigResponse {

    private String result;
    private List<ConfigModel> configMapList;
    private String error;


    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class ConfigModel {
        private String namespace;
        private String configMapName;
        private List<PropertyChange> properties;


        @Data
        @AllArgsConstructor
        @NoArgsConstructor
        public static class PropertyChange {
            private String name;
            private String oldValue;
            private String newValue;
            private String withError;
        }

    }


}
