@daocloud-proto/kairship 0.0.8-10 → 0.0.8-8

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.
@@ -7,7 +7,6 @@
7
7
  import * as fm from "../../../fetch.pb"
8
8
  import * as GoogleProtobufEmpty from "../../../google/api/empty.pb"
9
9
  import * as KairshipIoApiAppsV1alpha1Deployment from "../apps/v1alpha1/deployment.pb"
10
- import * as KairshipIoApiCloudshellV1alpha1Cloudshell from "../cloudshell/v1alpha1/cloudshell.pb"
11
10
  import * as KairshipIoApiClusterV1alpha1Cluster from "../cluster/v1alpha1/cluster.pb"
12
11
  import * as KairshipIoApiCoreV1alpha1Namespace from "../core/v1alpha1/namespace.pb"
13
12
  import * as KairshipIoApiCoreV1alpha1Service from "../core/v1alpha1/service.pb"
@@ -149,15 +148,4 @@ export class Instance {
149
148
  static ListInstances(req: KairshipIoApiInstanceV1alpha1Instance.ListInstanceRequest, initReq?: fm.InitReq): Promise<KairshipIoApiInstanceV1alpha1Instance.ListInstanceResponse> {
150
149
  return fm.fetchReq<KairshipIoApiInstanceV1alpha1Instance.ListInstanceRequest, KairshipIoApiInstanceV1alpha1Instance.ListInstanceResponse>(`/apis/kairship.io/v1alpha1/instances?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
151
150
  }
152
- }
153
- export class CloudShell {
154
- static CreateCloudShell(req: KairshipIoApiCloudshellV1alpha1Cloudshell.CreateCloudShellRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCloudshellV1alpha1Cloudshell.CloudShell> {
155
- return fm.fetchReq<KairshipIoApiCloudshellV1alpha1Cloudshell.CreateCloudShellRequest, KairshipIoApiCloudshellV1alpha1Cloudshell.CloudShell>(`/apis/kairship.io/v1alpha1/cloudshells`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
156
- }
157
- static GetCloudShell(req: KairshipIoApiCloudshellV1alpha1Cloudshell.GetorDeleteCloudShellRequest, initReq?: fm.InitReq): Promise<KairshipIoApiCloudshellV1alpha1Cloudshell.CloudShell> {
158
- return fm.fetchReq<KairshipIoApiCloudshellV1alpha1Cloudshell.GetorDeleteCloudShellRequest, KairshipIoApiCloudshellV1alpha1Cloudshell.CloudShell>(`/apis/kairship.io/v1alpha1/cloudshells/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
159
- }
160
- static DeleteCloudShell(req: KairshipIoApiCloudshellV1alpha1Cloudshell.GetorDeleteCloudShellRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
161
- return fm.fetchReq<KairshipIoApiCloudshellV1alpha1Cloudshell.GetorDeleteCloudShellRequest, GoogleProtobufEmpty.Empty>(`/apis/kairship.io/v1alpha1/cloudshells/${req["name"]}`, {...initReq, method: "DELETE"})
162
- }
163
151
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kairship",
3
- "version":"0.0.8-10",
3
+ "version":"0.0.8-8",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -1,33 +0,0 @@
1
- /* eslint-disable */
2
- // @ts-nocheck
3
- /*
4
- * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
- */
6
-
7
- import * as KairshipIoApiTypesObjectmeta from "../../types/objectmeta.pb"
8
- export type CloudShell = {
9
- metadata?: KairshipIoApiTypesObjectmeta.ObjectMeta
10
- spec?: CloudShellSpec
11
- status?: CloudShellStatus
12
- }
13
-
14
- export type CloudShellSpec = {
15
- commandAction?: string
16
- once?: boolean
17
- ttl?: number
18
- cleanup?: boolean
19
- }
20
-
21
- export type CloudShellStatus = {
22
- phase?: string
23
- accessUrl?: string
24
- }
25
-
26
- export type CreateCloudShellRequest = {
27
- instance?: string
28
- data?: CloudShell
29
- }
30
-
31
- export type GetorDeleteCloudShellRequest = {
32
- name?: string
33
- }