package com.microservices.pms.productLibrary.domain.vo;

import com.microservices.pms.productLibrary.domain.VersionPolicyEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

/**
 * 制品库-仓库对象 pms_product_library_repositories
 *
 * @author otto
 * @date 2024-06-20
 */
@Data
@ApiModel("制品库Docker对象")
public class NexusRepoDockerVo {
    @ApiModelProperty(value = "版本策略", hidden = true)
    private String versionPolicy = VersionPolicyEnum.RELEASE.getKey();
    @ApiModelProperty(value = "HTTP端口映射")
    @Range(min = 31000, max = 32000, message = "映射端口应大于31000且小于32000")
    private Integer httpPort;
    @ApiModelProperty(value = "是否开启强制验证", hidden = true)
    private Boolean forceBasicAuth = false;
    @ApiModelProperty(value = "允许客户端使用 V1 API 与此存储库进行交互", hidden = true)
    private Boolean v1Enabled = true;
}
