@daocloud-proto/skoala 0.7.1 → 0.7.2-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.
@@ -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 SkoalaApiHostedV1alpha1Gatewaysecret from "../../hosted/v1alpha1/gatewaysecret.pb"
17
- import * as SkoalaApiHostedV1alpha1Gatewayservice from "../../hosted/v1alpha1/gatewayservice.pb"
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,80 @@ 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
  }
243
+ 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"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/flow-rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
245
+ }
240
246
  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"]}/sentinel/${req["sentinelName"]}/flowrules?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName"])}`, {...initReq, method: "GET"})
247
+ 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
248
  }
243
- 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"]}/sentinel/${req["sentinelName"]}/flowrules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
249
+ static GetFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.GetFlowRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetFlowRuleRes> {
250
+ 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
251
  }
246
252
  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"]}/sentinel/${req["sentinelName"]}/flowrules/${req["ruleId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
253
+ 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
254
  }
249
255
  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"]}/sentinel/${req["sentinelName"]}/flowrules/${req["ruleId"]}`, {...initReq, method: "DELETE"})
256
+ 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
257
  }
252
258
  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)})
259
+ 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
260
  }
255
261
  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"})
262
+ 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"})
263
+ }
264
+ static GetDegradeRule(req: SkoalaApiHostedV1alpha1Sentinel.GetDegradeRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetDegradeRuleRes> {
265
+ 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
266
  }
258
267
  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)})
268
+ 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
269
  }
261
270
  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"})
271
+ 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
272
  }
264
273
  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)})
274
+ 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
275
  }
267
276
  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"})
277
+ 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"})
278
+ }
279
+ static GetParamFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.GetParamFlowRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetParamFlowRuleRes> {
280
+ 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
281
  }
270
282
  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)})
283
+ 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
284
  }
273
285
  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"})
286
+ 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
287
  }
276
288
  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)})
289
+ 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
290
  }
279
291
  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"})
292
+ 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"})
293
+ }
294
+ static GetSystemRule(req: SkoalaApiHostedV1alpha1Sentinel.GetSystemRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetSystemRuleRes> {
295
+ 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
296
  }
282
297
  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)})
298
+ 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
299
  }
285
300
  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"})
301
+ 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
302
  }
288
303
  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)})
304
+ 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
305
  }
291
306
  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"})
307
+ 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"})
308
+ }
309
+ static GetAuthorityRule(req: SkoalaApiHostedV1alpha1Sentinel.GetAuthorityRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetAuthorityRuleRes> {
310
+ 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
311
  }
294
312
  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)})
313
+ 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
314
  }
297
315
  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"})
316
+ 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
317
  }
300
318
  }
301
319
  export class Plugin {
@@ -358,29 +376,29 @@ export class Gateway {
358
376
  static QueryGatewayPodMetric(req: SkoalaApiHostedV1alpha1Gateway.QueryGatewayPodMetricReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.QueryGatewayPodMetricRes> {
359
377
  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
378
  }
361
- static GetGatewayNamespace(req: SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayNamespaceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayNamespaceRes> {
362
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayNamespaceReq, SkoalaApiHostedV1alpha1Gatewayservice.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"})
379
+ static GetGatewayNamespace(req: SkoalaApiHostedV1alpha1Gateway_service.GetGatewayNamespaceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_service.GetGatewayNamespaceRes> {
380
+ 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
381
  }
364
- static CreateService(req: SkoalaApiHostedV1alpha1Gatewayservice.CreateExternalServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
365
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.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)})
382
+ static CreateService(req: SkoalaApiHostedV1alpha1Gateway_service.CreateExternalServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
383
+ 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
384
  }
367
- static ListService(req: SkoalaApiHostedV1alpha1Gatewayservice.ListGatewayServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewayservice.ListGatewayServiceRes> {
368
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.ListGatewayServiceReq, SkoalaApiHostedV1alpha1Gatewayservice.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"})
385
+ static ListService(req: SkoalaApiHostedV1alpha1Gateway_service.ListGatewayServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_service.ListGatewayServiceRes> {
386
+ 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
387
  }
370
- static GetService(req: SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayServiceRes> {
371
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.GetGatewayServiceReq, SkoalaApiHostedV1alpha1Gatewayservice.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"})
388
+ static GetService(req: SkoalaApiHostedV1alpha1Gateway_service.GetGatewayServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_service.GetGatewayServiceRes> {
389
+ 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
390
  }
373
- static UpdateService(req: SkoalaApiHostedV1alpha1Gatewayservice.UpdateGatewayServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
374
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.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)})
391
+ static UpdateService(req: SkoalaApiHostedV1alpha1Gateway_service.UpdateGatewayServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
392
+ 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
393
  }
376
- static UpdateServicePolicy(req: SkoalaApiHostedV1alpha1Gatewayservice.UpdateGatewayServicePolicyReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
377
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.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)})
394
+ static UpdateServicePolicy(req: SkoalaApiHostedV1alpha1Gateway_service.UpdateGatewayServicePolicyReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
395
+ 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
396
  }
379
- static ListServiceSecret(req: SkoalaApiHostedV1alpha1Gatewayservice.ListServiceSecretReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewayservice.ListServiceSecretRes> {
380
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.ListServiceSecretReq, SkoalaApiHostedV1alpha1Gatewayservice.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"})
397
+ static ListServiceSecret(req: SkoalaApiHostedV1alpha1Gateway_service.ListServiceSecretReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_service.ListServiceSecretRes> {
398
+ 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
399
  }
382
- static DeleteService(req: SkoalaApiHostedV1alpha1Gatewayservice.DeleteGatewayServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
383
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewayservice.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"})
400
+ static DeleteService(req: SkoalaApiHostedV1alpha1Gateway_service.DeleteGatewayServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
401
+ 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
402
  }
385
403
  static CreateVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
386
404
  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 +445,40 @@ export class Gateway {
427
445
  static GatewayLogExport(req: SkoalaApiHostedV1alpha1Apilog.SearchLogReq, entityNotifier?: fm.NotifyStreamEntityArrival<GoogleApiHttpbody.HttpBody>, initReq?: fm.InitReq): Promise<void> {
428
446
  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
447
  }
430
- static CreateSecret(req: SkoalaApiHostedV1alpha1Gatewaysecret.CreateSecretReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewaysecret.CreateSecretRes> {
431
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewaysecret.CreateSecretReq, SkoalaApiHostedV1alpha1Gatewaysecret.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)})
448
+ static CreateSecret(req: SkoalaApiHostedV1alpha1Gateway_secret.CreateSecretReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_secret.CreateSecretRes> {
449
+ 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)})
450
+ }
451
+ static ListSecret(req: SkoalaApiHostedV1alpha1Gateway_secret.ListSecretReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_secret.ListSecretRes> {
452
+ 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"})
453
+ }
454
+ static SwitchGatewayRLS(req: SkoalaApiHostedV1alpha1Gateway_plugin.SwitchGatewayRLSReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
455
+ 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
456
  }
433
- static ListSecret(req: SkoalaApiHostedV1alpha1Gatewaysecret.ListSecretReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewaysecret.ListSecretRes> {
434
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewaysecret.ListSecretReq, SkoalaApiHostedV1alpha1Gatewaysecret.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"})
457
+ static GetGatewayRLS(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRes> {
458
+ 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
459
  }
436
- static CreateGatewayRLS(req: SkoalaApiHostedV1alpha1Extension.CreateGatewayRLSReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
437
- return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.CreateGatewayRLSReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/extensions/rls`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
460
+ static SetGatewayRLSConfig(req: SkoalaApiHostedV1alpha1Gateway_plugin.SetGatewayRLSConfigReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
461
+ 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
462
  }
439
- static GetGatewayRLS(req: SkoalaApiHostedV1alpha1Extension.GetGatewayRLSReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Extension.GetGatewayRLSRes> {
440
- return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.GetGatewayRLSReq, SkoalaApiHostedV1alpha1Extension.GetGatewayRLSRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/extensions/rls?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
463
+ static GetGatewayRLSConfig(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSConfigReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSConfigRes> {
464
+ 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
465
  }
442
- static DeleteGatewayRLS(req: SkoalaApiHostedV1alpha1Extension.DeleteGatewayRLSReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
443
- return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.DeleteGatewayRLSReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/extensions/rls`, {...initReq, method: "DELETE"})
466
+ static SetGatewayRLSRule(req: SkoalaApiHostedV1alpha1Gateway_plugin.SetGatewayRLSRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
467
+ 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
468
  }
445
- static UpdateGatewayRLS(req: SkoalaApiHostedV1alpha1Extension.UpdateGatewayRLSReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
446
- return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.UpdateGatewayRLSReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/extensions/rls`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
469
+ static GetGatewayRLSRule(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleRes> {
470
+ 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
471
  }
448
- static CreateGatewayAuthz(req: SkoalaApiHostedV1alpha1Extension.CreateGatewayAuthzReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
449
- return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.CreateGatewayAuthzReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/extensions/authz`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
472
+ static CreateGatewayAuthz(req: SkoalaApiHostedV1alpha1Gateway_plugin.CreateGatewayAuthzReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
473
+ 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
474
  }
451
- static GetGatewayAuthz(req: SkoalaApiHostedV1alpha1Extension.GetGatewayAuthzReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Extension.GetGatewayAuthzRes> {
452
- return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.GetGatewayAuthzReq, SkoalaApiHostedV1alpha1Extension.GetGatewayAuthzRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/extensions/authz?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
475
+ static GetGatewayAuthz(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzRes> {
476
+ 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
477
  }
454
- static DeleteGatewayAuthz(req: SkoalaApiHostedV1alpha1Extension.DeleteGatewayAuthzReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
455
- return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.DeleteGatewayAuthzReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/extensions/authz`, {...initReq, method: "DELETE"})
478
+ static DeleteGatewayAuthz(req: SkoalaApiHostedV1alpha1Gateway_plugin.DeleteGatewayAuthzReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
479
+ 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
480
  }
457
- static UpdateGatewayAuthz(req: SkoalaApiHostedV1alpha1Extension.UpdateGatewayAuthzReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
458
- return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.UpdateGatewayAuthzReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/extensions/authz`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
481
+ static UpdateGatewayAuthz(req: SkoalaApiHostedV1alpha1Gateway_plugin.UpdateGatewayAuthzReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
482
+ 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
483
  }
460
484
  }
@@ -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 ReceiverId = {
59
- id?: string
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 = {
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.7.1",
3
+ "version": "0.7.2-10",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -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
- phases?: ClusterPhase[]
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?: 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?: 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
  }