@daocloud-proto/mcamel-mysql 0.5.0-49 → 0.5.0-50

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.
Files changed (2) hide show
  1. package/cloudshell.pb.ts +79 -0
  2. package/package.json +1 -1
@@ -0,0 +1,79 @@
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 GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"
8
+ import * as fm from "./fetch.pb"
9
+
10
+ export enum CreateCloudShellRequestType {
11
+ TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
12
+ bash = "bash",
13
+ exec = "exec",
14
+ logs = "logs",
15
+ }
16
+
17
+ export type OwnerReference = {
18
+ uid?: string
19
+ controller?: boolean
20
+ name?: string
21
+ kind?: string
22
+ }
23
+
24
+ export type ObjectMeta = {
25
+ name?: string
26
+ namespace?: string
27
+ uid?: string
28
+ resourceVersion?: string
29
+ creationTimestamp?: string
30
+ deletionTimestamp?: string
31
+ labels?: {[key: string]: string}
32
+ annotations?: {[key: string]: string}
33
+ ownerReferences?: OwnerReference[]
34
+ cluster?: string
35
+ workspaceAlias?: string
36
+ }
37
+
38
+ export type CloudShell = {
39
+ metadata?: ObjectMeta
40
+ spec?: CloudShellSpec
41
+ status?: CloudShellStatus
42
+ }
43
+
44
+ export type CloudShellSpec = {
45
+ configMapName?: string
46
+ once?: boolean
47
+ commandAction?: string
48
+ ttl?: number
49
+ cleanup?: boolean
50
+ }
51
+
52
+ export type CloudShellStatus = {
53
+ phase?: string
54
+ accessUrl?: string
55
+ }
56
+
57
+ export type CreateCloudShellRequest = {
58
+ type?: CreateCloudShellRequestType
59
+ cluster?: string
60
+ namespace?: string
61
+ podName?: string
62
+ data?: CloudShell
63
+ }
64
+
65
+ export type GetorDeleteCloudShellRequest = {
66
+ name?: string
67
+ }
68
+
69
+ export class CloudShellService {
70
+ static CreateCloudShell(req: CreateCloudShellRequest, initReq?: fm.InitReq): Promise<CloudShell> {
71
+ return fm.fetchReq<CreateCloudShellRequest, CloudShell>(`/apis/mcamel.io/mysql/v1alpha1/cloudshells`, {...initReq, method: "POST", body: JSON.stringify(req)})
72
+ }
73
+ static GetCloudShell(req: GetorDeleteCloudShellRequest, initReq?: fm.InitReq): Promise<CloudShell> {
74
+ return fm.fetchReq<GetorDeleteCloudShellRequest, CloudShell>(`/apis/mcamel.io/mysql/v1alpha1/cloudshells/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
75
+ }
76
+ static DeleteCloudShell(req: GetorDeleteCloudShellRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
77
+ return fm.fetchReq<GetorDeleteCloudShellRequest, GoogleProtobufEmpty.Empty>(`/apis/mcamel.io/mysql/v1alpha1/cloudshells/${req["name"]}`, {...initReq, method: "DELETE"})
78
+ }
79
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-mysql",
3
- "version":"0.5.0-49",
3
+ "version":"0.5.0-50",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {