@daocloud-proto/kpanda 0.26.1 → 0.27.0-dev-8c62fcba
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.
|
@@ -35,7 +35,20 @@ export type BindResourceToWorkspaceResponse = {
|
|
|
35
35
|
export type UnbindResourceFromWorkspaceRequest = {
|
|
36
36
|
cluster?: string
|
|
37
37
|
name?: string
|
|
38
|
+
workspaceId?: number
|
|
39
|
+
workspaceAlias?: string
|
|
38
40
|
}
|
|
39
41
|
|
|
40
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}
|
|
41
54
|
}
|
|
@@ -914,11 +914,14 @@ export class Workspace {
|
|
|
914
914
|
return fm.fetchReq<KpandaIoApiGhippoV1alpha1Workspace.BindResourceToWorkspaceRequest, KpandaIoApiGhippoV1alpha1Workspace.BindResourceToWorkspaceResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["name"]}:bind`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
915
915
|
}
|
|
916
916
|
static UnbindResourceFromWorkspace(req: KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceResponse> {
|
|
917
|
-
return fm.fetchReq<KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceRequest, KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["name"]}:unbind`, {...initReq, method: "DELETE"})
|
|
917
|
+
return fm.fetchReq<KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceRequest, KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["name"]}:unbind`, {...initReq, method: "DELETE", body: JSON.stringify(req)})
|
|
918
918
|
}
|
|
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> {
|