@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.
@@ -35,6 +35,8 @@ 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 = {
@@ -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"})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kpanda",
3
- "version":"v0.26.0-dev-a95d5dcc",
3
+ "version":"v0.26.0-dev-f16af05b",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {