@daocloud-proto/mcamel-redis 0.3.1-16 → 0.3.1-19

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 +17 -0
  2. package/package.json +1 -1
package/cluster.pb.ts CHANGED
@@ -28,6 +28,20 @@ export enum GetInsightAgentStatusRespInsightAgentStatus {
28
28
  Install = "Install",
29
29
  }
30
30
 
31
+ export type GetClusterNodeLabelListReq = {
32
+ cluster?: string
33
+ }
34
+
35
+ export type GetClusterNodeLabelListRespLabel = {
36
+ key?: string
37
+ value?: string[]
38
+ }
39
+
40
+ export type GetClusterNodeLabelListResp = {
41
+ items?: GetClusterNodeLabelListRespLabel[]
42
+ pagination?: CommonCommon.Pagination
43
+ }
44
+
31
45
  export type GetClusterNodePortListReq = {
32
46
  cluster?: string
33
47
  }
@@ -126,6 +140,9 @@ export class Cluster {
126
140
  static GetClusterNodePortList(req: GetClusterNodePortListReq, initReq?: fm.InitReq): Promise<GetClusterNodePortListResp> {
127
141
  return fm.fetchReq<GetClusterNodePortListReq, GetClusterNodePortListResp>(`/apis/mcamel.io/redis/v1alpha1/${req["cluster"]}/nodeports?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
128
142
  }
143
+ static GetClusterNodeLabelList(req: GetClusterNodeLabelListReq, initReq?: fm.InitReq): Promise<GetClusterNodeLabelListResp> {
144
+ return fm.fetchReq<GetClusterNodeLabelListReq, GetClusterNodeLabelListResp>(`/apis/mcamel.io/redis/v1alpha1/${req["cluster"]}/nodelabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
145
+ }
129
146
  static GetWorkspaceList(req: GetWorkspaceListReq, initReq?: fm.InitReq): Promise<GetWorkspaceListResp> {
130
147
  return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/redis/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
131
148
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-redis",
3
- "version":"0.3.1-16",
3
+ "version":"0.3.1-19",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {