@daocloud-proto/kpanda 0.26.0-dev-5e1310ac → 0.26.0-dev-27c23a34
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.
|
@@ -40,4 +40,15 @@ export type UnbindResourceFromWorkspaceRequest = {
|
|
|
40
40
|
}
|
|
41
41
|
|
|
42
42
|
export type UnbindResourceFromWorkspaceResponse = {
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type GetWorkspaceSharedResourceQuotaRequest = {
|
|
46
|
+
workspaceId?: number
|
|
47
|
+
workspaceAlias?: string
|
|
48
|
+
cluster?: string
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export type GetWorkspaceSharedResourceQuotaResponse = {
|
|
52
|
+
setting?: {[key: string]: string}
|
|
53
|
+
allocatable?: {[key: string]: string}
|
|
43
54
|
}
|
|
@@ -919,6 +919,9 @@ export class Workspace {
|
|
|
919
919
|
static ListGlobalRolesForCurrentUser(req: KpandaIoApiGhippoV1alpha1Workspace.ListGlobalRolesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGhippoV1alpha1Workspace.ListGlobalRolesResponse> {
|
|
920
920
|
return fm.fetchReq<KpandaIoApiGhippoV1alpha1Workspace.ListGlobalRolesRequest, KpandaIoApiGhippoV1alpha1Workspace.ListGlobalRolesResponse>(`/apis/kpanda.io/v1alpha1/globalroles?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
921
921
|
}
|
|
922
|
+
static GetWorkspaceResourceQuotaAllocatable(req: KpandaIoApiGhippoV1alpha1Workspace.GetWorkspaceSharedResourceQuotaRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGhippoV1alpha1Workspace.GetWorkspaceSharedResourceQuotaResponse> {
|
|
923
|
+
return fm.fetchReq<KpandaIoApiGhippoV1alpha1Workspace.GetWorkspaceSharedResourceQuotaRequest, KpandaIoApiGhippoV1alpha1Workspace.GetWorkspaceSharedResourceQuotaResponse>(`/apis/kpanda.io/v1alpha1/workspaces/${req["workspaceId"]}/workspacesharedresourcequota?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
924
|
+
}
|
|
922
925
|
}
|
|
923
926
|
export class ClusterSetting {
|
|
924
927
|
static GetClusterSetting(req: KpandaIoApiClustersettingV1alpha1Clustersetting.GetClusterSettingRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClustersettingV1alpha1Clustersetting.ClusterSetting> {
|