@daocloud-proto/skoala 0.22.2-2 → 0.22.2-22
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.
- package/api/general/v1alpha1/common.pb.ts +17 -0
- package/api/hosted/v1alpha1/api.pb.ts +27 -1
- package/api/hosted/v1alpha1/gateway.pb.ts +13 -21
- package/api/hosted/v1alpha1/http.pb.ts +8 -1
- package/api/hosted/v1alpha1/nacos.pb.ts +21 -0
- package/api/skoala/v1alpha1/skoala.pb.ts +16 -16
- package/package.json +1 -1
- /package/api/hosted/v1alpha1/{apilog.pb.ts → api_log.pb.ts} +0 -0
- /package/api/hosted/v1alpha1/{gatewaylog.pb.ts → gateway_log.pb.ts} +0 -0
|
@@ -44,6 +44,21 @@ export enum ClusterPhase {
|
|
|
44
44
|
ClusterFailed = "ClusterFailed",
|
|
45
45
|
}
|
|
46
46
|
|
|
47
|
+
export enum ClusterProvider {
|
|
48
|
+
GENERIC = "GENERIC",
|
|
49
|
+
DAOCLOUD_KUBESPRAY = "DAOCLOUD_KUBESPRAY",
|
|
50
|
+
DAOCLOUD_CLUSTER_API = "DAOCLOUD_CLUSTER_API",
|
|
51
|
+
DAOCLOUD_DCE4 = "DAOCLOUD_DCE4",
|
|
52
|
+
REDHAT_OPENSHIFT4 = "REDHAT_OPENSHIFT4",
|
|
53
|
+
SUSE_RANCHER = "SUSE_RANCHER",
|
|
54
|
+
VMWARE_TANZU = "VMWARE_TANZU",
|
|
55
|
+
AWS_EKS = "AWS_EKS",
|
|
56
|
+
ALIYUN_ACK = "ALIYUN_ACK",
|
|
57
|
+
TENCENT_TKE = "TENCENT_TKE",
|
|
58
|
+
HUAWEI_CCE = "HUAWEI_CCE",
|
|
59
|
+
MICROSOFT_AZURE = "MICROSOFT_AZURE",
|
|
60
|
+
}
|
|
61
|
+
|
|
47
62
|
export enum ResourceKind {
|
|
48
63
|
RESOURCE_KIND_UNSPECIFIED = "RESOURCE_KIND_UNSPECIFIED",
|
|
49
64
|
Deployment = "Deployment",
|
|
@@ -107,7 +122,9 @@ export enum WorkloadState {
|
|
|
107
122
|
export type Cluster = {
|
|
108
123
|
id?: string
|
|
109
124
|
name?: string
|
|
125
|
+
clusterProvider?: ClusterProvider
|
|
110
126
|
clusterPhase?: ClusterPhase
|
|
127
|
+
version?: string
|
|
111
128
|
}
|
|
112
129
|
|
|
113
130
|
export type Mesh = {
|
|
@@ -59,6 +59,12 @@ export enum LoadBalancePolicyStrategy {
|
|
|
59
59
|
RequestHash = "RequestHash",
|
|
60
60
|
}
|
|
61
61
|
|
|
62
|
+
export enum APIBatchOperationReqOperation {
|
|
63
|
+
up = "up",
|
|
64
|
+
down = "down",
|
|
65
|
+
delete = "delete",
|
|
66
|
+
}
|
|
67
|
+
|
|
62
68
|
export type CreateAPIReq = {
|
|
63
69
|
workspaceId?: string
|
|
64
70
|
gatewayName?: string
|
|
@@ -247,7 +253,7 @@ type BaseGetAPIRes = {
|
|
|
247
253
|
matchRule?: MatchRule
|
|
248
254
|
advancedPolicy?: AdvancedAPIConfig
|
|
249
255
|
apiStatus?: SkoalaApiHostedV1alpha1Http.APIStatus
|
|
250
|
-
status?:
|
|
256
|
+
status?: SkoalaApiHostedV1alpha1Http.APIStatusEnum
|
|
251
257
|
statusDescription?: string
|
|
252
258
|
}
|
|
253
259
|
|
|
@@ -316,4 +322,24 @@ export type APIListReq = {
|
|
|
316
322
|
export type APIListRes = {
|
|
317
323
|
items?: SkoalaApiHostedV1alpha1Http.APIInfo[]
|
|
318
324
|
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
export type APIBatchOperationReq = {
|
|
328
|
+
workspaceId?: string
|
|
329
|
+
gatewayName?: string
|
|
330
|
+
clusterName?: string
|
|
331
|
+
namespaceName?: string
|
|
332
|
+
operation?: APIBatchOperationReqOperation
|
|
333
|
+
apiNames?: string[]
|
|
334
|
+
}
|
|
335
|
+
|
|
336
|
+
export type APIBatchOperationRes = {
|
|
337
|
+
result?: boolean
|
|
338
|
+
successApi?: string[]
|
|
339
|
+
failApi?: OperationFailReason[]
|
|
340
|
+
}
|
|
341
|
+
|
|
342
|
+
export type OperationFailReason = {
|
|
343
|
+
apiName?: string
|
|
344
|
+
reason?: string
|
|
319
345
|
}
|
|
@@ -19,6 +19,14 @@ type OneOf<T> =
|
|
|
19
19
|
: never)
|
|
20
20
|
: never);
|
|
21
21
|
|
|
22
|
+
export enum GatewayStatus {
|
|
23
|
+
GATEWAY_STATUS_UNSPECIFIED = "GATEWAY_STATUS_UNSPECIFIED",
|
|
24
|
+
Unknown = "Unknown",
|
|
25
|
+
Error = "Error",
|
|
26
|
+
Starting = "Starting",
|
|
27
|
+
Running = "Running",
|
|
28
|
+
}
|
|
29
|
+
|
|
22
30
|
export enum HealthStatus {
|
|
23
31
|
HEALTH_STATUS_UNSPECIFIED = "HEALTH_STATUS_UNSPECIFIED",
|
|
24
32
|
Healthy = "Healthy",
|
|
@@ -76,19 +84,6 @@ export enum IPPolicyStatus {
|
|
|
76
84
|
DenyEnabled = "DenyEnabled",
|
|
77
85
|
}
|
|
78
86
|
|
|
79
|
-
export enum GatewayConditionType {
|
|
80
|
-
TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
|
|
81
|
-
Scheduled = "Scheduled",
|
|
82
|
-
Ready = "Ready",
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
export enum GatewayConditionStatus {
|
|
86
|
-
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
87
|
-
True = "True",
|
|
88
|
-
False = "False",
|
|
89
|
-
Unknown = "Unknown",
|
|
90
|
-
}
|
|
91
|
-
|
|
92
87
|
export enum TracingConfigtagType {
|
|
93
88
|
Literal = "Literal",
|
|
94
89
|
Header = "Header",
|
|
@@ -117,8 +112,7 @@ export type Node = {
|
|
|
117
112
|
}
|
|
118
113
|
|
|
119
114
|
export type GatewayCondition = {
|
|
120
|
-
|
|
121
|
-
status?: GatewayConditionStatus
|
|
115
|
+
status?: GatewayStatus
|
|
122
116
|
message?: string
|
|
123
117
|
}
|
|
124
118
|
|
|
@@ -144,6 +138,7 @@ export type ListAllGatewayReq = {
|
|
|
144
138
|
page?: number
|
|
145
139
|
pageSize?: number
|
|
146
140
|
filter?: string
|
|
141
|
+
status?: GatewayStatus
|
|
147
142
|
}
|
|
148
143
|
|
|
149
144
|
export type ListClusterGatewayReq = {
|
|
@@ -153,6 +148,7 @@ export type ListClusterGatewayReq = {
|
|
|
153
148
|
pageSize?: number
|
|
154
149
|
namespaceNames?: string[]
|
|
155
150
|
filter?: string
|
|
151
|
+
status?: GatewayStatus
|
|
156
152
|
}
|
|
157
153
|
|
|
158
154
|
export type ListGatewayRes = {
|
|
@@ -199,11 +195,6 @@ export type ContourPortsString = {
|
|
|
199
195
|
xds?: string
|
|
200
196
|
}
|
|
201
197
|
|
|
202
|
-
export type HostIPs = {
|
|
203
|
-
http?: string
|
|
204
|
-
https?: string
|
|
205
|
-
}
|
|
206
|
-
|
|
207
198
|
export type EnvoyService = {
|
|
208
199
|
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
209
200
|
http?: Port
|
|
@@ -315,6 +306,7 @@ export type TracingConfig = {
|
|
|
315
306
|
type BaseEnvoyAdvancedConfig = {
|
|
316
307
|
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
317
308
|
numTrustedHops?: number
|
|
309
|
+
allowSidecarInject?: boolean
|
|
318
310
|
}
|
|
319
311
|
|
|
320
312
|
export type EnvoyAdvancedConfig = BaseEnvoyAdvancedConfig
|
|
@@ -351,10 +343,10 @@ export type GetGatewayStatusRes = {
|
|
|
351
343
|
|
|
352
344
|
export type DeploymentHealth = {
|
|
353
345
|
name?: string
|
|
354
|
-
status?: HealthStatus
|
|
355
346
|
availableReplicas?: number
|
|
356
347
|
replicas?: number
|
|
357
348
|
msgs?: string[]
|
|
349
|
+
status?: HealthStatus
|
|
358
350
|
}
|
|
359
351
|
|
|
360
352
|
export type ContainerHealth = {
|
|
@@ -37,6 +37,13 @@ export enum RouteType {
|
|
|
37
37
|
UNKNOW = "UNKNOW",
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
+
export enum APIStatusEnum {
|
|
41
|
+
valid = "valid",
|
|
42
|
+
invalid = "invalid",
|
|
43
|
+
orphaned = "orphaned",
|
|
44
|
+
unknown = "unknown",
|
|
45
|
+
}
|
|
46
|
+
|
|
40
47
|
export enum StatusCode {
|
|
41
48
|
Empty = "Empty",
|
|
42
49
|
Continue = "Continue",
|
|
@@ -111,7 +118,7 @@ export type HeaderRule = BaseHeaderRule
|
|
|
111
118
|
& OneOf<{ contains: string; exact: string; notContains: string; notExact: string; present: boolean; notPresent: boolean }>
|
|
112
119
|
|
|
113
120
|
export type APIStatus = {
|
|
114
|
-
currentStatus?:
|
|
121
|
+
currentStatus?: APIStatusEnum
|
|
115
122
|
description?: string
|
|
116
123
|
conditions?: Conditions[]
|
|
117
124
|
}
|
|
@@ -865,4 +865,25 @@ export type GetNacosGrafanaReq = {
|
|
|
865
865
|
export type GetNacosGrafanaRes = {
|
|
866
866
|
url?: string
|
|
867
867
|
zhUrl?: string
|
|
868
|
+
}
|
|
869
|
+
|
|
870
|
+
export type GetResourceInfoReq = {
|
|
871
|
+
workspaceId?: string
|
|
872
|
+
clusterName?: string
|
|
873
|
+
nacosName?: string
|
|
874
|
+
namespaceName?: string
|
|
875
|
+
}
|
|
876
|
+
|
|
877
|
+
export type GetResourceInfoResResourceInfo = {
|
|
878
|
+
name?: string
|
|
879
|
+
workloadState?: SkoalaApiGeneralV1alpha1Common.WorkloadState
|
|
880
|
+
createAt?: string
|
|
881
|
+
consoleAddress?: string
|
|
882
|
+
}
|
|
883
|
+
|
|
884
|
+
export type GetResourceInfoRes = {
|
|
885
|
+
clusterName?: string
|
|
886
|
+
namespaceName?: string
|
|
887
|
+
nacos?: GetResourceInfoResResourceInfo
|
|
888
|
+
sentinel?: GetResourceInfoResResourceInfo
|
|
868
889
|
}
|
|
@@ -11,13 +11,13 @@ import * as GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"
|
|
|
11
11
|
import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
|
|
12
12
|
import * as SkoalaApiGeneralV1alpha1Version from "../../general/v1alpha1/version.pb"
|
|
13
13
|
import * as SkoalaApiHostedV1alpha1Api from "../../hosted/v1alpha1/api.pb"
|
|
14
|
-
import * as
|
|
14
|
+
import * as SkoalaApiHostedV1alpha1Api_log from "../../hosted/v1alpha1/api_log.pb"
|
|
15
15
|
import * as SkoalaApiHostedV1alpha1Gateway from "../../hosted/v1alpha1/gateway.pb"
|
|
16
|
+
import * as SkoalaApiHostedV1alpha1Gateway_log from "../../hosted/v1alpha1/gateway_log.pb"
|
|
16
17
|
import * as SkoalaApiHostedV1alpha1Gateway_overview from "../../hosted/v1alpha1/gateway_overview.pb"
|
|
17
18
|
import * as SkoalaApiHostedV1alpha1Gateway_plugin from "../../hosted/v1alpha1/gateway_plugin.pb"
|
|
18
19
|
import * as SkoalaApiHostedV1alpha1Gateway_secret from "../../hosted/v1alpha1/gateway_secret.pb"
|
|
19
20
|
import * as SkoalaApiHostedV1alpha1Gateway_service from "../../hosted/v1alpha1/gateway_service.pb"
|
|
20
|
-
import * as SkoalaApiHostedV1alpha1Gatewaylog from "../../hosted/v1alpha1/gatewaylog.pb"
|
|
21
21
|
import * as SkoalaApiHostedV1alpha1Mesh from "../../hosted/v1alpha1/mesh.pb"
|
|
22
22
|
import * as SkoalaApiHostedV1alpha1Nacos from "../../hosted/v1alpha1/nacos.pb"
|
|
23
23
|
import * as SkoalaApiHostedV1alpha1Plugins from "../../hosted/v1alpha1/plugins.pb"
|
|
@@ -281,6 +281,9 @@ export class Nacos {
|
|
|
281
281
|
static UpdateUserPassword(req: SkoalaApiHostedV1alpha1Nacos.UpdateUserPasswordReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
282
282
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.UpdateUserPasswordReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/users`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
283
283
|
}
|
|
284
|
+
static GetResourceInfo(req: SkoalaApiHostedV1alpha1Nacos.GetResourceInfoReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.GetResourceInfoRes> {
|
|
285
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetResourceInfoReq, SkoalaApiHostedV1alpha1Nacos.GetResourceInfoRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/info?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName"])}`, {...initReq, method: "GET"})
|
|
286
|
+
}
|
|
284
287
|
}
|
|
285
288
|
export class Sentinel {
|
|
286
289
|
static GetInsGovern(req: SkoalaApiHostedV1alpha1Sentinel.GetInsGovernReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetInsGovernRes> {
|
|
@@ -494,9 +497,6 @@ export class Gateway {
|
|
|
494
497
|
static GetWorkingComponents(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayComponentsRes> {
|
|
495
498
|
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"})
|
|
496
499
|
}
|
|
497
|
-
static GetGatewayStatus(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes> {
|
|
498
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/status?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
499
|
-
}
|
|
500
500
|
static Diagnostic(req: SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
501
501
|
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)})
|
|
502
502
|
}
|
|
@@ -512,11 +512,8 @@ export class Gateway {
|
|
|
512
512
|
static ListGatewayPodsByType(req: SkoalaApiHostedV1alpha1Gateway.ListGatewayPodContainerReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.ListGatewayPodContainerRes> {
|
|
513
513
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListGatewayPodContainerReq, SkoalaApiHostedV1alpha1Gateway.ListGatewayPodContainerRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/type/${req["component"]}/pods?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "component"])}`, {...initReq, method: "GET"})
|
|
514
514
|
}
|
|
515
|
-
static GetPodContainerLog(req:
|
|
516
|
-
return fm.fetchReq<
|
|
517
|
-
}
|
|
518
|
-
static GetGatewayPodAlert(req: SkoalaApiHostedV1alpha1Gateway.GatewayPodAlertReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GatewayPodAlertRes> {
|
|
519
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GatewayPodAlertReq, SkoalaApiHostedV1alpha1Gateway.GatewayPodAlertRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/alert/pods/${req["podName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "podName"])}`, {...initReq, method: "GET"})
|
|
515
|
+
static GetPodContainerLog(req: SkoalaApiHostedV1alpha1Gateway_log.GetPodContainerLogReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_log.GetPodContainerLogRes> {
|
|
516
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_log.GetPodContainerLogReq, SkoalaApiHostedV1alpha1Gateway_log.GetPodContainerLogRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/pod/${req["podName"]}/container/${req["container"]}/logs?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "podName", "container"])}`, {...initReq, method: "GET"})
|
|
520
517
|
}
|
|
521
518
|
static QueryGatewayDeploymentsMetricRange(req: SkoalaApiHostedV1alpha1Gateway.QueryGatewayDeploymentsMetricRangeReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.QueryGatewayDeploymentsMetricRangeRes> {
|
|
522
519
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.QueryGatewayDeploymentsMetricRangeReq, SkoalaApiHostedV1alpha1Gateway.QueryGatewayDeploymentsMetricRangeRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterId"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/metric/deployments/queryrange?${fm.renderURLSearchParams(req, ["workspaceId", "clusterId", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
@@ -530,14 +527,14 @@ export class Gateway {
|
|
|
530
527
|
static GetGatewayNamespace(req: SkoalaApiHostedV1alpha1Gateway_service.GetGatewayNamespaceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_service.GetGatewayNamespaceRes> {
|
|
531
528
|
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"})
|
|
532
529
|
}
|
|
533
|
-
static ListGatewayLog(req:
|
|
534
|
-
return fm.fetchReq<
|
|
530
|
+
static ListGatewayLog(req: SkoalaApiHostedV1alpha1Api_log.SearchLogReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api_log.SearchLogRes> {
|
|
531
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Api_log.SearchLogReq, SkoalaApiHostedV1alpha1Api_log.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"})
|
|
535
532
|
}
|
|
536
|
-
static GatewayLogExportURL(req:
|
|
537
|
-
return fm.fetchReq<
|
|
533
|
+
static GatewayLogExportURL(req: SkoalaApiHostedV1alpha1Api_log.SearchLogReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api_log.ExportLogURLRes> {
|
|
534
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Api_log.SearchLogReq, SkoalaApiHostedV1alpha1Api_log.ExportLogURLRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/requestlogs/exporturl?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
538
535
|
}
|
|
539
|
-
static GatewayLogExport(req:
|
|
540
|
-
return fm.fetchStreamingRequest<
|
|
536
|
+
static GatewayLogExport(req: SkoalaApiHostedV1alpha1Api_log.SearchLogReq, entityNotifier?: fm.NotifyStreamEntityArrival<GoogleApiHttpbody.HttpBody>, initReq?: fm.InitReq): Promise<void> {
|
|
537
|
+
return fm.fetchStreamingRequest<SkoalaApiHostedV1alpha1Api_log.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"})
|
|
541
538
|
}
|
|
542
539
|
static CreateSecret(req: SkoalaApiHostedV1alpha1Gateway_secret.CreateSecretReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_secret.CreateSecretRes> {
|
|
543
540
|
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)})
|
|
@@ -630,6 +627,9 @@ export class GatewayAPI {
|
|
|
630
627
|
static ListAPIGroup(req: SkoalaApiHostedV1alpha1Api.ListAPIGroupReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.ListAPIGroupRes> {
|
|
631
628
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Api.ListAPIGroupReq, SkoalaApiHostedV1alpha1Api.ListAPIGroupRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/groups?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
632
629
|
}
|
|
630
|
+
static BatchOperationAPI(req: SkoalaApiHostedV1alpha1Api.APIBatchOperationReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.APIBatchOperationRes> {
|
|
631
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Api.APIBatchOperationReq, SkoalaApiHostedV1alpha1Api.APIBatchOperationRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/batch`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
632
|
+
}
|
|
633
633
|
}
|
|
634
634
|
export class GatewayService {
|
|
635
635
|
static CreateService(req: SkoalaApiHostedV1alpha1Gateway_service.CreateExternalServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
package/package.json
CHANGED
|
File without changes
|
|
File without changes
|