@daocloud-proto/skoala 0.27.2-14 → 0.27.2-142
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/audit/v1alpha1/audit.pb.ts +15 -0
- package/api/general/v1alpha1/common.pb.ts +23 -2
- package/api/general/v1alpha1/skoala.pb.ts +8 -0
- package/api/hosted/v1alpha1/api.pb.ts +17 -2
- package/api/hosted/v1alpha1/gateway.pb.ts +20 -6
- package/api/hosted/v1alpha1/lane.pb.ts +8 -0
- package/api/hosted/v1alpha1/mesh.pb.ts +1 -2
- package/api/hosted/v1alpha1/nacos.pb.ts +6 -0
- package/api/hosted/v1alpha1/plugins.pb.ts +68 -2
- package/api/hosted/v1alpha2/gateway_api.pb.ts +102 -0
- package/api/integrated/v1alpha1/service.pb.ts +4 -0
- package/api/skoala/v1alpha1/skoala.pb.ts +21 -22
- package/api/skoala/v1alpha2/skoala.pb.ts +26 -0
- package/package.json +1 -1
|
@@ -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
|
+
export enum AuditVerb {
|
|
8
|
+
AUDIT_VERB_UNSPECIFIED = "AUDIT_VERB_UNSPECIFIED",
|
|
9
|
+
Create = "Create",
|
|
10
|
+
Retrieve = "Retrieve",
|
|
11
|
+
Update = "Update",
|
|
12
|
+
Delete = "Delete",
|
|
13
|
+
Restart = "Restart",
|
|
14
|
+
Upsert = "Upsert",
|
|
15
|
+
}
|
|
@@ -4,10 +4,16 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
export enum InputPattern {
|
|
8
|
+
PATTERN_TYPE_UNSPECIFIED = "PATTERN_TYPE_UNSPECIFIED",
|
|
9
|
+
ADDRESS_PATTERN = "ADDRESS_PATTERN",
|
|
10
|
+
DETAIL_PATTERN = "DETAIL_PATTERN",
|
|
11
|
+
}
|
|
12
|
+
|
|
7
13
|
export enum APIDataType {
|
|
8
14
|
DATA_TYPE_UNSPECIFIED = "DATA_TYPE_UNSPECIFIED",
|
|
9
|
-
|
|
10
|
-
|
|
15
|
+
swagger = "swagger",
|
|
16
|
+
markdown = "markdown",
|
|
11
17
|
}
|
|
12
18
|
|
|
13
19
|
export enum OrderBy {
|
|
@@ -34,6 +40,15 @@ export enum Status {
|
|
|
34
40
|
Exception = "Exception",
|
|
35
41
|
}
|
|
36
42
|
|
|
43
|
+
export enum MeshPhase {
|
|
44
|
+
MESH_STATUS_UNSPECIFIED = "MESH_STATUS_UNSPECIFIED",
|
|
45
|
+
CREATING = "CREATING",
|
|
46
|
+
UPDATING = "UPDATING",
|
|
47
|
+
FAILED = "FAILED",
|
|
48
|
+
SUCCEEDED = "SUCCEEDED",
|
|
49
|
+
TERMINATING = "TERMINATING",
|
|
50
|
+
}
|
|
51
|
+
|
|
37
52
|
export enum ClusterPhase {
|
|
38
53
|
CLUSTER_PHASE_UNSPECIFIED = "CLUSTER_PHASE_UNSPECIFIED",
|
|
39
54
|
ClusterPhaseUnknown = "ClusterPhaseUnknown",
|
|
@@ -130,6 +145,8 @@ export type Cluster = {
|
|
|
130
145
|
export type Mesh = {
|
|
131
146
|
id?: string
|
|
132
147
|
name?: string
|
|
148
|
+
meshVersion?: string
|
|
149
|
+
phase?: MeshPhase
|
|
133
150
|
}
|
|
134
151
|
|
|
135
152
|
export type Workspace = {
|
|
@@ -153,6 +170,10 @@ export type API = {
|
|
|
153
170
|
nacosGroupName?: string
|
|
154
171
|
dataType?: APIDataType
|
|
155
172
|
detail?: string
|
|
173
|
+
address?: string
|
|
174
|
+
inputPattern?: InputPattern
|
|
175
|
+
createAt?: string
|
|
176
|
+
updateAt?: string
|
|
156
177
|
}
|
|
157
178
|
|
|
158
179
|
export type Image = {
|
|
@@ -334,4 +334,12 @@ export type ListWorkspaceRolePermissionsReq = {
|
|
|
334
334
|
|
|
335
335
|
export type ListWorkspaceRolePermissionsRes = {
|
|
336
336
|
permissions?: string[]
|
|
337
|
+
}
|
|
338
|
+
|
|
339
|
+
export type ListSwaggerReq = {
|
|
340
|
+
swaggerUrl?: string
|
|
341
|
+
}
|
|
342
|
+
|
|
343
|
+
export type ListSwaggerRes = {
|
|
344
|
+
item?: string
|
|
337
345
|
}
|
|
@@ -83,6 +83,19 @@ export type ExportAPIReq = {
|
|
|
83
83
|
all?: boolean
|
|
84
84
|
}
|
|
85
85
|
|
|
86
|
+
export type ExportAPIUrlReq = {
|
|
87
|
+
workspaceId?: string
|
|
88
|
+
gatewayName?: string
|
|
89
|
+
clusterName?: string
|
|
90
|
+
namespaceName?: string
|
|
91
|
+
apiName?: string[]
|
|
92
|
+
all?: boolean
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type ExportAPIURLRes = {
|
|
96
|
+
url?: string
|
|
97
|
+
}
|
|
98
|
+
|
|
86
99
|
export type ImportAPIReq = {
|
|
87
100
|
workspaceId?: string
|
|
88
101
|
gatewayName?: string
|
|
@@ -131,6 +144,8 @@ export type AdvancedAPIReq = {
|
|
|
131
144
|
|
|
132
145
|
export type TimeoutPolicy = {
|
|
133
146
|
response?: string
|
|
147
|
+
upstreamIdle?: string
|
|
148
|
+
downstreamIdle?: string
|
|
134
149
|
}
|
|
135
150
|
|
|
136
151
|
export type PathRewritePolicy = {
|
|
@@ -379,7 +394,7 @@ export type OperationFailReason = {
|
|
|
379
394
|
reason?: string
|
|
380
395
|
}
|
|
381
396
|
|
|
382
|
-
export type
|
|
397
|
+
export type QueryAPIByParamsReq = {
|
|
383
398
|
workspaceId?: string
|
|
384
399
|
clusterName?: string
|
|
385
400
|
namespaceName?: string
|
|
@@ -387,6 +402,6 @@ export type GetAPIByParamsReq = {
|
|
|
387
402
|
serviceName?: string
|
|
388
403
|
}
|
|
389
404
|
|
|
390
|
-
export type
|
|
405
|
+
export type QueryAPIByParamsRes = {
|
|
391
406
|
apiNames?: string[]
|
|
392
407
|
}
|
|
@@ -33,6 +33,13 @@ export enum SesameGatewayResourceType {
|
|
|
33
33
|
SESAME_RESOURCE_API = "SESAME_RESOURCE_API",
|
|
34
34
|
}
|
|
35
35
|
|
|
36
|
+
export enum MemoryUnit {
|
|
37
|
+
MEMORY_UNIT_UNSPECIFIED = "MEMORY_UNIT_UNSPECIFIED",
|
|
38
|
+
Ki = "Ki",
|
|
39
|
+
Mi = "Mi",
|
|
40
|
+
Gi = "Gi",
|
|
41
|
+
}
|
|
42
|
+
|
|
36
43
|
export enum HealthStatus {
|
|
37
44
|
HEALTH_STATUS_UNSPECIFIED = "HEALTH_STATUS_UNSPECIFIED",
|
|
38
45
|
Healthy = "Healthy",
|
|
@@ -345,10 +352,16 @@ export type EnvoyAdvancedConfig = BaseEnvoyAdvancedConfig
|
|
|
345
352
|
|
|
346
353
|
export type AdvancedConfig = {
|
|
347
354
|
log?: Log
|
|
355
|
+
maxHeapSize?: MaxHeapSize
|
|
348
356
|
contour?: ContourAdvancedConfig
|
|
349
357
|
envoy?: EnvoyAdvancedConfig
|
|
350
358
|
}
|
|
351
359
|
|
|
360
|
+
export type MaxHeapSize = {
|
|
361
|
+
unit?: MemoryUnit
|
|
362
|
+
size?: string
|
|
363
|
+
}
|
|
364
|
+
|
|
352
365
|
export type Log = {
|
|
353
366
|
envoyLogLevel?: LogLogLevel
|
|
354
367
|
kubernetesDebug?: number
|
|
@@ -549,9 +562,10 @@ export type QueryGatewayDeploymentsMetricRangeRes = {
|
|
|
549
562
|
}
|
|
550
563
|
|
|
551
564
|
export type ResourceMetric = {
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
565
|
+
limits?: string
|
|
566
|
+
requests?: string
|
|
567
|
+
usage?: string
|
|
568
|
+
utilization?: string
|
|
555
569
|
}
|
|
556
570
|
|
|
557
571
|
export type RealtimeMetric = {
|
|
@@ -609,12 +623,12 @@ export type IPPolicy = {
|
|
|
609
623
|
denyRules?: IPPolicyRule[]
|
|
610
624
|
}
|
|
611
625
|
|
|
612
|
-
export type
|
|
626
|
+
export type QueryGatewayByParamsReq = {
|
|
613
627
|
workspaceId?: string
|
|
614
628
|
clusterName?: string
|
|
615
|
-
|
|
629
|
+
rootNamespace?: string
|
|
616
630
|
}
|
|
617
631
|
|
|
618
|
-
export type
|
|
632
|
+
export type QueryGatewayByParamsRes = {
|
|
619
633
|
gatewayName?: string
|
|
620
634
|
}
|
|
@@ -132,6 +132,14 @@ export type DeleteLaneServiceReq = {
|
|
|
132
132
|
services?: LaneServiceDetail[]
|
|
133
133
|
}
|
|
134
134
|
|
|
135
|
+
export type GetLaneGraphReq = {
|
|
136
|
+
workspaceId?: string
|
|
137
|
+
meshId?: string
|
|
138
|
+
laneName?: string
|
|
139
|
+
start?: string
|
|
140
|
+
end?: string
|
|
141
|
+
}
|
|
142
|
+
|
|
135
143
|
export type ListMeshServiceReq = {
|
|
136
144
|
workspaceId?: string
|
|
137
145
|
meshId?: string
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
import * as GoogleProtobufAny from "../../../google/protobuf/any.pb"
|
|
8
8
|
import * as GoogleProtobufDuration from "../../../google/protobuf/duration.pb"
|
|
9
|
-
import * as GoogleProtobufStruct from "../../../google/protobuf/struct.pb"
|
|
10
9
|
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
11
10
|
import * as SkoalaApiHostedV1alpha1Skoala_plugins from "./skoala_plugins.pb"
|
|
12
11
|
|
|
@@ -534,7 +533,7 @@ export type WasmPlugin = {
|
|
|
534
533
|
wasmPluginName?: string
|
|
535
534
|
imagePullPolicy?: ImagePullPolicy
|
|
536
535
|
imagePullSecret?: string
|
|
537
|
-
pluginConfig?:
|
|
536
|
+
pluginConfig?: string
|
|
538
537
|
phase?: WasmPluginPhase
|
|
539
538
|
}
|
|
540
539
|
|
|
@@ -364,6 +364,8 @@ export type CreateNacosServiceAPIReq = {
|
|
|
364
364
|
nacosService?: string
|
|
365
365
|
dataType?: SkoalaApiGeneralV1alpha1Common.APIDataType
|
|
366
366
|
detail?: string
|
|
367
|
+
address?: string
|
|
368
|
+
inputPattern?: SkoalaApiGeneralV1alpha1Common.InputPattern
|
|
367
369
|
}
|
|
368
370
|
|
|
369
371
|
export type UpdateNacosServiceAPIReq = {
|
|
@@ -377,6 +379,8 @@ export type UpdateNacosServiceAPIReq = {
|
|
|
377
379
|
apiId?: number
|
|
378
380
|
dataType?: SkoalaApiGeneralV1alpha1Common.APIDataType
|
|
379
381
|
detail?: string
|
|
382
|
+
address?: string
|
|
383
|
+
inputPattern?: SkoalaApiGeneralV1alpha1Common.InputPattern
|
|
380
384
|
}
|
|
381
385
|
|
|
382
386
|
export type DeleteNacosServiceAPIReq = {
|
|
@@ -593,6 +597,7 @@ export type NacosConfigBrief = {
|
|
|
593
597
|
md5?: string
|
|
594
598
|
tenant?: string
|
|
595
599
|
type?: NacosConfigFileType
|
|
600
|
+
existBeta?: boolean
|
|
596
601
|
}
|
|
597
602
|
|
|
598
603
|
export type ListNacosConfigReq = {
|
|
@@ -642,6 +647,7 @@ export type GetNacosConfigRes = {
|
|
|
642
647
|
tenant?: string
|
|
643
648
|
type?: NacosConfigFileType
|
|
644
649
|
use?: string
|
|
650
|
+
existBeta?: boolean
|
|
645
651
|
}
|
|
646
652
|
|
|
647
653
|
export type NacosConfigHistoryBrief = {
|
|
@@ -17,6 +17,33 @@ type OneOf<T> =
|
|
|
17
17
|
: never)
|
|
18
18
|
: never);
|
|
19
19
|
|
|
20
|
+
export enum SentinelStatus {
|
|
21
|
+
Sentinel_Unknown = "Sentinel_Unknown",
|
|
22
|
+
Sentinel_Waiting = "Sentinel_Waiting",
|
|
23
|
+
Sentinel_Running = "Sentinel_Running",
|
|
24
|
+
Sentinel_Deleting = "Sentinel_Deleting",
|
|
25
|
+
Sentinel_NotReady = "Sentinel_NotReady",
|
|
26
|
+
}
|
|
27
|
+
|
|
28
|
+
export enum SeataStatus {
|
|
29
|
+
Seata_Unknown = "Seata_Unknown",
|
|
30
|
+
Seata_Waiting = "Seata_Waiting",
|
|
31
|
+
Seata_Running = "Seata_Running",
|
|
32
|
+
Seata_Deleting = "Seata_Deleting",
|
|
33
|
+
Seata_NotReady = "Seata_NotReady",
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export enum MeshStatus {
|
|
37
|
+
Mesh_Unknown = "Mesh_Unknown",
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export enum GetSeataPluginResPhase {
|
|
41
|
+
Waiting = "Waiting",
|
|
42
|
+
Running = "Running",
|
|
43
|
+
Deleting = "Deleting",
|
|
44
|
+
NotReady = "NotReady",
|
|
45
|
+
}
|
|
46
|
+
|
|
20
47
|
export enum GetMeshPluginResMeshMode {
|
|
21
48
|
MESH_MODE_UNSPECIFIED = "MESH_MODE_UNSPECIFIED",
|
|
22
49
|
HOSTED = "HOSTED",
|
|
@@ -40,6 +67,9 @@ export enum GetSentinelResPhase {
|
|
|
40
67
|
export type Plugin = {
|
|
41
68
|
name?: string
|
|
42
69
|
enabled?: boolean
|
|
70
|
+
sentinelStatus?: SentinelStatus
|
|
71
|
+
seataStatus?: SeataStatus
|
|
72
|
+
meshStatus?: MeshStatus
|
|
43
73
|
}
|
|
44
74
|
|
|
45
75
|
export type ListPluginReq = {
|
|
@@ -66,7 +96,7 @@ type BaseGetPluginRes = {
|
|
|
66
96
|
}
|
|
67
97
|
|
|
68
98
|
export type GetPluginRes = BaseGetPluginRes
|
|
69
|
-
& OneOf<{ sentinel: GetSentinelPluginRes; mesh: GetMeshPluginRes }>
|
|
99
|
+
& OneOf<{ sentinel: GetSentinelPluginRes; mesh: GetMeshPluginRes; seata: GetSeataPluginRes }>
|
|
70
100
|
|
|
71
101
|
export type GetSentinelPluginReq = {
|
|
72
102
|
}
|
|
@@ -82,6 +112,22 @@ export type GetSentinelPluginRes = {
|
|
|
82
112
|
pwd?: string
|
|
83
113
|
}
|
|
84
114
|
|
|
115
|
+
export type GetSeataPluginReq = {
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export type GetSeataPluginRes = {
|
|
119
|
+
image?: string
|
|
120
|
+
replicas?: number
|
|
121
|
+
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
122
|
+
type?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
123
|
+
ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
|
|
124
|
+
visitAddress?: string
|
|
125
|
+
workloadState?: SkoalaApiGeneralV1alpha1Common.WorkloadState
|
|
126
|
+
pwd?: string
|
|
127
|
+
mysql?: MySql
|
|
128
|
+
phase?: GetSeataPluginResPhase
|
|
129
|
+
}
|
|
130
|
+
|
|
85
131
|
export type GetMeshPluginReq = {
|
|
86
132
|
}
|
|
87
133
|
|
|
@@ -103,7 +149,7 @@ type BaseUpdatePluginReq = {
|
|
|
103
149
|
}
|
|
104
150
|
|
|
105
151
|
export type UpdatePluginReq = BaseUpdatePluginReq
|
|
106
|
-
& OneOf<{ sentinel: UpdateSentinelPluginReq; mesh: UpdateMeshPluginReq }>
|
|
152
|
+
& OneOf<{ sentinel: UpdateSentinelPluginReq; mesh: UpdateMeshPluginReq; seata: UpdateSeataPluginReq }>
|
|
107
153
|
|
|
108
154
|
export type UpdateSentinelPluginReq = {
|
|
109
155
|
enabled?: boolean
|
|
@@ -115,6 +161,26 @@ export type UpdateSentinelPluginReq = {
|
|
|
115
161
|
pwd?: string
|
|
116
162
|
}
|
|
117
163
|
|
|
164
|
+
export type UpdateSeataPluginReq = {
|
|
165
|
+
enabled?: boolean
|
|
166
|
+
chart?: SkoalaApiGeneralV1alpha1Common.Component
|
|
167
|
+
replicas?: number
|
|
168
|
+
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
169
|
+
type?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
170
|
+
ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
|
|
171
|
+
pwd?: string
|
|
172
|
+
deleteConfigs?: boolean
|
|
173
|
+
mysql?: MySql
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
export type MySql = {
|
|
177
|
+
host?: string
|
|
178
|
+
port?: string
|
|
179
|
+
name?: string
|
|
180
|
+
user?: string
|
|
181
|
+
password?: string
|
|
182
|
+
}
|
|
183
|
+
|
|
118
184
|
export type UpdateMeshPluginReq = {
|
|
119
185
|
enabled?: boolean
|
|
120
186
|
name?: string
|
|
@@ -0,0 +1,102 @@
|
|
|
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 SkoalaApiHostedV1alpha1Api from "../v1alpha1/api.pb"
|
|
8
|
+
import * as SkoalaApiHostedV1alpha1Http from "../v1alpha1/http.pb"
|
|
9
|
+
|
|
10
|
+
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
11
|
+
type OneOf<T> =
|
|
12
|
+
| { [k in keyof T]?: undefined }
|
|
13
|
+
| (
|
|
14
|
+
keyof T extends infer K ?
|
|
15
|
+
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
16
|
+
: never)
|
|
17
|
+
: never);
|
|
18
|
+
export type CreateAPIReq = {
|
|
19
|
+
workspaceId?: string
|
|
20
|
+
gatewayName?: string
|
|
21
|
+
clusterName?: string
|
|
22
|
+
namespaceName?: string
|
|
23
|
+
apiConfig?: APIConfig
|
|
24
|
+
advancedApiConfig?: SkoalaApiHostedV1alpha1Api.AdvancedAPIConfig
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type UpdateAPIReq = {
|
|
28
|
+
workspaceId?: string
|
|
29
|
+
gatewayName?: string
|
|
30
|
+
clusterName?: string
|
|
31
|
+
namespaceName?: string
|
|
32
|
+
apiName?: string
|
|
33
|
+
apiConfig?: APIConfig
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type UpdateAPIAdvancedPolicyReq = {
|
|
37
|
+
workspaceId?: string
|
|
38
|
+
gatewayName?: string
|
|
39
|
+
clusterName?: string
|
|
40
|
+
namespaceName?: string
|
|
41
|
+
apiName?: string
|
|
42
|
+
advancedApiConfig?: SkoalaApiHostedV1alpha1Api.AdvancedAPIConfig
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type GetAPIReq = {
|
|
46
|
+
workspaceId?: string
|
|
47
|
+
gatewayName?: string
|
|
48
|
+
clusterName?: string
|
|
49
|
+
namespaceName?: string
|
|
50
|
+
apiName?: string
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export type GetAPIRes = {
|
|
54
|
+
apiName?: string
|
|
55
|
+
enabled?: boolean
|
|
56
|
+
apiGroup?: string
|
|
57
|
+
fqdn?: string
|
|
58
|
+
matchRule?: MatchRule
|
|
59
|
+
routeRules?: RouteRule[]
|
|
60
|
+
advancedPolicy?: SkoalaApiHostedV1alpha1Api.AdvancedAPIConfig
|
|
61
|
+
apiStatus?: SkoalaApiHostedV1alpha1Http.APIStatus
|
|
62
|
+
status?: SkoalaApiHostedV1alpha1Http.APIStatusEnum
|
|
63
|
+
statusDescription?: string
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type GetAPIDocReq = {
|
|
67
|
+
workspaceId?: string
|
|
68
|
+
gatewayName?: string
|
|
69
|
+
clusterName?: string
|
|
70
|
+
namespaceName?: string
|
|
71
|
+
apiName?: string
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type GetAPIDocRes = {
|
|
75
|
+
apiName?: string
|
|
76
|
+
apiDoc?: string
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type APIConfig = {
|
|
80
|
+
apiName?: string
|
|
81
|
+
fqdn?: string
|
|
82
|
+
matchRule?: MatchRule
|
|
83
|
+
routeRules?: RouteRule[]
|
|
84
|
+
enabled?: boolean
|
|
85
|
+
apiGroup?: string
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
|
|
89
|
+
type BaseMatchRule = {
|
|
90
|
+
httpMethod?: SkoalaApiHostedV1alpha1Http.HttpMethod[]
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export type MatchRule = BaseMatchRule
|
|
94
|
+
& OneOf<{ exact: string; prefix: string; regex: string }>
|
|
95
|
+
|
|
96
|
+
|
|
97
|
+
type BaseRouteRule = {
|
|
98
|
+
headers?: SkoalaApiHostedV1alpha1Http.HeaderRule[]
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export type RouteRule = BaseRouteRule
|
|
102
|
+
& OneOf<{ routeAction: SkoalaApiHostedV1alpha1Api.RouteAction; redirect: SkoalaApiHostedV1alpha1Api.RedirectAction; directResponse: SkoalaApiHostedV1alpha1Api.DirectResponse }>
|
|
@@ -76,6 +76,8 @@ export type CreateServiceAPIReq = {
|
|
|
76
76
|
serviceName?: string
|
|
77
77
|
dataType?: SkoalaApiGeneralV1alpha1Common.APIDataType
|
|
78
78
|
detail?: string
|
|
79
|
+
address?: string
|
|
80
|
+
inputPattern?: SkoalaApiGeneralV1alpha1Common.InputPattern
|
|
79
81
|
}
|
|
80
82
|
|
|
81
83
|
export type UpdateServiceAPIReq = {
|
|
@@ -84,6 +86,8 @@ export type UpdateServiceAPIReq = {
|
|
|
84
86
|
serviceName?: string
|
|
85
87
|
dataType?: SkoalaApiGeneralV1alpha1Common.APIDataType
|
|
86
88
|
detail?: string
|
|
89
|
+
address?: string
|
|
90
|
+
inputPattern?: SkoalaApiGeneralV1alpha1Common.InputPattern
|
|
87
91
|
apiId?: number
|
|
88
92
|
}
|
|
89
93
|
|
|
@@ -8,6 +8,7 @@ import * as fm from "../../../fetch.pb"
|
|
|
8
8
|
import * as GoogleApiHttpbody from "../../../google/api/httpbody.pb"
|
|
9
9
|
import * as GoogleProtobufAny from "../../../google/protobuf/any.pb"
|
|
10
10
|
import * as GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"
|
|
11
|
+
import * as InsightIoApiGraphV1alpha1Graph from "../../../graph/v1alpha1/graph.pb"
|
|
11
12
|
import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
|
|
12
13
|
import * as SkoalaApiGeneralV1alpha1Version from "../../general/v1alpha1/version.pb"
|
|
13
14
|
import * as SkoalaApiHostedV1alpha1Api from "../../hosted/v1alpha1/api.pb"
|
|
@@ -28,17 +29,6 @@ import * as SkoalaApiHostedV1alpha1Virtualhost from "../../hosted/v1alpha1/virtu
|
|
|
28
29
|
import * as SkoalaApiIntegratedV1alpha1Instance from "../../integrated/v1alpha1/instance.pb"
|
|
29
30
|
import * as SkoalaApiIntegratedV1alpha1Registry from "../../integrated/v1alpha1/registry.pb"
|
|
30
31
|
import * as SkoalaApiIntegratedV1alpha1Service from "../../integrated/v1alpha1/service.pb"
|
|
31
|
-
|
|
32
|
-
export enum AuditVerb {
|
|
33
|
-
AUDIT_VERB_UNSPECIFIED = "AUDIT_VERB_UNSPECIFIED",
|
|
34
|
-
Create = "Create",
|
|
35
|
-
Retrieve = "Retrieve",
|
|
36
|
-
Update = "Update",
|
|
37
|
-
Delete = "Delete",
|
|
38
|
-
Restart = "Restart",
|
|
39
|
-
Upsert = "Upsert",
|
|
40
|
-
}
|
|
41
|
-
|
|
42
32
|
export class Hive {
|
|
43
33
|
static GetVersion(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Version.GetVersionRes> {
|
|
44
34
|
return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiGeneralV1alpha1Version.GetVersionRes>(`/apis/hive.skoala.io/v1alpha1/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -116,6 +106,9 @@ export class Skoala {
|
|
|
116
106
|
static ListWorkspaceRolePermissions(req: SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRolePermissionsReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRolePermissionsRes> {
|
|
117
107
|
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRolePermissionsReq, SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRolePermissionsRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
118
108
|
}
|
|
109
|
+
static GetSwaggerDetail(req: SkoalaApiGeneralV1alpha1Skoala.ListSwaggerReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListSwaggerRes> {
|
|
110
|
+
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListSwaggerReq, SkoalaApiGeneralV1alpha1Skoala.ListSwaggerRes>(`/apis/skoala.io/v1alpha1/swagger?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
111
|
+
}
|
|
119
112
|
}
|
|
120
113
|
export class Registry {
|
|
121
114
|
static List(req: SkoalaApiIntegratedV1alpha1Registry.ListRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.ListRegistryRes> {
|
|
@@ -482,19 +475,19 @@ export class Mesh {
|
|
|
482
475
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateServiceIstioPluginReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["ports"]}/istioplugin`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
483
476
|
}
|
|
484
477
|
static ListServiceIstioPlugin(req: SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRes> {
|
|
485
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginReq, SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/
|
|
478
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginReq, SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}/istioplugin?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
|
|
486
479
|
}
|
|
487
480
|
static GetServiceIstioPlugin(req: SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRes> {
|
|
488
481
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginReq, SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/istioplugin/${req["pluginName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "pluginName"])}`, {...initReq, method: "GET"})
|
|
489
482
|
}
|
|
490
483
|
static DeleteServiceIstioPlugin(req: SkoalaApiHostedV1alpha1Mesh.DeleteServiceIstioPluginReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
491
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.DeleteServiceIstioPluginReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/istioplugin/${req["pluginName"]}`, {...initReq, method: "DELETE"})
|
|
484
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.DeleteServiceIstioPluginReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/istioplugin/${req["pluginName"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req, fm.replacer)})
|
|
492
485
|
}
|
|
493
486
|
static UpdateServiceIstioPlugin(req: SkoalaApiHostedV1alpha1Mesh.UpdateServiceIstioPluginReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
494
487
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateServiceIstioPluginReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/istioplugin/${req["pluginName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
495
488
|
}
|
|
496
489
|
static SortServiceIstioPlugin(req: SkoalaApiHostedV1alpha1Mesh.SortServiceIstioPluginReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
497
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.SortServiceIstioPluginReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/
|
|
490
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.SortServiceIstioPluginReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}/istioplugin/sort`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
498
491
|
}
|
|
499
492
|
static ListServiceIstioPluginRLSPorts(req: SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSPortsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSPortsRes> {
|
|
500
493
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSPortsReq, SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSPortsRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/istioplugin/rls/ports?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
|
|
@@ -503,16 +496,16 @@ export class Mesh {
|
|
|
503
496
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSRulesReq, SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSRulesRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/istioplugin/rls/rules?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
|
|
504
497
|
}
|
|
505
498
|
static GetServiceIstioPluginRLSRules(req: SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRLSRulesReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRLSRulesRes> {
|
|
506
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRLSRulesReq, SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRLSRulesRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/
|
|
499
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRLSRulesReq, SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRLSRulesRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}/istioplugin/rls/rules?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName", "port"])}`, {...initReq, method: "GET"})
|
|
507
500
|
}
|
|
508
501
|
static CreateServiceIstioPluginRLSRules(req: SkoalaApiHostedV1alpha1Mesh.CreateServiceIstioPluginRLSRulesReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
509
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateServiceIstioPluginRLSRulesReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/
|
|
502
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateServiceIstioPluginRLSRulesReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}/istioplugin/rls/rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
510
503
|
}
|
|
511
504
|
static DeleteServiceIstioPluginRLSRules(req: SkoalaApiHostedV1alpha1Mesh.DeleteServiceIstioPluginRLSRulesReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
512
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.DeleteServiceIstioPluginRLSRulesReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/
|
|
505
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.DeleteServiceIstioPluginRLSRulesReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}/istioplugin/rls/rules`, {...initReq, method: "DELETE"})
|
|
513
506
|
}
|
|
514
507
|
static UpdateServiceIstioPluginRLSRules(req: SkoalaApiHostedV1alpha1Mesh.UpdateServiceIstioPluginRLSRulesReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
515
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateServiceIstioPluginRLSRulesReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/
|
|
508
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.UpdateServiceIstioPluginRLSRulesReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}/ports/${req["port"]}/istioplugin/rls/rules`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
516
509
|
}
|
|
517
510
|
static GetService(req: SkoalaApiHostedV1alpha1Mesh.GetServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetServiceRes> {
|
|
518
511
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetServiceReq, SkoalaApiHostedV1alpha1Mesh.GetServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName", "serviceName"])}`, {...initReq, method: "GET"})
|
|
@@ -662,8 +655,8 @@ export class Gateway {
|
|
|
662
655
|
static GetWorkingComponents(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes> {
|
|
663
656
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/components?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
664
657
|
}
|
|
665
|
-
static
|
|
666
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.
|
|
658
|
+
static QueryGatewayByParams(req: SkoalaApiHostedV1alpha1Gateway.QueryGatewayByParamsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.QueryGatewayByParamsRes> {
|
|
659
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.QueryGatewayByParamsReq, SkoalaApiHostedV1alpha1Gateway.QueryGatewayByParamsRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/gateways/query?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
|
|
667
660
|
}
|
|
668
661
|
static Diagnostic(req: SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
669
662
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/diagnostic`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
@@ -807,14 +800,17 @@ export class GatewayAPI {
|
|
|
807
800
|
static ExportAPI(req: SkoalaApiHostedV1alpha1Api.ExportAPIReq, entityNotifier?: fm.NotifyStreamEntityArrival<GoogleApiHttpbody.HttpBody>, initReq?: fm.InitReq): Promise<void> {
|
|
808
801
|
return fm.fetchStreamingRequest<SkoalaApiHostedV1alpha1Api.ExportAPIReq, GoogleApiHttpbody.HttpBody>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/export?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, entityNotifier, {...initReq, method: "GET"})
|
|
809
802
|
}
|
|
803
|
+
static ExportAPIURL(req: SkoalaApiHostedV1alpha1Api.ExportAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.ExportAPIURLRes> {
|
|
804
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Api.ExportAPIReq, SkoalaApiHostedV1alpha1Api.ExportAPIURLRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/exporturl?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
805
|
+
}
|
|
810
806
|
static ImportAPICheck(req: SkoalaApiHostedV1alpha1Api.ImportAPICheckReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.ImportAPICheckRes> {
|
|
811
807
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Api.ImportAPICheckReq, SkoalaApiHostedV1alpha1Api.ImportAPICheckRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/import/check`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
812
808
|
}
|
|
813
809
|
static ImportAPI(req: SkoalaApiHostedV1alpha1Api.ImportAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.ImportAPIRes> {
|
|
814
810
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Api.ImportAPIReq, SkoalaApiHostedV1alpha1Api.ImportAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/import`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
815
811
|
}
|
|
816
|
-
static
|
|
817
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Api.
|
|
812
|
+
static QueryAPIByParams(req: SkoalaApiHostedV1alpha1Api.QueryAPIByParamsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.QueryAPIByParamsRes> {
|
|
813
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Api.QueryAPIByParamsReq, SkoalaApiHostedV1alpha1Api.QueryAPIByParamsRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/query?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
818
814
|
}
|
|
819
815
|
}
|
|
820
816
|
export class GatewayService {
|
|
@@ -917,6 +913,9 @@ export class Lane {
|
|
|
917
913
|
static DeleteLaneService(req: SkoalaApiHostedV1alpha1Lane.DeleteLaneServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
918
914
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.DeleteLaneServiceReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/lanes/${req["laneName"]}/services`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
919
915
|
}
|
|
916
|
+
static GetLaneGraph(req: SkoalaApiHostedV1alpha1Lane.GetLaneGraphReq, initReq?: fm.InitReq): Promise<InsightIoApiGraphV1alpha1Graph.Graph> {
|
|
917
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.GetLaneGraphReq, InsightIoApiGraphV1alpha1Graph.Graph>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/lanes/${req["laneName"]}/services/graph?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "laneName"])}`, {...initReq, method: "GET"})
|
|
918
|
+
}
|
|
920
919
|
static ListMeshService(req: SkoalaApiHostedV1alpha1Lane.ListMeshServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Lane.ListMeshServiceRes> {
|
|
921
920
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Lane.ListMeshServiceReq, SkoalaApiHostedV1alpha1Lane.ListMeshServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "meshId", "namespaceName"])}`, {...initReq, method: "GET"})
|
|
922
921
|
}
|
|
@@ -0,0 +1,26 @@
|
|
|
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 SkoalaApiHostedV1alpha2Gateway_api from "../../hosted/v1alpha2/gateway_api.pb"
|
|
10
|
+
export class GatewayAPI {
|
|
11
|
+
static CreateGatewayAPI(req: SkoalaApiHostedV1alpha2Gateway_api.CreateAPIReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
12
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha2Gateway_api.CreateAPIReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
13
|
+
}
|
|
14
|
+
static UpdateGatewayAPI(req: SkoalaApiHostedV1alpha2Gateway_api.UpdateAPIReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
15
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha2Gateway_api.UpdateAPIReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
16
|
+
}
|
|
17
|
+
static UpdateGatewayAPIAdvancedPolicy(req: SkoalaApiHostedV1alpha2Gateway_api.UpdateAPIAdvancedPolicyReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
18
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha2Gateway_api.UpdateAPIAdvancedPolicyReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}/policies`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
19
|
+
}
|
|
20
|
+
static GetGatewayAPI(req: SkoalaApiHostedV1alpha2Gateway_api.GetAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha2Gateway_api.GetAPIRes> {
|
|
21
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha2Gateway_api.GetAPIReq, SkoalaApiHostedV1alpha2Gateway_api.GetAPIRes>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "apiName"])}`, {...initReq, method: "GET"})
|
|
22
|
+
}
|
|
23
|
+
static GetGatewayAPIDoc(req: SkoalaApiHostedV1alpha2Gateway_api.GetAPIDocReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha2Gateway_api.GetAPIDocRes> {
|
|
24
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha2Gateway_api.GetAPIDocReq, SkoalaApiHostedV1alpha2Gateway_api.GetAPIDocRes>(`/apis/sesame.skoala.io/v1alpha2/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}/doc?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "apiName"])}`, {...initReq, method: "GET"})
|
|
25
|
+
}
|
|
26
|
+
}
|