@daocloud-proto/hydra 0.0.0-dev-65873840
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/admin-api/core/v1alpha1/core.pb.ts +32 -0
- package/admin-api/maas/v1alpha1/maas.pb.ts +131 -0
- package/admin-api/model/v1alpha1/model.pb.ts +190 -0
- package/admin-api/model/v1alpha1/model_weights_volume.pb.ts +96 -0
- package/admin-api/model/v1alpha1/provider.pb.ts +59 -0
- package/admin-api/storage/v1alpha1/filesstorage.pb.ts +261 -0
- package/common/common.pb.ts +159 -0
- package/common/error.pb.ts +10 -0
- package/common/errorcode.ts +48 -0
- package/fetch.pb.ts +341 -0
- package/management-api/agent/v1alpha1/event.pb.ts +75 -0
- package/management-api/agent/v1alpha1/server_registration.pb.ts +33 -0
- package/management-api/agent/v1alpha1/sftp_user.pb.ts +39 -0
- package/management-api/apikey/v1alpha1/apikey.pb.ts +135 -0
- package/management-api/core/v1alpha1/image.pb.ts +174 -0
- package/management-api/core/v1alpha1/management.pb.ts +55 -0
- package/management-api/core/v1alpha1/permissions.pb.ts +30 -0
- package/management-api/event/v1alpha1/event.pb.ts +38 -0
- package/management-api/model/v1alpha1/model.pb.ts +275 -0
- package/management-api/model/v1alpha1/model_weights_volume.pb.ts +101 -0
- package/management-api/model/v1alpha1/provider.pb.ts +68 -0
- package/management-api/model_serving/v1alpha1/model_serving.pb.ts +317 -0
- package/management-api/product/v1alpha1/product.pb.ts +77 -0
- package/management-api/queue/v1alpha1/queue.pb.ts +121 -0
- package/management-api/storage/v1alpha1/filesstorage.pb.ts +495 -0
- package/management-api/user/v1alpha1/user.pb.ts +24 -0
- package/management-api/web_search_agent/v1alpha1/agent.pb.ts +19 -0
- package/management-api/workspace/v1alpha1/workspace.pb.ts +82 -0
- package/package.json +7 -0
|
@@ -0,0 +1,261 @@
|
|
|
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 HydraCommonCommon from "../../../common/common.pb"
|
|
8
|
+
import * as fm from "../../../fetch.pb"
|
|
9
|
+
import * as GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"
|
|
10
|
+
import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
|
|
11
|
+
import * as EventV1alpha1Event from "../../../management-api/event/v1alpha1/event.pb"
|
|
12
|
+
import * as HydraManagement_apiStorageV1alpha1Filesstorage from "../../../management-api/storage/v1alpha1/filesstorage.pb"
|
|
13
|
+
import * as HydraStorageserverV1alpha1Storage_server from "../../../storageserver/v1alpha1/storage_server.pb"
|
|
14
|
+
|
|
15
|
+
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
16
|
+
type OneOf<T> =
|
|
17
|
+
| { [k in keyof T]?: undefined }
|
|
18
|
+
| (
|
|
19
|
+
keyof T extends infer K ?
|
|
20
|
+
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
21
|
+
: never)
|
|
22
|
+
: never);
|
|
23
|
+
|
|
24
|
+
export enum PrePullActionRequestAction {
|
|
25
|
+
ACTION_UNSPECIFIED = "ACTION_UNSPECIFIED",
|
|
26
|
+
RERUN = "RERUN",
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type FilesStorageStatus = {
|
|
30
|
+
phase?: HydraManagement_apiStorageV1alpha1Filesstorage.PvcPhase
|
|
31
|
+
reason?: string
|
|
32
|
+
pvcName?: string
|
|
33
|
+
pvcNamespace?: string
|
|
34
|
+
storageServer?: StorageServerStatus
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export type FilesStorage = {
|
|
38
|
+
name?: string
|
|
39
|
+
cluster?: string
|
|
40
|
+
pvcNamespace?: string
|
|
41
|
+
storageClassName?: string
|
|
42
|
+
capacity?: string
|
|
43
|
+
status?: FilesStorageStatus
|
|
44
|
+
createTime?: GoogleProtobufTimestamp.Timestamp
|
|
45
|
+
description?: string
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type StorageServerStatus = {
|
|
49
|
+
phase?: string
|
|
50
|
+
name?: string
|
|
51
|
+
namespace?: string
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type ListFilesStoragesRequest = {
|
|
55
|
+
page?: HydraCommonCommon.Pagination
|
|
56
|
+
cluster?: string
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type ListFilesStoragesResponse = {
|
|
60
|
+
items?: FilesStorage[]
|
|
61
|
+
page?: HydraCommonCommon.Pagination
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type GetFilesStorageRequest = {
|
|
65
|
+
name?: string
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export type CreateFilesStorageRequest = {
|
|
69
|
+
cluster?: string
|
|
70
|
+
description?: string
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export type UpdateFilesStorageRequest = {
|
|
74
|
+
name?: string
|
|
75
|
+
description?: string
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type DeleteFilesStorageRequest = {
|
|
79
|
+
name?: string
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export type FileInfo = {
|
|
83
|
+
name?: string
|
|
84
|
+
type?: HydraStorageserverV1alpha1Storage_server.FileType
|
|
85
|
+
size?: string
|
|
86
|
+
modificationTimestamp?: string
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export type ListFilesRequest = {
|
|
90
|
+
name?: string
|
|
91
|
+
path?: string
|
|
92
|
+
type?: HydraStorageserverV1alpha1Storage_server.FileType
|
|
93
|
+
searchKeyword?: string
|
|
94
|
+
page?: HydraCommonCommon.Pagination
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export type DeleteFileRequest = {
|
|
98
|
+
name?: string
|
|
99
|
+
fileName?: string
|
|
100
|
+
path?: string
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
export type ListFilesResponse = {
|
|
104
|
+
files?: FileInfo[]
|
|
105
|
+
page?: HydraCommonCommon.Pagination
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export type CreateFolderRequest = {
|
|
109
|
+
name?: string
|
|
110
|
+
folderName?: string
|
|
111
|
+
path?: string
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export type ListPrePullsRequest = {
|
|
115
|
+
storageName?: string
|
|
116
|
+
cluster?: string
|
|
117
|
+
page?: HydraCommonCommon.Pagination
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export type ListPrePullsResponse = {
|
|
121
|
+
items?: HydraManagement_apiStorageV1alpha1Filesstorage.PrePull[]
|
|
122
|
+
page?: HydraCommonCommon.Pagination
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
export type CreatePrePullRequest = {
|
|
126
|
+
prepullName?: string
|
|
127
|
+
cluster?: string
|
|
128
|
+
path?: string
|
|
129
|
+
storageName?: string
|
|
130
|
+
description?: string
|
|
131
|
+
labels?: {[key: string]: string}
|
|
132
|
+
annotations?: {[key: string]: string}
|
|
133
|
+
source?: HydraManagement_apiStorageV1alpha1Filesstorage.DataSource
|
|
134
|
+
secretOptions?: HydraManagement_apiStorageV1alpha1Filesstorage.SecretOptions
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
|
|
138
|
+
type BaseUpdatePrePullRequest = {
|
|
139
|
+
cluster?: string
|
|
140
|
+
storageName?: string
|
|
141
|
+
prepullName?: string
|
|
142
|
+
description?: string
|
|
143
|
+
labels?: {[key: string]: string}
|
|
144
|
+
annotations?: {[key: string]: string}
|
|
145
|
+
secretOptions?: HydraManagement_apiStorageV1alpha1Filesstorage.SecretOptions
|
|
146
|
+
path?: string
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export type UpdatePrePullRequest = BaseUpdatePrePullRequest
|
|
150
|
+
& OneOf<{ git: HydraManagement_apiStorageV1alpha1Filesstorage.DataSourceOptionsGit; s3: HydraManagement_apiStorageV1alpha1Filesstorage.DataSourceOptionsS3; http: HydraManagement_apiStorageV1alpha1Filesstorage.DataSourceOptionsHttp; huggingFace: HydraManagement_apiStorageV1alpha1Filesstorage.DataSourceOptionsHuggingFace; modelScope: HydraManagement_apiStorageV1alpha1Filesstorage.DataSourceOptionsModelScope }>
|
|
151
|
+
|
|
152
|
+
export type DeletePrePullRequest = {
|
|
153
|
+
storageName?: string
|
|
154
|
+
prepullName?: string
|
|
155
|
+
}
|
|
156
|
+
|
|
157
|
+
export type PrePullActionRequest = {
|
|
158
|
+
cluster?: string
|
|
159
|
+
storageName?: string
|
|
160
|
+
prepullName?: string
|
|
161
|
+
action?: PrePullActionRequestAction
|
|
162
|
+
}
|
|
163
|
+
|
|
164
|
+
export type RestartPrePullRequest = {
|
|
165
|
+
storageName?: string
|
|
166
|
+
prepullName?: string
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export type ValidateDataSourceSecretsRequest = {
|
|
170
|
+
source?: HydraManagement_apiStorageV1alpha1Filesstorage.DataSource
|
|
171
|
+
secretOptions?: HydraManagement_apiStorageV1alpha1Filesstorage.SecretOptions
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export type ValidateDataSourceSecretsResponse = {
|
|
175
|
+
valid?: boolean
|
|
176
|
+
message?: string
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
export type ListDatasetEventsRequest = {
|
|
180
|
+
cluster?: string
|
|
181
|
+
storageName?: string
|
|
182
|
+
prepullName?: string
|
|
183
|
+
page?: HydraCommonCommon.Pagination
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export type SinglePrePullRequest = {
|
|
187
|
+
cluster?: string
|
|
188
|
+
storageName?: string
|
|
189
|
+
prepullName?: string
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export type GetPrePullRequest = {
|
|
193
|
+
storageName?: string
|
|
194
|
+
prepullName?: string
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export class AdminFilesStorageService {
|
|
198
|
+
static ListFilesStorages(req: ListFilesStoragesRequest, initReq?: fm.InitReq): Promise<ListFilesStoragesResponse> {
|
|
199
|
+
return fm.fetchReq<ListFilesStoragesRequest, ListFilesStoragesResponse>(`/apis/admin.hydra.io/v1alpha1/filesstorages?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
200
|
+
}
|
|
201
|
+
static GetFilesStorage(req: GetFilesStorageRequest, initReq?: fm.InitReq): Promise<FilesStorage> {
|
|
202
|
+
return fm.fetchReq<GetFilesStorageRequest, FilesStorage>(`/apis/admin.hydra.io/v1alpha1/filesstorages/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
|
|
203
|
+
}
|
|
204
|
+
static CreateFilesStorage(req: CreateFilesStorageRequest, initReq?: fm.InitReq): Promise<FilesStorage> {
|
|
205
|
+
return fm.fetchReq<CreateFilesStorageRequest, FilesStorage>(`/apis/admin.hydra.io/v1alpha1/filesstorages`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
206
|
+
}
|
|
207
|
+
static UpdateFilesStorage(req: UpdateFilesStorageRequest, initReq?: fm.InitReq): Promise<FilesStorage> {
|
|
208
|
+
return fm.fetchReq<UpdateFilesStorageRequest, FilesStorage>(`/apis/admin.hydra.io/v1alpha1/filesstorages/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
209
|
+
}
|
|
210
|
+
static DeleteFilesStorage(req: DeleteFilesStorageRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
211
|
+
return fm.fetchReq<DeleteFilesStorageRequest, GoogleProtobufEmpty.Empty>(`/apis/admin.hydra.io/v1alpha1/filesstorages/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
212
|
+
}
|
|
213
|
+
static ListFiles(req: ListFilesRequest, initReq?: fm.InitReq): Promise<ListFilesResponse> {
|
|
214
|
+
return fm.fetchReq<ListFilesRequest, ListFilesResponse>(`/apis/admin.hydra.io/v1alpha1/filesstorages/${req["name"]}/files?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
|
|
215
|
+
}
|
|
216
|
+
static DeleteFile(req: DeleteFileRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
217
|
+
return fm.fetchReq<DeleteFileRequest, GoogleProtobufEmpty.Empty>(`/apis/admin.hydra.io/v1alpha1/filesstorages/${req["name"]}/files/${req["fileName"]}:delete`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
218
|
+
}
|
|
219
|
+
static CreateFolder(req: CreateFolderRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
220
|
+
return fm.fetchReq<CreateFolderRequest, GoogleProtobufEmpty.Empty>(`/apis/admin.hydra.io/v1alpha1/filesstorages/${req["name"]}/folders/${req["folderName"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
221
|
+
}
|
|
222
|
+
static ListReferencedBy(req: HydraManagement_apiStorageV1alpha1Filesstorage.ListReferencedByRequest, initReq?: fm.InitReq): Promise<HydraManagement_apiStorageV1alpha1Filesstorage.ListReferencedByResponse> {
|
|
223
|
+
return fm.fetchReq<HydraManagement_apiStorageV1alpha1Filesstorage.ListReferencedByRequest, HydraManagement_apiStorageV1alpha1Filesstorage.ListReferencedByResponse>(`/apis/admin.hydra.io/v1alpha1/filesstorages/${req["name"]}/referencedby/${req["itemType"]}?${fm.renderURLSearchParams(req, ["name", "itemType"])}`, {...initReq, method: "GET"})
|
|
224
|
+
}
|
|
225
|
+
static ListPrePulls(req: ListPrePullsRequest, initReq?: fm.InitReq): Promise<ListPrePullsResponse> {
|
|
226
|
+
return fm.fetchReq<ListPrePullsRequest, ListPrePullsResponse>(`/apis/admin.hydra.io/v1alpha1/filesstorages/${req["storageName"]}/prepulls?${fm.renderURLSearchParams(req, ["storageName"])}`, {...initReq, method: "GET"})
|
|
227
|
+
}
|
|
228
|
+
static CreatePrePull(req: CreatePrePullRequest, initReq?: fm.InitReq): Promise<HydraManagement_apiStorageV1alpha1Filesstorage.PrePull> {
|
|
229
|
+
return fm.fetchReq<CreatePrePullRequest, HydraManagement_apiStorageV1alpha1Filesstorage.PrePull>(`/apis/admin.hydra.io/v1alpha1/filesstorages/${req["storageName"]}/prepulls`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
230
|
+
}
|
|
231
|
+
static UpdatePrePull(req: UpdatePrePullRequest, initReq?: fm.InitReq): Promise<HydraManagement_apiStorageV1alpha1Filesstorage.PrePull> {
|
|
232
|
+
return fm.fetchReq<UpdatePrePullRequest, HydraManagement_apiStorageV1alpha1Filesstorage.PrePull>(`/apis/admin.hydra.io/v1alpha1/filesstorages/${req["storageName"]}/prepulls/${req["prepullName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
233
|
+
}
|
|
234
|
+
static DeletePrePull(req: DeletePrePullRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
235
|
+
return fm.fetchReq<DeletePrePullRequest, GoogleProtobufEmpty.Empty>(`/apis/admin.hydra.io/v1alpha1/filesstorages/${req["storageName"]}/prepulls/${req["prepullName"]}`, {...initReq, method: "DELETE"})
|
|
236
|
+
}
|
|
237
|
+
static DatasetDoAction(req: PrePullActionRequest, initReq?: fm.InitReq): Promise<HydraManagement_apiStorageV1alpha1Filesstorage.PrePull> {
|
|
238
|
+
return fm.fetchReq<PrePullActionRequest, HydraManagement_apiStorageV1alpha1Filesstorage.PrePull>(`/apis/admin.hydra.io/v1alpha1/filesstorages/${req["storageName"]}/prepulls/${req["prepullName"]}/actions`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
239
|
+
}
|
|
240
|
+
static ListPrePullEvents(req: ListDatasetEventsRequest, initReq?: fm.InitReq): Promise<EventV1alpha1Event.ListEventsResponse> {
|
|
241
|
+
return fm.fetchReq<ListDatasetEventsRequest, EventV1alpha1Event.ListEventsResponse>(`/apis/admin.hydra.io/v1alpha1/filesstorages/${req["storageName"]}/prepulls/${req["prepullName"]}/events?${fm.renderURLSearchParams(req, ["storageName", "prepullName"])}`, {...initReq, method: "GET"})
|
|
242
|
+
}
|
|
243
|
+
static GetPrePullSyncProcess(req: SinglePrePullRequest, initReq?: fm.InitReq): Promise<HydraManagement_apiStorageV1alpha1Filesstorage.PrePullSyncProcess> {
|
|
244
|
+
return fm.fetchReq<SinglePrePullRequest, HydraManagement_apiStorageV1alpha1Filesstorage.PrePullSyncProcess>(`/apis/admin.hydra.io/v1alpha1/filesstorages/${req["storageName"]}/prepulls/${req["prepullName"]}/sync-process?${fm.renderURLSearchParams(req, ["storageName", "prepullName"])}`, {...initReq, method: "GET"})
|
|
245
|
+
}
|
|
246
|
+
static ValidateDataSourceSecrets(req: ValidateDataSourceSecretsRequest, initReq?: fm.InitReq): Promise<ValidateDataSourceSecretsResponse> {
|
|
247
|
+
return fm.fetchReq<ValidateDataSourceSecretsRequest, ValidateDataSourceSecretsResponse>(`/apis/admin.hydra.io/v1alpha1/filesstorages/validate-secrets`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
248
|
+
}
|
|
249
|
+
static GetPodInstanceList(req: HydraManagement_apiStorageV1alpha1Filesstorage.PodRequest, initReq?: fm.InitReq): Promise<HydraManagement_apiStorageV1alpha1Filesstorage.PodInstanceListResponse> {
|
|
250
|
+
return fm.fetchReq<HydraManagement_apiStorageV1alpha1Filesstorage.PodRequest, HydraManagement_apiStorageV1alpha1Filesstorage.PodInstanceListResponse>(`/apis/admin.hydra.io/v1alpha1/filesstorages/${req["storageName"]}/prepulls/${req["prepullName"]}/pods?${fm.renderURLSearchParams(req, ["storageName", "prepullName"])}`, {...initReq, method: "GET"})
|
|
251
|
+
}
|
|
252
|
+
static GetPrePull(req: GetPrePullRequest, initReq?: fm.InitReq): Promise<HydraManagement_apiStorageV1alpha1Filesstorage.PrePull> {
|
|
253
|
+
return fm.fetchReq<GetPrePullRequest, HydraManagement_apiStorageV1alpha1Filesstorage.PrePull>(`/apis/admin.hydra.io/v1alpha1/filesstorages/${req["storageName"]}/prepulls/${req["prepullName"]}?${fm.renderURLSearchParams(req, ["storageName", "prepullName"])}`, {...initReq, method: "GET"})
|
|
254
|
+
}
|
|
255
|
+
static CreateSFTPAccess(req: HydraManagement_apiStorageV1alpha1Filesstorage.CreateSFTPAccessRequest, initReq?: fm.InitReq): Promise<HydraManagement_apiStorageV1alpha1Filesstorage.SFTPAccessResponse> {
|
|
256
|
+
return fm.fetchReq<HydraManagement_apiStorageV1alpha1Filesstorage.CreateSFTPAccessRequest, HydraManagement_apiStorageV1alpha1Filesstorage.SFTPAccessResponse>(`/apis/hydra.io/v1alpha1/filesstorages/${req["storageName"]}/sftp-access`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
257
|
+
}
|
|
258
|
+
static GetSFTPAccess(req: HydraManagement_apiStorageV1alpha1Filesstorage.GetSFTPAccessRequest, initReq?: fm.InitReq): Promise<HydraManagement_apiStorageV1alpha1Filesstorage.SFTPAccessResponse> {
|
|
259
|
+
return fm.fetchReq<HydraManagement_apiStorageV1alpha1Filesstorage.GetSFTPAccessRequest, HydraManagement_apiStorageV1alpha1Filesstorage.SFTPAccessResponse>(`/apis/hydra.io/v1alpha1/filesstorages/${req["storageName"]}/sftp-access?${fm.renderURLSearchParams(req, ["storageName"])}`, {...initReq, method: "GET"})
|
|
260
|
+
}
|
|
261
|
+
}
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export enum DBType {
|
|
8
|
+
DB_TYPE_UNSPECIFIED = "DB_TYPE_UNSPECIFIED",
|
|
9
|
+
MYSQL = "MYSQL",
|
|
10
|
+
POSTGRESQL = "POSTGRESQL",
|
|
11
|
+
SQLITE = "SQLITE",
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export enum Mode {
|
|
15
|
+
MODE_UNSPECIFIED = "MODE_UNSPECIFIED",
|
|
16
|
+
CSP = "CSP",
|
|
17
|
+
WS = "WS",
|
|
18
|
+
Any = "Any",
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export enum NodePhase {
|
|
22
|
+
NODE_PHASE_UNSPECIFIED = "NODE_PHASE_UNSPECIFIED",
|
|
23
|
+
Ready = "Ready",
|
|
24
|
+
Not_Ready = "Not_Ready",
|
|
25
|
+
Unknown = "Unknown",
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export enum SearchIndexFieldBuilderType {
|
|
29
|
+
FIELD_TYPE_UNSPECIFIED = "FIELD_TYPE_UNSPECIFIED",
|
|
30
|
+
FILED = "FILED",
|
|
31
|
+
JSON_FILED_PATH = "JSON_FILED_PATH",
|
|
32
|
+
CONST = "CONST",
|
|
33
|
+
I18N_FIELD = "I18N_FIELD",
|
|
34
|
+
SUBQUERY = "SUBQUERY",
|
|
35
|
+
FUNC_REPLACE = "FUNC_REPLACE",
|
|
36
|
+
FUNC_CONCAT = "FUNC_CONCAT",
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type NoParamsQuery = {
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type Pagination = {
|
|
43
|
+
total?: number
|
|
44
|
+
page?: number
|
|
45
|
+
pageSize?: number
|
|
46
|
+
sort?: string
|
|
47
|
+
search?: string
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type I18nName = {
|
|
51
|
+
zhCn?: string
|
|
52
|
+
enUs?: string
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
export type SearchIndexFieldBuilderFuncCall = {
|
|
56
|
+
fields?: SearchIndexFieldBuilder[]
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type SearchIndexFieldBuilder = {
|
|
60
|
+
type?: SearchIndexFieldBuilderType
|
|
61
|
+
fieldName?: string
|
|
62
|
+
jsonFieldPath?: string[]
|
|
63
|
+
constValue?: string
|
|
64
|
+
funcCall?: SearchIndexFieldBuilderFuncCall
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export type SearchIndex = {
|
|
68
|
+
searchKey?: string
|
|
69
|
+
fieldBuilder?: SearchIndexFieldBuilder
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export type AuthResourceAction = {
|
|
73
|
+
resourceType?: string
|
|
74
|
+
action?: string
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type Auth = {
|
|
78
|
+
skipAuth?: boolean
|
|
79
|
+
user?: AuthResourceAction
|
|
80
|
+
operator?: AuthResourceAction
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export type AuditObject = {
|
|
84
|
+
nameKey?: string
|
|
85
|
+
namespaceKey?: string
|
|
86
|
+
clusterKey?: string
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export type AuditObjectKind = {
|
|
90
|
+
kindName?: string
|
|
91
|
+
kindGroup?: string
|
|
92
|
+
kindVersion?: string
|
|
93
|
+
kindKey?: string
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type Audit = {
|
|
97
|
+
object?: AuditObject
|
|
98
|
+
objectKind?: AuditObjectKind
|
|
99
|
+
action?: string
|
|
100
|
+
actionKey?: string
|
|
101
|
+
customObject?: boolean
|
|
102
|
+
extraExplainKeys?: string[]
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export type AuditObject = {
|
|
106
|
+
namespace?: string
|
|
107
|
+
name?: string
|
|
108
|
+
kind?: string
|
|
109
|
+
group?: string
|
|
110
|
+
version?: string
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export type Node = {
|
|
114
|
+
name?: string
|
|
115
|
+
arch?: string
|
|
116
|
+
labels?: {[key: string]: string}
|
|
117
|
+
gpuModels?: string[]
|
|
118
|
+
status?: NodeStatus
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export type NodeStatus = {
|
|
122
|
+
phase?: NodePhase
|
|
123
|
+
addresses?: NodeAddress[]
|
|
124
|
+
cpuCapacity?: string
|
|
125
|
+
cpuAllocated?: number
|
|
126
|
+
cpuUsage?: number
|
|
127
|
+
memoryCapacity?: string
|
|
128
|
+
memoryAllocated?: number
|
|
129
|
+
memoryUsage?: number
|
|
130
|
+
systemInfo?: NodeSystemInfo
|
|
131
|
+
allowedPodNumber?: number
|
|
132
|
+
podAllocated?: number
|
|
133
|
+
readyPodNumber?: number
|
|
134
|
+
storageCapacity?: string
|
|
135
|
+
storageAllocated?: string
|
|
136
|
+
storageUsage?: number
|
|
137
|
+
storageDriver?: string
|
|
138
|
+
gpuTotal?: string
|
|
139
|
+
gpuAllocated?: string
|
|
140
|
+
gpuMemoryTotal?: string
|
|
141
|
+
gpuMemoryAllocated?: string
|
|
142
|
+
gpuCoreUsage?: number
|
|
143
|
+
gpuMemoryUsage?: number
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export type NodeAddress = {
|
|
147
|
+
type?: string
|
|
148
|
+
address?: string
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export type NodeSystemInfo = {
|
|
152
|
+
kernelVersion?: string
|
|
153
|
+
osImage?: string
|
|
154
|
+
containerRuntimeVersion?: string
|
|
155
|
+
kubeletVersion?: string
|
|
156
|
+
kubeProxyVersion?: string
|
|
157
|
+
operatingSystem?: string
|
|
158
|
+
architecture?: string
|
|
159
|
+
}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
// auto generated by tools/gen-error-ts/main.go
|
|
2
|
+
export enum ErrorCode {
|
|
3
|
+
// EN: internal server error: %v
|
|
4
|
+
// ZH: 服务器内部错误: %v
|
|
5
|
+
SYSTEM_INTERNAL_ERROR = "SYSTEM-INTERNAL_ERROR",
|
|
6
|
+
// EN: metering system error: %v
|
|
7
|
+
// ZH: 计量系统错误:%v
|
|
8
|
+
SYSTEM_METERING_SYSTEM_ERROR = "SYSTEM-METERING_SYSTEM_ERROR",
|
|
9
|
+
// EN: resource not found: %v
|
|
10
|
+
// ZH: 资源未找到:%v
|
|
11
|
+
SYSTEM_NOT_FOUND_ERROR = "SYSTEM-NOT_FOUND_ERROR",
|
|
12
|
+
// EN: user is no real-name authentication
|
|
13
|
+
// ZH: 用户未实名认证
|
|
14
|
+
SYSTEM_NOT_VERIFIED_ERROR = "SYSTEM-NOT_VERIFIED_ERROR",
|
|
15
|
+
// EN: order system error: %v
|
|
16
|
+
// ZH: 订单系统错误:%v
|
|
17
|
+
SYSTEM_ORDER_SYSTEM_ERROR = "SYSTEM-ORDER_SYSTEM_ERROR",
|
|
18
|
+
// EN: user out of balance.
|
|
19
|
+
// ZH: 用户余额不足。
|
|
20
|
+
SYSTEM_OUT_OF_BALANCE = "SYSTEM-OUT_OF_BALANCE",
|
|
21
|
+
// EN: out of inventory, can not create.
|
|
22
|
+
// ZH: 库存不足,无法创建。
|
|
23
|
+
SYSTEM_OUT_OF_INVENTORY = "SYSTEM-OUT_OF_INVENTORY",
|
|
24
|
+
// EN: sub-account balance limit exceeded.
|
|
25
|
+
// ZH: 子账号可用额度不足。
|
|
26
|
+
SYSTEM_OUT_OF_VIRTUAL_BALANCE = "SYSTEM-OUT_OF_VIRTUAL_BALANCE",
|
|
27
|
+
// EN: request params error: %v
|
|
28
|
+
// ZH: 请求参数错误:%v
|
|
29
|
+
SYSTEM_PARAMS_ERROR = "SYSTEM-PARAMS_ERROR",
|
|
30
|
+
// EN: Request mode not match
|
|
31
|
+
// ZH: 请求模式不匹配。
|
|
32
|
+
SYSTEM_REQUEST_MODE_ERROR = "SYSTEM-REQUEST_MODE_ERROR",
|
|
33
|
+
// EN: Requested resource conflicted error: %v
|
|
34
|
+
// ZH: 请求的资源冲突错误:%v
|
|
35
|
+
USER_CONFLICT_ERROR = "USER-CONFLICT_ERROR",
|
|
36
|
+
// EN: Failed precondition error: %v
|
|
37
|
+
// ZH: 前置条件错误:%v
|
|
38
|
+
USER_FAILED_PRECONDITION_ERROR = "USER-FAILED_PRECONDITION_ERROR",
|
|
39
|
+
// EN: out of page: %v
|
|
40
|
+
// ZH: 分页错误:%v
|
|
41
|
+
USER_OUT_OF_PAGE = "USER-OUT_OF_PAGE",
|
|
42
|
+
// EN: permission denied: %v
|
|
43
|
+
// ZH: 拒绝访问:%v
|
|
44
|
+
USER_PERMISSION_DENIED = "USER-PERMISSION_DENIED",
|
|
45
|
+
// EN: unauthorized request
|
|
46
|
+
// ZH: 未授权的请求
|
|
47
|
+
USER_UNAUTHORIZED = "USER-UNAUTHORIZED",
|
|
48
|
+
}
|