@daocloud-proto/baize 0.101.0 → 0.101.1
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/common/common.pb.ts
CHANGED
|
@@ -65,6 +65,6 @@ export class ClusterService {
|
|
|
65
65
|
return fm.fetchReq<ListClusterNamespaceRequest, ListClusterNamespaceResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspace", "cluster"])}`, {...initReq, method: "GET"})
|
|
66
66
|
}
|
|
67
67
|
static ListPVCs(req: ListPVCsRequest, initReq?: fm.InitReq): Promise<ListPVCsResponse> {
|
|
68
|
-
return fm.fetchReq<ListPVCsRequest, ListPVCsResponse>(`/apis/baize.io/v1alpha1/
|
|
68
|
+
return fm.fetchReq<ListPVCsRequest, ListPVCsResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/pvcs?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
69
69
|
}
|
|
70
70
|
}
|
|
@@ -0,0 +1,33 @@
|
|
|
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 BaizeCommonCommon from "../../../common/common.pb"
|
|
8
|
+
import * as fm from "../../../fetch.pb"
|
|
9
|
+
export type ListDevicesGPUsRequest = {
|
|
10
|
+
page?: BaizeCommonCommon.Pagination
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type DeviceGPU = {
|
|
14
|
+
deviceUUID?: string
|
|
15
|
+
nodeIP?: string
|
|
16
|
+
cluster?: string
|
|
17
|
+
serialNumber?: string
|
|
18
|
+
modelName?: string
|
|
19
|
+
vendor?: string
|
|
20
|
+
totalFrameBufferMemory?: string
|
|
21
|
+
usedFrameBufferMemory?: string
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
export type ListDevicesGPUsResponse = {
|
|
25
|
+
items?: DeviceGPU[]
|
|
26
|
+
page?: BaizeCommonCommon.Pagination
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export class DeviceService {
|
|
30
|
+
static ListDevicesGPUs(req: ListDevicesGPUsRequest, initReq?: fm.InitReq): Promise<ListDevicesGPUsResponse> {
|
|
31
|
+
return fm.fetchReq<ListDevicesGPUsRequest, ListDevicesGPUsResponse>(`/apis/baize.io/v1alpha1/devices/gpus?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
32
|
+
}
|
|
33
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
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 BaizeCommonCommon from "../../../common/common.pb"
|
|
8
|
+
import * as fm from "../../../fetch.pb"
|
|
9
|
+
export type UserPermission = {
|
|
10
|
+
isBaizeOwner?: boolean
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export class PermissionService {
|
|
14
|
+
static GetCurrentUserPermission(req: BaizeCommonCommon.NoParamsQuery, initReq?: fm.InitReq): Promise<UserPermission> {
|
|
15
|
+
return fm.fetchReq<BaizeCommonCommon.NoParamsQuery, UserPermission>(`/apis/baize.io/v1alpha1/current-user/permission?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
16
|
+
}
|
|
17
|
+
}
|