@daocloud-proto/skoala 0.2.0 → 0.3.0-2

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.
@@ -0,0 +1,63 @@
1
+ /* eslint-disable */
2
+ // @ts-nocheck
3
+ /*
4
+ * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
+ */
6
+
7
+ export enum Status {
8
+ STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
9
+ RUNNING = "RUNNING",
10
+ STARTING = "STARTING",
11
+ DESTROYING = "DESTROYING",
12
+ EXCEPTION = "EXCEPTION",
13
+ }
14
+
15
+ export type Cluster = {
16
+ id?: string
17
+ name?: string
18
+ }
19
+
20
+ export type Workspace = {
21
+ id?: string
22
+ name?: string
23
+ parentWorkspaceId?: string
24
+ }
25
+
26
+ export type ListWorkspaceReq = {
27
+ page?: number
28
+ size?: number
29
+ }
30
+
31
+ export type ListWorkspaceRes = {
32
+ workspaces?: Workspace[]
33
+ page?: number
34
+ size?: number
35
+ total?: number
36
+ }
37
+
38
+ export type ListClusterReq = {
39
+ workspaceId?: string
40
+ page?: number
41
+ size?: number
42
+ }
43
+
44
+ export type ListClusterRes = {
45
+ clusters?: Cluster[]
46
+ page?: number
47
+ size?: number
48
+ total?: number
49
+ }
50
+
51
+ export type ListNamespaceReq = {
52
+ workspaceId?: string
53
+ clusterName?: string
54
+ page?: number
55
+ size?: number
56
+ }
57
+
58
+ export type ListNamespaceRes = {
59
+ namespaceNames?: string[]
60
+ page?: number
61
+ size?: number
62
+ total?: number
63
+ }
@@ -0,0 +1,191 @@
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 SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
8
+
9
+ type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
10
+ type OneOf<T> =
11
+ | { [k in keyof T]?: undefined }
12
+ | (
13
+ keyof T extends infer K ?
14
+ (K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
15
+ : never)
16
+ : never);
17
+
18
+ export enum LogLogLevel {
19
+ STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
20
+ TRACE = "TRACE",
21
+ DEBUG = "DEBUG",
22
+ INFO = "INFO",
23
+ WARNING = "WARNING",
24
+ ERROR = "ERROR",
25
+ CRITICAL = "CRITICAL",
26
+ OFF = "OFF",
27
+ }
28
+
29
+ export type Node = {
30
+ total?: number
31
+ online?: number
32
+ }
33
+
34
+ export type Gateway = {
35
+ workspaceId?: number
36
+ clusterName?: string
37
+ namespaceName?: string
38
+ name?: string
39
+ createdAt?: string
40
+ updatedAt?: string
41
+ status?: SkoalaApiGeneralV1alpha1Skoala.Status
42
+ endpoints?: string[]
43
+ master?: Node
44
+ worker?: Node
45
+ config?: GatewayConfig
46
+ }
47
+
48
+ export type ListAllGatewayReq = {
49
+ workspaceId?: number
50
+ page?: number
51
+ size?: number
52
+ filter?: string
53
+ }
54
+
55
+ export type ListClusterGatewayReq = {
56
+ workspaceId?: number
57
+ clusterName?: string
58
+ page?: number
59
+ size?: number
60
+ }
61
+
62
+ export type ListNamespaceGatewayReq = {
63
+ workspaceId?: number
64
+ clusterName?: string
65
+ namespaceName?: string
66
+ page?: number
67
+ size?: number
68
+ }
69
+
70
+ export type ListGatewayRes = {
71
+ gateways?: Gateway[]
72
+ page?: number
73
+ size?: number
74
+ total?: number
75
+ }
76
+
77
+ export type GetGatewayReq = {
78
+ workspaceId?: number
79
+ clusterName?: string
80
+ namespaceName?: string
81
+ gatewayName?: string
82
+ }
83
+
84
+ export type GetGatewayRes = {
85
+ gateways?: Gateway
86
+ }
87
+
88
+ export type CreateGatewayReq = {
89
+ workspaceId?: number
90
+ name?: string
91
+ clusterName?: string
92
+ namespaceName?: string
93
+ createNamespace?: boolean
94
+ config?: GatewayConfig
95
+ }
96
+
97
+ export type CreateGatewayRes = {
98
+ gateway?: Gateway
99
+ }
100
+
101
+ export type UpdateGatewayReq = {
102
+ workspaceId?: number
103
+ gatewayName?: string
104
+ clusterName?: string
105
+ namespaceName?: string
106
+ config?: GatewayConfig
107
+ }
108
+
109
+ export type UpdateGatewayRes = {
110
+ gateway?: Gateway
111
+ }
112
+
113
+ export type DeleteGatewayReq = {
114
+ workspaceId?: number
115
+ clusterName?: string
116
+ namespaceName?: string
117
+ gatewayName?: string
118
+ }
119
+
120
+ export type DeleteGatewayRes = {
121
+ gateway?: Gateway
122
+ }
123
+
124
+ export type GatewayConfig = {
125
+ normal?: NormalConfig
126
+ advanced?: AdvancedConfig
127
+ }
128
+
129
+
130
+ type BaseNormalConfig = {
131
+ masterCount?: number
132
+ workerCount?: number
133
+ }
134
+
135
+ export type NormalConfig = BaseNormalConfig
136
+ & OneOf<{ clusterIp: ClusterIP; nodePort: NodePort; loadBalancer: LoadBalancer; externalName: ExternalName }>
137
+
138
+ export type Port = {
139
+ name?: string
140
+ protocol?: string
141
+ port?: number
142
+ targetPort?: number
143
+ nodePort?: number
144
+ }
145
+
146
+ export type NodePort = {
147
+ ports?: Port[]
148
+ }
149
+
150
+ export type ClusterIP = {
151
+ ports?: Port[]
152
+ }
153
+
154
+ export type LoadBalancer = {
155
+ }
156
+
157
+ export type ExternalName = {
158
+ externalName?: string
159
+ }
160
+
161
+
162
+ type BaseAdvancedConfig = {
163
+ log?: Log
164
+ resource?: Resource
165
+ enableGlobalRateLimit?: boolean
166
+ }
167
+
168
+ export type AdvancedConfig = BaseAdvancedConfig
169
+ & OneOf<{ rollingUpdate: RollingUpdate; recreate: string }>
170
+
171
+ export type Log = {
172
+ workerLogLevel?: LogLogLevel
173
+ podLogLevel?: number
174
+ enableDebugLog?: boolean
175
+ enableLogToInsight?: boolean
176
+ }
177
+
178
+ export type Quota = {
179
+ cpuRequests?: number
180
+ cpuLimits?: number
181
+ memoryRequests?: number
182
+ memoryLimits?: number
183
+ }
184
+
185
+ export type Resource = {
186
+ master?: Quota
187
+ worker?: Quota
188
+ }
189
+
190
+ export type RollingUpdate = {
191
+ }
@@ -0,0 +1,45 @@
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
+ workspaceId?: string
8
+ page?: number
9
+ }
10
+
11
+ export type ListNacosRes = {
12
+ }
13
+
14
+ export type GetNacosReq = {
15
+ workspaceId?: string
16
+ nacosName?: string
17
+ }
18
+
19
+ export type GetNacosRes = {
20
+ }
21
+
22
+ export type UpdateNacosReq = {
23
+ workspaceId?: string
24
+ nacosName?: string
25
+ config?: string
26
+ }
27
+
28
+ export type UpdateNacosRes = {
29
+ }
30
+
31
+ export type CreateNacosReq = {
32
+ workspaceId?: string
33
+ gatewayName?: string
34
+ }
35
+
36
+ export type CreateNacosRes = {
37
+ }
38
+
39
+ export type DeleteNacosReq = {
40
+ workspaceId?: string
41
+ nacosName?: string
42
+ }
43
+
44
+ export type DeleteNacosRes = {
45
+ }
@@ -0,0 +1,45 @@
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
+ workspaceId?: string
8
+ page?: number
9
+ }
10
+
11
+ export type ListSentinelRes = {
12
+ }
13
+
14
+ export type GetSentinelReq = {
15
+ workspaceId?: string
16
+ sentinelName?: string
17
+ }
18
+
19
+ export type GetSentinelRes = {
20
+ }
21
+
22
+ export type UpdateSentinelReq = {
23
+ workspaceId?: string
24
+ sentinelName?: string
25
+ config?: string
26
+ }
27
+
28
+ export type UpdateSentinelRes = {
29
+ }
30
+
31
+ export type CreateSentinelReq = {
32
+ workspaceId?: string
33
+ gatewayName?: string
34
+ }
35
+
36
+ export type CreateSentinelRes = {
37
+ }
38
+
39
+ export type DeleteSentinelReq = {
40
+ workspaceId?: string
41
+ sentinelName?: string
42
+ }
43
+
44
+ export type DeleteSentinelRes = {
45
+ }
@@ -0,0 +1,15 @@
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 InsightIoApiSpan_metricV1alpha1Span_metric from "../../../span_metric/v1alpha1/span_metric.pb"
8
+ export type Insight = {
9
+ call?: number
10
+ successRates?: number
11
+ latencies?: number
12
+ metricsLatencies?: {[key: string]: InsightIoApiSpan_metricV1alpha1Span_metric.GetMetricsResponse}
13
+ metricsErrorRates?: InsightIoApiSpan_metricV1alpha1Span_metric.GetMetricsResponse
14
+ metricsCallRates?: InsightIoApiSpan_metricV1alpha1Span_metric.GetMetricsResponse
15
+ }
@@ -4,8 +4,9 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
- import * as SkoalaApiIntegratedV1alpha1Registry from ".\registry.pb"
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,18 +18,24 @@ 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
23
25
  serviceName?: string
