@daocloud-proto/skoala 0.7.0 → 0.7.1-10
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 +12 -0
- package/api/hosted/v1alpha1/extension.pb.ts +4 -0
- package/api/hosted/v1alpha1/gateway.pb.ts +20 -1
- package/api/hosted/v1alpha1/nacos.pb.ts +6 -7
- package/api/hosted/v1alpha1/sentinel.pb.ts +85 -5
- package/api/skoala/v1alpha1/skoala.pb.ts +36 -21
- package/package.json +1 -1
|
@@ -90,4 +90,16 @@ export type API = {
|
|
|
90
90
|
nacosGroupName?: string
|
|
91
91
|
dataType?: APIDataType
|
|
92
92
|
detail?: string
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type Image = {
|
|
96
|
+
registry?: string
|
|
97
|
+
repository?: string
|
|
98
|
+
tag?: string
|
|
99
|
+
pullPolicy?: string
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export type Chart = {
|
|
103
|
+
version?: string
|
|
104
|
+
images?: {[key: string]: Image}
|
|
93
105
|
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
8
|
export type GatewayRLSConfig = {
|
|
9
|
+
chart?: SkoalaApiGeneralV1alpha1Common.Chart
|
|
9
10
|
unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
|
|
10
11
|
requestsPerUnit?: number
|
|
11
12
|
}
|
|
@@ -45,6 +46,7 @@ export type UpdateGatewayRLSReq = {
|
|
|
45
46
|
}
|
|
46
47
|
|
|
47
48
|
export type GatewayAuthzConfig = {
|
|
49
|
+
chart?: SkoalaApiGeneralV1alpha1Common.Chart
|
|
48
50
|
}
|
|
49
51
|
|
|
50
52
|
export type CreateGatewayAuthzReq = {
|
|
@@ -52,6 +54,7 @@ export type CreateGatewayAuthzReq = {
|
|
|
52
54
|
clusterName?: string
|
|
53
55
|
namespaceName?: string
|
|
54
56
|
gatewayName?: string
|
|
57
|
+
config?: GatewayAuthzConfig
|
|
55
58
|
}
|
|
56
59
|
|
|
57
60
|
export type GetGatewayAuthzReq = {
|
|
@@ -76,4 +79,5 @@ export type UpdateGatewayAuthzReq = {
|
|
|
76
79
|
clusterName?: string
|
|
77
80
|
namespaceName?: string
|
|
78
81
|
gatewayName?: string
|
|
82
|
+
config?: GatewayAuthzConfig
|
|
79
83
|
}
|
|
@@ -57,6 +57,19 @@ export enum AlertSeverity {
|
|
|
57
57
|
Info = "Info",
|
|
58
58
|
}
|
|
59
59
|
|
|
60
|
+
export enum GatewayConditionType {
|
|
61
|
+
TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
|
|
62
|
+
Scheduled = "Scheduled",
|
|
63
|
+
Ready = "Ready",
|
|
64
|
+
}
|
|
65
|
+
|
|
66
|
+
export enum GatewayConditionStatus {
|
|
67
|
+
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
68
|
+
True = "True",
|
|
69
|
+
False = "False",
|
|
70
|
+
Unknown = "Unknown",
|
|
71
|
+
}
|
|
72
|
+
|
|
60
73
|
export enum LogLogLevel {
|
|
61
74
|
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
62
75
|
Trace = "Trace",
|
|
@@ -73,6 +86,12 @@ export type Node = {
|
|
|
73
86
|
online?: number
|
|
74
87
|
}
|
|
75
88
|
|
|
89
|
+
export type GatewayCondition = {
|
|
90
|
+
type?: GatewayConditionType
|
|
91
|
+
status?: GatewayConditionStatus
|
|
92
|
+
message?: string
|
|
93
|
+
}
|
|
94
|
+
|
|
76
95
|
export type Gateway = {
|
|
77
96
|
workspaceId?: string
|
|
78
97
|
clusterName?: string
|
|
@@ -80,7 +99,7 @@ export type Gateway = {
|
|
|
80
99
|
gatewayName?: string
|
|
81
100
|
createdAt?: string
|
|
82
101
|
updatedAt?: string
|
|
83
|
-
|
|
102
|
+
condition?: GatewayCondition
|
|
84
103
|
endpoints?: string[]
|
|
85
104
|
contour?: Node
|
|
86
105
|
envoy?: Node
|
|
@@ -157,10 +157,7 @@ export type RestartNacosReq = {
|
|
|
157
157
|
|
|
158
158
|
export type NacosConfig = {
|
|
159
159
|
type?: NacosConfigType
|
|
160
|
-
|
|
161
|
-
imageRegistry?: string
|
|
162
|
-
imageRepository?: string
|
|
163
|
-
imageTag?: string
|
|
160
|
+
chart?: SkoalaApiGeneralV1alpha1Common.Chart
|
|
164
161
|
replicas?: number
|
|
165
162
|
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
166
163
|
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
@@ -276,6 +273,8 @@ export type GetNacosServiceInsightReq = {
|
|
|
276
273
|
nacosNamespace?: string
|
|
277
274
|
nacosGroupName?: string
|
|
278
275
|
nacosService?: string
|
|
276
|
+
start?: string
|
|
277
|
+
end?: string
|
|
279
278
|
}
|
|
280
279
|
|
|
281
280
|
export type GetNacosServiceInsightRes = {
|
|
@@ -291,8 +290,8 @@ export type UpdateNacosServiceReq = {
|
|
|
291
290
|
nacosGroupName?: string
|
|
292
291
|
nacosService?: string
|
|
293
292
|
protectThreshold?: number
|
|
294
|
-
metadata?: string
|
|
295
|
-
selector?: string
|
|
293
|
+
metadata?: {[key: string]: string}
|
|
294
|
+
selector?: {[key: string]: string}
|
|
296
295
|
}
|
|
297
296
|
|
|
298
297
|
export type DeleteNacosServiceReq = {
|
|
@@ -425,7 +424,7 @@ export type UpdateNacosServiceInstanceReq = {
|
|
|
425
424
|
ephemeral?: boolean
|
|
426
425
|
weight?: number
|
|
427
426
|
enabled?: boolean
|
|
428
|
-
metadata?: string
|
|
427
|
+
metadata?: {[key: string]: string}
|
|
429
428
|
nacosInstanceId?: string
|
|
430
429
|
}
|
|
431
430
|
|
|
@@ -61,6 +61,7 @@ export type CreateFlowRuleReq = {
|
|
|
61
61
|
clusterName?: string
|
|
62
62
|
namespaceName?: string
|
|
63
63
|
sentinelName?: string
|
|
64
|
+
appName?: string
|
|
64
65
|
flowRule?: FlowRule
|
|
65
66
|
}
|
|
66
67
|
|
|
@@ -69,9 +70,9 @@ export type ListFlowRuleReq = {
|
|
|
69
70
|
clusterName?: string
|
|
70
71
|
namespaceName?: string
|
|
71
72
|
sentinelName?: string
|
|
73
|
+
appName?: string
|
|
72
74
|
page?: number
|
|
73
75
|
pageSize?: number
|
|
74
|
-
app?: string
|
|
75
76
|
}
|
|
76
77
|
|
|
77
78
|
export type ListFlowRuleRes = {
|
|
@@ -79,11 +80,25 @@ export type ListFlowRuleRes = {
|
|
|
79
80
|
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
80
81
|
}
|
|
81
82
|
|
|
83
|
+
export type GetFlowRuleReq = {
|
|
84
|
+
workspaceId?: string
|
|
85
|
+
clusterName?: string
|
|
86
|
+
namespaceName?: string
|
|
87
|
+
sentinelName?: string
|
|
88
|
+
appName?: string
|
|
89
|
+
ruleId?: number
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export type GetFlowRuleRes = {
|
|
93
|
+
rule?: FlowRule
|
|
94
|
+
}
|
|
95
|
+
|
|
82
96
|
export type UpdateFlowRuleReq = {
|
|
83
97
|
workspaceId?: string
|
|
84
98
|
clusterName?: string
|
|
85
99
|
namespaceName?: string
|
|
86
100
|
sentinelName?: string
|
|
101
|
+
appName?: string
|
|
87
102
|
ruleId?: number
|
|
88
103
|
flowRule?: FlowRule
|
|
89
104
|
}
|
|
@@ -93,6 +108,7 @@ export type DeleteFlowRuleReq = {
|
|
|
93
108
|
clusterName?: string
|
|
94
109
|
namespaceName?: string
|
|
95
110
|
sentinelName?: string
|
|
111
|
+
appName?: string
|
|
96
112
|
ruleId?: number
|
|
97
113
|
}
|
|
98
114
|
|
|
@@ -116,6 +132,7 @@ export type CreateDegradeRuleReq = {
|
|
|
116
132
|
clusterName?: string
|
|
117
133
|
namespaceName?: string
|
|
118
134
|
sentinelName?: string
|
|
135
|
+
appName?: string
|
|
119
136
|
degradeRule?: DegradeRule
|
|
120
137
|
}
|
|
121
138
|
|
|
@@ -124,9 +141,9 @@ export type ListDegradeRuleReq = {
|
|
|
124
141
|
clusterName?: string
|
|
125
142
|
namespaceName?: string
|
|
126
143
|
sentinelName?: string
|
|
144
|
+
appName?: string
|
|
127
145
|
page?: number
|
|
128
146
|
pageSize?: number
|
|
129
|
-
app?: string
|
|
130
147
|
}
|
|
131
148
|
|
|
132
149
|
export type ListDegradeRuleRes = {
|
|
@@ -134,11 +151,25 @@ export type ListDegradeRuleRes = {
|
|
|
134
151
|
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
135
152
|
}
|
|
136
153
|
|
|
154
|
+
export type GetDegradeRuleReq = {
|
|
155
|
+
workspaceId?: string
|
|
156
|
+
clusterName?: string
|
|
157
|
+
namespaceName?: string
|
|
158
|
+
sentinelName?: string
|
|
159
|
+
appName?: string
|
|
160
|
+
ruleId?: number
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
export type GetDegradeRuleRes = {
|
|
164
|
+
rule?: DegradeRule
|
|
165
|
+
}
|
|
166
|
+
|
|
137
167
|
export type UpdateDegradeRuleReq = {
|
|
138
168
|
workspaceId?: string
|
|
139
169
|
clusterName?: string
|
|
140
170
|
namespaceName?: string
|
|
141
171
|
sentinelName?: string
|
|
172
|
+
appName?: string
|
|
142
173
|
ruleId?: number
|
|
143
174
|
degradeRule?: DegradeRule
|
|
144
175
|
}
|
|
@@ -148,6 +179,7 @@ export type DeleteDegradeRuleReq = {
|
|
|
148
179
|
clusterName?: string
|
|
149
180
|
namespaceName?: string
|
|
150
181
|
sentinelName?: string
|
|
182
|
+
appName?: string
|
|
151
183
|
ruleId?: number
|
|
152
184
|
}
|
|
153
185
|
|
|
@@ -175,6 +207,7 @@ export type CreateParamFlowRuleReq = {
|
|
|
175
207
|
clusterName?: string
|
|
176
208
|
namespaceName?: string
|
|
177
209
|
sentinelName?: string
|
|
210
|
+
appName?: string
|
|
178
211
|
paramFlowRule?: ParamFlowRule
|
|
179
212
|
}
|
|
180
213
|
|
|
@@ -183,9 +216,9 @@ export type ListParamFlowRuleReq = {
|
|
|
183
216
|
clusterName?: string
|
|
184
217
|
namespaceName?: string
|
|
185
218
|
sentinelName?: string
|
|
219
|
+
appName?: string
|
|
186
220
|
page?: number
|
|
187
221
|
pageSize?: number
|
|
188
|
-
app?: string
|
|
189
222
|
}
|
|
190
223
|
|
|
191
224
|
export type ListParamFlowRuleRes = {
|
|
@@ -193,11 +226,25 @@ export type ListParamFlowRuleRes = {
|
|
|
193
226
|
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
194
227
|
}
|
|
195
228
|
|
|
229
|
+
export type GetParamFlowRuleReq = {
|
|
230
|
+
workspaceId?: string
|
|
231
|
+
clusterName?: string
|
|
232
|
+
namespaceName?: string
|
|
233
|
+
sentinelName?: string
|
|
234
|
+
appName?: string
|
|
235
|
+
ruleId?: number
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
export type GetParamFlowRuleRes = {
|
|
239
|
+
rule?: ParamFlowRule
|
|
240
|
+
}
|
|
241
|
+
|
|
196
242
|
export type UpdateParamFlowRuleReq = {
|
|
197
243
|
workspaceId?: string
|
|
198
244
|
clusterName?: string
|
|
199
245
|
namespaceName?: string
|
|
200
246
|
sentinelName?: string
|
|
247
|
+
appName?: string
|
|
201
248
|
ruleId?: number
|
|
202
249
|
paramFlowRule?: ParamFlowRule
|
|
203
250
|
}
|
|
@@ -207,6 +254,7 @@ export type DeleteParamFlowRuleReq = {
|
|
|
207
254
|
clusterName?: string
|
|
208
255
|
namespaceName?: string
|
|
209
256
|
sentinelName?: string
|
|
257
|
+
appName?: string
|
|
210
258
|
ruleId?: number
|
|
211
259
|
}
|
|
212
260
|
|
|
@@ -227,6 +275,7 @@ export type CreateSystemRuleReq = {
|
|
|
227
275
|
clusterName?: string
|
|
228
276
|
namespaceName?: string
|
|
229
277
|
sentinelName?: string
|
|
278
|
+
appName?: string
|
|
230
279
|
systemRule?: SystemRule
|
|
231
280
|
}
|
|
232
281
|
|
|
@@ -235,9 +284,9 @@ export type ListSystemRuleReq = {
|
|
|
235
284
|
clusterName?: string
|
|
236
285
|
namespaceName?: string
|
|
237
286
|
sentinelName?: string
|
|
287
|
+
appName?: string
|
|
238
288
|
page?: number
|
|
239
289
|
pageSize?: number
|
|
240
|
-
app?: string
|
|
241
290
|
}
|
|
242
291
|
|
|
243
292
|
export type ListSystemRuleRes = {
|
|
@@ -245,11 +294,25 @@ export type ListSystemRuleRes = {
|
|
|
245
294
|
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
246
295
|
}
|
|
247
296
|
|
|
297
|
+
export type GetSystemRuleReq = {
|
|
298
|
+
workspaceId?: string
|
|
299
|
+
clusterName?: string
|
|
300
|
+
namespaceName?: string
|
|
301
|
+
sentinelName?: string
|
|
302
|
+
appName?: string
|
|
303
|
+
ruleId?: number
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
export type GetSystemRuleRes = {
|
|
307
|
+
rule?: SystemRule
|
|
308
|
+
}
|
|
309
|
+
|
|
248
310
|
export type UpdateSystemRuleReq = {
|
|
249
311
|
workspaceId?: string
|
|
250
312
|
clusterName?: string
|
|
251
313
|
namespaceName?: string
|
|
252
314
|
sentinelName?: string
|
|
315
|
+
appName?: string
|
|
253
316
|
ruleId?: number
|
|
254
317
|
systemRule?: SystemRule
|
|
255
318
|
}
|
|
@@ -259,6 +322,7 @@ export type DeleteSystemRuleReq = {
|
|
|
259
322
|
clusterName?: string
|
|
260
323
|
namespaceName?: string
|
|
261
324
|
sentinelName?: string
|
|
325
|
+
appName?: string
|
|
262
326
|
ruleId?: number
|
|
263
327
|
}
|
|
264
328
|
|
|
@@ -277,6 +341,7 @@ export type CreateAuthorityRuleReq = {
|
|
|
277
341
|
clusterName?: string
|
|
278
342
|
namespaceName?: string
|
|
279
343
|
sentinelName?: string
|
|
344
|
+
appName?: string
|
|
280
345
|
authorityRule?: AuthorityRule
|
|
281
346
|
}
|
|
282
347
|
|
|
@@ -285,9 +350,9 @@ export type ListAuthorityRuleReq = {
|
|
|
285
350
|
clusterName?: string
|
|
286
351
|
namespaceName?: string
|
|
287
352
|
sentinelName?: string
|
|
353
|
+
appName?: string
|
|
288
354
|
page?: number
|
|
289
355
|
pageSize?: number
|
|
290
|
-
app?: string
|
|
291
356
|
}
|
|
292
357
|
|
|
293
358
|
export type ListAuthorityRuleRes = {
|
|
@@ -295,11 +360,25 @@ export type ListAuthorityRuleRes = {
|
|
|
295
360
|
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
296
361
|
}
|
|
297
362
|
|
|
363
|
+
export type GetAuthorityRuleReq = {
|
|
364
|
+
workspaceId?: string
|
|
365
|
+
clusterName?: string
|
|
366
|
+
namespaceName?: string
|
|
367
|
+
sentinelName?: string
|
|
368
|
+
appName?: string
|
|
369
|
+
ruleId?: number
|
|
370
|
+
}
|
|
371
|
+
|
|
372
|
+
export type GetAuthorityRuleRes = {
|
|
373
|
+
rule?: AuthorityRule
|
|
374
|
+
}
|
|
375
|
+
|
|
298
376
|
export type UpdateAuthorityRuleReq = {
|
|
299
377
|
workspaceId?: string
|
|
300
378
|
clusterName?: string
|
|
301
379
|
namespaceName?: string
|
|
302
380
|
sentinelName?: string
|
|
381
|
+
appName?: string
|
|
303
382
|
ruleId?: number
|
|
304
383
|
authorityRule?: AuthorityRule
|
|
305
384
|
}
|
|
@@ -309,5 +388,6 @@ export type DeleteAuthorityRuleReq = {
|
|
|
309
388
|
clusterName?: string
|
|
310
389
|
namespaceName?: string
|
|
311
390
|
sentinelName?: string
|
|
391
|
+
appName?: string
|
|
312
392
|
ruleId?: number
|
|
313
393
|
}
|
|
@@ -237,65 +237,80 @@ export class Sentinel {
|
|
|
237
237
|
static GetAppInstance(req: SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceRes> {
|
|
238
238
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceReq, SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinel/${req["sentinelName"]}/appinstance?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName"])}`, {...initReq, method: "GET"})
|
|
239
239
|
}
|
|
240
|
+
static CreateFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.CreateFlowRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
241
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/flow-rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
242
|
+
}
|
|
240
243
|
static ListFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.ListFlowRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.ListFlowRuleRes> {
|
|
241
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListFlowRuleReq, SkoalaApiHostedV1alpha1Sentinel.ListFlowRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
244
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListFlowRuleReq, SkoalaApiHostedV1alpha1Sentinel.ListFlowRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/flow-rules?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName", "appName"])}`, {...initReq, method: "GET"})
|
|
242
245
|
}
|
|
243
|
-
static
|
|
244
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.
|
|
246
|
+
static GetFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.GetFlowRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetFlowRuleRes> {
|
|
247
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetFlowRuleReq, SkoalaApiHostedV1alpha1Sentinel.GetFlowRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/flow-rules/${req["ruleId"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName", "appName", "ruleId"])}`, {...initReq, method: "GET"})
|
|
245
248
|
}
|
|
246
249
|
static UpdateFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.UpdateFlowRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
247
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
250
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/flow-rules/${req["ruleId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
248
251
|
}
|
|
249
252
|
static DeleteFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.DeleteFlowRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
250
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
253
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/flow-rules/${req["ruleId"]}`, {...initReq, method: "DELETE"})
|
|
251
254
|
}
|
|
252
255
|
static CreateDegradeRule(req: SkoalaApiHostedV1alpha1Sentinel.CreateDegradeRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
253
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateDegradeRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
256
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateDegradeRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/degrade-rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
254
257
|
}
|
|
255
258
|
static ListDegradeRule(req: SkoalaApiHostedV1alpha1Sentinel.ListDegradeRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.ListDegradeRuleRes> {
|
|
256
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListDegradeRuleReq, SkoalaApiHostedV1alpha1Sentinel.ListDegradeRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
259
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListDegradeRuleReq, SkoalaApiHostedV1alpha1Sentinel.ListDegradeRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/degrade-rules?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName", "appName"])}`, {...initReq, method: "GET"})
|
|
260
|
+
}
|
|
261
|
+
static GetDegradeRule(req: SkoalaApiHostedV1alpha1Sentinel.GetDegradeRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetDegradeRuleRes> {
|
|
262
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetDegradeRuleReq, SkoalaApiHostedV1alpha1Sentinel.GetDegradeRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/degrade-rules/${req["ruleId"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName", "appName", "ruleId"])}`, {...initReq, method: "GET"})
|
|
257
263
|
}
|
|
258
264
|
static UpdateDegradeRule(req: SkoalaApiHostedV1alpha1Sentinel.UpdateDegradeRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
259
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateDegradeRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
265
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateDegradeRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/degrade-rules/${req["ruleId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
260
266
|
}
|
|
261
267
|
static DeleteDegradeRule(req: SkoalaApiHostedV1alpha1Sentinel.DeleteDegradeRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
262
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteDegradeRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
268
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteDegradeRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/degrade-rules/${req["ruleId"]}`, {...initReq, method: "DELETE"})
|
|
263
269
|
}
|
|
264
270
|
static CreateParamFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.CreateParamFlowRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
265
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateParamFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
271
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateParamFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/param-flow-rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
266
272
|
}
|
|
267
273
|
static ListParamFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.ListParamFlowRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.ListParamFlowRuleRes> {
|
|
268
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListParamFlowRuleReq, SkoalaApiHostedV1alpha1Sentinel.ListParamFlowRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
274
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListParamFlowRuleReq, SkoalaApiHostedV1alpha1Sentinel.ListParamFlowRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/param-flow-rules?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName", "appName"])}`, {...initReq, method: "GET"})
|
|
275
|
+
}
|
|
276
|
+
static GetParamFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.GetParamFlowRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetParamFlowRuleRes> {
|
|
277
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetParamFlowRuleReq, SkoalaApiHostedV1alpha1Sentinel.GetParamFlowRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/param-flow-rules/${req["ruleId"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName", "appName", "ruleId"])}`, {...initReq, method: "GET"})
|
|
269
278
|
}
|
|
270
279
|
static UpdateParamFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.UpdateParamFlowRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
271
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateParamFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
280
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateParamFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/param-flow-rules/${req["ruleId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
272
281
|
}
|
|
273
282
|
static DeleteParamFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.DeleteParamFlowRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
274
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteParamFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
283
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteParamFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/param-flow-rules/${req["ruleId"]}`, {...initReq, method: "DELETE"})
|
|
275
284
|
}
|
|
276
285
|
static CreateSystemRule(req: SkoalaApiHostedV1alpha1Sentinel.CreateSystemRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
277
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateSystemRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
286
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateSystemRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/system-rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
278
287
|
}
|
|
279
288
|
static ListSystemRule(req: SkoalaApiHostedV1alpha1Sentinel.ListSystemRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.ListSystemRuleRes> {
|
|
280
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListSystemRuleReq, SkoalaApiHostedV1alpha1Sentinel.ListSystemRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
289
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListSystemRuleReq, SkoalaApiHostedV1alpha1Sentinel.ListSystemRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/system-rules?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName", "appName"])}`, {...initReq, method: "GET"})
|
|
290
|
+
}
|
|
291
|
+
static GetSystemRule(req: SkoalaApiHostedV1alpha1Sentinel.GetSystemRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetSystemRuleRes> {
|
|
292
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetSystemRuleReq, SkoalaApiHostedV1alpha1Sentinel.GetSystemRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/system-rules/${req["ruleId"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName", "appName", "ruleId"])}`, {...initReq, method: "GET"})
|
|
281
293
|
}
|
|
282
294
|
static UpdateSystemRule(req: SkoalaApiHostedV1alpha1Sentinel.UpdateSystemRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
283
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateSystemRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
295
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateSystemRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/system-rules/${req["ruleId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
284
296
|
}
|
|
285
297
|
static DeleteSystemRule(req: SkoalaApiHostedV1alpha1Sentinel.DeleteSystemRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
286
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteSystemRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
298
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteSystemRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/system-rules/${req["ruleId"]}`, {...initReq, method: "DELETE"})
|
|
287
299
|
}
|
|
288
300
|
static CreateAuthorityRule(req: SkoalaApiHostedV1alpha1Sentinel.CreateAuthorityRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
289
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateAuthorityRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
301
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateAuthorityRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/authority-rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
290
302
|
}
|
|
291
303
|
static ListAuthorityRule(req: SkoalaApiHostedV1alpha1Sentinel.ListAuthorityRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.ListAuthorityRuleRes> {
|
|
292
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListAuthorityRuleReq, SkoalaApiHostedV1alpha1Sentinel.ListAuthorityRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
304
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListAuthorityRuleReq, SkoalaApiHostedV1alpha1Sentinel.ListAuthorityRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/authority-rules?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName", "appName"])}`, {...initReq, method: "GET"})
|
|
305
|
+
}
|
|
306
|
+
static GetAuthorityRule(req: SkoalaApiHostedV1alpha1Sentinel.GetAuthorityRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetAuthorityRuleRes> {
|
|
307
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetAuthorityRuleReq, SkoalaApiHostedV1alpha1Sentinel.GetAuthorityRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/authority-rules/${req["ruleId"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName", "appName", "ruleId"])}`, {...initReq, method: "GET"})
|
|
293
308
|
}
|
|
294
309
|
static UpdateAuthorityRule(req: SkoalaApiHostedV1alpha1Sentinel.UpdateAuthorityRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
295
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateAuthorityRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
310
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateAuthorityRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/authority-rules/${req["ruleId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
296
311
|
}
|
|
297
312
|
static DeleteAuthorityRule(req: SkoalaApiHostedV1alpha1Sentinel.DeleteAuthorityRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
298
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteAuthorityRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
313
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteAuthorityRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/authority-rules/${req["ruleId"]}`, {...initReq, method: "DELETE"})
|
|
299
314
|
}
|
|
300
315
|
}
|
|
301
316
|
export class Plugin {
|