@daocloud-proto/skoala 0.7.1 → 0.7.2-12
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 +18 -0
- package/api/hosted/v1alpha1/{extension.pb.ts → gateway_plugin.pb.ts} +36 -5
- package/api/hosted/v1alpha1/{gatewaysecret.pb.ts → gateway_secret.pb.ts} +0 -0
- package/api/hosted/v1alpha1/{gatewayservice.pb.ts → gateway_service.pb.ts} +0 -0
- package/api/hosted/v1alpha1/nacos.pb.ts +16 -8
- package/api/hosted/v1alpha1/plugins.pb.ts +2 -1
- package/api/hosted/v1alpha1/sentinel.pb.ts +112 -10
- package/api/skoala/v1alpha1/skoala.pb.ts +87 -60
- package/gogoproto/gogo.pb.ts +1 -0
- package/graph/v1alpha1/graph.pb.ts +111 -0
- package/insight/v1alpha1/alert.pb.ts +4 -7
- package/insight/v1alpha1/notify.pb.ts +11 -4
- package/log/v1alpha1/log.pb.ts +17 -0
- package/package.json +1 -1
- package/resource/v1alpha1/cluster.pb.ts +17 -4
- package/resource/v1alpha1/job.pb.ts +10 -8
- package/resource/v1alpha1/node.pb.ts +14 -2
- package/resource/v1alpha1/pod.pb.ts +3 -2
- package/resource/v1alpha1/service.pb.ts +2 -0
- package/resource/v1alpha1/type.pb.ts +17 -0
- package/resource/v1alpha1/workload.pb.ts +2 -1
- package/tracing/v1alpha1/model.pb.ts +86 -0
- package/tracing/v1alpha1/query.pb.ts +48 -0
- package/tracing/v1alpha1/tracing.pb.ts +2 -0
|
@@ -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"
|
|
15
14
|
import * as SkoalaApiHostedV1alpha1Gateway from "../../hosted/v1alpha1/gateway.pb"
|
|
16
|
-
import * as
|
|
17
|
-
import * as
|
|
15
|
+
import * as SkoalaApiHostedV1alpha1Gateway_plugin from "../../hosted/v1alpha1/gateway_plugin.pb"
|
|
16
|
+
import * as SkoalaApiHostedV1alpha1Gateway_secret from "../../hosted/v1alpha1/gateway_secret.pb"
|
|
17
|
+
import * as SkoalaApiHostedV1alpha1Gateway_service from "../../hosted/v1alpha1/gateway_service.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"
|
|
@@ -220,6 +220,9 @@ export class Nacos {
|
|
|
220
220
|
static DeleteConfig(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
221
221
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs/${req["dataId"]}`, {...initReq, method: "DELETE"})
|
|
222
222
|
}
|
|
223
|
+
static DeleteConfigBatch(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigBatchReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
224
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigBatchReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs`, {...initReq, method: "DELETE"})
|
|
225
|
+
}
|
|
223
226
|
static ListNode(req: SkoalaApiHostedV1alpha1Nacos.ListNodeReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNodeRes> {
|
|
224
227
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNodeReq, SkoalaApiHostedV1alpha1Nacos.ListNodeRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/nodes?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName"])}`, {...initReq, method: "GET"})
|
|
225
228
|
}
|
|
@@ -237,65 +240,83 @@ export class Sentinel {
|
|
|
237
240
|
static GetAppInstance(req: SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetAppInstanceRes> {
|
|
238
241
|
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
242
|
}
|
|
240
|
-
static
|
|
241
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.
|
|
243
|
+
static DeleteAppInstance(req: SkoalaApiHostedV1alpha1Sentinel.DeleteAppInstanceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
244
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteAppInstanceReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinel/${req["sentinelName"]}/appinstance`, {...initReq, method: "DELETE"})
|
|
242
245
|
}
|
|
243
246
|
static CreateFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.CreateFlowRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
244
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/
|
|
247
|
+
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)})
|
|
248
|
+
}
|
|
249
|
+
static ListFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.ListFlowRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.ListFlowRuleRes> {
|
|
250
|
+
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"})
|
|
251
|
+
}
|
|
252
|
+
static GetFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.GetFlowRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetFlowRuleRes> {
|
|
253
|
+
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
254
|
}
|
|
246
255
|
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"]}/
|
|
256
|
+
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
257
|
}
|
|
249
258
|
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"]}/
|
|
259
|
+
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
260
|
}
|
|
252
261
|
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"]}/
|
|
262
|
+
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
263
|
}
|
|
255
264
|
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"]}/
|
|
265
|
+
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"})
|
|
266
|
+
}
|
|
267
|
+
static GetDegradeRule(req: SkoalaApiHostedV1alpha1Sentinel.GetDegradeRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetDegradeRuleRes> {
|
|
268
|
+
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
269
|
}
|
|
258
270
|
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"]}/
|
|
271
|
+
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
272
|
}
|
|
261
273
|
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"]}/
|
|
274
|
+
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
275
|
}
|
|
264
276
|
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"]}/
|
|
277
|
+
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
278
|
}
|
|
267
279
|
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"]}/
|
|
280
|
+
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"})
|
|
281
|
+
}
|
|
282
|
+
static GetParamFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.GetParamFlowRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetParamFlowRuleRes> {
|
|
283
|
+
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
284
|
}
|
|
270
285
|
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"]}/
|
|
286
|
+
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
287
|
}
|
|
273
288
|
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"]}/
|
|
289
|
+
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
290
|
}
|
|
276
291
|
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"]}/
|
|
292
|
+
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
293
|
}
|
|
279
294
|
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"]}/
|
|
295
|
+
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"})
|
|
296
|
+
}
|
|
297
|
+
static GetSystemRule(req: SkoalaApiHostedV1alpha1Sentinel.GetSystemRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetSystemRuleRes> {
|
|
298
|
+
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
299
|
}
|
|
282
300
|
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"]}/
|
|
301
|
+
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
302
|
}
|
|
285
303
|
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"]}/
|
|
304
|
+
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
305
|
}
|
|
288
306
|
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"]}/
|
|
307
|
+
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
308
|
}
|
|
291
309
|
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"]}/
|
|
310
|
+
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"})
|
|
311
|
+
}
|
|
312
|
+
static GetAuthorityRule(req: SkoalaApiHostedV1alpha1Sentinel.GetAuthorityRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetAuthorityRuleRes> {
|
|
313
|
+
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
314
|
}
|
|
294
315
|
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"]}/
|
|
316
|
+
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
317
|
}
|
|
297
318
|
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"]}/
|
|
319
|
+
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
320
|
}
|
|
300
321
|
}
|
|
301
322
|
export class Plugin {
|
|
@@ -358,29 +379,29 @@ export class Gateway {
|
|
|
358
379
|
static QueryGatewayPodMetric(req: SkoalaApiHostedV1alpha1Gateway.QueryGatewayPodMetricReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.QueryGatewayPodMetricRes> {
|
|
359
380
|
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"})
|
|
360
381
|
}
|
|
361
|
-
static GetGatewayNamespace(req:
|
|
362
|
-
return fm.fetchReq<
|
|
382
|
+
static GetGatewayNamespace(req: SkoalaApiHostedV1alpha1Gateway_service.GetGatewayNamespaceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_service.GetGatewayNamespaceRes> {
|
|
383
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.GetGatewayNamespaceReq, SkoalaApiHostedV1alpha1Gateway_service.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"})
|
|
363
384
|
}
|
|
364
|
-
static CreateService(req:
|
|
365
|
-
return fm.fetchReq<
|
|
385
|
+
static CreateService(req: SkoalaApiHostedV1alpha1Gateway_service.CreateExternalServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
386
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.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)})
|
|
366
387
|
}
|
|
367
|
-
static ListService(req:
|
|
368
|
-
return fm.fetchReq<
|
|
388
|
+
static ListService(req: SkoalaApiHostedV1alpha1Gateway_service.ListGatewayServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_service.ListGatewayServiceRes> {
|
|
389
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.ListGatewayServiceReq, SkoalaApiHostedV1alpha1Gateway_service.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"})
|
|
369
390
|
}
|
|
370
|
-
static GetService(req:
|
|
371
|
-
return fm.fetchReq<
|
|
391
|
+
static GetService(req: SkoalaApiHostedV1alpha1Gateway_service.GetGatewayServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_service.GetGatewayServiceRes> {
|
|
392
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.GetGatewayServiceReq, SkoalaApiHostedV1alpha1Gateway_service.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"})
|
|
372
393
|
}
|
|
373
|
-
static UpdateService(req:
|
|
374
|
-
return fm.fetchReq<
|
|
394
|
+
static UpdateService(req: SkoalaApiHostedV1alpha1Gateway_service.UpdateGatewayServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
395
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.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)})
|
|
375
396
|
}
|
|
376
|
-
static UpdateServicePolicy(req:
|
|
377
|
-
return fm.fetchReq<
|
|
397
|
+
static UpdateServicePolicy(req: SkoalaApiHostedV1alpha1Gateway_service.UpdateGatewayServicePolicyReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
398
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.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)})
|
|
378
399
|
}
|
|
379
|
-
static ListServiceSecret(req:
|
|
380
|
-
return fm.fetchReq<
|
|
400
|
+
static ListServiceSecret(req: SkoalaApiHostedV1alpha1Gateway_service.ListServiceSecretReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_service.ListServiceSecretRes> {
|
|
401
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.ListServiceSecretReq, SkoalaApiHostedV1alpha1Gateway_service.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"})
|
|
381
402
|
}
|
|
382
|
-
static DeleteService(req:
|
|
383
|
-
return fm.fetchReq<
|
|
403
|
+
static DeleteService(req: SkoalaApiHostedV1alpha1Gateway_service.DeleteGatewayServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
404
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_service.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"})
|
|
384
405
|
}
|
|
385
406
|
static CreateVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
386
407
|
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)})
|
|
@@ -427,34 +448,40 @@ export class Gateway {
|
|
|
427
448
|
static GatewayLogExport(req: SkoalaApiHostedV1alpha1Apilog.SearchLogReq, entityNotifier?: fm.NotifyStreamEntityArrival<GoogleApiHttpbody.HttpBody>, initReq?: fm.InitReq): Promise<void> {
|
|
428
449
|
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"})
|
|
429
450
|
}
|
|
430
|
-
static CreateSecret(req:
|
|
431
|
-
return fm.fetchReq<
|
|
451
|
+
static CreateSecret(req: SkoalaApiHostedV1alpha1Gateway_secret.CreateSecretReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_secret.CreateSecretRes> {
|
|
452
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_secret.CreateSecretReq, SkoalaApiHostedV1alpha1Gateway_secret.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)})
|
|
453
|
+
}
|
|
454
|
+
static ListSecret(req: SkoalaApiHostedV1alpha1Gateway_secret.ListSecretReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_secret.ListSecretRes> {
|
|
455
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_secret.ListSecretReq, SkoalaApiHostedV1alpha1Gateway_secret.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"})
|
|
456
|
+
}
|
|
457
|
+
static SwitchGatewayRLS(req: SkoalaApiHostedV1alpha1Gateway_plugin.SwitchGatewayRLSReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
458
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.SwitchGatewayRLSReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
432
459
|
}
|
|
433
|
-
static
|
|
434
|
-
return fm.fetchReq<
|
|
460
|
+
static GetGatewayRLS(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRes> {
|
|
461
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSReq, SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
435
462
|
}
|
|
436
|
-
static
|
|
437
|
-
return fm.fetchReq<
|
|
463
|
+
static SetGatewayRLSConfig(req: SkoalaApiHostedV1alpha1Gateway_plugin.SetGatewayRLSConfigReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
464
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.SetGatewayRLSConfigReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/config`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
438
465
|
}
|
|
439
|
-
static
|
|
440
|
-
return fm.fetchReq<
|
|
466
|
+
static GetGatewayRLSConfig(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSConfigReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSConfigRes> {
|
|
467
|
+
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"})
|
|
441
468
|
}
|
|
442
|
-
static
|
|
443
|
-
return fm.fetchReq<
|
|
469
|
+
static SetGatewayRLSRule(req: SkoalaApiHostedV1alpha1Gateway_plugin.SetGatewayRLSRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
470
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.SetGatewayRLSRuleReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/rule`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
444
471
|
}
|
|
445
|
-
static
|
|
446
|
-
return fm.fetchReq<
|
|
472
|
+
static GetGatewayRLSRule(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleRes> {
|
|
473
|
+
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"})
|
|
447
474
|
}
|
|
448
|
-
static CreateGatewayAuthz(req:
|
|
449
|
-
return fm.fetchReq<
|
|
475
|
+
static CreateGatewayAuthz(req: SkoalaApiHostedV1alpha1Gateway_plugin.CreateGatewayAuthzReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
476
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.CreateGatewayAuthzReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/authz`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
450
477
|
}
|
|
451
|
-
static GetGatewayAuthz(req:
|
|
452
|
-
return fm.fetchReq<
|
|
478
|
+
static GetGatewayAuthz(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzRes> {
|
|
479
|
+
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"})
|
|
453
480
|
}
|
|
454
|
-
static DeleteGatewayAuthz(req:
|
|
455
|
-
return fm.fetchReq<
|
|
481
|
+
static DeleteGatewayAuthz(req: SkoalaApiHostedV1alpha1Gateway_plugin.DeleteGatewayAuthzReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
482
|
+
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"})
|
|
456
483
|
}
|
|
457
|
-
static UpdateGatewayAuthz(req:
|
|
458
|
-
return fm.fetchReq<
|
|
484
|
+
static UpdateGatewayAuthz(req: SkoalaApiHostedV1alpha1Gateway_plugin.UpdateGatewayAuthzReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
485
|
+
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)})
|
|
459
486
|
}
|
|
460
487
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export default {}
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
import * as InsightIoApiMetricV1alpha1Metric from "../../metric/v1alpha1/metric.pb"
|
|
8
|
+
|
|
9
|
+
export enum NodeType {
|
|
10
|
+
NODE_TYPE_UNSPECIFIED = "NODE_TYPE_UNSPECIFIED",
|
|
11
|
+
CLUSTER = "CLUSTER",
|
|
12
|
+
NAMESPACE = "NAMESPACE",
|
|
13
|
+
SERVICE = "SERVICE",
|
|
14
|
+
WORKLOAD = "WORKLOAD",
|
|
15
|
+
INSTANCE = "INSTANCE",
|
|
16
|
+
NODE = "NODE",
|
|
17
|
+
CUSTOM = "CUSTOM",
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export enum Layer {
|
|
21
|
+
LAYER_UNSPECIFIED = "LAYER_UNSPECIFIED",
|
|
22
|
+
KUBERNETES = "KUBERNETES",
|
|
23
|
+
MESH = "MESH",
|
|
24
|
+
OS_LINUX = "OS_LINUX",
|
|
25
|
+
VM = "VM",
|
|
26
|
+
INFRA = "INFRA",
|
|
27
|
+
GENERAL = "GENERAL",
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
export enum GraphType {
|
|
31
|
+
GRAPH_UNSPECIFIED = "GRAPH_UNSPECIFIED",
|
|
32
|
+
CLUSTER_SCOPE = "CLUSTER_SCOPE",
|
|
33
|
+
NAMESPACE_SCOPE = "NAMESPACE_SCOPE",
|
|
34
|
+
SERVICE_SCOPE = "SERVICE_SCOPE",
|
|
35
|
+
WORKLOAD_SCOPE = "WORKLOAD_SCOPE",
|
|
36
|
+
INSTANCE_SCOPE = "INSTANCE_SCOPE",
|
|
37
|
+
MIXED = "MIXED",
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type Status = {
|
|
41
|
+
name?: string
|
|
42
|
+
value?: number
|
|
43
|
+
properties?: {[key: string]: string}
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
export type NodeMetadata = {
|
|
47
|
+
cluster?: string
|
|
48
|
+
namespace?: string
|
|
49
|
+
service?: string
|
|
50
|
+
name?: string
|
|
51
|
+
layer?: Layer
|
|
52
|
+
properties?: {[key: string]: string}
|
|
53
|
+
clusterName?: string
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export type NodePosition = {
|
|
57
|
+
x?: number
|
|
58
|
+
y?: number
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type Node = {
|
|
62
|
+
id?: string
|
|
63
|
+
parent?: string
|
|
64
|
+
type?: NodeType
|
|
65
|
+
metadata?: NodeMetadata
|
|
66
|
+
position?: NodePosition
|
|
67
|
+
statuses?: Status[]
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
export type Edge = {
|
|
71
|
+
id?: string
|
|
72
|
+
source?: string
|
|
73
|
+
target?: string
|
|
74
|
+
statuses?: Status[]
|
|
75
|
+
properties?: {[key: string]: string}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type Graph = {
|
|
79
|
+
nodes?: Node[]
|
|
80
|
+
edges?: Edge[]
|
|
81
|
+
layer?: Layer
|
|
82
|
+
graphType?: GraphType
|
|
83
|
+
}
|
|
84
|
+
|
|
85
|
+
export type BaseGraphQuery = {
|
|
86
|
+
clusters?: string[]
|
|
87
|
+
namespaces?: string[]
|
|
88
|
+
services?: string[]
|
|
89
|
+
layer?: Layer
|
|
90
|
+
start?: string
|
|
91
|
+
end?: string
|
|
92
|
+
extensionFilters?: string
|
|
93
|
+
graphType?: GraphType
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type BaseMetricsQuery = {
|
|
97
|
+
cluster?: string
|
|
98
|
+
namespace?: string
|
|
99
|
+
service?: string
|
|
100
|
+
extensionFilters?: string
|
|
101
|
+
endTime?: string
|
|
102
|
+
lookback?: string
|
|
103
|
+
step?: string
|
|
104
|
+
ratePer?: string
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
export type NodeMetricResponse = {
|
|
108
|
+
reqRateMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
109
|
+
errorsRateMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
110
|
+
repLatencyMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
111
|
+
}
|
|
@@ -17,6 +17,7 @@ export enum TargetType {
|
|
|
17
17
|
TARGET_TYPE_UNSPECIFIED = "TARGET_TYPE_UNSPECIFIED",
|
|
18
18
|
GLOBAL = "GLOBAL",
|
|
19
19
|
CLUSTER = "CLUSTER",
|
|
20
|
+
NAMESPACE = "NAMESPACE",
|
|
20
21
|
NODE = "NODE",
|
|
21
22
|
DEPLOYMENT = "DEPLOYMENT",
|
|
22
23
|
STATEFULSET = "STATEFULSET",
|
|
@@ -47,6 +48,8 @@ export enum AlertStatus {
|
|
|
47
48
|
export type ListRulesRequest = {
|
|
48
49
|
builtin?: boolean
|
|
49
50
|
name?: string
|
|
51
|
+
clusterName?: string
|
|
52
|
+
namespace?: string
|
|
50
53
|
severity?: Severity
|
|
51
54
|
status?: RuleStatus
|
|
52
55
|
page?: number
|
|
@@ -134,9 +137,6 @@ export type CreateRuleRequest = {
|
|
|
134
137
|
export type UpdateRuleRequest = {
|
|
135
138
|
id?: string
|
|
136
139
|
description?: string
|
|
137
|
-
clusterName?: string
|
|
138
|
-
namespace?: string
|
|
139
|
-
targetNames?: string[]
|
|
140
140
|
expr?: string
|
|
141
141
|
thresholdSymbol?: string
|
|
142
142
|
thresholdNum?: string
|
|
@@ -219,10 +219,6 @@ export type CountAlert = {
|
|
|
219
219
|
count?: {[key: string]: string}
|
|
220
220
|
}
|
|
221
221
|
|
|
222
|
-
export type ResolveAlertRequest = {
|
|
223
|
-
alertId?: string[]
|
|
224
|
-
}
|
|
225
|
-
|
|
226
222
|
export type AMHookRequest = {
|
|
227
223
|
version?: string
|
|
228
224
|
groupKey?: string
|
|
@@ -233,6 +229,7 @@ export type AMHookRequest = {
|
|
|
233
229
|
commonAnnotations?: {[key: string]: string}
|
|
234
230
|
externalURL?: string
|
|
235
231
|
alerts?: AmAlert[]
|
|
232
|
+
truncatedAlerts?: string
|
|
236
233
|
}
|
|
237
234
|
|
|
238
235
|
export type AmAlert = {
|
|
@@ -25,7 +25,6 @@ export enum ReceiverType {
|
|
|
25
25
|
|
|
26
26
|
|
|
27
27
|
type BaseReceiver = {
|
|
28
|
-
id?: string
|
|
29
28
|
name?: string
|
|
30
29
|
type?: ReceiverType
|
|
31
30
|
createAt?: string
|
|
@@ -33,7 +32,7 @@ type BaseReceiver = {
|
|
|
33
32
|
}
|
|
34
33
|
|
|
35
34
|
export type Receiver = BaseReceiver
|
|
36
|
-
& OneOf<{ webhook: WebhookConfig; wecom: WecomConfig; dingtalk: DingtalkConfig }>
|
|
35
|
+
& OneOf<{ webhook: WebhookConfig; email: EmailConfig; wecom: WecomConfig; dingtalk: DingtalkConfig }>
|
|
37
36
|
|
|
38
37
|
export type WebhookConfig = {
|
|
39
38
|
url?: string
|
|
@@ -48,6 +47,10 @@ export type DingtalkConfig = {
|
|
|
48
47
|
webhook?: string
|
|
49
48
|
}
|
|
50
49
|
|
|
50
|
+
export type EmailConfig = {
|
|
51
|
+
to?: string[]
|
|
52
|
+
}
|
|
53
|
+
|
|
51
54
|
export type ListReceiversRequest = {
|
|
52
55
|
type?: ReceiverType
|
|
53
56
|
page?: number
|
|
@@ -55,8 +58,12 @@ export type ListReceiversRequest = {
|
|
|
55
58
|
sorts?: string[]
|
|
56
59
|
}
|
|
57
60
|
|
|
58
|
-
export type
|
|
59
|
-
|
|
61
|
+
export type GetReceiversRequest = {
|
|
62
|
+
name?: string
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
export type DeleteReceiversRequest = {
|
|
66
|
+
name?: string
|
|
60
67
|
}
|
|
61
68
|
|
|
62
69
|
export type ReceiverDataResponse = {
|
package/log/v1alpha1/log.pb.ts
CHANGED
|
@@ -14,6 +14,13 @@ type OneOf<T> =
|
|
|
14
14
|
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
15
15
|
: never)
|
|
16
16
|
: never);
|
|
17
|
+
|
|
18
|
+
export enum DownloadFileType {
|
|
19
|
+
TEXT = "TEXT",
|
|
20
|
+
CSV = "CSV",
|
|
21
|
+
JSON = "JSON",
|
|
22
|
+
}
|
|
23
|
+
|
|
17
24
|
export type SearchLogRequest = {
|
|
18
25
|
index?: string
|
|
19
26
|
query?: string
|
|
@@ -117,6 +124,16 @@ export type LogHistogramResult = {
|
|
|
117
124
|
count?: string
|
|
118
125
|
}
|
|
119
126
|
|
|
127
|
+
export type DownloadLogRequest = {
|
|
128
|
+
type?: DownloadFileType
|
|
129
|
+
queryLog?: QueryLogRequest
|
|
130
|
+
queryLogConext?: QueryLogContextRequest
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
export type DownloadLogResponse = {
|
|
134
|
+
url?: string
|
|
135
|
+
}
|
|
136
|
+
|
|
120
137
|
export type ListLogFilePathsResponse = {
|
|
121
138
|
paths?: string[]
|
|
122
139
|
}
|
package/package.json
CHANGED
|
@@ -14,6 +14,7 @@ export enum ClusterPhase {
|
|
|
14
14
|
RUNNING = "RUNNING",
|
|
15
15
|
UPDATING = "UPDATING",
|
|
16
16
|
DELETING = "DELETING",
|
|
17
|
+
FAILED = "FAILED",
|
|
17
18
|
}
|
|
18
19
|
|
|
19
20
|
export enum ClusterProvider {
|
|
@@ -34,6 +35,11 @@ export enum InsightAgentStatus {
|
|
|
34
35
|
UNHEALTHY = "UNHEALTHY",
|
|
35
36
|
}
|
|
36
37
|
|
|
38
|
+
export enum Role {
|
|
39
|
+
NOT_ADMIN = "NOT_ADMIN",
|
|
40
|
+
ADMIN = "ADMIN",
|
|
41
|
+
}
|
|
42
|
+
|
|
37
43
|
export type ListClustersResponse = {
|
|
38
44
|
items?: Cluster[]
|
|
39
45
|
}
|
|
@@ -42,12 +48,13 @@ export type Cluster = {
|
|
|
42
48
|
name?: string
|
|
43
49
|
kubeSystemId?: string
|
|
44
50
|
phase?: ClusterPhase
|
|
51
|
+
role?: Role
|
|
45
52
|
}
|
|
46
53
|
|
|
47
54
|
export type ListClusterSummaryRequest = {
|
|
48
55
|
name?: string
|
|
49
56
|
version?: string
|
|
50
|
-
|
|
57
|
+
phase?: ClusterPhase
|
|
51
58
|
page?: number
|
|
52
59
|
pageSize?: number
|
|
53
60
|
}
|
|
@@ -66,8 +73,7 @@ export type ClusterSummary = {
|
|
|
66
73
|
kubeSystemId?: string
|
|
67
74
|
phase?: ClusterPhase
|
|
68
75
|
nodeNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
69
|
-
insightAgentStatus?:
|
|
70
|
-
insightAgentCreateTime?: string
|
|
76
|
+
insightAgentStatus?: insightAgentState
|
|
71
77
|
}
|
|
72
78
|
|
|
73
79
|
export type ClusterDetail = {
|
|
@@ -82,7 +88,13 @@ export type ClusterDetail = {
|
|
|
82
88
|
statefulsetNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
83
89
|
daemonsetNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
84
90
|
podNumSummary?: InsightIoApiResourceV1alpha1Type.ResourceNumSummary
|
|
85
|
-
insightAgentStatus?:
|
|
91
|
+
insightAgentStatus?: insightAgentState
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
export type insightAgentState = {
|
|
95
|
+
status?: InsightAgentStatus
|
|
96
|
+
version?: string
|
|
97
|
+
createTime?: string
|
|
86
98
|
}
|
|
87
99
|
|
|
88
100
|
export type ListNamespacesRequest = {
|
|
@@ -95,4 +107,5 @@ export type ListNamespacesResponse = {
|
|
|
95
107
|
|
|
96
108
|
export type Namespace = {
|
|
97
109
|
name?: string
|
|
110
|
+
role?: Role
|
|
98
111
|
}
|