@daocloud-proto/hydra 0.18.0-dev-21 → 0.18.0-dev-23

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.
@@ -26,6 +26,8 @@ export type WSModelWeightsVolume = {
26
26
  creationTimestamp?: GoogleProtobufTimestamp.Timestamp
27
27
  updateTimestamp?: GoogleProtobufTimestamp.Timestamp
28
28
  referenced?: boolean
29
+ pvcNamespace?: string
30
+ pvcName?: string
29
31
  }
30
32
 
31
33
  export type CreateWSModelWeightsVolumeRequest = {
@@ -38,6 +40,8 @@ export type CreateWSModelWeightsVolumeRequest = {
38
40
  storageRef?: string
39
41
  subPath?: string
40
42
  mountPath?: string
43
+ pvcNamespace?: string
44
+ pvcName?: string
41
45
  }
42
46
 
43
47
  export type UpdateWSModelWeightsVolumeRequest = {
@@ -50,6 +54,8 @@ export type UpdateWSModelWeightsVolumeRequest = {
50
54
  storageRef?: string
51
55
  subPath?: string
52
56
  mountPath?: string
57
+ pvcNamespace?: string
58
+ pvcName?: string
53
59
  }
54
60
 
55
61
  export type SingleWSModelWeightsVolumeRequest = {
@@ -0,0 +1,34 @@
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
+ export type ListWSPersistentVolumeClaimsRequest = {
10
+ workspace?: number
11
+ cluster?: string
12
+ page?: HydraCommonCommon.Pagination
13
+ }
14
+
15
+ export type PersistentVolumeClaim = {
16
+ name?: string
17
+ namespace?: string
18
+ storageClassName?: string
19
+ phase?: string
20
+ capacity?: string
21
+ accessModes?: string[]
22
+ createdAt?: string
23
+ }
24
+
25
+ export type ListWSPersistentVolumeClaimsResponse = {
26
+ items?: PersistentVolumeClaim[]
27
+ page?: HydraCommonCommon.Pagination
28
+ }
29
+
30
+ export class WSPersistentVolumeClaimService {
31
+ static ListWSPersistentVolumeClaims(req: ListWSPersistentVolumeClaimsRequest, initReq?: fm.InitReq): Promise<ListWSPersistentVolumeClaimsResponse> {
32
+ return fm.fetchReq<ListWSPersistentVolumeClaimsRequest, ListWSPersistentVolumeClaimsResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/persistentvolumeclaims?${fm.renderURLSearchParams(req, ["workspace", "cluster"])}`, {...initReq, method: "GET"})
33
+ }
34
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/hydra",
3
- "version": "v0.18.0-dev-21",
3
+ "version": "v0.18.0-dev-23",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "license": "ISC"