All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.tencent.devops.common.auth.api.pojo.ResourceAuthorizationDTO.kt Maven / Gradle / Ivy

There is a newer version: 3.1.0-rc.3
Show newest version
package com.tencent.devops.common.auth.api.pojo

import io.swagger.v3.oas.annotations.media.Schema

@Schema(title = "资源授权DTO")
@Suppress("LongParameterList")
open class ResourceAuthorizationDTO(
    @get:Schema(title = "项目ID")
    open val projectCode: String,
    @get:Schema(title = "资源类型")
    open val resourceType: String,
    @get:Schema(title = "资源名称")
    open val resourceName: String,
    @get:Schema(title = "资源code")
    open val resourceCode: String,
    @get:Schema(title = "授权时间")
    open val handoverTime: Long? = null,
    @get:Schema(title = "授予人")
    open val handoverFrom: String? = null,
    @get:Schema(title = "授予人中文名称")
    open var handoverFromCnName: String? = null
) {
    fun copyHandoverFromCnName(handoverFromCnName: String) {
        this.handoverFromCnName = handoverFromCnName
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy