@daocloud-proto/skoala 0.27.2-4 → 0.27.2-40
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 +12 -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/v1alpha2/gateway_api.pb.ts +89 -0
- package/api/skoala/v1alpha1/skoala.pb.ts +7 -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 = {
|
|
@@ -377,4 +377,16 @@ export type APIBatchOperationRes = {
|
|
|
377
377
|
export type OperationFailReason = {
|
|
378
378
|
apiName?: string
|
|
379
379
|
reason?: string
|
|
380
|
+
}
|
|
381
|
+
|
|
382
|
+
export type QueryAPIByParamsReq = {
|
|
383
|
+
workspaceId?: string
|
|
384
|
+
clusterName?: string
|
|
385
|
+
namespaceName?: string
|
|
386
|
+
gatewayName?: string
|
|
387
|
+
serviceName?: string
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
export type QueryAPIByParamsRes = {
|
|
391
|
+
apiNames?: string[]
|
|
380
392
|
}
|
|
@@ -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 = {
|
|
@@ -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
|
}
|
|
@@ -810,6 +802,9 @@ export class GatewayAPI {
|
|
|
810
802
|
static ImportAPI(req: SkoalaApiHostedV1alpha1Api.ImportAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.ImportAPIRes> {
|
|
811
803
|
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
804
|
}
|
|
805
|
+
static QueryAPIByParams(req: SkoalaApiHostedV1alpha1Api.QueryAPIByParamsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.QueryAPIByParamsRes> {
|
|
806
|
+
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"})
|
|
807
|
+
}
|
|
813
808
|
}
|
|
814
809
|
export class GatewayService {
|
|
815
810
|
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
|
+
}
|