@daocloud-proto/kpanda 0.22.0-dev-481466a8 → 0.22.0-dev-e1d95f1a

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.
@@ -20,6 +20,7 @@ export enum PluginName {
20
20
  Hwameistor = "Hwameistor",
21
21
  Flannel = "Flannel",
22
22
  KubeOvn = "KubeOvn",
23
+ Kolm = "Kolm",
23
24
  }
24
25
 
25
26
  export type Plugin = {
@@ -15,6 +15,13 @@ export type ListWorkspacesResponse = {
15
15
  workspaces?: WorkspaceInfo[]
16
16
  }
17
17
 
18
+ export type ListGlobalRolesRequest = {
19
+ }
20
+
21
+ export type ListGlobalRolesResponse = {
22
+ roles?: string[]
23
+ }
24
+
18
25
  export type BindResourceToWorkspaceRequest = {
19
26
  workspaceId?: number
20
27
  workspaceAlias?: string
@@ -19,4 +19,12 @@ export type GPUResourceSetting = {
19
19
  isAllocatable?: boolean
20
20
  description?: string
21
21
  aliasZh?: string
22
+ range?: ResourceRange
23
+ }
24
+
25
+ export type ResourceRange = {
26
+ min?: number
27
+ minDesc?: string
28
+ max?: number
29
+ maxDesc?: string
22
30
  }
@@ -841,6 +841,9 @@ export class Workspace {
841
841
  static UnbindResourceFromWorkspace(req: KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceResponse> {
842
842
  return fm.fetchReq<KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceRequest, KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["name"]}:unbind`, {...initReq, method: "DELETE"})
843
843
  }
844
+ static ListGlobalRolesForCurrentUser(req: KpandaIoApiGhippoV1alpha1Workspace.ListGlobalRolesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGhippoV1alpha1Workspace.ListGlobalRolesResponse> {
845
+ return fm.fetchReq<KpandaIoApiGhippoV1alpha1Workspace.ListGlobalRolesRequest, KpandaIoApiGhippoV1alpha1Workspace.ListGlobalRolesResponse>(`/apis/kpanda.io/v1alpha1/globalroles?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
846
+ }
844
847
  }
845
848
  export class ClusterSetting {
846
849
  static GetClusterSetting(req: KpandaIoApiClustersettingV1alpha1Clustersetting.GetClusterSettingRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClustersettingV1alpha1Clustersetting.ClusterSetting> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kpanda",
3
- "version":"v0.22.0-dev-481466a8",
3
+ "version":"v0.22.0-dev-e1d95f1a",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {