@daocloud-proto/kpanda 0.47.0-dev-3a97ece9 → 0.47.0-dev-e863ddf4
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/kpanda.io/api/clustersetting/v1alpha1/clustersetting.pb.ts +1 -0
- package/kpanda.io/api/gateway/v1alpha1/common.pb.ts +100 -0
- package/kpanda.io/api/gateway/v1alpha1/gateway.pb.ts +207 -0
- package/kpanda.io/api/gateway/v1alpha1/gatewayclass.pb.ts +119 -0
- package/kpanda.io/api/gateway/v1alpha1/grpcroute.pb.ts +61 -0
- package/kpanda.io/api/gateway/v1alpha1/httproute.pb.ts +83 -0
- package/kpanda.io/api/gateway/v1alpha1/route.pb.ts +140 -0
- package/kpanda.io/api/v1alpha1/kpanda.pb.ts +68 -0
- package/package.json +1 -1
|
@@ -0,0 +1,100 @@
|
|
|
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 KpandaIoApiTypesObjectmeta from "../../types/objectmeta.pb"
|
|
8
|
+
export type ParentReference = {
|
|
9
|
+
group?: string
|
|
10
|
+
kind?: string
|
|
11
|
+
name?: string
|
|
12
|
+
namespace?: string
|
|
13
|
+
sectionName?: string
|
|
14
|
+
port?: number
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type RouteStatus = {
|
|
18
|
+
parents?: RouteParentStatus[]
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type RouteParentStatus = {
|
|
22
|
+
parentRef?: ParentReference
|
|
23
|
+
controllerName?: string
|
|
24
|
+
conditions?: KpandaIoApiTypesObjectmeta.Condition[]
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export type CommonRouteSpec = {
|
|
28
|
+
parentRefs?: ParentReference[]
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type CookieConfig = {
|
|
32
|
+
lifetimeType?: string
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type SessionPersistence = {
|
|
36
|
+
sessionName?: string
|
|
37
|
+
absoluteTimeout?: string
|
|
38
|
+
idleTimeout?: string
|
|
39
|
+
type?: string
|
|
40
|
+
cookieConfig?: CookieConfig
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
export type BackendObjectReference = {
|
|
44
|
+
group?: string
|
|
45
|
+
kind?: string
|
|
46
|
+
name?: string
|
|
47
|
+
namespace?: string
|
|
48
|
+
port?: number
|
|
49
|
+
}
|
|
50
|
+
|
|
51
|
+
export type BackendRef = {
|
|
52
|
+
backendObjectReference?: BackendObjectReference
|
|
53
|
+
weight?: number
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
export type LocalObjectReference = {
|
|
57
|
+
name?: string
|
|
58
|
+
group?: string
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
export type HTTPPathModifier = {
|
|
62
|
+
type?: string
|
|
63
|
+
replaceFullPath?: string
|
|
64
|
+
replacePrefixMatch?: string
|
|
65
|
+
}
|
|
66
|
+
|
|
67
|
+
export type HTTPHeader = {
|
|
68
|
+
name?: string
|
|
69
|
+
value?: string
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
export type HTTPHeaderFilter = {
|
|
73
|
+
set?: HTTPHeader[]
|
|
74
|
+
add?: HTTPHeader[]
|
|
75
|
+
remove?: string[]
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
export type Fraction = {
|
|
79
|
+
numerator?: number
|
|
80
|
+
denominator?: number
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
export type HTTPRequestMirrorFilter = {
|
|
84
|
+
backendRef?: BackendObjectReference
|
|
85
|
+
percent?: number
|
|
86
|
+
fraction?: Fraction
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export type HTTPRequestRedirectFilter = {
|
|
90
|
+
scheme?: string
|
|
91
|
+
hostname?: string
|
|
92
|
+
path?: HTTPPathModifier
|
|
93
|
+
port?: number
|
|
94
|
+
statusCode?: string
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
export type HTTPURLRewriteFilter = {
|
|
98
|
+
path?: HTTPPathModifier
|
|
99
|
+
hostname?: string
|
|
100
|
+
}
|
|
@@ -0,0 +1,207 @@
|
|
|
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 KpandaIoApiTypesObjectmeta from "../../types/objectmeta.pb"
|
|
8
|
+
import * as KpandaIoApiTypesPage from "../../types/page.pb"
|
|
9
|
+
|
|
10
|
+
export enum GatewayStatusType {
|
|
11
|
+
GATEWAY_STATUS_TYPE_UNSPECIFIED = "GATEWAY_STATUS_TYPE_UNSPECIFIED",
|
|
12
|
+
GATEWAY_STATUS_TYPE_PENDING = "GATEWAY_STATUS_TYPE_PENDING",
|
|
13
|
+
GATEWAY_STATUS_TYPE_READY = "GATEWAY_STATUS_TYPE_READY",
|
|
14
|
+
GATEWAY_STATUS_TYPE_UNHEALTHY = "GATEWAY_STATUS_TYPE_UNHEALTHY",
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type Gateway = {
|
|
18
|
+
metadata?: KpandaIoApiTypesObjectmeta.ObjectMeta
|
|
19
|
+
spec?: GatewaySpec
|
|
20
|
+
status?: GatewayStatus
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type GatewaySpec = {
|
|
24
|
+
gatewayClassName?: string
|
|
25
|
+
listeners?: Listener[]
|
|
26
|
+
addresses?: GatewayAddress[]
|
|
27
|
+
infrastructure?: GatewayInfrastructure
|
|
28
|
+
backendTls?: GatewayBackendTLS
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
export type GatewayAddress = {
|
|
32
|
+
type?: string
|
|
33
|
+
value?: string
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type GatewayInfrastructure = {
|
|
37
|
+
labels?: {[key: string]: string}
|
|
38
|
+
annotations?: {[key: string]: string}
|
|
39
|
+
parametersRef?: LocalParametersReference
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type LocalParametersReference = {
|
|
43
|
+
group?: string
|
|
44
|
+
kind?: string
|
|
45
|
+
name?: string
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type GatewayBackendTLS = {
|
|
49
|
+
clientCertificateRef?: SecretObjectReference
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export type SecretObjectReference = {
|
|
53
|
+
group?: string
|
|
54
|
+
kind?: string
|
|
55
|
+
name?: string
|
|
56
|
+
namespace?: string
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type Listener = {
|
|
60
|
+
name?: string
|
|
61
|
+
hostname?: string
|
|
62
|
+
port?: number
|
|
63
|
+
protocol?: string
|
|
64
|
+
tls?: GatewayTLSConfig
|
|
65
|
+
allowedRoutes?: AllowedRoutes
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export type GatewayTLSConfig = {
|
|
69
|
+
mode?: string
|
|
70
|
+
certificateRefs?: SecretObjectReference[]
|
|
71
|
+
frontendValidation?: FrontendTLSValidation
|
|
72
|
+
options?: {[key: string]: string}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
export type FrontendTLSValidation = {
|
|
76
|
+
caCertificateRefs?: ObjectReference[]
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type ObjectReference = {
|
|
80
|
+
group?: string
|
|
81
|
+
kind?: string
|
|
82
|
+
name?: string
|
|
83
|
+
namespace?: string
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
export type AllowedRoutes = {
|
|
87
|
+
namespaces?: RouteNamespaces
|
|
88
|
+
kinds?: RouteGroupKind[]
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
export type RouteNamespaces = {
|
|
92
|
+
from?: string
|
|
93
|
+
selector?: KpandaIoApiTypesObjectmeta.LabelSelector
|
|
94
|
+
}
|
|
95
|
+
|
|
96
|
+
export type RouteGroupKind = {
|
|
97
|
+
group?: string
|
|
98
|
+
kind?: string
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
export type GatewayStatus = {
|
|
102
|
+
addresses?: GatewayStatusAddress[]
|
|
103
|
+
conditions?: KpandaIoApiTypesObjectmeta.Condition[]
|
|
104
|
+
listeners?: ListenerStatus[]
|
|
105
|
+
status?: GatewayStatusType
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export type GatewayStatusAddress = {
|
|
109
|
+
type?: string
|
|
110
|
+
value?: string
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export type ListenerStatus = {
|
|
114
|
+
name?: string
|
|
115
|
+
supportedKinds?: RouteGroupKind[]
|
|
116
|
+
attachedRoutes?: number
|
|
117
|
+
conditions?: KpandaIoApiTypesObjectmeta.Condition[]
|
|
118
|
+
}
|
|
119
|
+
|
|
120
|
+
export type ListClusterGatewaysRequest = {
|
|
121
|
+
cluster?: string
|
|
122
|
+
page?: number
|
|
123
|
+
pageSize?: number
|
|
124
|
+
sortBy?: KpandaIoApiTypesPage.SortBy
|
|
125
|
+
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
126
|
+
name?: string
|
|
127
|
+
labelSelector?: string
|
|
128
|
+
fieldSelector?: string
|
|
129
|
+
fuzzyName?: string
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
export type ListClusterGatewaysResponse = {
|
|
133
|
+
items?: Gateway[]
|
|
134
|
+
pagination?: KpandaIoApiTypesPage.Pagination
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
export type ListGatewaysRequest = {
|
|
138
|
+
cluster?: string
|
|
139
|
+
namespace?: string
|
|
140
|
+
page?: number
|
|
141
|
+
pageSize?: number
|
|
142
|
+
sortBy?: KpandaIoApiTypesPage.SortBy
|
|
143
|
+
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
144
|
+
name?: string
|
|
145
|
+
labelSelector?: string
|
|
146
|
+
fieldSelector?: string
|
|
147
|
+
fuzzyName?: string
|
|
148
|
+
}
|
|
149
|
+
|
|
150
|
+
export type ListGatewaysResponse = {
|
|
151
|
+
items?: Gateway[]
|
|
152
|
+
pagination?: KpandaIoApiTypesPage.Pagination
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
export type GetGatewayRequest = {
|
|
156
|
+
cluster?: string
|
|
157
|
+
namespace?: string
|
|
158
|
+
name?: string
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
export type GetGatewayJSONRequest = {
|
|
162
|
+
cluster?: string
|
|
163
|
+
namespace?: string
|
|
164
|
+
name?: string
|
|
165
|
+
}
|
|
166
|
+
|
|
167
|
+
export type GetGatewayJSONResponse = {
|
|
168
|
+
data?: string
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
export type CreateGatewayRequest = {
|
|
172
|
+
cluster?: string
|
|
173
|
+
namespace?: string
|
|
174
|
+
data?: string
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
export type CreateGatewayResponse = {
|
|
178
|
+
data?: string
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
export type UpdateGatewayRequest = {
|
|
182
|
+
cluster?: string
|
|
183
|
+
namespace?: string
|
|
184
|
+
name?: string
|
|
185
|
+
data?: string
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
export type UpdateGatewayResponse = {
|
|
189
|
+
data?: string
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
export type PatchGatewayRequest = {
|
|
193
|
+
cluster?: string
|
|
194
|
+
namespace?: string
|
|
195
|
+
name?: string
|
|
196
|
+
data?: {[key: string]: string}
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
export type PatchGatewayResponse = {
|
|
200
|
+
data?: string
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
export type DeleteGatewayRequest = {
|
|
204
|
+
cluster?: string
|
|
205
|
+
namespace?: string
|
|
206
|
+
name?: string
|
|
207
|
+
}
|
|
@@ -0,0 +1,119 @@
|
|
|
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 KpandaIoApiTypesObjectmeta from "../../types/objectmeta.pb"
|
|
8
|
+
import * as KpandaIoApiTypesPage from "../../types/page.pb"
|
|
9
|
+
|
|
10
|
+
export enum GatewayClassStatusType {
|
|
11
|
+
GATEWAY_CLASS_STATUS_TYPE_UNSPECIFIED = "GATEWAY_CLASS_STATUS_TYPE_UNSPECIFIED",
|
|
12
|
+
GATEWAY_CLASS_STATUS_TYPE_PENDING = "GATEWAY_CLASS_STATUS_TYPE_PENDING",
|
|
13
|
+
GATEWAY_CLASS_STATUS_TYPE_READY = "GATEWAY_CLASS_STATUS_TYPE_READY",
|
|
14
|
+
GATEWAY_CLASS_STATUS_TYPE_UNHEALTHY = "GATEWAY_CLASS_STATUS_TYPE_UNHEALTHY",
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export type GatewayClass = {
|
|
18
|
+
metadata?: KpandaIoApiTypesObjectmeta.ObjectMeta
|
|
19
|
+
spec?: GatewayClassSpec
|
|
20
|
+
status?: GatewayClassStatus
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
export type GatewayClassSpec = {
|
|
24
|
+
controllerName?: string
|
|
25
|
+
parametersRef?: ParametersReference
|
|
26
|
+
description?: string
|
|
27
|
+
}
|
|
28
|
+
|
|
29
|
+
export type ParametersReference = {
|
|
30
|
+
group?: string
|
|
31
|
+
kind?: string
|
|
32
|
+
name?: string
|
|
33
|
+
namespace?: string
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
export type GatewayClassStatus = {
|
|
37
|
+
conditions?: KpandaIoApiTypesObjectmeta.Condition[]
|
|
38
|
+
status?: GatewayClassStatusType
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
export type SupportedFeature = {
|
|
42
|
+
name?: string
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
export type ListGatewayClassesRequest = {
|
|
46
|
+
cluster?: string
|
|
47
|
+
page?: number
|
|
48
|
+
pageSize?: number
|
|
49
|
+
sortBy?: KpandaIoApiTypesPage.SortBy
|
|
50
|
+
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
51
|
+
name?: string
|
|
52
|
+
labelSelector?: string
|
|
53
|
+
fieldSelector?: string
|
|
54
|
+
fuzzyName?: string
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type ListGatewayClassesResponse = {
|
|
58
|
+
items?: GatewayClass[]
|
|
59
|
+
pagination?: KpandaIoApiTypesPage.Pagination
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
export type ListAllGatewayClassesRequest = {
|
|
63
|
+
cluster?: string
|
|
64
|
+
page?: number
|
|
65
|
+
pageSize?: number
|
|
66
|
+
sortBy?: KpandaIoApiTypesPage.SortBy
|
|
67
|
+
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
68
|
+
name?: string
|
|
69
|
+
labelSelector?: string
|
|
70
|
+
fieldSelector?: string
|
|
71
|
+
fuzzyName?: string
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export type ListAllGatewayClassesResponse = {
|
|
75
|
+
items?: GatewayClass[]
|
|
76
|
+
pagination?: KpandaIoApiTypesPage.Pagination
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type GetGatewayClassRequest = {
|
|
80
|
+
cluster?: string
|
|
81
|
+
name?: string
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
export type GetGatewayClassJSONRequest = {
|
|
85
|
+
cluster?: string
|
|
86
|
+
name?: string
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
export type GetGatewayClassJSONResponse = {
|
|
90
|
+
data?: string
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
export type CreateGatewayClassRequest = {
|
|
94
|
+
cluster?: string
|
|
95
|
+
data?: string
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export type CreateGatewayClassResponse = {
|
|
99
|
+
data?: string
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
export type UpdateGatewayClassRequest = {
|
|
103
|
+
cluster?: string
|
|
104
|
+
name?: string
|
|
105
|
+
data?: string
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export type UpdateGatewayClassResponse = {
|
|
109
|
+
data?: string
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export type DeleteGatewayClassRequest = {
|
|
113
|
+
cluster?: string
|
|
114
|
+
name?: string
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
export type DeleteGatewayClassResponse = {
|
|
118
|
+
data?: string
|
|
119
|
+
}
|
|
@@ -0,0 +1,61 @@
|
|
|
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 KpandaIoApiTypesObjectmeta from "../../types/objectmeta.pb"
|
|
8
|
+
import * as KpandaIoApiGatewayV1alpha1Common from "./common.pb"
|
|
9
|
+
export type GRPCRoute = {
|
|
10
|
+
metadata?: KpandaIoApiTypesObjectmeta.ObjectMeta
|
|
11
|
+
spec?: GRPCRouteSpec
|
|
12
|
+
status?: GRPCRouteStatus
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type GRPCRouteStatus = {
|
|
16
|
+
routeStatus?: KpandaIoApiGatewayV1alpha1Common.RouteStatus
|
|
17
|
+
}
|
|
18
|
+
|
|
19
|
+
export type GRPCRouteSpec = {
|
|
20
|
+
commonRouteSpec?: KpandaIoApiGatewayV1alpha1Common.CommonRouteSpec
|
|
21
|
+
hostnames?: string[]
|
|
22
|
+
rules?: GRPCRouteRule[]
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type GRPCRouteRule = {
|
|
26
|
+
name?: string
|
|
27
|
+
matches?: GRPCRouteMatch[]
|
|
28
|
+
filters?: GRPCRouteFilter[]
|
|
29
|
+
backendRefs?: GRPCBackendRef[]
|
|
30
|
+
sessionPersistence?: KpandaIoApiGatewayV1alpha1Common.SessionPersistence
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
export type GRPCRouteMatch = {
|
|
34
|
+
method?: GRPCMethodMatch
|
|
35
|
+
headers?: GRPCHeaderMatch[]
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
export type GRPCHeaderMatch = {
|
|
39
|
+
type?: string
|
|
40
|
+
name?: string
|
|
41
|
+
value?: string
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
export type GRPCMethodMatch = {
|
|
45
|
+
type?: string
|
|
46
|
+
service?: string
|
|
47
|
+
method?: string
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
export type GRPCRouteFilter = {
|
|
51
|
+
type?: string
|
|
52
|
+
requestHeaderModifier?: KpandaIoApiGatewayV1alpha1Common.HTTPHeaderFilter
|
|
53
|
+
responseHeaderModifier?: KpandaIoApiGatewayV1alpha1Common.HTTPHeaderFilter
|
|
54
|
+
requestMirror?: KpandaIoApiGatewayV1alpha1Common.HTTPRequestMirrorFilter
|
|
55
|
+
extensionRef?: KpandaIoApiGatewayV1alpha1Common.LocalObjectReference
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
export type GRPCBackendRef = {
|
|
59
|
+
backendRef?: KpandaIoApiGatewayV1alpha1Common.BackendRef
|
|
60
|
+
filters?: GRPCRouteFilter[]
|
|
61
|
+
}
|
|
@@ -0,0 +1,83 @@
|
|
|
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 KpandaIoApiTypesObjectmeta from "../../types/objectmeta.pb"
|
|
8
|
+
import * as KpandaIoApiGatewayV1alpha1Common from "./common.pb"
|
|
9
|
+
export type HTTPRoute = {
|
|
10
|
+
metadata?: KpandaIoApiTypesObjectmeta.ObjectMeta
|
|
11
|
+
spec?: HTTPRouteSpec
|
|
12
|
+
status?: HTTPRouteStatus
|
|
13
|
+
}
|
|
14
|
+
|
|
15
|
+
export type HTTPRouteSpec = {
|
|
16
|
+
commonRouteSpec?: KpandaIoApiGatewayV1alpha1Common.CommonRouteSpec
|
|
17
|
+
hostnames?: string[]
|
|
18
|
+
rules?: HTTPRouteRule[]
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
export type HTTPRouteStatus = {
|
|
22
|
+
routeStatus?: KpandaIoApiGatewayV1alpha1Common.RouteStatus
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
export type HTTPRouteRule = {
|
|
26
|
+
name?: string
|
|
27
|
+
matches?: HTTPRouteMatch[]
|
|
28
|
+
filters?: HTTPRouteFilter[]
|
|
29
|
+
backendRefs?: HTTPBackendRef[]
|
|
30
|
+
timeouts?: HTTPRouteTimeouts
|
|
31
|
+
retry?: HTTPRouteRetry
|
|
32
|
+
sessionPersistence?: KpandaIoApiGatewayV1alpha1Common.SessionPersistence
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
export type HTTPRouteMatch = {
|
|
36
|
+
path?: HTTPPathMatch
|
|
37
|
+
headers?: HTTPHeaderMatch[]
|
|
38
|
+
queryParams?: HTTPQueryParamMatch[]
|
|
39
|
+
method?: string
|
|
40
|
+
}
|
|
41
|
+
|
|
42
|
+
export type HTTPHeaderMatch = {
|
|
43
|
+
type?: string
|
|
44
|
+
name?: string
|
|
45
|
+
value?: string
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
export type HTTPPathMatch = {
|
|
49
|
+
type?: string
|
|
50
|
+
value?: string
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
export type HTTPQueryParamMatch = {
|
|
54
|
+
type?: string
|
|
55
|
+
name?: string
|
|
56
|
+
value?: string
|
|
57
|
+
}
|
|
58
|
+
|
|
59
|
+
export type HTTPBackendRef = {
|
|
60
|
+
backendRef?: KpandaIoApiGatewayV1alpha1Common.BackendRef
|
|
61
|
+
filters?: HTTPRouteFilter[]
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
export type HTTPRouteTimeouts = {
|
|
65
|
+
request?: string
|
|
66
|
+
backendRequest?: string
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
export type HTTPRouteFilter = {
|
|
70
|
+
type?: string
|
|
71
|
+
requestHeaderModifier?: KpandaIoApiGatewayV1alpha1Common.HTTPHeaderFilter
|
|
72
|
+
responseHeaderModifier?: KpandaIoApiGatewayV1alpha1Common.HTTPHeaderFilter
|
|
73
|
+
requestMirror?: KpandaIoApiGatewayV1alpha1Common.HTTPRequestMirrorFilter
|
|
74
|
+
requestRedirect?: KpandaIoApiGatewayV1alpha1Common.HTTPRequestRedirectFilter
|
|
75
|
+
urlRewrite?: KpandaIoApiGatewayV1alpha1Common.HTTPURLRewriteFilter
|
|
76
|
+
extensionRef?: KpandaIoApiGatewayV1alpha1Common.LocalObjectReference
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export type HTTPRouteRetry = {
|
|
80
|
+
codes?: string[]
|
|
81
|
+
attempts?: string
|
|
82
|
+
backoff?: string
|
|
83
|
+
}
|
|
@@ -0,0 +1,140 @@
|
|
|
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 KpandaIoApiTypesPage from "../../types/page.pb"
|
|
8
|
+
import * as KpandaIoApiGatewayV1alpha1Common from "./common.pb"
|
|
9
|
+
import * as KpandaIoApiGatewayV1alpha1Grpcroute from "./grpcroute.pb"
|
|
10
|
+
import * as KpandaIoApiGatewayV1alpha1Httproute from "./httproute.pb"
|
|
11
|
+
|
|
12
|
+
type Absent<T, K extends keyof T> = { [k in Exclude<keyof T, K>]?: undefined };
|
|
13
|
+
type OneOf<T> =
|
|
14
|
+
| { [k in keyof T]?: undefined }
|
|
15
|
+
| (
|
|
16
|
+
keyof T extends infer K ?
|
|
17
|
+
(K extends string & keyof T ? { [k in K]: T[K] } & Absent<T, K>
|
|
18
|
+
: never)
|
|
19
|
+
: never);
|
|
20
|
+
|
|
21
|
+
export enum GatewayRouteType {
|
|
22
|
+
GATEWAY_ROUTE_TYPE_UNSPECIFIED = "GATEWAY_ROUTE_TYPE_UNSPECIFIED",
|
|
23
|
+
GATEWAY_ROUTE_TYPE_HTTP = "GATEWAY_ROUTE_TYPE_HTTP",
|
|
24
|
+
GATEWAY_ROUTE_TYPE_GRPC = "GATEWAY_ROUTE_TYPE_GRPC",
|
|
25
|
+
}
|
|
26
|
+
|
|
27
|
+
export enum GatewayRouteStatus {
|
|
28
|
+
ROUTE_STATUS_UNSPECIFIED = "ROUTE_STATUS_UNSPECIFIED",
|
|
29
|
+
ROUTE_STATUS_PENDING = "ROUTE_STATUS_PENDING",
|
|
30
|
+
ROUTE_STATUS_ACCEPTED = "ROUTE_STATUS_ACCEPTED",
|
|
31
|
+
ROUTE_STATUS_PROGRAMMED = "ROUTE_STATUS_PROGRAMMED",
|
|
32
|
+
ROUTE_STATUS_REF_NOT_RESOLVED = "ROUTE_STATUS_REF_NOT_RESOLVED",
|
|
33
|
+
ROUTE_STATUS_ACCESS_DENIED = "ROUTE_STATUS_ACCESS_DENIED",
|
|
34
|
+
ROUTE_STATUS_CONFLICT = "ROUTE_STATUS_CONFLICT",
|
|
35
|
+
ROUTE_STATUS_UNSUPPORTED = "ROUTE_STATUS_UNSUPPORTED",
|
|
36
|
+
ROUTE_STATUS_INVALID_SPEC = "ROUTE_STATUS_INVALID_SPEC",
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
export type ListClusterRoutesRequest = {
|
|
40
|
+
cluster?: string
|
|
41
|
+
routeType?: GatewayRouteType
|
|
42
|
+
page?: number
|
|
43
|
+
pageSize?: number
|
|
44
|
+
sortBy?: KpandaIoApiTypesPage.SortBy
|
|
45
|
+
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
46
|
+
name?: string
|
|
47
|
+
labelSelector?: string
|
|
48
|
+
fieldSelector?: string
|
|
49
|
+
fuzzyName?: string
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
export type ListClusterRoutesResponse = {
|
|
53
|
+
items?: Routes[]
|
|
54
|
+
pagination?: KpandaIoApiTypesPage.Pagination
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
export type Routes = {
|
|
58
|
+
name?: string
|
|
59
|
+
namespace?: string
|
|
60
|
+
routeType?: GatewayRouteType
|
|
61
|
+
parentRefs?: KpandaIoApiGatewayV1alpha1Common.ParentReference[]
|
|
62
|
+
hostnames?: string[]
|
|
63
|
+
backendRefs?: KpandaIoApiGatewayV1alpha1Common.BackendRef[]
|
|
64
|
+
status?: GatewayRouteStatus
|
|
65
|
+
creationTimestamp?: string
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
export type ListRoutesRequest = {
|
|
69
|
+
cluster?: string
|
|
70
|
+
namespace?: string
|
|
71
|
+
routeType?: GatewayRouteType
|
|
72
|
+
page?: number
|
|
73
|
+
pageSize?: number
|
|
74
|
+
sortBy?: KpandaIoApiTypesPage.SortBy
|
|
75
|
+
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
76
|
+
name?: string
|
|
77
|
+
labelSelector?: string
|
|
78
|
+
fieldSelector?: string
|
|
79
|
+
fuzzyName?: string
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
export type ListRoutesResponse = {
|
|
83
|
+
items?: Routes[]
|
|
84
|
+
pagination?: KpandaIoApiTypesPage.Pagination
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
export type GetRouteRequest = {
|
|
88
|
+
cluster?: string
|
|
89
|
+
namespace?: string
|
|
90
|
+
routeType?: GatewayRouteType
|
|
91
|
+
name?: string
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
|
|
95
|
+
type BaseGetRouteResponse = {
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
export type GetRouteResponse = BaseGetRouteResponse
|
|
99
|
+
& OneOf<{ httpRoute: KpandaIoApiGatewayV1alpha1Httproute.HTTPRoute; grpcRoute: KpandaIoApiGatewayV1alpha1Grpcroute.GRPCRoute }>
|
|
100
|
+
|
|
101
|
+
export type GetRouteJSONRequest = {
|
|
102
|
+
cluster?: string
|
|
103
|
+
namespace?: string
|
|
104
|
+
routeType?: GatewayRouteType
|
|
105
|
+
name?: string
|
|
106
|
+
}
|
|
107
|
+
|
|
108
|
+
export type GetRouteJSONResponse = {
|
|
109
|
+
data?: string
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
export type CreateRouteRequest = {
|
|
113
|
+
cluster?: string
|
|
114
|
+
namespace?: string
|
|
115
|
+
routeType?: GatewayRouteType
|
|
116
|
+
data?: string
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
export type CreateRouteResponse = {
|
|
120
|
+
data?: string
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
export type UpdateRouteRequest = {
|
|
124
|
+
cluster?: string
|
|
125
|
+
namespace?: string
|
|
126
|
+
routeType?: GatewayRouteType
|
|
127
|
+
name?: string
|
|
128
|
+
data?: string
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
export type UpdateRouteResponse = {
|
|
132
|
+
data?: string
|
|
133
|
+
}
|
|
134
|
+
|
|
135
|
+
export type DeleteRouteRequest = {
|
|
136
|
+
cluster?: string
|
|
137
|
+
namespace?: string
|
|
138
|
+
routeType?: GatewayRouteType
|
|
139
|
+
name?: string
|
|
140
|
+
}
|
|
@@ -46,6 +46,9 @@ import * as KpandaIoApiCoreV1alpha1Serviceaccount from "../core/v1alpha1/service
|
|
|
46
46
|
import * as KpandaIoApiDevicesV1alpha1Gpu from "../devices/v1alpha1/gpu.pb"
|
|
47
47
|
import * as KpandaIoApiEtcdbackuprestoreV1alpha1Etcdbackuprestore from "../etcdbackuprestore/v1alpha1/etcdbackuprestore.pb"
|
|
48
48
|
import * as KpandaIoApiFeaturegatesV1alpha1Featuregates from "../featuregates/v1alpha1/featuregates.pb"
|
|
49
|
+
import * as KpandaIoApiGatewayV1alpha1Gateway from "../gateway/v1alpha1/gateway.pb"
|
|
50
|
+
import * as KpandaIoApiGatewayV1alpha1Gatewayclass from "../gateway/v1alpha1/gatewayclass.pb"
|
|
51
|
+
import * as KpandaIoApiGatewayV1alpha1Route from "../gateway/v1alpha1/route.pb"
|
|
49
52
|
import * as KpandaIoApiGhippoV1alpha1Workspace from "../ghippo/v1alpha1/workspace.pb"
|
|
50
53
|
import * as KpandaIoApiInsightV1alpha1Insight from "../insight/v1alpha1/insight.pb"
|
|
51
54
|
import * as KpandaIoApiKangarooV1alpha1Image from "../kangaroo/v1alpha1/image.pb"
|
|
@@ -1182,4 +1185,69 @@ export class Devices {
|
|
|
1182
1185
|
static GetDashboardURL(req: KpandaIoApiDevicesV1alpha1Gpu.GetDashboardURLRequest, initReq?: fm.InitReq): Promise<KpandaIoApiDevicesV1alpha1Gpu.GetDashboardURLResponse> {
|
|
1183
1186
|
return fm.fetchReq<KpandaIoApiDevicesV1alpha1Gpu.GetDashboardURLRequest, KpandaIoApiDevicesV1alpha1Gpu.GetDashboardURLResponse>(`/apis/kpanda.io/v1alpha1/grafana-dashboards/gpu-overview?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
|
|
1184
1187
|
}
|
|
1188
|
+
}
|
|
1189
|
+
export class Gateway {
|
|
1190
|
+
static ListClusterGateways(req: KpandaIoApiGatewayV1alpha1Gateway.ListClusterGatewaysRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGatewayV1alpha1Gateway.ListClusterGatewaysResponse> {
|
|
1191
|
+
return fm.fetchReq<KpandaIoApiGatewayV1alpha1Gateway.ListClusterGatewaysRequest, KpandaIoApiGatewayV1alpha1Gateway.ListClusterGatewaysResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/gateways?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
1192
|
+
}
|
|
1193
|
+
static ListGateways(req: KpandaIoApiGatewayV1alpha1Gateway.ListGatewaysRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGatewayV1alpha1Gateway.ListGatewaysResponse> {
|
|
1194
|
+
return fm.fetchReq<KpandaIoApiGatewayV1alpha1Gateway.ListGatewaysRequest, KpandaIoApiGatewayV1alpha1Gateway.ListGatewaysResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/gateways?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
1195
|
+
}
|
|
1196
|
+
static GetGateway(req: KpandaIoApiGatewayV1alpha1Gateway.GetGatewayRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGatewayV1alpha1Gateway.Gateway> {
|
|
1197
|
+
return fm.fetchReq<KpandaIoApiGatewayV1alpha1Gateway.GetGatewayRequest, KpandaIoApiGatewayV1alpha1Gateway.Gateway>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/gateways/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
1198
|
+
}
|
|
1199
|
+
static GetGatewayJSON(req: KpandaIoApiGatewayV1alpha1Gateway.GetGatewayJSONRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGatewayV1alpha1Gateway.GetGatewayJSONResponse> {
|
|
1200
|
+
return fm.fetchReq<KpandaIoApiGatewayV1alpha1Gateway.GetGatewayJSONRequest, KpandaIoApiGatewayV1alpha1Gateway.GetGatewayJSONResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/gateways/${req["name"]}/json?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
1201
|
+
}
|
|
1202
|
+
static CreateGateway(req: KpandaIoApiGatewayV1alpha1Gateway.CreateGatewayRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGatewayV1alpha1Gateway.CreateGatewayResponse> {
|
|
1203
|
+
return fm.fetchReq<KpandaIoApiGatewayV1alpha1Gateway.CreateGatewayRequest, KpandaIoApiGatewayV1alpha1Gateway.CreateGatewayResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/gateways`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
1204
|
+
}
|
|
1205
|
+
static UpdateGateway(req: KpandaIoApiGatewayV1alpha1Gateway.UpdateGatewayRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGatewayV1alpha1Gateway.UpdateGatewayResponse> {
|
|
1206
|
+
return fm.fetchReq<KpandaIoApiGatewayV1alpha1Gateway.UpdateGatewayRequest, KpandaIoApiGatewayV1alpha1Gateway.UpdateGatewayResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/gateways/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
1207
|
+
}
|
|
1208
|
+
static DeleteGateway(req: KpandaIoApiGatewayV1alpha1Gateway.DeleteGatewayRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
1209
|
+
return fm.fetchReq<KpandaIoApiGatewayV1alpha1Gateway.DeleteGatewayRequest, GoogleProtobufEmpty.Empty>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/gateways/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
1210
|
+
}
|
|
1211
|
+
static ListGatewayClasses(req: KpandaIoApiGatewayV1alpha1Gatewayclass.ListGatewayClassesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGatewayV1alpha1Gatewayclass.ListGatewayClassesResponse> {
|
|
1212
|
+
return fm.fetchReq<KpandaIoApiGatewayV1alpha1Gatewayclass.ListGatewayClassesRequest, KpandaIoApiGatewayV1alpha1Gatewayclass.ListGatewayClassesResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/gatewayclasses?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
1213
|
+
}
|
|
1214
|
+
static ListAccessibleGatewayClasses(req: KpandaIoApiGatewayV1alpha1Gatewayclass.ListAllGatewayClassesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGatewayV1alpha1Gatewayclass.ListAllGatewayClassesResponse> {
|
|
1215
|
+
return fm.fetchReq<KpandaIoApiGatewayV1alpha1Gatewayclass.ListAllGatewayClassesRequest, KpandaIoApiGatewayV1alpha1Gatewayclass.ListAllGatewayClassesResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/accessiblegatewayclasses?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
1216
|
+
}
|
|
1217
|
+
static GetGatewayClass(req: KpandaIoApiGatewayV1alpha1Gatewayclass.GetGatewayClassRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGatewayV1alpha1Gatewayclass.GatewayClass> {
|
|
1218
|
+
return fm.fetchReq<KpandaIoApiGatewayV1alpha1Gatewayclass.GetGatewayClassRequest, KpandaIoApiGatewayV1alpha1Gatewayclass.GatewayClass>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/gatewayclasses/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "name"])}`, {...initReq, method: "GET"})
|
|
1219
|
+
}
|
|
1220
|
+
static GetGatewayClassJSON(req: KpandaIoApiGatewayV1alpha1Gatewayclass.GetGatewayClassJSONRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGatewayV1alpha1Gatewayclass.GetGatewayClassJSONResponse> {
|
|
1221
|
+
return fm.fetchReq<KpandaIoApiGatewayV1alpha1Gatewayclass.GetGatewayClassJSONRequest, KpandaIoApiGatewayV1alpha1Gatewayclass.GetGatewayClassJSONResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/gatewayclasses/${req["name"]}/json?${fm.renderURLSearchParams(req, ["cluster", "name"])}`, {...initReq, method: "GET"})
|
|
1222
|
+
}
|
|
1223
|
+
static CreateGatewayClass(req: KpandaIoApiGatewayV1alpha1Gatewayclass.CreateGatewayClassRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGatewayV1alpha1Gatewayclass.CreateGatewayClassResponse> {
|
|
1224
|
+
return fm.fetchReq<KpandaIoApiGatewayV1alpha1Gatewayclass.CreateGatewayClassRequest, KpandaIoApiGatewayV1alpha1Gatewayclass.CreateGatewayClassResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/gatewayclasses`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
1225
|
+
}
|
|
1226
|
+
static UpdateGatewayClass(req: KpandaIoApiGatewayV1alpha1Gatewayclass.UpdateGatewayClassRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGatewayV1alpha1Gatewayclass.UpdateGatewayClassResponse> {
|
|
1227
|
+
return fm.fetchReq<KpandaIoApiGatewayV1alpha1Gatewayclass.UpdateGatewayClassRequest, KpandaIoApiGatewayV1alpha1Gatewayclass.UpdateGatewayClassResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/gatewayclasses/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
1228
|
+
}
|
|
1229
|
+
static DeleteGatewayClass(req: KpandaIoApiGatewayV1alpha1Gatewayclass.DeleteGatewayClassRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
1230
|
+
return fm.fetchReq<KpandaIoApiGatewayV1alpha1Gatewayclass.DeleteGatewayClassRequest, GoogleProtobufEmpty.Empty>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/gatewayclasses/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
1231
|
+
}
|
|
1232
|
+
static ListClusterRoutes(req: KpandaIoApiGatewayV1alpha1Route.ListClusterRoutesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGatewayV1alpha1Route.ListClusterRoutesResponse> {
|
|
1233
|
+
return fm.fetchReq<KpandaIoApiGatewayV1alpha1Route.ListClusterRoutesRequest, KpandaIoApiGatewayV1alpha1Route.ListClusterRoutesResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/routes?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
1234
|
+
}
|
|
1235
|
+
static ListRoutes(req: KpandaIoApiGatewayV1alpha1Route.ListRoutesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGatewayV1alpha1Route.ListRoutesResponse> {
|
|
1236
|
+
return fm.fetchReq<KpandaIoApiGatewayV1alpha1Route.ListRoutesRequest, KpandaIoApiGatewayV1alpha1Route.ListRoutesResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/routes?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
1237
|
+
}
|
|
1238
|
+
static GetRoute(req: KpandaIoApiGatewayV1alpha1Route.GetRouteRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGatewayV1alpha1Route.GetRouteResponse> {
|
|
1239
|
+
return fm.fetchReq<KpandaIoApiGatewayV1alpha1Route.GetRouteRequest, KpandaIoApiGatewayV1alpha1Route.GetRouteResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/routes/${req["name"]}?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
1240
|
+
}
|
|
1241
|
+
static GetRouteJSON(req: KpandaIoApiGatewayV1alpha1Route.GetRouteJSONRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGatewayV1alpha1Route.GetRouteJSONResponse> {
|
|
1242
|
+
return fm.fetchReq<KpandaIoApiGatewayV1alpha1Route.GetRouteJSONRequest, KpandaIoApiGatewayV1alpha1Route.GetRouteJSONResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/routes/${req["name"]}/json?${fm.renderURLSearchParams(req, ["cluster", "namespace", "name"])}`, {...initReq, method: "GET"})
|
|
1243
|
+
}
|
|
1244
|
+
static CreateRoute(req: KpandaIoApiGatewayV1alpha1Route.CreateRouteRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGatewayV1alpha1Route.CreateRouteResponse> {
|
|
1245
|
+
return fm.fetchReq<KpandaIoApiGatewayV1alpha1Route.CreateRouteRequest, KpandaIoApiGatewayV1alpha1Route.CreateRouteResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/routes`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
1246
|
+
}
|
|
1247
|
+
static UpdateRoute(req: KpandaIoApiGatewayV1alpha1Route.UpdateRouteRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGatewayV1alpha1Route.UpdateRouteResponse> {
|
|
1248
|
+
return fm.fetchReq<KpandaIoApiGatewayV1alpha1Route.UpdateRouteRequest, KpandaIoApiGatewayV1alpha1Route.UpdateRouteResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/routes/${req["name"]}`, {...initReq, method: "PUT", body: JSON.stringify(req)})
|
|
1249
|
+
}
|
|
1250
|
+
static DeleteRoute(req: KpandaIoApiGatewayV1alpha1Route.DeleteRouteRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
1251
|
+
return fm.fetchReq<KpandaIoApiGatewayV1alpha1Route.DeleteRouteRequest, GoogleProtobufEmpty.Empty>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/routes/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
1252
|
+
}
|
|
1185
1253
|
}
|