@daocloud-proto/baize 0.107.3 → 0.108.0
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.
package/common/k8s.pb.ts
CHANGED
|
@@ -11,6 +11,12 @@ export enum KubeVolumeVolumeType {
|
|
|
11
11
|
DATASET_RUNTIME_ENV = "DATASET_RUNTIME_ENV",
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
export enum KubeVolumeDataDirection {
|
|
15
|
+
DATA_DIRECTION_UNSPECIFIED = "DATA_DIRECTION_UNSPECIFIED",
|
|
16
|
+
INPUT = "INPUT",
|
|
17
|
+
OUTPUT = "OUTPUT",
|
|
18
|
+
}
|
|
19
|
+
|
|
14
20
|
export type Resources = {
|
|
15
21
|
requests?: {[key: string]: string}
|
|
16
22
|
limits?: {[key: string]: string}
|
|
@@ -26,6 +32,7 @@ export type KubeVolume = {
|
|
|
26
32
|
name?: string
|
|
27
33
|
mountPath?: string
|
|
28
34
|
readOnly?: boolean
|
|
35
|
+
dataDirection?: KubeVolumeDataDirection
|
|
29
36
|
}
|
|
30
37
|
|
|
31
38
|
export type PodConfig = {
|
|
@@ -0,0 +1,121 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as BaizeCommonCommon from "../../../common/common.pb"
|
|
8
|
+
import * as fm from "../../../fetch.pb"
|
|
9
|
+
import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
|
|
10
|
+
|
|
11
|
+
export enum RegistryType {
|
|
12
|
+
REGISTRY_TYPE_UNSPECIFIED = "REGISTRY_TYPE_UNSPECIFIED",
|
|
13
|
+
REGISTRY_TYPE_HARBOR = "REGISTRY_TYPE_HARBOR",
|
|
14
|
+
REGISTRY_TYPE_DOCKER = "REGISTRY_TYPE_DOCKER",
|
|
15
|
+
REGISTRY_TYPE_JFROG = "REGISTRY_TYPE_JFROG",
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type ListRegistriesRequest = {
|
|
19
|
+
workspace?: string
|
|
20
|
+
global?: boolean
|
|
21
|
+
page?: BaizeCommonCommon.Pagination
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type ListRegistriesResponse = {
|
|
25
|
+
items?: Registry[]
|
|
26
|
+
page?: BaizeCommonCommon.Pagination
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type Registry = {
|
|
30
|
+
host?: string
|
|
31
|
+
name?: string
|
|
32
|
+
type?: RegistryType
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type ListProjectsRequest = {
|
|
36
|
+
workspace?: string
|
|
37
|
+
registry?: string
|
|
38
|
+
public?: boolean
|
|
39
|
+
page?: BaizeCommonCommon.Pagination
|
|
40
|
+
onlyBind?: boolean
|
|
41
|
+
all?: boolean
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type ListProjectsResponse = {
|
|
45
|
+
items?: Project[]
|
|
46
|
+
page?: BaizeCommonCommon.Pagination
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export type Project = {
|
|
50
|
+
name?: string
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export type ListRepositoriesRequest = {
|
|
54
|
+
workspace?: string
|
|
55
|
+
registry?: string
|
|
56
|
+
project?: string
|
|
57
|
+
showArtifacts?: boolean
|
|
58
|
+
page?: BaizeCommonCommon.Pagination
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type ListRepositoriesResponse = {
|
|
62
|
+
items?: Repository[]
|
|
63
|
+
page?: BaizeCommonCommon.Pagination
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type Repository = {
|
|
67
|
+
name?: string
|
|
68
|
+
public?: boolean
|
|
69
|
+
updateTimestamp?: GoogleProtobufTimestamp.Timestamp
|
|
70
|
+
artifacts?: Artifact[]
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export type ListArtifactsRequest = {
|
|
74
|
+
workspace?: string
|
|
75
|
+
registry?: string
|
|
76
|
+
project?: string
|
|
77
|
+
repository?: string
|
|
78
|
+
page?: BaizeCommonCommon.Pagination
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type ListArtifactsResponse = {
|
|
82
|
+
items?: Artifact[]
|
|
83
|
+
page?: BaizeCommonCommon.Pagination
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type Artifact = {
|
|
87
|
+
digest?: string
|
|
88
|
+
tags?: Tag[]
|
|
89
|
+
imageSize?: string
|
|
90
|
+
creationTimestamp?: GoogleProtobufTimestamp.Timestamp
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export type Tag = {
|
|
94
|
+
name?: string
|
|
95
|
+
creationTimestamp?: GoogleProtobufTimestamp.Timestamp
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export type ImageInfo = {
|
|
99
|
+
registry?: string
|
|
100
|
+
project?: string
|
|
101
|
+
image?: string
|
|
102
|
+
tag?: string
|
|
103
|
+
public?: boolean
|
|
104
|
+
global?: boolean
|
|
105
|
+
origin?: string
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export class ImageService {
|
|
109
|
+
static ListRegistries(req: ListRegistriesRequest, initReq?: fm.InitReq): Promise<ListRegistriesResponse> {
|
|
110
|
+
return fm.fetchReq<ListRegistriesRequest, ListRegistriesResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/registries?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
111
|
+
}
|
|
112
|
+
static ListProjects(req: ListProjectsRequest, initReq?: fm.InitReq): Promise<ListProjectsResponse> {
|
|
113
|
+
return fm.fetchReq<ListProjectsRequest, ListProjectsResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/projects?${fm.renderURLSearchParams(req, ["workspace", "registry"])}`, {...initReq, method: "GET"})
|
|
114
|
+
}
|
|
115
|
+
static ListProjectRepositories(req: ListRepositoriesRequest, initReq?: fm.InitReq): Promise<ListRepositoriesResponse> {
|
|
116
|
+
return fm.fetchReq<ListRepositoriesRequest, ListRepositoriesResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/projects/${req["project"]}/repositories?${fm.renderURLSearchParams(req, ["workspace", "registry", "project"])}`, {...initReq, method: "GET"})
|
|
117
|
+
}
|
|
118
|
+
static ListArtifacts(req: ListArtifactsRequest, initReq?: fm.InitReq): Promise<ListArtifactsResponse> {
|
|
119
|
+
return fm.fetchReq<ListArtifactsRequest, ListArtifactsResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/projects/${req["project"]}/repositories/${req["repository"]}/artifacts?${fm.renderURLSearchParams(req, ["workspace", "registry", "project", "repository"])}`, {...initReq, method: "GET"})
|
|
120
|
+
}
|
|
121
|
+
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as BaizeCommonK8s from "../../../common/k8s.pb"
|
|
8
|
+
import * as BaizeManagement_apiImageV1alpha1Image from "../../image/v1alpha1/image.pb"
|
|
8
9
|
|
|
9
10
|
export enum QueueType {
|
|
10
11
|
QUEUE_TYPE_UNSPECIFIED = "QUEUE_TYPE_UNSPECIFIED",
|
|
@@ -60,6 +61,7 @@ export type JobCreationBaseConfig = {
|
|
|
60
61
|
workingDir?: string
|
|
61
62
|
shmSize?: number
|
|
62
63
|
noOverrideEnvPath?: boolean
|
|
64
|
+
imageInfo?: BaizeManagement_apiImageV1alpha1Image.ImageInfo
|
|
63
65
|
}
|
|
64
66
|
|
|
65
67
|
export type JobRoleDifferenceConfig = {
|
|
@@ -9,6 +9,7 @@ import * as BaizeCommonK8s from "../../../common/k8s.pb"
|
|
|
9
9
|
import * as fm from "../../../fetch.pb"
|
|
10
10
|
import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
|
|
11
11
|
import * as BaizeManagement_apiAnalysisV1alpha1Analysis from "../../analysis/v1alpha1/analysis.pb"
|
|
12
|
+
import * as BaizeManagement_apiImageV1alpha1Image from "../../image/v1alpha1/image.pb"
|
|
12
13
|
|
|
13
14
|
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
14
15
|
type OneOf<T> =
|
|
@@ -70,6 +71,7 @@ export type NotebookConfig = {
|
|
|
70
71
|
enableSSH?: boolean
|
|
71
72
|
affinity?: BaizeCommonK8s.Affinity
|
|
72
73
|
tolerationSeconds?: string
|
|
74
|
+
imageInfo?: BaizeManagement_apiImageV1alpha1Image.ImageInfo
|
|
73
75
|
}
|
|
74
76
|
|
|
75
77
|
export type NotebookStatus = {
|
|
@@ -14,10 +14,11 @@ export enum ResourceType {
|
|
|
14
14
|
PYTORCH = "PYTORCH",
|
|
15
15
|
TENSORFLOW = "TENSORFLOW",
|
|
16
16
|
PADDLE = "PADDLE",
|
|
17
|
-
NOTEBOOK = "NOTEBOOK",
|
|
18
|
-
INFERENCE = "INFERENCE",
|
|
19
17
|
MXNET = "MXNET",
|
|
20
18
|
MPI = "MPI",
|
|
19
|
+
NOTEBOOK = "NOTEBOOK",
|
|
20
|
+
INFERENCE = "INFERENCE",
|
|
21
|
+
DATASET = "DATASET",
|
|
21
22
|
}
|
|
22
23
|
|
|
23
24
|
export type PodRequest = {
|