@daocloud-proto/baize 0.106.1 → 0.106.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,25 @@ export type GetDatasetCondaOptionsResponse = {
|
|
|
212
212
|
pythonVersions?: string[]
|
|
213
213
|
}
|
|
214
214
|
|
|
215
|
+
export type RelatedInstancesRequest = {
|
|
216
|
+
workspace?: number
|
|
217
|
+
cluster?: string
|
|
218
|
+
namespace?: string
|
|
219
|
+
name?: string
|
|
220
|
+
page?: BaizeCommonCommon.Pagination
|
|
221
|
+
}
|
|
222
|
+
|
|
223
|
+
export type RelatedInstancesResponseInstance = {
|
|
224
|
+
name?: string
|
|
225
|
+
namespace?: string
|
|
226
|
+
cluster?: string
|
|
227
|
+
}
|
|
228
|
+
|
|
229
|
+
export type RelatedInstancesResponse = {
|
|
230
|
+
items?: RelatedInstancesResponseInstance[]
|
|
231
|
+
page?: BaizeCommonCommon.Pagination
|
|
232
|
+
}
|
|
233
|
+
|
|
215
234
|
export class DatasetManagement {
|
|
216
235
|
static ListDatasets(req: ListDatasetRequest, initReq?: fm.InitReq): Promise<ListDatasetResponse> {
|
|
217
236
|
return fm.fetchReq<ListDatasetRequest, ListDatasetResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/datasets?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
@@ -234,4 +253,7 @@ export class DatasetManagement {
|
|
|
234
253
|
static GetDatasetCondaOptions(req: GetDatasetCondaOptionsRequest, initReq?: fm.InitReq): Promise<GetDatasetCondaOptionsResponse> {
|
|
235
254
|
return fm.fetchReq<GetDatasetCondaOptionsRequest, GetDatasetCondaOptionsResponse>(`/apis/baize.io/v1alpha1/datasets/conda/options?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
236
255
|
}
|
|
256
|
+
static GetRelatedInstances(req: RelatedInstancesRequest, initReq?: fm.InitReq): Promise<RelatedInstancesResponse> {
|
|
257
|
+
return fm.fetchReq<RelatedInstancesRequest, RelatedInstancesResponse>(`/apis/baize.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/datasets/${req["name"]}/related-instances?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
258
|
+
}
|
|
237
259
|
}
|