@daocloud-proto/hydra 0.11.0-dev-23 → 0.11.0-dev-26
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.
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import * as HydraCommonCommon from "../../../common/common.pb"
|
|
8
8
|
import * as fm from "../../../fetch.pb"
|
|
9
|
+
import * as GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"
|
|
9
10
|
import * as HydraManagement_apiWorkspaceV1alpha1Workspace from "../../../management-api/workspace/v1alpha1/workspace.pb"
|
|
10
11
|
export type ListClusterRequest = {
|
|
11
12
|
page?: HydraCommonCommon.Pagination
|
|
@@ -16,8 +17,15 @@ export type ListClusterResponse = {
|
|
|
16
17
|
page?: HydraCommonCommon.Pagination
|
|
17
18
|
}
|
|
18
19
|
|
|
20
|
+
export type ConstantsResponse = {
|
|
21
|
+
defaultFilesStorageCapacity?: string
|
|
22
|
+
}
|
|
23
|
+
|
|
19
24
|
export class CoreService {
|
|
20
25
|
static AdminListCluster(req: ListClusterRequest, initReq?: fm.InitReq): Promise<ListClusterResponse> {
|
|
21
26
|
return fm.fetchReq<ListClusterRequest, ListClusterResponse>(`/apis/admin.hydra.io/v1alpha1/clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
22
27
|
}
|
|
28
|
+
static AdminListConstants(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<ConstantsResponse> {
|
|
29
|
+
return fm.fetchReq<GoogleProtobufEmpty.Empty, ConstantsResponse>(`/apis/admin.hydra.io/v1alpha1/constants?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
30
|
+
}
|
|
23
31
|
}
|
|
@@ -38,6 +38,14 @@ export type Cluster = {
|
|
|
38
38
|
status?: ClusterStatus
|
|
39
39
|
agentInstalled?: boolean
|
|
40
40
|
baseUrl?: string
|
|
41
|
+
components?: Component[]
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type Component = {
|
|
45
|
+
name?: string
|
|
46
|
+
installedVersion?: string
|
|
47
|
+
recommendedVersion?: string
|
|
48
|
+
ready?: boolean
|
|
41
49
|
}
|
|
42
50
|
|
|
43
51
|
export type ListClustersResponse = {
|