@daocloud-proto/hydra 0.18.0-dev-28 → 0.18.0-dev-29
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.
|
@@ -191,6 +191,22 @@ export type AdminListPersistentVolumeClaimsResponse = {
|
|
|
191
191
|
page?: HydraCommonCommon.Pagination
|
|
192
192
|
}
|
|
193
193
|
|
|
194
|
+
export type AdminListNamespacesRequest = {
|
|
195
|
+
cluster?: string
|
|
196
|
+
page?: HydraCommonCommon.Pagination
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export type NamespaceInfo = {
|
|
200
|
+
name?: string
|
|
201
|
+
status?: string
|
|
202
|
+
createdAt?: string
|
|
203
|
+
}
|
|
204
|
+
|
|
205
|
+
export type AdminListNamespacesResponse = {
|
|
206
|
+
items?: NamespaceInfo[]
|
|
207
|
+
page?: HydraCommonCommon.Pagination
|
|
208
|
+
}
|
|
209
|
+
|
|
194
210
|
export class CoreService {
|
|
195
211
|
static AdminListCluster(req: ListClusterRequest, initReq?: fm.InitReq): Promise<ListClusterResponse> {
|
|
196
212
|
return fm.fetchReq<ListClusterRequest, ListClusterResponse>(`/apis/admin.hydra.io/v1alpha1/clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -216,6 +232,9 @@ export class CoreService {
|
|
|
216
232
|
static AdminListPersistentVolumeClaims(req: AdminListPersistentVolumeClaimsRequest, initReq?: fm.InitReq): Promise<AdminListPersistentVolumeClaimsResponse> {
|
|
217
233
|
return fm.fetchReq<AdminListPersistentVolumeClaimsRequest, AdminListPersistentVolumeClaimsResponse>(`/apis/admin.hydra.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/persistentvolumeclaims?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
218
234
|
}
|
|
235
|
+
static AdminListNamespaces(req: AdminListNamespacesRequest, initReq?: fm.InitReq): Promise<AdminListNamespacesResponse> {
|
|
236
|
+
return fm.fetchReq<AdminListNamespacesRequest, AdminListNamespacesResponse>(`/apis/admin.hydra.io/v1alpha1/clusters/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
237
|
+
}
|
|
219
238
|
static AdminListUsers(req: ListUsersRequest, initReq?: fm.InitReq): Promise<ListUsersResponse> {
|
|
220
239
|
return fm.fetchReq<ListUsersRequest, ListUsersResponse>(`/apis/admin.hydra.io/v1alpha1/users?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
221
240
|
}
|
|
@@ -8,6 +8,7 @@ import * as HydraCommonCommon from "../../../common/common.pb"
|
|
|
8
8
|
import * as fm from "../../../fetch.pb"
|
|
9
9
|
import * as GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"
|
|
10
10
|
import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
|
|
11
|
+
import * as HydraManagement_apiModelV1alpha1Model_weights_volume from "../../model/v1alpha1/model_weights_volume.pb"
|
|
11
12
|
import * as HydraManagement_apiFinetuneV1alpha1Common from "./common.pb"
|
|
12
13
|
|
|
13
14
|
export enum ExportDevice {
|
|
@@ -30,6 +31,9 @@ export type ExportJob = {
|
|
|
30
31
|
status?: HydraManagement_apiFinetuneV1alpha1Common.JobStatus
|
|
31
32
|
reason?: string
|
|
32
33
|
creationTime?: GoogleProtobufTimestamp.Timestamp
|
|
34
|
+
pvcNamespace?: string
|
|
35
|
+
pvcName?: string
|
|
36
|
+
storageSource?: HydraManagement_apiModelV1alpha1Model_weights_volume.StorageSourceType
|
|
33
37
|
}
|
|
34
38
|
|
|
35
39
|
export type SaveExportJobRequest = {
|
|
@@ -44,6 +48,9 @@ export type SaveExportJobRequest = {
|
|
|
44
48
|
exportSize?: number
|
|
45
49
|
exportDevice?: ExportDevice
|
|
46
50
|
exportLegacyFormat?: boolean
|
|
51
|
+
pvcNamespace?: string
|
|
52
|
+
pvcName?: string
|
|
53
|
+
storageSource?: HydraManagement_apiModelV1alpha1Model_weights_volume.StorageSourceType
|
|
47
54
|
}
|
|
48
55
|
|
|
49
56
|
export type SingleExportJobRequest = {
|
|
@@ -7,6 +7,7 @@
|
|
|
7
7
|
import * as HydraCommonCommon from "../../../common/common.pb"
|
|
8
8
|
import * as fm from "../../../fetch.pb"
|
|
9
9
|
import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
|
|
10
|
+
import * as HydraManagement_apiModelV1alpha1Model_weights_volume from "../../model/v1alpha1/model_weights_volume.pb"
|
|
10
11
|
|
|
11
12
|
export enum TrainingStage {
|
|
12
13
|
TRAINING_STAGE_UNSPECIFIED = "TRAINING_STAGE_UNSPECIFIED",
|
|
@@ -119,6 +120,9 @@ export type TrainingConfig = {
|
|
|
119
120
|
loggingSteps?: number
|
|
120
121
|
saveSteps?: number
|
|
121
122
|
outputSubPath?: string
|
|
123
|
+
outputPvcNamespace?: string
|
|
124
|
+
outputPvcName?: string
|
|
125
|
+
storageSource?: HydraManagement_apiModelV1alpha1Model_weights_volume.StorageSourceType
|
|
122
126
|
}
|
|
123
127
|
|
|
124
128
|
export type DpoConfig = {
|