package io.wdd.func.xray.beans.node;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import io.wdd.func.oss.config.OctopusObjectSummary;
import io.wdd.func.xray.beans.xray.XrayConfig;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

import java.io.File;

@Data
@AllArgsConstructor
@NoArgsConstructor
@SuperBuilder(toBuilder = true)
@ApiModel("保存ProxyNode对应生成的 Config信息")
public class XrayConfigInfo {

    @ApiModelProperty("文件名称，为1-<agentTopicName>-<timeString>.json")
    String xrayConfigFileName;

    /**
     * 保存生成的XrayConfig文件的全路径
     */
    @ApiModelProperty("保存生成的XrayConfig文件，全路径")
    File xrayConfigFile;

    @ApiModelProperty("生成的实际的xray的配置内容")
    XrayConfig xrayConfig;

    @ApiModelProperty("xray config file的对象存储的相关信息")
    OctopusObjectSummary objectSummary;

}
