@daocloud-proto/mcamel-postgresql 0.0.2-653 → 0.0.2-656

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 +40 -0
  2. package/package.json +1 -1
package/cluster.pb.ts CHANGED
@@ -40,6 +40,12 @@ export enum EventType {
40
40
  Warning = "Warning",
41
41
  }
42
42
 
43
+ export enum GetClusterNodeTaintListRespTaintEffect {
44
+ NoSchedule = "NoSchedule",
45
+ PreferNoSchedule = "PreferNoSchedule",
46
+ NoExecute = "NoExecute",
47
+ }
48
+
43
49
  export enum InstallFileReqGVR {
44
50
  None = "None",
45
51
  CustomResourceDefinition = "CustomResourceDefinition",
@@ -90,6 +96,34 @@ export enum GetInsightAgentStatusRespInsightAgentStatus {
90
96
  Install = "Install",
91
97
  }
92
98
 
99
+ export type GetClusterNodeTaintListReq = {
100
+ cluster?: string
101
+ nodeName?: string
102
+ }
103
+
104
+ export type GetClusterNodeTaintListRespTaint = {
105
+ key?: string
106
+ value?: string
107
+ effect?: GetClusterNodeTaintListRespTaintEffect
108
+ nodeName?: string
109
+ }
110
+
111
+ export type GetClusterNodeTaintListResp = {
112
+ items?: GetClusterNodeTaintListRespTaint[]
113
+ }
114
+
115
+ export type GetClusterNodeListReq = {
116
+ cluster?: string
117
+ }
118
+
119
+ export type GetClusterNodeListRespNode = {
120
+ name?: string
121
+ }
122
+
123
+ export type GetClusterNodeListResp = {
124
+ items?: GetClusterNodeListRespNode[]
125
+ }
126
+
93
127
  export type GetClusterReq = {
94
128
  workspaceId?: number
95
129
  name?: string
@@ -512,4 +546,10 @@ export class Cluster {
512
546
  static GetResourceQuota(req: GetResourceQuotaReq, initReq?: fm.InitReq): Promise<GetResourceQuotaResp> {
513
547
  return fm.fetchReq<GetResourceQuotaReq, GetResourceQuotaResp>(`/apis/mcamel.io/postgresql/v1alpha2/${req["cluster"]}/${req["namespace"]}/resourcequota?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
514
548
  }
549
+ static GetClusterNodeTaintList(req: GetClusterNodeTaintListReq, initReq?: fm.InitReq): Promise<GetClusterNodeTaintListResp> {
550
+ return fm.fetchReq<GetClusterNodeTaintListReq, GetClusterNodeTaintListResp>(`/apis/mcamel.io/postgresql/v1alpha2/clusters/${req["cluster"]}/nodes/taints?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
551
+ }
552
+ static GetClusterNodeList(req: GetClusterNodeListReq, initReq?: fm.InitReq): Promise<GetClusterNodeListResp> {
553
+ return fm.fetchReq<GetClusterNodeListReq, GetClusterNodeListResp>(`/apis/mcamel.io/postgresql/v1alpha2/clusters/${req["cluster"]}/nodes?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
554
+ }
515
555
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-postgresql",
3
- "version":"0.0.2-653",
3
+ "version":"0.0.2-656",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {