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

import com.alibaba.fastjson2.JSONObject;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;

/**
 * 流水线对象 pms_ci_pipelines
 * 
 * @author wanjia
 * @date 2024-03-02
 */
@Data
@ApiModel("流水线输入对象")
public class PmsCiPipelinesInputVo 
{

    /** 流水线名称 */
    @ApiModelProperty(value = "流水线名称")
    @NotNull
    private String pipelineName;

    /** 仓库标识 */
    @ApiModelProperty(value = "仓库标识")
    @NotNull
    private String repoIdentifier;

    @ApiModelProperty(value = "仓库名")
    @NotNull
    private String repoName;

    /** 分支 */
    @ApiModelProperty(value = "分支")
    @NotNull
    private String branch;

    /** 构建类型 */
    @ApiModelProperty(value = "构建类型 1-声明式流水线 2-图形化流水线")
    @NotNull
    private Integer pipelineType;


    /** 仓库拥有者标识 */
    @ApiModelProperty(value = "仓库拥有者标识")
    @NotNull
    private String owner;

    @ApiModelProperty(value = "流水线模板JSON")
    private JSONObject pipelineTemplateJson;
}
