@daocloud-proto/mcamel-mysql 0.4.8-6 → 0.4.8-60
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 +29 -0
- package/common.pb.ts +72 -0
- package/mysql.pb.ts +44 -0
- package/package.json +1 -1
- package/storage_config.pb.ts +23 -2
package/cluster.pb.ts
CHANGED
|
@@ -28,6 +28,29 @@ 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
|
+
|
|
45
|
+
export type GetClusterNodePortListReq = {
|
|
46
|
+
cluster?: string
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
export type GetClusterNodePortListResp = {
|
|
50
|
+
items?: string[]
|
|
51
|
+
pagination?: CommonCommon.Pagination
|
|
52
|
+
}
|
|
53
|
+
|
|
31
54
|
export type EventSource = {
|
|
32
55
|
component?: string
|
|
33
56
|
host?: string
|
|
@@ -114,6 +137,12 @@ export class Cluster {
|
|
|
114
137
|
static GetClusterNamespaceList(req: GetClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetClusterNamespaceListResp> {
|
|
115
138
|
return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
|
|
116
139
|
}
|
|
140
|
+
static GetClusterNodePortList(req: GetClusterNodePortListReq, initReq?: fm.InitReq): Promise<GetClusterNodePortListResp> {
|
|
141
|
+
return fm.fetchReq<GetClusterNodePortListReq, GetClusterNodePortListResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["cluster"]}/nodeports?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
142
|
+
}
|
|
143
|
+
static GetClusterNodeLabelList(req: GetClusterNodeLabelListReq, initReq?: fm.InitReq): Promise<GetClusterNodeLabelListResp> {
|
|
144
|
+
return fm.fetchReq<GetClusterNodeLabelListReq, GetClusterNodeLabelListResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["cluster"]}/nodelabels?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
145
|
+
}
|
|
117
146
|
static GetWorkspaceList(req: GetWorkspaceListReq, initReq?: fm.InitReq): Promise<GetWorkspaceListResp> {
|
|
118
147
|
return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/mysql/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
119
148
|
}
|
package/common.pb.ts
CHANGED
|
@@ -24,6 +24,78 @@ export enum PodCommonConditionStatus {
|
|
|
24
24
|
PodConditionStatusFalse = "PodConditionStatusFalse",
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
export type Affinity = {
|
|
28
|
+
nodeAffinity?: NodeAffinity
|
|
29
|
+
podAffinity?: PodAffinity
|
|
30
|
+
podAntiAffinity?: PodAntiAffinity
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type PodAntiAffinity = {
|
|
34
|
+
requiredDuringSchedulingIgnoredDuringExecution?: PodAffinityTerm[]
|
|
35
|
+
preferredDuringSchedulingIgnoredDuringExecution?: WeightedPodAffinityTerm[]
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type NodeAffinity = {
|
|
39
|
+
requiredDuringSchedulingIgnoredDuringExecution?: NodeSelector
|
|
40
|
+
preferredDuringSchedulingIgnoredDuringExecution?: PreferredSchedulingTerm[]
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type NodeSelector = {
|
|
44
|
+
nodeSelectorTerms?: NodeSelectorTerm[]
|
|
45
|
+
}
|
|
46
|
+
|
|
47
|
+
export type NodeSelectorTerm = {
|
|
48
|
+
matchExpressions?: NodeSelectorRequirement[]
|
|
49
|
+
matchFields?: NodeSelectorRequirement[]
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export type NodeSelectorRequirement = {
|
|
53
|
+
key?: string
|
|
54
|
+
values?: string[]
|
|
55
|
+
operator?: string
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type PreferredSchedulingTerm = {
|
|
59
|
+
weight?: number
|
|
60
|
+
preference?: NodeSelectorTerm
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export type PodAffinity = {
|
|
64
|
+
requiredDuringSchedulingIgnoredDuringExecution?: PodAffinityTerm[]
|
|
65
|
+
preferredDuringSchedulingIgnoredDuringExecution?: WeightedPodAffinityTerm[]
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export type WeightedPodAffinityTerm = {
|
|
69
|
+
weight?: number
|
|
70
|
+
podAffinityTerm?: PodAffinityTerm
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
export type PodAffinityTerm = {
|
|
74
|
+
labelSelector?: LabelSelector
|
|
75
|
+
namespaces?: string[]
|
|
76
|
+
topologyKey?: string
|
|
77
|
+
namespaceSelector?: LabelSelector
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export type LabelSelector = {
|
|
81
|
+
matchLabels?: {[key: string]: string}
|
|
82
|
+
matchExpressions?: LabelSelectorRequirement[]
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export type LabelSelectorRequirement = {
|
|
86
|
+
key?: string
|
|
87
|
+
values?: string[]
|
|
88
|
+
operator?: string
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export type Toleration = {
|
|
92
|
+
key?: string
|
|
93
|
+
operator?: string
|
|
94
|
+
value?: string
|
|
95
|
+
effect?: string
|
|
96
|
+
tolerationSeconds?: string
|
|
97
|
+
}
|
|
98
|
+
|
|
27
99
|
export type Pagination = {
|
|
28
100
|
total?: number
|
|
29
101
|
page?: number
|
package/mysql.pb.ts
CHANGED
|
@@ -22,6 +22,11 @@ export enum Status {
|
|
|
22
22
|
Creating = "Creating",
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
export enum GetMinioListReqSortDir {
|
|
26
|
+
ASC = "ASC",
|
|
27
|
+
DESC = "DESC",
|
|
28
|
+
}
|
|
29
|
+
|
|
25
30
|
export enum GetMysqlBackupListReqSortDir {
|
|
26
31
|
ASC = "ASC",
|
|
27
32
|
DESC = "DESC",
|
|
@@ -114,6 +119,37 @@ export enum GetMysqlConfRespItemsParamType {
|
|
|
114
119
|
conf = "conf",
|
|
115
120
|
}
|
|
116
121
|
|
|
122
|
+
export type GetMinioListReq = {
|
|
123
|
+
page?: number
|
|
124
|
+
pageSize?: number
|
|
125
|
+
sortDir?: GetMinioListReqSortDir
|
|
126
|
+
sortBy?: string
|
|
127
|
+
searchKey?: string
|
|
128
|
+
workspaceId?: number
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export type GetMinioListResp = {
|
|
132
|
+
items?: TenantItem[]
|
|
133
|
+
pagination?: CommonCommon.Pagination
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export type TenantItemCreateMinioReq = {
|
|
137
|
+
name?: string
|
|
138
|
+
namespace?: string
|
|
139
|
+
cluster?: string
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export type TenantItem = {
|
|
143
|
+
apiVersion?: string
|
|
144
|
+
kind?: string
|
|
145
|
+
spec?: TenantItemCreateMinioReq
|
|
146
|
+
status?: TenantItemStatus
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export type TenantItemStatus = {
|
|
150
|
+
common?: CommonCommon.CommonItemStatus
|
|
151
|
+
}
|
|
152
|
+
|
|
117
153
|
export type GetMysqlUsersReq = {
|
|
118
154
|
cluster?: string
|
|
119
155
|
namespace?: string
|
|
@@ -140,6 +176,8 @@ export type UpdateMysqlBackupConfigReq = {
|
|
|
140
176
|
backupBucketSubPath?: string
|
|
141
177
|
isOpenAutoBackup?: boolean
|
|
142
178
|
storageConfigName?: string
|
|
179
|
+
storageConfigNamespace?: string
|
|
180
|
+
storageConfigCluster?: string
|
|
143
181
|
}
|
|
144
182
|
|
|
145
183
|
export type UpdateMysqlBackupConfigResp = {
|
|
@@ -367,6 +405,9 @@ export type CreateMysqlReq = {
|
|
|
367
405
|
initSourceMysqlClusterName?: string
|
|
368
406
|
initSourceBackupName?: string
|
|
369
407
|
storageConfigName?: string
|
|
408
|
+
storageConfigNamespace?: string
|
|
409
|
+
storageConfigCluster?: string
|
|
410
|
+
affinity?: CommonCommon.Affinity
|
|
370
411
|
}
|
|
371
412
|
|
|
372
413
|
export type UpdateMysqlConfReq = {
|
|
@@ -625,4 +666,7 @@ export class Mysql {
|
|
|
625
666
|
static GetMysqlUsers(req: GetMysqlUsersReq, initReq?: fm.InitReq): Promise<GetMysqlUsersResp> {
|
|
626
667
|
return fm.fetchReq<GetMysqlUsersReq, GetMysqlUsersResp>(`/apis/mcamel.io/mysql/v1alpha1/mysql/${req["cluster"]}/${req["namespace"]}/${req["name"]}/users?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
627
668
|
}
|
|
669
|
+
static GetMinioList(req: GetMinioListReq, initReq?: fm.InitReq): Promise<GetMinioListResp> {
|
|
670
|
+
return fm.fetchReq<GetMinioListReq, GetMinioListResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/minios?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
671
|
+
}
|
|
628
672
|
}
|
package/package.json
CHANGED
package/storage_config.pb.ts
CHANGED
|
@@ -58,18 +58,34 @@ export type GetStorageConfigParamResp = {
|
|
|
58
58
|
storageType?: GetStorageConfigParamRespSelect
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
export type CreateStorageConfigBucketCheckJobReq = {
|
|
62
|
+
storageType?: string
|
|
63
|
+
endpoint?: string
|
|
64
|
+
accessKey?: string
|
|
65
|
+
secretKey?: string
|
|
66
|
+
bucket?: string
|
|
67
|
+
cluster?: string
|
|
68
|
+
namespace?: string
|
|
69
|
+
name?: string
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export type CreateStorageConfigBucketCheckJobResp = {
|
|
73
|
+
message?: string
|
|
74
|
+
}
|
|
75
|
+
|
|
61
76
|
export type CreateStorageConfigReq = {
|
|
62
77
|
workspaceId?: number
|
|
63
78
|
cluster?: string
|
|
64
79
|
namespace?: string
|
|
65
80
|
name?: string
|
|
66
81
|
storageType?: string
|
|
82
|
+
accessKey?: string
|
|
83
|
+
secretKey?: string
|
|
84
|
+
bucket?: string
|
|
67
85
|
endpoint?: string
|
|
68
86
|
minioCluster?: string
|
|
69
87
|
minioNamespace?: string
|
|
70
88
|
minioName?: string
|
|
71
|
-
accessKey?: string
|
|
72
|
-
secretKey?: string
|
|
73
89
|
description?: string
|
|
74
90
|
}
|
|
75
91
|
|
|
@@ -119,6 +135,8 @@ export type StorageConfigItem = {
|
|
|
119
135
|
export type GetStorageConfigReq = {
|
|
120
136
|
workspaceId?: number
|
|
121
137
|
name?: string
|
|
138
|
+
namespace?: string
|
|
139
|
+
cluster?: string
|
|
122
140
|
}
|
|
123
141
|
|
|
124
142
|
export type GetStorageConfigResp = {
|
|
@@ -143,6 +161,9 @@ export class StorageConfig {
|
|
|
143
161
|
static GetStorageConfigParam(req: GetStorageConfigParamReq, initReq?: fm.InitReq): Promise<GetStorageConfigParamResp> {
|
|
144
162
|
return fm.fetchReq<GetStorageConfigParamReq, GetStorageConfigParamResp>(`/apis/mcamel.io/mysql/v1alpha1/storage-config/param?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
145
163
|
}
|
|
164
|
+
static CreateStorageConfigBucketCheckJob(req: CreateStorageConfigBucketCheckJobReq, initReq?: fm.InitReq): Promise<CreateStorageConfigBucketCheckJobResp> {
|
|
165
|
+
return fm.fetchReq<CreateStorageConfigBucketCheckJobReq, CreateStorageConfigBucketCheckJobResp>(`/apis/mcamel.io/mysql/v1alpha1/storage-config/bucket/check-job`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
166
|
+
}
|
|
146
167
|
static CreateStorageConfig(req: CreateStorageConfigReq, initReq?: fm.InitReq): Promise<CreateStorageConfigResp> {
|
|
147
168
|
return fm.fetchReq<CreateStorageConfigReq, CreateStorageConfigResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/storage-config`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
148
169
|
}
|