@daocloud-proto/hydra 0.11.0-dev-41 → 0.11.0-dev-44

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.
@@ -58,6 +58,7 @@ export type SingleModelWeightsVolumeRequest = {
58
58
  export type ListModelWeightsVolumesRequest = {
59
59
  modelId?: string
60
60
  page?: HydraCommonCommon.Pagination
61
+ clusterName?: string
61
62
  }
62
63
 
63
64
  export type ListModelWeightsVolumesResponse = {
@@ -219,6 +219,9 @@ export class AdminFilesStorageService {
219
219
  static CreateFolder(req: CreateFolderRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
220
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
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
+ }
222
225
  static ListPrePulls(req: ListPrePullsRequest, initReq?: fm.InitReq): Promise<ListPrePullsResponse> {
223
226
  return fm.fetchReq<ListPrePullsRequest, ListPrePullsResponse>(`/apis/admin.hydra.io/v1alpha1/filesstorages/${req["storageName"]}/prepulls?${fm.renderURLSearchParams(req, ["storageName"])}`, {...initReq, method: "GET"})
224
227
  }
@@ -62,6 +62,7 @@ export type ListWSModelWeightsVolumesRequest = {
62
62
  workspace?: number
63
63
  modelId?: string
64
64
  page?: HydraCommonCommon.Pagination
65
+ clusterName?: string
65
66
  }
66
67
 
67
68
  export type ListWSModelWeightsVolumesResponse = {
@@ -26,6 +26,12 @@ export enum PvcPhase {
26
26
  PvcPhasePending = "PvcPhasePending",
27
27
  PvcPhaseLost = "PvcPhaseLost",
28
28
  PvcPhaseFailed = "PvcPhaseFailed",
29
+ PvcPhaseDeleting = "PvcPhaseDeleting",
30
+ }
31
+
32
+ export enum ListReferencedByRequestItemType {
33
+ model = "model",
34
+ dataset = "dataset",
29
35
  }
30
36
 
31
37
  export enum DataSourceType {
@@ -176,6 +182,21 @@ export type DeleteFileRequest = {
176
182
  path?: string
177
183
  }
178
184
 
185
+ export type ListReferencedByRequest = {
186
+ workspace?: number
187
+ name?: string
188
+ itemType?: ListReferencedByRequestItemType
189
+ }
190
+
191
+ export type ListReferencedByResponseReferencedItem = {
192
+ id?: string
193
+ name?: string
194
+ }
195
+
196
+ export type ListReferencedByResponse = {
197
+ items?: ListReferencedByResponseReferencedItem[]
198
+ }
199
+
179
200
  export type DataSource = {
180
201
  type?: DataSourceType
181
202
  uri?: string
@@ -432,6 +453,9 @@ export class WSFilesStorageService {
432
453
  static CreateWSFolder(req: CreateFolderRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
433
454
  return fm.fetchReq<CreateFolderRequest, GoogleProtobufEmpty.Empty>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/filesstorages/${req["name"]}/folders/${req["folderName"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
434
455
  }
456
+ static ListWSReferencedBy(req: ListReferencedByRequest, initReq?: fm.InitReq): Promise<ListReferencedByResponse> {
457
+ return fm.fetchReq<ListReferencedByRequest, ListReferencedByResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/filesstorages/${req["name"]}/referencedby/${req["itemType"]}?${fm.renderURLSearchParams(req, ["workspace", "name", "itemType"])}`, {...initReq, method: "GET"})
458
+ }
435
459
  static WSListPrePulls(req: ListPrePullsRequest, initReq?: fm.InitReq): Promise<ListPrePullsResponse> {
436
460
  return fm.fetchReq<ListPrePullsRequest, ListPrePullsResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/filesstorages/${req["storageName"]}/prepulls?${fm.renderURLSearchParams(req, ["workspace", "storageName"])}`, {...initReq, method: "GET"})
437
461
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.11.0-dev-41",
3
+ "version": "v0.11.0-dev-44",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"