@daocloud-proto/infery 0.0.0-dev-80114340 → 0.0.0-dev-3186c9a3
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.
|
@@ -68,24 +68,41 @@ export type ListClusterGPUTypesRequest = {
|
|
|
68
68
|
export type GPUType = {
|
|
69
69
|
type?: string
|
|
70
70
|
alias?: string
|
|
71
|
+
resource?: GPUResourceSetting[]
|
|
72
|
+
resourceTemplate?: GPUResourceSetting
|
|
73
|
+
isDynamic?: boolean
|
|
74
|
+
provider?: string
|
|
75
|
+
productKey?: string
|
|
76
|
+
products?: string[]
|
|
77
|
+
vendor?: string
|
|
71
78
|
}
|
|
72
79
|
|
|
73
|
-
export type
|
|
74
|
-
|
|
80
|
+
export type GPUResourceSetting = {
|
|
81
|
+
key?: string
|
|
82
|
+
alias?: string
|
|
83
|
+
isAllocatable?: boolean
|
|
84
|
+
description?: string
|
|
85
|
+
aliasZh?: string
|
|
86
|
+
range?: ResourceRange
|
|
87
|
+
available?: AvailableResource
|
|
88
|
+
type?: string
|
|
89
|
+
descriptionZh?: string
|
|
75
90
|
}
|
|
76
91
|
|
|
77
|
-
export type
|
|
78
|
-
|
|
79
|
-
|
|
92
|
+
export type AvailableResource = {
|
|
93
|
+
available?: string
|
|
94
|
+
errorMessage?: string
|
|
80
95
|
}
|
|
81
96
|
|
|
82
|
-
export type
|
|
83
|
-
|
|
84
|
-
|
|
97
|
+
export type ResourceRange = {
|
|
98
|
+
min?: number
|
|
99
|
+
minDesc?: string
|
|
100
|
+
max?: number
|
|
101
|
+
maxDesc?: string
|
|
85
102
|
}
|
|
86
103
|
|
|
87
|
-
export type
|
|
88
|
-
items?:
|
|
104
|
+
export type ListClusterGPUTypesResponse = {
|
|
105
|
+
items?: GPUType[]
|
|
89
106
|
}
|
|
90
107
|
|
|
91
108
|
export type ListClusterRDMANetworksRequest = {
|
|
@@ -182,9 +199,6 @@ export type ListConfigMapsResponse = {
|
|
|
182
199
|
}
|
|
183
200
|
|
|
184
201
|
export class WorkspaceService {
|
|
185
|
-
static ListClusterGPUVendors(req: ListClusterGPUVendorsRequest, initReq?: fm.InitReq): Promise<ListClusterGPUVendorsResponse> {
|
|
186
|
-
return fm.fetchReq<ListClusterGPUVendorsRequest, ListClusterGPUVendorsResponse>(`/apis/infery.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/gpu-vendors?${fm.renderURLSearchParams(req, ["workspace", "cluster"])}`, {...initReq, method: "GET"})
|
|
187
|
-
}
|
|
188
202
|
static ListClusterRDMANetworks(req: ListClusterRDMANetworksRequest, initReq?: fm.InitReq): Promise<ListClusterRDMANetworksResponse> {
|
|
189
203
|
return fm.fetchReq<ListClusterRDMANetworksRequest, ListClusterRDMANetworksResponse>(`/apis/infery.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/rdma-networks?${fm.renderURLSearchParams(req, ["workspace", "cluster"])}`, {...initReq, method: "GET"})
|
|
190
204
|
}
|