@daocloud-proto/skoala 0.10.0 → 0.10.1-100
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 +2 -2
- package/api/general/v1alpha1/skoala.pb.ts +1 -0
- package/api/general/v1alpha1/version.pb.ts +1 -1
- package/api/hosted/v1alpha1/api.pb.ts +3 -0
- package/api/hosted/v1alpha1/gateway.pb.ts +12 -17
- package/api/hosted/v1alpha1/gateway_plugin.pb.ts +55 -5
- package/api/hosted/v1alpha1/http.pb.ts +64 -0
- package/api/hosted/v1alpha1/nacos.pb.ts +6 -1
- package/api/hosted/v1alpha1/plugins.pb.ts +21 -7
- package/api/hosted/v1alpha1/sentinel.pb.ts +20 -20
- package/api/hosted/v1alpha1/virtualhost.pb.ts +2 -2
- package/api/integrated/v1alpha1/registry.pb.ts +1 -0
- package/api/integrated/v1alpha1/service.pb.ts +1 -1
- package/api/skoala/v1alpha1/skoala.pb.ts +16 -7
- package/package.json +1 -1
|
@@ -200,6 +200,9 @@ type BaseGetAPIRes = {
|
|
|
200
200
|
fqdn?: string
|
|
201
201
|
matchRule?: MatchRule
|
|
202
202
|
advancedPolicy?: AdvancedAPIConfig
|
|
203
|
+
apiStatus?: SkoalaApiHostedV1alpha1Http.APIStatus
|
|
204
|
+
status?: string
|
|
205
|
+
statusDescription?: string
|
|
203
206
|
}
|
|
204
207
|
|
|
205
208
|
export type GetAPIRes = BaseGetAPIRes
|
|
@@ -141,10 +141,17 @@ export type GetGatewayReq = {
|
|
|
141
141
|
gatewayName?: string
|
|
142
142
|
}
|
|
143
143
|
|
|
144
|
-
export type
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
144
|
+
export type GetGatewayComponentsReq = {
|
|
145
|
+
workspaceId?: string
|
|
146
|
+
clusterName?: string
|
|
147
|
+
namespaceName?: string
|
|
148
|
+
gatewayName?: string
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
export type GetGatewayComponentsRes = {
|
|
152
|
+
gatway?: SkoalaApiGeneralV1alpha1Common.Component
|
|
153
|
+
rls?: SkoalaApiGeneralV1alpha1Common.Component
|
|
154
|
+
authz?: SkoalaApiGeneralV1alpha1Common.Component
|
|
148
155
|
}
|
|
149
156
|
|
|
150
157
|
export type GetGatewayRes = {
|
|
@@ -235,7 +242,7 @@ export type NormalConfig = {
|
|
|
235
242
|
}
|
|
236
243
|
|
|
237
244
|
export type GatewayConfig = {
|
|
238
|
-
|
|
245
|
+
component?: SkoalaApiGeneralV1alpha1Common.Component
|
|
239
246
|
normal?: NormalConfig
|
|
240
247
|
advanced?: AdvancedConfig
|
|
241
248
|
}
|
|
@@ -275,18 +282,6 @@ export type RollingUpdate = {
|
|
|
275
282
|
maxUnavailable?: string
|
|
276
283
|
}
|
|
277
284
|
|
|
278
|
-
export type GetImagesRes = {
|
|
279
|
-
contour?: string
|
|
280
|
-
envoy?: string
|
|
281
|
-
}
|
|
282
|
-
|
|
283
|
-
export type GetImagesReq = {
|
|
284
|
-
workspaceId?: string
|
|
285
|
-
clusterName?: string
|
|
286
|
-
namespaceName?: string
|
|
287
|
-
gatewayName?: string
|
|
288
|
-
}
|
|
289
|
-
|
|
290
285
|
export type GetGatewayStatusReq = {
|
|
291
286
|
workspaceId?: string
|
|
292
287
|
clusterName?: string
|
|
@@ -6,17 +6,27 @@
|
|
|
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
|
|
9
|
+
export type GatewayRLSRuleRateLimit = {
|
|
10
10
|
unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
|
|
11
11
|
requestsPerUnit?: number
|
|
12
12
|
}
|
|
13
13
|
|
|
14
|
+
export type GatewayRLSRule = {
|
|
15
|
+
name?: string
|
|
16
|
+
key?: string
|
|
17
|
+
value?: string
|
|
18
|
+
unlimited?: boolean
|
|
19
|
+
rateLimit?: GatewayRLSRuleRateLimit
|
|
20
|
+
aliasName?: string
|
|
21
|
+
}
|
|
22
|
+
|
|
14
23
|
export type SwitchGatewayRLSReq = {
|
|
15
24
|
workspaceId?: string
|
|
16
25
|
clusterName?: string
|
|
17
26
|
namespaceName?: string
|
|
18
27
|
gatewayName?: string
|
|
19
28
|
switch?: SkoalaApiGeneralV1alpha1Common.PluginSwitchStatus
|
|
29
|
+
config?: GatewayRLSConfig
|
|
20
30
|
}
|
|
21
31
|
|
|
22
32
|
export type GetGatewayRLSReq = {
|
|
@@ -35,7 +45,7 @@ export type SetGatewayRLSConfigReq = {
|
|
|
35
45
|
clusterName?: string
|
|
36
46
|
namespaceName?: string
|
|
37
47
|
gatewayName?: string
|
|
38
|
-
config?:
|
|
48
|
+
config?: GatewayRLSConfig
|
|
39
49
|
}
|
|
40
50
|
|
|
41
51
|
export type GetGatewayRLSConfigReq = {
|
|
@@ -46,22 +56,55 @@ export type GetGatewayRLSConfigReq = {
|
|
|
46
56
|
}
|
|
47
57
|
|
|
48
58
|
export type GetGatewayRLSConfigRes = {
|
|
49
|
-
config?:
|
|
59
|
+
config?: GatewayRLSConfig
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export type CreateGatewayRLSRuleReq = {
|
|
63
|
+
workspaceId?: string
|
|
64
|
+
clusterName?: string
|
|
65
|
+
namespaceName?: string
|
|
66
|
+
gatewayName?: string
|
|
67
|
+
rule?: GatewayRLSRule
|
|
50
68
|
}
|
|
51
69
|
|
|
52
|
-
export type
|
|
70
|
+
export type UpdateGatewayRLSRuleReq = {
|
|
53
71
|
workspaceId?: string
|
|
54
72
|
clusterName?: string
|
|
55
73
|
namespaceName?: string
|
|
56
74
|
gatewayName?: string
|
|
75
|
+
ruleName?: string
|
|
57
76
|
rule?: GatewayRLSRule
|
|
58
77
|
}
|
|
59
78
|
|
|
79
|
+
export type ListGatewayRLSRuleReq = {
|
|
80
|
+
workspaceId?: string
|
|
81
|
+
clusterName?: string
|
|
82
|
+
namespaceName?: string
|
|
83
|
+
gatewayName?: string
|
|
84
|
+
ruleName?: string
|
|
85
|
+
page?: number
|
|
86
|
+
pageSize?: number
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export type DeleteGatewayRLSRuleReq = {
|
|
90
|
+
workspaceId?: string
|
|
91
|
+
clusterName?: string
|
|
92
|
+
namespaceName?: string
|
|
93
|
+
gatewayName?: string
|
|
94
|
+
ruleName?: string
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export type ListGatewayRLSRuleRes = {
|
|
98
|
+
items?: GatewayRLSRule[]
|
|
99
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
100
|
+
}
|
|
101
|
+
|
|
60
102
|
export type GetGatewayRLSRuleReq = {
|
|
61
103
|
workspaceId?: string
|
|
62
104
|
clusterName?: string
|
|
63
105
|
namespaceName?: string
|
|
64
106
|
gatewayName?: string
|
|
107
|
+
ruleName?: string
|
|
65
108
|
}
|
|
66
109
|
|
|
67
110
|
export type GetGatewayRLSRuleRes = {
|
|
@@ -69,9 +112,16 @@ export type GetGatewayRLSRuleRes = {
|
|
|
69
112
|
}
|
|
70
113
|
|
|
71
114
|
export type GatewayPluginConfig = {
|
|
72
|
-
|
|
115
|
+
component?: SkoalaApiGeneralV1alpha1Common.Component
|
|
116
|
+
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
117
|
+
replicas?: number
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export type GatewayRLSConfig = {
|
|
121
|
+
component?: SkoalaApiGeneralV1alpha1Common.Component
|
|
73
122
|
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
74
123
|
replicas?: number
|
|
124
|
+
redisUrl?: string
|
|
75
125
|
}
|
|
76
126
|
|
|
77
127
|
export type SwitchGatewayAuthzReq = {
|
|
@@ -37,6 +37,66 @@ export enum RouteType {
|
|
|
37
37
|
UNKNOW = "UNKNOW",
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
export enum StatusCode {
|
|
41
|
+
Empty = "Empty",
|
|
42
|
+
Continue = "Continue",
|
|
43
|
+
OK = "OK",
|
|
44
|
+
Created = "Created",
|
|
45
|
+
Accepted = "Accepted",
|
|
46
|
+
NonAuthoritativeInformation = "NonAuthoritativeInformation",
|
|
47
|
+
NoContent = "NoContent",
|
|
48
|
+
ResetContent = "ResetContent",
|
|
49
|
+
PartialContent = "PartialContent",
|
|
50
|
+
MultiStatus = "MultiStatus",
|
|
51
|
+
AlreadyReported = "AlreadyReported",
|
|
52
|
+
IMUsed = "IMUsed",
|
|
53
|
+
MultipleChoices = "MultipleChoices",
|
|
54
|
+
MovedPermanently = "MovedPermanently",
|
|
55
|
+
Found = "Found",
|
|
56
|
+
SeeOther = "SeeOther",
|
|
57
|
+
NotModified = "NotModified",
|
|
58
|
+
UseProxy = "UseProxy",
|
|
59
|
+
TemporaryRedirect = "TemporaryRedirect",
|
|
60
|
+
PermanentRedirect = "PermanentRedirect",
|
|
61
|
+
BadRequest = "BadRequest",
|
|
62
|
+
Unauthorized = "Unauthorized",
|
|
63
|
+
PaymentRequired = "PaymentRequired",
|
|
64
|
+
Forbidden = "Forbidden",
|
|
65
|
+
NotFound = "NotFound",
|
|
66
|
+
MethodNotAllowed = "MethodNotAllowed",
|
|
67
|
+
NotAcceptable = "NotAcceptable",
|
|
68
|
+
ProxyAuthenticationRequired = "ProxyAuthenticationRequired",
|
|
69
|
+
RequestTimeout = "RequestTimeout",
|
|
70
|
+
Conflict = "Conflict",
|
|
71
|
+
Gone = "Gone",
|
|
72
|
+
LengthRequired = "LengthRequired",
|
|
73
|
+
PreconditionFailed = "PreconditionFailed",
|
|
74
|
+
PayloadTooLarge = "PayloadTooLarge",
|
|
75
|
+
URITooLong = "URITooLong",
|
|
76
|
+
UnsupportedMediaType = "UnsupportedMediaType",
|
|
77
|
+
RangeNotSatisfiable = "RangeNotSatisfiable",
|
|
78
|
+
ExpectationFailed = "ExpectationFailed",
|
|
79
|
+
MisdirectedRequest = "MisdirectedRequest",
|
|
80
|
+
UnprocessableEntity = "UnprocessableEntity",
|
|
81
|
+
Locked = "Locked",
|
|
82
|
+
FailedDependency = "FailedDependency",
|
|
83
|
+
UpgradeRequired = "UpgradeRequired",
|
|
84
|
+
PreconditionRequired = "PreconditionRequired",
|
|
85
|
+
TooManyRequests = "TooManyRequests",
|
|
86
|
+
RequestHeaderFieldsTooLarge = "RequestHeaderFieldsTooLarge",
|
|
87
|
+
InternalServerError = "InternalServerError",
|
|
88
|
+
NotImplemented = "NotImplemented",
|
|
89
|
+
BadGateway = "BadGateway",
|
|
90
|
+
ServiceUnavailable = "ServiceUnavailable",
|
|
91
|
+
GatewayTimeout = "GatewayTimeout",
|
|
92
|
+
HTTPVersionNotSupported = "HTTPVersionNotSupported",
|
|
93
|
+
VariantAlsoNegotiates = "VariantAlsoNegotiates",
|
|
94
|
+
InsufficientStorage = "InsufficientStorage",
|
|
95
|
+
LoopDetected = "LoopDetected",
|
|
96
|
+
NotExtended = "NotExtended",
|
|
97
|
+
NetworkAuthenticationRequired = "NetworkAuthenticationRequired",
|
|
98
|
+
}
|
|
99
|
+
|
|
40
100
|
export type Header = {
|
|
41
101
|
name?: string
|
|
42
102
|
value?: string
|
|
@@ -85,4 +145,8 @@ export type APIInfo = {
|
|
|
85
145
|
status?: string
|
|
86
146
|
statusDescription?: string
|
|
87
147
|
updatedAt?: string
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export type HttpStatus = {
|
|
151
|
+
code?: StatusCode
|
|
88
152
|
}
|
|
@@ -100,6 +100,9 @@ export type Nacos = {
|
|
|
100
100
|
version?: string
|
|
101
101
|
nodeCount?: number
|
|
102
102
|
healthNodeCount?: number
|
|
103
|
+
serviceCount?: number
|
|
104
|
+
configCount?: number
|
|
105
|
+
insightEnabled?: boolean
|
|
103
106
|
database?: NacosDatabase
|
|
104
107
|
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
105
108
|
condition?: NacosCondition[]
|
|
@@ -143,6 +146,7 @@ export type UpdateNacosReq = {
|
|
|
143
146
|
clusterName?: string
|
|
144
147
|
nacosName?: string
|
|
145
148
|
namespaceName?: string
|
|
149
|
+
insightEnabled?: boolean
|
|
146
150
|
config?: NacosConfig
|
|
147
151
|
}
|
|
148
152
|
|
|
@@ -152,6 +156,7 @@ export type CreateNacosReq = {
|
|
|
152
156
|
nacosName?: string
|
|
153
157
|
namespaceName?: string
|
|
154
158
|
createNamespace?: boolean
|
|
159
|
+
insightEnabled?: boolean
|
|
155
160
|
config?: NacosConfig
|
|
156
161
|
}
|
|
157
162
|
|
|
@@ -171,7 +176,7 @@ export type RestartNacosReq = {
|
|
|
171
176
|
|
|
172
177
|
export type NacosConfig = {
|
|
173
178
|
type?: NacosConfigType
|
|
174
|
-
|
|
179
|
+
component?: SkoalaApiGeneralV1alpha1Common.Component
|
|
175
180
|
replicas?: number
|
|
176
181
|
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
177
182
|
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
@@ -8,6 +8,15 @@ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.p
|
|
|
8
8
|
import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
|
|
9
9
|
import * as SkoalaApiGeneralV1alpha1Service from "../../general/v1alpha1/service.pb"
|
|
10
10
|
|
|
11
|
+
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
12
|
+
type OneOf<T> =
|
|
13
|
+
| { [k in keyof T]?: undefined }
|
|
14
|
+
| (
|
|
15
|
+
keyof T extends infer K ?
|
|
16
|
+
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
17
|
+
: never)
|
|
18
|
+
: never);
|
|
19
|
+
|
|
11
20
|
export enum GetMeshPluginResMeshMode {
|
|
12
21
|
MESH_MODE_UNSPECIFIED = "MESH_MODE_UNSPECIFIED",
|
|
13
22
|
HOSTED = "HOSTED",
|
|
@@ -52,11 +61,13 @@ export type GetPluginReq = {
|
|
|
52
61
|
name?: string
|
|
53
62
|
}
|
|
54
63
|
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
mesh?: GetMeshPluginRes
|
|
64
|
+
|
|
65
|
+
type BaseGetPluginRes = {
|
|
58
66
|
}
|
|
59
67
|
|
|
68
|
+
export type GetPluginRes = BaseGetPluginRes
|
|
69
|
+
& OneOf<{ sentinel: GetSentinelPluginRes; mesh: GetMeshPluginRes }>
|
|
70
|
+
|
|
60
71
|
export type GetSentinelPluginReq = {
|
|
61
72
|
}
|
|
62
73
|
|
|
@@ -81,18 +92,20 @@ export type GetMeshPluginRes = {
|
|
|
81
92
|
capacity?: string
|
|
82
93
|
}
|
|
83
94
|
|
|
84
|
-
|
|
95
|
+
|
|
96
|
+
type BaseUpdatePluginReq = {
|
|
85
97
|
workspaceId?: string
|
|
86
98
|
clusterName?: string
|
|
87
99
|
namespace?: string
|
|
88
100
|
nacosName?: string
|
|
89
|
-
sentinel?: UpdateSentinelPluginReq
|
|
90
|
-
mesh?: UpdateMeshPluginReq
|
|
91
101
|
}
|
|
92
102
|
|
|
103
|
+
export type UpdatePluginReq = BaseUpdatePluginReq
|
|
104
|
+
& OneOf<{ sentinel: UpdateSentinelPluginReq; mesh: UpdateMeshPluginReq }>
|
|
105
|
+
|
|
93
106
|
export type UpdateSentinelPluginReq = {
|
|
94
107
|
enabled?: boolean
|
|
95
|
-
chart?: SkoalaApiGeneralV1alpha1Common.
|
|
108
|
+
chart?: SkoalaApiGeneralV1alpha1Common.Component
|
|
96
109
|
replicas?: number
|
|
97
110
|
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
98
111
|
type?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
@@ -102,6 +115,7 @@ export type UpdateSentinelPluginReq = {
|
|
|
102
115
|
export type UpdateMeshPluginReq = {
|
|
103
116
|
enabled?: boolean
|
|
104
117
|
name?: string
|
|
118
|
+
address?: string
|
|
105
119
|
}
|
|
106
120
|
|
|
107
121
|
export type GetGovernReq = {
|
|
@@ -75,7 +75,7 @@ export type GetAppsSentinelGrafanaRes = {
|
|
|
75
75
|
}
|
|
76
76
|
|
|
77
77
|
export type FlowRule = {
|
|
78
|
-
id?:
|
|
78
|
+
id?: string
|
|
79
79
|
app?: string
|
|
80
80
|
ip?: string
|
|
81
81
|
port?: number
|
|
@@ -121,7 +121,7 @@ export type GetFlowRuleReq = {
|
|
|
121
121
|
namespaceName?: string
|
|
122
122
|
sentinelName?: string
|
|
123
123
|
appName?: string
|
|
124
|
-
ruleId?:
|
|
124
|
+
ruleId?: string
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
export type GetFlowRuleRes = {
|
|
@@ -134,7 +134,7 @@ export type UpdateFlowRuleReq = {
|
|
|
134
134
|
namespaceName?: string
|
|
135
135
|
sentinelName?: string
|
|
136
136
|
appName?: string
|
|
137
|
-
ruleId?:
|
|
137
|
+
ruleId?: string
|
|
138
138
|
flowRule?: FlowRule
|
|
139
139
|
}
|
|
140
140
|
|
|
@@ -144,11 +144,11 @@ export type DeleteFlowRuleReq = {
|
|
|
144
144
|
namespaceName?: string
|
|
145
145
|
sentinelName?: string
|
|
146
146
|
appName?: string
|
|
147
|
-
ruleId?:
|
|
147
|
+
ruleId?: string
|
|
148
148
|
}
|
|
149
149
|
|
|
150
150
|
export type DegradeRule = {
|
|
151
|
-
id?:
|
|
151
|
+
id?: string
|
|
152
152
|
app?: string
|
|
153
153
|
ip?: string
|
|
154
154
|
port?: number
|
|
@@ -192,7 +192,7 @@ export type GetDegradeRuleReq = {
|
|
|
192
192
|
namespaceName?: string
|
|
193
193
|
sentinelName?: string
|
|
194
194
|
appName?: string
|
|
195
|
-
ruleId?:
|
|
195
|
+
ruleId?: string
|
|
196
196
|
}
|
|
197
197
|
|
|
198
198
|
export type GetDegradeRuleRes = {
|
|
@@ -205,7 +205,7 @@ export type UpdateDegradeRuleReq = {
|
|
|
205
205
|
namespaceName?: string
|
|
206
206
|
sentinelName?: string
|
|
207
207
|
appName?: string
|
|
208
|
-
ruleId?:
|
|
208
|
+
ruleId?: string
|
|
209
209
|
degradeRule?: DegradeRule
|
|
210
210
|
}
|
|
211
211
|
|
|
@@ -215,7 +215,7 @@ export type DeleteDegradeRuleReq = {
|
|
|
215
215
|
namespaceName?: string
|
|
216
216
|
sentinelName?: string
|
|
217
217
|
appName?: string
|
|
218
|
-
ruleId?:
|
|
218
|
+
ruleId?: string
|
|
219
219
|
}
|
|
220
220
|
|
|
221
221
|
export type ParamFlowRuleParamFlowItemList = {
|
|
@@ -225,7 +225,7 @@ export type ParamFlowRuleParamFlowItemList = {
|
|
|
225
225
|
}
|
|
226
226
|
|
|
227
227
|
export type ParamFlowRule = {
|
|
228
|
-
id?:
|
|
228
|
+
id?: string
|
|
229
229
|
app?: string
|
|
230
230
|
ip?: string
|
|
231
231
|
port?: number
|
|
@@ -267,7 +267,7 @@ export type GetParamFlowRuleReq = {
|
|
|
267
267
|
namespaceName?: string
|
|
268
268
|
sentinelName?: string
|
|
269
269
|
appName?: string
|
|
270
|
-
ruleId?:
|
|
270
|
+
ruleId?: string
|
|
271
271
|
}
|
|
272
272
|
|
|
273
273
|
export type GetParamFlowRuleRes = {
|
|
@@ -280,7 +280,7 @@ export type UpdateParamFlowRuleReq = {
|
|
|
280
280
|
namespaceName?: string
|
|
281
281
|
sentinelName?: string
|
|
282
282
|
appName?: string
|
|
283
|
-
ruleId?:
|
|
283
|
+
ruleId?: string
|
|
284
284
|
paramFlowRule?: ParamFlowRule
|
|
285
285
|
}
|
|
286
286
|
|
|
@@ -290,11 +290,11 @@ export type DeleteParamFlowRuleReq = {
|
|
|
290
290
|
namespaceName?: string
|
|
291
291
|
sentinelName?: string
|
|
292
292
|
appName?: string
|
|
293
|
-
ruleId?:
|
|
293
|
+
ruleId?: string
|
|
294
294
|
}
|
|
295
295
|
|
|
296
296
|
export type SystemRule = {
|
|
297
|
-
id?:
|
|
297
|
+
id?: string
|
|
298
298
|
app?: string
|
|
299
299
|
ip?: string
|
|
300
300
|
port?: number
|
|
@@ -335,7 +335,7 @@ export type GetSystemRuleReq = {
|
|
|
335
335
|
namespaceName?: string
|
|
336
336
|
sentinelName?: string
|
|
337
337
|
appName?: string
|
|
338
|
-
ruleId?:
|
|
338
|
+
ruleId?: string
|
|
339
339
|
}
|
|
340
340
|
|
|
341
341
|
export type GetSystemRuleRes = {
|
|
@@ -348,7 +348,7 @@ export type UpdateSystemRuleReq = {
|
|
|
348
348
|
namespaceName?: string
|
|
349
349
|
sentinelName?: string
|
|
350
350
|
appName?: string
|
|
351
|
-
ruleId?:
|
|
351
|
+
ruleId?: string
|
|
352
352
|
systemRule?: SystemRule
|
|
353
353
|
}
|
|
354
354
|
|
|
@@ -358,11 +358,11 @@ export type DeleteSystemRuleReq = {
|
|
|
358
358
|
namespaceName?: string
|
|
359
359
|
sentinelName?: string
|
|
360
360
|
appName?: string
|
|
361
|
-
ruleId?:
|
|
361
|
+
ruleId?: string
|
|
362
362
|
}
|
|
363
363
|
|
|
364
364
|
export type AuthorityRule = {
|
|
365
|
-
id?:
|
|
365
|
+
id?: string
|
|
366
366
|
app?: string
|
|
367
367
|
ip?: string
|
|
368
368
|
port?: number
|
|
@@ -401,7 +401,7 @@ export type GetAuthorityRuleReq = {
|
|
|
401
401
|
namespaceName?: string
|
|
402
402
|
sentinelName?: string
|
|
403
403
|
appName?: string
|
|
404
|
-
ruleId?:
|
|
404
|
+
ruleId?: string
|
|
405
405
|
}
|
|
406
406
|
|
|
407
407
|
export type GetAuthorityRuleRes = {
|
|
@@ -414,7 +414,7 @@ export type UpdateAuthorityRuleReq = {
|
|
|
414
414
|
namespaceName?: string
|
|
415
415
|
sentinelName?: string
|
|
416
416
|
appName?: string
|
|
417
|
-
ruleId?:
|
|
417
|
+
ruleId?: string
|
|
418
418
|
authorityRule?: AuthorityRule
|
|
419
419
|
}
|
|
420
420
|
|
|
@@ -424,5 +424,5 @@ export type DeleteAuthorityRuleReq = {
|
|
|
424
424
|
namespaceName?: string
|
|
425
425
|
sentinelName?: string
|
|
426
426
|
appName?: string
|
|
427
|
-
ruleId?:
|
|
427
|
+
ruleId?: string
|
|
428
428
|
}
|
|
@@ -142,7 +142,7 @@ export type RateLimitPolicy = {
|
|
|
142
142
|
}
|
|
143
143
|
|
|
144
144
|
export type GlobalRateLimitPolicy = {
|
|
145
|
-
|
|
145
|
+
rlsRuleName?: string
|
|
146
146
|
}
|
|
147
147
|
|
|
148
148
|
export type RateLimitDescriptor = {
|
|
@@ -179,7 +179,7 @@ export type LocalRateLimitPolicy = {
|
|
|
179
179
|
burst?: number
|
|
180
180
|
request?: number
|
|
181
181
|
responseHeadersToAdd?: SkoalaApiHostedV1alpha1Http.Header[]
|
|
182
|
-
responseStatusCode?:
|
|
182
|
+
responseStatusCode?: SkoalaApiHostedV1alpha1Http.HttpStatus
|
|
183
183
|
unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
|
|
184
184
|
}
|
|
185
185
|
|
|
@@ -50,7 +50,7 @@ export type GetServiceInsightReq = {
|
|
|
50
50
|
namespaceId?: string
|
|
51
51
|
groupName?: string
|
|
52
52
|
serviceName?: string
|
|
53
|
-
|
|
53
|
+
registryType?: SkoalaApiIntegratedV1alpha1Registry.RegistryType
|
|
54
54
|
detail?: {[key: string]: string}
|
|
55
55
|
start?: string
|
|
56
56
|
end?: string
|
|
@@ -386,8 +386,8 @@ export class Gateway {
|
|
|
386
386
|
static Delete(req: SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
387
387
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}`, {...initReq, method: "DELETE"})
|
|
388
388
|
}
|
|
389
|
-
static
|
|
390
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.
|
|
389
|
+
static GetWorkingComponents(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes> {
|
|
390
|
+
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"})
|
|
391
391
|
}
|
|
392
392
|
static GetGatewayStatus(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes> {
|
|
393
393
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/status?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
@@ -395,8 +395,8 @@ export class Gateway {
|
|
|
395
395
|
static Diagnostic(req: SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
396
396
|
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)})
|
|
397
397
|
}
|
|
398
|
-
static
|
|
399
|
-
return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiHostedV1alpha1Gateway.
|
|
398
|
+
static GetProvisionedComponents(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes> {
|
|
399
|
+
return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes>(`/apis/sesame.skoala.io/v1alpha1/components?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
400
400
|
}
|
|
401
401
|
static ListGatewayPods(req: SkoalaApiHostedV1alpha1Gateway.ListPodsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.ListPodsRes> {
|
|
402
402
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListPodsReq, SkoalaApiHostedV1alpha1Gateway.ListPodsRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/pods?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
@@ -512,11 +512,20 @@ export class Gateway {
|
|
|
512
512
|
static GetGatewayRLSConfig(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSConfigReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSConfigRes> {
|
|
513
513
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSConfigReq, SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSConfigRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/config?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
514
514
|
}
|
|
515
|
-
static
|
|
516
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.
|
|
515
|
+
static CreateGatewayRLSRule(req: SkoalaApiHostedV1alpha1Gateway_plugin.CreateGatewayRLSRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
516
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.CreateGatewayRLSRuleReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
517
|
+
}
|
|
518
|
+
static ListGatewayRLSRule(req: SkoalaApiHostedV1alpha1Gateway_plugin.ListGatewayRLSRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.ListGatewayRLSRuleRes> {
|
|
519
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.ListGatewayRLSRuleReq, SkoalaApiHostedV1alpha1Gateway_plugin.ListGatewayRLSRuleRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/rules?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
520
|
+
}
|
|
521
|
+
static UpdateGatewayRLSRule(req: SkoalaApiHostedV1alpha1Gateway_plugin.UpdateGatewayRLSRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
522
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.UpdateGatewayRLSRuleReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/rules/${req["ruleName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
523
|
+
}
|
|
524
|
+
static DeleteGatewayRLSRule(req: SkoalaApiHostedV1alpha1Gateway_plugin.DeleteGatewayRLSRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
525
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.DeleteGatewayRLSRuleReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/rules/${req["ruleName"]}`, {...initReq, method: "DELETE"})
|
|
517
526
|
}
|
|
518
527
|
static GetGatewayRLSRule(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleRes> {
|
|
519
|
-
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/
|
|
528
|
+
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/rules/${req["ruleName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "ruleName"])}`, {...initReq, method: "GET"})
|
|
520
529
|
}
|
|
521
530
|
static SwitchGatewayAuthz(req: SkoalaApiHostedV1alpha1Gateway_plugin.SwitchGatewayAuthzReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
522
531
|
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)})
|