@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 AnalysisConfigType {
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?: AnalysisConfigType
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
  }
@@ -36,7 +36,7 @@ export enum RestartPolicy {
36
36
 
37
37
  export enum JobActionRequestAction {
38
38
  JOB_ACTION_UNSPECIFIED = "JOB_ACTION_UNSPECIFIED",
39
- STOP = "STOP",
39
+ RESTART = "RESTART",
40
40
  }
41
41
 
42
42
  export enum JobSchedulersResponseSchedulerFeature {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/baize",
3
- "version": "v0.105.1",
3
+ "version": "v0.105.2",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"