@daocloud-proto/skoala 0.5.1-129 → 0.5.1-145

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.
@@ -45,6 +45,14 @@ export enum PodPhase {
45
45
  PodPhaseFailed = "PodPhaseFailed",
46
46
  }
47
47
 
48
+ export enum TimeUnit {
49
+ TIME_UNIT_UNSPECIFIED = "TIME_UNIT_UNSPECIFIED",
50
+ Day = "Day",
51
+ Hour = "Hour",
52
+ Minute = "Minute",
53
+ Second = "Second",
54
+ }
55
+
48
56
  export type Cluster = {
49
57
  id?: string
50
58
  name?: string
@@ -93,4 +93,13 @@ export type ListMeshReq = {
93
93
  export type ListMeshRes = {
94
94
  meshes?: SkoalaApiGeneralV1alpha1Common.Mesh[]
95
95
  pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
96
+ }
97
+
98
+ export type ListClaimReq = {
99
+ workspaceId?: string
100
+ clusterName?: string
101
+ }
102
+
103
+ export type ListClaimRes = {
104
+ items?: string[]
96
105
  }
@@ -156,6 +156,7 @@ export type UpdateAPIReq = {
156
156
  clusterName?: string
157
157
  namespaceName?: string
158
158
  apiConfig?: APIConfig
159
+ advancedApiConfig?: AdvancedAPIConfig
159
160
  }
160
161
 
161
162
  export type UpdateAPIStatusReq = {
@@ -0,0 +1,54 @@
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 SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
8
+ export type GatewayRLSConfig = {
9
+ unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
10
+ requestsPerUnit?: number
11
+ }
12
+
13
+ export type CreateGatewayRLSReq = {
14
+ workspaceId?: string
15
+ clusterName?: string
16
+ namespaceName?: string
17
+ gatewayName?: string
18
+ config?: GatewayRLSConfig
19
+ }
20
+
21
+ export type CreateGatewayRLSRes = {
22
+ }
23
+
24
+ export type GetGatewayRLSReq = {
25
+ workspaceId?: string
26
+ clusterName?: string
27
+ namespaceName?: string
28
+ gatewayName?: string
29
+ }
30
+
31
+ export type GetGatewayRLSRes = {
32
+ config?: GatewayRLSConfig
33
+ }
34
+
35
+ export type DeleteGatewayRLSReq = {
36
+ workspaceId?: string
37
+ clusterName?: string
38
+ namespaceName?: string
39
+ gatewayName?: string
40
+ }
41
+
42
+ export type DeleteGatewayRLSRes = {
43
+ }
44
+
45
+ export type UpdateGatewayRLSReq = {
46
+ workspaceId?: string
47
+ clusterName?: string
48
+ namespaceName?: string
49
+ gatewayName?: string
50
+ config?: GatewayRLSConfig
51
+ }
52
+
53
+ export type UpdateGatewayRLSRes = {
54
+ }
@@ -127,6 +127,9 @@ export type ServiceSourceInfo = {
127
127
  registrationType?: string
128
128
  nacosNamespaceId?: string
129
129
  nacosGroupName?: string
130
+ meshId?: string
131
+ meshName?: string
132
+ meshNamespaceName?: string
130
133
  }
131
134
 
132
135
 
@@ -134,7 +137,15 @@ type BaseExternalServiceConf = {
134
137
  }
135
138
 
136
139
  export type ExternalServiceConf = BaseExternalServiceConf
137
- & OneOf<{ kubernetesService: KubernetesService; registryService: RegistryService; externalService: ExternalService }>
140
+ & OneOf<{ kubernetesService: KubernetesService; registryService: RegistryService; externalService: ExternalService; meshService: MeshService }>
141
+
142
+ export type MeshService = {
143
+ meshId?: string
144
+ meshName?: string
145
+ serviceName?: string
146
+ namespaceName?: string
147
+ address?: Address
148
+ }
138
149
 
139
150
  export type KubernetesService = {
140
151
  clusterId?: string
@@ -20,7 +20,6 @@ export enum HttpMethod {
20
20
  PUT = "PUT",
21
21
  PATCH = "PATCH",
22
22
  OPTIONS = "OPTIONS",
23
- ALL = "ALL",
24
23
  }
25
24
 
26
25
  export enum Protocol {
@@ -28,12 +27,6 @@ export enum Protocol {
28
27
  HTTPS = "HTTPS",
29
28
  }
30
29
 
31
- export enum TimeUnit {
32
- SECOND = "SECOND",
33
- MINUTE = "MINUTE",
34
- HOUR = "HOUR",
35
- }
36
-
37
30
  export enum RouteType {
38
31
  CLUSTRE_SERVER = "CLUSTRE_SERVER",
39
32
  DIRECT = "DIRECT",
@@ -53,8 +53,9 @@ export type Nacos = {
53
53
  database?: NacosDatabase
54
54
  resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
55
55
  condition?: NacosCondition[]
56
- createAt?: string
56
+ volume?: Volume
57
57
  plugins?: Plugins
58
+ createAt?: string
58
59
  }
59
60
 
60
61
  export type NacosDatabase = {
@@ -145,6 +146,13 @@ export type NacosConfig = {
145
146
  nodePort?: string
146
147
  databaseEnabled?: boolean
147
148
  databaseParam?: DatabaseParam
149
+ volume?: Volume
150
+ }
151
+
152
+ export type Volume = {
153
+ enabled?: boolean
154
+ requests?: SkoalaApiGeneralV1alpha1Resource.ResourceList
155
+ storageClass?: string
148
156
  }
149
157
 
150
158
  export type DatabaseParam = {
@@ -151,7 +151,7 @@ export type LocalRateLimitPolicy = {
151
151
  request?: number
152
152
  responseHeadersToAdd?: SkoalaApiHostedV1alpha1Http.Header[]
153
153
  responseStatusCode?: number
154
- unit?: SkoalaApiHostedV1alpha1Http.TimeUnit
154
+ unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
155
155
  }
156
156
 
157
157
  export type Tls = {
@@ -10,6 +10,7 @@ import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.p
10
10
  import * as SkoalaApiGeneralV1alpha1Version from "../../general/v1alpha1/version.pb"
11
11
  import * as SkoalaApiHostedV1alpha1Api from "../../hosted/v1alpha1/api.pb"
12
12
  import * as SkoalaApiHostedV1alpha1Apilog from "../../hosted/v1alpha1/apilog.pb"
13
+ import * as SkoalaApiHostedV1alpha1Extension from "../../hosted/v1alpha1/extension.pb"
13
14
  import * as SkoalaApiHostedV1alpha1Gateway from "../../hosted/v1alpha1/gateway.pb"
14
15
  import * as SkoalaApiHostedV1alpha1Gatewayservice from "../../hosted/v1alpha1/gatewayservice.pb"
15
16
  import * as SkoalaApiHostedV1alpha1Nacos from "../../hosted/v1alpha1/nacos.pb"
@@ -47,6 +48,9 @@ export class Skoala {
47
48
  static GetWorkspace(req: SkoalaApiGeneralV1alpha1Skoala.GetWorkspaceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.GetWorkspaceRes> {
48
49
  return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.GetWorkspaceReq, SkoalaApiGeneralV1alpha1Skoala.GetWorkspaceRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
49
50
  }
51
+ static ListClusterPersistentVolumeClaim(req: SkoalaApiGeneralV1alpha1Skoala.ListClaimReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListClaimRes> {
52
+ return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListClaimReq, SkoalaApiGeneralV1alpha1Skoala.ListClaimRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/persistent_volume_claims?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
53
+ }
50
54
  }
51
55
  export class Registry {
52
56
  static List(req: SkoalaApiIntegratedV1alpha1Registry.ListRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.ListRegistryRes> {
@@ -274,7 +278,22 @@ export class Gateway {
274
278
  static UpdateAPIPolicy(req: SkoalaApiHostedV1alpha1Api.AdvancedAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.AdvancedAPIRes> {
275
279
  return fm.fetchReq<SkoalaApiHostedV1alpha1Api.AdvancedAPIReq, SkoalaApiHostedV1alpha1Api.AdvancedAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}/policies`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
276
280
  }
281
+ static UpdateAPIStatus(req: SkoalaApiHostedV1alpha1Api.UpdateAPIStatusReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.UpdateAPIStatusRes> {
282
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Api.UpdateAPIStatusReq, SkoalaApiHostedV1alpha1Api.UpdateAPIStatusRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}/status/${req["enabled"]}`, {...initReq, method: "PUT"})
283
+ }
277
284
  static ListGatewayLog(req: SkoalaApiHostedV1alpha1Apilog.SearchLogReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Apilog.SearchLogRes> {
278
285
  return fm.fetchReq<SkoalaApiHostedV1alpha1Apilog.SearchLogReq, SkoalaApiHostedV1alpha1Apilog.SearchLogRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/requestlogs?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
279
286
  }
287
+ static CreateGatewayRLS(req: SkoalaApiHostedV1alpha1Extension.CreateGatewayRLSReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Extension.CreateGatewayRLSRes> {
288
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.CreateGatewayRLSReq, SkoalaApiHostedV1alpha1Extension.CreateGatewayRLSRes>(`/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)})
289
+ }
290
+ static GetGatewayRLS(req: SkoalaApiHostedV1alpha1Extension.GetGatewayRLSReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Extension.GetGatewayRLSRes> {
291
+ 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"})
292
+ }
293
+ static DeleteGatewayRLS(req: SkoalaApiHostedV1alpha1Extension.DeleteGatewayRLSReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Extension.DeleteGatewayRLSRes> {
294
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.DeleteGatewayRLSReq, SkoalaApiHostedV1alpha1Extension.DeleteGatewayRLSRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/extensions/rls`, {...initReq, method: "DELETE"})
295
+ }
296
+ static UpdateGatewayRLS(req: SkoalaApiHostedV1alpha1Extension.UpdateGatewayRLSReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Extension.UpdateGatewayRLSRes> {
297
+ return fm.fetchReq<SkoalaApiHostedV1alpha1Extension.UpdateGatewayRLSReq, SkoalaApiHostedV1alpha1Extension.UpdateGatewayRLSRes>(`/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)})
298
+ }
280
299
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@daocloud-proto/skoala",
3
- "version": "0.5.1-129",
3
+ "version": "0.5.1-145",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {