@daocloud-proto/hydra 0.15.0-dev-4 → 0.15.0-dev-6
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.
|
@@ -69,6 +69,24 @@ export type ListClusterNamespaceResponse = {
|
|
|
69
69
|
page?: HydraCommonCommon.Pagination
|
|
70
70
|
}
|
|
71
71
|
|
|
72
|
+
export type ListConfigMapsRequest = {
|
|
73
|
+
workspace?: number
|
|
74
|
+
cluster?: string
|
|
75
|
+
namespace?: string
|
|
76
|
+
page?: HydraCommonCommon.Pagination
|
|
77
|
+
name?: string
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export type ConfigMap = {
|
|
81
|
+
name?: string
|
|
82
|
+
namespace?: string
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export type ListConfigMapsResponse = {
|
|
86
|
+
items?: ConfigMap[]
|
|
87
|
+
page?: HydraCommonCommon.Pagination
|
|
88
|
+
}
|
|
89
|
+
|
|
72
90
|
export class WorkspaceService {
|
|
73
91
|
static ListWorkspaces(req: ListWorkspaceRequest, initReq?: fm.InitReq): Promise<ListWorkspacesResponse> {
|
|
74
92
|
return fm.fetchReq<ListWorkspaceRequest, ListWorkspacesResponse>(`/apis/hydra.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -79,4 +97,7 @@ export class WorkspaceService {
|
|
|
79
97
|
static ListClusterNamespaces(req: ListClusterNamespacesRequest, initReq?: fm.InitReq): Promise<ListClusterNamespaceResponse> {
|
|
80
98
|
return fm.fetchReq<ListClusterNamespacesRequest, ListClusterNamespaceResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/cluster-namespaces?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
81
99
|
}
|
|
100
|
+
static ListConfigMaps(req: ListConfigMapsRequest, initReq?: fm.InitReq): Promise<ListConfigMapsResponse> {
|
|
101
|
+
return fm.fetchReq<ListConfigMapsRequest, ListConfigMapsResponse>(`/apis/hydra.io/v1alpha1/workspaces/${req["workspace"]}/configmaps?${fm.renderURLSearchParams(req, ["workspace"])}`, {...initReq, method: "GET"})
|
|
102
|
+
}
|
|
82
103
|
}
|