@daocloud-proto/skoala 0.47.1 → 0.48.0-2
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.
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
8
|
import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
|
|
9
|
+
import * as SkoalaApiGeneralV1alpha1Service from "../../general/v1alpha1/service.pb"
|
|
9
10
|
import * as SkoalaApiHostedV1alpha3Common from "./common.pb"
|
|
10
11
|
|
|
11
12
|
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
@@ -41,13 +42,6 @@ export enum GatewayStatus {
|
|
|
41
42
|
Running = "Running",
|
|
42
43
|
}
|
|
43
44
|
|
|
44
|
-
export enum CommonServiceConfigServiceType {
|
|
45
|
-
ServiceType_UNSPECIFIED = "ServiceType_UNSPECIFIED",
|
|
46
|
-
ServiceType_NODE_PORT = "ServiceType_NODE_PORT",
|
|
47
|
-
ServiceType_LOAD_BALANCER = "ServiceType_LOAD_BALANCER",
|
|
48
|
-
ServiceType_CLUSTER_IP = "ServiceType_CLUSTER_IP",
|
|
49
|
-
}
|
|
50
|
-
|
|
51
45
|
export type CreateAIGatewayReq = {
|
|
52
46
|
workspaceId?: string
|
|
53
47
|
gatewayName?: string
|
|
@@ -165,13 +159,15 @@ export type CommonServiceConfigServicePort = {
|
|
|
165
159
|
}
|
|
166
160
|
|
|
167
161
|
export type CommonServiceConfig = {
|
|
168
|
-
serviceType?:
|
|
162
|
+
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
169
163
|
servicePorts?: CommonServiceConfigServicePort[]
|
|
170
164
|
annotations?: {[key: string]: string}
|
|
171
165
|
loadBalancerIp?: string
|
|
172
166
|
loadBalancerClass?: string
|
|
173
167
|
loadBalancerSourceRanges?: string[]
|
|
174
|
-
externalTrafficPolicy?:
|
|
168
|
+
externalTrafficPolicy?: SkoalaApiGeneralV1alpha1Common.ExternalTrafficPolicy
|
|
169
|
+
lbType?: SkoalaApiGeneralV1alpha1Common.LBType
|
|
170
|
+
addrPoolName?: string
|
|
175
171
|
}
|
|
176
172
|
|
|
177
173
|
export type EnvoyLog = {
|
|
@@ -268,4 +264,15 @@ export type GetAIGatewayReq = {
|
|
|
268
264
|
|
|
269
265
|
export type GetAIGatewayRes = {
|
|
270
266
|
gateway?: AIGateway
|
|
267
|
+
}
|
|
268
|
+
|
|
269
|
+
export type GetAIGatewayConfigReq = {
|
|
270
|
+
workspaceId?: string
|
|
271
|
+
clusterName?: string
|
|
272
|
+
namespaceName?: string
|
|
273
|
+
gatewayName?: string
|
|
274
|
+
}
|
|
275
|
+
|
|
276
|
+
export type GetAIGatewayConfigRes = {
|
|
277
|
+
config?: AIGatewayConfig
|
|
271
278
|
}
|
|
@@ -24,6 +24,9 @@ export class AIGateway {
|
|
|
24
24
|
static GetAIGateway(req: SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayRes> {
|
|
25
25
|
return fm.fetchReq<SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayReq, SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayRes>(`/apis/sesame.skoala.io/v1alpha3/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/aigateways/${req["gatewayName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
26
26
|
}
|
|
27
|
+
static GetAIGatewayConfig(req: SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayConfigReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayConfigRes> {
|
|
28
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayConfigReq, SkoalaApiHostedV1alpha3Ai_gateway.GetAIGatewayConfigRes>(`/apis/sesame.skoala.io/v1alpha3/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/aigateways/${req["gatewayName"]}/config?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
29
|
+
}
|
|
27
30
|
}
|
|
28
31
|
export class Skoala {
|
|
29
32
|
static ListGatewayNamespaces(req: SkoalaApiHostedV1alpha3Skoala.ListNamespaceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha3Skoala.ListNamespaceRes> {
|