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