@daocloud-proto/mcamel-redis 0.4.0-121 → 0.4.0-124
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 +52 -0
package/package.json
CHANGED
package/redis.pb.ts
CHANGED
|
@@ -36,6 +36,11 @@ export enum RedisPodType {
|
|
|
36
36
|
FollowerRedis = "FollowerRedis",
|
|
37
37
|
}
|
|
38
38
|
|
|
39
|
+
export enum GetRedisBackupListReqSortDir {
|
|
40
|
+
ASC = "ASC",
|
|
41
|
+
DESC = "DESC",
|
|
42
|
+
}
|
|
43
|
+
|
|
39
44
|
export enum CreateRedisBackupReqProvider {
|
|
40
45
|
Minio = "Minio",
|
|
41
46
|
Other = "Other",
|
|
@@ -80,6 +85,50 @@ export enum GetRedisConfRespItemsParamType {
|
|
|
80
85
|
conf = "conf",
|
|
81
86
|
}
|
|
82
87
|
|
|
88
|
+
export type GetRedisBackupListReq = {
|
|
89
|
+
page?: number
|
|
90
|
+
pageSize?: number
|
|
91
|
+
sortDir?: GetRedisBackupListReqSortDir
|
|
92
|
+
sortBy?: string
|
|
93
|
+
searchKey?: string
|
|
94
|
+
cluster?: string
|
|
95
|
+
namespace?: string
|
|
96
|
+
name?: string
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
export type GetRedisBackupListRespRedisBackupItemMetadata = {
|
|
100
|
+
creationTimestamp?: string
|
|
101
|
+
name?: string
|
|
102
|
+
namespace?: string
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export type GetRedisBackupListRespRedisBackupItemStatusJobCondition = {
|
|
106
|
+
type?: string
|
|
107
|
+
status?: string
|
|
108
|
+
reason?: string
|
|
109
|
+
message?: string
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export type GetRedisBackupListRespRedisBackupItemStatus = {
|
|
113
|
+
completionTime?: string
|
|
114
|
+
startTime?: string
|
|
115
|
+
active?: number
|
|
116
|
+
succeeded?: number
|
|
117
|
+
failed?: number
|
|
118
|
+
conditions?: GetRedisBackupListRespRedisBackupItemStatusJobCondition[]
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export type GetRedisBackupListRespRedisBackupItem = {
|
|
122
|
+
metadata?: GetRedisBackupListRespRedisBackupItemMetadata
|
|
123
|
+
spec?: CreateRedisBackupReq
|
|
124
|
+
status?: GetRedisBackupListRespRedisBackupItemStatus
|
|
125
|
+
}
|
|
126
|
+
|
|
127
|
+
export type GetRedisBackupListResp = {
|
|
128
|
+
items?: GetRedisBackupListRespRedisBackupItem[]
|
|
129
|
+
pagination?: CommonCommon.Pagination
|
|
130
|
+
}
|
|
131
|
+
|
|
83
132
|
export type CreateRedisBackupReq = {
|
|
84
133
|
cluster?: string
|
|
85
134
|
namespace?: string
|
|
@@ -419,4 +468,7 @@ export class Redis {
|
|
|
419
468
|
static CreateRedisBackup(req: CreateRedisBackupReq, initReq?: fm.InitReq): Promise<CreateRedisBackupResp> {
|
|
420
469
|
return fm.fetchReq<CreateRedisBackupReq, CreateRedisBackupResp>(`/apis/mcamel.io/redis/v1alpha1/redis/backup`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
421
470
|
}
|
|
471
|
+
static GetRedisBackupList(req: GetRedisBackupListReq, initReq?: fm.InitReq): Promise<GetRedisBackupListResp> {
|
|
472
|
+
return fm.fetchReq<GetRedisBackupListReq, GetRedisBackupListResp>(`/apis/mcamel.io/redis/v1alpha1/redis/backups?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
473
|
+
}
|
|
422
474
|
}
|