@daocloud-proto/mcamel-minio 0.2.0-41 → 0.2.0-412

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/cloudshell.pb.ts CHANGED
@@ -5,6 +5,7 @@
5
5
  */
6
6
 
7
7
  import * as GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"
8
+ import * as CommonCommon from "./common.pb"
8
9
  import * as fm from "./fetch.pb"
9
10
 
10
11
  export enum CreateCloudShellRequestType {
@@ -12,13 +13,8 @@ export enum CreateCloudShellRequestType {
12
13
  bash = "bash",
13
14
  exec = "exec",
14
15
  logs = "logs",
15
- }
16
-
17
- export type OwnerReference = {
18
- uid?: string
19
- controller?: boolean
20
- name?: string
21
- kind?: string
16
+ upload = "upload",
17
+ download = "download",
22
18
  }
23
19
 
24
20
  export type ObjectMeta = {
@@ -30,7 +26,7 @@ export type ObjectMeta = {
30
26
  deletionTimestamp?: string
31
27
  labels?: {[key: string]: string}
32
28
  annotations?: {[key: string]: string}
33
- ownerReferences?: OwnerReference[]
29
+ ownerReferences?: CommonCommon.OwnerReference[]
34
30
  cluster?: string
35
31
  workspaceAlias?: string
36
32
  }
@@ -59,6 +55,9 @@ export type CreateCloudShellRequest = {
59
55
  cluster?: string
60
56
  namespace?: string
61
57
  podName?: string
58
+ filePath?: string
59
+ container?: string
60
+ logCount?: number
62
61
  data?: CloudShell
63
62
  }
64
63
 
package/cluster.pb.ts CHANGED
@@ -7,12 +7,41 @@
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
+ GetTemplate = "GetTemplate",
29
+ CreateTemplate = "CreateTemplate",
30
+ UpdateTemplate = "UpdateTemplate",
31
+ DeleteTemplate = "DeleteTemplate",
32
+ }
33
+
10
34
  export enum EventType {
11
35
  EVENT_TYPE_UNSPECIFIED = "EVENT_TYPE_UNSPECIFIED",
12
36
  Normal = "Normal",
13
37
  Warning = "Warning",
14
38
  }
15
39
 
40
+ export enum GetAllEventListReqSortDir {
41
+ ASC = "ASC",
42
+ DESC = "DESC",
43
+ }
44
+
16
45
  export enum GetEventListReqKind {
17
46
  KIND_UNSPECIFIED = "KIND_UNSPECIFIED",
18
47
  Pod = "Pod",
@@ -23,11 +52,145 @@ export enum GetWorkspaceListReqSortDir {
23
52
  DESC = "DESC",
24
53
  }
25
54
 
55
+ export enum ClusterItemNetworkMode {
56
+ Unknown = "Unknown",
57
+ Flannel = "Flannel",
58
+ Calico = "Calico",
59
+ }
60
+
26
61
  export enum GetInsightAgentStatusRespInsightAgentStatus {
27
62
  NotInstall = "NotInstall",
28
63
  Install = "Install",
29
64
  }
30
65
 
66
+ export type GetInstallVersionReq = {
67
+ cluster?: string
68
+ }
69
+
70
+ export type GetInstallVersionRespSupportVersion = {
71
+ minVersion?: string
72
+ maxVersion?: string
73
+ }
74
+
75
+ export type GetInstallVersionRespStatus = {
76
+ inRange?: boolean
77
+ }
78
+
79
+ export type GetInstallVersionResp = {
80
+ clusterVersion?: string
81
+ supportVersion?: GetInstallVersionRespSupportVersion
82
+ status?: GetInstallVersionRespStatus
83
+ }
84
+
85
+ export type RestartInstanceReq = {
86
+ workspaceId?: number
87
+ cluster?: string
88
+ namespace?: string
89
+ name?: string
90
+ extra?: string
91
+ instanceType?: string
92
+ }
93
+
94
+ export type RestartInstanceResp = {
95
+ message?: string
96
+ }
97
+
98
+ export type GetPermissionsListReq = {
99
+ workspaceId?: number
100
+ }
101
+
102
+ export type GetPermissionsListRespPermissions = {
103
+ getInstance?: boolean
104
+ createInstance?: boolean
105
+ updateInstance?: boolean
106
+ deleteInstance?: boolean
107
+ getMetric?: boolean
108
+ getInstanceLog?: boolean
109
+ getConfig?: boolean
110
+ updateConfig?: boolean
111
+ getBackup?: boolean
112
+ createBackup?: boolean
113
+ updateBackup?: boolean
114
+ deleteBackup?: boolean
115
+ getBackupConf?: boolean
116
+ createBackupConf?: boolean
117
+ updateBackupConf?: boolean
118
+ deleteBackupConf?: boolean
119
+ getTemplate?: boolean
120
+ createTemplate?: boolean
121
+ updateTemplate?: boolean
122
+ deleteTemplate?: boolean
123
+ }
124
+
125
+ export type GetPermissionsListResp = {
126
+ permissionsBool?: GetPermissionsListRespPermissions
127
+ permissions?: PermissionsType[]
128
+ }
129
+
130
+ export type GetAllEventKindsListResp = {
131
+ data?: string[]
132
+ }
133
+
134
+ export type GetAllEventKindsListReq = {
135
+ cluster?: string
136
+ }
137
+
138
+ export type GetAllEventListReq = {
139
+ page?: number
140
+ pageSize?: number
141
+ sortDir?: GetAllEventListReqSortDir
142
+ sortBy?: string
143
+ searchKey?: string
144
+ cluster?: string
145
+ namespace?: string
146
+ name?: string
147
+ eventType?: EventType
148
+ kindName?: string
149
+ }
150
+
151
+ export type GetAllEventListRespItemsSource = {
152
+ component?: string
153
+ }
154
+
155
+ export type GetAllEventListRespItemsMetadata = {
156
+ uid?: string
157
+ name?: string
158
+ namespace?: string
159
+ annotations?: {[key: string]: string}
160
+ resourceVersion?: string
161
+ creationTimestamp?: string
162
+ }
163
+
164
+ export type GetAllEventListRespItemsInvolvedObject = {
165
+ uid?: string
166
+ kind?: string
167
+ name?: string
168
+ namespace?: string
169
+ apiVersion?: string
170
+ resourceVersion?: string
171
+ }
172
+
173
+ export type GetAllEventListRespItems = {
174
+ kind?: string
175
+ type?: string
176
+ count?: number
177
+ reason?: string
178
+ source?: GetAllEventListRespItemsSource
179
+ message?: string
180
+ metadata?: GetAllEventListRespItemsMetadata
181
+ apiVersion?: string
182
+ lastTimestamp?: string
183
+ firstTimestamp?: string
184
+ involvedObject?: GetAllEventListRespItemsInvolvedObject
185
+ reportingInstance?: string
186
+ reportingComponent?: string
187
+ }
188
+
189
+ export type GetAllEventListResp = {
190
+ items?: GetAllEventListRespItems[]
191
+ pagination?: CommonCommon.Pagination
192
+ }
193
+
31
194
  export type GetClusterNodeLabelListReq = {
32
195
  cluster?: string
33
196
  }
@@ -42,6 +205,24 @@ export type GetClusterNodeLabelListResp = {
42
205
  pagination?: CommonCommon.Pagination
43
206
  }
44
207
 
208
+ export type GetClusterPodLabelListReq = {
209
+ page?: number
210
+ pageSize?: number
211
+ searchKey?: string
212
+ filterNamespace?: string
213
+ cluster?: string
214
+ }
215
+
216
+ export type GetClusterPodLabelListRespLabel = {
217
+ key?: string
218
+ value?: string[]
219
+ }
220
+
221
+ export type GetClusterPodLabelListResp = {
222
+ items?: GetClusterPodLabelListRespLabel[]
223
+ pagination?: CommonCommon.Pagination
224
+ }
225
+
45
226
  export type GetClusterNodePortListReq = {
46
227
  cluster?: string
47
228
  }
@@ -56,6 +237,24 @@ export type EventSource = {
56
237
  host?: string
57
238
  }
58
239
 
240
+ export type GetMetallbIPAddressPoolsListReq = {
241
+ cluster?: string
242
+ }
243
+
244
+ export type GetMetallbIPAddressPoolsListRespItem = {
245
+ name?: string
246
+ addresses?: string[]
247
+ autoAssign?: boolean
248
+ avoidBuggyIPs?: boolean
249
+ }
250
+
251
+ export type GetMetallbIPAddressPoolsListResp = {
252
+ items?: GetMetallbIPAddressPoolsListRespItem[]
253
+ isSupportLb?: boolean
254
+ externalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy[]
255
+ lbTyp?: CommonCommon.LBTyp[]
256
+ }
257
+
59
258
  export type GetEventListReq = {
60
259
  cluster?: string
61
260
  namespace?: string
@@ -96,6 +295,7 @@ export type GetWorkspaceListReq = {
96
295
  export type GetWorkspaceListRespItem = {
97
296
  workspaceId?: number
98
297
  alias?: string
298
+ visible?: boolean
99
299
  }
100
300
 
101
301
  export type GetWorkspaceListResp = {
@@ -103,15 +303,39 @@ export type GetWorkspaceListResp = {
103
303
  pagination?: CommonCommon.Pagination
104
304
  }
105
305
 
306
+ export type GetClusterHostnetworkPortsReq = {
307
+ workspaceId?: number
308
+ cluster?: string
309
+ }
310
+
106
311
  export type GetClusterListReq = {
107
312
  workspaceId?: number
313
+ searchKey?: string
314
+ }
315
+
316
+ export type GetClusterHostnetworkPortsResp = {
317
+ items?: string[]
108
318
  }
109
319
 
110
320
  export type GetClusterListResp = {
111
321
  items?: string[]
322
+ clusters?: ClusterItem[]
112
323
  pagination?: CommonCommon.Pagination
113
324
  }
114
325
 
326
+ export type ClusterItemMetadata = {
327
+ name?: string
328
+ }
329
+
330
+ export type ClusterItemStatus = {
331
+ networkMode?: ClusterItemNetworkMode[]
332
+ }
333
+
334
+ export type ClusterItem = {
335
+ metadata?: ClusterItemMetadata
336
+ status?: ClusterItemStatus
337
+ }
338
+
115
339
  export type GetClusterNamespaceListReq = {
116
340
  workspaceId?: number
117
341
  cluster?: string
@@ -134,6 +358,9 @@ export class Cluster {
134
358
  static GetClusterList(req: GetClusterListReq, initReq?: fm.InitReq): Promise<GetClusterListResp> {
135
359
  return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
136
360
  }
361
+ static GetClusterHostnetworkPorts(req: GetClusterHostnetworkPortsReq, initReq?: fm.InitReq): Promise<GetClusterHostnetworkPortsResp> {
362
+ return fm.fetchReq<GetClusterHostnetworkPortsReq, GetClusterHostnetworkPortsResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/hostnetwork_ports?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
363
+ }
137
364
  static GetClusterNamespaceList(req: GetClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetClusterNamespaceListResp> {
138
365
  return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
139
366
  }
@@ -143,6 +370,9 @@ export class Cluster {
143
370
  static GetClusterNodeLabelList(req: GetClusterNodeLabelListReq, initReq?: fm.InitReq): Promise<GetClusterNodeLabelListResp> {
144
371
  return fm.fetchReq<GetClusterNodeLabelListReq, GetClusterNodeLabelListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}/nodelabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
145
372
  }
373
+ static GetClusterPodLabelList(req: GetClusterPodLabelListReq, initReq?: fm.InitReq): Promise<GetClusterPodLabelListResp> {
374
+ return fm.fetchReq<GetClusterPodLabelListReq, GetClusterPodLabelListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}/podlabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
375
+ }
146
376
  static GetWorkspaceList(req: GetWorkspaceListReq, initReq?: fm.InitReq): Promise<GetWorkspaceListResp> {
147
377
  return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/minio/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
148
378
  }
@@ -152,4 +382,22 @@ export class Cluster {
152
382
  static GetEventList(req: GetEventListReq, initReq?: fm.InitReq): Promise<GetEventListResp> {
153
383
  return fm.fetchReq<GetEventListReq, GetEventListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}/${req["namespace"]}/events?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
154
384
  }
385
+ static GetAllEventList(req: GetAllEventListReq, initReq?: fm.InitReq): Promise<GetAllEventListResp> {
386
+ return fm.fetchReq<GetAllEventListReq, GetAllEventListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}/${req["namespace"]}/${req["name"]}/all-events?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
387
+ }
388
+ static GetAllEventKindsList(req: GetAllEventKindsListReq, initReq?: fm.InitReq): Promise<GetAllEventKindsListResp> {
389
+ return fm.fetchReq<GetAllEventKindsListReq, GetAllEventKindsListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}/all-events-kinds?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
390
+ }
391
+ static GetMetallbIPAddressPoolsList(req: GetMetallbIPAddressPoolsListReq, initReq?: fm.InitReq): Promise<GetMetallbIPAddressPoolsListResp> {
392
+ return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}/lbaddress/pools?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
393
+ }
394
+ static GetPermissionsList(req: GetPermissionsListReq, initReq?: fm.InitReq): Promise<GetPermissionsListResp> {
395
+ return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
396
+ }
397
+ static RestartInstance(req: RestartInstanceReq, initReq?: fm.InitReq): Promise<RestartInstanceResp> {
398
+ return fm.fetchReq<RestartInstanceReq, RestartInstanceResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/restart`, {...initReq, method: "POST", body: JSON.stringify(req)})
399
+ }
400
+ static GetInstallVersion(req: GetInstallVersionReq, initReq?: fm.InitReq): Promise<GetInstallVersionResp> {
401
+ return fm.fetchReq<GetInstallVersionReq, GetInstallVersionResp>(`/apis/mcamel.io/minio/v1alpha1/${req["cluster"]}/install-version?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
402
+ }
155
403
  }
package/common.pb.ts CHANGED
@@ -4,6 +4,22 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
+ export enum ExternalTrafficPolicy {
8
+ Cluster = "Cluster",
9
+ Local = "Local",
10
+ }
11
+
12
+ export enum LBTyp {
13
+ MetalLB = "MetalLB",
14
+ Others = "Others",
15
+ }
16
+
17
+ export enum ServiceType {
18
+ ClusterIP = "ClusterIP",
19
+ NodePort = "NodePort",
20
+ LoadBalancer = "LoadBalancer",
21
+ }
22
+
7
23
  export enum PageInfoReqSortDir {
8
24
  ASC = "ASC",
9
25
  DESC = "DESC",
@@ -129,10 +145,74 @@ export type PodCommon = {
129
145
  cpuLimit?: number
130
146
  memoryUsage?: number
131
147
  memoryLimit?: number
148
+ pvUsedInGb?: number
149
+ pvAllocatedInGb?: number
132
150
  conditions?: PodCommonCondition[]
151
+ containersName?: string[]
152
+ ownerReference?: OwnerReference[]
153
+ initContainersName?: string[]
154
+ initContainersStatuses?: ContainerStatus[]
155
+ containersStatuses?: ContainerStatus[]
156
+ }
157
+
158
+ export type OwnerReference = {
159
+ uid?: string
160
+ controller?: boolean
161
+ name?: string
162
+ kind?: string
133
163
  }
134
164
 
135
165
  export type CommonItemStatus = {
136
166
  serviceAddresses?: string[]
137
167
  webManagerAddress?: string
168
+ webLogAddress?: string
169
+ avgPvAllocatedInGb?: number
170
+ avgPvUsedInGb?: number
171
+ cpuUtilization?: number
172
+ memoryUtilization?: number
173
+ isClusterUnknown?: boolean
174
+ }
175
+
176
+ export type AccessWhitelistInternal = {
177
+ namespace?: string
178
+ podSelector?: {[key: string]: string}
179
+ }
180
+
181
+ export type AccessWhitelistExternal = {
182
+ cidr?: string
183
+ ip?: string
184
+ }
185
+
186
+ export type AccessWhitelist = {
187
+ internals?: AccessWhitelistInternal[]
188
+ externals?: AccessWhitelistExternal[]
189
+ }
190
+
191
+ export type ContainerStatus = {
192
+ name?: string
193
+ state?: ContainerState
194
+ }
195
+
196
+ export type ContainerState = {
197
+ waiting?: ContainerStateWaiting
198
+ running?: ContainerStateRunning
199
+ terminated?: ContainerStateTerminated
200
+ }
201
+
202
+ export type ContainerStateWaiting = {
203
+ reason?: string
204
+ message?: string
205
+ }
206
+
207
+ export type ContainerStateRunning = {
208
+ startedAt?: string
209
+ }
210
+
211
+ export type ContainerStateTerminated = {
212
+ exitCode?: number
213
+ signal?: number
214
+ reason?: string
215
+ message?: string
216
+ startedAt?: string
217
+ finishedAt?: string
138
218
  }
package/insight.pb.ts CHANGED
@@ -20,27 +20,23 @@ export enum TargetType {
20
20
  DEPLOYMENT = "DEPLOYMENT",
21
21
  STATEFULSET = "STATEFULSET",
22
22
  DAEMONSET = "DAEMONSET",
23
- CRONJOB = "CRONJOB",
24
23
  POD = "POD",
25
24
  }
26
25
 
27
- export enum AlertStatus {
28
- ALERT_STATUS_UNSPECIFIED = "ALERT_STATUS_UNSPECIFIED",
29
- ALERT_STATUS_FIRING = "ALERT_STATUS_FIRING",
30
- ALERT_STATUS_RESOLVED = "ALERT_STATUS_RESOLVED",
31
- }
32
-
33
26
  export type AlertSummary = {
34
- alertId?: string
27
+ id?: string
28
+ groupName?: string
29
+ groupId?: string
35
30
  ruleName?: string
36
- severity?: Severity
31
+ ruleId?: string
37
32
  clusterName?: string
38
33
  namespace?: string
39
34
  targetType?: TargetType
40
- targetName?: string
41
- status?: AlertStatus
35
+ target?: string
36
+ severity?: Severity
37
+ value?: string
38
+ notifyResponse?: string
42
39
  description?: string
43
40
  startAt?: string
44
41
  updateAt?: string
45
- notifyResponse?: string
46
42
  }
package/metric.pb.ts CHANGED
@@ -7,7 +7,18 @@
7
7
  import * as CommonCommon from "./common.pb"
8
8
  import * as fm from "./fetch.pb"
9
9
  import * as InsightIoApiInsightV1alpha1Insight from "./insight.pb"
10
+
11
+ export enum GetAlertsListReqSortDir {
12
+ ASC = "ASC",
13
+ DESC = "DESC",
14
+ }
15
+
10
16
  export type GetAlertsListReq = {
17
+ page?: number
18
+ pageSize?: number
19
+ sortDir?: GetAlertsListReqSortDir
20
+ sortBy?: string
21
+ searchKey?: string
11
22
  cluster?: string
12
23
  namespace?: string
13
24
  name?: string
package/minio.pb.ts CHANGED
@@ -32,12 +32,6 @@ export enum GetMinioConfReqSortDir {
32
32
  DESC = "DESC",
33
33
  }
34
34
 
35
- export enum CreateMinioReqServiceType {
36
- ClusterIP = "ClusterIP",
37
- NodePort = "NodePort",
38
- LoadBalancer = "LoadBalancer",
39
- }
40
-
41
35
  export enum CreateMinioReqInstanceType {
42
36
  HighAvailable = "HighAvailable",
43
37
  Single = "Single",
@@ -128,7 +122,7 @@ export type CreateMinioReq = {
128
122
  volumesPerServer?: number
129
123
  storageClassName?: string
130
124
  storageCapacity?: string
131
- serviceType?: CreateMinioReqServiceType
125
+ serviceType?: CommonCommon.ServiceType
132
126
  serviceAnnotations?: {[key: string]: string}
133
127
  ports?: CreateMinioReqPorts[]
134
128
  cpuRequest?: string
@@ -138,13 +132,17 @@ export type CreateMinioReq = {
138
132
  instanceType?: CreateMinioReqInstanceType
139
133
  consoleAccessKey?: string
140
134
  consoleSecretKey?: string
141
- consoleServiceType?: CreateMinioReqServiceType
135
+ consoleServiceType?: CommonCommon.ServiceType
142
136
  consoleNodePort?: number
143
137
  consoleServiceAnnotations?: {[key: string]: string}
144
138
  minioRootUser?: string
145
139
  minioRootPassword?: string
146
140
  buckets?: CreateMinioReqBucket[]
147
141
  affinity?: CommonCommon.Affinity
142
+ externalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy
143
+ lbTyp?: CommonCommon.LBTyp
144
+ lbPoolName?: string
145
+ lbAddress?: string
148
146
  }
149
147
 
150
148
  export type UpdateMinioConfReq = {
@@ -272,6 +270,8 @@ export type GetMinioGrafanaAddrReq = {
272
270
  cluster?: string
273
271
  namespace?: string
274
272
  name?: string
273
+ from?: string
274
+ to?: string
275
275
  }
276
276
 
277
277
  export type GetMinioGrafanaAddrResp = {
@@ -311,6 +311,8 @@ export type TenantItemStatus = {
311
311
  webManagerAddr?: string
312
312
  clusterIPs?: string[]
313
313
  serviceAddr?: string
314
+ isControl?: boolean
315
+ consoleAccessToken?: string
314
316
  common?: CommonCommon.CommonItemStatus
315
317
  }
316
318
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-minio",
3
- "version":"0.2.0-41",
3
+ "version":"0.2.0-412",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -0,0 +1,188 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ import * as CommonCommon from "./common.pb"
8
+ import * as fm from "./fetch.pb"
9
+
10
+ type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
11
+ type OneOf<T> =
12
+ | { [k in keyof T]?: undefined }
13
+ | (
14
+ keyof T extends infer K ?
15
+ (K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
16
+ : never)
17
+ : never);
18
+
19
+ export enum GetStorageConfigParamRespSelectSelectType {
20
+ Single = "Single",
21
+ Multiple = "Multiple",
22
+ }
23
+
24
+ export enum GetStorageConfigConsumersRespStorageConfigConsumerType {
25
+ STORAGE_CONFIG_CONSUMER_TYPE_UNSPECIFIED = "STORAGE_CONFIG_CONSUMER_TYPE_UNSPECIFIED",
26
+ STORAGE_CONFIG_CONSUMER_TYPE_MYSQL = "STORAGE_CONFIG_CONSUMER_TYPE_MYSQL",
27
+ STORAGE_CONFIG_CONSUMER_TYPE_REDIS = "STORAGE_CONFIG_CONSUMER_TYPE_REDIS",
28
+ }
29
+
30
+ export enum GetStorageConfigListReqSortDir {
31
+ ASC = "ASC",
32
+ DESC = "DESC",
33
+ }
34
+
35
+ export type GetStorageConfigParamReq = {
36
+ }
37
+
38
+ export type GetStorageConfigParamRespSelectDataStringValue = {
39
+ value?: string
40
+ }
41
+
42
+ export type GetStorageConfigParamRespSelectDataIntValue = {
43
+ value?: number
44
+ }
45
+
46
+
47
+ type BaseGetStorageConfigParamRespSelectData = {
48
+ }
49
+
50
+ export type GetStorageConfigParamRespSelectData = BaseGetStorageConfigParamRespSelectData
51
+ & OneOf<{ sValue: GetStorageConfigParamRespSelectDataStringValue; iValue: GetStorageConfigParamRespSelectDataIntValue }>
52
+
53
+ export type GetStorageConfigParamRespSelect = {
54
+ selectType?: GetStorageConfigParamRespSelectSelectType
55
+ data?: GetStorageConfigParamRespSelectData[]
56
+ }
57
+
58
+ export type GetStorageConfigParamResp = {
59
+ storageType?: GetStorageConfigParamRespSelect
60
+ }
61
+
62
+ export type CreateStorageConfigBucketCheckJobReq = {
63
+ storageType?: string
64
+ endpoint?: string
65
+ accessKey?: string
66
+ secretKey?: string
67
+ bucket?: string
68
+ cluster?: string
69
+ namespace?: string
70
+ name?: string
71
+ }
72
+
73
+ export type CreateStorageConfigBucketCheckJobResp = {
74
+ message?: string
75
+ }
76
+
77
+ export type CreateStorageConfigReq = {
78
+ workspaceId?: number
79
+ cluster?: string
80
+ namespace?: string
81
+ name?: string
82
+ storageType?: string
83
+ accessKey?: string
84
+ secretKey?: string
85
+ bucket?: string
86
+ endpoint?: string
87
+ minioCluster?: string
88
+ minioNamespace?: string
89
+ minioName?: string
90
+ description?: string
91
+ }
92
+
93
+ export type CreateStorageConfigResp = {
94
+ message?: string
95
+ }
96
+
97
+ export type GetStorageConfigConsumersReq = {
98
+ workspaceId?: number
99
+ name?: string
100
+ }
101
+
102
+ export type GetStorageConfigConsumersRespConsumer = {
103
+ type?: GetStorageConfigConsumersRespStorageConfigConsumerType
104
+ cluster?: string
105
+ namespace?: string
106
+ name?: string
107
+ }
108
+
109
+ export type GetStorageConfigConsumersResp = {
110
+ consumers?: GetStorageConfigConsumersRespConsumer[]
111
+ }
112
+
113
+ export type DeleteStorageConfigReq = {
114
+ workspaceId?: number
115
+ name?: string
116
+ cluster?: string
117
+ namespace?: string
118
+ }
119
+
120
+ export type DeleteStorageConfigResp = {
121
+ message?: string
122
+ }
123
+
124
+ export type UpdateStorageConfigResp = {
125
+ message?: string
126
+ }
127
+
128
+ export type StorageConfigItemStorageConfigStatus = {
129
+ lastUpdateTimestamp?: string
130
+ createTimestamp?: string
131
+ }
132
+
133
+ export type StorageConfigItem = {
134
+ spec?: CreateStorageConfigReq
135
+ status?: StorageConfigItemStorageConfigStatus
136
+ }
137
+
138
+ export type GetStorageConfigReq = {
139
+ workspaceId?: number
140
+ name?: string
141
+ namespace?: string
142
+ cluster?: string
143
+ }
144
+
145
+ export type GetStorageConfigResp = {
146
+ item?: StorageConfigItem
147
+ }
148
+
149
+ export type GetStorageConfigListReq = {
150
+ page?: number
151
+ pageSize?: number
152
+ sortDir?: GetStorageConfigListReqSortDir
153
+ sortBy?: string
154
+ searchKey?: string
155
+ workspaceId?: number
156
+ }
157
+
158
+ export type GetStorageConfigListResp = {
159
+ items?: StorageConfigItem[]
160
+ pagination?: CommonCommon.Pagination
161
+ }
162
+
163
+ export class StorageConfig {
164
+ static GetStorageConfigParam(req: GetStorageConfigParamReq, initReq?: fm.InitReq): Promise<GetStorageConfigParamResp> {
165
+ return fm.fetchReq<GetStorageConfigParamReq, GetStorageConfigParamResp>(`/apis/mcamel.io/minio/v1alpha1/storage-config/param?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
166
+ }
167
+ static CreateStorageConfigBucketCheckJob(req: CreateStorageConfigBucketCheckJobReq, initReq?: fm.InitReq): Promise<CreateStorageConfigBucketCheckJobResp> {
168
+ return fm.fetchReq<CreateStorageConfigBucketCheckJobReq, CreateStorageConfigBucketCheckJobResp>(`/apis/mcamel.io/minio/v1alpha1/storage-config/bucket/check-job`, {...initReq, method: "POST", body: JSON.stringify(req)})
169
+ }
170
+ static CreateStorageConfig(req: CreateStorageConfigReq, initReq?: fm.InitReq): Promise<CreateStorageConfigResp> {
171
+ return fm.fetchReq<CreateStorageConfigReq, CreateStorageConfigResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/storage-config`, {...initReq, method: "POST", body: JSON.stringify(req)})
172
+ }
173
+ static GetStorageConfigConsumers(req: GetStorageConfigConsumersReq, initReq?: fm.InitReq): Promise<GetStorageConfigConsumersResp> {
174
+ return fm.fetchReq<GetStorageConfigConsumersReq, GetStorageConfigConsumersResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/storage-config/${req["name"]}/consumers?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
175
+ }
176
+ static DeleteStorageConfig(req: DeleteStorageConfigReq, initReq?: fm.InitReq): Promise<DeleteStorageConfigResp> {
177
+ return fm.fetchReq<DeleteStorageConfigReq, DeleteStorageConfigResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/storage-config/${req["cluster"]}/${req["namespace"]}/${req["name"]}`, {...initReq, method: "DELETE"})
178
+ }
179
+ static UpdateStorageConfig(req: CreateStorageConfigReq, initReq?: fm.InitReq): Promise<UpdateStorageConfigResp> {
180
+ return fm.fetchReq<CreateStorageConfigReq, UpdateStorageConfigResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/storage-config/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
181
+ }
182
+ static GetStorageConfig(req: GetStorageConfigReq, initReq?: fm.InitReq): Promise<GetStorageConfigResp> {
183
+ return fm.fetchReq<GetStorageConfigReq, GetStorageConfigResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/storage-config/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
184
+ }
185
+ static GetStorageConfigList(req: GetStorageConfigListReq, initReq?: fm.InitReq): Promise<GetStorageConfigListResp> {
186
+ return fm.fetchReq<GetStorageConfigListReq, GetStorageConfigListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/storage-configs?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
187
+ }
188
+ }
package/template.pb.ts ADDED
@@ -0,0 +1,170 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ import * as CommonCommon from "./common.pb"
8
+ import * as fm from "./fetch.pb"
9
+
10
+ export enum TemplateInstanceType {
11
+ MysqlMasterReplica = "MysqlMasterReplica",
12
+ RedisStandalone = "RedisStandalone",
13
+ RedisFailover = "RedisFailover",
14
+ RedisCluster = "RedisCluster",
15
+ KafkaConfig = "KafkaConfig",
16
+ MysqlMgrConfig = "MysqlMgrConfig",
17
+ }
18
+
19
+ export enum GetTemplateConfigReqSortDir {
20
+ ASC = "ASC",
21
+ DESC = "DESC",
22
+ }
23
+
24
+ export enum GetTemplateConfigListReqSortDir {
25
+ ASC = "ASC",
26
+ DESC = "DESC",
27
+ }
28
+
29
+ export enum TemplateConfigItemValueType {
30
+ String = "String",
31
+ SingleSelection = "SingleSelection",
32
+ MultiString = "MultiString",
33
+ }
34
+
35
+ export type GetTemplateConfigVersionsReq = {
36
+ workspaceId?: number
37
+ }
38
+
39
+ export type GetTemplateConfigVersionsResp = {
40
+ versions?: string[]
41
+ }
42
+
43
+ export type GetTemplateConfigStringResp = {
44
+ conf?: string
45
+ }
46
+
47
+ export type DeleteTemplateReq = {
48
+ workspaceId?: number
49
+ name?: string
50
+ version?: string
51
+ }
52
+
53
+ export type DeleteTemplateConfigResp = {
54
+ message?: string
55
+ }
56
+
57
+ export type CreateOrUpdateTemplateConfigResp = {
58
+ message?: string
59
+ }
60
+
61
+ export type GetTemplateConfigReq = {
62
+ page?: number
63
+ pageSize?: number
64
+ sortDir?: GetTemplateConfigReqSortDir
65
+ sortBy?: string
66
+ searchKey?: string
67
+ workspaceId?: number
68
+ name?: string
69
+ version?: string
70
+ templateType?: string
71
+ type?: string
72
+ createTimestamp?: string
73
+ templateInstanceType?: TemplateInstanceType
74
+ }
75
+
76
+ export type CreateTemplateConfigResp = {
77
+ message?: string
78
+ }
79
+
80
+ export type UpdateTemplateConfigResp = {
81
+ message?: string
82
+ }
83
+
84
+ export type CreateTemplateConfigReq = {
85
+ workspaceId?: number
86
+ targetName?: string
87
+ targetVersion?: string
88
+ targetType?: string
89
+ targetTemplateType?: string
90
+ targetConf?: string
91
+ fromTemplateName?: string
92
+ }
93
+
94
+ export type UpdateTemplateConfigReq = {
95
+ workspaceId?: number
96
+ name?: string
97
+ version?: string
98
+ type?: string
99
+ templateType?: string
100
+ items?: TemplateConfigItem[]
101
+ conf?: string
102
+ }
103
+
104
+ export type GetTemplateConfigResp = {
105
+ data?: UpdateTemplateConfigReq
106
+ pagination?: CommonCommon.Pagination
107
+ }
108
+
109
+ export type GetTemplateConfigListReq = {
110
+ page?: number
111
+ pageSize?: number
112
+ sortDir?: GetTemplateConfigListReqSortDir
113
+ sortBy?: string
114
+ searchKey?: string
115
+ workspaceId?: number
116
+ version?: string
117
+ templateInstanceType?: TemplateInstanceType
118
+ }
119
+
120
+ export type TemplateConfigItem = {
121
+ name?: string
122
+ default?: string
123
+ current?: string
124
+ value?: string
125
+ isNeedRestart?: boolean
126
+ valueType?: TemplateConfigItemValueType
127
+ valueRemarksZh?: string
128
+ valueRemarksEn?: string
129
+ updateTimestamp?: string
130
+ }
131
+
132
+ export type GetTemplateConfigListResp = {
133
+ items?: GetTemplateConfigReq[]
134
+ pagination?: CommonCommon.Pagination
135
+ }
136
+
137
+ export type GetTemplateInstanceTypeListReq = {
138
+ workspaceId?: number
139
+ }
140
+
141
+ export type GetTemplateInstanceTypeListResp = {
142
+ type?: TemplateInstanceType[]
143
+ }
144
+
145
+ export class Template {
146
+ static GetTemplateConfigList(req: GetTemplateConfigListReq, initReq?: fm.InitReq): Promise<GetTemplateConfigListResp> {
147
+ return fm.fetchReq<GetTemplateConfigListReq, GetTemplateConfigListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/template_config?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
148
+ }
149
+ static GetTemplateInstanceTypeList(req: GetTemplateInstanceTypeListReq, initReq?: fm.InitReq): Promise<GetTemplateInstanceTypeListResp> {
150
+ return fm.fetchReq<GetTemplateInstanceTypeListReq, GetTemplateInstanceTypeListResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/template_instance_type?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
151
+ }
152
+ static GetTemplateConfig(req: GetTemplateConfigReq, initReq?: fm.InitReq): Promise<GetTemplateConfigResp> {
153
+ return fm.fetchReq<GetTemplateConfigReq, GetTemplateConfigResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/template_config/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
154
+ }
155
+ static DeleteTemplateConfig(req: DeleteTemplateReq, initReq?: fm.InitReq): Promise<DeleteTemplateConfigResp> {
156
+ return fm.fetchReq<DeleteTemplateReq, DeleteTemplateConfigResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/template_config/${req["name"]}/${req["version"]}`, {...initReq, method: "DELETE"})
157
+ }
158
+ static CreateTemplateConfig(req: CreateTemplateConfigReq, initReq?: fm.InitReq): Promise<CreateTemplateConfigResp> {
159
+ return fm.fetchReq<CreateTemplateConfigReq, CreateTemplateConfigResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/template_config`, {...initReq, method: "POST", body: JSON.stringify(req)})
160
+ }
161
+ static UpdateTemplateConfig(req: UpdateTemplateConfigReq, initReq?: fm.InitReq): Promise<UpdateTemplateConfigResp> {
162
+ return fm.fetchReq<UpdateTemplateConfigReq, UpdateTemplateConfigResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/template_config`, {...initReq, method: "PUT", body: JSON.stringify(req)})
163
+ }
164
+ static GetTemplateConfigString(req: GetTemplateConfigReq, initReq?: fm.InitReq): Promise<GetTemplateConfigStringResp> {
165
+ return fm.fetchReq<GetTemplateConfigReq, GetTemplateConfigStringResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/template_config/${req["name"]}/to_string?${fm.renderURLSearchParams(req, ["workspaceId", "name"])}`, {...initReq, method: "GET"})
166
+ }
167
+ static GetTemplateConfigVersions(req: GetTemplateConfigVersionsReq, initReq?: fm.InitReq): Promise<GetTemplateConfigVersionsResp> {
168
+ return fm.fetchReq<GetTemplateConfigVersionsReq, GetTemplateConfigVersionsResp>(`/apis/mcamel.io/minio/v1alpha1/${req["workspaceId"]}/template_config/versions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
169
+ }
170
+ }