@daocloud-proto/skoala 0.18.0 → 0.19.0-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/api/general/v1alpha1/common.pb.ts +17 -0
- package/api/general/v1alpha1/skoala.pb.ts +4 -0
- package/api/general/v1alpha1/version.pb.ts +2 -2
- package/api/hosted/v1alpha1/api.pb.ts +2 -0
- package/api/hosted/v1alpha1/gateway.pb.ts +26 -0
- package/api/hosted/v1alpha1/gateway_overview.pb.ts +31 -13
- package/api/hosted/v1alpha1/mesh.pb.ts +82 -0
- package/api/hosted/v1alpha1/nacos.pb.ts +10 -0
- package/api/hosted/v1alpha1/sentinel.pb.ts +48 -0
- package/api/hosted/v1alpha1/skoala_plugins.pb.ts +202 -0
- package/api/skoala/v1alpha1/skoala.pb.ts +53 -8
- package/package.json +1 -1
|
@@ -34,6 +34,16 @@ export enum Status {
|
|
|
34
34
|
Exception = "Exception",
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
export enum ClusterPhase {
|
|
38
|
+
CLUSTER_PHASE_UNSPECIFIED = "CLUSTER_PHASE_UNSPECIFIED",
|
|
39
|
+
ClusterPhaseUnknown = "ClusterPhaseUnknown",
|
|
40
|
+
ClusterPhaseCreating = "ClusterPhaseCreating",
|
|
41
|
+
ClusterPhaseRunning = "ClusterPhaseRunning",
|
|
42
|
+
ClusterPhaseUpdating = "ClusterPhaseUpdating",
|
|
43
|
+
ClusterPhaseDeleting = "ClusterPhaseDeleting",
|
|
44
|
+
ClusterFailed = "ClusterFailed",
|
|
45
|
+
}
|
|
46
|
+
|
|
37
47
|
export enum ResourceKind {
|
|
38
48
|
RESOURCE_KIND_UNSPECIFIED = "RESOURCE_KIND_UNSPECIFIED",
|
|
39
49
|
Deployment = "Deployment",
|
|
@@ -87,6 +97,7 @@ export enum ExternalTrafficPolicy {
|
|
|
87
97
|
export type Cluster = {
|
|
88
98
|
id?: string
|
|
89
99
|
name?: string
|
|
100
|
+
clusterPhase?: ClusterPhase
|
|
90
101
|
}
|
|
91
102
|
|
|
92
103
|
export type Mesh = {
|
|
@@ -145,4 +156,10 @@ export type KubernetesServicePort = {
|
|
|
145
156
|
port?: number
|
|
146
157
|
name?: string
|
|
147
158
|
protocol?: string
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export type GroupVersionResource = {
|
|
162
|
+
group?: string
|
|
163
|
+
version?: string
|
|
164
|
+
resource?: string
|
|
148
165
|
}
|
|
@@ -259,4 +259,8 @@ export type AddrPool = {
|
|
|
259
259
|
export type ListClusterLBAddrPoolRes = {
|
|
260
260
|
items?: AddrPool[]
|
|
261
261
|
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
export type ListComponentsVersionRes = {
|
|
265
|
+
components?: SkoalaApiGeneralV1alpha1Common.Component[]
|
|
262
266
|
}
|
|
@@ -5,6 +5,7 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
|
+
import * as SkoalaApiHostedV1alpha1Gateway from "./gateway.pb"
|
|
8
9
|
import * as SkoalaApiHostedV1alpha1Http from "./http.pb"
|
|
9
10
|
import * as SkoalaApiHostedV1alpha1Virtualhost from "./virtualhost.pb"
|
|
10
11
|
|
|
@@ -109,6 +110,7 @@ export type AdvancedAPIConfig = {
|
|
|
109
110
|
jwtPolicy?: JWTPolicy
|
|
110
111
|
authPolicy?: AuthPolicy
|
|
111
112
|
cookieRewritePolicy?: CookieRewritePolicy[]
|
|
113
|
+
ipPolicy?: SkoalaApiHostedV1alpha1Gateway.IPPolicy
|
|
112
114
|
}
|
|
113
115
|
|
|
114
116
|
export type CookieRewritePolicy = {
|
|
@@ -58,6 +58,18 @@ export enum AlertSeverity {
|
|
|
58
58
|
Info = "Info",
|
|
59
59
|
}
|
|
60
60
|
|
|
61
|
+
export enum IPPolicyLevel {
|
|
62
|
+
IP_POLICY_LEVEL_UNSPECIFIED = "IP_POLICY_LEVEL_UNSPECIFIED",
|
|
63
|
+
VirtualHost = "VirtualHost",
|
|
64
|
+
Route = "Route",
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export enum IPSource {
|
|
68
|
+
IP_SOURCE_UNSPECIFIED = "IP_SOURCE_UNSPECIFIED",
|
|
69
|
+
RemoteIp = "RemoteIp",
|
|
70
|
+
DirectRemoteIp = "DirectRemoteIp",
|
|
71
|
+
}
|
|
72
|
+
|
|
61
73
|
export enum GatewayConditionType {
|
|
62
74
|
TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
|
|
63
75
|
Scheduled = "Scheduled",
|
|
@@ -111,6 +123,7 @@ export type Gateway = {
|
|
|
111
123
|
envoy?: Node
|
|
112
124
|
apiCount?: number
|
|
113
125
|
config?: GatewayConfig
|
|
126
|
+
clusterPhase?: SkoalaApiGeneralV1alpha1Common.ClusterPhase
|
|
114
127
|
}
|
|
115
128
|
|
|
116
129
|
export type ListAllGatewayReq = {
|
|
@@ -263,6 +276,7 @@ export type ContourAdvancedConfig = BaseContourAdvancedConfig
|
|
|
263
276
|
|
|
264
277
|
type BaseEnvoyAdvancedConfig = {
|
|
265
278
|
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
279
|
+
numTrustedHops?: number
|
|
266
280
|
}
|
|
267
281
|
|
|
268
282
|
export type EnvoyAdvancedConfig = BaseEnvoyAdvancedConfig
|
|
@@ -497,4 +511,16 @@ export type GetGatewayMetricDashboardReq = {
|
|
|
497
511
|
export type GetGatewayMetricDashboardRes = {
|
|
498
512
|
url?: string
|
|
499
513
|
zhUrl?: string
|
|
514
|
+
}
|
|
515
|
+
|
|
516
|
+
export type IPPolicyRule = {
|
|
517
|
+
cidr?: string
|
|
518
|
+
source?: IPSource
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
export type IPPolicy = {
|
|
522
|
+
path?: string
|
|
523
|
+
level?: IPPolicyLevel
|
|
524
|
+
allowRules?: IPPolicyRule[]
|
|
525
|
+
denyRules?: IPPolicyRule[]
|
|
500
526
|
}
|
|
@@ -6,41 +6,42 @@
|
|
|
6
6
|
|
|
7
7
|
import * as InsightIoApiMetricV1alpha1Metric from "../../../metric/v1alpha1/metric.pb"
|
|
8
8
|
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
9
|
-
export type
|
|
9
|
+
export type ListInWorkspaceGatewayNamesReq = {
|
|
10
10
|
workspaceId?: string
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
export type
|
|
14
|
-
|
|
13
|
+
export type ListInWorkspaceGatewayNamesRes = {
|
|
14
|
+
items?: string[]
|
|
15
15
|
}
|
|
16
16
|
|
|
17
17
|
export type GatewayOverviewBasicReq = {
|
|
18
18
|
workspaceId?: string
|
|
19
|
-
|
|
19
|
+
gatewayNames?: string[]
|
|
20
20
|
startTime?: string
|
|
21
21
|
endTime?: string
|
|
22
|
-
|
|
22
|
+
interval?: string
|
|
23
23
|
unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
|
|
24
24
|
}
|
|
25
25
|
|
|
26
26
|
export type GatewayOverviewBasicRes = {
|
|
27
|
-
|
|
27
|
+
avgRespTime?: number
|
|
28
28
|
apiCount?: string
|
|
29
29
|
rps?: number
|
|
30
30
|
}
|
|
31
31
|
|
|
32
32
|
export type GatewayOverviewHealthReq = {
|
|
33
33
|
workspaceId?: string
|
|
34
|
-
|
|
34
|
+
gatewayNames?: string[]
|
|
35
35
|
startTime?: string
|
|
36
36
|
endTime?: string
|
|
37
|
-
|
|
37
|
+
interval?: string
|
|
38
38
|
unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
|
|
39
|
+
completion?: boolean
|
|
39
40
|
}
|
|
40
41
|
|
|
41
42
|
export type GatewayOverviewHealthRes = {
|
|
42
|
-
|
|
43
|
-
|
|
43
|
+
success?: GatewayMetrics[]
|
|
44
|
+
fail?: GatewayMetrics[]
|
|
44
45
|
}
|
|
45
46
|
|
|
46
47
|
export type GatewayMetrics = {
|
|
@@ -48,16 +49,33 @@ export type GatewayMetrics = {
|
|
|
48
49
|
metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
49
50
|
}
|
|
50
51
|
|
|
51
|
-
export type
|
|
52
|
+
export type GatewayOverviewRankAPINumReq = {
|
|
52
53
|
workspaceId?: string
|
|
53
54
|
}
|
|
54
55
|
|
|
55
|
-
export type
|
|
56
|
+
export type GatewayOverviewRankAPINumRes = {
|
|
56
57
|
items?: GatewayAPINum[]
|
|
57
58
|
}
|
|
58
59
|
|
|
59
60
|
export type GatewayAPINum = {
|
|
60
61
|
gatewayName?: string
|
|
61
|
-
|
|
62
|
+
location?: string
|
|
63
|
+
apiNum?: number
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export type GatewayOverviewInfoReq = {
|
|
67
|
+
workspaceId?: string
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type GatewayOverviewInfoRes = {
|
|
62
71
|
apiNum?: number
|
|
72
|
+
normal?: number
|
|
73
|
+
abnormal?: number
|
|
74
|
+
errGatewayInfo?: ErrGatewayInfo[]
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
export type ErrGatewayInfo = {
|
|
78
|
+
gatewayName?: string
|
|
79
|
+
location?: string
|
|
80
|
+
reason?: string
|
|
63
81
|
}
|
|
@@ -40,6 +40,20 @@ export enum OutputFormat {
|
|
|
40
40
|
SPEC = "SPEC",
|
|
41
41
|
}
|
|
42
42
|
|
|
43
|
+
export enum ServiceStatus {
|
|
44
|
+
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
45
|
+
ERROR = "ERROR",
|
|
46
|
+
RUNNING = "RUNNING",
|
|
47
|
+
WARNING = "WARNING",
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export enum ServiceType {
|
|
51
|
+
GOVERN_TYPE_UNSPECIFIED = "GOVERN_TYPE_UNSPECIFIED",
|
|
52
|
+
NORMAL = "NORMAL",
|
|
53
|
+
SPRING_CLOUD = "SPRING_CLOUD",
|
|
54
|
+
DUBBO = "DUBBO",
|
|
55
|
+
}
|
|
56
|
+
|
|
43
57
|
|
|
44
58
|
type BaseIstioResource = {
|
|
45
59
|
type?: ResourceType
|
|
@@ -109,4 +123,72 @@ export type DeleteMeshResourceReq = {
|
|
|
109
123
|
|
|
110
124
|
export type GetAnyType = {
|
|
111
125
|
type?: ResourceType
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
export type ListService = {
|
|
129
|
+
name?: string
|
|
130
|
+
status?: ServiceStatus
|
|
131
|
+
type?: ServiceType
|
|
132
|
+
port?: string
|
|
133
|
+
namespace?: string
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
export type ListExportService = {
|
|
137
|
+
name?: string
|
|
138
|
+
namespace?: string
|
|
139
|
+
status?: ServiceStatus
|
|
140
|
+
des?: string
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
export type ListServiceReq = {
|
|
144
|
+
workspaceId?: string
|
|
145
|
+
meshId?: string
|
|
146
|
+
namespaceName?: string
|
|
147
|
+
serviceType?: ServiceType
|
|
148
|
+
serviceName?: string
|
|
149
|
+
page?: number
|
|
150
|
+
pageSize?: number
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export type ListServiceRes = {
|
|
154
|
+
items?: ListService[]
|
|
155
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
export type RemoveServiceReq = {
|
|
159
|
+
workspaceId?: string
|
|
160
|
+
meshId?: string
|
|
161
|
+
namespaceName?: string
|
|
162
|
+
serviceName?: string
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
export type RemoveServiceRes = {
|
|
166
|
+
}
|
|
167
|
+
|
|
168
|
+
export type ListExportServiceReq = {
|
|
169
|
+
workspaceId?: string
|
|
170
|
+
meshId?: string
|
|
171
|
+
namespaceName?: string
|
|
172
|
+
serviceName?: string
|
|
173
|
+
page?: number
|
|
174
|
+
pageSize?: number
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export type ListExportServiceRes = {
|
|
178
|
+
items?: ListExportService[]
|
|
179
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
export type NsSvc = {
|
|
183
|
+
namespaceName?: string
|
|
184
|
+
serviceName?: string
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
export type ExportServiceReq = {
|
|
188
|
+
workspaceId?: string
|
|
189
|
+
meshId?: string
|
|
190
|
+
namespaceServices?: NsSvc[]
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export type ExportServiceRes = {
|
|
112
194
|
}
|
|
@@ -95,6 +95,7 @@ export type Nacos = {
|
|
|
95
95
|
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
96
96
|
ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
|
|
97
97
|
status?: NacosStatus
|
|
98
|
+
clusterPhase?: SkoalaApiGeneralV1alpha1Common.ClusterPhase
|
|
98
99
|
replicas?: number
|
|
99
100
|
image?: string
|
|
100
101
|
version?: string
|
|
@@ -842,6 +843,15 @@ export type CheckNacosConfigRes = {
|
|
|
842
843
|
use?: string
|
|
843
844
|
}
|
|
844
845
|
|
|
846
|
+
export type UpdateUserPasswordReq = {
|
|
847
|
+
workspaceId?: string
|
|
848
|
+
clusterName?: string
|
|
849
|
+
namespaceName?: string
|
|
850
|
+
nacosName?: string
|
|
851
|
+
nacosUserName?: string
|
|
852
|
+
nacosUserNewPassword?: string
|
|
853
|
+
}
|
|
854
|
+
|
|
845
855
|
export type GetNacosGrafanaReq = {
|
|
846
856
|
workspaceId?: string
|
|
847
857
|
clusterName?: string
|
|
@@ -28,6 +28,12 @@ export enum MachineType {
|
|
|
28
28
|
ALONE = "ALONE",
|
|
29
29
|
}
|
|
30
30
|
|
|
31
|
+
export enum HostedQuery {
|
|
32
|
+
ALL = "ALL",
|
|
33
|
+
NOT_HOSTED = "NOT_HOSTED",
|
|
34
|
+
HOSTED = "HOSTED",
|
|
35
|
+
}
|
|
36
|
+
|
|
31
37
|
export enum ListClusterFlowClientStatus {
|
|
32
38
|
OFF = "OFF",
|
|
33
39
|
PENDING = "PENDING",
|
|
@@ -582,6 +588,28 @@ export type DeleteAuthorityRuleReq = {
|
|
|
582
588
|
|
|
583
589
|
export type GetStaticsSentinelReq = {
|
|
584
590
|
workspaceId?: string
|
|
591
|
+
page?: number
|
|
592
|
+
pageSize?: number
|
|
593
|
+
}
|
|
594
|
+
|
|
595
|
+
export type GetStaticsRegistryReq = {
|
|
596
|
+
workspaceId?: string
|
|
597
|
+
page?: number
|
|
598
|
+
pageSize?: number
|
|
599
|
+
}
|
|
600
|
+
|
|
601
|
+
export type ListTop10RegSrvReq = {
|
|
602
|
+
workspaceId?: string
|
|
603
|
+
hostedQuery?: HostedQuery
|
|
604
|
+
}
|
|
605
|
+
|
|
606
|
+
export type Top10RegSrv = {
|
|
607
|
+
registryName?: string
|
|
608
|
+
serviceCount?: number
|
|
609
|
+
}
|
|
610
|
+
|
|
611
|
+
export type ListTop10RegSrvRes = {
|
|
612
|
+
items?: Top10RegSrv[]
|
|
585
613
|
}
|
|
586
614
|
|
|
587
615
|
export type ErrSentinelInfo = {
|
|
@@ -598,4 +626,24 @@ export type ErrIns = {
|
|
|
598
626
|
|
|
599
627
|
export type GetStaticsSentinelRes = {
|
|
600
628
|
errIns?: ErrIns
|
|
629
|
+
}
|
|
630
|
+
|
|
631
|
+
export type ErrHostedIns = {
|
|
632
|
+
name?: string
|
|
633
|
+
cluster?: string
|
|
634
|
+
namespace?: string
|
|
635
|
+
reason?: string
|
|
636
|
+
}
|
|
637
|
+
|
|
638
|
+
export type GetStaticsRegistryResErrIns = {
|
|
639
|
+
items?: ErrHostedIns[]
|
|
640
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
641
|
+
}
|
|
642
|
+
|
|
643
|
+
export type GetStaticsRegistryRes = {
|
|
644
|
+
hostedTotalRegistryCount?: number
|
|
645
|
+
hostedNormalResCount?: number
|
|
646
|
+
serviceCount?: number
|
|
647
|
+
configCount?: number
|
|
648
|
+
errHostedIns?: GetStaticsRegistryResErrIns
|
|
601
649
|
}
|
|
@@ -0,0 +1,202 @@
|
|
|
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
|
+
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
10
|
+
type OneOf<T> =
|
|
11
|
+
| { [k in keyof T]?: undefined }
|
|
12
|
+
| (
|
|
13
|
+
keyof T extends infer K ?
|
|
14
|
+
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
15
|
+
: never)
|
|
16
|
+
: never);
|
|
17
|
+
|
|
18
|
+
export enum PluginType {
|
|
19
|
+
JWT = "JWT",
|
|
20
|
+
AUTH = "AUTH",
|
|
21
|
+
RATELIMIT = "RATELIMIT",
|
|
22
|
+
WASM = "WASM",
|
|
23
|
+
UNDEFINE = "UNDEFINE",
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export enum PluginUsageResourceType {
|
|
27
|
+
contour = "contour",
|
|
28
|
+
istioGateway = "istioGateway",
|
|
29
|
+
istioSidecar = "istioSidecar",
|
|
30
|
+
unknow = "unknow",
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export enum PluginUrlLoadBalance {
|
|
34
|
+
Random = "Random",
|
|
35
|
+
RoundRobin = "RoundRobin",
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
|
|
39
|
+
type BaseCreateSkoalaPluginReq = {
|
|
40
|
+
workspaceId?: string
|
|
41
|
+
disabled?: boolean
|
|
42
|
+
pluginName?: string
|
|
43
|
+
describe?: string
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type CreateSkoalaPluginReq = BaseCreateSkoalaPluginReq
|
|
47
|
+
& OneOf<{ jwt: JWTPluginConfig; auth: AuthPluginConfig; rateLimit: RateLimitPluginConfig; wasm: WasmPluginConfig }>
|
|
48
|
+
|
|
49
|
+
export type UpdateUsage = {
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
|
|
53
|
+
type BaseUpdateSkoalaPluginReq = {
|
|
54
|
+
workspaceId?: string
|
|
55
|
+
disabled?: boolean
|
|
56
|
+
pluginName?: string
|
|
57
|
+
describe?: string
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
export type UpdateSkoalaPluginReq = BaseUpdateSkoalaPluginReq
|
|
61
|
+
& OneOf<{ jwt: JWTPluginConfig; auth: AuthPluginConfig; rateLimit: RateLimitPluginConfig; wasm: WasmPluginConfig }>
|
|
62
|
+
|
|
63
|
+
export type DeleteSkoalaPluginReq = {
|
|
64
|
+
workspaceId?: string
|
|
65
|
+
pluginName?: string
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export type GetSkoalaPluginReq = {
|
|
69
|
+
workspaceId?: string
|
|
70
|
+
pluginName?: string
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
|
|
74
|
+
type BaseGetSkoalaPluginRes = {
|
|
75
|
+
pluginName?: string
|
|
76
|
+
pluginType?: PluginType
|
|
77
|
+
createdAt?: string
|
|
78
|
+
updatedAt?: string
|
|
79
|
+
disabled?: boolean
|
|
80
|
+
describe?: string
|
|
81
|
+
usage?: PluginUsage[]
|
|
82
|
+
inCluster?: boolean
|
|
83
|
+
address?: string
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type GetSkoalaPluginRes = BaseGetSkoalaPluginRes
|
|
87
|
+
& OneOf<{ jwt: JWTPluginConfig; auth: AuthPluginConfig; rateLimit: RateLimitPluginConfig; wasm: WasmPluginConfig }>
|
|
88
|
+
|
|
89
|
+
export type PluginUsage = {
|
|
90
|
+
resourceType?: PluginUsageResourceType
|
|
91
|
+
clusterName?: string
|
|
92
|
+
meshInstance?: string
|
|
93
|
+
namespaceName?: string
|
|
94
|
+
name?: string
|
|
95
|
+
version?: number
|
|
96
|
+
needUpdate?: boolean
|
|
97
|
+
gvr?: SkoalaApiGeneralV1alpha1Common.GroupVersionResource
|
|
98
|
+
usedTime?: string
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export type ListSkoalaPluginReq = {
|
|
102
|
+
workspaceId?: string
|
|
103
|
+
pluginName?: string
|
|
104
|
+
pluginType?: PluginType
|
|
105
|
+
disabled?: Disabled
|
|
106
|
+
page?: number
|
|
107
|
+
pageSize?: number
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export type Disabled = {
|
|
111
|
+
disabled?: boolean
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
export type ListSkoalaPluginRes = {
|
|
115
|
+
items?: SkoalaPluginInfo[]
|
|
116
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export type SkoalaPluginInfo = {
|
|
120
|
+
pluginName?: string
|
|
121
|
+
pluginType?: PluginType
|
|
122
|
+
createdAt?: string
|
|
123
|
+
updatedAt?: string
|
|
124
|
+
inCluster?: boolean
|
|
125
|
+
address?: string
|
|
126
|
+
version?: number
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
export type WasmPluginConfig = {
|
|
130
|
+
imageUrl?: string
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export type RateLimitPluginConfig = {
|
|
134
|
+
pluginAddress?: PluginAddress
|
|
135
|
+
timeout?: IntervalTimeUnit
|
|
136
|
+
fileOpen?: boolean
|
|
137
|
+
enableXRateLimitHeaders?: boolean
|
|
138
|
+
validation?: TLSValidation
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
export type AuthPluginConfigBufferSettings = {
|
|
142
|
+
maxRequestBytes?: number
|
|
143
|
+
allowPartialMessage?: boolean
|
|
144
|
+
packAsBytes?: boolean
|
|
145
|
+
}
|
|
146
|
+
|
|
147
|
+
export type AuthPluginConfig = {
|
|
148
|
+
pluginAddress?: PluginAddress
|
|
149
|
+
timeout?: IntervalTimeUnit
|
|
150
|
+
fileOpen?: boolean
|
|
151
|
+
requestBodyBufferSettings?: AuthPluginConfigBufferSettings
|
|
152
|
+
validation?: TLSValidation
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export type JWTPluginConfigJWTValidExtConfig = {
|
|
156
|
+
issuer?: string
|
|
157
|
+
audiences?: string[]
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
export type JWTPluginConfig = {
|
|
161
|
+
pluginAddress?: PluginAddress
|
|
162
|
+
timeout?: IntervalTimeUnit
|
|
163
|
+
cacheTime?: IntervalTimeUnit
|
|
164
|
+
forwardJwt?: boolean
|
|
165
|
+
validation?: TLSValidation
|
|
166
|
+
jwtValidConfig?: JWTPluginConfigJWTValidExtConfig
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
export type TLSValidationCaCertificate = {
|
|
170
|
+
namespace?: string
|
|
171
|
+
name?: string
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
export type TLSValidation = {
|
|
175
|
+
subjectName?: string
|
|
176
|
+
caCertificate?: TLSValidationCaCertificate
|
|
177
|
+
}
|
|
178
|
+
|
|
179
|
+
|
|
180
|
+
type BasePluginAddress = {
|
|
181
|
+
inCluster?: boolean
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
export type PluginAddress = BasePluginAddress
|
|
185
|
+
& OneOf<{ clusterNamespaceService: ClusterNamespaceService; address: PluginUrl }>
|
|
186
|
+
|
|
187
|
+
export type PluginUrl = {
|
|
188
|
+
url?: string[]
|
|
189
|
+
loadBalance?: PluginUrlLoadBalance
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export type ClusterNamespaceService = {
|
|
193
|
+
clusterName?: string
|
|
194
|
+
namespaceName?: string
|
|
195
|
+
serviceName?: string
|
|
196
|
+
servicePort?: number
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export type IntervalTimeUnit = {
|
|
200
|
+
interval?: number
|
|
201
|
+
unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
|
|
202
|
+
}
|
|
@@ -22,6 +22,7 @@ import * as SkoalaApiHostedV1alpha1Mesh from "../../hosted/v1alpha1/mesh.pb"
|
|
|
22
22
|
import * as SkoalaApiHostedV1alpha1Nacos from "../../hosted/v1alpha1/nacos.pb"
|
|
23
23
|
import * as SkoalaApiHostedV1alpha1Plugins from "../../hosted/v1alpha1/plugins.pb"
|
|
24
24
|
import * as SkoalaApiHostedV1alpha1Sentinel from "../../hosted/v1alpha1/sentinel.pb"
|
|
25
|
+
import * as SkoalaApiHostedV1alpha1Skoala_plugins from "../../hosted/v1alpha1/skoala_plugins.pb"
|
|
25
26
|
import * as SkoalaApiHostedV1alpha1Virtualhost from "../../hosted/v1alpha1/virtualhost.pb"
|
|
26
27
|
import * as SkoalaApiIntegratedV1alpha1Instance from "../../integrated/v1alpha1/instance.pb"
|
|
27
28
|
import * as SkoalaApiIntegratedV1alpha1Registry from "../../integrated/v1alpha1/registry.pb"
|
|
@@ -30,14 +31,17 @@ export class Hive {
|
|
|
30
31
|
static GetVersion(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Version.GetVersionRes> {
|
|
31
32
|
return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiGeneralV1alpha1Version.GetVersionRes>(`/apis/hive.skoala.io/v1alpha1/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
32
33
|
}
|
|
33
|
-
static
|
|
34
|
-
return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiGeneralV1alpha1Version.
|
|
34
|
+
static GetComponents(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Version.GetComponentsRes> {
|
|
35
|
+
return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiGeneralV1alpha1Version.GetComponentsRes>(`/apis/hive.skoala.io/v1alpha1/components/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
35
36
|
}
|
|
36
37
|
}
|
|
37
38
|
export class Sesame {
|
|
38
39
|
static GetVersion(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Version.GetVersionRes> {
|
|
39
40
|
return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiGeneralV1alpha1Version.GetVersionRes>(`/apis/sesame.skoala.io/v1alpha1/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
40
41
|
}
|
|
42
|
+
static GetComponents(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Version.GetComponentsRes> {
|
|
43
|
+
return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiGeneralV1alpha1Version.GetComponentsRes>(`/apis/sesame.skoala.io/v1alpha1/components/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
44
|
+
}
|
|
41
45
|
}
|
|
42
46
|
export class Skoala {
|
|
43
47
|
static ListCluster(req: SkoalaApiGeneralV1alpha1Skoala.ListClusterReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListClusterRes> {
|
|
@@ -268,6 +272,9 @@ export class Nacos {
|
|
|
268
272
|
static CheckConfig(req: SkoalaApiHostedV1alpha1Nacos.CheckNacosConfigReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.CheckNacosConfigRes> {
|
|
269
273
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.CheckNacosConfigReq, SkoalaApiHostedV1alpha1Nacos.CheckNacosConfigRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs/${req["dataId"]}/check?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "nacosNamespace", "dataId"])}`, {...initReq, method: "GET"})
|
|
270
274
|
}
|
|
275
|
+
static UpdateUserPassword(req: SkoalaApiHostedV1alpha1Nacos.UpdateUserPasswordReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
276
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.UpdateUserPasswordReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/users`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
277
|
+
}
|
|
271
278
|
}
|
|
272
279
|
export class Sentinel {
|
|
273
280
|
static GetInsGovern(req: SkoalaApiHostedV1alpha1Sentinel.GetInsGovernReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetInsGovernRes> {
|
|
@@ -391,6 +398,12 @@ export class Statics {
|
|
|
391
398
|
static GetStaticsSentinel(req: SkoalaApiHostedV1alpha1Sentinel.GetStaticsSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetStaticsSentinelRes> {
|
|
392
399
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetStaticsSentinelReq, SkoalaApiHostedV1alpha1Sentinel.GetStaticsSentinelRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/statics/sentinels?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
393
400
|
}
|
|
401
|
+
static GetStaticsRegistry(req: SkoalaApiHostedV1alpha1Sentinel.GetStaticsRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetStaticsRegistryRes> {
|
|
402
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetStaticsRegistryReq, SkoalaApiHostedV1alpha1Sentinel.GetStaticsRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/statics/registries?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
403
|
+
}
|
|
404
|
+
static ListTop10RegSrv(req: SkoalaApiHostedV1alpha1Sentinel.ListTop10RegSrvReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.ListTop10RegSrvRes> {
|
|
405
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListTop10RegSrvReq, SkoalaApiHostedV1alpha1Sentinel.ListTop10RegSrvRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/statics/registries/services?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
406
|
+
}
|
|
394
407
|
}
|
|
395
408
|
export class Mesh {
|
|
396
409
|
static ListMeshResource(req: SkoalaApiHostedV1alpha1Mesh.ListMeshResourceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListMeshResourceRes> {
|
|
@@ -411,6 +424,18 @@ export class Mesh {
|
|
|
411
424
|
static GetAnyTypeNameByResourceType(req: SkoalaApiHostedV1alpha1Mesh.GetAnyType, initReq?: fm.InitReq): Promise<GoogleProtobufAny.Any> {
|
|
412
425
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetAnyType, GoogleProtobufAny.Any>(`/apis/hive.skoala.io/v1alpha1/istio-resources/${req["type"]}/type-value?${fm.renderURLSearchParams(req, ["type"])}`, {...initReq, method: "GET"})
|
|
413
426
|
}
|
|
427
|
+
static ListService(req: SkoalaApiHostedV1alpha1Mesh.ListServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListServiceRes> {
|
|
428
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListServiceReq, SkoalaApiHostedV1alpha1Mesh.ListServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "meshId"])}`, {...initReq, method: "GET"})
|
|
429
|
+
}
|
|
430
|
+
static RemoveService(req: SkoalaApiHostedV1alpha1Mesh.RemoveServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.RemoveServiceRes> {
|
|
431
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.RemoveServiceReq, SkoalaApiHostedV1alpha1Mesh.RemoveServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/namespaces/${req["namespaceName"]}/services/${req["serviceName"]}`, {...initReq, method: "DELETE"})
|
|
432
|
+
}
|
|
433
|
+
static ListExportService(req: SkoalaApiHostedV1alpha1Mesh.ListExportServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListExportServiceRes> {
|
|
434
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListExportServiceReq, SkoalaApiHostedV1alpha1Mesh.ListExportServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/export-services?${fm.renderURLSearchParams(req, ["workspaceId", "meshId"])}`, {...initReq, method: "GET"})
|
|
435
|
+
}
|
|
436
|
+
static ExportService(req: SkoalaApiHostedV1alpha1Mesh.ExportServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ExportServiceRes> {
|
|
437
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ExportServiceReq, SkoalaApiHostedV1alpha1Mesh.ExportServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/meshes/${req["meshId"]}/services`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
438
|
+
}
|
|
414
439
|
}
|
|
415
440
|
export class Plugin {
|
|
416
441
|
static List(req: SkoalaApiHostedV1alpha1Plugins.ListPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Plugins.ListPluginRes> {
|
|
@@ -609,16 +634,36 @@ export class GatewayService {
|
|
|
609
634
|
}
|
|
610
635
|
}
|
|
611
636
|
export class GatewayOverview {
|
|
612
|
-
static
|
|
613
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.
|
|
637
|
+
static ListInWorkspaceGatewayNames(req: SkoalaApiHostedV1alpha1Gateway_overview.ListInWorkspaceGatewayNamesReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.ListInWorkspaceGatewayNamesRes> {
|
|
638
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.ListInWorkspaceGatewayNamesReq, SkoalaApiHostedV1alpha1Gateway_overview.ListInWorkspaceGatewayNamesRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/gateway/names?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
614
639
|
}
|
|
615
640
|
static GatewayOverviewBasic(req: SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewBasicReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewBasicRes> {
|
|
616
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewBasicReq, SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewBasicRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/
|
|
641
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewBasicReq, SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewBasicRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/stats/gateway/basic?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
617
642
|
}
|
|
618
643
|
static GatewayOverviewHealth(req: SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewHealthReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewHealthRes> {
|
|
619
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewHealthReq, SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewHealthRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/
|
|
644
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewHealthReq, SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewHealthRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/stats/gateway/health?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
645
|
+
}
|
|
646
|
+
static GatewayOverviewRankAPINum(req: SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewRankAPINumReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewRankAPINumRes> {
|
|
647
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewRankAPINumReq, SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewRankAPINumRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/stats/gateway/rank/apinum?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
648
|
+
}
|
|
649
|
+
static GatewayOverviewInfo(req: SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewInfoReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewInfoRes> {
|
|
650
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewInfoReq, SkoalaApiHostedV1alpha1Gateway_overview.GatewayOverviewInfoRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/stats/gateway/info?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
651
|
+
}
|
|
652
|
+
}
|
|
653
|
+
export class SkoalaPlugin {
|
|
654
|
+
static CreatePlugin(req: SkoalaApiHostedV1alpha1Skoala_plugins.CreateSkoalaPluginReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
655
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Skoala_plugins.CreateSkoalaPluginReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugins`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
656
|
+
}
|
|
657
|
+
static UpdatePlugin(req: SkoalaApiHostedV1alpha1Skoala_plugins.UpdateSkoalaPluginReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
658
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Skoala_plugins.UpdateSkoalaPluginReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugins/${req["pluginName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
659
|
+
}
|
|
660
|
+
static ListPlugin(req: SkoalaApiHostedV1alpha1Skoala_plugins.ListSkoalaPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Skoala_plugins.ListSkoalaPluginRes> {
|
|
661
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Skoala_plugins.ListSkoalaPluginReq, SkoalaApiHostedV1alpha1Skoala_plugins.ListSkoalaPluginRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugins?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
662
|
+
}
|
|
663
|
+
static GetPlugin(req: SkoalaApiHostedV1alpha1Skoala_plugins.GetSkoalaPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Skoala_plugins.GetSkoalaPluginRes> {
|
|
664
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Skoala_plugins.GetSkoalaPluginReq, SkoalaApiHostedV1alpha1Skoala_plugins.GetSkoalaPluginRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugins/${req["pluginName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "pluginName"])}`, {...initReq, method: "GET"})
|
|
620
665
|
}
|
|
621
|
-
static
|
|
622
|
-
return fm.fetchReq<
|
|
666
|
+
static DeletePlugin(req: SkoalaApiHostedV1alpha1Skoala_plugins.DeleteSkoalaPluginReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
667
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Skoala_plugins.DeleteSkoalaPluginReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/plugins/${req["pluginName"]}`, {...initReq, method: "DELETE"})
|
|
623
668
|
}
|
|
624
669
|
}
|