@daocloud-proto/mcamel-rabbitmq 0.12.1-39 → 0.12.1-40
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 +15 -0
- package/package.json +1 -1
package/cluster.pb.ts
CHANGED
|
@@ -63,6 +63,18 @@ export enum GetInsightAgentStatusRespInsightAgentStatus {
|
|
|
63
63
|
Install = "Install",
|
|
64
64
|
}
|
|
65
65
|
|
|
66
|
+
export type RestartInstanceReq = {
|
|
67
|
+
workspaceId?: number
|
|
68
|
+
cluster?: string
|
|
69
|
+
namespace?: string
|
|
70
|
+
name?: string
|
|
71
|
+
extra?: string
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type RestartInstanceResp = {
|
|
75
|
+
message?: string
|
|
76
|
+
}
|
|
77
|
+
|
|
66
78
|
export type GetPermissionsListReq = {
|
|
67
79
|
workspaceId?: number
|
|
68
80
|
}
|
|
@@ -350,4 +362,7 @@ export class Cluster {
|
|
|
350
362
|
static GetPermissionsList(req: GetPermissionsListReq, initReq?: fm.InitReq): Promise<GetPermissionsListResp> {
|
|
351
363
|
return fm.fetchReq<GetPermissionsListReq, GetPermissionsListResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
352
364
|
}
|
|
365
|
+
static RestartInstance(req: RestartInstanceReq, initReq?: fm.InitReq): Promise<RestartInstanceResp> {
|
|
366
|
+
return fm.fetchReq<RestartInstanceReq, RestartInstanceResp>(`/apis/mcamel.io/rabbitmq/v1alpha1/${req["workspaceId"]}/restart`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
367
|
+
}
|
|
353
368
|
}
|