@daocloud-proto/kpanda 0.10.6-34 → 0.10.6-38
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.
|
@@ -0,0 +1,35 @@
|
|
|
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
|
+
export type MetallbIPPool = {
|
|
10
|
+
metadata?: KpandaIoApiTypesObjectmeta.ObjectMeta
|
|
11
|
+
spec?: MetallbIPPoolSpec
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
export type MetallbIPPoolSpec = {
|
|
15
|
+
addresses?: string[]
|
|
16
|
+
autoAssign?: boolean
|
|
17
|
+
avoidBuggyIPs?: boolean
|
|
18
|
+
}
|
|
19
|
+
|
|
20
|
+
export type ListMetallbIPPoolRequest = {
|
|
21
|
+
cluster?: string
|
|
22
|
+
namespace?: string
|
|
23
|
+
page?: number
|
|
24
|
+
pageSize?: number
|
|
25
|
+
sortBy?: KpandaIoApiTypesPage.SortBy
|
|
26
|
+
sortDir?: KpandaIoApiTypesPage.SortDir
|
|
27
|
+
name?: string
|
|
28
|
+
labelSelector?: string
|
|
29
|
+
fieldSelector?: string
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
export type ListMetallbIPPoolResponse = {
|
|
33
|
+
iterms?: MetallbIPPool[]
|
|
34
|
+
pagination?: KpandaIoApiTypesPage.Pagination
|
|
35
|
+
}
|
|
@@ -39,6 +39,7 @@ import * as KpandaIoApiCoreV1alpha1Service from "../core/v1alpha1/service.pb"
|
|
|
39
39
|
import * as KpandaIoApiGhippoV1alpha1Workspace from "../ghippo/v1alpha1/workspace.pb"
|
|
40
40
|
import * as KpandaIoApiInsightV1alpha1Insight from "../insight/v1alpha1/insight.pb"
|
|
41
41
|
import * as KpandaIoApiNetworkingV1alpha1Ingress from "../networking/v1alpha1/ingress.pb"
|
|
42
|
+
import * as KpandaIoApiNetworkingV1alpha1Metallb from "../networking/v1alpha1/metallb.pb"
|
|
42
43
|
import * as KpandaIoApiNetworkingV1alpha1Networkpolicy from "../networking/v1alpha1/networkpolicy.pb"
|
|
43
44
|
import * as KpandaIoApiRbacV1alpha1Clusterrolebinding from "../rbac/v1alpha1/clusterrolebinding.pb"
|
|
44
45
|
import * as KpandaIoApiRbacV1alpha1Common from "../rbac/v1alpha1/common.pb"
|
|
@@ -552,6 +553,9 @@ export class Networking {
|
|
|
552
553
|
static DeleteIngress(req: KpandaIoApiNetworkingV1alpha1Ingress.DeleteIngressRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
|
|
553
554
|
return fm.fetchReq<KpandaIoApiNetworkingV1alpha1Ingress.DeleteIngressRequest, GoogleProtobufEmpty.Empty>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/ingresses/${req["name"]}`, {...initReq, method: "DELETE"})
|
|
554
555
|
}
|
|
556
|
+
static ListMetallbIPAddressPools(req: KpandaIoApiNetworkingV1alpha1Metallb.ListMetallbIPPoolRequest, initReq?: fm.InitReq): Promise<KpandaIoApiNetworkingV1alpha1Metallb.ListMetallbIPPoolResponse> {
|
|
557
|
+
return fm.fetchReq<KpandaIoApiNetworkingV1alpha1Metallb.ListMetallbIPPoolRequest, KpandaIoApiNetworkingV1alpha1Metallb.ListMetallbIPPoolResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/namespaces/${req["namespace"]}/metallb/ippools?${fm.renderURLSearchParams(req, ["cluster", "namespace"])}`, {...initReq, method: "GET"})
|
|
558
|
+
}
|
|
555
559
|
static ListClusterNetworkPolicies(req: KpandaIoApiNetworkingV1alpha1Networkpolicy.ListClusterNetworkPoliciesRequest, initReq?: fm.InitReq): Promise<KpandaIoApiNetworkingV1alpha1Networkpolicy.ListClusterNetworkPoliciesResponse> {
|
|
556
560
|
return fm.fetchReq<KpandaIoApiNetworkingV1alpha1Networkpolicy.ListClusterNetworkPoliciesRequest, KpandaIoApiNetworkingV1alpha1Networkpolicy.ListClusterNetworkPoliciesResponse>(`/apis/kpanda.io/v1alpha1/clusters/${req["cluster"]}/networkpolicies?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
557
561
|
}
|