@daocloud-proto/skoala 0.21.1 → 0.21.2
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.
|
@@ -212,6 +212,7 @@ export type GetPrerequisiteRes = {
|
|
|
212
212
|
|
|
213
213
|
export type ListMysqlReq = {
|
|
214
214
|
workspaceId?: string
|
|
215
|
+
clusterName?: string
|
|
215
216
|
page?: number
|
|
216
217
|
pageSize?: number
|
|
217
218
|
}
|
|
@@ -223,6 +224,7 @@ export type ListMysqlRes = {
|
|
|
223
224
|
|
|
224
225
|
export type ListRedisReq = {
|
|
225
226
|
workspaceId?: string
|
|
227
|
+
clusterName?: string
|
|
226
228
|
page?: number
|
|
227
229
|
pageSize?: number
|
|
228
230
|
}
|
|
@@ -81,10 +81,10 @@ export class Skoala {
|
|
|
81
81
|
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.GetPrerequisiteReq, SkoalaApiGeneralV1alpha1Skoala.GetPrerequisiteRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/prerequisites/${req["prerequisite"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "prerequisite"])}`, {...initReq, method: "GET"})
|
|
82
82
|
}
|
|
83
83
|
static ListMysql(req: SkoalaApiGeneralV1alpha1Skoala.ListMysqlReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListMysqlRes> {
|
|
84
|
-
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListMysqlReq, SkoalaApiGeneralV1alpha1Skoala.ListMysqlRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/mysqls?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
84
|
+
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListMysqlReq, SkoalaApiGeneralV1alpha1Skoala.ListMysqlRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/mysqls?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
|
|
85
85
|
}
|
|
86
86
|
static ListRedis(req: SkoalaApiGeneralV1alpha1Skoala.ListRedisReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListRedisRes> {
|
|
87
|
-
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListRedisReq, SkoalaApiGeneralV1alpha1Skoala.ListRedisRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/redis?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
87
|
+
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListRedisReq, SkoalaApiGeneralV1alpha1Skoala.ListRedisRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/redis?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
|
|
88
88
|
}
|
|
89
89
|
static GetNodePortStatus(req: SkoalaApiGeneralV1alpha1Skoala.GetNodePortStatusReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.GetNodePortStatusRes> {
|
|
90
90
|
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.GetNodePortStatusReq, SkoalaApiGeneralV1alpha1Skoala.GetNodePortStatusRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/nodeport/${req["portNumber"]}/status?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "portNumber"])}`, {...initReq, method: "GET"})
|