@daocloud-proto/skoala 0.2.0-69 → 0.2.0-79
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.
|
@@ -17,8 +17,19 @@ export type Cluster = {
|
|
|
17
17
|
name?: string
|
|
18
18
|
}
|
|
19
19
|
|
|
20
|
+
export type Workspace = {
|
|
21
|
+
id?: string
|
|
22
|
+
name?: string
|
|
23
|
+
parentWorkspaceId?: string
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type ListWorkspaceRes = {
|
|
27
|
+
workspaces?: Workspace[]
|
|
28
|
+
total?: number
|
|
29
|
+
}
|
|
30
|
+
|
|
20
31
|
export type ListClusterReq = {
|
|
21
|
-
workspaceId?:
|
|
32
|
+
workspaceId?: string
|
|
22
33
|
page?: number
|
|
23
34
|
size?: number
|
|
24
35
|
}
|
|
@@ -31,7 +42,7 @@ export type ListClusterRes = {
|
|
|
31
42
|
}
|
|
32
43
|
|
|
33
44
|
export type ListNamespaceReq = {
|
|
34
|
-
workspaceId?:
|
|
45
|
+
workspaceId?: string
|
|
35
46
|
clusterName?: string
|
|
36
47
|
page?: number
|
|
37
48
|
size?: number
|
|
@@ -101,12 +101,12 @@ export type DeleteRegistryRes = {
|
|
|
101
101
|
export type PingRegistryReq = {
|
|
102
102
|
workspaceId?: string
|
|
103
103
|
type?: string
|
|
104
|
+
name?: string
|
|
104
105
|
addresses?: string[]
|
|
105
106
|
namespaces?: Namespace[]
|
|
106
107
|
}
|
|
107
108
|
|
|
108
109
|
export type PingRegistryRes = {
|
|
109
|
-
serviceCount?: number
|
|
110
110
|
namespaces?: Namespace[]
|
|
111
111
|
}
|
|
112
112
|
|
|
@@ -31,6 +31,9 @@ export class Skoala {
|
|
|
31
31
|
static ListClusterNamespace(req: SkoalaApiGeneralV1alpha1Skoala.ListNamespaceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListNamespaceRes> {
|
|
32
32
|
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListNamespaceReq, SkoalaApiGeneralV1alpha1Skoala.ListNamespaceRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
|
|
33
33
|
}
|
|
34
|
+
static ListWorkspace(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRes> {
|
|
35
|
+
return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRes>(`/apis/skoala.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
36
|
+
}
|
|
34
37
|
}
|
|
35
38
|
export class Registry {
|
|
36
39
|
static List(req: SkoalaApiIntegratedV1alpha1Registry.ListRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.ListRegistryRes> {
|
|
@@ -53,9 +56,6 @@ export class Registry {
|
|
|
53
56
|
}
|
|
54
57
|
}
|
|
55
58
|
export class Service {
|
|
56
|
-
static ListAll(req: SkoalaApiIntegratedV1alpha1Service.ListAllServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Service.ListServiceRes> {
|
|
57
|
-
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Service.ListAllServiceReq, SkoalaApiIntegratedV1alpha1Service.ListServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/services?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
58
|
-
}
|
|
59
59
|
static List(req: SkoalaApiIntegratedV1alpha1Service.ListServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Service.ListServiceRes> {
|
|
60
60
|
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Service.ListServiceReq, SkoalaApiIntegratedV1alpha1Service.ListServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "registryId"])}`, {...initReq, method: "GET"})
|
|
61
61
|
}
|
|
@@ -64,12 +64,6 @@ export class Service {
|
|
|
64
64
|
}
|
|
65
65
|
}
|
|
66
66
|
export class Instance {
|
|
67
|
-
static ListAll(req: SkoalaApiIntegratedV1alpha1Instance.ListAllInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes> {
|
|
68
|
-
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.ListAllInstanceReq, SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/instances?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
69
|
-
}
|
|
70
|
-
static ListRegistryAll(req: SkoalaApiIntegratedV1alpha1Instance.ListRegistryAllInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes> {
|
|
71
|
-
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.ListRegistryAllInstanceReq, SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/instances?${fm.renderURLSearchParams(req, ["workspaceId", "registryId"])}`, {...initReq, method: "GET"})
|
|
72
|
-
}
|
|
73
67
|
static List(req: SkoalaApiIntegratedV1alpha1Instance.ListInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes> {
|
|
74
68
|
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.ListInstanceReq, SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}/instances?${fm.renderURLSearchParams(req, ["workspaceId", "registryId", "serviceName"])}`, {...initReq, method: "GET"})
|
|
75
69
|
}
|