@daocloud-proto/mcamel-redis 0.4.0-140 → 0.4.0-142

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.
Files changed (2) hide show
  1. package/package.json +1 -1
  2. package/redis.pb.ts +46 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/mcamel-redis",
3
- "version":"0.4.0-140",
3
+ "version":"0.4.0-142",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/redis.pb.ts CHANGED
@@ -41,6 +41,17 @@ export enum GetRedisBackupListReqSortDir {
41
41
  DESC = "DESC",
42
42
  }
43
43
 
44
+ export enum GetMinioListReqSortDir {
45
+ ASC = "ASC",
46
+ DESC = "DESC",
47
+ }
48
+
49
+ export enum GetRedisBackupListRespRedisBackupItemStatusStatus {
50
+ Running = "Running",
51
+ Failed = "Failed",
52
+ Succeeded = "Succeeded",
53
+ }
54
+
44
55
  export enum CreateRedisBackupReqProvider {
45
56
  Minio = "Minio",
46
57
  Other = "Other",
@@ -112,6 +123,37 @@ export type GetRedisBackupListReq = {
112
123
  name?: string
113
124
  }
114
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
+
115
157
  export type GetRedisBackupListRespRedisBackupItemMetadata = {
116
158
  creationTimestamp?: string
117
159
  name?: string
@@ -133,6 +175,7 @@ export type GetRedisBackupListRespRedisBackupItemStatus = {
133
175
  failed?: number
134
176
  conditions?: GetRedisBackupListRespRedisBackupItemStatusJobCondition[]
135
177
  isAutoBackup?: boolean
178
+ status?: GetRedisBackupListRespRedisBackupItemStatusStatus
136
179
  }
137
180
 
138
181
  export type GetRedisBackupListRespRedisBackupItem = {
@@ -512,4 +555,7 @@ export class Redis {
512
555
  static DeleteRedisBackup(req: DeleteRedisBackupReq, initReq?: fm.InitReq): Promise<DeleteRedisBackupResp> {
513
556
  return fm.fetchReq<DeleteRedisBackupReq, DeleteRedisBackupResp>(`/apis/mcamel.io/redis/v1alpha1/redis/backups/${req["cluster"]}/${req["namespace"]}/${req["backupName"]}`, {...initReq, method: "DELETE"})
514
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
+ }
515
561
  }