@daocloud-proto/skoala 0.7.2-2 → 0.7.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 +0 -6
- package/api/hosted/v1alpha1/{gateway_plugin.pb.ts → extension.pb.ts} +7 -34
- package/api/hosted/v1alpha1/{gateway_secret.pb.ts → gatewaysecret.pb.ts} +0 -0
- package/api/hosted/v1alpha1/{gateway_service.pb.ts → gatewayservice.pb.ts} +0 -0
- package/api/skoala/v1alpha1/skoala.pb.ts +39 -45
- package/package.json +1 -1
|
@@ -59,12 +59,6 @@ export enum TimeUnit {
|
|
|
59
59
|
Second = "Second",
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
-
export enum PluginSwitchStatus {
|
|
63
|
-
PLUGIN_SWITCH_STATUS_UNSPECIFIED = "PLUGIN_SWITCH_STATUS_UNSPECIFIED",
|
|
64
|
-
On = "On",
|
|
65
|
-
Off = "Off",
|
|
66
|
-
}
|
|
67
|
-
|
|
68
62
|
export type Cluster = {
|
|
69
63
|
id?: string
|
|
70
64
|
name?: string
|
|
@@ -5,24 +5,18 @@
|
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
7
|
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
|
-
import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
|
|
9
8
|
export type GatewayRLSConfig = {
|
|
10
9
|
chart?: SkoalaApiGeneralV1alpha1Common.Chart
|
|
11
|
-
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
12
|
-
replicas?: number
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
export type GatewayRLSRule = {
|
|
16
10
|
unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
|
|
17
11
|
requestsPerUnit?: number
|
|
18
12
|
}
|
|
19
13
|
|
|
20
|
-
export type
|
|
14
|
+
export type CreateGatewayRLSReq = {
|
|
21
15
|
workspaceId?: string
|
|
22
16
|
clusterName?: string
|
|
23
17
|
namespaceName?: string
|
|
24
18
|
gatewayName?: string
|
|
25
|
-
|
|
19
|
+
config?: GatewayRLSConfig
|
|
26
20
|
}
|
|
27
21
|
|
|
28
22
|
export type GetGatewayRLSReq = {
|
|
@@ -33,45 +27,22 @@ export type GetGatewayRLSReq = {
|
|
|
33
27
|
}
|
|
34
28
|
|
|
35
29
|
export type GetGatewayRLSRes = {
|
|
36
|
-
switch?: SkoalaApiGeneralV1alpha1Common.PluginSwitchStatus
|
|
37
|
-
}
|
|
38
|
-
|
|
39
|
-
export type SetGatewayRLSConfigReq = {
|
|
40
|
-
workspaceId?: string
|
|
41
|
-
clusterName?: string
|
|
42
|
-
namespaceName?: string
|
|
43
|
-
gatewayName?: string
|
|
44
30
|
config?: GatewayRLSConfig
|
|
45
31
|
}
|
|
46
32
|
|
|
47
|
-
export type
|
|
33
|
+
export type DeleteGatewayRLSReq = {
|
|
48
34
|
workspaceId?: string
|
|
49
35
|
clusterName?: string
|
|
50
36
|
namespaceName?: string
|
|
51
37
|
gatewayName?: string
|
|
52
38
|
}
|
|
53
39
|
|
|
54
|
-
export type
|
|
55
|
-
config?: GatewayRLSConfig
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
export type SetGatewayRLSRuleReq = {
|
|
59
|
-
workspaceId?: string
|
|
60
|
-
clusterName?: string
|
|
61
|
-
namespaceName?: string
|
|
62
|
-
gatewayName?: string
|
|
63
|
-
rule?: GatewayRLSRule
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
export type GetGatewayRLSRuleReq = {
|
|
40
|
+
export type UpdateGatewayRLSReq = {
|
|
67
41
|
workspaceId?: string
|
|
68
42
|
clusterName?: string
|
|
69
43
|
namespaceName?: string
|
|
70
44
|
gatewayName?: string
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
export type GetGatewayRLSRuleRes = {
|
|
74
|
-
rule?: GatewayRLSRule
|
|
45
|
+
config?: GatewayRLSConfig
|
|
75
46
|
}
|
|
76
47
|
|
|
77
48
|
export type GatewayAuthzConfig = {
|
|
@@ -83,6 +54,7 @@ export type CreateGatewayAuthzReq = {
|
|
|
83
54
|
clusterName?: string
|
|
84
55
|
namespaceName?: string
|
|
85
56
|
gatewayName?: string
|
|
57
|
+
config?: GatewayAuthzConfig
|
|
86
58
|
}
|
|
87
59
|
|
|
88
60
|
export type GetGatewayAuthzReq = {
|
|
@@ -107,4 +79,5 @@ export type UpdateGatewayAuthzReq = {
|
|
|
107
79
|
clusterName?: string
|
|
108
80
|
namespaceName?: string
|
|
109
81
|
gatewayName?: string
|
|
82
|
+
config?: GatewayAuthzConfig
|
|
110
83
|
}
|
|
File without changes
|
|
File without changes
|
|
@@ -11,10 +11,10 @@ import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.p
|
|
|
11
11
|
import * as SkoalaApiGeneralV1alpha1Version from "../../general/v1alpha1/version.pb"
|
|
12
12
|
import * as SkoalaApiHostedV1alpha1Api from "../../hosted/v1alpha1/api.pb"
|
|
13
13
|
import * as SkoalaApiHostedV1alpha1Apilog from "../../hosted/v1alpha1/apilog.pb"
|
|
14
|
+
import * as SkoalaApiHostedV1alpha1Extension from "../../hosted/v1alpha1/extension.pb"
|
|
14
15
|
import * as SkoalaApiHostedV1alpha1Gateway from "../../hosted/v1alpha1/gateway.pb"
|
|
15
|
-
import * as
|
|
16
|
-
import * as
|
|
17
|
-
import * as SkoalaApiHostedV1alpha1Gateway_service from "../../hosted/v1alpha1/gateway_service.pb"
|
|
16
|
+
import * as SkoalaApiHostedV1alpha1Gatewaysecret from "../../hosted/v1alpha1/gatewaysecret.pb"
|
|
17
|
+
import * as SkoalaApiHostedV1alpha1Gatewayservice from "../../hosted/v1alpha1/gatewayservice.pb"
|
|
18
18
|
import * as SkoalaApiHostedV1alpha1Nacos from "../../hosted/v1alpha1/nacos.pb"
|
|
19
19
|
import * as SkoalaApiHostedV1alpha1Plugins from "../../hosted/v1alpha1/plugins.pb"
|
|
20
20
|
import * as SkoalaApiHostedV1alpha1Sentinel from "../../hosted/v1alpha1/sentinel.pb"
|
|
@@ -376,29 +376,29 @@ export class Gateway {
|
|
|
376
376
|
static QueryGatewayPodMetric(req: SkoalaApiHostedV1alpha1Gateway.QueryGatewayPodMetricReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.QueryGatewayPodMetricRes> {
|
|
377
377
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.QueryGatewayPodMetricReq, SkoalaApiHostedV1alpha1Gateway.QueryGatewayPodMetricRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterId"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/metric/pods/${req["podName"]}/query?${fm.renderURLSearchParams(req, ["workspaceId", "clusterId", "namespaceName", "gatewayName", "podName"])}`, {...initReq, method: "GET"})
|
|
378
378
|
}
|
|
379
|
-
static GetGatewayNamespace(req:
|
|
380
|
-
return fm.fetchReq<
|
|
379
|
+
static GetGatewayNamespace(req: SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayNamespaceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayNamespaceRes> {
|
|
380
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayNamespaceReq, SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayNamespaceRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/namespaces?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
381
381
|
}
|
|
382
|
-
static CreateService(req:
|
|
383
|
-
return fm.fetchReq<
|
|
382
|
+
static CreateService(req: SkoalaApiHostedV1alpha1Gatewayservice.CreateExternalServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
383
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.CreateExternalServiceReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
384
384
|
}
|
|
385
|
-
static ListService(req:
|
|
386
|
-
return fm.fetchReq<
|
|
385
|
+
static ListService(req: SkoalaApiHostedV1alpha1Gatewayservice.ListGatewayServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewayservice.ListGatewayServiceRes> {
|
|
386
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.ListGatewayServiceReq, SkoalaApiHostedV1alpha1Gatewayservice.ListGatewayServiceRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
387
387
|
}
|
|
388
|
-
static GetService(req:
|
|
389
|
-
return fm.fetchReq<
|
|
388
|
+
static GetService(req: SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayServiceRes> {
|
|
389
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayServiceReq, SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayServiceRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services/${req["sesameId"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "sesameId"])}`, {...initReq, method: "GET"})
|
|
390
390
|
}
|
|
391
|
-
static UpdateService(req:
|
|
392
|
-
return fm.fetchReq<
|
|
391
|
+
static UpdateService(req: SkoalaApiHostedV1alpha1Gatewayservice.UpdateGatewayServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
392
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.UpdateGatewayServiceReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services/${req["sesameId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
393
393
|
}
|
|
394
|
-
static UpdateServicePolicy(req:
|
|
395
|
-
return fm.fetchReq<
|
|
394
|
+
static UpdateServicePolicy(req: SkoalaApiHostedV1alpha1Gatewayservice.UpdateGatewayServicePolicyReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
395
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.UpdateGatewayServicePolicyReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services/${req["sesameId"]}/policies`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
396
396
|
}
|
|
397
|
-
static ListServiceSecret(req:
|
|
398
|
-
return fm.fetchReq<
|
|
397
|
+
static ListServiceSecret(req: SkoalaApiHostedV1alpha1Gatewayservice.ListServiceSecretReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewayservice.ListServiceSecretRes> {
|
|
398
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.ListServiceSecretReq, SkoalaApiHostedV1alpha1Gatewayservice.ListServiceSecretRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/servicesecrets?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
399
399
|
}
|
|
400
|
-
static DeleteService(req:
|
|
401
|
-
return fm.fetchReq<
|
|
400
|
+
static DeleteService(req: SkoalaApiHostedV1alpha1Gatewayservice.DeleteGatewayServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
401
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.DeleteGatewayServiceReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/services/${req["sesameId"]}`, {...initReq, method: "DELETE"})
|
|
402
402
|
}
|
|
403
403
|
static CreateVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
404
404
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/virtualhosts`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
@@ -445,40 +445,34 @@ export class Gateway {
|
|
|
445
445
|
static GatewayLogExport(req: SkoalaApiHostedV1alpha1Apilog.SearchLogReq, entityNotifier?: fm.NotifyStreamEntityArrival<GoogleApiHttpbody.HttpBody>, initReq?: fm.InitReq): Promise<void> {
|
|
446
446
|
return fm.fetchStreamingRequest<SkoalaApiHostedV1alpha1Apilog.SearchLogReq, GoogleApiHttpbody.HttpBody>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/requestlogs/export?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, entityNotifier, {...initReq, method: "GET"})
|
|
447
447
|
}
|
|
448
|
-
static CreateSecret(req:
|
|
449
|
-
return fm.fetchReq<
|
|
448
|
+
static CreateSecret(req: SkoalaApiHostedV1alpha1Gatewaysecret.CreateSecretReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewaysecret.CreateSecretRes> {
|
|
449
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewaysecret.CreateSecretReq, SkoalaApiHostedV1alpha1Gatewaysecret.CreateSecretRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/secrets`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
450
450
|
}
|
|
451
|
-
static ListSecret(req:
|
|
452
|
-
return fm.fetchReq<
|
|
451
|
+
static ListSecret(req: SkoalaApiHostedV1alpha1Gatewaysecret.ListSecretReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewaysecret.ListSecretRes> {
|
|
452
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewaysecret.ListSecretReq, SkoalaApiHostedV1alpha1Gatewaysecret.ListSecretRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/secrets?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
453
453
|
}
|
|
454
|
-
static
|
|
455
|
-
return fm.fetchReq<
|
|
454
|
+
static CreateGatewayRLS(req: SkoalaApiHostedV1alpha1Extension.CreateGatewayRLSReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
455
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.CreateGatewayRLSReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/extensions/rls`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
456
456
|
}
|
|
457
|
-
static GetGatewayRLS(req:
|
|
458
|
-
return fm.fetchReq<
|
|
457
|
+
static GetGatewayRLS(req: SkoalaApiHostedV1alpha1Extension.GetGatewayRLSReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Extension.GetGatewayRLSRes> {
|
|
458
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.GetGatewayRLSReq, SkoalaApiHostedV1alpha1Extension.GetGatewayRLSRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/extensions/rls?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
459
459
|
}
|
|
460
|
-
static
|
|
461
|
-
return fm.fetchReq<
|
|
460
|
+
static DeleteGatewayRLS(req: SkoalaApiHostedV1alpha1Extension.DeleteGatewayRLSReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
461
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.DeleteGatewayRLSReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/extensions/rls`, {...initReq, method: "DELETE"})
|
|
462
462
|
}
|
|
463
|
-
static
|
|
464
|
-
return fm.fetchReq<
|
|
463
|
+
static UpdateGatewayRLS(req: SkoalaApiHostedV1alpha1Extension.UpdateGatewayRLSReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
464
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.UpdateGatewayRLSReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/extensions/rls`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
465
465
|
}
|
|
466
|
-
static
|
|
467
|
-
return fm.fetchReq<
|
|
466
|
+
static CreateGatewayAuthz(req: SkoalaApiHostedV1alpha1Extension.CreateGatewayAuthzReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
467
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.CreateGatewayAuthzReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/extensions/authz`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
468
468
|
}
|
|
469
|
-
static
|
|
470
|
-
return fm.fetchReq<
|
|
469
|
+
static GetGatewayAuthz(req: SkoalaApiHostedV1alpha1Extension.GetGatewayAuthzReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Extension.GetGatewayAuthzRes> {
|
|
470
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.GetGatewayAuthzReq, SkoalaApiHostedV1alpha1Extension.GetGatewayAuthzRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/extensions/authz?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
471
471
|
}
|
|
472
|
-
static
|
|
473
|
-
return fm.fetchReq<
|
|
472
|
+
static DeleteGatewayAuthz(req: SkoalaApiHostedV1alpha1Extension.DeleteGatewayAuthzReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
473
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.DeleteGatewayAuthzReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/extensions/authz`, {...initReq, method: "DELETE"})
|
|
474
474
|
}
|
|
475
|
-
static
|
|
476
|
-
return fm.fetchReq<
|
|
477
|
-
}
|
|
478
|
-
static DeleteGatewayAuthz(req: SkoalaApiHostedV1alpha1Gateway_plugin.DeleteGatewayAuthzReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
479
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.DeleteGatewayAuthzReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/authz`, {...initReq, method: "DELETE"})
|
|
480
|
-
}
|
|
481
|
-
static UpdateGatewayAuthz(req: SkoalaApiHostedV1alpha1Gateway_plugin.UpdateGatewayAuthzReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
482
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.UpdateGatewayAuthzReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/authz`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
475
|
+
static UpdateGatewayAuthz(req: SkoalaApiHostedV1alpha1Extension.UpdateGatewayAuthzReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
476
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.UpdateGatewayAuthzReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/extensions/authz`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
483
477
|
}
|
|
484
478
|
}
|