@daocloud-proto/kpanda 0.26.0-dev-aaa1f388 → 0.26.0-dev-3587ad9f

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 CreateCloudShellRequestType {
10
- TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
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?: CreateCloudShellRequestType
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 GetorDeleteCloudShellRequest = {
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.GetorDeleteCloudShellRequest, initReq?: fm.InitReq): Promise<KpandaIoApiCloudshellV1alpha1Cloudshell.CloudShell> {
945
- return fm.fetchReq<KpandaIoApiCloudshellV1alpha1Cloudshell.GetorDeleteCloudShellRequest, KpandaIoApiCloudshellV1alpha1Cloudshell.CloudShell>(`/apis/kpanda.io/v1alpha1/cloudshells/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
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.GetorDeleteCloudShellRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
948
- return fm.fetchReq<KpandaIoApiCloudshellV1alpha1Cloudshell.GetorDeleteCloudShellRequest, GoogleProtobufEmpty.Empty>(`/apis/kpanda.io/v1alpha1/cloudshells/${req["name"]}`, {...initReq, method: "DELETE"})
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 {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kpanda",
3
- "version":"v0.26.0-dev-aaa1f388",
3
+ "version":"v0.26.0-dev-3587ad9f",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {