@daocloud-proto/mcamel-rabbitmq 0.7.0-4 → 0.7.0-40

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.
@@ -0,0 +1,73 @@
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 CommonCommon from "./common.pb"
9
+ import * as fm from "./fetch.pb"
10
+
11
+ export enum CreateCloudShellRequestType {
12
+ TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
13
+ bash = "bash",
14
+ exec = "exec",
15
+ logs = "logs",
16
+ }
17
+
18
+ export type ObjectMeta = {
19
+ name?: string
20
+ namespace?: string
21
+ uid?: string
22
+ resourceVersion?: string
23
+ creationTimestamp?: string
24
+ deletionTimestamp?: string
25
+ labels?: {[key: string]: string}
26
+ annotations?: {[key: string]: string}
27
+ ownerReferences?: CommonCommon.OwnerReference[]
28
+ cluster?: string
29
+ workspaceAlias?: string
30
+ }
31
+
32
+ export type CloudShell = {
33
+ metadata?: ObjectMeta
34
+ spec?: CloudShellSpec
35
+ status?: CloudShellStatus
36
+ }
37
+
38
+ export type CloudShellSpec = {
39
+ configMapName?: string
40
+ once?: boolean
41
+ commandAction?: string
42
+ ttl?: number
43
+ cleanup?: boolean
44
+ }
45
+
46
+ export type CloudShellStatus = {
47
+ phase?: string
48
+ accessUrl?: string
49
+ }
50
+
51
+ export type CreateCloudShellRequest = {
52
+ type?: CreateCloudShellRequestType
53
+ cluster?: string
54
+ namespace?: string
55
+ podName?: string
56
+ data?: CloudShell
57
+ }
58
+
59
+ export type GetorDeleteCloudShellRequest = {
60
+ name?: string
61
+ }
62
+
63
+ export class CloudShellService {
64
+ static CreateCloudShell(req: CreateCloudShellRequest, initReq?: fm.InitReq): Promise<CloudShell> {
65
+ return fm.fetchReq<CreateCloudShellRequest, CloudShell>(`/apis/mcamel.io/rabbitmq/v1alpha1/cloudshells`, {...initReq, method: "POST", body: JSON.stringify(req)})
66
+ }
67
+ static GetCloudShell(req: GetorDeleteCloudShellRequest, initReq?: fm.InitReq): Promise<CloudShell> {
68
+ return fm.fetchReq<GetorDeleteCloudShellRequest, CloudShell>(`/apis/mcamel.io/rabbitmq/v1alpha1/cloudshells/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
69
+ }
70
+ static DeleteCloudShell(req: GetorDeleteCloudShellRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
71
+ return fm.fetchReq<GetorDeleteCloudShellRequest, GoogleProtobufEmpty.Empty>(`/apis/mcamel.io/rabbitmq/v1alpha1/cloudshells/${req["name"]}`, {...initReq, method: "DELETE"})
72
+ }
73
+ }
package/cluster.pb.ts CHANGED
@@ -56,6 +56,24 @@ export type EventSource = {
56
56
  host?: string
57
57
  }
58
58
 
59
+ export type GetMetallbIPAddressPoolsListReq = {
60
+ cluster?: string
61
+ }
62
+
63
+ export type GetMetallbIPAddressPoolsListRespItem = {
64
+ name?: string
65
+ addresses?: string[]
66
+ autoAssign?: boolean
67
+ avoidBuggyIPs?: boolean
68
+ }
69
+
70
+ export type GetMetallbIPAddressPoolsListResp = {
71
+ items?: GetMetallbIPAddressPoolsListRespItem[]
72
+ isSupportLb?: boolean
73
+ externalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy[]
74
+ lbTyp?: CommonCommon.LBTyp[]
75
+ }
76
+
59
77
  export type GetEventListReq = {
60
78
  cluster?: string
61
79
  namespace?: string
@@ -152,4 +170,7 @@ export class Cluster {
152
170
  static GetEventList(req: GetEventListReq, initReq?: fm.InitReq): Promise<GetEventListResp> {
153
171
  return fm.fetchReq<GetEventListReq, GetEventListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["cluster"]}/${req["namespace"]}/events?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
154
172
  }
173
+ static GetMetallbIPAddressPoolsList(req: GetMetallbIPAddressPoolsListReq, initReq?: fm.InitReq): Promise<GetMetallbIPAddressPoolsListResp> {
174
+ return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["cluster"]}/lbaddress/pools?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
175
+ }
155
176
  }
package/common.pb.ts CHANGED
@@ -4,6 +4,22 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
+ export enum ExternalTrafficPolicy {
8
+ Cluster = "Cluster",
9
+ Local = "Local",
10
+ }
11
+
12
+ export enum LBTyp {
13
+ MetlLB = "MetlLB",
14
+ Others = "Others",
15
+ }
16
+
17
+ export enum ServiceType {
18
+ ClusterIP = "ClusterIP",
19
+ NodePort = "NodePort",
20
+ LoadBalancer = "LoadBalancer",
21
+ }
22
+
7
23
  export enum PageInfoReqSortDir {
8
24
  ASC = "ASC",
9
25
  DESC = "DESC",
@@ -130,9 +146,19 @@ export type PodCommon = {
130
146
  memoryUsage?: number
131
147
  memoryLimit?: number
132
148
  conditions?: PodCommonCondition[]
149
+ containersName?: string[]
150
+ ownerReference?: OwnerReference[]
151
+ }
152
+
153
+ export type OwnerReference = {
154
+ uid?: string
155
+ controller?: boolean
156
+ name?: string
157
+ kind?: string
133
158
  }
134
159
 
135
160
  export type CommonItemStatus = {
136
161
  serviceAddresses?: string[]
137
162
  webManagerAddress?: string
163
+ webLogAddress?: string
138
164
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-rabbitmq",
3
- "version":"0.7.0-4",
3
+ "version":"0.7.0-40",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {