@daocloud-proto/skoala 0.27.2-14 → 0.27.2-18

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.
@@ -379,7 +379,7 @@ export type OperationFailReason = {
379
379
  reason?: string
380
380
  }
381
381
 
382
- export type GetAPIByParamsReq = {
382
+ export type QueryAPIByParamsReq = {
383
383
  workspaceId?: string
384
384
  clusterName?: string
385
385
  namespaceName?: string
@@ -387,6 +387,6 @@ export type GetAPIByParamsReq = {
387
387
  serviceName?: string
388
388
  }
389
389
 
390
- export type GetAPIByParamsRes = {
390
+ export type QueryAPIByParamsRes = {
391
391
  apiNames?: string[]
392
392
  }
@@ -609,12 +609,12 @@ export type IPPolicy = {
609
609
  denyRules?: IPPolicyRule[]
610
610
  }
611
611
 
612
- export type GetGatewayByParamsReq = {
612
+ export type QueryGatewayByParamsReq = {
613
613
  workspaceId?: string
614
614
  clusterName?: string
615
- tiedNamespace?: string
615
+ rootNamespace?: string
616
616
  }
617
617
 
618
- export type GetGatewayByParamsRes = {
618
+ export type QueryGatewayByParamsRes = {
619
619
  gatewayName?: string
620
620
  }
@@ -662,8 +662,8 @@ export class Gateway {
662
662
  static GetWorkingComponents(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes> {
663
663
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/components?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
664
664
  }
665
- static GetGatewayByParams(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayByParamsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayByParamsRes> {
666
- return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayByParamsReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayByParamsRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/gateways?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
665
+ static QueryGatewayByParams(req: SkoalaApiHostedV1alpha1Gateway.QueryGatewayByParamsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.QueryGatewayByParamsRes> {
666
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.QueryGatewayByParamsReq, SkoalaApiHostedV1alpha1Gateway.QueryGatewayByParamsRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/gateways/query?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
667
667
  }
668
668
  static Diagnostic(req: SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
669
669
  return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/diagnostic`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
@@ -813,8 +813,8 @@ export class GatewayAPI {
813
813
  static ImportAPI(req: SkoalaApiHostedV1alpha1Api.ImportAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.ImportAPIRes> {
814
814
  return fm.fetchReq<SkoalaApiHostedV1alpha1Api.ImportAPIReq, SkoalaApiHostedV1alpha1Api.ImportAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/import`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
815
815
  }
816
- static GetAPIByParams(req: SkoalaApiHostedV1alpha1Api.GetAPIByParamsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.GetAPIByParamsRes> {
817
- return fm.fetchReq<SkoalaApiHostedV1alpha1Api.GetAPIByParamsReq, SkoalaApiHostedV1alpha1Api.GetAPIByParamsRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/search?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
816
+ static QueryAPIByParams(req: SkoalaApiHostedV1alpha1Api.QueryAPIByParamsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.QueryAPIByParamsRes> {
817
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Api.QueryAPIByParamsReq, SkoalaApiHostedV1alpha1Api.QueryAPIByParamsRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/query?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
818
818
  }
819
819
  }
820
820
  export class GatewayService {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.27.2-14",
3
+ "version": "0.27.2-18",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {