@daocloud-proto/skoala 0.3.3 → 0.4.1-103
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 +46 -0
- package/api/general/v1alpha1/resource.pb.ts +15 -0
- package/api/general/v1alpha1/service.pb.ts +22 -0
- package/api/general/v1alpha1/skoala.pb.ts +22 -30
- package/api/hosted/v1alpha1/api.pb.ts +251 -0
- package/api/hosted/v1alpha1/apilog.pb.ts +47 -0
- package/api/hosted/v1alpha1/gateway.pb.ts +248 -76
- package/api/hosted/v1alpha1/http.pb.ts +20 -0
- package/api/hosted/v1alpha1/nacos.pb.ts +104 -2
- package/api/hosted/v1alpha1/sentinel.pb.ts +46 -10
- package/api/hosted/v1alpha1/virtualhost.pb.ts +96 -0
- package/api/integrated/v1alpha1/insight.pb.ts +39 -4
- package/api/integrated/v1alpha1/instance.pb.ts +31 -19
- package/api/integrated/v1alpha1/registry.pb.ts +8 -5
- package/api/integrated/v1alpha1/service.pb.ts +8 -11
- package/api/skoala/v1alpha1/book.pb.ts +2 -2
- package/api/skoala/v1alpha1/skoala.pb.ts +75 -24
- package/feature_gate/v1alpha1/feature_gate.pb.ts +27 -0
- package/fetch.pb.ts +109 -0
- package/github.com/mwitkow/go-proto-validators/validator.pb.ts +29 -0
- package/google/api/annotations.pb.ts +1 -0
- package/google/api/http.pb.ts +34 -0
- package/google/protobuf/any.pb.ts +9 -0
- package/google/protobuf/api.pb.ts +32 -0
- package/google/protobuf/descriptor.pb.ts +262 -0
- package/google/protobuf/duration.pb.ts +9 -0
- package/google/protobuf/empty.pb.ts +7 -0
- package/google/protobuf/field_mask.pb.ts +8 -0
- package/google/protobuf/struct.pb.ts +33 -0
- package/google/protobuf/timestamp.pb.ts +9 -0
- package/google/protobuf/type.pb.ts +83 -0
- package/google/protobuf/wrappers.pb.ts +40 -0
- package/google/rpc/status.pb.ts +12 -0
- package/insight/v1alpha1/alert.pb.ts +291 -0
- package/insight/v1alpha1/notify.pb.ts +84 -0
- package/log/v1alpha1/log.pb.ts +122 -0
- package/metric/v1alpha1/metric.pb.ts +98 -0
- package/package.json +1 -1
- package/resource/v1alpha1/cluster.pb.ts +98 -0
- package/resource/v1alpha1/job.pb.ts +93 -0
- package/resource/v1alpha1/node.pb.ts +62 -0
- package/resource/v1alpha1/pod.pb.ts +82 -0
- package/resource/v1alpha1/service.pb.ts +61 -0
- package/resource/v1alpha1/type.pb.ts +9 -0
- package/resource/v1alpha1/workload.pb.ts +69 -0
- package/span_metric/v1alpha1/otelspankind.pb.ts +14 -0
- package/span_metric/v1alpha1/span_metric.pb.ts +61 -0
- package/tracing/v1alpha1/tracing.pb.ts +18 -0
- package/type/v1alpha1/page.pb.ts +11 -0
- package/validate/validate.pb.ts +266 -0
|
@@ -0,0 +1,96 @@
|
|
|
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
|
+
import * as SkoalaApiHostedV1alpha1Http from "./http.pb"
|
|
9
|
+
export type CreateVirtualhostReq = {
|
|
10
|
+
workspaceId?: string
|
|
11
|
+
gatewayName?: string
|
|
12
|
+
clusterName?: string
|
|
13
|
+
namespaceName?: string
|
|
14
|
+
fqdn?: string
|
|
15
|
+
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
export type CreateVirtualhostRes = {
|
|
19
|
+
fqdn?: string
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export type ListVirtualhostReq = {
|
|
23
|
+
workspaceId?: string
|
|
24
|
+
clusterName?: string
|
|
25
|
+
gatewayName?: string
|
|
26
|
+
namespaceName?: string
|
|
27
|
+
fqdn?: string
|
|
28
|
+
page?: number
|
|
29
|
+
pageSize?: number
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type VirtualhostInfo = {
|
|
33
|
+
fqdn?: string
|
|
34
|
+
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
35
|
+
secretName?: string
|
|
36
|
+
namespaceName?: string
|
|
37
|
+
updatedAt?: string
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
export type ListVirtualhostRes = {
|
|
41
|
+
virtualhost?: VirtualhostInfo[]
|
|
42
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type GetVirtualhostReq = {
|
|
46
|
+
workspaceId?: string
|
|
47
|
+
clusterName?: string
|
|
48
|
+
gatewayName?: string
|
|
49
|
+
namespaceName?: string
|
|
50
|
+
fqdn?: string
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export type GetVirtualhostRes = {
|
|
54
|
+
fqdn?: string
|
|
55
|
+
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type UpdateVirtualhostReq = {
|
|
59
|
+
workspaceId?: string
|
|
60
|
+
gatewayName?: string
|
|
61
|
+
clusterName?: string
|
|
62
|
+
namespaceName?: string
|
|
63
|
+
fqdn?: string
|
|
64
|
+
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export type UpdateVirtualhostRes = {
|
|
68
|
+
fqdn?: string
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
export type DeleteVirtualhostReq = {
|
|
72
|
+
workspaceId?: string
|
|
73
|
+
gatewayName?: string
|
|
74
|
+
clusterName?: string
|
|
75
|
+
namespaceName?: string
|
|
76
|
+
fqdn?: string
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type DeleteVirtualhostRes = {
|
|
80
|
+
fqdn?: string
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export type CorsPolicy = {
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type RateLimitPolicy = {
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export type Tls = {
|
|
90
|
+
}
|
|
91
|
+
|
|
92
|
+
export type Authorization = {
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
export type AuthPolicy = {
|
|
96
|
+
}
|
|
@@ -4,12 +4,47 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import * as
|
|
7
|
+
import * as InsightIoApiMetricV1alpha1Metric from "../../../metric/v1alpha1/metric.pb"
|
|
8
8
|
export type Insight = {
|
|
9
|
+
serviceDetail?: InsightValue
|
|
10
|
+
serviceMetrics?: InsightMetrics
|
|
11
|
+
instanceMonitorMetrics?: MonitorMetrics
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type InstanceInsight = {
|
|
15
|
+
instanceDetail?: InsightValue
|
|
16
|
+
instanceMetrics?: InsightMetrics
|
|
17
|
+
instanceMonitorMetrics?: MonitorMetrics
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type InsightValue = {
|
|
9
21
|
call?: string
|
|
10
22
|
successRates?: string
|
|
11
23
|
latencies?: string
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type InsightMetrics = {
|
|
27
|
+
p50Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
28
|
+
p75Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
29
|
+
p90Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
30
|
+
p95Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
31
|
+
p99Metrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
32
|
+
reqRateMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
33
|
+
repLatencyMetric?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
34
|
+
errorsRateMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
35
|
+
successTotalCallsMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
36
|
+
errorTotalCallsMetrics?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type MonitorMetrics = {
|
|
40
|
+
cpuRequest?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
41
|
+
cpuLimit?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
42
|
+
cpuUsage?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
43
|
+
memoryRequest?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
44
|
+
memoryLimit?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
45
|
+
memoryUsage?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
46
|
+
diskRead?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
47
|
+
diskWrite?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
48
|
+
netBytesReceived?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
49
|
+
netBytesTransmitted?: InsightIoApiMetricV1alpha1Metric.SampleStream[]
|
|
15
50
|
}
|
|
@@ -4,17 +4,27 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
import * as
|
|
7
|
+
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
|
+
import * as SkoalaApiIntegratedV1alpha1Insight from "./insight.pb"
|
|
9
|
+
|
|
10
|
+
export enum InstanceStatus {
|
|
11
|
+
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
12
|
+
RUNNING = "RUNNING",
|
|
13
|
+
FAILED = "FAILED",
|
|
14
|
+
}
|
|
15
|
+
|
|
8
16
|
export type Instance = {
|
|
9
|
-
workspaceId?: string
|
|
10
17
|
id?: string
|
|
11
18
|
serviceName?: string
|
|
12
19
|
frameworkType?: string
|
|
13
20
|
host?: string
|
|
14
|
-
|
|
21
|
+
ports?: number[]
|
|
22
|
+
instanceStatus?: InstanceStatus
|
|
23
|
+
enabled?: boolean
|
|
15
24
|
metadata?: {[key: string]: string}
|
|
16
|
-
registry?: SkoalaApiIntegratedV1alpha1Registry.Registry
|
|
17
25
|
detail?: {[key: string]: string}
|
|
26
|
+
updateAt?: string
|
|
27
|
+
insight?: SkoalaApiIntegratedV1alpha1Insight.InstanceInsight
|
|
18
28
|
}
|
|
19
29
|
|
|
20
30
|
export type ListInstanceReq = {
|
|
@@ -23,37 +33,39 @@ export type ListInstanceReq = {
|
|
|
23
33
|
namespaceId?: string
|
|
24
34
|
groupName?: string
|
|
25
35
|
serviceName?: string
|
|
36
|
+
instanceId?: string
|
|
37
|
+
page?: number
|
|
38
|
+
pageSize?: number
|
|
26
39
|
}
|
|
27
40
|
|
|
28
|
-
export type
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
size?: number
|
|
41
|
+
export type ListInstanceRes = {
|
|
42
|
+
items?: Instance[]
|
|
43
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
32
44
|
}
|
|
33
45
|
|
|
34
|
-
export type
|
|
46
|
+
export type GetInstanceReq = {
|
|
35
47
|
workspaceId?: string
|
|
36
48
|
registryId?: string
|
|
37
|
-
|
|
38
|
-
|
|
49
|
+
namespaceId?: string
|
|
50
|
+
groupName?: string
|
|
51
|
+
serviceName?: string
|
|
52
|
+
instanceId?: string
|
|
39
53
|
}
|
|
40
54
|
|
|
41
|
-
export type
|
|
42
|
-
|
|
43
|
-
page?: number
|
|
44
|
-
size?: number
|
|
45
|
-
total?: number
|
|
55
|
+
export type GetInstanceRes = {
|
|
56
|
+
instance?: Instance
|
|
46
57
|
}
|
|
47
58
|
|
|
48
|
-
export type
|
|
59
|
+
export type UpdateInstanceReq = {
|
|
49
60
|
workspaceId?: string
|
|
50
61
|
registryId?: string
|
|
51
62
|
namespaceId?: string
|
|
52
63
|
groupName?: string
|
|
53
|
-
serviceName?: string
|
|
54
64
|
instanceId?: string
|
|
65
|
+
serviceName?: string
|
|
66
|
+
enabled?: boolean
|
|
55
67
|
}
|
|
56
68
|
|
|
57
|
-
export type
|
|
69
|
+
export type UpdateInstanceRes = {
|
|
58
70
|
instance?: Instance
|
|
59
71
|
}
|
|
@@ -4,6 +4,8 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
|
+
|
|
7
9
|
export enum RegistryStatus {
|
|
8
10
|
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
9
11
|
RUNNING = "RUNNING",
|
|
@@ -22,6 +24,7 @@ export enum RegistryType {
|
|
|
22
24
|
export type Registry = {
|
|
23
25
|
workspaceId?: string
|
|
24
26
|
registryId?: string
|
|
27
|
+
extId?: string
|
|
25
28
|
name?: string
|
|
26
29
|
type?: RegistryType
|
|
27
30
|
status?: RegistryStatus
|
|
@@ -45,14 +48,12 @@ export type ListRegistryReq = {
|
|
|
45
48
|
type?: string
|
|
46
49
|
name?: string
|
|
47
50
|
page?: number
|
|
48
|
-
|
|
51
|
+
pageSize?: number
|
|
49
52
|
}
|
|
50
53
|
|
|
51
54
|
export type ListRegistryRes = {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
size?: number
|
|
55
|
-
total?: number
|
|
55
|
+
items?: Registry[]
|
|
56
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
56
57
|
}
|
|
57
58
|
|
|
58
59
|
export type GetRegistryReq = {
|
|
@@ -67,6 +68,7 @@ export type GetRegistryRes = {
|
|
|
67
68
|
export type UpdateRegistryReq = {
|
|
68
69
|
workspaceId?: string
|
|
69
70
|
registryId?: string
|
|
71
|
+
extId?: string
|
|
70
72
|
name?: string
|
|
71
73
|
type?: string
|
|
72
74
|
addresses?: string[]
|
|
@@ -81,6 +83,7 @@ export type UpdateRegistryRes = {
|
|
|
81
83
|
export type CreateRegistryReq = {
|
|
82
84
|
workspaceId?: string
|
|
83
85
|
name?: string
|
|
86
|
+
extId?: string
|
|
84
87
|
type?: string
|
|
85
88
|
addresses?: string[]
|
|
86
89
|
namespaces?: Namespace[]
|
|
@@ -4,11 +4,13 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
7
8
|
import * as SkoalaApiIntegratedV1alpha1Insight from "./insight.pb"
|
|
8
9
|
import * as SkoalaApiIntegratedV1alpha1Registry from "./registry.pb"
|
|
9
10
|
export type Service = {
|
|
10
11
|
name?: string
|
|
11
12
|
namespace?: NamespaceWithGroup
|
|
13
|
+
healthInstanceCount?: number
|
|
12
14
|
instanceCount?: number
|
|
13
15
|
registry?: SkoalaApiIntegratedV1alpha1Registry.Registry
|
|
14
16
|
detail?: {[key: string]: string}
|
|
@@ -18,21 +20,14 @@ export type Service = {
|
|
|
18
20
|
export type ListServiceReq = {
|
|
19
21
|
workspaceId?: string
|
|
20
22
|
registryId?: string
|
|
23
|
+
serviceName?: string
|
|
21
24
|
page?: number
|
|
22
|
-
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
export type ListAllServiceReq = {
|
|
26
|
-
workspaceId?: string
|
|
27
|
-
page?: number
|
|
28
|
-
size?: number
|
|
25
|
+
pageSize?: number
|
|
29
26
|
}
|
|
30
27
|
|
|
31
28
|
export type ListServiceRes = {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
size?: number
|
|
35
|
-
total?: number
|
|
29
|
+
items?: Service[]
|
|
30
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
36
31
|
}
|
|
37
32
|
|
|
38
33
|
export type GetServiceReq = {
|
|
@@ -41,6 +36,8 @@ export type GetServiceReq = {
|
|
|
41
36
|
namespaceId?: string
|
|
42
37
|
groupName?: string
|
|
43
38
|
serviceName?: string
|
|
39
|
+
start?: string
|
|
40
|
+
end?: string
|
|
44
41
|
}
|
|
45
42
|
|
|
46
43
|
export type GetServiceRes = {
|
|
@@ -89,10 +89,10 @@ export class Book {
|
|
|
89
89
|
return fm.fetchReq<ListBookReq, ListBookReply>(`/v1alpha1/books?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
90
90
|
}
|
|
91
91
|
static Create(req: CreateBookReq, initReq?: fm.InitReq): Promise<CreateBookReply> {
|
|
92
|
-
return fm.fetchReq<CreateBookReq, CreateBookReply>(`/v1alpha1/books`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
92
|
+
return fm.fetchReq<CreateBookReq, CreateBookReply>(`/v1alpha1/books`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
93
93
|
}
|
|
94
94
|
static Update(req: UpdateBookReq, initReq?: fm.InitReq): Promise<UpdateBookRely> {
|
|
95
|
-
return fm.fetchReq<UpdateBookReq, UpdateBookRely>(`/v1alpha1/books/${req["uid"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
95
|
+
return fm.fetchReq<UpdateBookReq, UpdateBookRely>(`/v1alpha1/books/${req["uid"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
96
96
|
}
|
|
97
97
|
static Delete(req: DeleteBookReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
98
98
|
return fm.fetchReq<DeleteBookReq, GoogleProtobufEmpty.Empty>(`/v1alpha1/books/${req["uid"]}`, {...initReq, method: "DELETE"})
|
|
@@ -8,9 +8,12 @@ import * as fm from "../../../fetch.pb"
|
|
|
8
8
|
import * as GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"
|
|
9
9
|
import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
|
|
10
10
|
import * as SkoalaApiGeneralV1alpha1Version from "../../general/v1alpha1/version.pb"
|
|
11
|
+
import * as SkoalaApiHostedV1alpha1Api from "../../hosted/v1alpha1/api.pb"
|
|
12
|
+
import * as SkoalaApiHostedV1alpha1Apilog from "../../hosted/v1alpha1/apilog.pb"
|
|
11
13
|
import * as SkoalaApiHostedV1alpha1Gateway from "../../hosted/v1alpha1/gateway.pb"
|
|
12
14
|
import * as SkoalaApiHostedV1alpha1Nacos from "../../hosted/v1alpha1/nacos.pb"
|
|
13
15
|
import * as SkoalaApiHostedV1alpha1Sentinel from "../../hosted/v1alpha1/sentinel.pb"
|
|
16
|
+
import * as SkoalaApiHostedV1alpha1Virtualhost from "../../hosted/v1alpha1/virtualhost.pb"
|
|
14
17
|
import * as SkoalaApiIntegratedV1alpha1Instance from "../../integrated/v1alpha1/instance.pb"
|
|
15
18
|
import * as SkoalaApiIntegratedV1alpha1Registry from "../../integrated/v1alpha1/registry.pb"
|
|
16
19
|
import * as SkoalaApiIntegratedV1alpha1Service from "../../integrated/v1alpha1/service.pb"
|
|
@@ -34,6 +37,9 @@ export class Skoala {
|
|
|
34
37
|
static ListWorkspace(req: SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRes> {
|
|
35
38
|
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceReq, SkoalaApiGeneralV1alpha1Skoala.ListWorkspaceRes>(`/apis/skoala.io/v1alpha1/workspaces?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
36
39
|
}
|
|
40
|
+
static GetWorkspace(req: SkoalaApiGeneralV1alpha1Skoala.GetWorkspaceReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.GetWorkspaceRes> {
|
|
41
|
+
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.GetWorkspaceReq, SkoalaApiGeneralV1alpha1Skoala.GetWorkspaceRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}?${fm.renderURLSearchParams(req, ["workspaceId"])}`, {...initReq, method: "GET"})
|
|
42
|
+
}
|
|
37
43
|
}
|
|
38
44
|
export class Registry {
|
|
39
45
|
static List(req: SkoalaApiIntegratedV1alpha1Registry.ListRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.ListRegistryRes> {
|
|
@@ -43,16 +49,16 @@ export class Registry {
|
|
|
43
49
|
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.GetRegistryReq, SkoalaApiIntegratedV1alpha1Registry.GetRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}?${fm.renderURLSearchParams(req, ["workspaceId", "registryId"])}`, {...initReq, method: "GET"})
|
|
44
50
|
}
|
|
45
51
|
static Create(req: SkoalaApiIntegratedV1alpha1Registry.CreateRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.CreateRegistryRes> {
|
|
46
|
-
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.CreateRegistryReq, SkoalaApiIntegratedV1alpha1Registry.CreateRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
52
|
+
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.CreateRegistryReq, SkoalaApiIntegratedV1alpha1Registry.CreateRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
47
53
|
}
|
|
48
54
|
static Update(req: SkoalaApiIntegratedV1alpha1Registry.UpdateRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.UpdateRegistryRes> {
|
|
49
|
-
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.UpdateRegistryReq, SkoalaApiIntegratedV1alpha1Registry.UpdateRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
55
|
+
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.UpdateRegistryReq, SkoalaApiIntegratedV1alpha1Registry.UpdateRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
50
56
|
}
|
|
51
57
|
static Delete(req: SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryRes> {
|
|
52
58
|
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryReq, SkoalaApiIntegratedV1alpha1Registry.DeleteRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}`, {...initReq, method: "DELETE"})
|
|
53
59
|
}
|
|
54
60
|
static Ping(req: SkoalaApiIntegratedV1alpha1Registry.PingRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.PingRegistryRes> {
|
|
55
|
-
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.PingRegistryReq, SkoalaApiIntegratedV1alpha1Registry.PingRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/ping`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
61
|
+
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Registry.PingRegistryReq, SkoalaApiIntegratedV1alpha1Registry.PingRegistryRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/ping`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
56
62
|
}
|
|
57
63
|
}
|
|
58
64
|
export class Service {
|
|
@@ -70,6 +76,9 @@ export class Instance {
|
|
|
70
76
|
static Get(req: SkoalaApiIntegratedV1alpha1Instance.GetInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.GetInstanceRes> {
|
|
71
77
|
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.GetInstanceReq, SkoalaApiIntegratedV1alpha1Instance.GetInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}/instances/${req["instanceId"]}?${fm.renderURLSearchParams(req, ["workspaceId", "registryId", "serviceName", "instanceId"])}`, {...initReq, method: "GET"})
|
|
72
78
|
}
|
|
79
|
+
static Update(req: SkoalaApiIntegratedV1alpha1Instance.UpdateInstanceReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.UpdateInstanceRes> {
|
|
80
|
+
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.UpdateInstanceReq, SkoalaApiIntegratedV1alpha1Instance.UpdateInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}/instances/${req["instanceId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
81
|
+
}
|
|
73
82
|
}
|
|
74
83
|
export class Nacos {
|
|
75
84
|
static List(req: SkoalaApiHostedV1alpha1Nacos.ListNacosReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNacosRes> {
|
|
@@ -78,31 +87,34 @@ export class Nacos {
|
|
|
78
87
|
static Get(req: SkoalaApiHostedV1alpha1Nacos.GetNacosReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.GetNacosRes> {
|
|
79
88
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetNacosReq, SkoalaApiHostedV1alpha1Nacos.GetNacosRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/nacoses/${req["nacosName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "nacosName"])}`, {...initReq, method: "GET"})
|
|
80
89
|
}
|
|
81
|
-
static Create(req: SkoalaApiHostedV1alpha1Nacos.CreateNacosReq, initReq?: fm.InitReq): Promise<
|
|
82
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.CreateNacosReq,
|
|
90
|
+
static Create(req: SkoalaApiHostedV1alpha1Nacos.CreateNacosReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
91
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.CreateNacosReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/nacoses`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
92
|
+
}
|
|
93
|
+
static Update(req: SkoalaApiHostedV1alpha1Nacos.UpdateNacosReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
94
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.UpdateNacosReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/nacoses/${req["nacosName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
83
95
|
}
|
|
84
|
-
static
|
|
85
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.
|
|
96
|
+
static Delete(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
97
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/nacoses/${req["nacosName"]}`, {...initReq, method: "DELETE"})
|
|
86
98
|
}
|
|
87
|
-
static
|
|
88
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.
|
|
99
|
+
static ListService(req: SkoalaApiHostedV1alpha1Nacos.ListNacosServiceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNacosServiceRes> {
|
|
100
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNacosServiceReq, SkoalaApiHostedV1alpha1Nacos.ListNacosServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/nacoses/${req["nacosName"]}/services?${fm.renderURLSearchParams(req, ["workspaceId", "nacosName"])}`, {...initReq, method: "GET"})
|
|
89
101
|
}
|
|
90
102
|
}
|
|
91
103
|
export class Sentinel {
|
|
92
104
|
static List(req: SkoalaApiHostedV1alpha1Sentinel.ListSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.ListSentinelRes> {
|
|
93
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListSentinelReq, SkoalaApiHostedV1alpha1Sentinel.ListSentinelRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["
|
|
105
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.ListSentinelReq, SkoalaApiHostedV1alpha1Sentinel.ListSentinelRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/sentinels?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
94
106
|
}
|
|
95
|
-
static Get(req: SkoalaApiHostedV1alpha1Sentinel.GetSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.
|
|
96
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetSentinelReq, SkoalaApiHostedV1alpha1Sentinel.
|
|
107
|
+
static Get(req: SkoalaApiHostedV1alpha1Sentinel.GetSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.Sentinel> {
|
|
108
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetSentinelReq, SkoalaApiHostedV1alpha1Sentinel.Sentinel>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/sentinels/${req["name"]}?${fm.renderURLSearchParams(req, ["workspace", "cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
97
109
|
}
|
|
98
110
|
static Create(req: SkoalaApiHostedV1alpha1Sentinel.CreateSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.CreateSentinelRes> {
|
|
99
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateSentinelReq, SkoalaApiHostedV1alpha1Sentinel.CreateSentinelRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["
|
|
111
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateSentinelReq, SkoalaApiHostedV1alpha1Sentinel.CreateSentinelRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/sentinels`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
100
112
|
}
|
|
101
113
|
static Update(req: SkoalaApiHostedV1alpha1Sentinel.UpdateSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.UpdateSentinelRes> {
|
|
102
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateSentinelReq, SkoalaApiHostedV1alpha1Sentinel.UpdateSentinelRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["
|
|
114
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.UpdateSentinelReq, SkoalaApiHostedV1alpha1Sentinel.UpdateSentinelRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/sentinels/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
103
115
|
}
|
|
104
116
|
static Delete(req: SkoalaApiHostedV1alpha1Sentinel.DeleteSentinelReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.DeleteSentinelRes> {
|
|
105
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteSentinelReq, SkoalaApiHostedV1alpha1Sentinel.DeleteSentinelRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["
|
|
117
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteSentinelReq, SkoalaApiHostedV1alpha1Sentinel.DeleteSentinelRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspace"]}/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/sentinels/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
106
118
|
}
|
|
107
119
|
}
|
|
108
120
|
export class Gateway {
|
|
@@ -112,19 +124,58 @@ export class Gateway {
|
|
|
112
124
|
static ListClusterGateway(req: SkoalaApiHostedV1alpha1Gateway.ListClusterGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.ListGatewayRes> {
|
|
113
125
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListClusterGatewayReq, SkoalaApiHostedV1alpha1Gateway.ListGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/gateways?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
|
|
114
126
|
}
|
|
115
|
-
static ListNamespaceGateway(req: SkoalaApiHostedV1alpha1Gateway.ListNamespaceGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.ListGatewayRes> {
|
|
116
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListNamespaceGatewayReq, SkoalaApiHostedV1alpha1Gateway.ListGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName"])}`, {...initReq, method: "GET"})
|
|
117
|
-
}
|
|
118
127
|
static Get(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayRes> {
|
|
119
128
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
120
129
|
}
|
|
121
|
-
static Create(req: SkoalaApiHostedV1alpha1Gateway.CreateGatewayReq, initReq?: fm.InitReq): Promise<
|
|
122
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.CreateGatewayReq,
|
|
130
|
+
static Create(req: SkoalaApiHostedV1alpha1Gateway.CreateGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.CreateGatewayRes> {
|
|
131
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.CreateGatewayReq, SkoalaApiHostedV1alpha1Gateway.CreateGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
132
|
+
}
|
|
133
|
+
static Update(req: SkoalaApiHostedV1alpha1Gateway.UpdateGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.UpdateGatewayRes> {
|
|
134
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.UpdateGatewayReq, SkoalaApiHostedV1alpha1Gateway.UpdateGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
135
|
+
}
|
|
136
|
+
static Delete(req: SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayRes> {
|
|
137
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.DeleteGatewayReq, SkoalaApiHostedV1alpha1Gateway.DeleteGatewayRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}`, {...initReq, method: "DELETE"})
|
|
138
|
+
}
|
|
139
|
+
static GetImages(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetImagesRes> {
|
|
140
|
+
return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiHostedV1alpha1Gateway.GetImagesRes>(`/apis/sesame.skoala.io/v1alpha1/images?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
141
|
+
}
|
|
142
|
+
static GetGatewayStatus(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayStatusRes> {
|
|
143
|
+
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"})
|
|
144
|
+
}
|
|
145
|
+
static Diagnostic(req: SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticRes> {
|
|
146
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/diagnostic`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
147
|
+
}
|
|
148
|
+
static CreateVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostRes> {
|
|
149
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostReq, SkoalaApiHostedV1alpha1Virtualhost.CreateVirtualhostRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/virtualhosts`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
150
|
+
}
|
|
151
|
+
static ListVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.ListVirtualhostReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Virtualhost.ListVirtualhostRes> {
|
|
152
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Virtualhost.ListVirtualhostReq, SkoalaApiHostedV1alpha1Virtualhost.ListVirtualhostRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/virtualhosts?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
153
|
+
}
|
|
154
|
+
static GetVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.GetVirtualhostReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Virtualhost.GetVirtualhostRes> {
|
|
155
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Virtualhost.GetVirtualhostReq, SkoalaApiHostedV1alpha1Virtualhost.GetVirtualhostRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/virtualhosts/${req["fqdn"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "fqdn"])}`, {...initReq, method: "GET"})
|
|
156
|
+
}
|
|
157
|
+
static DeleteVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.DeleteVirtualhostReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Virtualhost.DeleteVirtualhostRes> {
|
|
158
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Virtualhost.DeleteVirtualhostReq, SkoalaApiHostedV1alpha1Virtualhost.DeleteVirtualhostRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/virtualhosts/${req["fqdn"]}`, {...initReq, method: "DELETE"})
|
|
159
|
+
}
|
|
160
|
+
static UpdateVirtualhost(req: SkoalaApiHostedV1alpha1Virtualhost.UpdateVirtualhostReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Virtualhost.UpdateVirtualhostRes> {
|
|
161
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Virtualhost.UpdateVirtualhostReq, SkoalaApiHostedV1alpha1Virtualhost.UpdateVirtualhostRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/virtualhosts/${req["fqdn"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
162
|
+
}
|
|
163
|
+
static CreateAPI(req: SkoalaApiHostedV1alpha1Api.CreateAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.CreateAPIRes> {
|
|
164
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Api.CreateAPIReq, SkoalaApiHostedV1alpha1Api.CreateAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
165
|
+
}
|
|
166
|
+
static ListAPI(req: SkoalaApiHostedV1alpha1Api.APIListReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.APIListRes> {
|
|
167
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Api.APIListReq, SkoalaApiHostedV1alpha1Api.APIListRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
168
|
+
}
|
|
169
|
+
static GetAPI(req: SkoalaApiHostedV1alpha1Api.GetAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.GetAPIRes> {
|
|
170
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Api.GetAPIReq, SkoalaApiHostedV1alpha1Api.GetAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "apiName"])}`, {...initReq, method: "GET"})
|
|
171
|
+
}
|
|
172
|
+
static DeleteAPI(req: SkoalaApiHostedV1alpha1Api.DeleteAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.DeleteAPIRes> {
|
|
173
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Api.DeleteAPIReq, SkoalaApiHostedV1alpha1Api.DeleteAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}`, {...initReq, method: "DELETE"})
|
|
123
174
|
}
|
|
124
|
-
static
|
|
125
|
-
return fm.fetchReq<
|
|
175
|
+
static UpdateAPI(req: SkoalaApiHostedV1alpha1Api.UpdateAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Api.UpdateAPIRes> {
|
|
176
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Api.UpdateAPIReq, SkoalaApiHostedV1alpha1Api.UpdateAPIRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/apis/${req["apiName"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
126
177
|
}
|
|
127
|
-
static
|
|
128
|
-
return fm.fetchReq<
|
|
178
|
+
static ListGatewayLog(req: SkoalaApiHostedV1alpha1Apilog.SearchLogReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Apilog.SearchLogRes> {
|
|
179
|
+
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"})
|
|
129
180
|
}
|
|
130
181
|
}
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
|
|
7
|
+
export enum FeatureGateIDEnum {
|
|
8
|
+
METRICS = "METRICS",
|
|
9
|
+
LOGGING = "LOGGING",
|
|
10
|
+
TRACING = "TRACING",
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
export type FeatureGateID = {
|
|
14
|
+
id?: FeatureGateIDEnum
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type FeatureGate = {
|
|
18
|
+
id?: FeatureGateIDEnum
|
|
19
|
+
name?: string
|
|
20
|
+
description?: string
|
|
21
|
+
enabled?: boolean
|
|
22
|
+
status?: string
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type FeatureGatesResp = {
|
|
26
|
+
items?: FeatureGate[]
|
|
27
|
+
}
|