@daocloud-proto/mcamel-mysql 0.5.0-21 → 0.5.0-210
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 +78 -0
- package/cluster.pb.ts +96 -0
- package/common.pb.ts +29 -0
- package/insight.pb.ts +8 -12
- package/mysql.pb.ts +16 -8
- package/package.json +1 -1
- package/storage_config.pb.ts +1 -0
package/cloudshell.pb.ts
ADDED
|
@@ -0,0 +1,78 @@
|
|
|
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 GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"
|
|
8
|
+
import * as CommonCommon from "./common.pb"
|
|
9
|
+
import * as fm from "./fetch.pb"
|
|
10
|
+
|
|
11
|
+
export enum CreateCloudShellRequestType {
|
|
12
|
+
TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
|
|
13
|
+
bash = "bash",
|
|
14
|
+
exec = "exec",
|
|
15
|
+
logs = "logs",
|
|
16
|
+
upload = "upload",
|
|
17
|
+
download = "download",
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type ObjectMeta = {
|
|
21
|
+
name?: string
|
|
22
|
+
namespace?: string
|
|
23
|
+
uid?: string
|
|
24
|
+
resourceVersion?: string
|
|
25
|
+
creationTimestamp?: string
|
|
26
|
+
deletionTimestamp?: string
|
|
27
|
+
labels?: {[key: string]: string}
|
|
28
|
+
annotations?: {[key: string]: string}
|
|
29
|
+
ownerReferences?: CommonCommon.OwnerReference[]
|
|
30
|
+
cluster?: string
|
|
31
|
+
workspaceAlias?: string
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
export type CloudShell = {
|
|
35
|
+
metadata?: ObjectMeta
|
|
36
|
+
spec?: CloudShellSpec
|
|
37
|
+
status?: CloudShellStatus
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type CloudShellSpec = {
|
|
41
|
+
configMapName?: string
|
|
42
|
+
once?: boolean
|
|
43
|
+
commandAction?: string
|
|
44
|
+
ttl?: number
|
|
45
|
+
cleanup?: boolean
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type CloudShellStatus = {
|
|
49
|
+
phase?: string
|
|
50
|
+
accessUrl?: string
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export type CreateCloudShellRequest = {
|
|
54
|
+
type?: CreateCloudShellRequestType
|
|
55
|
+
cluster?: string
|
|
56
|
+
namespace?: string
|
|
57
|
+
podName?: string
|
|
58
|
+
filePath?: string
|
|
59
|
+
container?: string
|
|
60
|
+
logCount?: number
|
|
61
|
+
data?: CloudShell
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type GetorDeleteCloudShellRequest = {
|
|
65
|
+
name?: string
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export class CloudShellService {
|
|
69
|
+
static CreateCloudShell(req: CreateCloudShellRequest, initReq?: fm.InitReq): Promise<CloudShell> {
|
|
70
|
+
return fm.fetchReq<CreateCloudShellRequest, CloudShell>(`/apis/mcamel.io/mysql/v1alpha1/cloudshells`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
71
|
+
}
|
|
72
|
+
static GetCloudShell(req: GetorDeleteCloudShellRequest, initReq?: fm.InitReq): Promise<CloudShell> {
|
|
73
|
+
return fm.fetchReq<GetorDeleteCloudShellRequest, CloudShell>(`/apis/mcamel.io/mysql/v1alpha1/cloudshells/${req["name"]}?${fm.renderURLSearchParams(req, ["name"])}`, {...initReq, method: "GET"})
|
|
74
|
+
}
|
|
75
|
+
static DeleteCloudShell(req: GetorDeleteCloudShellRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
76
|
+
return fm.fetchReq<GetorDeleteCloudShellRequest, GoogleProtobufEmpty.Empty>(`/apis/mcamel.io/mysql/v1alpha1/cloudshells/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
77
|
+
}
|
|
78
|
+
}
|
package/cluster.pb.ts
CHANGED
|
@@ -13,6 +13,11 @@ export enum EventType {
|
|
|
13
13
|
Warning = "Warning",
|
|
14
14
|
}
|
|
15
15
|
|
|
16
|
+
export enum GetAllEventListReqSortDir {
|
|
17
|
+
ASC = "ASC",
|
|
18
|
+
DESC = "DESC",
|
|
19
|
+
}
|
|
20
|
+
|
|
16
21
|
export enum GetEventListReqKind {
|
|
17
22
|
KIND_UNSPECIFIED = "KIND_UNSPECIFIED",
|
|
18
23
|
Pod = "Pod",
|
|
@@ -28,6 +33,70 @@ export enum GetInsightAgentStatusRespInsightAgentStatus {
|
|
|
28
33
|
Install = "Install",
|
|
29
34
|
}
|
|
30
35
|
|
|
36
|
+
export type GetAllEventKindsListResp = {
|
|
37
|
+
data?: string[]
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type GetAllEventKindsListReq = {
|
|
41
|
+
cluster?: string
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type GetAllEventListReq = {
|
|
45
|
+
page?: number
|
|
46
|
+
pageSize?: number
|
|
47
|
+
sortDir?: GetAllEventListReqSortDir
|
|
48
|
+
sortBy?: string
|
|
49
|
+
searchKey?: string
|
|
50
|
+
cluster?: string
|
|
51
|
+
namespace?: string
|
|
52
|
+
name?: string
|
|
53
|
+
eventType?: EventType
|
|
54
|
+
kindName?: string
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type GetAllEventListRespItemsSource = {
|
|
58
|
+
component?: string
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type GetAllEventListRespItemsMetadata = {
|
|
62
|
+
uid?: string
|
|
63
|
+
name?: string
|
|
64
|
+
namespace?: string
|
|
65
|
+
annotations?: {[key: string]: string}
|
|
66
|
+
resourceVersion?: string
|
|
67
|
+
creationTimestamp?: string
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type GetAllEventListRespItemsInvolvedObject = {
|
|
71
|
+
uid?: string
|
|
72
|
+
kind?: string
|
|
73
|
+
name?: string
|
|
74
|
+
namespace?: string
|
|
75
|
+
apiVersion?: string
|
|
76
|
+
resourceVersion?: string
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type GetAllEventListRespItems = {
|
|
80
|
+
kind?: string
|
|
81
|
+
type?: string
|
|
82
|
+
count?: number
|
|
83
|
+
reason?: string
|
|
84
|
+
source?: GetAllEventListRespItemsSource
|
|
85
|
+
message?: string
|
|
86
|
+
metadata?: GetAllEventListRespItemsMetadata
|
|
87
|
+
apiVersion?: string
|
|
88
|
+
lastTimestamp?: string
|
|
89
|
+
firstTimestamp?: string
|
|
90
|
+
involvedObject?: GetAllEventListRespItemsInvolvedObject
|
|
91
|
+
reportingInstance?: string
|
|
92
|
+
reportingComponent?: string
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type GetAllEventListResp = {
|
|
96
|
+
items?: GetAllEventListRespItems[]
|
|
97
|
+
pagination?: CommonCommon.Pagination
|
|
98
|
+
}
|
|
99
|
+
|
|
31
100
|
export type GetClusterNodeLabelListReq = {
|
|
32
101
|
cluster?: string
|
|
33
102
|
}
|
|
@@ -56,6 +125,24 @@ export type EventSource = {
|
|
|
56
125
|
host?: string
|
|
57
126
|
}
|
|
58
127
|
|
|
128
|
+
export type GetMetallbIPAddressPoolsListReq = {
|
|
129
|
+
cluster?: string
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export type GetMetallbIPAddressPoolsListRespItem = {
|
|
133
|
+
name?: string
|
|
134
|
+
addresses?: string[]
|
|
135
|
+
autoAssign?: boolean
|
|
136
|
+
avoidBuggyIPs?: boolean
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
export type GetMetallbIPAddressPoolsListResp = {
|
|
140
|
+
items?: GetMetallbIPAddressPoolsListRespItem[]
|
|
141
|
+
isSupportLb?: boolean
|
|
142
|
+
externalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy[]
|
|
143
|
+
lbTyp?: CommonCommon.LBTyp[]
|
|
144
|
+
}
|
|
145
|
+
|
|
59
146
|
export type GetEventListReq = {
|
|
60
147
|
cluster?: string
|
|
61
148
|
namespace?: string
|
|
@@ -152,4 +239,13 @@ export class Cluster {
|
|
|
152
239
|
static GetEventList(req: GetEventListReq, initReq?: fm.InitReq): Promise<GetEventListResp> {
|
|
153
240
|
return fm.fetchReq<GetEventListReq, GetEventListResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["cluster"]}/${req["namespace"]}/events?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
154
241
|
}
|
|
242
|
+
static GetAllEventList(req: GetAllEventListReq, initReq?: fm.InitReq): Promise<GetAllEventListResp> {
|
|
243
|
+
return fm.fetchReq<GetAllEventListReq, GetAllEventListResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["cluster"]}/${req["namespace"]}/${req["name"]}/all-events?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
244
|
+
}
|
|
245
|
+
static GetAllEventKindsList(req: GetAllEventKindsListReq, initReq?: fm.InitReq): Promise<GetAllEventKindsListResp> {
|
|
246
|
+
return fm.fetchReq<GetAllEventKindsListReq, GetAllEventKindsListResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["cluster"]}/all-events-kinds?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
247
|
+
}
|
|
248
|
+
static GetMetallbIPAddressPoolsList(req: GetMetallbIPAddressPoolsListReq, initReq?: fm.InitReq): Promise<GetMetallbIPAddressPoolsListResp> {
|
|
249
|
+
return fm.fetchReq<GetMetallbIPAddressPoolsListReq, GetMetallbIPAddressPoolsListResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["cluster"]}/lbaddress/pools?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
250
|
+
}
|
|
155
251
|
}
|
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,23 @@ 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
|
+
}
|
|
155
|
+
|
|
156
|
+
export type OwnerReference = {
|
|
157
|
+
uid?: string
|
|
158
|
+
controller?: boolean
|
|
159
|
+
name?: string
|
|
160
|
+
kind?: string
|
|
133
161
|
}
|
|
134
162
|
|
|
135
163
|
export type CommonItemStatus = {
|
|
136
164
|
serviceAddresses?: string[]
|
|
137
165
|
webManagerAddress?: string
|
|
166
|
+
webLogAddress?: string
|
|
138
167
|
}
|
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
|
-
|
|
27
|
+
id?: string
|
|
28
|
+
groupName?: string
|
|
29
|
+
groupId?: string
|
|
35
30
|
ruleName?: string
|
|
36
|
-
|
|
31
|
+
ruleId?: string
|
|
37
32
|
clusterName?: string
|
|
38
33
|
namespace?: string
|
|
39
34
|
targetType?: TargetType
|
|
40
|
-
|
|
41
|
-
|
|
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/mysql.pb.ts
CHANGED
|
@@ -78,12 +78,6 @@ export enum GetMysqlConfReqSortDir {
|
|
|
78
78
|
DESC = "DESC",
|
|
79
79
|
}
|
|
80
80
|
|
|
81
|
-
export enum CreateMysqlReqServiceType {
|
|
82
|
-
ClusterIP = "ClusterIP",
|
|
83
|
-
NodePort = "NodePort",
|
|
84
|
-
LoadBalancer = "LoadBalancer",
|
|
85
|
-
}
|
|
86
|
-
|
|
87
81
|
export enum GetMysqlParamRespSelectSelectType {
|
|
88
82
|
Single = "Single",
|
|
89
83
|
Multiple = "Multiple",
|
|
@@ -343,6 +337,8 @@ export type GetMysqlListReq = {
|
|
|
343
337
|
sortBy?: string
|
|
344
338
|
searchKey?: string
|
|
345
339
|
workspaceId?: number
|
|
340
|
+
filterCluster?: string
|
|
341
|
+
filterNamespace?: string
|
|
346
342
|
}
|
|
347
343
|
|
|
348
344
|
export type GetMysqlConfReq = {
|
|
@@ -379,7 +375,7 @@ export type CreateMysqlReq = {
|
|
|
379
375
|
storageClassName?: string
|
|
380
376
|
storageCapacity?: string
|
|
381
377
|
rootPassword?: string
|
|
382
|
-
serviceType?:
|
|
378
|
+
serviceType?: CommonCommon.ServiceType
|
|
383
379
|
serviceAnnotations?: {[key: string]: string}
|
|
384
380
|
ports?: CreateMysqlReqPorts[]
|
|
385
381
|
cpuRequest?: string
|
|
@@ -391,7 +387,7 @@ export type CreateMysqlReq = {
|
|
|
391
387
|
backupSecretName?: string
|
|
392
388
|
backupBucket?: string
|
|
393
389
|
isOpenPhpAdmin?: boolean
|
|
394
|
-
phpAdminServiceType?:
|
|
390
|
+
phpAdminServiceType?: CommonCommon.ServiceType
|
|
395
391
|
phpAdminNodePort?: number
|
|
396
392
|
phpAdminCpuRequest?: string
|
|
397
393
|
phpAdminCpuLimit?: string
|
|
@@ -408,6 +404,14 @@ export type CreateMysqlReq = {
|
|
|
408
404
|
storageConfigNamespace?: string
|
|
409
405
|
storageConfigCluster?: string
|
|
410
406
|
affinity?: CommonCommon.Affinity
|
|
407
|
+
externalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy
|
|
408
|
+
lbTyp?: CommonCommon.LBTyp
|
|
409
|
+
lbPoolName?: string
|
|
410
|
+
lbAddress?: string
|
|
411
|
+
phpAdminExternalTrafficPolicy?: CommonCommon.ExternalTrafficPolicy
|
|
412
|
+
phpAdminLbTyp?: CommonCommon.LBTyp
|
|
413
|
+
phpAdminLbPoolName?: string
|
|
414
|
+
phpAdminLbAddress?: string
|
|
411
415
|
}
|
|
412
416
|
|
|
413
417
|
export type UpdateMysqlConfReq = {
|
|
@@ -582,6 +586,10 @@ export type MysqlClusterItemStatus = {
|
|
|
582
586
|
isAutoBackupEnabled?: boolean
|
|
583
587
|
serviceAddr?: string
|
|
584
588
|
common?: CommonCommon.CommonItemStatus
|
|
589
|
+
isControl?: boolean
|
|
590
|
+
secondsBehindMaster?: number
|
|
591
|
+
cpuUtilization?: number
|
|
592
|
+
memoryUtilization?: number
|
|
585
593
|
}
|
|
586
594
|
|
|
587
595
|
export type MysqlClusterItemMetadata = {
|
package/package.json
CHANGED
package/storage_config.pb.ts
CHANGED
|
@@ -24,6 +24,7 @@ export enum GetStorageConfigParamRespSelectSelectType {
|
|
|
24
24
|
export enum GetStorageConfigConsumersRespStorageConfigConsumerType {
|
|
25
25
|
STORAGE_CONFIG_CONSUMER_TYPE_UNSPECIFIED = "STORAGE_CONFIG_CONSUMER_TYPE_UNSPECIFIED",
|
|
26
26
|
STORAGE_CONFIG_CONSUMER_TYPE_MYSQL = "STORAGE_CONFIG_CONSUMER_TYPE_MYSQL",
|
|
27
|
+
STORAGE_CONFIG_CONSUMER_TYPE_REDIS = "STORAGE_CONFIG_CONSUMER_TYPE_REDIS",
|
|
27
28
|
}
|
|
28
29
|
|
|
29
30
|
export enum GetStorageConfigListReqSortDir {
|