@daocloud-proto/kpanda 0.26.0-dev-a95d5dcc → 0.26.0-dev-f16af05b
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.
|
@@ -914,7 +914,7 @@ 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"})
|