@daocloud-proto/ghippo 0.8.4 → 0.8.5
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/package.json +1 -1
- package/v1alpha1/workspace.pb.ts +9 -19
package/package.json
CHANGED
package/v1alpha1/workspace.pb.ts
CHANGED
|
@@ -305,13 +305,16 @@ export type SetQuotaHardForWorkspaceResourceRequest = {
|
|
|
305
305
|
export type SetQuotaHardForWorkspaceResourceResponse = {
|
|
306
306
|
}
|
|
307
307
|
|
|
308
|
-
export type
|
|
308
|
+
export type GetWorkspaceResourceQuotaRequest = {
|
|
309
309
|
workspaceId?: number
|
|
310
|
-
|
|
310
|
+
resourceName?: string
|
|
311
|
+
resourceType?: string
|
|
311
312
|
}
|
|
312
313
|
|
|
313
|
-
export type
|
|
314
|
-
|
|
314
|
+
export type GetWorkspaceResourceQuotaResponse = {
|
|
315
|
+
setting?: {[key: string]: string}
|
|
316
|
+
allocatable?: {[key: string]: string}
|
|
317
|
+
used?: {[key: string]: string}
|
|
315
318
|
}
|
|
316
319
|
|
|
317
320
|
export type ListResourceQuotaTypesRequest = {
|
|
@@ -321,16 +324,6 @@ export type ListResourceQuotaTypesResponse = {
|
|
|
321
324
|
items?: string[]
|
|
322
325
|
}
|
|
323
326
|
|
|
324
|
-
export type GetWorkspaceResourceQuotaAllocatableRequest = {
|
|
325
|
-
workspaceId?: number
|
|
326
|
-
cluster?: string
|
|
327
|
-
}
|
|
328
|
-
|
|
329
|
-
export type GetWorkspaceResourceQuotaAllocatableResponse = {
|
|
330
|
-
setting?: {[key: string]: string}
|
|
331
|
-
allocatable?: {[key: string]: string}
|
|
332
|
-
}
|
|
333
|
-
|
|
334
327
|
export type UpdateQuotaCheckRequest = {
|
|
335
328
|
resourceName?: string
|
|
336
329
|
resourceType?: string
|
|
@@ -415,15 +408,12 @@ export class Workspace {
|
|
|
415
408
|
static SetQuotaHardForWorkspaceResource(req: SetQuotaHardForWorkspaceResourceRequest, initReq?: fm.InitReq): Promise<SetQuotaHardForWorkspaceResourceResponse> {
|
|
416
409
|
return fm.fetchReq<SetQuotaHardForWorkspaceResourceRequest, SetQuotaHardForWorkspaceResourceResponse>(`/apis/ghippo.io/v1alpha1/workspaceresource-quota-hard`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
417
410
|
}
|
|
418
|
-
static
|
|
419
|
-
return fm.fetchReq<
|
|
411
|
+
static GetWorkspaceResourceQuota(req: GetWorkspaceResourceQuotaRequest, initReq?: fm.InitReq): Promise<GetWorkspaceResourceQuotaResponse> {
|
|
412
|
+
return fm.fetchReq<GetWorkspaceResourceQuotaRequest, GetWorkspaceResourceQuotaResponse>(`/apis/ghippo.io/v1alpha1/workspaceresource-quota?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
420
413
|
}
|
|
421
414
|
static ListResourceQuotaTypes(req: ListResourceQuotaTypesRequest, initReq?: fm.InitReq): Promise<ListResourceQuotaTypesResponse> {
|
|
422
415
|
return fm.fetchReq<ListResourceQuotaTypesRequest, ListResourceQuotaTypesResponse>(`/apis/ghippo.io/v1alpha1/resourcequota-types?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
423
416
|
}
|
|
424
|
-
static GetWorkspaceResourceQuotaAllocatable(req: GetWorkspaceResourceQuotaAllocatableRequest, initReq?: fm.InitReq): Promise<GetWorkspaceResourceQuotaAllocatableResponse> {
|
|
425
|
-
return fm.fetchReq<GetWorkspaceResourceQuotaAllocatableRequest, GetWorkspaceResourceQuotaAllocatableResponse>(`/apis/ghippo.io/v1alpha1/workspaceresource-quota-allocatable?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
426
|
-
}
|
|
427
417
|
static UpdateQuotaCheck(req: UpdateQuotaCheckRequest, initReq?: fm.InitReq): Promise<UpdateQuotaCheckResponse> {
|
|
428
418
|
return fm.fetchReq<UpdateQuotaCheckRequest, UpdateQuotaCheckResponse>(`/apis/ghippo.io/v1alpha1/update-quota-check`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
429
419
|
}
|