@daocloud-proto/kpanda 0.28.0-dev-ea050dea → 0.28.0-dev-1993b86e
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.
|
@@ -42,6 +42,24 @@ export type UnbindResourceFromWorkspaceRequest = {
|
|
|
42
42
|
export type UnbindResourceFromWorkspaceResponse = {
|
|
43
43
|
}
|
|
44
44
|
|
|
45
|
+
export type BindClusterToWorkspaceRequest = {
|
|
46
|
+
workspaceId?: number
|
|
47
|
+
workspaceAlias?: string
|
|
48
|
+
cluster?: string
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export type BindClusterToWorkspaceResponse = {
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export type UnBindClusterFromWorkspaceRequest = {
|
|
55
|
+
workspaceId?: number
|
|
56
|
+
workspaceAlias?: string
|
|
57
|
+
cluster?: string
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export type UnBindClusterFromWorkspaceResponse = {
|
|
61
|
+
}
|
|
62
|
+
|
|
45
63
|
export type GetWorkspaceSharedResourceQuotaRequest = {
|
|
46
64
|
workspaceId?: number
|
|
47
65
|
workspaceAlias?: string
|
|
@@ -917,6 +917,12 @@ export class Workspace {
|
|
|
917
917
|
static UnbindResourceFromWorkspace(req: KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceResponse> {
|
|
918
918
|
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)})
|
|
919
919
|
}
|
|
920
|
+
static BindClusterToWorkspace(req: KpandaIoApiGhippoV1alpha1Workspace.BindClusterToWorkspaceRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGhippoV1alpha1Workspace.BindClusterToWorkspaceResponse> {
|
|
921
|
+
return fm.fetchReq<KpandaIoApiGhippoV1alpha1Workspace.BindClusterToWorkspaceRequest, KpandaIoApiGhippoV1alpha1Workspace.BindClusterToWorkspaceResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}:bind`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
922
|
+
}
|
|
923
|
+
static UnBindClusterFromWorkspace(req: KpandaIoApiGhippoV1alpha1Workspace.UnBindClusterFromWorkspaceRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGhippoV1alpha1Workspace.UnBindClusterFromWorkspaceResponse> {
|
|
924
|
+
return fm.fetchReq<KpandaIoApiGhippoV1alpha1Workspace.UnBindClusterFromWorkspaceRequest, KpandaIoApiGhippoV1alpha1Workspace.UnBindClusterFromWorkspaceResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}:unbind`, {...initReq, method: "DELETE", body: JSON.stringify(req)})
|
|
925
|
+
}
|
|
920
926
|
static ListGlobalRolesForCurrentUser(req: KpandaIoApiGhippoV1alpha1Workspace.ListGlobalRolesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGhippoV1alpha1Workspace.ListGlobalRolesResponse> {
|
|
921
927
|
return fm.fetchReq<KpandaIoApiGhippoV1alpha1Workspace.ListGlobalRolesRequest, KpandaIoApiGhippoV1alpha1Workspace.ListGlobalRolesResponse>(`/apis/kpanda.io/v1alpha1/globalroles?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
922
928
|
}
|