@daocloud-proto/skoala 0.7.2-8 → 0.8.0
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 +6 -0
- package/api/general/v1alpha1/grafana.pb.ts +13 -0
- package/api/general/v1alpha1/skoala.pb.ts +11 -0
- package/api/general/v1alpha1/version.pb.ts +6 -0
- package/api/hosted/v1alpha1/apilog.pb.ts +4 -0
- package/api/hosted/v1alpha1/gateway.pb.ts +43 -0
- package/api/hosted/v1alpha1/gateway_plugin.pb.ts +15 -12
- package/api/hosted/v1alpha1/gatewaylog.pb.ts +29 -0
- package/api/hosted/v1alpha1/http.pb.ts +25 -5
- package/api/hosted/v1alpha1/mesh.pb.ts +112 -0
- package/api/hosted/v1alpha1/nacos.pb.ts +39 -24
- package/api/hosted/v1alpha1/plugins.pb.ts +13 -0
- package/api/hosted/v1alpha1/sentinel.pb.ts +26 -3
- package/api/hosted/v1alpha1/virtualhost.pb.ts +24 -0
- package/api/integrated/v1alpha1/instance.pb.ts +7 -3
- package/api/integrated/v1alpha1/service.pb.ts +3 -3
- package/api/skoala/v1alpha1/skoala.pb.ts +68 -16
- package/package.json +1 -1
|
@@ -65,6 +65,12 @@ export enum PluginSwitchStatus {
|
|
|
65
65
|
Off = "Off",
|
|
66
66
|
}
|
|
67
67
|
|
|
68
|
+
export enum Prerequisite {
|
|
69
|
+
PREREQUISITE_UNSPECIFIED = "PREREQUISITE_UNSPECIFIED",
|
|
70
|
+
InsightAgent = "InsightAgent",
|
|
71
|
+
SkoalaInit = "SkoalaInit",
|
|
72
|
+
}
|
|
73
|
+
|
|
68
74
|
export type Cluster = {
|
|
69
75
|
id?: string
|
|
70
76
|
name?: string
|
|
@@ -0,0 +1,13 @@
|
|
|
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 DashboardType {
|
|
8
|
+
DASHBOARD_TYPE_UNSPECIFIED = "DASHBOARD_TYPE_UNSPECIFIED",
|
|
9
|
+
AppsSentinel = "AppsSentinel",
|
|
10
|
+
SesameContour = "SesameContour",
|
|
11
|
+
SesameEnvoy = "SesameEnvoy",
|
|
12
|
+
Nacos = "Nacos",
|
|
13
|
+
}
|
|
@@ -71,6 +71,7 @@ export type ListMeshServiceReq = {
|
|
|
71
71
|
workspaceId?: string
|
|
72
72
|
meshId?: string
|
|
73
73
|
namespaceName?: string[]
|
|
74
|
+
serviceName?: string
|
|
74
75
|
page?: number
|
|
75
76
|
pageSize?: number
|
|
76
77
|
}
|
|
@@ -132,4 +133,14 @@ export type ListStorageClassesReq = {
|
|
|
132
133
|
|
|
133
134
|
export type ListStorageClassesRes = {
|
|
134
135
|
items?: string[]
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
export type GetPrerequisiteReq = {
|
|
139
|
+
workspaceId?: string
|
|
140
|
+
clusterName?: string
|
|
141
|
+
prerequisite?: SkoalaApiGeneralV1alpha1Common.Prerequisite
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
export type GetPrerequisiteRes = {
|
|
145
|
+
ok?: boolean
|
|
135
146
|
}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
/*
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
|
+
|
|
7
|
+
import * as SkoalaApiGeneralV1alpha1Common from "./common.pb"
|
|
6
8
|
export type Version = {
|
|
7
9
|
version?: string
|
|
8
10
|
gitCommit?: string
|
|
@@ -12,4 +14,8 @@ export type Version = {
|
|
|
12
14
|
|
|
13
15
|
export type GetVersionRes = {
|
|
14
16
|
version?: Version
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type GetHiveChartsRes = {
|
|
20
|
+
nacos?: SkoalaApiGeneralV1alpha1Common.Chart
|
|
15
21
|
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import * as InsightIoApiMetricV1alpha1Metric from "../../../metric/v1alpha1/metric.pb"
|
|
8
8
|
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
9
|
+
import * as SkoalaApiGeneralV1alpha1Grafana from "../../general/v1alpha1/grafana.pb"
|
|
9
10
|
import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
|
|
10
11
|
import * as SkoalaApiGeneralV1alpha1Service from "../../general/v1alpha1/service.pb"
|
|
11
12
|
|
|
@@ -81,6 +82,11 @@ export enum LogLogLevel {
|
|
|
81
82
|
Off = "Off",
|
|
82
83
|
}
|
|
83
84
|
|
|
85
|
+
export enum ListGatewayPodContainerReqComponentType {
|
|
86
|
+
contour = "contour",
|
|
87
|
+
envoy = "envoy",
|
|
88
|
+
}
|
|
89
|
+
|
|
84
90
|
export type Node = {
|
|
85
91
|
total?: number
|
|
86
92
|
online?: number
|
|
@@ -135,6 +141,12 @@ export type GetGatewayReq = {
|
|
|
135
141
|
gatewayName?: string
|
|
136
142
|
}
|
|
137
143
|
|
|
144
|
+
export type GetGatewayChartsRes = {
|
|
145
|
+
sesame?: SkoalaApiGeneralV1alpha1Common.Chart
|
|
146
|
+
rls?: SkoalaApiGeneralV1alpha1Common.Chart
|
|
147
|
+
authz?: SkoalaApiGeneralV1alpha1Common.Chart
|
|
148
|
+
}
|
|
149
|
+
|
|
138
150
|
export type GetGatewayRes = {
|
|
139
151
|
gateways?: Gateway
|
|
140
152
|
}
|
|
@@ -223,6 +235,7 @@ export type NormalConfig = {
|
|
|
223
235
|
}
|
|
224
236
|
|
|
225
237
|
export type GatewayConfig = {
|
|
238
|
+
chart?: SkoalaApiGeneralV1alpha1Common.Chart
|
|
226
239
|
normal?: NormalConfig
|
|
227
240
|
advanced?: AdvancedConfig
|
|
228
241
|
}
|
|
@@ -340,6 +353,23 @@ export type GatewayDiagnosticReq = {
|
|
|
340
353
|
diagnostic?: GatewayDiagnostic
|
|
341
354
|
}
|
|
342
355
|
|
|
356
|
+
export type ListGatewayPodContainerReq = {
|
|
357
|
+
workspaceId?: string
|
|
358
|
+
clusterName?: string
|
|
359
|
+
namespaceName?: string
|
|
360
|
+
gatewayName?: string
|
|
361
|
+
component?: ListGatewayPodContainerReqComponentType
|
|
362
|
+
}
|
|
363
|
+
|
|
364
|
+
export type ListGatewayPodContainerRes = {
|
|
365
|
+
items?: PodContainers[]
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
export type PodContainers = {
|
|
369
|
+
podName?: string
|
|
370
|
+
containerName?: string[]
|
|
371
|
+
}
|
|
372
|
+
|
|
343
373
|
export type PodSummary = {
|
|
344
374
|
podName?: string
|
|
345
375
|
namespaceName?: string
|
|
@@ -455,4 +485,17 @@ export type Alert = {
|
|
|
455
485
|
startTime?: number
|
|
456
486
|
endTime?: number
|
|
457
487
|
stats?: {[key: string]: string}
|
|
488
|
+
}
|
|
489
|
+
|
|
490
|
+
export type GetGatewayMetricDashboardReq = {
|
|
491
|
+
workspaceId?: string
|
|
492
|
+
clusterName?: string
|
|
493
|
+
namespaceName?: string
|
|
494
|
+
gatewayName?: string
|
|
495
|
+
dashboardType?: SkoalaApiGeneralV1alpha1Grafana.DashboardType
|
|
496
|
+
}
|
|
497
|
+
|
|
498
|
+
export type GetGatewayMetricDashboardRes = {
|
|
499
|
+
url?: string
|
|
500
|
+
zhUrl?: string
|
|
458
501
|
}
|
|
@@ -6,12 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
8
|
import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
|
|
9
|
-
export type GatewayRLSConfig = {
|
|
10
|
-
chart?: SkoalaApiGeneralV1alpha1Common.Chart
|
|
11
|
-
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
12
|
-
replicas?: number
|
|
13
|
-
}
|
|
14
|
-
|
|
15
9
|
export type GatewayRLSRule = {
|
|
16
10
|
unit?: SkoalaApiGeneralV1alpha1Common.TimeUnit
|
|
17
11
|
requestsPerUnit?: number
|
|
@@ -41,7 +35,7 @@ export type SetGatewayRLSConfigReq = {
|
|
|
41
35
|
clusterName?: string
|
|
42
36
|
namespaceName?: string
|
|
43
37
|
gatewayName?: string
|
|
44
|
-
config?:
|
|
38
|
+
config?: GatewayPluginConfig
|
|
45
39
|
}
|
|
46
40
|
|
|
47
41
|
export type GetGatewayRLSConfigReq = {
|
|
@@ -52,7 +46,7 @@ export type GetGatewayRLSConfigReq = {
|
|
|
52
46
|
}
|
|
53
47
|
|
|
54
48
|
export type GetGatewayRLSConfigRes = {
|
|
55
|
-
config?:
|
|
49
|
+
config?: GatewayPluginConfig
|
|
56
50
|
}
|
|
57
51
|
|
|
58
52
|
export type SetGatewayRLSRuleReq = {
|
|
@@ -74,15 +68,18 @@ export type GetGatewayRLSRuleRes = {
|
|
|
74
68
|
rule?: GatewayRLSRule
|
|
75
69
|
}
|
|
76
70
|
|
|
77
|
-
export type
|
|
71
|
+
export type GatewayPluginConfig = {
|
|
78
72
|
chart?: SkoalaApiGeneralV1alpha1Common.Chart
|
|
73
|
+
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
74
|
+
replicas?: number
|
|
79
75
|
}
|
|
80
76
|
|
|
81
|
-
export type
|
|
77
|
+
export type SwitchGatewayAuthzReq = {
|
|
82
78
|
workspaceId?: string
|
|
83
79
|
clusterName?: string
|
|
84
80
|
namespaceName?: string
|
|
85
81
|
gatewayName?: string
|
|
82
|
+
switch?: SkoalaApiGeneralV1alpha1Common.PluginSwitchStatus
|
|
86
83
|
}
|
|
87
84
|
|
|
88
85
|
export type GetGatewayAuthzReq = {
|
|
@@ -93,18 +90,24 @@ export type GetGatewayAuthzReq = {
|
|
|
93
90
|
}
|
|
94
91
|
|
|
95
92
|
export type GetGatewayAuthzRes = {
|
|
93
|
+
switch?: SkoalaApiGeneralV1alpha1Common.PluginSwitchStatus
|
|
96
94
|
}
|
|
97
95
|
|
|
98
|
-
export type
|
|
96
|
+
export type SetGatewayAuthzConfigReq = {
|
|
99
97
|
workspaceId?: string
|
|
100
98
|
clusterName?: string
|
|
101
99
|
namespaceName?: string
|
|
102
100
|
gatewayName?: string
|
|
101
|
+
config?: GatewayPluginConfig
|
|
103
102
|
}
|
|
104
103
|
|
|
105
|
-
export type
|
|
104
|
+
export type GetGatewayAuthzConfigReq = {
|
|
106
105
|
workspaceId?: string
|
|
107
106
|
clusterName?: string
|
|
108
107
|
namespaceName?: string
|
|
109
108
|
gatewayName?: string
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export type GetGatewayAuthzConfigRes = {
|
|
112
|
+
config?: GatewayPluginConfig
|
|
110
113
|
}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
/* eslint-disable */
|
|
2
|
+
// @ts-nocheck
|
|
3
|
+
/*
|
|
4
|
+
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
|
+
*/
|
|
6
|
+
export type GetPodContainerLogReq = {
|
|
7
|
+
workspaceId?: string
|
|
8
|
+
gatewayName?: string
|
|
9
|
+
clusterName?: string
|
|
10
|
+
namespaceName?: string
|
|
11
|
+
podName?: string
|
|
12
|
+
container?: string
|
|
13
|
+
startTime?: string
|
|
14
|
+
endTime?: string
|
|
15
|
+
page?: number
|
|
16
|
+
pageSize?: number
|
|
17
|
+
logSearch?: string
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type GetPodContainerLogResData = {
|
|
21
|
+
log?: string
|
|
22
|
+
timeStamp?: string
|
|
23
|
+
labels?: {[key: string]: string}
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
export type GetPodContainerLogRes = {
|
|
27
|
+
total?: number
|
|
28
|
+
items?: GetPodContainerLogResData[]
|
|
29
|
+
}
|
|
@@ -37,11 +37,6 @@ export enum RouteType {
|
|
|
37
37
|
UNKNOW = "UNKNOW",
|
|
38
38
|
}
|
|
39
39
|
|
|
40
|
-
export enum APIStatus {
|
|
41
|
-
UP = "UP",
|
|
42
|
-
DOWN = "DOWN",
|
|
43
|
-
}
|
|
44
|
-
|
|
45
40
|
export type Header = {
|
|
46
41
|
name?: string
|
|
47
42
|
value?: string
|
|
@@ -55,6 +50,29 @@ type BaseHeaderRule = {
|
|
|
55
50
|
export type HeaderRule = BaseHeaderRule
|
|
56
51
|
& OneOf<{ contains: string; exact: string; notContains: string; notExact: string; present: boolean; notPresent: boolean }>
|
|
57
52
|
|
|
53
|
+
export type APIStatus = {
|
|
54
|
+
currentStatus?: string
|
|
55
|
+
description?: string
|
|
56
|
+
conditions?: Conditions[]
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type Conditions = {
|
|
60
|
+
errors?: Status[]
|
|
61
|
+
lastTransitionTime?: string
|
|
62
|
+
message?: string
|
|
63
|
+
reason?: string
|
|
64
|
+
status?: string
|
|
65
|
+
type?: string
|
|
66
|
+
warnings?: Status[]
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type Status = {
|
|
70
|
+
message?: string
|
|
71
|
+
reason?: string
|
|
72
|
+
status?: string
|
|
73
|
+
type?: string
|
|
74
|
+
}
|
|
75
|
+
|
|
58
76
|
export type APIInfo = {
|
|
59
77
|
apiName?: string
|
|
60
78
|
apiGroup?: string
|
|
@@ -64,5 +82,7 @@ export type APIInfo = {
|
|
|
64
82
|
routeType?: RouteType
|
|
65
83
|
enabled?: boolean
|
|
66
84
|
apiStatus?: APIStatus
|
|
85
|
+
status?: string
|
|
86
|
+
statusDescription?: string
|
|
67
87
|
updatedAt?: string
|
|
68
88
|
}
|
|
@@ -0,0 +1,112 @@
|
|
|
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 GoogleProtobufAny from "../../../google/protobuf/any.pb"
|
|
8
|
+
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
9
|
+
|
|
10
|
+
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
11
|
+
type OneOf<T> =
|
|
12
|
+
| { [k in keyof T]?: undefined }
|
|
13
|
+
| (
|
|
14
|
+
keyof T extends infer K ?
|
|
15
|
+
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
16
|
+
: never)
|
|
17
|
+
: never);
|
|
18
|
+
|
|
19
|
+
export enum ResourceType {
|
|
20
|
+
RESOURCE_TYPE_UNSPECIFIED = "RESOURCE_TYPE_UNSPECIFIED",
|
|
21
|
+
VIRTUAL_SERVICE = "VIRTUAL_SERVICE",
|
|
22
|
+
DESTINATION_RULE = "DESTINATION_RULE",
|
|
23
|
+
GATEWAY = "GATEWAY",
|
|
24
|
+
SERVICE_ENTRY = "SERVICE_ENTRY",
|
|
25
|
+
ENVOY_FILTER = "ENVOY_FILTER",
|
|
26
|
+
PROXY_CONFIG = "PROXY_CONFIG",
|
|
27
|
+
SIDECAR = "SIDECAR",
|
|
28
|
+
WORKLOAD_GROUP = "WORKLOAD_GROUP",
|
|
29
|
+
WORKLOAD_ENTRY = "WORKLOAD_ENTRY",
|
|
30
|
+
AUTHORIZATION_POLICY = "AUTHORIZATION_POLICY",
|
|
31
|
+
PEER_AUTHENTICATION = "PEER_AUTHENTICATION",
|
|
32
|
+
REQUEST_AUTHENTICATION = "REQUEST_AUTHENTICATION",
|
|
33
|
+
WASM_PLUGIN = "WASM_PLUGIN",
|
|
34
|
+
TELEMETRY = "TELEMETRY",
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
export enum OutputFormat {
|
|
38
|
+
OUTPUT_FORMAT_UNSPECIFIED = "OUTPUT_FORMAT_UNSPECIFIED",
|
|
39
|
+
YAML = "YAML",
|
|
40
|
+
SPEC = "SPEC",
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
type BaseIstioResource = {
|
|
45
|
+
type?: ResourceType
|
|
46
|
+
meshId?: string
|
|
47
|
+
namespace?: string
|
|
48
|
+
name?: string
|
|
49
|
+
createTime?: number
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export type IstioResource = BaseIstioResource
|
|
53
|
+
& OneOf<{ yaml: string; spec: GoogleProtobufAny.Any }>
|
|
54
|
+
|
|
55
|
+
export type ListMeshResourceReq = {
|
|
56
|
+
workspaceId?: string
|
|
57
|
+
clusterName?: string
|
|
58
|
+
namespaceName?: string
|
|
59
|
+
meshId?: string
|
|
60
|
+
type?: ResourceType
|
|
61
|
+
output?: OutputFormat
|
|
62
|
+
page?: number
|
|
63
|
+
pageSize?: number
|
|
64
|
+
pageSearch?: string
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export type ListMeshResourceRes = {
|
|
68
|
+
items?: IstioResource[]
|
|
69
|
+
pagination?: SkoalaApiGeneralV1alpha1Common.Pagination
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export type GetMeshResourceReq = {
|
|
73
|
+
workspaceId?: string
|
|
74
|
+
clusterName?: string
|
|
75
|
+
namespaceName?: string
|
|
76
|
+
meshId?: string
|
|
77
|
+
type?: ResourceType
|
|
78
|
+
output?: OutputFormat
|
|
79
|
+
name?: string
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export type GetMeshResourceRes = {
|
|
83
|
+
item?: IstioResource
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
|
|
87
|
+
type BaseCreateMeshResourceReq = {
|
|
88
|
+
workspaceId?: string
|
|
89
|
+
clusterName?: string
|
|
90
|
+
namespaceName?: string
|
|
91
|
+
meshId?: string
|
|
92
|
+
type?: ResourceType
|
|
93
|
+
name?: string
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type CreateMeshResourceReq = BaseCreateMeshResourceReq
|
|
97
|
+
& OneOf<{ yaml: string; spec: GoogleProtobufAny.Any }>
|
|
98
|
+
|
|
99
|
+
export type DeleteMeshResourceReq = {
|
|
100
|
+
workspaceId?: string
|
|
101
|
+
clusterName?: string
|
|
102
|
+
namespaceName?: string
|
|
103
|
+
meshId?: string
|
|
104
|
+
type?: ResourceType
|
|
105
|
+
name?: string
|
|
106
|
+
meshNamespace?: string
|
|
107
|
+
output?: OutputFormat
|
|
108
|
+
}
|
|
109
|
+
|
|
110
|
+
export type GetAnyType = {
|
|
111
|
+
type?: ResourceType
|
|
112
|
+
}
|
|
@@ -19,6 +19,12 @@ export enum NacosConfigFileType {
|
|
|
19
19
|
properties = "properties",
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
+
export enum NodeType {
|
|
23
|
+
TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
|
|
24
|
+
FOLLOWER = "FOLLOWER",
|
|
25
|
+
LEADER = "LEADER",
|
|
26
|
+
}
|
|
27
|
+
|
|
22
28
|
export enum NacosStatus {
|
|
23
29
|
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
24
30
|
Running = "Running",
|
|
@@ -27,12 +33,6 @@ export enum NacosStatus {
|
|
|
27
33
|
Scaling = "Scaling",
|
|
28
34
|
}
|
|
29
35
|
|
|
30
|
-
export enum NacosConditionType {
|
|
31
|
-
TYPE_UNSPECIFIED = "TYPE_UNSPECIFIED",
|
|
32
|
-
FOLLOWER = "FOLLOWER",
|
|
33
|
-
LEADER = "LEADER",
|
|
34
|
-
}
|
|
35
|
-
|
|
36
36
|
export enum NacosConditionStatus {
|
|
37
37
|
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
38
38
|
UNKNOWN = "UNKNOWN",
|
|
@@ -46,6 +46,13 @@ export enum NacosConfigType {
|
|
|
46
46
|
cluster = "cluster",
|
|
47
47
|
}
|
|
48
48
|
|
|
49
|
+
export enum NacosConfigHistoryBriefOpType {
|
|
50
|
+
OP_TYPE_UNSPECIFIED = "OP_TYPE_UNSPECIFIED",
|
|
51
|
+
CREATE = "CREATE",
|
|
52
|
+
UPDATE = "UPDATE",
|
|
53
|
+
DELETE = "DELETE",
|
|
54
|
+
}
|
|
55
|
+
|
|
49
56
|
export enum CreateNacosConfigReqPolicy {
|
|
50
57
|
POLICY_TYPE_UNSPECIFIED = "POLICY_TYPE_UNSPECIFIED",
|
|
51
58
|
ABORT = "ABORT",
|
|
@@ -80,7 +87,7 @@ export type Nacos = {
|
|
|
80
87
|
namespaceName?: string
|
|
81
88
|
type?: NacosConfigType
|
|
82
89
|
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
83
|
-
|
|
90
|
+
ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
|
|
84
91
|
status?: NacosStatus
|
|
85
92
|
replicas?: number
|
|
86
93
|
image?: string
|
|
@@ -103,7 +110,7 @@ export type NacosDatabase = {
|
|
|
103
110
|
}
|
|
104
111
|
|
|
105
112
|
export type NacosCondition = {
|
|
106
|
-
type?:
|
|
113
|
+
type?: NodeType
|
|
107
114
|
status?: NacosConditionStatus
|
|
108
115
|
reason?: string
|
|
109
116
|
message?: string
|
|
@@ -161,10 +168,11 @@ export type NacosConfig = {
|
|
|
161
168
|
replicas?: number
|
|
162
169
|
resources?: SkoalaApiGeneralV1alpha1Resource.ResourceRequirements
|
|
163
170
|
serviceType?: SkoalaApiGeneralV1alpha1Service.ServiceType
|
|
164
|
-
|
|
171
|
+
ports?: SkoalaApiGeneralV1alpha1Service.ServicePort[]
|
|
165
172
|
databaseEnabled?: boolean
|
|
166
173
|
databaseParam?: DatabaseParam
|
|
167
174
|
volume?: Volume
|
|
175
|
+
insightEnabled?: boolean
|
|
168
176
|
}
|
|
169
177
|
|
|
170
178
|
export type Volume = {
|
|
@@ -208,6 +216,7 @@ export type NacosServiceBrief = {
|
|
|
208
216
|
triggerFlag?: boolean
|
|
209
217
|
nacosNamespace?: string
|
|
210
218
|
insight?: SkoalaApiGeneralV1alpha1Insight.InsightBrief
|
|
219
|
+
governed?: boolean
|
|
211
220
|
}
|
|
212
221
|
|
|
213
222
|
export type NacosInstanceCluster = {
|
|
@@ -398,12 +407,11 @@ export type GetNacosServiceInstanceInsightReq = {
|
|
|
398
407
|
namespaceName?: string
|
|
399
408
|
nacosNamespace?: string
|
|
400
409
|
nacosGroupName?: string
|
|
401
|
-
nacosClusterName?: string
|
|
402
410
|
nacosService?: string
|
|
403
|
-
ip?: string
|
|
404
|
-
port?: number
|
|
405
|
-
ephemeral?: boolean
|
|
406
411
|
nacosInstanceId?: string
|
|
412
|
+
metadata?: {[key: string]: string}
|
|
413
|
+
start?: string
|
|
414
|
+
end?: string
|
|
407
415
|
}
|
|
408
416
|
|
|
409
417
|
export type GetNacosServiceInstanceInsightRes = {
|
|
@@ -605,7 +613,7 @@ export type NacosConfigHistoryBrief = {
|
|
|
605
613
|
lastId?: number
|
|
606
614
|
lastModifyTime?: string
|
|
607
615
|
md5?: string
|
|
608
|
-
opType?:
|
|
616
|
+
opType?: NacosConfigHistoryBriefOpType
|
|
609
617
|
srcIp?: string
|
|
610
618
|
srcUser?: string
|
|
611
619
|
tenant?: string
|
|
@@ -729,6 +737,7 @@ export type RollbackNacosConfigReq = {
|
|
|
729
737
|
group?: string
|
|
730
738
|
content?: string
|
|
731
739
|
appName?: string
|
|
740
|
+
type?: NacosConfigFileType
|
|
732
741
|
}
|
|
733
742
|
|
|
734
743
|
export type DeleteNacosConfigReq = {
|
|
@@ -739,16 +748,7 @@ export type DeleteNacosConfigReq = {
|
|
|
739
748
|
nacosNamespace?: string
|
|
740
749
|
dataId?: string
|
|
741
750
|
group?: string
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
export type DeleteNacosConfigBatchReq = {
|
|
745
|
-
workspaceId?: string
|
|
746
|
-
clusterName?: string
|
|
747
|
-
namespaceName?: string
|
|
748
|
-
nacosName?: string
|
|
749
|
-
nacosNamespace?: string
|
|
750
|
-
dataId?: string
|
|
751
|
-
group?: string
|
|
751
|
+
delType?: string
|
|
752
752
|
ids?: string
|
|
753
753
|
}
|
|
754
754
|
|
|
@@ -768,6 +768,7 @@ export type LeaveNodeReq = {
|
|
|
768
768
|
clusterName?: string
|
|
769
769
|
namespaceName?: string
|
|
770
770
|
nacosName?: string
|
|
771
|
+
nodeAddresses?: string[]
|
|
771
772
|
}
|
|
772
773
|
|
|
773
774
|
export type ReportNodeReq = {
|
|
@@ -786,6 +787,8 @@ export type NacosNode = {
|
|
|
786
787
|
metadata?: string
|
|
787
788
|
abilities?: string
|
|
788
789
|
failAccessCnt?: number
|
|
790
|
+
type?: NodeType
|
|
791
|
+
modifyTime?: string
|
|
789
792
|
}
|
|
790
793
|
|
|
791
794
|
export type CheckNacosConfigReq = {
|
|
@@ -816,4 +819,16 @@ export type CheckNacosConfigRes = {
|
|
|
816
819
|
tenant?: string
|
|
817
820
|
type?: NacosConfigFileType
|
|
818
821
|
use?: string
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
export type GetNacosGrafanaReq = {
|
|
825
|
+
workspaceId?: string
|
|
826
|
+
clusterName?: string
|
|
827
|
+
namespaceName?: string
|
|
828
|
+
nacosName?: string
|
|
829
|
+
}
|
|
830
|
+
|
|
831
|
+
export type GetNacosGrafanaRes = {
|
|
832
|
+
url?: string
|
|
833
|
+
zhUrl?: string
|
|
819
834
|
}
|
|
@@ -8,6 +8,13 @@ import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.p
|
|
|
8
8
|
import * as SkoalaApiGeneralV1alpha1Resource from "../../general/v1alpha1/resource.pb"
|
|
9
9
|
import * as SkoalaApiGeneralV1alpha1Service from "../../general/v1alpha1/service.pb"
|
|
10
10
|
|
|
11
|
+
export enum GetMeshPluginResMeshMode {
|
|
12
|
+
MESH_MODE_UNSPECIFIED = "MESH_MODE_UNSPECIFIED",
|
|
13
|
+
HOSTED = "HOSTED",
|
|
14
|
+
DEDICATED = "DEDICATED",
|
|
15
|
+
EXTERNAL = "EXTERNAL",
|
|
16
|
+
}
|
|
17
|
+
|
|
11
18
|
export enum GetGovernResMode {
|
|
12
19
|
Unknown = "Unknown",
|
|
13
20
|
Sentinel = "Sentinel",
|
|
@@ -67,6 +74,11 @@ export type GetMeshPluginReq = {
|
|
|
67
74
|
|
|
68
75
|
export type GetMeshPluginRes = {
|
|
69
76
|
name?: string
|
|
77
|
+
enabled?: boolean
|
|
78
|
+
mode?: GetMeshPluginResMeshMode
|
|
79
|
+
ownerCluster?: string
|
|
80
|
+
version?: string
|
|
81
|
+
capacity?: string
|
|
70
82
|
}
|
|
71
83
|
|
|
72
84
|
export type UpdatePluginReq = {
|
|
@@ -116,4 +128,5 @@ export type GetSentinelRes = {
|
|
|
116
128
|
|
|
117
129
|
export type GetMeshRes = {
|
|
118
130
|
name?: string
|
|
131
|
+
enabled?: boolean
|
|
119
132
|
}
|
|
@@ -34,7 +34,7 @@ export enum AuthorityRuleStrategy {
|
|
|
34
34
|
AUTHORITY_BLACK = "AUTHORITY_BLACK",
|
|
35
35
|
}
|
|
36
36
|
|
|
37
|
-
export type
|
|
37
|
+
export type GetInsGovernReq = {
|
|
38
38
|
workspaceId?: string
|
|
39
39
|
clusterName?: string
|
|
40
40
|
namespaceName?: string
|
|
@@ -43,14 +43,37 @@ export type GetAppInstanceReq = {
|
|
|
43
43
|
instanceIp?: string
|
|
44
44
|
}
|
|
45
45
|
|
|
46
|
-
export type
|
|
46
|
+
export type GetInsGovernRes = {
|
|
47
47
|
name?: string
|
|
48
48
|
healthy?: boolean
|
|
49
|
-
|
|
49
|
+
heartbeatPort?: number
|
|
50
50
|
version?: string
|
|
51
51
|
lastHeartbeat?: string
|
|
52
52
|
}
|
|
53
53
|
|
|
54
|
+
export type DeleteInsGovernReq = {
|
|
55
|
+
workspaceId?: string
|
|
56
|
+
clusterName?: string
|
|
57
|
+
namespaceName?: string
|
|
58
|
+
sentinelName?: string
|
|
59
|
+
serviceName?: string
|
|
60
|
+
instanceIp?: string
|
|
61
|
+
heartbeatPort?: number
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type GetAppsSentinelGrafanaReq = {
|
|
65
|
+
workspaceId?: string
|
|
66
|
+
clusterName?: string
|
|
67
|
+
namespaceName?: string
|
|
68
|
+
sentinelName?: string
|
|
69
|
+
app?: string
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export type GetAppsSentinelGrafanaRes = {
|
|
73
|
+
url?: string
|
|
74
|
+
zhUrl?: string
|
|
75
|
+
}
|
|
76
|
+
|
|
54
77
|
export type FlowRule = {
|
|
55
78
|
id?: number
|
|
56
79
|
app?: string
|
|
@@ -29,6 +29,27 @@ export type VirtualhostConfig = {
|
|
|
29
29
|
rateLimitPolicy?: RateLimitPolicy
|
|
30
30
|
corsPolicy?: CorsPolicy
|
|
31
31
|
tlsPolicy?: VirtualhostTLSPolicy
|
|
32
|
+
jwtProviders?: JwtProvider[]
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type JwtProvider = {
|
|
36
|
+
audiences?: string
|
|
37
|
+
default?: boolean
|
|
38
|
+
issuer?: string
|
|
39
|
+
name?: string
|
|
40
|
+
remoteJwks?: RemoteJWKS
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type RemoteJWKS = {
|
|
44
|
+
cacheDuration?: string
|
|
45
|
+
timeout?: string
|
|
46
|
+
uri?: string
|
|
47
|
+
validation?: Validation
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type Validation = {
|
|
51
|
+
caSecret?: string
|
|
52
|
+
subjectName?: string
|
|
32
53
|
}
|
|
33
54
|
|
|
34
55
|
export type VirtualhostTLSPolicy = {
|
|
@@ -81,6 +102,9 @@ export type GetVirtualhostReq = {
|
|
|
81
102
|
export type GetVirtualhostRes = {
|
|
82
103
|
fqdn?: string
|
|
83
104
|
protocol?: SkoalaApiHostedV1alpha1Http.Protocol
|
|
105
|
+
apiCount?: number
|
|
106
|
+
createAt?: string
|
|
107
|
+
updatedAt?: string
|
|
84
108
|
rateLimitPolicy?: RateLimitPolicy
|
|
85
109
|
corsPolicy?: CorsPolicy
|
|
86
110
|
tlsPolicy?: VirtualhostTLSPolicy
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
8
|
import * as SkoalaApiGeneralV1alpha1Insight from "../../general/v1alpha1/insight.pb"
|
|
9
|
-
import * as
|
|
9
|
+
import * as SkoalaApiIntegratedV1alpha1Registry from "./registry.pb"
|
|
10
10
|
|
|
11
11
|
export enum InstanceStatus {
|
|
12
12
|
STATUS_UNSPECIFIED = "STATUS_UNSPECIFIED",
|
|
@@ -25,8 +25,7 @@ export type Instance = {
|
|
|
25
25
|
metadata?: {[key: string]: string}
|
|
26
26
|
detail?: {[key: string]: string}
|
|
27
27
|
updateAt?: string
|
|
28
|
-
insight?:
|
|
29
|
-
insightTemp?: SkoalaApiGeneralV1alpha1Insight.InsightBrief
|
|
28
|
+
insight?: SkoalaApiGeneralV1alpha1Insight.InsightBrief
|
|
30
29
|
}
|
|
31
30
|
|
|
32
31
|
export type ListInstanceReq = {
|
|
@@ -65,6 +64,11 @@ export type GetInstanceInsightReq = {
|
|
|
65
64
|
groupName?: string
|
|
66
65
|
serviceName?: string
|
|
67
66
|
instanceId?: string
|
|
67
|
+
metadata?: {[key: string]: string}
|
|
68
|
+
detail?: {[key: string]: string}
|
|
69
|
+
registryType?: SkoalaApiIntegratedV1alpha1Registry.RegistryType
|
|
70
|
+
start?: string
|
|
71
|
+
end?: string
|
|
68
72
|
}
|
|
69
73
|
|
|
70
74
|
export type GetInstanceInsightRes = {
|
|
@@ -6,7 +6,6 @@
|
|
|
6
6
|
|
|
7
7
|
import * as SkoalaApiGeneralV1alpha1Common from "../../general/v1alpha1/common.pb"
|
|
8
8
|
import * as SkoalaApiGeneralV1alpha1Insight from "../../general/v1alpha1/insight.pb"
|
|
9
|
-
import * as SkoalaApiIntegratedV1alpha1Insight from "./insight.pb"
|
|
10
9
|
import * as SkoalaApiIntegratedV1alpha1Registry from "./registry.pb"
|
|
11
10
|
export type Service = {
|
|
12
11
|
name?: string
|
|
@@ -15,8 +14,7 @@ export type Service = {
|
|
|
15
14
|
instanceCount?: number
|
|
16
15
|
registry?: SkoalaApiIntegratedV1alpha1Registry.Registry
|
|
17
16
|
detail?: {[key: string]: string}
|
|
18
|
-
insight?:
|
|
19
|
-
insightTemp?: SkoalaApiGeneralV1alpha1Insight.InsightBrief
|
|
17
|
+
insight?: SkoalaApiGeneralV1alpha1Insight.InsightBrief
|
|
20
18
|
}
|
|
21
19
|
|
|
22
20
|
export type ListServiceReq = {
|
|
@@ -52,6 +50,8 @@ export type GetServiceInsightReq = {
|
|
|
52
50
|
namespaceId?: string
|
|
53
51
|
groupName?: string
|
|
54
52
|
serviceName?: string
|
|
53
|
+
regType?: string
|
|
54
|
+
detail?: {[key: string]: string}
|
|
55
55
|
start?: string
|
|
56
56
|
end?: string
|
|
57
57
|
}
|
|
@@ -6,6 +6,7 @@
|
|
|
6
6
|
|
|
7
7
|
import * as fm from "../../../fetch.pb"
|
|
8
8
|
import * as GoogleApiHttpbody from "../../../google/api/httpbody.pb"
|
|
9
|
+
import * as GoogleProtobufAny from "../../../google/protobuf/any.pb"
|
|
9
10
|
import * as GoogleProtobufEmpty from "../../../google/protobuf/empty.pb"
|
|
10
11
|
import * as SkoalaApiGeneralV1alpha1Skoala from "../../general/v1alpha1/skoala.pb"
|
|
11
12
|
import * as SkoalaApiGeneralV1alpha1Version from "../../general/v1alpha1/version.pb"
|
|
@@ -15,6 +16,8 @@ import * as SkoalaApiHostedV1alpha1Gateway from "../../hosted/v1alpha1/gateway.p
|
|
|
15
16
|
import * as SkoalaApiHostedV1alpha1Gateway_plugin from "../../hosted/v1alpha1/gateway_plugin.pb"
|
|
16
17
|
import * as SkoalaApiHostedV1alpha1Gateway_secret from "../../hosted/v1alpha1/gateway_secret.pb"
|
|
17
18
|
import * as SkoalaApiHostedV1alpha1Gateway_service from "../../hosted/v1alpha1/gateway_service.pb"
|
|
19
|
+
import * as SkoalaApiHostedV1alpha1Gatewaylog from "../../hosted/v1alpha1/gatewaylog.pb"
|
|
20
|
+
import * as SkoalaApiHostedV1alpha1Mesh from "../../hosted/v1alpha1/mesh.pb"
|
|
18
21
|
import * as SkoalaApiHostedV1alpha1Nacos from "../../hosted/v1alpha1/nacos.pb"
|
|
19
22
|
import * as SkoalaApiHostedV1alpha1Plugins from "../../hosted/v1alpha1/plugins.pb"
|
|
20
23
|
import * as SkoalaApiHostedV1alpha1Sentinel from "../../hosted/v1alpha1/sentinel.pb"
|
|
@@ -26,6 +29,9 @@ export class Hive {
|
|
|
26
29
|
static GetVersion(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Version.GetVersionRes> {
|
|
27
30
|
return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiGeneralV1alpha1Version.GetVersionRes>(`/apis/hive.skoala.io/v1alpha1/version?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
28
31
|
}
|
|
32
|
+
static GetCharts(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Version.GetHiveChartsRes> {
|
|
33
|
+
return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiGeneralV1alpha1Version.GetHiveChartsRes>(`/apis/hive.skoala.io/v1alpha1/charts?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
34
|
+
}
|
|
29
35
|
}
|
|
30
36
|
export class Sesame {
|
|
31
37
|
static GetVersion(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Version.GetVersionRes> {
|
|
@@ -60,6 +66,9 @@ export class Skoala {
|
|
|
60
66
|
static ListClusterStorageClasses(req: SkoalaApiGeneralV1alpha1Skoala.ListStorageClassesReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.ListStorageClassesRes> {
|
|
61
67
|
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.ListStorageClassesReq, SkoalaApiGeneralV1alpha1Skoala.ListStorageClassesRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/storage_classes?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName"])}`, {...initReq, method: "GET"})
|
|
62
68
|
}
|
|
69
|
+
static GetPrerequisite(req: SkoalaApiGeneralV1alpha1Skoala.GetPrerequisiteReq, initReq?: fm.InitReq): Promise<SkoalaApiGeneralV1alpha1Skoala.GetPrerequisiteRes> {
|
|
70
|
+
return fm.fetchReq<SkoalaApiGeneralV1alpha1Skoala.GetPrerequisiteReq, SkoalaApiGeneralV1alpha1Skoala.GetPrerequisiteRes>(`/apis/skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/prerequisites/${req["prerequisite"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "prerequisite"])}`, {...initReq, method: "GET"})
|
|
71
|
+
}
|
|
63
72
|
}
|
|
64
73
|
export class Registry {
|
|
65
74
|
static List(req: SkoalaApiIntegratedV1alpha1Registry.ListRegistryReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Registry.ListRegistryRes> {
|
|
@@ -87,7 +96,7 @@ export class Registry {
|
|
|
87
96
|
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Service.GetServiceReq, SkoalaApiIntegratedV1alpha1Service.GetServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "registryId", "serviceName"])}`, {...initReq, method: "GET"})
|
|
88
97
|
}
|
|
89
98
|
static GetServiceInsight(req: SkoalaApiIntegratedV1alpha1Service.GetServiceInsightReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Service.GetServiceInsightRes> {
|
|
90
|
-
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Service.GetServiceInsightReq, SkoalaApiIntegratedV1alpha1Service.GetServiceInsightRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}/insight
|
|
99
|
+
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Service.GetServiceInsightReq, SkoalaApiIntegratedV1alpha1Service.GetServiceInsightRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}/insight`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
91
100
|
}
|
|
92
101
|
static GetServiceAPI(req: SkoalaApiIntegratedV1alpha1Service.GetServiceAPIReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Service.GetServiceAPIRes> {
|
|
93
102
|
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Service.GetServiceAPIReq, SkoalaApiIntegratedV1alpha1Service.GetServiceAPIRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}/apis?${fm.renderURLSearchParams(req, ["workspaceId", "registryId", "serviceName"])}`, {...initReq, method: "GET"})
|
|
@@ -108,7 +117,7 @@ export class Registry {
|
|
|
108
117
|
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"})
|
|
109
118
|
}
|
|
110
119
|
static GetInstanceInsight(req: SkoalaApiIntegratedV1alpha1Instance.GetInstanceInsightReq, initReq?: fm.InitReq): Promise<SkoalaApiIntegratedV1alpha1Instance.GetInstanceInsightRes> {
|
|
111
|
-
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.GetInstanceInsightReq, SkoalaApiIntegratedV1alpha1Instance.GetInstanceInsightRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}/instances/${req["instanceId"]}/insight
|
|
120
|
+
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.GetInstanceInsightReq, SkoalaApiIntegratedV1alpha1Instance.GetInstanceInsightRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/registries/${req["registryId"]}/services/${req["serviceName"]}/instances/${req["instanceId"]}/insight`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
112
121
|
}
|
|
113
122
|
static UpdateInstance(req: SkoalaApiIntegratedV1alpha1Instance.UpdateInstanceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
114
123
|
return fm.fetchReq<SkoalaApiIntegratedV1alpha1Instance.UpdateInstanceReq, GoogleProtobufEmpty.Empty>(`/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)})
|
|
@@ -140,7 +149,7 @@ export class Nacos {
|
|
|
140
149
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetNacosServiceReq, SkoalaApiHostedV1alpha1Nacos.GetNacosServiceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/services/${req["nacosService"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "nacosNamespace", "nacosService"])}`, {...initReq, method: "GET"})
|
|
141
150
|
}
|
|
142
151
|
static GetServiceInsight(req: SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInsightReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInsightRes> {
|
|
143
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInsightReq, SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInsightRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/services/${req["nacosService"]}/insight
|
|
152
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInsightReq, SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInsightRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/services/${req["nacosService"]}/insight`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
144
153
|
}
|
|
145
154
|
static UpdateService(req: SkoalaApiHostedV1alpha1Nacos.UpdateNacosServiceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
146
155
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.UpdateNacosServiceReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/services/${req["nacosService"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
@@ -170,7 +179,7 @@ export class Nacos {
|
|
|
170
179
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInstanceReq, SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInstanceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/services/${req["nacosService"]}/instances/${req["nacosInstanceId"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName", "nacosNamespace", "nacosService", "nacosInstanceId"])}`, {...initReq, method: "GET"})
|
|
171
180
|
}
|
|
172
181
|
static GetServiceInstanceInsight(req: SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInstanceInsightReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInstanceInsightRes> {
|
|
173
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInstanceInsightReq, SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInstanceInsightRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/services/${req["nacosService"]}/instances/${req["nacosInstanceId"]}/insight
|
|
182
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInstanceInsightReq, SkoalaApiHostedV1alpha1Nacos.GetNacosServiceInstanceInsightRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/services/${req["nacosService"]}/instances/${req["nacosInstanceId"]}/insight`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
174
183
|
}
|
|
175
184
|
static UpdateServiceInstance(req: SkoalaApiHostedV1alpha1Nacos.UpdateNacosServiceInstanceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
176
185
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.UpdateNacosServiceInstanceReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/services/${req["nacosService"]}/instances/${req["nacosInstanceId"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
@@ -218,10 +227,7 @@ export class Nacos {
|
|
|
218
227
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.RollbackNacosConfigReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs/${req["dataId"]}/rollback`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
219
228
|
}
|
|
220
229
|
static DeleteConfig(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
221
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs
|
|
222
|
-
}
|
|
223
|
-
static DeleteConfigBatch(req: SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigBatchReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
224
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigBatchReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs`, {...initReq, method: "DELETE"})
|
|
230
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.DeleteNacosConfigReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/namespaces/${req["nacosNamespace"]}/configs`, {...initReq, method: "DELETE", body: JSON.stringify(req, fm.replacer)})
|
|
225
231
|
}
|
|
226
232
|
static ListNode(req: SkoalaApiHostedV1alpha1Nacos.ListNodeReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.ListNodeRes> {
|
|
227
233
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.ListNodeReq, SkoalaApiHostedV1alpha1Nacos.ListNodeRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/nodes?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName"])}`, {...initReq, method: "GET"})
|
|
@@ -237,8 +243,11 @@ export class Nacos {
|
|
|
237
243
|
}
|
|
238
244
|
}
|
|
239
245
|
export class Sentinel {
|
|
240
|
-
static
|
|
241
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.
|
|
246
|
+
static GetInsGovern(req: SkoalaApiHostedV1alpha1Sentinel.GetInsGovernReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetInsGovernRes> {
|
|
247
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetInsGovernReq, SkoalaApiHostedV1alpha1Sentinel.GetInsGovernRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/governs?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName"])}`, {...initReq, method: "GET"})
|
|
248
|
+
}
|
|
249
|
+
static DeleteInsGovern(req: SkoalaApiHostedV1alpha1Sentinel.DeleteInsGovernReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
250
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteInsGovernReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/governs/services/${req["serviceName"]}/instances/${req["instanceIp"]}/heartbeat-ports/${req["heartbeatPort"]}`, {...initReq, method: "DELETE"})
|
|
242
251
|
}
|
|
243
252
|
static CreateFlowRule(req: SkoalaApiHostedV1alpha1Sentinel.CreateFlowRuleReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
244
253
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.CreateFlowRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/flow-rules`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
@@ -316,6 +325,34 @@ export class Sentinel {
|
|
|
316
325
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.DeleteAuthorityRuleReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["appName"]}/authority-rules/${req["ruleId"]}`, {...initReq, method: "DELETE"})
|
|
317
326
|
}
|
|
318
327
|
}
|
|
328
|
+
export class Grafana {
|
|
329
|
+
static GetAppsSentinelGrafana(req: SkoalaApiHostedV1alpha1Sentinel.GetAppsSentinelGrafanaReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Sentinel.GetAppsSentinelGrafanaRes> {
|
|
330
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Sentinel.GetAppsSentinelGrafanaReq, SkoalaApiHostedV1alpha1Sentinel.GetAppsSentinelGrafanaRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/sentinels/${req["sentinelName"]}/apps/${req["app"]}/grafanas/apps-sentinel?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "sentinelName", "app"])}`, {...initReq, method: "GET"})
|
|
331
|
+
}
|
|
332
|
+
static GetNacosGrafana(req: SkoalaApiHostedV1alpha1Nacos.GetNacosGrafanaReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Nacos.GetNacosGrafanaRes> {
|
|
333
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Nacos.GetNacosGrafanaReq, SkoalaApiHostedV1alpha1Nacos.GetNacosGrafanaRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/nacoses/${req["nacosName"]}/grafana?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "nacosName"])}`, {...initReq, method: "GET"})
|
|
334
|
+
}
|
|
335
|
+
}
|
|
336
|
+
export class Mesh {
|
|
337
|
+
static ListMeshResource(req: SkoalaApiHostedV1alpha1Mesh.ListMeshResourceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.ListMeshResourceRes> {
|
|
338
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.ListMeshResourceReq, SkoalaApiHostedV1alpha1Mesh.ListMeshResourceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/mesh/${req["meshId"]}/istio-resources/${req["type"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "meshId", "type"])}`, {...initReq, method: "GET"})
|
|
339
|
+
}
|
|
340
|
+
static GetMeshResource(req: SkoalaApiHostedV1alpha1Mesh.GetMeshResourceReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Mesh.GetMeshResourceRes> {
|
|
341
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetMeshResourceReq, SkoalaApiHostedV1alpha1Mesh.GetMeshResourceRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/mesh/${req["meshId"]}/istio-resources/${req["type"]}/${req["name"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "meshId", "type", "name"])}`, {...initReq, method: "GET"})
|
|
342
|
+
}
|
|
343
|
+
static CreateMeshResource(req: SkoalaApiHostedV1alpha1Mesh.CreateMeshResourceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
344
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateMeshResourceReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/mesh/${req["meshId"]}/istio-resources/${req["type"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
|
|
345
|
+
}
|
|
346
|
+
static UpdateMeshResource(req: SkoalaApiHostedV1alpha1Mesh.CreateMeshResourceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
347
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.CreateMeshResourceReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/mesh/${req["meshId"]}/istio-resources/${req["type"]}/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
348
|
+
}
|
|
349
|
+
static DeleteMeshResource(req: SkoalaApiHostedV1alpha1Mesh.DeleteMeshResourceReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
350
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.DeleteMeshResourceReq, GoogleProtobufEmpty.Empty>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/mesh/${req["meshId"]}/istio-resources/${req["type"]}/${req["name"]}`, {...initReq, method: "DELETE", body: JSON.stringify(req, fm.replacer)})
|
|
351
|
+
}
|
|
352
|
+
static GetAnyTypeNameByResourceType(req: SkoalaApiHostedV1alpha1Mesh.GetAnyType, initReq?: fm.InitReq): Promise<GoogleProtobufAny.Any> {
|
|
353
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Mesh.GetAnyType, GoogleProtobufAny.Any>(`/apis/hive.skoala.io/v1alpha1/istio-resources/${req["type"]}/type-value?${fm.renderURLSearchParams(req, ["type"])}`, {...initReq, method: "GET"})
|
|
354
|
+
}
|
|
355
|
+
}
|
|
319
356
|
export class Plugin {
|
|
320
357
|
static List(req: SkoalaApiHostedV1alpha1Plugins.ListPluginReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Plugins.ListPluginRes> {
|
|
321
358
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Plugins.ListPluginReq, SkoalaApiHostedV1alpha1Plugins.ListPluginRes>(`/apis/hive.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespace"]}/nacoses/${req["nacosName"]}/plugins?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespace", "nacosName"])}`, {...initReq, method: "GET"})
|
|
@@ -358,12 +395,21 @@ export class Gateway {
|
|
|
358
395
|
static Diagnostic(req: SkoalaApiHostedV1alpha1Gateway.GatewayDiagnosticReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
359
396
|
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)})
|
|
360
397
|
}
|
|
398
|
+
static GetCharts(req: GoogleProtobufEmpty.Empty, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayChartsRes> {
|
|
399
|
+
return fm.fetchReq<GoogleProtobufEmpty.Empty, SkoalaApiHostedV1alpha1Gateway.GetGatewayChartsRes>(`/apis/sesame.skoala.io/v1alpha1/charts?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
400
|
+
}
|
|
361
401
|
static ListGatewayPods(req: SkoalaApiHostedV1alpha1Gateway.ListPodsReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.ListPodsRes> {
|
|
362
402
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.ListPodsReq, SkoalaApiHostedV1alpha1Gateway.ListPodsRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/pods?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
363
403
|
}
|
|
364
404
|
static GetGatewayPod(req: SkoalaApiHostedV1alpha1Gateway.GetPodReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetPodRes> {
|
|
365
405
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetPodReq, SkoalaApiHostedV1alpha1Gateway.GetPodRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/pods/${req["podName"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName", "podName"])}`, {...initReq, method: "GET"})
|
|
366
406
|
}
|
|
407
|
+
static ListGatewayPodsByType(req: SkoalaApiHostedV1alpha1Gateway.ListGatewayPodContainerReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.ListGatewayPodContainerRes> {
|
|
408
|
+
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"})
|
|
409
|
+
}
|
|
410
|
+
static GetPodContainerLog(req: SkoalaApiHostedV1alpha1Gatewaylog.GetPodContainerLogReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gatewaylog.GetPodContainerLogRes> {
|
|
411
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gatewaylog.GetPodContainerLogReq, SkoalaApiHostedV1alpha1Gatewaylog.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"})
|
|
412
|
+
}
|
|
367
413
|
static GetGatewayPodAlert(req: SkoalaApiHostedV1alpha1Gateway.GatewayPodAlertReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GatewayPodAlertRes> {
|
|
368
414
|
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"})
|
|
369
415
|
}
|
|
@@ -442,6 +488,9 @@ export class Gateway {
|
|
|
442
488
|
static ListGatewayLog(req: SkoalaApiHostedV1alpha1Apilog.SearchLogReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Apilog.SearchLogRes> {
|
|
443
489
|
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"})
|
|
444
490
|
}
|
|
491
|
+
static GatewayLogExportURL(req: SkoalaApiHostedV1alpha1Apilog.SearchLogReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Apilog.ExportLogURLRes> {
|
|
492
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Apilog.SearchLogReq, SkoalaApiHostedV1alpha1Apilog.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"})
|
|
493
|
+
}
|
|
445
494
|
static GatewayLogExport(req: SkoalaApiHostedV1alpha1Apilog.SearchLogReq, entityNotifier?: fm.NotifyStreamEntityArrival<GoogleApiHttpbody.HttpBody>, initReq?: fm.InitReq): Promise<void> {
|
|
446
495
|
return fm.fetchStreamingRequest<SkoalaApiHostedV1alpha1Apilog.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"})
|
|
447
496
|
}
|
|
@@ -469,16 +518,19 @@ export class Gateway {
|
|
|
469
518
|
static GetGatewayRLSRule(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleRes> {
|
|
470
519
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleReq, SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayRLSRuleRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/rls/rule?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
471
520
|
}
|
|
472
|
-
static
|
|
473
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.
|
|
521
|
+
static SwitchGatewayAuthz(req: SkoalaApiHostedV1alpha1Gateway_plugin.SwitchGatewayAuthzReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
522
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.SwitchGatewayAuthzReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/authz`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
474
523
|
}
|
|
475
524
|
static GetGatewayAuthz(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzRes> {
|
|
476
525
|
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzReq, SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/authz?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
477
526
|
}
|
|
478
|
-
static
|
|
479
|
-
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.
|
|
527
|
+
static SetGatewayAuthzConfig(req: SkoalaApiHostedV1alpha1Gateway_plugin.SetGatewayAuthzConfigReq, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
528
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.SetGatewayAuthzConfigReq, GoogleProtobufEmpty.Empty>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/authz/config`, {...initReq, method: "PUT", body: JSON.stringify(req, fm.replacer)})
|
|
529
|
+
}
|
|
530
|
+
static GetGatewayAuthzConfig(req: SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzConfigReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzConfigRes> {
|
|
531
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzConfigReq, SkoalaApiHostedV1alpha1Gateway_plugin.GetGatewayAuthzConfigRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/gateways/${req["gatewayName"]}/plugins/authz/config?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "gatewayName"])}`, {...initReq, method: "GET"})
|
|
480
532
|
}
|
|
481
|
-
static
|
|
482
|
-
return fm.fetchReq<
|
|
533
|
+
static GetGatewayMetricDashboard(req: SkoalaApiHostedV1alpha1Gateway.GetGatewayMetricDashboardReq, initReq?: fm.InitReq): Promise<SkoalaApiHostedV1alpha1Gateway.GetGatewayMetricDashboardRes> {
|
|
534
|
+
return fm.fetchReq<SkoalaApiHostedV1alpha1Gateway.GetGatewayMetricDashboardReq, SkoalaApiHostedV1alpha1Gateway.GetGatewayMetricDashboardRes>(`/apis/sesame.skoala.io/v1alpha1/workspaces/${req["workspaceId"]}/clusters/${req["clusterName"]}/namespaces/${req["namespaceName"]}/metrics/dashboard/${req["dashboardType"]}?${fm.renderURLSearchParams(req, ["workspaceId", "clusterName", "namespaceName", "dashboardType"])}`, {...initReq, method: "GET"})
|
|
483
535
|
}
|
|
484
536
|
}
|