@daocloud-proto/skoala 0.27.2-6 → 0.27.2-60
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 +19 -0
- package/api/hosted/v1alpha1/api.pb.ts +25 -0
- package/api/hosted/v1alpha1/gateway.pb.ts +14 -3
- package/api/hosted/v1alpha1/http.pb.ts +7 -0
- package/api/hosted/v1alpha1/mesh.pb.ts +1 -2
- package/api/hosted/v1alpha1/nacos.pb.ts +2 -0
- package/api/hosted/v1alpha1/plugins.pb.ts +45 -2
- package/api/hosted/v1alpha2/gateway_api.pb.ts +89 -0
- package/api/skoala/v1alpha1/skoala.pb.ts +10 -12
- package/api/skoala/v1alpha2/skoala.pb.ts +23 -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
|
+
}
|
|
@@ -34,6 +34,15 @@ export enum Status {
|
|
|
34
34
|
Exception = "Exception",
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
+
export enum MeshPhase {
|
|
38
|
+
MESH_STATUS_UNSPECIFIED = "MESH_STATUS_UNSPECIFIED",
|
|
39
|
+
CREATING = "CREATING",
|
|
40
|
+
UPDATING = "UPDATING",
|
|
41
|
+
FAILED = "FAILED",
|
|
42
|
+
SUCCEEDED = "SUCCEEDED",
|
|
43
|
+
TERMINATING = "TERMINATING",
|
|
44
|
+
}
|
|
45
|
+
|
|
37
46
|
export enum ClusterPhase {
|
|
38
47
|
CLUSTER_PHASE_UNSPECIFIED = "CLUSTER_PHASE_UNSPECIFIED",
|
|
39
48
|
ClusterPhaseUnknown = "ClusterPhaseUnknown",
|
|
@@ -130,6 +139,8 @@ export type Cluster = {
|
|
|
130
139
|
export type Mesh = {
|
|
131
140
|
id?: string
|
|
132
141
|
name?: string
|
|
142
|
+
meshVersion?: string
|
|
143
|
+
phase?: MeshPhase
|
|
133
144
|
}
|
|
134
145
|
|
|
135
146
|
export type Workspace = {
|
|
@@ -160,6 +171,14 @@ export type Image = {
|
|
|
160
171
|
repository?: string
|
|
161
172
|
tag?: string
|
|
162
173
|
pullPolicy?: string
|
|
174
|
+
multiVersion?: {[key: string]: MultiVersionImage}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export type MultiVersionImage = {
|
|
178
|
+
registry?: string
|
|
179
|
+
repository?: string
|
|
180
|
+
tag?: string
|
|
181
|
+
pullPolicy?: string
|
|
163
182
|
}
|
|
164
183
|
|
|
165
184
|
export type Component = {
|
|
@@ -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
|
|
@@ -377,4 +390,16 @@ export type APIBatchOperationRes = {
|
|
|
377
390
|
export type OperationFailReason = {
|
|
378
391
|
apiName?: string
|
|
379
392
|
reason?: string
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
export type QueryAPIByParamsReq = {
|
|
396
|
+
workspaceId?: string
|
|
397
|
+
clusterName?: string
|
|
398
|
+
namespaceName?: string
|
|
399
|
+
gatewayName?: string
|
|
400
|
+
serviceName?: string
|
|
401
|
+
}
|
|
402
|
+
|
|
403
|
+
export type QueryAPIByParamsRes = {
|
|
404
|
+
apiNames?: string[]
|
|
380
405
|
}
|
|
@@ -549,9 +549,10 @@ export type QueryGatewayDeploymentsMetricRangeRes = {
|
|
|
549
549
|
}
|
|
550
550
|
|
|
551
551
|
export type ResourceMetric = {
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
552
|
+
limits?: string
|
|
553
|
+
requests?: string
|
|
554
|
+
usage?: string
|
|
555
|
+
utilization?: string
|
|
555
556
|
}
|
|
556
557
|
|
|
557
558
|
export type RealtimeMetric = {
|
|
@@ -607,4 +608,14 @@ export type IPPolicy = {
|
|
|
607
608
|
level?: IPPolicyLevel
|
|
608
609
|
allowRules?: IPPolicyRule[]
|
|
609
610
|
denyRules?: IPPolicyRule[]
|
|
611
|
+
}
|
|
612
|
+
|
|
613
|
+
export type QueryGatewayByParamsReq = {
|
|
614
|
+
workspaceId?: string
|
|
615
|
+
clusterName?: string
|
|
616
|
+
rootNamespace?: string
|
|
617
|
+
}
|
|
618
|
+
|
|
619
|
+
export type QueryGatewayByParamsRes = {
|
|
620
|
+
gatewayName?: string
|
|
610
621
|
}
|
|
@@ -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
|
|
@@ -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
|
|
|
@@ -593,6 +593,7 @@ export type NacosConfigBrief = {
|
|
|
593
593
|
md5?: string
|
|
594
594
|
tenant?: string
|
|
595
595
|
type?: NacosConfigFileType
|
|
596
|
+
existBeta?: boolean
|
|
596
597
|
}
|
|
597
598
|
|
|
598
599
|
export type ListNacosConfigReq = {
|
|
@@ -642,6 +643,7 @@ export type GetNacosConfigRes = {
|
|
|
642
643
|
tenant?: string
|
|
643
644
|
type?: NacosConfigFileType
|
|
644
645
|
use?: string
|
|
646
|
+
existBeta?: boolean
|
|
645
647
|
}
|
|
646
648
|
|
|
647
649
|
export type NacosConfigHistoryBrief = {
|
|
@@ -17,6 +17,13 @@ type OneOf<T> =
|
|
|
17
17
|
: never)
|
|
18
18
|
: never);
|
|
19
19
|
|
|
20
|
+
export enum GetSeataPluginResPhase {
|
|
21
|
+
Waiting = "Waiting",
|
|
22
|
+
Running = "Running",
|
|
23
|
+
Deleting = "Deleting",
|
|
24
|
+
NotReady = "NotReady",
|
|
25
|
+
}
|
|
26
|
+
|
|
20
27
|
export enum GetMeshPluginResMeshMode {
|
|
21
28
|
MESH_MODE_UNSPECIFIED = "MESH_MODE_UNSPECIFIED",
|
|
22
29
|
HOSTED = "HOSTED",
|
|
@@ -66,7 +73,7 @@ type BaseGetPluginRes = {
|
|
|
66
73
|
}
|
|
67
74
|
|
|
68
75
|
export type GetPluginRes = BaseGetPluginRes
|
|
69
|
-
& OneOf<{ sentinel: GetSentinelPluginRes; mesh: GetMeshPluginRes }>
|
|
76
|
+
& OneOf<{ sentinel: GetSentinelPluginRes; mesh: GetMeshPluginRes; seata: GetSeataPluginRes }>
|
|
70
77
|
|
|
71
78
|
export type GetSentinelPluginReq = {
|
|
72
79
|
}
|
|
@@ -82,6 +89,22 @@ export type GetSentinelPluginRes = {
|
|
|
82
89
|
pwd?: string
|
|
83
90
|
}
|
|
84
91
|
|
|
92
|
+
export type GetSeataPluginReq = {
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type GetSeataPluginRes = {
|
|
96
|
+
image?: string
|
|
97
|
+
replicas?: number
|
|
98
|
+
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
99
|
+
type?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
100
|
+
ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
|
|
101
|
+
visitAddress?: string
|
|
102
|
+
workloadState?: SkoalaApiGeneralV1alpha1Common.WorkloadState
|
|
103
|
+
pwd?: string
|
|
104
|
+
mysql?: MySql
|
|
105
|
+
phase?: GetSeataPluginResPhase
|
|
106
|
+
}
|
|
107
|
+
|
|
85
108
|
export type GetMeshPluginReq = {
|
|
86
109
|
}
|
|
87
110
|
|
|
@@ -103,7 +126,7 @@ type BaseUpdatePluginReq = {
|
|
|
103
126
|
}
|
|
104
127
|
|
|
105
128
|
export type UpdatePluginReq = BaseUpdatePluginReq
|
|
106
|
-
& OneOf<{ sentinel: UpdateSentinelPluginReq; mesh: UpdateMeshPluginReq }>
|
|
129
|
+
& OneOf<{ sentinel: UpdateSentinelPluginReq; mesh: UpdateMeshPluginReq; seata: UpdateSeataPluginReq }>
|
|
107
130
|
|
|
108
131
|
export type UpdateSentinelPluginReq = {
|
|
109
132
|
enabled?: boolean
|
|
@@ -115,6 +138,26 @@ export type UpdateSentinelPluginReq = {
|
|
|
115
138
|
pwd?: string
|
|
116
139
|
}
|
|
117
140
|
|
|
141
|
+
export type UpdateSeataPluginReq = {
|
|
142
|
+
enabled?: boolean
|
|
143
|
+
chart?: SkoalaApiGeneralV1alpha1Common.Component
|
|
144
|
+
replicas?: number
|
|
145
|
+
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
146
|
+
type?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
147
|
+
ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
|
|
148
|
+
pwd?: string
|
|
149
|
+
deleteConfigs?: boolean
|
|
150
|
+
mysql?: MySql
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
export type MySql = {
|
|
154
|
+
host?: string
|
|
155
|
+
port?: string
|
|
156
|
+
name?: string
|
|
157
|
+
user?: string
|
|
158
|
+
password?: string
|
|
159
|
+
}
|
|
160
|
+
|
|
118
161
|
export type UpdateMeshPluginReq = {
|
|
119
162
|
enabled?: boolean
|
|
120
163
|
name?: string
|
|
@@ -0,0 +1,89 @@
|
|
|
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 APIConfig = {
|
|
67
|
+
apiName?: string
|
|
68
|
+
fqdn?: string
|
|
69
|
+
matchRule?: MatchRule
|
|
70
|
+
routeRules?: RouteRule[]
|
|
71
|
+
enabled?: boolean
|
|
72
|
+
apiGroup?: string
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
type BaseMatchRule = {
|
|
77
|
+
httpMethod?: SkoalaApiHostedV1alpha1Http.HttpMethod[]
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
export type MatchRule = BaseMatchRule
|
|
81
|
+
& OneOf<{ exact: string; prefix: string; regex: string }>
|
|
82
|
+
|
|
83
|
+
|
|
84
|
+
type BaseRouteRule = {
|
|
85
|
+
headers?: SkoalaApiHostedV1alpha1Http.HeaderRule[]
|
|
86
|
+
}
|
|
87
|
+
|
|
88
|
+
export type RouteRule = BaseRouteRule
|
|
89
|
+
& OneOf<{ routeService: SkoalaApiHostedV1alpha1Api.RouteAction; redirect: SkoalaApiHostedV1alpha1Api.RedirectAction; directResponse: SkoalaApiHostedV1alpha1Api.DirectResponse }>
|
|
@@ -28,17 +28,6 @@ import * as SkoalaApiHostedV1alpha1Virtualhost from "../../hosted/v1alpha1/virtu
|
|
|
28
28
|
import * as SkoalaApiIntegratedV1alpha1Instance from "../../integrated/v1alpha1/instance.pb"
|
|
29
29
|
import * as SkoalaApiIntegratedV1alpha1Registry from "../../integrated/v1alpha1/registry.pb"
|
|
30
30
|
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
31
|
export class Hive {
|
|
43
32
|
static GetVersion(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Version.GetVersionRes> {
|
|
44
33
|
return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiGeneralV1alpha1Version.GetVersionRes>(`/apis/hive.skoala.io/v1alpha1/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
@@ -488,7 +477,7 @@ export class Mesh {
|
|
|
488
477
|
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
478
|
}
|
|
490
479
|
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"})
|
|
480
|
+
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
481
|
}
|
|
493
482
|
static UpdateServiceIstioPlugin(req: SkoalaApiHostedV1alpha1Mesh.UpdateServiceIstioPluginReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
494
483
|
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)})
|
|
@@ -662,6 +651,9 @@ export class Gateway {
|
|
|
662
651
|
static GetWorkingComponents(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes> {
|
|
663
652
|
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
653
|
}
|
|
654
|
+
static QueryGatewayByParams(req: SkoalaApiHostedV1alpha1Gateway.QueryGatewayByParamsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.QueryGatewayByParamsRes> {
|
|
655
|
+
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"})
|
|
656
|
+
}
|
|
665
657
|
static Diagnostic(req: SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
666
658
|
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
659
|
}
|
|
@@ -804,12 +796,18 @@ export class GatewayAPI {
|
|
|
804
796
|
static ExportAPI(req: SkoalaApiHostedV1alpha1Api.ExportAPIReq, entityNotifier?: fm.NotifyStreamEntityArrival<GoogleApiHttpbody.HttpBody>, initReq?: fm.InitReq): Promise<void> {
|
|
805
797
|
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
798
|
}
|
|
799
|
+
static ExportAPIURL(req: SkoalaApiHostedV1alpha1Api.ExportAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.ExportAPIURLRes> {
|
|
800
|
+
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"})
|
|
801
|
+
}
|
|
807
802
|
static ImportAPICheck(req: SkoalaApiHostedV1alpha1Api.ImportAPICheckReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.ImportAPICheckRes> {
|
|
808
803
|
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
804
|
}
|
|
810
805
|
static ImportAPI(req: SkoalaApiHostedV1alpha1Api.ImportAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.ImportAPIRes> {
|
|
811
806
|
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
807
|
}
|
|
808
|
+
static QueryAPIByParams(req: SkoalaApiHostedV1alpha1Api.QueryAPIByParamsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.QueryAPIByParamsRes> {
|
|
809
|
+
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"})
|
|
810
|
+
}
|
|
813
811
|
}
|
|
814
812
|
export class GatewayService {
|
|
815
813
|
static CreateService(req: SkoalaApiHostedV1alpha1Gateway_service.CreateExternalServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
@@ -0,0 +1,23 @@
|
|
|
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
|
+
}
|