@daocloud-proto/mcamel-mongodb 0.1.0-rc1-9 → 0.2.0-rc2-1

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
@@ -7,6 +7,26 @@
7
7
  import * as CommonCommon from "./common.pb"
8
8
  import * as fm from "./fetch.pb"
9
9
 
10
+ export enum PermissionsType {
11
+ None = "None",
12
+ GetInstance = "GetInstance",
13
+ CreateInstance = "CreateInstance",
14
+ UpdateInstance = "UpdateInstance",
15
+ DeleteInstance = "DeleteInstance",
16
+ GetMetric = "GetMetric",
17
+ GetInstanceLog = "GetInstanceLog",
18
+ GetConfig = "GetConfig",
19
+ UpdateConfig = "UpdateConfig",
20
+ GetBackup = "GetBackup",
21
+ CreateBackup = "CreateBackup",
22
+ UpdateBackup = "UpdateBackup",
23
+ DeleteBackup = "DeleteBackup",
24
+ GetBackupConf = "GetBackupConf",
25
+ CreateBackupConf = "CreateBackupConf",
26
+ UpdateBackupConf = "UpdateBackupConf",
27
+ DeleteBackupConf = "DeleteBackupConf",
28
+ }
29
+
10
30
  export enum EventType {
11
31
  EVENT_TYPE_UNSPECIFIED = "EVENT_TYPE_UNSPECIFIED",
12
32
  Normal = "Normal",
@@ -33,6 +53,34 @@ export enum GetInsightAgentStatusRespInsightAgentStatus {
33
53
  Install = "Install",
34
54
  }
35
55
 
56
+ export type GetPermissionsListReq = {
57
+ workspaceId?: number
58
+ }
59
+
60
+ export type GetPermissionsListRespPermissions = {
61
+ getInstance?: boolean
62
+ createInstance?: boolean
63
+ updateInstance?: boolean
64
+ deleteInstance?: boolean
65
+ getMetric?: boolean
66
+ getInstanceLog?: boolean
67
+ getConfig?: boolean
68
+ updateConfig?: boolean
69
+ getBackup?: boolean
70
+ createBackup?: boolean
71
+ updateBackup?: boolean
72
+ deleteBackup?: boolean
73
+ getBackupConf?: boolean
74
+ createBackupConf?: boolean
75
+ updateBackupConf?: boolean
76
+ deleteBackupConf?: boolean
77
+ }
78
+
79
+ export type GetPermissionsListResp = {
80
+ permissionsBool?: GetPermissionsListRespPermissions
81
+ permissions?: PermissionsType[]
82
+ }
83
+
36
84
  export type GetAllEventKindsListResp = {
37
85
  data?: string[]
38
86
  }
@@ -111,6 +159,24 @@ export type GetClusterNodeLabelListResp = {
111
159
  pagination?: CommonCommon.Pagination
112
160
  }
113
161
 
162
+ export type GetClusterPodLabelListReq = {
163
+ page?: number
164
+ pageSize?: number
165
+ searchKey?: string
166
+ filterNamespace?: string
167
+ cluster?: string
168
+ }
169
+
170
+ export type GetClusterPodLabelListRespLabel = {
171
+ key?: string
172
+ value?: string[]
173
+ }
174
+
175
+ export type GetClusterPodLabelListResp = {
176
+ items?: GetClusterPodLabelListRespLabel[]
177
+ pagination?: CommonCommon.Pagination
178
+ }
179
+
114
180
  export type GetClusterNodePortListReq = {
115
181
  cluster?: string
116
182
  }
@@ -230,6 +296,9 @@ export class Cluster {
230
296
  static GetClusterNodeLabelList(req: GetClusterNodeLabelListReq, initReq?: fm.InitReq): Promise<GetClusterNodeLabelListResp> {
231
297
  return fm.fetchReq<GetClusterNodeLabelListReq, GetClusterNodeLabelListResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["cluster"]}/nodelabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
232
298
  }
299
+ static GetClusterPodLabelList(req: GetClusterPodLabelListReq, initReq?: fm.InitReq): Promise<GetClusterPodLabelListResp> {
300
+ return fm.fetchReq<GetClusterPodLabelListReq, GetClusterPodLabelListResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["cluster"]}/podlabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
301
+ }
233
302
  static GetWorkspaceList(req: GetWorkspaceListReq, initReq?: fm.InitReq): Promise<GetWorkspaceListResp> {
234
303
  return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/mongodb/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
235
304
  }
@@ -248,4 +317,7 @@ export class Cluster {
248
317
  static GetMetallbIPAddressPoolsList(req: GetMetallbIPAddressPoolsListReq, initReq?: fm.InitReq): Promise<GetMetallbIPAddressPoolsListResp> {
249
318
  return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["cluster"]}/lbaddress/pools?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
250
319
  }
320
+ static GetPermissionsList(req: GetPermissionsListReq, initReq?: fm.InitReq): Promise<GetPermissionsListResp> {
321
+ return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/mongodb/v1alpha1/${req["workspaceId"]}/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
322
+ }
251
323
  }
package/common.pb.ts CHANGED
@@ -151,6 +151,7 @@ export type PodCommon = {
151
151
  containersName?: string[]
152
152
  ownerReference?: OwnerReference[]
153
153
  initContainersName?: string[]
154
+ initContainersStatuses?: ContainerStatus[]
154
155
  }
155
156
 
156
157
  export type OwnerReference = {
@@ -164,7 +165,50 @@ export type CommonItemStatus = {
164
165
  serviceAddresses?: string[]
165
166
  webManagerAddress?: string
166
167
  webLogAddress?: string
167
- isHwameistorSc?: boolean
168
168
  avgPvAllocatedInGb?: number
169
169
  avgPvUsedInGb?: number
170
+ }
171
+
172
+ export type AccessWhitelistInternal = {
173
+ namespace?: string
174
+ podSelector?: {[key: string]: string}
175
+ }
176
+
177
+ export type AccessWhitelistExternal = {
178
+ cidr?: string
179
+ ip?: string
180
+ }
181
+
182
+ export type AccessWhitelist = {
183
+ internals?: AccessWhitelistInternal[]
184
+ externals?: AccessWhitelistExternal[]
185
+ }
186
+
187
+ export type ContainerStatus = {
188
+ name?: string
189
+ state?: ContainerState
190
+ }
191
+
192
+ export type ContainerState = {
193
+ waiting?: ContainerStateWaiting
194
+ running?: ContainerStateRunning
195
+ terminated?: ContainerStateTerminated
196
+ }
197
+
198
+ export type ContainerStateWaiting = {
199
+ reason?: string
200
+ message?: string
201
+ }
202
+
203
+ export type ContainerStateRunning = {
204
+ startedAt?: string
205
+ }
206
+
207
+ export type ContainerStateTerminated = {
208
+ exitCode?: number
209
+ signal?: number
210
+ reason?: string
211
+ message?: string
212
+ startedAt?: string
213
+ finishedAt?: string
170
214
  }
package/mongodb.pb.ts CHANGED
@@ -138,6 +138,8 @@ export type CreateMongodbReq = {
138
138
  conf?: string
139
139
  serviceMonitorInterval?: string
140
140
  affinity?: CommonCommon.Affinity
141
+ oplogStorageClassName?: string
142
+ oplogStorageCapacity?: string
141
143
  externalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy
142
144
  lbTyp?: CommonCommon.LBTyp
143
145
  lbPoolName?: string
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-mongodb",
3
- "version":"0.1.0-rc1-9",
3
+ "version":"0.2.0-rc2-1",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {