@daocloud-proto/kangaroo 0.3.1-28 → 0.3.1-32
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.
|
@@ -144,4 +144,14 @@ export type GetStorageStatisticResponse = {
|
|
|
144
144
|
export type StorageStatisticItem = {
|
|
145
145
|
timestamp?: string
|
|
146
146
|
value?: string
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
export type GetRegistryTypeRequest = {
|
|
150
|
+
workspace?: string
|
|
151
|
+
registry?: string
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
export type GetRegistryTypeResponse = {
|
|
155
|
+
registry?: string
|
|
156
|
+
type?: RegistryType
|
|
147
157
|
}
|
|
@@ -32,6 +32,9 @@ export class Registries {
|
|
|
32
32
|
static GetWorkspaceRegistry(req: KangarooIoApiRegistryV1alpha1Registry.GetWorkspaceRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Registry.Registry> {
|
|
33
33
|
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Registry.GetWorkspaceRegistryRequest, KangarooIoApiRegistryV1alpha1Registry.Registry>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}?${fm.renderURLSearchParams(req, ["workspace", "registry"])}`, {...initReq, method: "GET"})
|
|
34
34
|
}
|
|
35
|
+
static GetRegistryType(req: KangarooIoApiRegistryV1alpha1Registry.GetRegistryTypeRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Registry.GetRegistryTypeResponse> {
|
|
36
|
+
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Registry.GetRegistryTypeRequest, KangarooIoApiRegistryV1alpha1Registry.GetRegistryTypeResponse>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}/type?${fm.renderURLSearchParams(req, ["workspace", "registry"])}`, {...initReq, method: "GET"})
|
|
37
|
+
}
|
|
35
38
|
static UpdateWorkspaceRegistry(req: KangarooIoApiRegistryV1alpha1Registry.UpdateWorkspaceRegistryRequest, initReq?: fm.InitReq): Promise<KangarooIoApiRegistryV1alpha1Registry.Registry> {
|
|
36
39
|
return fm.fetchReq<KangarooIoApiRegistryV1alpha1Registry.UpdateWorkspaceRegistryRequest, KangarooIoApiRegistryV1alpha1Registry.Registry>(`/apis/kangaroo.io/v1alpha1/workspaces/${req["workspace"]}/registries/${req["registry"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
37
40
|
}
|