@daocloud-proto/hydra 0.18.0-dev-28 → 0.18.0-dev-30

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.
@@ -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 GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"
10
+ import * as HydraManagement_apiStorageV1alpha1Pvc from "../../../management-api/storage/v1alpha1/pvc.pb"
10
11
  import * as HydraManagement_apiWorkspaceV1alpha1Workspace from "../../../management-api/workspace/v1alpha1/workspace.pb"
11
12
 
12
13
  export enum AdminPermission {
@@ -180,7 +181,7 @@ export type PersistentVolumeClaim = {
180
181
  name?: string
181
182
  namespace?: string
182
183
  storageClassName?: string
183
- phase?: string
184
+ phase?: HydraManagement_apiStorageV1alpha1Pvc.PersistentVolumeClaimPhase
184
185
  capacity?: string
185
186
  accessModes?: string[]
186
187
  createdAt?: string
@@ -191,6 +192,22 @@ export type AdminListPersistentVolumeClaimsResponse = {
191
192
  page?: HydraCommonCommon.Pagination
192
193
  }
193
194
 
195
+ export type AdminListNamespacesRequest = {
196
+ cluster?: string
197
+ page?: HydraCommonCommon.Pagination
198
+ }
199
+
200
+ export type NamespaceInfo = {
201
+ name?: string
202
+ status?: string
203
+ createdAt?: string
204
+ }
205
+
206
+ export type AdminListNamespacesResponse = {
207
+ items?: NamespaceInfo[]
208
+ page?: HydraCommonCommon.Pagination
209
+ }
210
+
194
211
  export class CoreService {
195
212
  static AdminListCluster(req: ListClusterRequest, initReq?: fm.InitReq): Promise<ListClusterResponse> {
196
213
  return fm.fetchReq<ListClusterRequest, ListClusterResponse>(`/apis/admin.hydra.io/v1alpha1/clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
@@ -216,6 +233,9 @@ export class CoreService {
216
233
  static AdminListPersistentVolumeClaims(req: AdminListPersistentVolumeClaimsRequest, initReq?: fm.InitReq): Promise<AdminListPersistentVolumeClaimsResponse> {
217
234
  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
235
  }
236
+ static AdminListNamespaces(req: AdminListNamespacesRequest, initReq?: fm.InitReq): Promise<AdminListNamespacesResponse> {
237
+ return fm.fetchReq<AdminListNamespacesRequest, AdminListNamespacesResponse>(`/apis/admin.hydra.io/v1alpha1/clusters/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
238
+ }
219
239
  static AdminListUsers(req: ListUsersRequest, initReq?: fm.InitReq): Promise<ListUsersResponse> {
220
240
  return fm.fetchReq<ListUsersRequest, ListUsersResponse>(`/apis/admin.hydra.io/v1alpha1/users?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
221
241
  }
@@ -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 = {
@@ -6,6 +6,14 @@
6
6
 
7
7
  import * as HydraCommonCommon from "../../../common/common.pb"
8
8
  import * as fm from "../../../fetch.pb"
9
+
10
+ export enum PersistentVolumeClaimPhase {
11
+ PERSISTENT_VOLUME_CLAIM_PHASE_UNSPECIFIED = "PERSISTENT_VOLUME_CLAIM_PHASE_UNSPECIFIED",
12
+ PERSISTENT_VOLUME_CLAIM_PHASE_PENDING = "PERSISTENT_VOLUME_CLAIM_PHASE_PENDING",
13
+ PERSISTENT_VOLUME_CLAIM_PHASE_BOUND = "PERSISTENT_VOLUME_CLAIM_PHASE_BOUND",
14
+ PERSISTENT_VOLUME_CLAIM_PHASE_LOST = "PERSISTENT_VOLUME_CLAIM_PHASE_LOST",
15
+ }
16
+
9
17
  export type ListWSPersistentVolumeClaimsRequest = {
10
18
  workspace?: number
11
19
  cluster?: string
@@ -17,7 +25,7 @@ export type PersistentVolumeClaim = {
17
25
  name?: string
18
26
  namespace?: string
19
27
  storageClassName?: string
20
- phase?: string
28
+ phase?: PersistentVolumeClaimPhase
21
29
  capacity?: string
22
30
  accessModes?: string[]
23
31
  createdAt?: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.18.0-dev-28",
3
+ "version": "v0.18.0-dev-30",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"