@daocloud-proto/skoala 0.12.2-34 → 0.12.2-38
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.
|
@@ -115,4 +115,16 @@ export type Image = {
|
|
|
115
115
|
export type Component = {
|
|
116
116
|
name?: string
|
|
117
117
|
images?: {[key: string]: Image}
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export type Mysql = {
|
|
121
|
+
id?: string
|
|
122
|
+
name?: string
|
|
123
|
+
address?: string
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
export type Redis = {
|
|
127
|
+
id?: string
|
|
128
|
+
name?: string
|
|
129
|
+
address?: string
|
|
118
130
|
}
|
|
@@ -181,4 +181,26 @@ export type GetPrerequisiteReq = {
|
|
|
181
181
|
|
|
182
182
|
export type GetPrerequisiteRes = {
|
|
183
183
|
ok?: boolean
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
export type ListMysqlReq = {
|
|
187
|
+
workspaceId?: string
|
|
188
|
+
page?: number
|
|
189
|
+
pageSize?: number
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export type ListMysqlRes = {
|
|
193
|
+
items?: SkoalaApiGeneralV1alpha1Common.Mysql[]
|
|
194
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
export type ListRedisReq = {
|
|
198
|
+
workspaceId?: string
|
|
199
|
+
page?: number
|
|
200
|
+
pageSize?: number
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export type ListRedisRes = {
|
|
204
|
+
items?: SkoalaApiGeneralV1alpha1Common.Redis[]
|
|
205
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
184
206
|
}
|
|
@@ -72,6 +72,12 @@ export class Skoala {
|
|
|
72
72
|
static GetPrerequisite(req: SkoalaApiGeneralV1alpha1Skoala.GetPrerequisiteReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.GetPrerequisiteRes> {
|
|
73
73
|
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"})
|
|
74
74
|
}
|
|
75
|
+
static ListMysql(req: SkoalaApiGeneralV1alpha1Skoala.ListMysqlReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListMysqlRes> {
|
|
76
|
+
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListMysqlReq, SkoalaApiGeneralV1alpha1Skoala.ListMysqlRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/mysqls?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
77
|
+
}
|
|
78
|
+
static ListRedis(req: SkoalaApiGeneralV1alpha1Skoala.ListRedisReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListRedisRes> {
|
|
79
|
+
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListRedisReq, SkoalaApiGeneralV1alpha1Skoala.ListRedisRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/redis?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
80
|
+
}
|
|
75
81
|
}
|
|
76
82
|
export class Registry {
|
|
77
83
|
static List(req: SkoalaApiIntegratedV1alpha1Registry.ListRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.ListRegistryRes> {
|