@daocloud-proto/kpanda 0.11.2 → 0.11.3-11
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.
|
@@ -11,6 +11,8 @@ export enum CreateCloudShellRequestType {
|
|
|
11
11
|
bash = "bash",
|
|
12
12
|
exec = "exec",
|
|
13
13
|
logs = "logs",
|
|
14
|
+
upload = "upload",
|
|
15
|
+
download = "download",
|
|
14
16
|
}
|
|
15
17
|
|
|
16
18
|
export type CloudShell = {
|
|
@@ -37,8 +39,9 @@ export type CreateCloudShellRequest = {
|
|
|
37
39
|
cluster?: string
|
|
38
40
|
namespace?: string
|
|
39
41
|
podName?: string
|
|
40
|
-
|
|
42
|
+
filePath?: string
|
|
41
43
|
container?: string
|
|
44
|
+
data?: CloudShell
|
|
42
45
|
}
|
|
43
46
|
|
|
44
47
|
export type GetorDeleteCloudShellRequest = {
|
|
@@ -31,12 +31,4 @@ export type UnbindResourceFromWorkspaceRequest = {
|
|
|
31
31
|
}
|
|
32
32
|
|
|
33
33
|
export type UnbindResourceFromWorkspaceResponse = {
|
|
34
|
-
}
|
|
35
|
-
|
|
36
|
-
export type AddNamespaceToGProductRequest = {
|
|
37
|
-
cluster?: string
|
|
38
|
-
name?: string
|
|
39
|
-
}
|
|
40
|
-
|
|
41
|
-
export type AddNamespaceToGProductResponse = {
|
|
42
34
|
}
|
|
@@ -692,9 +692,6 @@ export class Workspace {
|
|
|
692
692
|
static UnbindResourceFromWorkspace(req: KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceResponse> {
|
|
693
693
|
return fm.fetchReq<KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceRequest, KpandaIoApiGhippoV1alpha1Workspace.UnbindResourceFromWorkspaceResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["name"]}:unbind`, {...initReq, method: "DELETE"})
|
|
694
694
|
}
|
|
695
|
-
static AddNamespaceToGProduct(req: KpandaIoApiGhippoV1alpha1Workspace.AddNamespaceToGProductRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGhippoV1alpha1Workspace.AddNamespaceToGProductResponse> {
|
|
696
|
-
return fm.fetchReq<KpandaIoApiGhippoV1alpha1Workspace.AddNamespaceToGProductRequest, KpandaIoApiGhippoV1alpha1Workspace.AddNamespaceToGProductResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["name"]}:add`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
697
|
-
}
|
|
698
695
|
}
|
|
699
696
|
export class ClusterSetting {
|
|
700
697
|
static GetClusterSetting(req: KpandaIoApiClustersettingV1alpha1Clustersetting.GetClusterSettingRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClustersettingV1alpha1Clustersetting.ClusterSetting> {
|