24
26
  }
25
27
 
26
- export type GetInstanceReq = {
28
+ export type ListAllInstanceReq = {
29
+ workspaceId?: string
30
+ page?: number
31
+ size?: number
32
+ }
33
+
34
+ export type ListRegistryAllInstanceReq = {
35
+ workspaceId?: string
27
36
  registryId?: string
28
- namespaceId?: string
29
- groupName?: string
30
- serviceName?: string
31
- instanceId?: string
37
+ page?: number
38
+ size?: number
32
39
  }
33
40
 
34
41
  export type ListInstanceRes = {
@@ -38,6 +45,15 @@ export type ListInstanceRes = {
38
45
  total?: number
39
46
  }
40
47
 
48
+ export type GetInstanceReq = {
49
+ workspaceId?: string
50
+ registryId?: string
51
+ namespaceId?: string
52
+ groupName?: string
53
+ serviceName?: string
54
+ instanceId?: string
55
+ }
56
+
41
57
  export type GetInstanceRes = {
42
58
  instance?: Instance
43
59
  }
@@ -3,16 +3,47 @@
3
3
  /*
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
+
7
+ export enum RegistryStatus {
8
+ STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
9
+ RUNNING = "RUNNING",
10
+ ANOMALY = "ANOMALY",
11
+ }
12
+
13
+ export enum RegistryType {
14
+ TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
15
+ NACOS = "NACOS",
16
+ EUREKA = "EUREKA",
17
+ KUBERNETES = "KUBERNETES",
18
+ ZOOKEEPER = "ZOOKEEPER",
19
+ MESH = "MESH",
20
+ }
21
+
6
22
  export type Registry = {
23
+ workspaceId?: string
7
24
  registryId?: string
8
25
  name?: string
9
- type?: string
26
+ type?: RegistryType
27
+ status?: RegistryStatus
10
28
  addresses?: string[]
11
29
  namespaces?: Namespace[]
30
+ isHosted?: boolean
31
+ version?: string
12
32
  serviceCount?: number
33
+ healthInstanceCount?: number
34
+ totalInstanceCount?: number
35
+ updatedAt?: string
36
+ createdAt?: string
37
+ }
38
+
39
+ export type RegistryOnlyID = {
40
+ registryId?: string
13
41
  }
14
42
 
15
43
  export type ListRegistryReq = {
44
+ workspaceId?: string
45
+ type?: string
46
+ name?: string
16
47
  page?: number
17
48
  size?: number
18
49
  }
@@ -25,6 +56,7 @@ export type ListRegistryRes = {
25
56
  }
26
57
 
27
58
  export type GetRegistryReq = {
59
+ workspaceId?: string
28
60
  registryId?: string
29
61
  }
30
62
 
@@ -33,11 +65,13 @@ export type GetRegistryRes = {
33
65
  }
34
66
 
35
67
  export type UpdateRegistryReq = {
68
+ workspaceId?: string
36
69
  registryId?: string
37
70
  name?: string
38
71
  type?: string
39
- addresses?: string
40
- namespaces?: string
72
+ addresses?: string[]
73
+ namespaces?: Namespace[]
74
+ isHosted?: boolean
41
75
  }
42
76
 
43
77
  export type UpdateRegistryRes = {
@@ -45,33 +79,40 @@ export type UpdateRegistryRes = {
45
79
  }
46
80
 
47
81
  export type CreateRegistryReq = {
82
+ workspaceId?: string
48
83
  name?: string
49
84
  type?: string
50
- addresses?: string
51
- namespaces?: string
85
+ addresses?: string[]
86
+ namespaces?: Namespace[]
87
+ isHosted?: boolean
52
88
  }
53
89
 
54
90
  export type CreateRegistryRes = {
55
- registry?: Registry
91
+ registry?: RegistryOnlyID
56
92
  }
57
93
 
58
94
  export type DeleteRegistryReq = {
95
+ workspaceId?: string
59
96
  registryId?: string
60
97
  }
61
98
 
99
+ export type DeleteRegistryRes = {
100
+ registry?: RegistryOnlyID
101
+ }
102
+
62
103
  export type PingRegistryReq = {
104
+ workspaceId?: string
63
105
  type?: string
64
- addresses?: string
65
- namespaces?: string
106
+ name?: string
107
+ addresses?: string[]
108
+ namespaces?: Namespace[]
66
109
  }
67
110
 
68
111
  export type PingRegistryRes = {
69
- serviceCount?: number
70
112
  namespaces?: Namespace[]
71
113
  }
72
114
 
73
115
  export type Namespace = {
74
116
  id?: string
75
117
  name?: string
76
- group?: string
77
118
  }
@@ -4,21 +4,30 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
- import * as SkoalaApiIntegratedV1alpha1Registry from ".\registry.pb"
7
+ import * as SkoalaApiIntegratedV1alpha1Insight from "./insight.pb"
8
+ import * as SkoalaApiIntegratedV1alpha1Registry from "./registry.pb"
8
9
  export type Service = {
9
10
  name?: string
10
- namespace?: SkoalaApiIntegratedV1alpha1Registry.Namespace
11
+ namespace?: NamespaceWithGroup
11
12
  instanceCount?: number
12
13
  registry?: SkoalaApiIntegratedV1alpha1Registry.Registry
13
14
  detail?: {[key: string]: string}
15
+ insight?: SkoalaApiIntegratedV1alpha1Insight.Insight
14
16
  }
15
17
 
16
18
  export type ListServiceReq = {
19
+ workspaceId?: string
17
20
  registryId?: string
18
21
  page?: number
19
22
  size?: number
20
23
  }
21
24
 
25
+ export type ListAllServiceReq = {
26
+ workspaceId?: string
27
+ page?: number
28
+ size?: number
29
+ }
30
+
22
31
  export type ListServiceRes = {
23
32
  services?: Service[]
24
33
  page?: number
@@ -27,6 +36,7 @@ export type ListServiceRes = {
27
36
  }
28
37
 
29
38
  export type GetServiceReq = {
39
+ workspaceId?: string
30
40
  registryId?: string
31
41
  namespaceId?: string
32
42
  groupName?: string
@@ -35,4 +45,10 @@ export type GetServiceReq = {
35
45
 
36
46
  export type GetServiceRes = {
37
47
  service?: Service
48
+ }
49
+
50
+ export type NamespaceWithGroup = {
51
+ id?: string
52
+ name?: string
53
+ group?: string
38
54
  }
@@ -4,9 +4,9 @@
4
4
  * This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
5
5
  */
6
6
 
7
- import * as fm from "..\..\..\fetch.pb"
8
- import * as GoogleProtobufEmpty from "..\..\..\google\protobuf\empty.pb"
9
- import * as GoogleProtobufTimestamp from "..\..\..\google\protobuf\timestamp.pb"
7
+ import * as fm from "../../../fetch.pb"
8
+ import * as GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"
9
+ import * as GoogleProtobufTimestamp from "../../../google/protobuf/timestamp.pb"
10
10
 
11
11
  export enum Status {
12
12
  TAKEDOWN = "TAKEDOWN",
@@ -0,0 +1,130 @@
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 SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
10
+ import * as SkoalaApiGeneralV1alpha1Version from "../../general/v1alpha1/version.pb"
11
+ import * as SkoalaApiHostedV1alpha1Gateway from "../../hosted/v1alpha1/gateway.pb"
12
+ import * as SkoalaApiHostedV1alpha1Nacos from "../../hosted/v1alpha1/nacos.pb"
13
+ import * as SkoalaApiHostedV1alpha1Sentinel from "../../hosted/v1alpha1/sentinel.pb"
14
+ import * as SkoalaApiIntegratedV1alpha1Instance from "../../integrated/v1alpha1/instance.pb"
15
+ import * as SkoalaApiIntegratedV1alpha1Registry from "../../integrated/v1alpha1/registry.pb"
16
+ import * as SkoalaApiIntegratedV1alpha1Service from "../../integrated/v1alpha1/service.pb"
17
+ export class Hive {
18
+ static GetVersion(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Version.GetVersionRes> {
19
+ return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiGeneralV1alpha1Version.GetVersionRes>(`/apis/hive.skoala.io/v1alpha1/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
20
+ }
21
+ }
22
+ export class Sesame {
23
+ static GetVersion(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Version.GetVersionRes> {
24
+ return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiGeneralV1alpha1Version.GetVersionRes>(`/apis/sesame.skoala.io/v1alpha1/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
25
+ }
26
+ }
27
+ export class Skoala {
28
+ static ListCluster(req: SkoalaApiGeneralV1alpha1Skoala.ListClusterReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListClusterRes> {
29
+ return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListClusterReq, SkoalaApiGeneralV1alpha1Skoala.ListClusterRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
30
+ }
31
+ static ListClusterNamespace(req: SkoalaApiGeneralV1alpha1Skoala.ListNamespaceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListNamespaceRes> {
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
+ }
34
+ static ListWorkspace(req: SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRes> {
35
+ return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceReq, SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRes>(`/apis/skoala.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
36
+ }
37
+ }
38
+ export class Registry {
39
+ static List(req: SkoalaApiIntegratedV1alpha1Registry.ListRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.ListRegistryRes> {
40
+ return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.ListRegistryReq, SkoalaApiIntegratedV1alpha1Registry.ListRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
41
+ }
42
+ static Get(req: SkoalaApiIntegratedV1alpha1Registry.GetRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.GetRegistryRes> {
43
+ 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"})
44
+ }
45
+ static Create(req: SkoalaApiIntegratedV1alpha1Registry.CreateRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.CreateRegistryRes> {
46
+ return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.CreateRegistryReq, SkoalaApiIntegratedV1alpha1Registry.CreateRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries`, {...initReq, method: "POST", body: JSON.stringify(req)})
47
+ }
48
+ static Update(req: SkoalaApiIntegratedV1alpha1Registry.UpdateRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.UpdateRegistryRes> {
49
+ 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)})
50
+ }
51
+ static Delete(req: SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryRes> {
52
+ return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryReq, SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}`, {...initReq, method: "DELETE"})
53
+ }
54
+ static Ping(req: SkoalaApiIntegratedV1alpha1Registry.PingRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.PingRegistryRes> {
55
+ return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.PingRegistryReq, SkoalaApiIntegratedV1alpha1Registry.PingRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/ping`, {...initReq, method: "POST", body: JSON.stringify(req)})
56
+ }
57
+ }
58
+ export class Service {
59
+ static List(req: SkoalaApiIntegratedV1alpha1Service.ListServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Service.ListServiceRes> {
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
+ }
62
+ static Get(req: SkoalaApiIntegratedV1alpha1Service.GetServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Service.GetServiceRes> {
63
+ 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"})
64
+ }
65
+ }
66
+ export class Instance {
67
+ static List(req: SkoalaApiIntegratedV1alpha1Instance.ListInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes> {
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"})
69
+ }
70
+ static Get(req: SkoalaApiIntegratedV1alpha1Instance.GetInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.GetInstanceRes> {
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"})
72
+ }
73
+ }
74
+ export class Nacos {
75
+ static List(req: SkoalaApiHostedV1alpha1Nacos.ListNacosReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNacosRes> {
76
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNacosReq, SkoalaApiHostedV1alpha1Nacos.ListNacosRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/nacoses?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
77
+ }
78
+ static Get(req: SkoalaApiHostedV1alpha1Nacos.GetNacosReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.GetNacosRes> {
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"})
80
+ }
81
+ static Create(req: SkoalaApiHostedV1alpha1Nacos.CreateNacosReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.CreateNacosRes> {
82
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.CreateNacosReq, SkoalaApiHostedV1alpha1Nacos.CreateNacosRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/nacoses`, {...initReq, method: "POST", body: JSON.stringify(req)})
83
+ }
84
+ static Update(req: SkoalaApiHostedV1alpha1Nacos.UpdateNacosReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.UpdateNacosRes> {
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)})
86
+ }
87
+ static Delete(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.DeleteNacosRes> {
88
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosReq, SkoalaApiHostedV1alpha1Nacos.DeleteNacosRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/nacoses/${req["nacosName"]}`, {...initReq, method: "DELETE"})
89
+ }
90
+ }
91
+ export class Sentinel {
92
+ static List(req: SkoalaApiHostedV1alpha1Sentinel.ListSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.ListSentinelRes> {
93
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListSentinelReq, SkoalaApiHostedV1alpha1Sentinel.ListSentinelRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/sentinels?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
94
+ }
95
+ static Get(req: SkoalaApiHostedV1alpha1Sentinel.GetSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetSentinelRes> {
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"})
97
+ }
98
+ static Create(req: SkoalaApiHostedV1alpha1Sentinel.CreateSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.CreateSentinelRes> {
99
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateSentinelReq, SkoalaApiHostedV1alpha1Sentinel.CreateSentinelRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/sentinels`, {...initReq, method: "POST", body: JSON.stringify(req)})
100
+ }
101
+ static Update(req: SkoalaApiHostedV1alpha1Sentinel.UpdateSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.UpdateSentinelRes> {
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)})
103
+ }
104
+ static Delete(req: SkoalaApiHostedV1alpha1Sentinel.DeleteSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.DeleteSentinelRes> {
105
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteSentinelReq, SkoalaApiHostedV1alpha1Sentinel.DeleteSentinelRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/sentinels/${req["sentinelName"]}`, {...initReq, method: "DELETE"})
106
+ }
107
+ }
108
+ export class Gateway {
109
+ static ListAll(req: SkoalaApiHostedV1alpha1Gateway.ListAllGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.ListGatewayRes> {
110
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListAllGatewayReq, SkoalaApiHostedV1alpha1Gateway.ListGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/gateways?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
111
+ }
112
+ static ListClusterGateway(req: SkoalaApiHostedV1alpha1Gateway.ListClusterGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.ListGatewayRes> {
113
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListClusterGatewayReq, SkoalaApiHostedV1alpha1Gateway.ListGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/gateways?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
114
+ }
115
+ static ListNamespaceGateway(req: SkoalaApiHostedV1alpha1Gateway.ListNamespaceGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.ListGatewayRes> {
116
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListNamespaceGatewayReq, SkoalaApiHostedV1alpha1Gateway.ListGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName"])}`, {...initReq, method: "GET"})
117
+ }
118
+ static Get(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayRes> {
119
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
120
+ }
121
+ static Create(req: SkoalaApiHostedV1alpha1Gateway.CreateGatewayReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
122
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.CreateGatewayReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways`, {...initReq, method: "POST", body: JSON.stringify(req)})
123
+ }
124
+ static Update(req: SkoalaApiHostedV1alpha1Gateway.UpdateGatewayReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
125
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.UpdateGatewayReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
126
+ }
127
+ static Delete(req: SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
128
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}`, {...initReq, method: "DELETE"})
129
+ }
130
+ }
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.2.0",
3
+ "version": "0.3.0-2",
4
+ "description": "",
4
5
  "main": "index.js",
5
6
  "scripts": {
6
7
  "test": "echo \"Error: no test specified\" && exit 1"
7
8
  },
8
9
  "keywords": [],
9
10
  "author": "",
10
- "license": "ISC",
11
- "description": ""
11
+ "license": "ISC"
12
12
  }
@@ -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<GoogleProtobufEmpty.Empty> {
32
- return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryReq, GoogleProtobufEmpty.Empty>(`/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.ListServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Service.ListServiceRes> {
40
- return fm.fetchReq<SkoalaApiIntegratedV1alpha1Service.ListServiceReq, 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.ListInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes> {
51
- return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.ListInstanceReq, SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes>(`/apis/hive.skoala.io/v1alpha1/instances?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
52
- }
53
- static ListRegistryAll(req: SkoalaApiIntegratedV1alpha1Instance.ListInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.ListInstanceRes> {
54
- return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.ListInstanceReq, 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
- }