@daocloud-proto/skoala 0.2.0-46 → 0.2.0-52
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.
- package/api/hosted/v1alpha1/gateway.pb.ts +6 -0
- package/api/hosted/v1alpha1/nacos.pb.ts +6 -0
- package/api/hosted/v1alpha1/sentinel.pb.ts +6 -0
- package/api/integrated/v1alpha1/instance.pb.ts +5 -0
- package/api/integrated/v1alpha1/registry.pb.ts +8 -0
- package/api/integrated/v1alpha1/service.pb.ts +3 -0
- package/api/skoala/v1alpha1/skoala.pb.ts +31 -33
- package/package.json +1 -1
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
export type ListGatewayReq = {
|
|
7
|
+
workspaceId?: string
|
|
7
8
|
page?: number
|
|
8
9
|
}
|
|
9
10
|
|
|
@@ -11,6 +12,7 @@ export type ListGatewayRes = {
|
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export type GetGatewayReq = {
|
|
15
|
+
workspaceId?: string
|
|
14
16
|
gatewayName?: string
|
|
15
17
|
}
|
|
16
18
|
|
|
@@ -18,6 +20,7 @@ export type GetGatewayRes = {
|
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
export type UpdateGatewayReq = {
|
|
23
|
+
workspaceId?: string
|
|
21
24
|
gatewayName?: string
|
|
22
25
|
config?: string
|
|
23
26
|
}
|
|
@@ -26,12 +29,15 @@ export type UpdateGatewayRes = {
|
|
|
26
29
|
}
|
|
27
30
|
|
|
28
31
|
export type CreateGatewayReq = {
|
|
32
|
+
workspaceId?: string
|
|
33
|
+
gatewayName?: string
|
|
29
34
|
}
|
|
30
35
|
|
|
31
36
|
export type CreateGatewayRes = {
|
|
32
37
|
}
|
|
33
38
|
|
|
34
39
|
export type DeleteGatewayReq = {
|
|
40
|
+
workspaceId?: string
|
|
35
41
|
gatewayName?: string
|
|
36
42
|
}
|
|
37
43
|
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
export type ListNacosReq = {
|
|
7
|
+
workspaceId?: string
|
|
7
8
|
page?: number
|
|
8
9
|
}
|
|
9
10
|
|
|
@@ -11,6 +12,7 @@ export type ListNacosRes = {
|
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export type GetNacosReq = {
|
|
15
|
+
workspaceId?: string
|
|
14
16
|
nacosName?: string
|
|
15
17
|
}
|
|
16
18
|
|
|
@@ -18,6 +20,7 @@ export type GetNacosRes = {
|
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
export type UpdateNacosReq = {
|
|
23
|
+
workspaceId?: string
|
|
21
24
|
nacosName?: string
|
|
22
25
|
config?: string
|
|
23
26
|
}
|
|
@@ -26,12 +29,15 @@ export type UpdateNacosRes = {
|
|
|
26
29
|
}
|
|
27
30
|
|
|
28
31
|
export type CreateNacosReq = {
|
|
32
|
+
workspaceId?: string
|
|
33
|
+
gatewayName?: string
|
|
29
34
|
}
|
|
30
35
|
|
|
31
36
|
export type CreateNacosRes = {
|
|
32
37
|
}
|
|
33
38
|
|
|
34
39
|
export type DeleteNacosReq = {
|
|
40
|
+
workspaceId?: string
|
|
35
41
|
nacosName?: string
|
|
36
42
|
}
|
|
37
43
|
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
export type ListSentinelReq = {
|
|
7
|
+
workspaceId?: string
|
|
7
8
|
page?: number
|
|
8
9
|
}
|
|
9
10
|
|
|
@@ -11,6 +12,7 @@ export type ListSentinelRes = {
|
|
|
11
12
|
}
|
|
12
13
|
|
|
13
14
|
export type GetSentinelReq = {
|
|
15
|
+
workspaceId?: string
|
|
14
16
|
sentinelName?: string
|
|
15
17
|
}
|
|
16
18
|
|
|
@@ -18,6 +20,7 @@ export type GetSentinelRes = {
|
|
|
18
20
|
}
|
|
19
21
|
|
|
20
22
|
export type UpdateSentinelReq = {
|
|
23
|
+
workspaceId?: string
|
|
21
24
|
sentinelName?: string
|
|
22
25
|
config?: string
|
|
23
26
|
}
|
|
@@ -26,12 +29,15 @@ export type UpdateSentinelRes = {
|
|
|
26
29
|
}
|
|
27
30
|
|
|
28
31
|
export type CreateSentinelReq = {
|
|
32
|
+
workspaceId?: string
|
|
33
|
+
gatewayName?: string
|
|
29
34
|
}
|
|
30
35
|
|
|
31
36
|
export type CreateSentinelRes = {
|
|
32
37
|
}
|
|
33
38
|
|
|
34
39
|
export type DeleteSentinelReq = {
|
|
40
|
+
workspaceId?: string
|
|
35
41
|
sentinelName?: string
|
|
36
42
|
}
|
|
37
43
|
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import * as SkoalaApiIntegratedV1alpha1Registry from "./registry.pb"
|
|
8
8
|
export type Instance = {
|
|
9
|
+
workspaceId?: string
|
|
9
10
|
id?: string
|
|
10
11
|
serviceName?: string
|
|
11
12
|
frameworkType?: string
|
|
@@ -17,6 +18,7 @@ export type Instance = {
|
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
export type ListInstanceReq = {
|
|
21
|
+
workspaceId?: string
|
|
20
22
|
registryId?: string
|
|
21
23
|
namespaceId?: string
|
|
22
24
|
groupName?: string
|
|
@@ -24,11 +26,13 @@ export type ListInstanceReq = {
|
|
|
24
26
|
}
|
|
25
27
|
|
|
26
28
|
export type ListAllInstanceReq = {
|
|
29
|
+
workspaceId?: string
|
|
27
30
|
page?: number
|
|
28
31
|
size?: number
|
|
29
32
|
}
|
|
30
33
|
|
|
31
34
|
export type ListRegistryAllInstanceReq = {
|
|
35
|
+
workspaceId?: string
|
|
32
36
|
registryId?: string
|
|
33
37
|
page?: number
|
|
34
38
|
size?: number
|
|
@@ -42,6 +46,7 @@ export type ListInstanceRes = {
|
|
|
42
46
|
}
|
|
43
47
|
|
|
44
48
|
export type GetInstanceReq = {
|
|
49
|
+
workspaceId?: string
|
|
45
50
|
registryId?: string
|
|
46
51
|
namespaceId?: string
|
|
47
52
|
groupName?: string
|
|
@@ -20,6 +20,7 @@ export enum RegistryType {
|
|
|
20
20
|
}
|
|
21
21
|
|
|
22
22
|
export type Registry = {
|
|
23
|
+
workspaceId?: string
|
|
23
24
|
registryId?: string
|
|
24
25
|
name?: string
|
|
25
26
|
type?: RegistryType
|
|
@@ -27,6 +28,7 @@ export type Registry = {
|
|
|
27
28
|
addresses?: string[]
|
|
28
29
|
namespaces?: Namespace[]
|
|
29
30
|
isHosted?: boolean
|
|
31
|
+
version?: string
|
|
30
32
|
serviceCount?: number
|
|
31
33
|
updatedAt?: string
|
|
32
34
|
createdAt?: string
|
|
@@ -37,6 +39,7 @@ export type RegistryOnlyID = {
|
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
export type ListRegistryReq = {
|
|
42
|
+
workspaceId?: string
|
|
40
43
|
type?: string
|
|
41
44
|
name?: string
|
|
42
45
|
page?: number
|
|
@@ -51,6 +54,7 @@ export type ListRegistryRes = {
|
|
|
51
54
|
}
|
|
52
55
|
|
|
53
56
|
export type GetRegistryReq = {
|
|
57
|
+
workspaceId?: string
|
|
54
58
|
registryId?: string
|
|
55
59
|
}
|
|
56
60
|
|
|
@@ -59,6 +63,7 @@ export type GetRegistryRes = {
|
|
|
59
63
|
}
|
|
60
64
|
|
|
61
65
|
export type UpdateRegistryReq = {
|
|
66
|
+
workspaceId?: string
|
|
62
67
|
registryId?: string
|
|
63
68
|
name?: string
|
|
64
69
|
type?: string
|
|
@@ -72,6 +77,7 @@ export type UpdateRegistryRes = {
|
|
|
72
77
|
}
|
|
73
78
|
|
|
74
79
|
export type CreateRegistryReq = {
|
|
80
|
+
workspaceId?: string
|
|
75
81
|
name?: string
|
|
76
82
|
type?: string
|
|
77
83
|
addresses?: string[]
|
|
@@ -84,6 +90,7 @@ export type CreateRegistryRes = {
|
|
|
84
90
|
}
|
|
85
91
|
|
|
86
92
|
export type DeleteRegistryReq = {
|
|
93
|
+
workspaceId?: string
|
|
87
94
|
registryId?: string
|
|
88
95
|
}
|
|
89
96
|
|
|
@@ -92,6 +99,7 @@ export type DeleteRegistryRes = {
|
|
|
92
99
|
}
|
|
93
100
|
|
|
94
101
|
export type PingRegistryReq = {
|
|
102
|
+
workspaceId?: string
|
|
95
103
|
type?: string
|
|
96
104
|
addresses?: string[]
|
|
97
105
|
namespaces?: Namespace[]
|
|
@@ -14,12 +14,14 @@ export type Service = {
|
|
|
14
14
|
}
|
|
15
15
|
|
|
16
16
|
export type ListServiceReq = {
|
|
17
|
+
workspaceId?: string
|
|
17
18
|
registryId?: string
|
|
18
19
|
page?: number
|
|
19
20
|
size?: number
|
|
20
21
|
}
|
|
21
22
|
|
|
22
23
|
export type ListAllServiceReq = {
|
|
24
|
+
workspaceId?: string
|
|
23
25
|
page?: number
|
|
24
26
|
size?: number
|
|
25
27
|
}
|
|
@@ -32,6 +34,7 @@ export type ListServiceRes = {
|
|
|
32
34
|
}
|
|
33
35
|
|
|
34
36
|
export type GetServiceReq = {
|
|
37
|
+
workspaceId?: string
|
|
35
38
|
registryId?: string
|
|
36
39
|
namespaceId?: string
|
|
37
40
|
groupName?: string
|
|
@@ -17,6 +17,9 @@ export class Hive {
|
|
|
17
17
|
static GetVersion(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Version.GetVersionRes> {
|
|
18
18
|
return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiGeneralV1alpha1Version.GetVersionRes>(`/apis/hive.skoala.io/v1alpha1/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
19
19
|
}
|
|
20
|
+
static List(req: SkoalaApiHostedV1alpha1Gateway.ListGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.ListGatewayRes> {
|
|
21
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListGatewayReq, SkoalaApiHostedV1alpha1Gateway.ListGatewayRes>(`/apis/hive.skoala.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
22
|
+
}
|
|
20
23
|
}
|
|
21
24
|
export class Sesame {
|
|
22
25
|
static GetVersion(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Version.GetVersionRes> {
|
|
@@ -25,102 +28,97 @@ export class Sesame {
|
|
|
25
28
|
}
|
|
26
29
|
export class Registry {
|
|
27
30
|
static List(req: SkoalaApiIntegratedV1alpha1Registry.ListRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.ListRegistryRes> {
|
|
28
|
-
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.ListRegistryReq, SkoalaApiIntegratedV1alpha1Registry.ListRegistryRes>(`/apis/hive.skoala.io/v1alpha1/registries?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
31
|
+
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.ListRegistryReq, SkoalaApiIntegratedV1alpha1Registry.ListRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
29
32
|
}
|
|
30
33
|
static Get(req: SkoalaApiIntegratedV1alpha1Registry.GetRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.GetRegistryRes> {
|
|
31
|
-
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.GetRegistryReq, SkoalaApiIntegratedV1alpha1Registry.GetRegistryRes>(`/apis/hive.skoala.io/v1alpha1/registries/${req["registryId"]}?${fm.renderURLSearchParams(req, ["registryId"])}`, {...initReq, method: "GET"})
|
|
34
|
+
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.GetRegistryReq, SkoalaApiIntegratedV1alpha1Registry.GetRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}?${fm.renderURLSearchParams(req, ["workspaceId", "registryId"])}`, {...initReq, method: "GET"})
|
|
32
35
|
}
|
|
33
36
|
static Create(req: SkoalaApiIntegratedV1alpha1Registry.CreateRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.CreateRegistryRes> {
|
|
34
|
-
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.CreateRegistryReq, SkoalaApiIntegratedV1alpha1Registry.CreateRegistryRes>(`/apis/hive.skoala.io/v1alpha1/registries`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
37
|
+
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.CreateRegistryReq, SkoalaApiIntegratedV1alpha1Registry.CreateRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
35
38
|
}
|
|
36
39
|
static Update(req: SkoalaApiIntegratedV1alpha1Registry.UpdateRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.UpdateRegistryRes> {
|
|
37
|
-
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.UpdateRegistryReq, SkoalaApiIntegratedV1alpha1Registry.UpdateRegistryRes>(`/apis/hive.skoala.io/v1alpha1/registries/${req["registryId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
40
|
+
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.UpdateRegistryReq, SkoalaApiIntegratedV1alpha1Registry.UpdateRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
38
41
|
}
|
|
39
42
|
static Delete(req: SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryRes> {
|
|
40
|
-
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryReq, SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryRes>(`/apis/hive.skoala.io/v1alpha1/registries/${req["registryId"]}`, {...initReq, method: "DELETE"})
|
|
43
|
+
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryReq, SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}`, {...initReq, method: "DELETE"})
|
|
41
44
|
}
|
|
42
45
|
static Ping(req: SkoalaApiIntegratedV1alpha1Registry.PingRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.PingRegistryRes> {
|
|
43
|
-
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.PingRegistryReq, SkoalaApiIntegratedV1alpha1Registry.PingRegistryRes>(`/apis/hive.skoala.io/v1alpha1/registries/ping`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
46
|
+
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.PingRegistryReq, SkoalaApiIntegratedV1alpha1Registry.PingRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/ping`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
44
47
|
}
|
|
45
48
|
}
|
|
46
49
|
export class Service {
|
|
47
50
|
static ListAll(req: SkoalaApiIntegratedV1alpha1Service.ListAllServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Service.ListServiceRes> {
|
|
48
|
-
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Service.ListAllServiceReq, SkoalaApiIntegratedV1alpha1Service.ListServiceRes>(`/apis/hive.skoala.io/v1alpha1/services?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
51
|
+
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Service.ListAllServiceReq, SkoalaApiIntegratedV1alpha1Service.ListServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/services?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
49
52
|
}
|
|
50
53
|
static List(req: SkoalaApiIntegratedV1alpha1Service.ListServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Service.ListServiceRes> {
|
|
51
|
-
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Service.ListServiceReq, SkoalaApiIntegratedV1alpha1Service.ListServiceRes>(`/apis/hive.skoala.io/v1alpha1/registries/${req["registryId"]}/services?${fm.renderURLSearchParams(req, ["registryId"])}`, {...initReq, method: "GET"})
|
|
54
|
+
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"})
|
|
52
55
|
}
|
|
53
56
|
static Get(req: SkoalaApiIntegratedV1alpha1Service.GetServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Service.GetServiceRes> {
|
|
54
|
-
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Service.GetServiceReq, SkoalaApiIntegratedV1alpha1Service.GetServiceRes>(`/apis/hive.skoala.io/v1alpha1/registries/${req["registryId"]}/services/${req["serviceName"]}?${fm.renderURLSearchParams(req, ["registryId", "serviceName"])}`, {...initReq, method: "GET"})
|
|
57
|
+
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Service.GetServiceReq, SkoalaApiIntegratedV1alpha1Service.GetServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "registryId", "serviceName"])}`, {...initReq, method: "GET"})
|
|
55
58
|
}
|
|
56
59
|
}
|
|
57
60
|
export class Instance {
|
|
58
61
|
static ListAll(req: SkoalaApiIntegratedV1alpha1Instance.ListAllInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes> {
|
|
59
|
-
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.ListAllInstanceReq, SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes>(`/apis/hive.skoala.io/v1alpha1/instances?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
62
|
+
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.ListAllInstanceReq, SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/instances?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
60
63
|
}
|
|
61
64
|
static ListRegistryAll(req: SkoalaApiIntegratedV1alpha1Instance.ListRegistryAllInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes> {
|
|
62
|
-
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.ListRegistryAllInstanceReq, SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes>(`/apis/hive.skoala.io/v1alpha1/registries/${req["registryId"]}/instances?${fm.renderURLSearchParams(req, ["registryId"])}`, {...initReq, method: "GET"})
|
|
65
|
+
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"})
|
|
63
66
|
}
|
|
64
67
|
static List(req: SkoalaApiIntegratedV1alpha1Instance.ListInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes> {
|
|
65
|
-
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.ListInstanceReq, SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes>(`/apis/hive.skoala.io/v1alpha1/registries/${req["registryId"]}/services/${req["serviceName"]}/instances?${fm.renderURLSearchParams(req, ["registryId", "serviceName"])}`, {...initReq, method: "GET"})
|
|
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"})
|
|
66
69
|
}
|
|
67
70
|
static Get(req: SkoalaApiIntegratedV1alpha1Instance.GetInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.GetInstanceRes> {
|
|
68
|
-
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.GetInstanceReq, SkoalaApiIntegratedV1alpha1Instance.GetInstanceRes>(`/apis/hive.skoala.io/v1alpha1/registries/${req["registryId"]}/services/${req["serviceName"]}/instances/${req["instanceId"]}?${fm.renderURLSearchParams(req, ["registryId", "serviceName", "instanceId"])}`, {...initReq, method: "GET"})
|
|
71
|
+
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.GetInstanceReq, SkoalaApiIntegratedV1alpha1Instance.GetInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}/instances/${req["instanceId"]}?${fm.renderURLSearchParams(req, ["workspaceId", "registryId", "serviceName", "instanceId"])}`, {...initReq, method: "GET"})
|
|
69
72
|
}
|
|
70
73
|
}
|
|
71
74
|
export class Nacos {
|
|
72
75
|
static List(req: SkoalaApiHostedV1alpha1Nacos.ListNacosReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNacosRes> {
|
|
73
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNacosReq, SkoalaApiHostedV1alpha1Nacos.ListNacosRes>(`/apis/hive.skoala.io/v1alpha1/nacoses?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
76
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNacosReq, SkoalaApiHostedV1alpha1Nacos.ListNacosRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/nacoses?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
74
77
|
}
|
|
75
78
|
static Get(req: SkoalaApiHostedV1alpha1Nacos.GetNacosReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.GetNacosRes> {
|
|
76
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetNacosReq, SkoalaApiHostedV1alpha1Nacos.GetNacosRes>(`/apis/hive.skoala.io/v1alpha1/nacoses/${req["nacosName"]}?${fm.renderURLSearchParams(req, ["nacosName"])}`, {...initReq, method: "GET"})
|
|
79
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetNacosReq, SkoalaApiHostedV1alpha1Nacos.GetNacosRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/nacoses/${req["nacosName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "nacosName"])}`, {...initReq, method: "GET"})
|
|
77
80
|
}
|
|
78
81
|
static Create(req: SkoalaApiHostedV1alpha1Nacos.CreateNacosReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.CreateNacosRes> {
|
|
79
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.CreateNacosReq, SkoalaApiHostedV1alpha1Nacos.CreateNacosRes>(`/apis/hive.skoala.io/v1alpha1/nacoses`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
82
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.CreateNacosReq, SkoalaApiHostedV1alpha1Nacos.CreateNacosRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/nacoses`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
80
83
|
}
|
|
81
84
|
static Update(req: SkoalaApiHostedV1alpha1Nacos.UpdateNacosReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.UpdateNacosRes> {
|
|
82
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.UpdateNacosReq, SkoalaApiHostedV1alpha1Nacos.UpdateNacosRes>(`/apis/hive.skoala.io/v1alpha1/nacoses/${req["nacosName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
85
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.UpdateNacosReq, SkoalaApiHostedV1alpha1Nacos.UpdateNacosRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/nacoses/${req["nacosName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
83
86
|
}
|
|
84
87
|
static Delete(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.DeleteNacosRes> {
|
|
85
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosReq, SkoalaApiHostedV1alpha1Nacos.DeleteNacosRes>(`/apis/hive.skoala.io/v1alpha1/nacoses/${req["nacosName"]}`, {...initReq, method: "DELETE"})
|
|
88
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosReq, SkoalaApiHostedV1alpha1Nacos.DeleteNacosRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/nacoses/${req["nacosName"]}`, {...initReq, method: "DELETE"})
|
|
86
89
|
}
|
|
87
90
|
}
|
|
88
91
|
export class Sentinel {
|
|
89
92
|
static List(req: SkoalaApiHostedV1alpha1Sentinel.ListSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.ListSentinelRes> {
|
|
90
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListSentinelReq, SkoalaApiHostedV1alpha1Sentinel.ListSentinelRes>(`/apis/hive.skoala.io/v1alpha1/sentinels?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
93
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListSentinelReq, SkoalaApiHostedV1alpha1Sentinel.ListSentinelRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/sentinels?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
91
94
|
}
|
|
92
95
|
static Get(req: SkoalaApiHostedV1alpha1Sentinel.GetSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetSentinelRes> {
|
|
93
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetSentinelReq, SkoalaApiHostedV1alpha1Sentinel.GetSentinelRes>(`/apis/hive.skoala.io/v1alpha1/sentinels/${req["sentinelName"]}?${fm.renderURLSearchParams(req, ["sentinelName"])}`, {...initReq, method: "GET"})
|
|
96
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetSentinelReq, SkoalaApiHostedV1alpha1Sentinel.GetSentinelRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/sentinels/${req["sentinelName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "sentinelName"])}`, {...initReq, method: "GET"})
|
|
94
97
|
}
|
|
95
98
|
static Create(req: SkoalaApiHostedV1alpha1Sentinel.CreateSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.CreateSentinelRes> {
|
|
96
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateSentinelReq, SkoalaApiHostedV1alpha1Sentinel.CreateSentinelRes>(`/apis/hive.skoala.io/v1alpha1/sentinels`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
99
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateSentinelReq, SkoalaApiHostedV1alpha1Sentinel.CreateSentinelRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/sentinels`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
97
100
|
}
|
|
98
101
|
static Update(req: SkoalaApiHostedV1alpha1Sentinel.UpdateSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.UpdateSentinelRes> {
|
|
99
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateSentinelReq, SkoalaApiHostedV1alpha1Sentinel.UpdateSentinelRes>(`/apis/hive.skoala.io/v1alpha1/sentinels/${req["sentinelName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
102
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateSentinelReq, SkoalaApiHostedV1alpha1Sentinel.UpdateSentinelRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/sentinels/${req["sentinelName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
100
103
|
}
|
|
101
104
|
static Delete(req: SkoalaApiHostedV1alpha1Sentinel.DeleteSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.DeleteSentinelRes> {
|
|
102
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteSentinelReq, SkoalaApiHostedV1alpha1Sentinel.DeleteSentinelRes>(`/apis/hive.skoala.io/v1alpha1/sentinels/${req["sentinelName"]}`, {...initReq, method: "DELETE"})
|
|
103
|
-
}
|
|
104
|
-
}
|
|
105
|
-
export class Workspace {
|
|
106
|
-
static List(req: SkoalaApiHostedV1alpha1Gateway.ListGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.ListGatewayRes> {
|
|
107
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListGatewayReq, SkoalaApiHostedV1alpha1Gateway.ListGatewayRes>(`/apis/hive.skoala.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
105
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteSentinelReq, SkoalaApiHostedV1alpha1Sentinel.DeleteSentinelRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/sentinels/${req["sentinelName"]}`, {...initReq, method: "DELETE"})
|
|
108
106
|
}
|
|
109
107
|
}
|
|
110
108
|
export class Gateway {
|
|
111
109
|
static List(req: SkoalaApiHostedV1alpha1Gateway.ListGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.ListGatewayRes> {
|
|
112
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListGatewayReq, SkoalaApiHostedV1alpha1Gateway.ListGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/gateways?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
110
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListGatewayReq, SkoalaApiHostedV1alpha1Gateway.ListGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/gateways?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
113
111
|
}
|
|
114
112
|
static Get(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayRes> {
|
|
115
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/gateways/${req["gatewayName"]}?${fm.renderURLSearchParams(req, ["gatewayName"])}`, {...initReq, method: "GET"})
|
|
113
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/gateways/${req["gatewayName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
116
114
|
}
|
|
117
115
|
static Create(req: SkoalaApiHostedV1alpha1Gateway.CreateGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.CreateGatewayRes> {
|
|
118
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.CreateGatewayReq, SkoalaApiHostedV1alpha1Gateway.CreateGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/gateways`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
116
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.CreateGatewayReq, SkoalaApiHostedV1alpha1Gateway.CreateGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/gateways`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
119
117
|
}
|
|
120
118
|
static Update(req: SkoalaApiHostedV1alpha1Gateway.UpdateGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.UpdateGatewayRes> {
|
|
121
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.UpdateGatewayReq, SkoalaApiHostedV1alpha1Gateway.UpdateGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/gateways/${req["gatewayName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
119
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.UpdateGatewayReq, SkoalaApiHostedV1alpha1Gateway.UpdateGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/gateways/${req["gatewayName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
122
120
|
}
|
|
123
121
|
static Delete(req: SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayRes> {
|
|
124
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, SkoalaApiHostedV1alpha1Gateway.DeleteGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/gateways/${req["gatewayName"]}`, {...initReq, method: "DELETE"})
|
|
122
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, SkoalaApiHostedV1alpha1Gateway.DeleteGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/gateways/${req["gatewayName"]}`, {...initReq, method: "DELETE"})
|
|
125
123
|
}
|
|
126
124
|
}
|