-
Notifications
You must be signed in to change notification settings - Fork 39
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
253 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
72 changes: 72 additions & 0 deletions
72
...et/biz-websocket/src/main/kotlin/com/tencent/bkrepo/websocket/pojo/fs/ProjectWorkspace.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/* | ||
* Tencent is pleased to support the open source community by making BK-CI 蓝鲸持续集成平台 available. | ||
* | ||
* Copyright (C) 2024 THL A29 Limited, a Tencent company. All rights reserved. | ||
* | ||
* BK-CI 蓝鲸持续集成平台 is licensed under the MIT license. | ||
* | ||
* A copy of the MIT License is included in this file. | ||
* | ||
* | ||
* Terms of the MIT License: | ||
* --------------------------------------------------- | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated | ||
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the | ||
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to | ||
* permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of | ||
* the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT | ||
* LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN | ||
* NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
*/ | ||
|
||
package com.tencent.bkrepo.websocket.pojo.fs | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
|
||
@Schema(title = "工作空间信息") | ||
data class ProjectWorkspace( | ||
@get:Schema(title = "工作空间ID<只读>", readOnly = true) | ||
val workspaceId: Long?, | ||
@get:Schema(title = "工作空间名称") | ||
val workspaceName: String, | ||
@get:Schema(title = "项目ID") | ||
val projectId: String?, | ||
@get:Schema(title = "工作空间备注名称") | ||
val displayName: String? = null, | ||
@get:Schema(title = "状态最近更新时间<只读>", readOnly = true) | ||
val lastStatusUpdateTime: Long? = null, | ||
@get:Schema(title = "休眠时间<只读>", readOnly = true) | ||
val sleepingTime: Long? = null, | ||
@get:Schema(title = "工作空间创建人<只读>", readOnly = true) | ||
val createUserId: String, | ||
@get:Schema(title = "工作空间对应的IP") | ||
val hostName: String? = null, | ||
@get:Schema(title = "拥有者") | ||
val owner: String? = null, | ||
@get:Schema(title = "拥有者_CN") | ||
val ownerCN: String? = null, | ||
@get:Schema(title = "查看者") | ||
val viewers: List<String>? = emptyList(), | ||
@get:Schema(title = "查看者_CN") | ||
val viewersCN: List<String>? = emptyList(), | ||
@get:Schema(title = "当前登陆者信息") | ||
var currentLoginUsers: List<String>, | ||
@get:Schema(title = "云桌面对应的mac地址") | ||
val macAddress: String? = null, | ||
@get:Schema(title = "工作空间备注") | ||
val remark: String? = null, | ||
@get:Schema(title = "标签") | ||
var labels: List<String>? = null, | ||
@get:Schema(title = "创建时间<只读>", readOnly = true) | ||
val createTime: Long? = null, | ||
@get:Schema(title = "镜像ID") | ||
val imageId: String? = null, | ||
@get:Schema(title = "是否开启了录屏") | ||
val recordEnabled: Boolean | ||
) |
65 changes: 65 additions & 0 deletions
65
...ket/biz-websocket/src/main/kotlin/com/tencent/bkrepo/websocket/pojo/fs/WorkspaceSearch.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
/* | ||
* Tencent is pleased to support the open source community by making BK-CI 蓝鲸持续集成平台 available. | ||
* | ||
* Copyright (C) 2024 THL A29 Limited, a Tencent company. All rights reserved. | ||
* | ||
* BK-CI 蓝鲸持续集成平台 is licensed under the MIT license. | ||
* | ||
* A copy of the MIT License is included in this file. | ||
* | ||
* | ||
* Terms of the MIT License: | ||
* --------------------------------------------------- | ||
* Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated | ||
* documentation files (the "Software"), to deal in the Software without restriction, including without limitation the | ||
* rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to | ||
* permit persons to whom the Software is furnished to do so, subject to the following conditions: | ||
* | ||
* The above copyright notice and this permission notice shall be included in all copies or substantial portions of | ||
* the Software. | ||
* | ||
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT | ||
* LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN | ||
* NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, | ||
* WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE | ||
* SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | ||
*/ | ||
|
||
package com.tencent.bkrepo.websocket.pojo.fs | ||
|
||
import io.swagger.v3.oas.annotations.media.Schema | ||
|
||
data class WorkspaceSearch( | ||
@get:Schema(title = "工作空间名称") | ||
val workspaceName: List<String>? = null, | ||
@get:Schema(title = "工作空间备注名称") | ||
val displayName: List<String>? = null, | ||
@get:Schema(title = "区域简称,SZ,NJ") | ||
var zoneShortName: List<String>? = null, | ||
@get:Schema(title = "资源类型:M,L,XL,S") | ||
val size: List<String>? = null, | ||
@get:Schema(title = "工作空间对应的IP,可带区域,也可不带区域进行模糊匹配, 可能NJ1.12.123.12.132") | ||
val ips: List<String>? = null, | ||
@get:Schema(title = "工作空间对应的IP 不带区域, 只能12.123.12.132") | ||
val sips: List<String>? = null, | ||
@get:Schema(title = "云桌面对应的mac地址") | ||
val macAddress: List<String>? = null, | ||
@get:Schema(title = "拥有者") | ||
val owner: List<String>? = null, | ||
@get:Schema(title = "查看者") | ||
var viewers: List<String>? = null, | ||
@get:Schema(title = "项目id") | ||
var projectId: List<String>? = null, | ||
@get:Schema(title = "协助工单,仅op有效") | ||
var expertSupId: List<Long>? = null, | ||
@get:Schema(title = "标签ids") | ||
var labels: List<String>? = null, | ||
@get:Schema(title = "工作空间所在部门") | ||
var businessLineNames: List<String>? = null, | ||
@get:Schema(title = "是否模糊匹配,可以关闭,查询会更快。") | ||
val onFuzzyMatch: Boolean = false, | ||
@get:Schema(title = "节点HashId") | ||
val nodeHashIds: List<String>? = null, | ||
@get:Schema(title = "为true返回公共云桌面实例,默认不会返回") | ||
val onPublic: Boolean = false | ||
) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters