@daocloud-proto/mcamel-mysql 0.4.8-3 → 0.4.8-30
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 +12 -0
- package/mysql.pb.ts +46 -0
- package/package.json +1 -1
- package/storage_config.pb.ts +21 -2
package/cluster.pb.ts
CHANGED
|
@@ -28,6 +28,15 @@ export enum GetInsightAgentStatusRespInsightAgentStatus {
|
|
|
28
28
|
Install = "Install",
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
export type GetClusterNodePortListReq = {
|
|
32
|
+
cluster?: string
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type GetClusterNodePortListResp = {
|
|
36
|
+
items?: string[]
|
|
37
|
+
pagination?: CommonCommon.Pagination
|
|
38
|
+
}
|
|
39
|
+
|
|
31
40
|
export type EventSource = {
|
|
32
41
|
component?: string
|
|
33
42
|
host?: string
|
|
@@ -114,6 +123,9 @@ export class Cluster {
|
|
|
114
123
|
static GetClusterNamespaceList(req: GetClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetClusterNamespaceListResp> {
|
|
115
124
|
return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
|
|
116
125
|
}
|
|
126
|
+
static GetClusterNodePortList(req: GetClusterNodePortListReq, initReq?: fm.InitReq): Promise<GetClusterNodePortListResp> {
|
|
127
|
+
return fm.fetchReq<GetClusterNodePortListReq, GetClusterNodePortListResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["cluster"]}/nodeports?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
128
|
+
}
|
|
117
129
|
static GetWorkspaceList(req: GetWorkspaceListReq, initReq?: fm.InitReq): Promise<GetWorkspaceListResp> {
|
|
118
130
|
return fm.fetchReq<GetWorkspaceListReq, GetWorkspaceListResp>(`/apis/mcamel.io/mysql/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
119
131
|
}
|
package/mysql.pb.ts
CHANGED
|
@@ -22,6 +22,17 @@ export enum Status {
|
|
|
22
22
|
Creating = "Creating",
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
+
export enum GetMinioListReqSortDir {
|
|
26
|
+
ASC = "ASC",
|
|
27
|
+
DESC = "DESC",
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export enum TenantItemServiceType {
|
|
31
|
+
ClusterIP = "ClusterIP",
|
|
32
|
+
NodePort = "NodePort",
|
|
33
|
+
LoadBalancer = "LoadBalancer",
|
|
34
|
+
}
|
|
35
|
+
|
|
25
36
|
export enum GetMysqlBackupListReqSortDir {
|
|
26
37
|
ASC = "ASC",
|
|
27
38
|
DESC = "DESC",
|
|
@@ -114,6 +125,38 @@ export enum GetMysqlConfRespItemsParamType {
|
|
|
114
125
|
conf = "conf",
|
|
115
126
|
}
|
|
116
127
|
|
|
128
|
+
export type GetMinioListReq = {
|
|
129
|
+
page?: number
|
|
130
|
+
pageSize?: number
|
|
131
|
+
sortDir?: GetMinioListReqSortDir
|
|
132
|
+
sortBy?: string
|
|
133
|
+
searchKey?: string
|
|
134
|
+
workspaceId?: number
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export type GetMinioListResp = {
|
|
138
|
+
items?: TenantItem[]
|
|
139
|
+
pagination?: CommonCommon.Pagination
|
|
140
|
+
}
|
|
141
|
+
|
|
142
|
+
export type TenantItemCreateMinioReq = {
|
|
143
|
+
name?: string
|
|
144
|
+
namespace?: string
|
|
145
|
+
cluster?: string
|
|
146
|
+
serviceType?: TenantItemServiceType
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export type TenantItem = {
|
|
150
|
+
apiVersion?: string
|
|
151
|
+
kind?: string
|
|
152
|
+
spec?: TenantItemCreateMinioReq
|
|
153
|
+
status?: TenantItemStatus
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
export type TenantItemStatus = {
|
|
157
|
+
common?: CommonCommon.CommonItemStatus
|
|
158
|
+
}
|
|
159
|
+
|
|
117
160
|
export type GetMysqlUsersReq = {
|
|
118
161
|
cluster?: string
|
|
119
162
|
namespace?: string
|
|
@@ -625,4 +668,7 @@ export class Mysql {
|
|
|
625
668
|
static GetMysqlUsers(req: GetMysqlUsersReq, initReq?: fm.InitReq): Promise<GetMysqlUsersResp> {
|
|
626
669
|
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
670
|
}
|
|
671
|
+
static GetMinioList(req: GetMinioListReq, initReq?: fm.InitReq): Promise<GetMinioListResp> {
|
|
672
|
+
return fm.fetchReq<GetMinioListReq, GetMinioListResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/minios?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
673
|
+
}
|
|
628
674
|
}
|
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
|
|
|
@@ -143,6 +159,9 @@ export class StorageConfig {
|
|
|
143
159
|
static GetStorageConfigParam(req: GetStorageConfigParamReq, initReq?: fm.InitReq): Promise<GetStorageConfigParamResp> {
|
|
144
160
|
return fm.fetchReq<GetStorageConfigParamReq, GetStorageConfigParamResp>(`/apis/mcamel.io/mysql/v1alpha1/storage-config/param?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
145
161
|
}
|
|
162
|
+
static CreateStorageConfigBucketCheckJob(req: CreateStorageConfigBucketCheckJobReq, initReq?: fm.InitReq): Promise<CreateStorageConfigBucketCheckJobResp> {
|
|
163
|
+
return fm.fetchReq<CreateStorageConfigBucketCheckJobReq, CreateStorageConfigBucketCheckJobResp>(`/apis/mcamel.io/mysql/v1alpha1/storage-config/bucket/check-job`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
164
|
+
}
|
|
146
165
|
static CreateStorageConfig(req: CreateStorageConfigReq, initReq?: fm.InitReq): Promise<CreateStorageConfigResp> {
|
|
147
166
|
return fm.fetchReq<CreateStorageConfigReq, CreateStorageConfigResp>(`/apis/mcamel.io/mysql/v1alpha1/${req["workspaceId"]}/storage-config`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
148
167
|
}
|