@daocloud-proto/mcamel-redis 0.4.0-129 → 0.4.0-130
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 +28 -0
package/package.json
CHANGED
package/redis.pb.ts
CHANGED
|
@@ -46,6 +46,11 @@ export enum CreateRedisBackupReqProvider {
|
|
|
46
46
|
Other = "Other",
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
export enum UpdateRedisAutoBackupReqProvider {
|
|
50
|
+
Minio = "Minio",
|
|
51
|
+
Other = "Other",
|
|
52
|
+
}
|
|
53
|
+
|
|
49
54
|
export enum GetRedisListReqSortDir {
|
|
50
55
|
ASC = "ASC",
|
|
51
56
|
DESC = "DESC",
|
|
@@ -89,6 +94,7 @@ export type DeleteRedisBackupReq = {
|
|
|
89
94
|
cluster?: string
|
|
90
95
|
namespace?: string
|
|
91
96
|
backupName?: string
|
|
97
|
+
isOpenAutoBackup?: boolean
|
|
92
98
|
}
|
|
93
99
|
|
|
94
100
|
export type DeleteRedisBackupResp = {
|
|
@@ -126,6 +132,7 @@ export type GetRedisBackupListRespRedisBackupItemStatus = {
|
|
|
126
132
|
succeeded?: number
|
|
127
133
|
failed?: number
|
|
128
134
|
conditions?: GetRedisBackupListRespRedisBackupItemStatusJobCondition[]
|
|
135
|
+
isAutoBackup?: boolean
|
|
129
136
|
}
|
|
130
137
|
|
|
131
138
|
export type GetRedisBackupListRespRedisBackupItem = {
|
|
@@ -151,6 +158,24 @@ export type CreateRedisBackupReq = {
|
|
|
151
158
|
storePath?: string
|
|
152
159
|
}
|
|
153
160
|
|
|
161
|
+
export type UpdateRedisAutoBackupReq = {
|
|
162
|
+
cluster?: string
|
|
163
|
+
namespace?: string
|
|
164
|
+
name?: string
|
|
165
|
+
instanceType?: InstanceType
|
|
166
|
+
accessKeyId?: string
|
|
167
|
+
accessKeySecret?: string
|
|
168
|
+
endpoint?: string
|
|
169
|
+
provider?: UpdateRedisAutoBackupReqProvider
|
|
170
|
+
storePath?: string
|
|
171
|
+
isOpenAutoBackup?: boolean
|
|
172
|
+
backupSchedule?: string
|
|
173
|
+
}
|
|
174
|
+
|
|
175
|
+
export type UpdateRedisAutoBackupResp = {
|
|
176
|
+
message?: string
|
|
177
|
+
}
|
|
178
|
+
|
|
154
179
|
export type CreateRedisBackupResp = {
|
|
155
180
|
message?: string
|
|
156
181
|
}
|
|
@@ -478,6 +503,9 @@ export class Redis {
|
|
|
478
503
|
static CreateRedisBackup(req: CreateRedisBackupReq, initReq?: fm.InitReq): Promise<CreateRedisBackupResp> {
|
|
479
504
|
return fm.fetchReq<CreateRedisBackupReq, CreateRedisBackupResp>(`/apis/mcamel.io/redis/v1alpha1/redis/backup`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
480
505
|
}
|
|
506
|
+
static UpdateRedisAutoBackup(req: UpdateRedisAutoBackupReq, initReq?: fm.InitReq): Promise<UpdateRedisAutoBackupResp> {
|
|
507
|
+
return fm.fetchReq<UpdateRedisAutoBackupReq, UpdateRedisAutoBackupResp>(`/apis/mcamel.io/redis/v1alpha1/redis/${req["cluster"]}/${req["namespace"]}/${req["name"]}/auto-backup`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
508
|
+
}
|
|
481
509
|
static GetRedisBackupList(req: GetRedisBackupListReq, initReq?: fm.InitReq): Promise<GetRedisBackupListResp> {
|
|
482
510
|
return fm.fetchReq<GetRedisBackupListReq, GetRedisBackupListResp>(`/apis/mcamel.io/redis/v1alpha1/redis/backups?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
483
511
|
}
|