@daocloud-proto/skoala 0.27.1 → 0.27.2-14

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.
@@ -160,6 +160,14 @@ export type Image = {
160
160
  repository?: string
161
161
  tag?: string
162
162
  pullPolicy?: string
163
+ multiVersion?: {[key: string]: MultiVersionImage}
164
+ }
165
+
166
+ export type MultiVersionImage = {
167
+ registry?: string
168
+ repository?: string
169
+ tag?: string
170
+ pullPolicy?: string
163
171
  }
164
172
 
165
173
  export type Component = {
@@ -377,4 +377,16 @@ export type APIBatchOperationRes = {
377
377
  export type OperationFailReason = {
378
378
  apiName?: string
379
379
  reason?: string
380
+ }
381
+
382
+ export type GetAPIByParamsReq = {
383
+ workspaceId?: string
384
+ clusterName?: string
385
+ namespaceName?: string
386
+ gatewayName?: string
387
+ serviceName?: string
388
+ }
389
+
390
+ export type GetAPIByParamsRes = {
391
+ apiNames?: string[]
380
392
  }
@@ -607,4 +607,14 @@ export type IPPolicy = {
607
607
  level?: IPPolicyLevel
608
608
  allowRules?: IPPolicyRule[]
609
609
  denyRules?: IPPolicyRule[]
610
+ }
611
+
612
+ export type GetGatewayByParamsReq = {
613
+ workspaceId?: string
614
+ clusterName?: string
615
+ tiedNamespace?: string
616
+ }
617
+
618
+ export type GetGatewayByParamsRes = {
619
+ gatewayName?: string
610
620
  }
@@ -44,6 +44,12 @@ export enum APIStatusEnum {
44
44
  unknown = "unknown",
45
45
  }
46
46
 
47
+ export enum MatchType {
48
+ EXACT = "EXACT",
49
+ PREFIX = "PREFIX",
50
+ REGEX = "REGEX",
51
+ }
52
+
47
53
  export enum StatusCode {
48
54
  Empty = "Empty",
49
55
  Continue = "Continue",
@@ -145,6 +151,7 @@ export type APIInfo = {
145
151
  apiGroup?: string
146
152
  fqdn?: string
147
153
  method?: HttpMethod[]
154
+ matchType?: MatchType
148
155
  requestPath?: string
149
156
  routeType?: RouteType
150
157
  enabled?: boolean
@@ -67,8 +67,10 @@ export type Registry = {
67
67
  createdAt?: string
68
68
  }
69
69
 
70
- export type RegistryOnlyID = {
70
+ export type PartOfRegistry = {
71
71
  registryId?: string
72
+ type?: RegistryType
73
+ name?: string
72
74
  }
73
75
 
74
76
  export type ListRegistryReq = {
@@ -12,7 +12,7 @@ export type Service = {
12
12
  namespace?: NamespaceWithGroup
13
13
  healthInstanceCount?: number
14
14
  instanceCount?: number
15
- registry?: SkoalaApiIntegratedV1alpha1Registry.Registry
15
+ registry?: SkoalaApiIntegratedV1alpha1Registry.PartOfRegistry
16
16
  detail?: {[key: string]: string}
17
17
  insight?: SkoalaApiGeneralV1alpha1Insight.InsightBrief
18
18
  }
@@ -662,6 +662,9 @@ 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"})
667
+ }
665
668
  static Diagnostic(req: SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
666
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)})
667
670
  }
@@ -810,6 +813,9 @@ export class GatewayAPI {
810
813
  static ImportAPI(req: SkoalaApiHostedV1alpha1Api.ImportAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.ImportAPIRes> {
811
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)})
812
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"})
818
+ }
813
819
  }
814
820
  export class GatewayService {
815
821
  static CreateService(req: SkoalaApiHostedV1alpha1Gateway_service.CreateExternalServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.27.1",
3
+ "version": "0.27.2-14",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {