@daocloud-proto/skoala 0.27.2 → 0.28.0
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 +31 -2
- package/api/general/v1alpha1/skoala.pb.ts +8 -0
- package/api/hosted/v1alpha1/api.pb.ts +27 -0
- package/api/hosted/v1alpha1/gateway.pb.ts +27 -3
- package/api/hosted/v1alpha1/http.pb.ts +7 -0
- 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/v1alpha1/seata.pb.ts +124 -0
- package/api/hosted/v1alpha2/gateway_api.pb.ts +102 -0
- package/api/integrated/v1alpha1/registry.pb.ts +3 -1
- package/api/integrated/v1alpha1/service.pb.ts +5 -1
- package/api/skoala/v1alpha1/skoala.pb.ts +32 -18
- 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 = {
|
|
@@ -160,6 +181,14 @@ export type Image = {
|
|
|
160
181
|
repository?: string
|
|
161
182
|
tag?: string
|
|
162
183
|
pullPolicy?: string
|
|
184
|
+
multiVersion?: {[key: string]: MultiVersionImage}
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export type MultiVersionImage = {
|
|
188
|
+
registry?: string
|
|
189
|
+
repository?: string
|
|
190
|
+
tag?: string
|
|
191
|
+
pullPolicy?: string
|
|
163
192
|
}
|
|
164
193
|
|
|
165
194
|
export type Component = {
|
|
@@ -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
|
+
idleConnection?: string
|
|
148
|
+
idle?: string
|
|
134
149
|
}
|
|
135
150
|
|
|
136
151
|
export type PathRewritePolicy = {
|
|
@@ -377,4 +392,16 @@ export type APIBatchOperationRes = {
|
|
|
377
392
|
export type OperationFailReason = {
|
|
378
393
|
apiName?: string
|
|
379
394
|
reason?: string
|
|
395
|
+
}
|
|
396
|
+
|
|
397
|
+
export type QueryAPIByParamsReq = {
|
|
398
|
+
workspaceId?: string
|
|
399
|
+
clusterName?: string
|
|
400
|
+
namespaceName?: string
|
|
401
|
+
gatewayName?: string
|
|
402
|
+
serviceName?: string
|
|
403
|
+
}
|
|
404
|
+
|
|
405
|
+
export type QueryAPIByParamsRes = {
|
|
406
|
+
apiNames?: string[]
|
|
380
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 = {
|
|
@@ -607,4 +621,14 @@ export type IPPolicy = {
|
|
|
607
621
|
level?: IPPolicyLevel
|
|
608
622
|
allowRules?: IPPolicyRule[]
|
|
609
623
|
denyRules?: IPPolicyRule[]
|
|
624
|
+
}
|
|
625
|
+
|
|
626
|
+
export type QueryGatewayByParamsReq = {
|
|
627
|
+
workspaceId?: string
|
|
628
|
+
clusterName?: string
|
|
629
|
+
rootNamespace?: string
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
export type QueryGatewayByParamsRes = {
|
|
633
|
+
gatewayName?: string
|
|
610
634
|
}
|
|
@@ -44,6 +44,12 @@ export enum APIStatusEnum {
|
|
|
44
44
|
unknown = "unknown",
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
export enum MatchType {
|
|
48
|
+
EXACT = "EXACT",
|
|
49
|
+
PREFIX = "PREFIX",
|
|
50
|
+
REGEX = "REGEX",
|
|
51
|
+
}
|
|
52
|
+
|
|
47
53
|
export enum StatusCode {
|
|
48
54
|
Empty = "Empty",
|
|
49
55
|
Continue = "Continue",
|
|
@@ -145,6 +151,7 @@ export type APIInfo = {
|
|
|
145
151
|
apiGroup?: string
|
|
146
152
|
fqdn?: string
|
|
147
153
|
method?: HttpMethod[]
|
|
154
|
+
matchType?: MatchType
|
|
148
155
|
requestPath?: string
|
|
149
156
|
routeType?: RouteType
|
|
150
157
|
enabled?: boolean
|
|
@@ -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,124 @@
|
|
|
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 SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
|
+
|
|
9
|
+
export enum TxStatus {
|
|
10
|
+
Tx_Unspecified = "Tx_Unspecified",
|
|
11
|
+
Begin = "Begin",
|
|
12
|
+
Committing = "Committing",
|
|
13
|
+
CommitRetrying = "CommitRetrying",
|
|
14
|
+
Rollbacking = "Rollbacking",
|
|
15
|
+
RollbackRetrying = "RollbackRetrying",
|
|
16
|
+
TimeoutRollbacking = "TimeoutRollbacking",
|
|
17
|
+
TimeoutRollbackRetrying = "TimeoutRollbackRetrying",
|
|
18
|
+
AsyncCommitting = "AsyncCommitting",
|
|
19
|
+
Committed = "Committed",
|
|
20
|
+
CommitFailed = "CommitFailed",
|
|
21
|
+
Rollbacked = "Rollbacked",
|
|
22
|
+
RollbackFailed = "RollbackFailed",
|
|
23
|
+
TimeoutRollbacked = "TimeoutRollbacked",
|
|
24
|
+
TimeoutRollbackFailed = "TimeoutRollbackFailed",
|
|
25
|
+
Finished = "Finished",
|
|
26
|
+
CommitRetryTimeout = "CommitRetryTimeout",
|
|
27
|
+
RollbackRetryTimeout = "RollbackRetryTimeout",
|
|
28
|
+
UnKnown = "UnKnown",
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export enum BranchTxStatus {
|
|
32
|
+
Branch_Unspecified = "Branch_Unspecified",
|
|
33
|
+
Registered = "Registered",
|
|
34
|
+
PhaseOne_Done = "PhaseOne_Done",
|
|
35
|
+
PhaseOne_Failed = "PhaseOne_Failed",
|
|
36
|
+
PhaseOne_Timeout = "PhaseOne_Timeout",
|
|
37
|
+
PhaseTwo_Committed = "PhaseTwo_Committed",
|
|
38
|
+
PhaseTwo_CommitFailed_Retryable = "PhaseTwo_CommitFailed_Retryable",
|
|
39
|
+
PhaseTwo_CommitFailed_Unretryable = "PhaseTwo_CommitFailed_Unretryable",
|
|
40
|
+
PhaseTwo_Rollbacked = "PhaseTwo_Rollbacked",
|
|
41
|
+
PhaseTwo_RollbackFailed_Retryable = "PhaseTwo_RollbackFailed_Retryable",
|
|
42
|
+
PhaseTwo_RollbackFailed_Unretryable = "PhaseTwo_RollbackFailed_Unretryable",
|
|
43
|
+
Branch_UnKnown = "Branch_UnKnown",
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type ListTxReq = {
|
|
47
|
+
workspaceId?: string
|
|
48
|
+
clusterName?: string
|
|
49
|
+
namespaceName?: string
|
|
50
|
+
seataName?: string
|
|
51
|
+
page?: number
|
|
52
|
+
pageSize?: number
|
|
53
|
+
withBranch?: boolean
|
|
54
|
+
accessToken?: string
|
|
55
|
+
authorization?: string[]
|
|
56
|
+
xid?: string
|
|
57
|
+
applicationId?: string
|
|
58
|
+
timeStart?: string
|
|
59
|
+
timeEnd?: string
|
|
60
|
+
status?: TxStatus
|
|
61
|
+
}
|
|
62
|
+
|
|
63
|
+
export type ListTxRes = {
|
|
64
|
+
items?: Tx[]
|
|
65
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export type Tx = {
|
|
69
|
+
xid?: string
|
|
70
|
+
transactionId?: string
|
|
71
|
+
applicationId?: string
|
|
72
|
+
transactionServiceGroup?: string
|
|
73
|
+
transactionName?: string
|
|
74
|
+
status?: TxStatus
|
|
75
|
+
timeout?: string
|
|
76
|
+
beginTime?: string
|
|
77
|
+
applicationData?: string
|
|
78
|
+
branchSessionVOs?: BranchSessionVOs[]
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
export type BranchSessionVOs = {
|
|
82
|
+
transactionId?: string
|
|
83
|
+
branchId?: string
|
|
84
|
+
resourceGroupId?: string
|
|
85
|
+
branchType?: string
|
|
86
|
+
status?: BranchTxStatus
|
|
87
|
+
resourceId?: string
|
|
88
|
+
clientId?: string
|
|
89
|
+
applicationData?: string
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export type ListLockReq = {
|
|
93
|
+
workspaceId?: string
|
|
94
|
+
clusterName?: string
|
|
95
|
+
namespaceName?: string
|
|
96
|
+
seataName?: string
|
|
97
|
+
page?: number
|
|
98
|
+
pageSize?: number
|
|
99
|
+
timeStart?: string
|
|
100
|
+
timeEnd?: string
|
|
101
|
+
xid?: string
|
|
102
|
+
tableName?: string
|
|
103
|
+
transactionId?: string
|
|
104
|
+
branchId?: string
|
|
105
|
+
authorization?: string[]
|
|
106
|
+
accessToken?: string
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
export type ListLockRes = {
|
|
110
|
+
items?: Lock[]
|
|
111
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export type Lock = {
|
|
115
|
+
xid?: string
|
|
116
|
+
transactionId?: string
|
|
117
|
+
branchId?: string
|
|
118
|
+
resourceId?: string
|
|
119
|
+
tableName?: string
|
|
120
|
+
pk?: string
|
|
121
|
+
rowKey?: string
|
|
122
|
+
gmtCreate?: string
|
|
123
|
+
gmtModified?: string
|
|
124
|
+
}
|
|
@@ -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 }>
|
|
@@ -12,7 +12,7 @@ export type Service = {
|
|
|
12
12
|
namespace?: NamespaceWithGroup
|
|
13
13
|
healthInstanceCount?: number
|
|
14
14
|
instanceCount?: number
|
|
15
|
-
registry?: SkoalaApiIntegratedV1alpha1Registry.
|
|
15
|
+
registry?: SkoalaApiIntegratedV1alpha1Registry.PartOfRegistry
|
|
16
16
|
detail?: {[key: string]: string}
|
|
17
17
|
insight?: SkoalaApiGeneralV1alpha1Insight.InsightBrief
|
|
18
18
|
}
|
|
@@ -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"
|
|
@@ -22,23 +23,13 @@ import * as SkoalaApiHostedV1alpha1Lane from "../../hosted/v1alpha1/lane.pb"
|
|
|
22
23
|
import * as SkoalaApiHostedV1alpha1Mesh from "../../hosted/v1alpha1/mesh.pb"
|
|
23
24
|
import * as SkoalaApiHostedV1alpha1Nacos from "../../hosted/v1alpha1/nacos.pb"
|
|
24
25
|
import * as SkoalaApiHostedV1alpha1Plugins from "../../hosted/v1alpha1/plugins.pb"
|
|
26
|
+
import * as SkoalaApiHostedV1alpha1Seata from "../../hosted/v1alpha1/seata.pb"
|
|
25
27
|
import * as SkoalaApiHostedV1alpha1Sentinel from "../../hosted/v1alpha1/sentinel.pb"
|
|
26
28
|
import * as SkoalaApiHostedV1alpha1Skoala_plugins from "../../hosted/v1alpha1/skoala_plugins.pb"
|
|
27
29
|
import * as SkoalaApiHostedV1alpha1Virtualhost from "../../hosted/v1alpha1/virtualhost.pb"
|
|
28
30
|
import * as SkoalaApiIntegratedV1alpha1Instance from "../../integrated/v1alpha1/instance.pb"
|
|
29
31
|
import * as SkoalaApiIntegratedV1alpha1Registry from "../../integrated/v1alpha1/registry.pb"
|
|
30
32
|
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
33
|
export class Hive {
|
|
43
34
|
static GetVersion(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Version.GetVersionRes> {
|
|
44
35
|
return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiGeneralV1alpha1Version.GetVersionRes>(`/apis/hive.skoala.io/v1alpha1/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -116,6 +107,9 @@ export class Skoala {
|
|
|
116
107
|
static ListWorkspaceRolePermissions(req: SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRolePermissionsReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRolePermissionsRes> {
|
|
117
108
|
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRolePermissionsReq, SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRolePermissionsRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/permissions?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
118
109
|
}
|
|
110
|
+
static GetSwaggerDetail(req: SkoalaApiGeneralV1alpha1Skoala.ListSwaggerReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListSwaggerRes> {
|
|
111
|
+
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListSwaggerReq, SkoalaApiGeneralV1alpha1Skoala.ListSwaggerRes>(`/apis/skoala.io/v1alpha1/swagger?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
112
|
+
}
|
|
119
113
|
}
|
|
120
114
|
export class Registry {
|
|
121
115
|
static List(req: SkoalaApiIntegratedV1alpha1Registry.ListRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.ListRegistryRes> {
|
|
@@ -419,6 +413,14 @@ export class Sentinel {
|
|
|
419
413
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteAuthorityRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/authority-rules/${req["ruleId"]}`, {...initReq, method: "DELETE"})
|
|
420
414
|
}
|
|
421
415
|
}
|
|
416
|
+
export class Seata {
|
|
417
|
+
static ListTx(req: SkoalaApiHostedV1alpha1Seata.ListTxReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Seata.ListTxRes> {
|
|
418
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Seata.ListTxReq, SkoalaApiHostedV1alpha1Seata.ListTxRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/seatas/${req["seataName"]}/tx?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "seataName"])}`, {...initReq, method: "GET"})
|
|
419
|
+
}
|
|
420
|
+
static ListLock(req: SkoalaApiHostedV1alpha1Seata.ListLockReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Seata.ListLockRes> {
|
|
421
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Seata.ListLockReq, SkoalaApiHostedV1alpha1Seata.ListLockRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/seatas/${req["seataName"]}/locks?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "seataName"])}`, {...initReq, method: "GET"})
|
|
422
|
+
}
|
|
423
|
+
}
|
|
422
424
|
export class Grafana {
|
|
423
425
|
static GetSentinelDashGrafana(req: SkoalaApiHostedV1alpha1Sentinel.GetSentinelDashGrafanaReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetSentinelDashGrafanaRes> {
|
|
424
426
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetSentinelDashGrafanaReq, SkoalaApiHostedV1alpha1Sentinel.GetSentinelDashGrafanaRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/grafana?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName"])}`, {...initReq, method: "GET"})
|
|
@@ -482,19 +484,19 @@ export class Mesh {
|
|
|
482
484
|
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
485
|
}
|
|
484
486
|
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"]}/
|
|
487
|
+
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
488
|
}
|
|
487
489
|
static GetServiceIstioPlugin(req: SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetServiceIstioPluginRes> {
|
|
488
490
|
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
491
|
}
|
|
490
492
|
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"})
|
|
493
|
+
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
494
|
}
|
|
493
495
|
static UpdateServiceIstioPlugin(req: SkoalaApiHostedV1alpha1Mesh.UpdateServiceIstioPluginReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
494
496
|
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
497
|
}
|
|
496
498
|
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"]}/
|
|
499
|
+
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
500
|
}
|
|
499
501
|
static ListServiceIstioPluginRLSPorts(req: SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSPortsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListServiceIstioPluginRLSPortsRes> {
|
|
500
502
|
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 +505,16 @@ export class Mesh {
|
|
|
503
505
|
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
506
|
}
|
|
505
507
|
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"]}/
|
|
508
|
+
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
509
|
}
|
|
508
510
|
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"]}/
|
|
511
|
+
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
512
|
}
|
|
511
513
|
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"]}/
|
|
514
|
+
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
515
|
}
|
|
514
516
|
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"]}/
|
|
517
|
+
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
518
|
}
|
|
517
519
|
static GetService(req: SkoalaApiHostedV1alpha1Mesh.GetServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetServiceRes> {
|
|
518
520
|
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,6 +664,9 @@ export class Gateway {
|
|
|
662
664
|
static GetWorkingComponents(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes> {
|
|
663
665
|
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
666
|
}
|
|
667
|
+
static QueryGatewayByParams(req: SkoalaApiHostedV1alpha1Gateway.QueryGatewayByParamsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.QueryGatewayByParamsRes> {
|
|
668
|
+
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"})
|
|
669
|
+
}
|
|
665
670
|
static Diagnostic(req: SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
666
671
|
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)})
|
|
667
672
|
}
|
|
@@ -804,12 +809,18 @@ export class GatewayAPI {
|
|
|
804
809
|
static ExportAPI(req: SkoalaApiHostedV1alpha1Api.ExportAPIReq, entityNotifier?: fm.NotifyStreamEntityArrival<GoogleApiHttpbody.HttpBody>, initReq?: fm.InitReq): Promise<void> {
|
|
805
810
|
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"})
|
|
806
811
|
}
|
|
812
|
+
static ExportAPIURL(req: SkoalaApiHostedV1alpha1Api.ExportAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.ExportAPIURLRes> {
|
|
813
|
+
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"})
|
|
814
|
+
}
|
|
807
815
|
static ImportAPICheck(req: SkoalaApiHostedV1alpha1Api.ImportAPICheckReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.ImportAPICheckRes> {
|
|
808
816
|
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)})
|
|
809
817
|
}
|
|
810
818
|
static ImportAPI(req: SkoalaApiHostedV1alpha1Api.ImportAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.ImportAPIRes> {
|
|
811
819
|
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)})
|
|
812
820
|
}
|
|
821
|
+
static QueryAPIByParams(req: SkoalaApiHostedV1alpha1Api.QueryAPIByParamsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.QueryAPIByParamsRes> {
|
|
822
|
+
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"})
|
|
823
|
+
}
|
|
813
824
|
}
|
|
814
825
|
export class GatewayService {
|
|
815
826
|
static CreateService(req: SkoalaApiHostedV1alpha1Gateway_service.CreateExternalServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
@@ -911,6 +922,9 @@ export class Lane {
|
|
|
911
922
|
static DeleteLaneService(req: SkoalaApiHostedV1alpha1Lane.DeleteLaneServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
912
923
|
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)})
|
|
913
924
|
}
|
|
925
|
+
static GetLaneGraph(req: SkoalaApiHostedV1alpha1Lane.GetLaneGraphReq, initReq?: fm.InitReq): Promise<InsightIoApiGraphV1alpha1Graph.Graph> {
|
|
926
|
+
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"})
|
|
927
|
+
}
|
|
914
928
|
static ListMeshService(req: SkoalaApiHostedV1alpha1Lane.ListMeshServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Lane.ListMeshServiceRes> {
|
|
915
929
|
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"})
|
|
916
930
|
}
|
|
@@ -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
|
+
}
|