@daocloud-proto/kpanda 0.26.0-dev-aaa1f388 → 0.26.0-dev-6320e59b
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.
|
@@ -6,8 +6,8 @@
|
|
|
6
6
|
|
|
7
7
|
import * as KpandaIoApiTypesObjectmeta from "../../types/objectmeta.pb"
|
|
8
8
|
|
|
9
|
-
export enum
|
|
10
|
-
|
|
9
|
+
export enum CloudShellType {
|
|
10
|
+
CLOUD_SHELL_TYPE_UNSPECIFIED = "CLOUD_SHELL_TYPE_UNSPECIFIED",
|
|
11
11
|
bash = "bash",
|
|
12
12
|
exec = "exec",
|
|
13
13
|
logs = "logs",
|
|
@@ -39,7 +39,7 @@ export type CloudShellStatus = {
|
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
export type CreateCloudShellRequest = {
|
|
42
|
-
type?:
|
|
42
|
+
type?: CloudShellType
|
|
43
43
|
cluster?: string
|
|
44
44
|
namespace?: string
|
|
45
45
|
podName?: string
|
|
@@ -49,6 +49,12 @@ export type CreateCloudShellRequest = {
|
|
|
49
49
|
data?: CloudShell
|
|
50
50
|
}
|
|
51
51
|
|
|
52
|
-
export type
|
|
52
|
+
export type GetCloudShellRequest = {
|
|
53
53
|
name?: string
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export type DeleteCloudShellRequest = {
|
|
57
|
+
name?: string
|
|
58
|
+
type?: CloudShellType
|
|
59
|
+
cluster?: string
|
|
54
60
|
}
|
|
@@ -941,11 +941,11 @@ export class CloudShell {
|
|
|
941
941
|
static CreateCloudShell(req: KpandaIoApiCloudshellV1alpha1Cloudshell.CreateCloudShellRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCloudshellV1alpha1Cloudshell.CloudShell> {
|
|
942
942
|
return fm.fetchReq<KpandaIoApiCloudshellV1alpha1Cloudshell.CreateCloudShellRequest, KpandaIoApiCloudshellV1alpha1Cloudshell.CloudShell>(`/apis/kpanda.io/v1alpha1/cloudshells`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
943
943
|
}
|
|
944
|
-
static GetCloudShell(req: KpandaIoApiCloudshellV1alpha1Cloudshell.
|
|
945
|
-
return fm.fetchReq<KpandaIoApiCloudshellV1alpha1Cloudshell.
|
|
944
|
+
static GetCloudShell(req: KpandaIoApiCloudshellV1alpha1Cloudshell.GetCloudShellRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCloudshellV1alpha1Cloudshell.CloudShell> {
|
|
945
|
+
return fm.fetchReq<KpandaIoApiCloudshellV1alpha1Cloudshell.GetCloudShellRequest, KpandaIoApiCloudshellV1alpha1Cloudshell.CloudShell>(`/apis/kpanda.io/v1alpha1/cloudshells/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
|
|
946
946
|
}
|
|
947
|
-
static DeleteCloudShell(req: KpandaIoApiCloudshellV1alpha1Cloudshell.
|
|
948
|
-
return fm.fetchReq<KpandaIoApiCloudshellV1alpha1Cloudshell.
|
|
947
|
+
static DeleteCloudShell(req: KpandaIoApiCloudshellV1alpha1Cloudshell.DeleteCloudShellRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
948
|
+
return fm.fetchReq<KpandaIoApiCloudshellV1alpha1Cloudshell.DeleteCloudShellRequest, GoogleProtobufEmpty.Empty>(`/apis/kpanda.io/v1alpha1/cloudshells/${req["name"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req)})
|
|
949
949
|
}
|
|
950
950
|
}
|
|
951
951
|
export class Clusterlcm {
|