@daocloud-proto/mcamel-rabbitmq 0.6.1 → 0.6.2-11
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/rabbitmq.pb.ts +24 -1
package/package.json
CHANGED
package/rabbitmq.pb.ts
CHANGED
|
@@ -62,6 +62,21 @@ export enum GetRabbitMqConfRespItemsParamType {
|
|
|
62
62
|
defaultPass = "defaultPass",
|
|
63
63
|
}
|
|
64
64
|
|
|
65
|
+
export type GetUsersReq = {
|
|
66
|
+
cluster?: string
|
|
67
|
+
namespace?: string
|
|
68
|
+
name?: string
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export type GetUsersRespUserItem = {
|
|
72
|
+
username?: string
|
|
73
|
+
password?: string
|
|
74
|
+
}
|
|
75
|
+
|
|
76
|
+
export type GetUsersResp = {
|
|
77
|
+
users?: GetUsersRespUserItem[]
|
|
78
|
+
}
|
|
79
|
+
|
|
65
80
|
export type GetRabbitMqListReq = {
|
|
66
81
|
page?: number
|
|
67
82
|
pageSize?: number
|
|
@@ -162,12 +177,17 @@ export type GetRabbitMqParamRespSelectDataIntValue = {
|
|
|
162
177
|
value?: number
|
|
163
178
|
}
|
|
164
179
|
|
|
180
|
+
export type GetRabbitMqParamRespSelectDataStorageClassValue = {
|
|
181
|
+
name?: string
|
|
182
|
+
allowVolumeExpansion?: boolean
|
|
183
|
+
}
|
|
184
|
+
|
|
165
185
|
|
|
166
186
|
type BaseGetRabbitMqParamRespSelectData = {
|
|
167
187
|
}
|
|
168
188
|
|
|
169
189
|
export type GetRabbitMqParamRespSelectData = BaseGetRabbitMqParamRespSelectData
|
|
170
|
-
& OneOf<{ sValue: GetRabbitMqParamRespSelectDataStringValue; rValue: GetRabbitMqParamRespSelectDataResourceValue; iValue: GetRabbitMqParamRespSelectDataIntValue }>
|
|
190
|
+
& OneOf<{ sValue: GetRabbitMqParamRespSelectDataStringValue; rValue: GetRabbitMqParamRespSelectDataResourceValue; iValue: GetRabbitMqParamRespSelectDataIntValue; scValue: GetRabbitMqParamRespSelectDataStorageClassValue }>
|
|
171
191
|
|
|
172
192
|
export type GetRabbitMqParamRespSelect = {
|
|
173
193
|
selectType?: GetRabbitMqParamRespSelectSelectType
|
|
@@ -343,4 +363,7 @@ export class RabbitMq {
|
|
|
343
363
|
static DeleteRabbitMqs(req: DeleteRabbitMqsReq, initReq?: fm.InitReq): Promise<DeleteRabbitMqsResp> {
|
|
344
364
|
return fm.fetchReq<DeleteRabbitMqsReq, DeleteRabbitMqsResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/rabbitmqs`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
345
365
|
}
|
|
366
|
+
static GetRabbitMqUsers(req: GetUsersReq, initReq?: fm.InitReq): Promise<GetUsersResp> {
|
|
367
|
+
return fm.fetchReq<GetUsersReq, GetUsersResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/rabbitmq/${req["cluster"]}/${req["namespace"]}/${req["name"]}/users?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
368
|
+
}
|
|
346
369
|
}
|