@daocloud-proto/skoala 0.6.1-93 → 0.6.1-97

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,6 +6,20 @@
6
6
 
7
7
  import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
8
8
  import * as SkoalaApiGeneralV1alpha1Service from "../../general/v1alpha1/service.pb"
9
+
10
+ export enum GetGovernResMode {
11
+ Unknown = "Unknown",
12
+ Sentinel = "Sentinel",
13
+ Mesh = "Mesh",
14
+ }
15
+
16
+ export enum GetSentinelResPhase {
17
+ Waiting = "Waiting",
18
+ Running = "Running",
19
+ Deleting = "Deleting",
20
+ NotReady = "NotReady",
21
+ }
22
+
9
23
  export type Plugin = {
10
24
  name?: string
11
25
  enabled?: boolean
@@ -42,7 +56,7 @@ export type GetSentinelPluginRes = {
42
56
  image?: string
43
57
  replicas?: number
44
58
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
45
- type?: string
59
+ type?: SkoalaApiGeneralV1alpha1Service.ServiceType
46
60
  ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
47
61
  }
48
62
 
@@ -67,7 +81,7 @@ export type UpdateSentinelPluginReq = {
67
81
  image?: string
68
82
  replicas?: number
69
83
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
70
- type?: string
84
+ type?: SkoalaApiGeneralV1alpha1Service.ServiceType
71
85
  ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
72
86
  }
73
87
 
@@ -84,7 +98,7 @@ export type GetGovernReq = {
84
98
  }
85
99
 
86
100
  export type GetGovernRes = {
87
- mode?: string
101
+ mode?: GetGovernResMode
88
102
  sentinel?: GetSentinelRes
89
103
  mesh?: GetMeshRes
90
104
  }
@@ -94,7 +108,7 @@ export type GetSentinelRes = {
94
108
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
95
109
  port?: number
96
110
  nodePort?: number
97
- phase?: string
111
+ phase?: GetSentinelResPhase
98
112
  visitAddress?: string
99
113
  }
100
114
 
@@ -5,6 +5,40 @@
5
5
  */
6
6
 
7
7
  import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
+
9
+ export enum Grade {
10
+ FLOW_GRADE_THREAD = "FLOW_GRADE_THREAD",
11
+ FLOW_GRADE_QPS = "FLOW_GRADE_QPS",
12
+ }
13
+
14
+ export enum DegradeRuleGrade {
15
+ SLOW_REQUEST_RATIO = "SLOW_REQUEST_RATIO",
16
+ ERROR_RATIO = "ERROR_RATIO",
17
+ ERROR_COUNT = "ERROR_COUNT",
18
+ }
19
+
20
+ export enum AuthorityRuleStrategy {
21
+ AUTHORITY_WHITE = "AUTHORITY_WHITE",
22
+ AUTHORITY_BLACK = "AUTHORITY_BLACK",
23
+ }
24
+
25
+ export type GetAppInstanceReq = {
26
+ workspaceId?: string
27
+ clusterName?: string
28
+ namespaceName?: string
29
+ sentinelName?: string
30
+ serviceName?: string
31
+ instanceIp?: string
32
+ }
33
+
34
+ export type GetAppInstanceRes = {
35
+ name?: string
36
+ healthy?: boolean
37
+ port?: number
38
+ version?: string
39
+ lastHeartbeat?: string
40
+ }
41
+
8
42
  export type FlowRule = {
9
43
  id?: number
10
44
  app?: string
@@ -22,6 +56,14 @@ export type FlowRule = {
22
56
  clusterMode?: boolean
23
57
  }
24
58
 
59
+ export type CreateFlowRuleReq = {
60
+ workspaceId?: string
61
+ clusterName?: string
62
+ namespaceName?: string
63
+ sentinelName?: string
64
+ flowRule?: FlowRule
65
+ }
66
+
25
67
  export type ListFlowRuleReq = {
26
68
  workspaceId?: string
27
69
  clusterName?: string
@@ -37,44 +79,235 @@ export type ListFlowRuleRes = {
37
79
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
38
80
  }
39
81
 
40
- export type CreateFlowRuleReq = {
82
+ export type UpdateFlowRuleReq = {
41
83
  workspaceId?: string
42
84
  clusterName?: string
43
85
  namespaceName?: string
44
86
  sentinelName?: string
87
+ ruleId?: number
45
88
  flowRule?: FlowRule
46
89
  }
47
90
 
48
- export type UpdateFlowRuleReq = {
91
+ export type DeleteFlowRuleReq = {
49
92
  workspaceId?: string
50
93
  clusterName?: string
51
94
  namespaceName?: string
52
95
  sentinelName?: string
53
- flowRuleId?: number
54
- flowRule?: FlowRule
96
+ ruleId?: number
55
97
  }
56
98
 
57
- export type DeleteFlowRuleReq = {
99
+ export type DegradeRule = {
100
+ id?: number
101
+ app?: string
102
+ ip?: string
103
+ port?: number
104
+ resource?: string
105
+ limitApp?: string
106
+ count?: number
107
+ timeWindow?: number
108
+ grade?: DegradeRuleGrade
109
+ minRequestAmount?: number
110
+ slowRatioThreshold?: number
111
+ statIntervalMs?: number
112
+ }
113
+
114
+ export type CreateDegradeRuleReq = {
58
115
  workspaceId?: string
59
116
  clusterName?: string
60
117
  namespaceName?: string
61
118
  sentinelName?: string
62
- flowRuleId?: number
119
+ degradeRule?: DegradeRule
63
120
  }
64
121
 
65
- export type GetAppInstanceReq = {
122
+ export type ListDegradeRuleReq = {
66
123
  workspaceId?: string
67
124
  clusterName?: string
68
125
  namespaceName?: string
69
126
  sentinelName?: string
70
- serviceName?: string
71
- instanceIp?: string
127
+ page?: number
128
+ pageSize?: number
129
+ app?: string
72
130
  }
73
131
 
74
- export type GetAppInstanceRes = {
75
- name?: string
76
- healthy?: boolean
132
+ export type ListDegradeRuleRes = {
133
+ items?: DegradeRule[]
134
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
135
+ }
136
+
137
+ export type UpdateDegradeRuleReq = {
138
+ workspaceId?: string
139
+ clusterName?: string
140
+ namespaceName?: string
141
+ sentinelName?: string
142
+ ruleId?: number
143
+ degradeRule?: DegradeRule
144
+ }
145
+
146
+ export type DeleteDegradeRuleReq = {
147
+ workspaceId?: string
148
+ clusterName?: string
149
+ namespaceName?: string
150
+ sentinelName?: string
151
+ ruleId?: number
152
+ }
153
+
154
+ export type ParamFlowRuleParamFlowItemList = {
155
+ classType?: string
156
+ object?: string
157
+ count?: number
158
+ }
159
+
160
+ export type ParamFlowRule = {
161
+ id?: number
162
+ app?: string
163
+ ip?: string
77
164
  port?: number
78
- version?: string
79
- lastHeartbeat?: string
165
+ resource?: string
166
+ grade?: Grade
167
+ paramIdx?: number
168
+ count?: number
169
+ durationInSec?: number
170
+ paramFlowItemList?: ParamFlowRuleParamFlowItemList[]
171
+ }
172
+
173
+ export type CreateParamFlowRuleReq = {
174
+ workspaceId?: string
175
+ clusterName?: string
176
+ namespaceName?: string
177
+ sentinelName?: string
178
+ paramFlowRule?: ParamFlowRule
179
+ }
180
+
181
+ export type ListParamFlowRuleReq = {
182
+ workspaceId?: string
183
+ clusterName?: string
184
+ namespaceName?: string
185
+ sentinelName?: string
186
+ page?: number
187
+ pageSize?: number
188
+ app?: string
189
+ }
190
+
191
+ export type ListParamFlowRuleRes = {
192
+ items?: ParamFlowRule[]
193
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
194
+ }
195
+
196
+ export type UpdateParamFlowRuleReq = {
197
+ workspaceId?: string
198
+ clusterName?: string
199
+ namespaceName?: string
200
+ sentinelName?: string
201
+ ruleId?: number
202
+ paramFlowRule?: ParamFlowRule
203
+ }
204
+
205
+ export type DeleteParamFlowRuleReq = {
206
+ workspaceId?: string
207
+ clusterName?: string
208
+ namespaceName?: string
209
+ sentinelName?: string
210
+ ruleId?: number
211
+ }
212
+
213
+ export type SystemRule = {
214
+ id?: number
215
+ app?: string
216
+ ip?: string
217
+ port?: number
218
+ highestSystemLoad?: number
219
+ avgRt?: number
220
+ maxThread?: number
221
+ qps?: number
222
+ highestCpuUsage?: number
223
+ }
224
+
225
+ export type CreateSystemRuleReq = {
226
+ workspaceId?: string
227
+ clusterName?: string
228
+ namespaceName?: string
229
+ sentinelName?: string
230
+ systemRule?: SystemRule
231
+ }
232
+
233
+ export type ListSystemRuleReq = {
234
+ workspaceId?: string
235
+ clusterName?: string
236
+ namespaceName?: string
237
+ sentinelName?: string
238
+ page?: number
239
+ pageSize?: number
240
+ app?: string
241
+ }
242
+
243
+ export type ListSystemRuleRes = {
244
+ items?: SystemRule[]
245
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
246
+ }
247
+
248
+ export type UpdateSystemRuleReq = {
249
+ workspaceId?: string
250
+ clusterName?: string
251
+ namespaceName?: string
252
+ sentinelName?: string
253
+ ruleId?: number
254
+ systemRule?: SystemRule
255
+ }
256
+
257
+ export type DeleteSystemRuleReq = {
258
+ workspaceId?: string
259
+ clusterName?: string
260
+ namespaceName?: string
261
+ sentinelName?: string
262
+ ruleId?: number
263
+ }
264
+
265
+ export type AuthorityRule = {
266
+ id?: number
267
+ app?: string
268
+ ip?: string
269
+ port?: number
270
+ strategy?: AuthorityRuleStrategy
271
+ resource?: string
272
+ limitApp?: string
273
+ }
274
+
275
+ export type CreateAuthorityRuleReq = {
276
+ workspaceId?: string
277
+ clusterName?: string
278
+ namespaceName?: string
279
+ sentinelName?: string
280
+ authorityRule?: AuthorityRule
281
+ }
282
+
283
+ export type ListAuthorityRuleReq = {
284
+ workspaceId?: string
285
+ clusterName?: string
286
+ namespaceName?: string
287
+ sentinelName?: string
288
+ page?: number
289
+ pageSize?: number
290
+ app?: string
291
+ }
292
+
293
+ export type ListAuthorityRuleRes = {
294
+ items?: AuthorityRule[]
295
+ pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
296
+ }
297
+
298
+ export type UpdateAuthorityRuleReq = {
299
+ workspaceId?: string
300
+ clusterName?: string
301
+ namespaceName?: string
302
+ sentinelName?: string
303
+ ruleId?: number
304
+ authorityRule?: AuthorityRule
305
+ }
306
+
307
+ export type DeleteAuthorityRuleReq = {
308
+ workspaceId?: string
309
+ clusterName?: string
310
+ namespaceName?: string
311
+ sentinelName?: string
312
+ ruleId?: number
80
313
  }
@@ -234,6 +234,9 @@ export class Nacos {
234
234
  }
235
235
  }
236
236
  export class Sentinel {
237
+ static GetAppInstance(req: SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceRes> {
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
+ }
237
240
  static ListFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.ListFlowRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.ListFlowRuleRes> {
238
241
  return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListFlowRuleReq, SkoalaApiHostedV1alpha1Sentinel.ListFlowRuleRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinel/${req["sentinelName"]}/flowrules?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName"])}`, {...initReq, method: "GET"})
239
242
  }
@@ -241,13 +244,58 @@ export class Sentinel {
241
244
  return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinel/${req["sentinelName"]}/flowrules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
242
245
  }
243
246
  static UpdateFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.UpdateFlowRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
244
- return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinel/${req["sentinelName"]}/flowrules/${req["flowRuleId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
247
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinel/${req["sentinelName"]}/flowrules/${req["ruleId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
245
248
  }
246
249
  static DeleteFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.DeleteFlowRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
247
- return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinel/${req["sentinelName"]}/flowrules/${req["flowRuleId"]}`, {...initReq, method: "DELETE"})
250
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinel/${req["sentinelName"]}/flowrules/${req["ruleId"]}`, {...initReq, method: "DELETE"})
248
251
  }
249
- static GetAppInstance(req: SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceRes> {
250
- 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"})
252
+ 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"]}/sentinel/${req["sentinelName"]}/degrade-rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
254
+ }
255
+ 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"]}/sentinel/${req["sentinelName"]}/degrade-rules?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName"])}`, {...initReq, method: "GET"})
257
+ }
258
+ 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"]}/sentinel/${req["sentinelName"]}/degrade-rules/${req["ruleId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
260
+ }
261
+ 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"]}/sentinel/${req["sentinelName"]}/degrade-rules/${req["ruleId"]}`, {...initReq, method: "DELETE"})
263
+ }
264
+ 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"]}/sentinel/${req["sentinelName"]}/param-flow-rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
266
+ }
267
+ 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"]}/sentinel/${req["sentinelName"]}/param-flow-rules?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName"])}`, {...initReq, method: "GET"})
269
+ }
270
+ 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"]}/sentinel/${req["sentinelName"]}/param-flow-rules/${req["ruleId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
272
+ }
273
+ 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"]}/sentinel/${req["sentinelName"]}/param-flow-rules/${req["ruleId"]}`, {...initReq, method: "DELETE"})
275
+ }
276
+ 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"]}/sentinel/${req["sentinelName"]}/system-rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
278
+ }
279
+ 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"]}/sentinel/${req["sentinelName"]}/system-rules?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName"])}`, {...initReq, method: "GET"})
281
+ }
282
+ 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"]}/sentinel/${req["sentinelName"]}/system-rules/${req["ruleId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
284
+ }
285
+ 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"]}/sentinel/${req["sentinelName"]}/system-rules/${req["ruleId"]}`, {...initReq, method: "DELETE"})
287
+ }
288
+ 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"]}/sentinel/${req["sentinelName"]}/authority-rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
290
+ }
291
+ 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"]}/sentinel/${req["sentinelName"]}/authority-rules?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName"])}`, {...initReq, method: "GET"})
293
+ }
294
+ 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"]}/sentinel/${req["sentinelName"]}/authority-rules/${req["ruleId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
296
+ }
297
+ 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"]}/sentinel/${req["sentinelName"]}/authority-rules/${req["ruleId"]}`, {...initReq, method: "DELETE"})
251
299
  }
252
300
  }
253
301
  export class Plugin {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.6.1-93",
3
+ "version": "0.6.1-97",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {