@daocloud-proto/mcamel-redis 0.4.0-141 → 0.4.0-143
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/package.json +1 -1
- package/redis.pb.ts +39 -0
package/package.json
CHANGED
package/redis.pb.ts
CHANGED
|
@@ -41,6 +41,11 @@ export enum GetRedisBackupListReqSortDir {
|
|
|
41
41
|
DESC = "DESC",
|
|
42
42
|
}
|
|
43
43
|
|
|
44
|
+
export enum GetMinioListReqSortDir {
|
|
45
|
+
ASC = "ASC",
|
|
46
|
+
DESC = "DESC",
|
|
47
|
+
}
|
|
48
|
+
|
|
44
49
|
export enum GetRedisBackupListRespRedisBackupItemStatusStatus {
|
|
45
50
|
Running = "Running",
|
|
46
51
|
Failed = "Failed",
|
|
@@ -118,6 +123,37 @@ export type GetRedisBackupListReq = {
|
|
|
118
123
|
name?: string
|
|
119
124
|
}
|
|
120
125
|
|
|
126
|
+
export type GetMinioListReq = {
|
|
127
|
+
page?: number
|
|
128
|
+
pageSize?: number
|
|
129
|
+
sortDir?: GetMinioListReqSortDir
|
|
130
|
+
sortBy?: string
|
|
131
|
+
searchKey?: string
|
|
132
|
+
workspaceId?: number
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export type GetMinioListResp = {
|
|
136
|
+
items?: TenantItem[]
|
|
137
|
+
pagination?: CommonCommon.Pagination
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
export type TenantItemCreateMinioReq = {
|
|
141
|
+
name?: string
|
|
142
|
+
namespace?: string
|
|
143
|
+
cluster?: string
|
|
144
|
+
}
|
|
145
|
+
|
|
146
|
+
export type TenantItem = {
|
|
147
|
+
apiVersion?: string
|
|
148
|
+
kind?: string
|
|
149
|
+
spec?: TenantItemCreateMinioReq
|
|
150
|
+
status?: TenantItemStatus
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export type TenantItemStatus = {
|
|
154
|
+
common?: CommonCommon.CommonItemStatus
|
|
155
|
+
}
|
|
156
|
+
|
|
121
157
|
export type GetRedisBackupListRespRedisBackupItemMetadata = {
|
|
122
158
|
creationTimestamp?: string
|
|
123
159
|
name?: string
|
|
@@ -519,4 +555,7 @@ export class Redis {
|
|
|
519
555
|
static DeleteRedisBackup(req: DeleteRedisBackupReq, initReq?: fm.InitReq): Promise<DeleteRedisBackupResp> {
|
|
520
556
|
return fm.fetchReq<DeleteRedisBackupReq, DeleteRedisBackupResp>(`/apis/mcamel.io/redis/v1alpha1/redis/backups/${req["cluster"]}/${req["namespace"]}/${req["backupName"]}`, {...initReq, method: "DELETE"})
|
|
521
557
|
}
|
|
558
|
+
static GetMinioList(req: GetMinioListReq, initReq?: fm.InitReq): Promise<GetMinioListResp> {
|
|
559
|
+
return fm.fetchReq<GetMinioListReq, GetMinioListResp>(`/apis/mcamel.io/redis/v1alpha1/${req["workspaceId"]}/minios?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
560
|
+
}
|
|
522
561
|
}
|