@daocloud-proto/kpanda 0.26.2-dev-1364f929 → 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.
@@ -49,6 +49,8 @@ export type NamespaceStatus = {
49
49
  totalPodNumber?: number
50
50
  conditions?: KpandaIoApiTypesObjectmeta.Condition[]
51
51
  podSecurityEnabled?: boolean
52
+ cpuUsage?: number
53
+ memoryUsage?: number
52
54
  }
53
55
 
54
56
  export type NamespaceCondition = {
@@ -193,6 +193,7 @@ export type VerifySnapStoreConfigRequest = {
193
193
  secretAccessKey?: string
194
194
  bucket?: string
195
195
  endpoint?: string
196
+ region?: string
196
197
  }
197
198
 
198
199
  export type VerifySnapStoreConfigResponse = {
@@ -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> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kpanda",
3
- "version":"v0.26.2-dev-1364f929",
3
+ "version":"v0.27.0-dev-8c62fcba",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {