@daocloud-proto/mcamel-postgresql 0.0.2-34 → 0.0.2-35

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/cluster.pb.ts +12 -10
  2. package/package.json +1 -1
package/cluster.pb.ts CHANGED
@@ -20,17 +20,7 @@ export enum GetAllEventListReqSortDir {
20
20
 
21
21
  export enum GetEventListReqKind {
22
22
  KIND_UNSPECIFIED = "KIND_UNSPECIFIED",
23
- Deployment = "Deployment",
24
- StatefulSet = "StatefulSet",
25
- DaemonSet = "DaemonSet",
26
23
  Pod = "Pod",
27
- Service = "Service",
28
- Ingress = "Ingress",
29
- Job = "Job",
30
- CronJob = "CronJob",
31
- HorizontalPodAutoscaler = "HorizontalPodAutoscaler",
32
- ReplicaSet = "ReplicaSet",
33
- CronHPA = "CronHPA",
34
24
  }
35
25
 
36
26
  export enum GetWorkspaceListReqSortDir {
@@ -43,6 +33,14 @@ export enum GetInsightAgentStatusRespInsightAgentStatus {
43
33
  Install = "Install",
44
34
  }
45
35
 
36
+ export type GetAllEventKindsListResp = {
37
+ data?: string[]
38
+ }
39
+
40
+ export type GetAllEventKindsListReq = {
41
+ cluster?: string
42
+ }
43
+
46
44
  export type GetAllEventListReq = {
47
45
  page?: number
48
46
  pageSize?: number
@@ -53,6 +51,7 @@ export type GetAllEventListReq = {
53
51
  namespace?: string
54
52
  name?: string
55
53
  eventType?: EventType
54
+ kindName?: string
56
55
  }
57
56
 
58
57
  export type GetAllEventListRespItemsSource = {
@@ -243,6 +242,9 @@ export class Cluster {
243
242
  static GetAllEventList(req: GetAllEventListReq, initReq?: fm.InitReq): Promise<GetAllEventListResp> {
244
243
  return fm.fetchReq<GetAllEventListReq, GetAllEventListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["cluster"]}/${req["namespace"]}/${req["name"]}/all-events?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
245
244
  }
245
+ static GetAllEventKindsList(req: GetAllEventKindsListReq, initReq?: fm.InitReq): Promise<GetAllEventKindsListResp> {
246
+ return fm.fetchReq<GetAllEventKindsListReq, GetAllEventKindsListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["cluster"]}/all-events-kinds?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
247
+ }
246
248
  static GetMetallbIPAddressPoolsList(req: GetMetallbIPAddressPoolsListReq, initReq?: fm.InitReq): Promise<GetMetallbIPAddressPoolsListResp> {
247
249
  return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["cluster"]}/lbaddress/pools?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
248
250
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-postgresql",
3
- "version":"0.0.2-34",
3
+ "version":"0.0.2-35",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {