@daocloud-proto/baize 0.105.1 → 0.105.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -4,16 +4,54 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import * as BaizeCommonCommon from "../../../common/common.pb"
|
|
7
8
|
import * as BaizeCommonK8s from "../../../common/k8s.pb"
|
|
9
|
+
import * as fm from "../../../fetch.pb"
|
|
8
10
|
|
|
9
|
-
export enum
|
|
11
|
+
export enum AnalysisType {
|
|
10
12
|
TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
|
|
11
13
|
TENSORBOARD = "TENSORBOARD",
|
|
12
14
|
}
|
|
13
15
|
|
|
14
16
|
export type AnalysisConfig = {
|
|
15
17
|
enabled?: boolean
|
|
16
|
-
type?:
|
|
18
|
+
type?: AnalysisType
|
|
17
19
|
kubeVolumes?: BaizeCommonK8s.KubeVolume[]
|
|
18
20
|
logPath?: string
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type AnalysisStatus = {
|
|
24
|
+
accessUrl?: string
|
|
25
|
+
message?: string
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export type Analysis = {
|
|
29
|
+
workspace?: number
|
|
30
|
+
cluster?: string
|
|
31
|
+
namespace?: string
|
|
32
|
+
name?: string
|
|
33
|
+
queueName?: string
|
|
34
|
+
type?: AnalysisType
|
|
35
|
+
kubeVolumes?: BaizeCommonK8s.KubeVolume[]
|
|
36
|
+
logPath?: string
|
|
37
|
+
status?: AnalysisStatus
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type ListAnalysisRequest = {
|
|
41
|
+
workspace?: number
|
|
42
|
+
cluster?: string
|
|
43
|
+
namespace?: string
|
|
44
|
+
queueName?: string
|
|
45
|
+
page?: BaizeCommonCommon.Pagination
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type ListAnalysisResponse = {
|
|
49
|
+
items?: Analysis[]
|
|
50
|
+
page?: BaizeCommonCommon.Pagination
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export class AnalysisManagement {
|
|
54
|
+
static ListAnalysis(req: ListAnalysisRequest, initReq?: fm.InitReq): Promise<ListAnalysisResponse> {
|
|
55
|
+
return fm.fetchReq<ListAnalysisRequest, ListAnalysisResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/analysis?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
56
|
+
}
|
|
19
57
|
}
|