@daocloud-proto/skoala 0.7.2-44 → 0.7.2-48
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.
|
@@ -6,12 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
8
|
import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
|
|
9
|
-
export type GatewayRLSConfig = {
|
|
10
|
-
chart?: SkoalaApiGeneralV1alpha1Common.Chart
|
|
11
|
-
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
12
|
-
replicas?: number
|
|
13
|
-
}
|
|
14
|
-
|
|
15
9
|
export type GatewayRLSRule = {
|
|
16
10
|
unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
|
|
17
11
|
requestsPerUnit?: number
|
|
@@ -41,7 +35,7 @@ export type SetGatewayRLSConfigReq = {
|
|
|
41
35
|
clusterName?: string
|
|
42
36
|
namespaceName?: string
|
|
43
37
|
gatewayName?: string
|
|
44
|
-
config?:
|
|
38
|
+
config?: GatewayPluginConfig
|
|
45
39
|
}
|
|
46
40
|
|
|
47
41
|
export type GetGatewayRLSConfigReq = {
|
|
@@ -52,7 +46,7 @@ export type GetGatewayRLSConfigReq = {
|
|
|
52
46
|
}
|
|
53
47
|
|
|
54
48
|
export type GetGatewayRLSConfigRes = {
|
|
55
|
-
config?:
|
|
49
|
+
config?: GatewayPluginConfig
|
|
56
50
|
}
|
|
57
51
|
|
|
58
52
|
export type SetGatewayRLSRuleReq = {
|
|
@@ -74,15 +68,18 @@ export type GetGatewayRLSRuleRes = {
|
|
|
74
68
|
rule?: GatewayRLSRule
|
|
75
69
|
}
|
|
76
70
|
|
|
77
|
-
export type
|
|
71
|
+
export type GatewayPluginConfig = {
|
|
78
72
|
chart?: SkoalaApiGeneralV1alpha1Common.Chart
|
|
73
|
+
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
74
|
+
replicas?: number
|
|
79
75
|
}
|
|
80
76
|
|
|
81
|
-
export type
|
|
77
|
+
export type SwitchGatewayAuthzReq = {
|
|
82
78
|
workspaceId?: string
|
|
83
79
|
clusterName?: string
|
|
84
80
|
namespaceName?: string
|
|
85
81
|
gatewayName?: string
|
|
82
|
+
switch?: SkoalaApiGeneralV1alpha1Common.PluginSwitchStatus
|
|
86
83
|
}
|
|
87
84
|
|
|
88
85
|
export type GetGatewayAuthzReq = {
|
|
@@ -93,18 +90,24 @@ export type GetGatewayAuthzReq = {
|
|
|
93
90
|
}
|
|
94
91
|
|
|
95
92
|
export type GetGatewayAuthzRes = {
|
|
93
|
+
switch?: SkoalaApiGeneralV1alpha1Common.PluginSwitchStatus
|
|
96
94
|
}
|
|
97
95
|
|
|
98
|
-
export type
|
|
96
|
+
export type SetGatewayAuthzConfigReq = {
|
|
99
97
|
workspaceId?: string
|
|
100
98
|
clusterName?: string
|
|
101
99
|
namespaceName?: string
|
|
102
100
|
gatewayName?: string
|
|
101
|
+
config?: GatewayPluginConfig
|
|
103
102
|
}
|
|
104
103
|
|
|
105
|
-
export type
|
|
104
|
+
export type GetGatewayAuthzConfigReq = {
|
|
106
105
|
workspaceId?: string
|
|
107
106
|
clusterName?: string
|
|
108
107
|
namespaceName?: string
|
|
109
108
|
gatewayName?: string
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export type GetGatewayAuthzConfigRes = {
|
|
112
|
+
config?: GatewayPluginConfig
|
|
110
113
|
}
|
|
@@ -493,16 +493,16 @@ export class Gateway {
|
|
|
493
493
|
static GetGatewayRLSRule(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleRes> {
|
|
494
494
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleReq, SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/rule?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
495
495
|
}
|
|
496
|
-
static
|
|
497
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.
|
|
496
|
+
static SwitchGatewayAuthz(req: SkoalaApiHostedV1alpha1Gateway_plugin.SwitchGatewayAuthzReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
497
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.SwitchGatewayAuthzReq, 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)})
|
|
498
498
|
}
|
|
499
499
|
static GetGatewayAuthz(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzRes> {
|
|
500
500
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzReq, SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/authz?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
501
501
|
}
|
|
502
|
-
static
|
|
503
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.
|
|
502
|
+
static SetGatewayAuthzConfig(req: SkoalaApiHostedV1alpha1Gateway_plugin.SetGatewayAuthzConfigReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
503
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.SetGatewayAuthzConfigReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/authz/config`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
504
504
|
}
|
|
505
|
-
static
|
|
506
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.
|
|
505
|
+
static GetGatewayAuthzConfig(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzConfigReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzConfigRes> {
|
|
506
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzConfigReq, SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzConfigRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/authz/config?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
507
507
|
}
|
|
508
508
|
}
|