@daocloud-proto/mcamel-rabbitmq 0.12.1-91 → 0.12.1-95
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/cluster.pb.ts +13 -0
- package/common.pb.ts +1 -0
- package/package.json +1 -1
- package/template.pb.ts +1 -0
package/cluster.pb.ts
CHANGED
|
@@ -88,6 +88,7 @@ export type RestartInstanceReq = {
|
|
|
88
88
|
namespace?: string
|
|
89
89
|
name?: string
|
|
90
90
|
extra?: string
|
|
91
|
+
instanceType?: string
|
|
91
92
|
}
|
|
92
93
|
|
|
93
94
|
export type RestartInstanceResp = {
|
|
@@ -302,11 +303,20 @@ export type GetWorkspaceListResp = {
|
|
|
302
303
|
pagination?: CommonCommon.Pagination
|
|
303
304
|
}
|
|
304
305
|
|
|
306
|
+
export type GetClusterHostnetworkPortsReq = {
|
|
307
|
+
workspaceId?: number
|
|
308
|
+
cluster?: string
|
|
309
|
+
}
|
|
310
|
+
|
|
305
311
|
export type GetClusterListReq = {
|
|
306
312
|
workspaceId?: number
|
|
307
313
|
searchKey?: string
|
|
308
314
|
}
|
|
309
315
|
|
|
316
|
+
export type GetClusterHostnetworkPortsResp = {
|
|
317
|
+
items?: string[]
|
|
318
|
+
}
|
|
319
|
+
|
|
310
320
|
export type GetClusterListResp = {
|
|
311
321
|
items?: string[]
|
|
312
322
|
clusters?: ClusterItem[]
|
|
@@ -348,6 +358,9 @@ export class Cluster {
|
|
|
348
358
|
static GetClusterList(req: GetClusterListReq, initReq?: fm.InitReq): Promise<GetClusterListResp> {
|
|
349
359
|
return fm.fetchReq<GetClusterListReq, GetClusterListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
350
360
|
}
|
|
361
|
+
static GetClusterHostnetworkPorts(req: GetClusterHostnetworkPortsReq, initReq?: fm.InitReq): Promise<GetClusterHostnetworkPortsResp> {
|
|
362
|
+
return fm.fetchReq<GetClusterHostnetworkPortsReq, GetClusterHostnetworkPortsResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/hostnetwork_ports?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
363
|
+
}
|
|
351
364
|
static GetClusterNamespaceList(req: GetClusterNamespaceListReq, initReq?: fm.InitReq): Promise<GetClusterNamespaceListResp> {
|
|
352
365
|
return fm.fetchReq<GetClusterNamespaceListReq, GetClusterNamespaceListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/${req["cluster"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "cluster"])}`, {...initReq, method: "GET"})
|
|
353
366
|
}
|
package/common.pb.ts
CHANGED
package/package.json
CHANGED