@daocloud-proto/skoala 0.3.3-8 → 0.3.3-85
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/general/v1alpha1/skoala.pb.ts +10 -6
- package/api/hosted/v1alpha1/gateway.pb.ts +112 -59
- package/api/integrated/v1alpha1/insight.pb.ts +18 -4
- package/api/integrated/v1alpha1/instance.pb.ts +29 -19
- package/api/integrated/v1alpha1/registry.pb.ts +6 -5
- package/api/integrated/v1alpha1/service.pb.ts +8 -11
- package/api/skoala/v1alpha1/book.pb.ts +2 -2
- package/api/skoala/v1alpha1/skoala.pb.ts +18 -9
- package/feature_gate/v1alpha1/feature_gate.pb.ts +27 -0
- package/fetch.pb.ts +109 -0
- package/github.com/mwitkow/go-proto-validators/validator.pb.ts +29 -0
- package/google/api/annotations.pb.ts +1 -0
- package/google/api/http.pb.ts +34 -0
- package/google/protobuf/any.pb.ts +9 -0
- package/google/protobuf/api.pb.ts +32 -0
- package/google/protobuf/descriptor.pb.ts +262 -0
- package/google/protobuf/duration.pb.ts +9 -0
- package/google/protobuf/empty.pb.ts +7 -0
- package/google/protobuf/field_mask.pb.ts +8 -0
- package/google/protobuf/struct.pb.ts +33 -0
- package/google/protobuf/timestamp.pb.ts +9 -0
- package/google/protobuf/type.pb.ts +83 -0
- package/google/protobuf/wrappers.pb.ts +40 -0
- package/google/rpc/status.pb.ts +12 -0
- package/insight/v1alpha1/alert.pb.ts +292 -0
- package/insight/v1alpha1/notify.pb.ts +84 -0
- package/log/v1alpha1/log.pb.ts +103 -0
- package/metric/v1alpha1/metric.pb.ts +98 -0
- package/package.json +1 -1
- package/resource/v1alpha1/cluster.pb.ts +102 -0
- package/resource/v1alpha1/job.pb.ts +93 -0
- package/resource/v1alpha1/node.pb.ts +62 -0
- package/resource/v1alpha1/pod.pb.ts +82 -0
- package/resource/v1alpha1/service.pb.ts +61 -0
- package/resource/v1alpha1/type.pb.ts +9 -0
- package/resource/v1alpha1/workload.pb.ts +69 -0
- package/span_metric/v1alpha1/openmetrics.pb.ts +130 -0
- package/span_metric/v1alpha1/otelspankind.pb.ts +14 -0
- package/span_metric/v1alpha1/span_metric.pb.ts +113 -0
- package/type/v1alpha1/page.pb.ts +11 -0
|
@@ -20,19 +20,23 @@ export type Cluster = {
|
|
|
20
20
|
export type Workspace = {
|
|
21
21
|
id?: string
|
|
22
22
|
name?: string
|
|
23
|
-
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type Pagination = {
|
|
26
|
+
total?: number
|
|
27
|
+
page?: number
|
|
28
|
+
pageSize?: number
|
|
29
|
+
pages?: number
|
|
24
30
|
}
|
|
25
31
|
|
|
26
32
|
export type ListWorkspaceReq = {
|
|
27
33
|
page?: number
|
|
28
|
-
|
|
34
|
+
pageSize?: number
|
|
29
35
|
}
|
|
30
36
|
|
|
31
37
|
export type ListWorkspaceRes = {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
size?: number
|
|
35
|
-
total?: number
|
|
38
|
+
items?: Workspace[]
|
|
39
|
+
pagination?: Pagination
|
|
36
40
|
}
|
|
37
41
|
|
|
38
42
|
export type ListClusterReq = {
|
|
@@ -40,15 +40,15 @@ export type Gateway = {
|
|
|
40
40
|
updatedAt?: string
|
|
41
41
|
status?: SkoalaApiGeneralV1alpha1Skoala.Status
|
|
42
42
|
endpoints?: string[]
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
contour?: Node
|
|
44
|
+
envoy?: Node
|
|
45
45
|
config?: GatewayConfig
|
|
46
46
|
}
|
|
47
47
|
|
|
48
48
|
export type ListAllGatewayReq = {
|
|
49
49
|
workspaceId?: number
|
|
50
50
|
page?: number
|
|
51
|
-
|
|
51
|
+
pageSize?: number
|
|
52
52
|
filter?: string
|
|
53
53
|
}
|
|
54
54
|
|
|
@@ -56,7 +56,7 @@ export type ListClusterGatewayReq = {
|
|
|
56
56
|
workspaceId?: number
|
|
57
57
|
clusterName?: string
|
|
58
58
|
page?: number
|
|
59
|
-
|
|
59
|
+
pageSize?: number
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
export type ListNamespaceGatewayReq = {
|
|
@@ -64,14 +64,12 @@ export type ListNamespaceGatewayReq = {
|
|
|
64
64
|
clusterName?: string
|
|
65
65
|
namespaceName?: string
|
|
66
66
|
page?: number
|
|
67
|
-
|
|
67
|
+
pageSize?: number
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
export type ListGatewayRes = {
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
size?: number
|
|
74
|
-
total?: number
|
|
71
|
+
items?: Gateway[]
|
|
72
|
+
pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
|
|
75
73
|
}
|
|
76
74
|
|
|
77
75
|
export type GetGatewayReq = {
|
|
@@ -85,6 +83,70 @@ export type GetGatewayRes = {
|
|
|
85
83
|
gateways?: Gateway
|
|
86
84
|
}
|
|
87
85
|
|
|
86
|
+
export type EnvoyPortsString = {
|
|
87
|
+
http?: string
|
|
88
|
+
https?: string
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export type EnvoyPorts = {
|
|
92
|
+
http?: number
|
|
93
|
+
https?: number
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type ContourPorts = {
|
|
97
|
+
xds?: number
|
|
98
|
+
metrics?: number
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export type ContourPortsString = {
|
|
102
|
+
xds?: string
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
export type HostIPs = {
|
|
106
|
+
http?: string
|
|
107
|
+
https?: string
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export type EnvoyService = {
|
|
111
|
+
type?: string
|
|
112
|
+
ports?: EnvoyPorts
|
|
113
|
+
targetPorts?: EnvoyPortsString
|
|
114
|
+
nodePorts?: EnvoyPortsString
|
|
115
|
+
extraPorts?: string[]
|
|
116
|
+
externalTrafficPolicy?: string
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export type ContourService = {
|
|
120
|
+
type?: string
|
|
121
|
+
clusterIp?: string
|
|
122
|
+
ports?: ContourPorts
|
|
123
|
+
nodePorts?: ContourPortsString
|
|
124
|
+
extraPorts?: string[]
|
|
125
|
+
externalTrafficPolicy?: string
|
|
126
|
+
loadBalancerSourceRanges?: string[]
|
|
127
|
+
loadBalancerIp?: string
|
|
128
|
+
}
|
|
129
|
+
|
|
130
|
+
export type EnvoyNormalConfig = {
|
|
131
|
+
kind?: string
|
|
132
|
+
replicas?: number
|
|
133
|
+
hostNetwork?: boolean
|
|
134
|
+
dnsPolicy?: string
|
|
135
|
+
useHostIp?: boolean
|
|
136
|
+
useHostPort?: boolean
|
|
137
|
+
containerPorts?: EnvoyPorts
|
|
138
|
+
hostIps?: HostIPs
|
|
139
|
+
hostPorts?: EnvoyPorts
|
|
140
|
+
service?: EnvoyService
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export type ContourNormalConfig = {
|
|
144
|
+
rootNamespaces?: string
|
|
145
|
+
replicas?: number
|
|
146
|
+
containerPorts?: ContourPorts
|
|
147
|
+
service?: ContourService
|
|
148
|
+
}
|
|
149
|
+
|
|
88
150
|
export type CreateGatewayReq = {
|
|
89
151
|
workspaceId?: number
|
|
90
152
|
name?: string
|
|
@@ -94,10 +156,6 @@ export type CreateGatewayReq = {
|
|
|
94
156
|
config?: GatewayConfig
|
|
95
157
|
}
|
|
96
158
|
|
|
97
|
-
export type CreateGatewayRes = {
|
|
98
|
-
gateway?: Gateway
|
|
99
|
-
}
|
|
100
|
-
|
|
101
159
|
export type UpdateGatewayReq = {
|
|
102
160
|
workspaceId?: number
|
|
103
161
|
gatewayName?: string
|
|
@@ -106,10 +164,6 @@ export type UpdateGatewayReq = {
|
|
|
106
164
|
config?: GatewayConfig
|
|
107
165
|
}
|
|
108
166
|
|
|
109
|
-
export type UpdateGatewayRes = {
|
|
110
|
-
gateway?: Gateway
|
|
111
|
-
}
|
|
112
|
-
|
|
113
167
|
export type DeleteGatewayReq = {
|
|
114
168
|
workspaceId?: number
|
|
115
169
|
clusterName?: string
|
|
@@ -121,71 +175,70 @@ export type DeleteGatewayRes = {
|
|
|
121
175
|
gateway?: Gateway
|
|
122
176
|
}
|
|
123
177
|
|
|
178
|
+
export type NormalConfig = {
|
|
179
|
+
contour?: ContourNormalConfig
|
|
180
|
+
envoy?: EnvoyNormalConfig
|
|
181
|
+
}
|
|
182
|
+
|
|
124
183
|
export type GatewayConfig = {
|
|
125
184
|
normal?: NormalConfig
|
|
126
185
|
advanced?: AdvancedConfig
|
|
127
186
|
}
|
|
128
187
|
|
|
129
188
|
|
|
130
|
-
type
|
|
131
|
-
|
|
132
|
-
workerCount?: number
|
|
189
|
+
type BaseContourAdvancedConfig = {
|
|
190
|
+
resources?: Resource
|
|
133
191
|
}
|
|
134
192
|
|
|
135
|
-
export type
|
|
136
|
-
& OneOf<{
|
|
193
|
+
export type ContourAdvancedConfig = BaseContourAdvancedConfig
|
|
194
|
+
& OneOf<{ rollingUpdate: RollingUpdate; recreate: string }>
|
|
137
195
|
|
|
138
|
-
export type Port = {
|
|
139
|
-
name?: string
|
|
140
|
-
protocol?: string
|
|
141
|
-
port?: number
|
|
142
|
-
targetPort?: number
|
|
143
|
-
nodePort?: number
|
|
144
|
-
}
|
|
145
196
|
|
|
146
|
-
|
|
147
|
-
|
|
197
|
+
type BaseEnvoyAdvancedConfig = {
|
|
198
|
+
resources?: Resource
|
|
148
199
|
}
|
|
149
200
|
|
|
150
|
-
export type
|
|
151
|
-
|
|
152
|
-
}
|
|
201
|
+
export type EnvoyAdvancedConfig = BaseEnvoyAdvancedConfig
|
|
202
|
+
& OneOf<{ rollingUpdate: RollingUpdate; recreate: string }>
|
|
153
203
|
|
|
154
|
-
export type
|
|
204
|
+
export type AdvancedConfig = {
|
|
205
|
+
log?: Log
|
|
206
|
+
contour?: ContourAdvancedConfig
|
|
207
|
+
envoy?: EnvoyAdvancedConfig
|
|
208
|
+
globalRateLimit?: boolean
|
|
155
209
|
}
|
|
156
210
|
|
|
157
|
-
export type
|
|
158
|
-
|
|
211
|
+
export type Log = {
|
|
212
|
+
envoyLogLevel?: LogLogLevel
|
|
213
|
+
k8SDebug?: number
|
|
214
|
+
contourDebug?: boolean
|
|
215
|
+
logToInsight?: boolean
|
|
159
216
|
}
|
|
160
217
|
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
218
|
+
export type Resource = {
|
|
219
|
+
cpuRequests?: string
|
|
220
|
+
cpuLimits?: string
|
|
221
|
+
memoryRequests?: string
|
|
222
|
+
memoryLimits?: string
|
|
166
223
|
}
|
|
167
224
|
|
|
168
|
-
export type
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
export type Log = {
|
|
172
|
-
workerLogLevel?: LogLogLevel
|
|
173
|
-
podLogLevel?: number
|
|
174
|
-
enableDebugLog?: boolean
|
|
175
|
-
enableLogToInsight?: boolean
|
|
225
|
+
export type RollingUpdate = {
|
|
226
|
+
maxSurge?: string
|
|
227
|
+
maxUnavailable?: string
|
|
176
228
|
}
|
|
177
229
|
|
|
178
|
-
export type
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
memoryRequests?: number
|
|
182
|
-
memoryLimits?: number
|
|
230
|
+
export type GetImagesRes = {
|
|
231
|
+
contour?: string
|
|
232
|
+
envoy?: string
|
|
183
233
|
}
|
|
184
234
|
|
|
185
|
-
export type
|
|
186
|
-
|
|
187
|
-
|
|
235
|
+
export type GetGatewayStatusReq = {
|
|
236
|
+
workspaceId?: number
|
|
237
|
+
clusterName?: string
|
|
238
|
+
namespaceName?: string
|
|
239
|
+
gatewayName?: string
|
|
188
240
|
}
|
|
189
241
|
|
|
190
|
-
export type
|
|
242
|
+
export type GetGatewayStatusRes = {
|
|
243
|
+
ready?: boolean
|
|
191
244
|
}
|
|
@@ -4,12 +4,26 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import * as
|
|
7
|
+
import * as InsightIoApiSpan_metricV1alpha1Openmetrics from "../../../span_metric/v1alpha1/openmetrics.pb"
|
|
8
8
|
export type Insight = {
|
|
9
|
+
serviceDetail?: InsightValue
|
|
10
|
+
serviceMetrics?: InsightMetrics
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type InsightValue = {
|
|
9
14
|
call?: string
|
|
10
15
|
successRates?: string
|
|
11
16
|
latencies?: string
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type InsightMetrics = {
|
|
20
|
+
p50Metrics?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
|
|
21
|
+
p75Metrics?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
|
|
22
|
+
p90Metrics?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
|
|
23
|
+
p95Metrics?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
|
|
24
|
+
p99Metrics?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
|
|
25
|
+
reqRateMetric?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
|
|
26
|
+
repLatencyMetric?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
|
|
27
|
+
errorsRateMetrics?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
|
|
28
|
+
totalCallsMetrics?: InsightIoApiSpan_metricV1alpha1Openmetrics.MetricPoint[]
|
|
15
29
|
}
|
|
@@ -4,17 +4,25 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import * as
|
|
7
|
+
import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
|
|
8
|
+
|
|
9
|
+
export enum InstanceStatus {
|
|
10
|
+
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
11
|
+
RUNNING = "RUNNING",
|
|
12
|
+
FAILED = "FAILED",
|
|
13
|
+
}
|
|
14
|
+
|
|
8
15
|
export type Instance = {
|
|
9
|
-
workspaceId?: string
|
|
10
16
|
id?: string
|
|
11
17
|
serviceName?: string
|
|
12
18
|
frameworkType?: string
|
|
13
19
|
host?: string
|
|
14
|
-
|
|
20
|
+
ports?: number[]
|
|
21
|
+
instanceStatus?: InstanceStatus
|
|
22
|
+
enabled?: boolean
|
|
15
23
|
metadata?: {[key: string]: string}
|
|
16
|
-
registry?: SkoalaApiIntegratedV1alpha1Registry.Registry
|
|
17
24
|
detail?: {[key: string]: string}
|
|
25
|
+
updateAt?: string
|
|
18
26
|
}
|
|
19
27
|
|
|
20
28
|
export type ListInstanceReq = {
|
|
@@ -23,37 +31,39 @@ export type ListInstanceReq = {
|
|
|
23
31
|
namespaceId?: string
|
|
24
32
|
groupName?: string
|
|
25
33
|
serviceName?: string
|
|
34
|
+
instanceId?: string
|
|
35
|
+
page?: number
|
|
36
|
+
pageSize?: number
|
|
26
37
|
}
|
|
27
38
|
|
|
28
|
-
export type
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
size?: number
|
|
39
|
+
export type ListInstanceRes = {
|
|
40
|
+
items?: Instance[]
|
|
41
|
+
pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
|
|
32
42
|
}
|
|
33
43
|
|
|
34
|
-
export type
|
|
44
|
+
export type GetInstanceReq = {
|
|
35
45
|
workspaceId?: string
|
|
36
46
|
registryId?: string
|
|
37
|
-
|
|
38
|
-
|
|
47
|
+
namespaceId?: string
|
|
48
|
+
groupName?: string
|
|
49
|
+
serviceName?: string
|
|
50
|
+
instanceId?: string
|
|
39
51
|
}
|
|
40
52
|
|
|
41
|
-
export type
|
|
42
|
-
|
|
43
|
-
page?: number
|
|
44
|
-
size?: number
|
|
45
|
-
total?: number
|
|
53
|
+
export type GetInstanceRes = {
|
|
54
|
+
instance?: Instance
|
|
46
55
|
}
|
|
47
56
|
|
|
48
|
-
export type
|
|
57
|
+
export type UpdateInstanceReq = {
|
|
49
58
|
workspaceId?: string
|
|
50
59
|
registryId?: string
|
|
51
60
|
namespaceId?: string
|
|
52
61
|
groupName?: string
|
|
53
|
-
serviceName?: string
|
|
54
62
|
instanceId?: string
|
|
63
|
+
serviceName?: string
|
|
64
|
+
enabled?: boolean
|
|
55
65
|
}
|
|
56
66
|
|
|
57
|
-
export type
|
|
67
|
+
export type UpdateInstanceRes = {
|
|
58
68
|
instance?: Instance
|
|
59
69
|
}
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
|
|
8
|
+
|
|
7
9
|
export enum RegistryStatus {
|
|
8
10
|
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
9
11
|
RUNNING = "RUNNING",
|
|
@@ -22,6 +24,7 @@ export enum RegistryType {
|
|
|
22
24
|
export type Registry = {
|
|
23
25
|
workspaceId?: string
|
|
24
26
|
registryId?: string
|
|
27
|
+
extId?: string
|
|
25
28
|
name?: string
|
|
26
29
|
type?: RegistryType
|
|
27
30
|
status?: RegistryStatus
|
|
@@ -45,14 +48,12 @@ export type ListRegistryReq = {
|
|
|
45
48
|
type?: string
|
|
46
49
|
name?: string
|
|
47
50
|
page?: number
|
|
48
|
-
|
|
51
|
+
pageSize?: number
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
export type ListRegistryRes = {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
size?: number
|
|
55
|
-
total?: number
|
|
55
|
+
items?: Registry[]
|
|
56
|
+
pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
export type GetRegistryReq = {
|
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
|
|
7
8
|
import * as SkoalaApiIntegratedV1alpha1Insight from "./insight.pb"
|
|
8
9
|
import * as SkoalaApiIntegratedV1alpha1Registry from "./registry.pb"
|
|
9
10
|
export type Service = {
|
|
10
11
|
name?: string
|
|
11
12
|
namespace?: NamespaceWithGroup
|
|
13
|
+
healthInstanceCount?: number
|
|
12
14
|
instanceCount?: number
|
|
13
15
|
registry?: SkoalaApiIntegratedV1alpha1Registry.Registry
|
|
14
16
|
detail?: {[key: string]: string}
|
|
@@ -18,21 +20,14 @@ export type Service = {
|
|
|
18
20
|
export type ListServiceReq = {
|
|
19
21
|
workspaceId?: string
|
|
20
22
|
registryId?: string
|
|
23
|
+
serviceName?: string
|
|
21
24
|
page?: number
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export type ListAllServiceReq = {
|
|
26
|
-
workspaceId?: string
|
|
27
|
-
page?: number
|
|
28
|
-
size?: number
|
|
25
|
+
pageSize?: number
|
|
29
26
|
}
|
|
30
27
|
|
|
31
28
|
export type ListServiceRes = {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
size?: number
|
|
35
|
-
total?: number
|
|
29
|
+
items?: Service[]
|
|
30
|
+
pagination?: SkoalaApiGeneralV1alpha1Skoala.Pagination
|
|
36
31
|
}
|
|
37
32
|
|
|
38
33
|
export type GetServiceReq = {
|
|
@@ -41,6 +36,8 @@ export type GetServiceReq = {
|
|
|
41
36
|
namespaceId?: string
|
|
42
37
|
groupName?: string
|
|
43
38
|
serviceName?: string
|
|
39
|
+
start?: string
|
|
40
|
+
end?: string
|
|
44
41
|
}
|
|
45
42
|
|
|
46
43
|
export type GetServiceRes = {
|
|
@@ -89,10 +89,10 @@ export class Book {
|
|
|
89
89
|
return fm.fetchReq<ListBookReq, ListBookReply>(`/v1alpha1/books?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
90
90
|
}
|
|
91
91
|
static Create(req: CreateBookReq, initReq?: fm.InitReq): Promise<CreateBookReply> {
|
|
92
|
-
return fm.fetchReq<CreateBookReq, CreateBookReply>(`/v1alpha1/books`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
92
|
+
return fm.fetchReq<CreateBookReq, CreateBookReply>(`/v1alpha1/books`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
93
93
|
}
|
|
94
94
|
static Update(req: UpdateBookReq, initReq?: fm.InitReq): Promise<UpdateBookRely> {
|
|
95
|
-
return fm.fetchReq<UpdateBookReq, UpdateBookRely>(`/v1alpha1/books/${req["uid"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
95
|
+
return fm.fetchReq<UpdateBookReq, UpdateBookRely>(`/v1alpha1/books/${req["uid"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
96
96
|
}
|
|
97
97
|
static Delete(req: DeleteBookReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
98
98
|
return fm.fetchReq<DeleteBookReq, GoogleProtobufEmpty.Empty>(`/v1alpha1/books/${req["uid"]}`, {...initReq, method: "DELETE"})
|
|
@@ -43,16 +43,16 @@ export class Registry {
|
|
|
43
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
44
|
}
|
|
45
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)})
|
|
46
|
+
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.CreateRegistryReq, SkoalaApiIntegratedV1alpha1Registry.CreateRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
47
47
|
}
|
|
48
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)})
|
|
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, fm.replacer)})
|
|
50
50
|
}
|
|
51
51
|
static Delete(req: SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryRes> {
|
|
52
52
|
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryReq, SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}`, {...initReq, method: "DELETE"})
|
|
53
53
|
}
|
|
54
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)})
|
|
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, fm.replacer)})
|
|
56
56
|
}
|
|
57
57
|
}
|
|
58
58
|
export class Service {
|
|
@@ -70,6 +70,9 @@ export class Instance {
|
|
|
70
70
|
static Get(req: SkoalaApiIntegratedV1alpha1Instance.GetInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.GetInstanceRes> {
|
|
71
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
72
|
}
|
|
73
|
+
static Update(req: SkoalaApiIntegratedV1alpha1Instance.UpdateInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.UpdateInstanceRes> {
|
|
74
|
+
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.UpdateInstanceReq, SkoalaApiIntegratedV1alpha1Instance.UpdateInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}/instances/${req["instanceId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
75
|
+
}
|
|
73
76
|
}
|
|
74
77
|
export class Nacos {
|
|
75
78
|
static List(req: SkoalaApiHostedV1alpha1Nacos.ListNacosReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNacosRes> {
|
|
@@ -79,10 +82,10 @@ export class Nacos {
|
|
|
79
82
|
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
83
|
}
|
|
81
84
|
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)})
|
|
85
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.CreateNacosReq, SkoalaApiHostedV1alpha1Nacos.CreateNacosRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/nacoses`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
83
86
|
}
|
|
84
87
|
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)})
|
|
88
|
+
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, fm.replacer)})
|
|
86
89
|
}
|
|
87
90
|
static Delete(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.DeleteNacosRes> {
|
|
88
91
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosReq, SkoalaApiHostedV1alpha1Nacos.DeleteNacosRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/nacoses/${req["nacosName"]}`, {...initReq, method: "DELETE"})
|
|
@@ -96,10 +99,10 @@ export class Sentinel {
|
|
|
96
99
|
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
100
|
}
|
|
98
101
|
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)})
|
|
102
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateSentinelReq, SkoalaApiHostedV1alpha1Sentinel.CreateSentinelRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/sentinels`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
100
103
|
}
|
|
101
104
|
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)})
|
|
105
|
+
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, fm.replacer)})
|
|
103
106
|
}
|
|
104
107
|
static Delete(req: SkoalaApiHostedV1alpha1Sentinel.DeleteSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.DeleteSentinelRes> {
|
|
105
108
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteSentinelReq, SkoalaApiHostedV1alpha1Sentinel.DeleteSentinelRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/sentinels/${req["sentinelName"]}`, {...initReq, method: "DELETE"})
|
|
@@ -119,12 +122,18 @@ export class Gateway {
|
|
|
119
122
|
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
123
|
}
|
|
121
124
|
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)})
|
|
125
|
+
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, fm.replacer)})
|
|
123
126
|
}
|
|
124
127
|
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)})
|
|
128
|
+
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, fm.replacer)})
|
|
126
129
|
}
|
|
127
130
|
static Delete(req: SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
128
131
|
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
132
|
}
|
|
133
|
+
static GetImages(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetImagesRes> {
|
|
134
|
+
return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiHostedV1alpha1Gateway.GetImagesRes>(`/apis/sesame.skoala.io/v1alpha1/images?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
135
|
+
}
|
|
136
|
+
static GetGatewayStatus(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes> {
|
|
137
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/status?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
138
|
+
}
|
|
130
139
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
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 FeatureGateIDEnum {
|
|
8
|
+
METRICS = "METRICS",
|
|
9
|
+
LOGGING = "LOGGING",
|
|
10
|
+
TRACING = "TRACING",
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type FeatureGateID = {
|
|
14
|
+
id?: FeatureGateIDEnum
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type FeatureGate = {
|
|
18
|
+
id?: FeatureGateIDEnum
|
|
19
|
+
name?: string
|
|
20
|
+
description?: string
|
|
21
|
+
enabled?: boolean
|
|
22
|
+
status?: string
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type FeatureGatesResp = {
|
|
26
|
+
items?: FeatureGate[]
|
|
27
|
+
}
|