@daocloud-proto/mcamel-postgresql 0.0.2-185 → 0.0.2-188

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.
package/cluster.pb.ts CHANGED
@@ -33,6 +33,29 @@ export enum GetInsightAgentStatusRespInsightAgentStatus {
33
33
  Install = "Install",
34
34
  }
35
35
 
36
+ export type GetPermissionsListReq = {
37
+ workspaceId?: number
38
+ }
39
+
40
+ export type GetPermissionsListResp = {
41
+ getInstance?: boolean
42
+ createInstance?: boolean
43
+ updateInstance?: boolean
44
+ deleteInstance?: boolean
45
+ getMetric?: boolean
46
+ getInstanceLog?: boolean
47
+ getConfig?: boolean
48
+ updateConfig?: boolean
49
+ getBackup?: boolean
50
+ createBackup?: boolean
51
+ updateBackup?: boolean
52
+ deleteBackup?: boolean
53
+ getBackupConf?: boolean
54
+ createBackupConf?: boolean
55
+ updateBackupConf?: boolean
56
+ deleteBackupConf?: boolean
57
+ }
58
+
36
59
  export type GetAllEventKindsListResp = {
37
60
  data?: string[]
38
61
  }
@@ -115,6 +138,7 @@ export type GetClusterPodLabelListReq = {
115
138
  page?: number
116
139
  pageSize?: number
117
140
  searchKey?: string
141
+ filterNamespace?: string
118
142
  cluster?: string
119
143
  }
120
144
 
@@ -268,4 +292,7 @@ export class Cluster {
268
292
  static GetMetallbIPAddressPoolsList(req: GetMetallbIPAddressPoolsListReq, initReq?: fm.InitReq): Promise<GetMetallbIPAddressPoolsListResp> {
269
293
  return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["cluster"]}/lbaddress/pools?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
270
294
  }
295
+ static GetPermissionsList(req: GetPermissionsListReq, initReq?: fm.InitReq): Promise<GetPermissionsListResp> {
296
+ return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/postgresql/v1alpha1/${req["workspaceId"]}/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
297
+ }
271
298
  }
package/common.pb.ts CHANGED
@@ -164,7 +164,21 @@ export type CommonItemStatus = {
164
164
  serviceAddresses?: string[]
165
165
  webManagerAddress?: string
166
166
  webLogAddress?: string
167
- isHwameistorSc?: boolean
168
167
  avgPvAllocatedInGb?: number
169
168
  avgPvUsedInGb?: number
169
+ }
170
+
171
+ export type AccessWhitelistInternal = {
172
+ namespace?: string
173
+ podSelector?: {[key: string]: string}
174
+ }
175
+
176
+ export type AccessWhitelistExternal = {
177
+ cidr?: string
178
+ ip?: string
179
+ }
180
+
181
+ export type AccessWhitelist = {
182
+ internals?: AccessWhitelistInternal[]
183
+ externals?: AccessWhitelistExternal[]
170
184
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-postgresql",
3
- "version":"0.0.2-185",
3
+ "version":"0.0.2-188",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {