@daocloud-proto/kpanda 0.48.0-dev-c611d08a → 0.48.0-dev-1ed995f9
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.
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
* This file is a generated Typescript file for GRPC Gateway, DO NOT MODIFY
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
import * as KpandaIoApiCoreV1alpha1Pod from "../../core/v1alpha1/pod.pb"
|
|
7
8
|
import * as KpandaIoApiTypesObjectmeta from "../../types/objectmeta.pb"
|
|
8
9
|
import * as KpandaIoApiTypesPage from "../../types/page.pb"
|
|
9
10
|
|
|
@@ -204,4 +205,20 @@ export type DeleteGatewayRequest = {
|
|
|
204
205
|
cluster?: string
|
|
205
206
|
namespace?: string
|
|
206
207
|
name?: string
|
|
208
|
+
}
|
|
209
|
+
|
|
210
|
+
export type ListGatewayPodsRequest = {
|
|
211
|
+
gateway?: string
|
|
212
|
+
cluster?: string
|
|
213
|
+
namespace?: string
|
|
214
|
+
name?: string
|
|
215
|
+
page?: number
|
|
216
|
+
pageSize?: number
|
|
217
|
+
sortBy?: KpandaIoApiTypesPage.SortBy
|
|
218
|
+
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
219
|
+
}
|
|
220
|
+
|
|
221
|
+
export type ListGatewayPodsResponse = {
|
|
222
|
+
items?: KpandaIoApiCoreV1alpha1Pod.Pod[]
|
|
223
|
+
pagination?: KpandaIoApiTypesPage.Pagination
|
|
207
224
|
}
|
|
@@ -1199,6 +1199,9 @@ export class Gateway {
|
|
|
1199
1199
|
static GetGatewayJSON(req: KpandaIoApiGatewayV1alpha1Gateway.GetGatewayJSONRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGatewayV1alpha1Gateway.GetGatewayJSONResponse> {
|
|
1200
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
1201
|
}
|
|
1202
|
+
static ListGatewayPods(req: KpandaIoApiGatewayV1alpha1Gateway.ListGatewayPodsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGatewayV1alpha1Gateway.ListGatewayPodsResponse> {
|
|
1203
|
+
return fm.fetchReq<KpandaIoApiGatewayV1alpha1Gateway.ListGatewayPodsRequest, KpandaIoApiGatewayV1alpha1Gateway.ListGatewayPodsResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/gateways/${req["gateway"]}/pods?${fm.renderURLSearchParams(req, ["cluster", "namespace", "gateway"])}`, {...initReq, method: "GET"})
|
|
1204
|
+
}
|
|
1202
1205
|
static CreateGateway(req: KpandaIoApiGatewayV1alpha1Gateway.CreateGatewayRequest, initReq?: fm.InitReq): Promise<KpandaIoApiGatewayV1alpha1Gateway.CreateGatewayResponse> {
|
|
1203
1206
|
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
1207
|
}
|