@daocloud-proto/kairship 0.3.2-4 → 0.3.2-42

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.
@@ -92,6 +92,16 @@ export type ListClustersRequest = {
92
92
  region?: string
93
93
  provider?: string
94
94
  zone?: string
95
+ labelSelector?: string
96
+ fieldSelector?: string
97
+ }
98
+
99
+ export type ListClustersDeploymentLocationsSummaryRequest = {
100
+ }
101
+
102
+ export type ListClustersDeploymentLocationsSummaryResponse = {
103
+ region?: string[]
104
+ zone?: string[]
95
105
  }
96
106
 
97
107
  export type ListClustersResponse = {
@@ -69,6 +69,9 @@ export class Cluster {
69
69
  static ListClusters(req: KairshipIoApiClusterV1alpha1Cluster.ListClustersRequest, initReq?: fm.InitReq): Promise<KairshipIoApiClusterV1alpha1Cluster.ListClustersResponse> {
70
70
  return fm.fetchReq<KairshipIoApiClusterV1alpha1Cluster.ListClustersRequest, KairshipIoApiClusterV1alpha1Cluster.ListClustersResponse>(`/apis/kairship.io/v1alpha1/kpanda-clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
71
71
  }
72
+ static ListClustersDeploymentLocationSummary(req: KairshipIoApiClusterV1alpha1Cluster.ListClustersDeploymentLocationsSummaryRequest, initReq?: fm.InitReq): Promise<KairshipIoApiClusterV1alpha1Cluster.ListClustersDeploymentLocationsSummaryResponse> {
73
+ return fm.fetchReq<KairshipIoApiClusterV1alpha1Cluster.ListClustersDeploymentLocationsSummaryRequest, KairshipIoApiClusterV1alpha1Cluster.ListClustersDeploymentLocationsSummaryResponse>(`/apis/kairship.io/v1alpha1/kpanda-clusters/deployment-location?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
74
+ }
72
75
  static JoinCluster(req: KairshipIoApiClusterV1alpha1Cluster.ClusterRequest, initReq?: fm.InitReq): Promise<GoogleProtobufEmpty.Empty> {
73
76
  return fm.fetchReq<KairshipIoApiClusterV1alpha1Cluster.ClusterRequest, GoogleProtobufEmpty.Empty>(`/apis/kairship.io/v1alpha1/instances/${req["instance"]}/clusters/${req["name"]}`, {...initReq, method: "POST", body: JSON.stringify(req, fm.replacer)})
74
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kairship",
3
- "version":"0.3.2-4",
3
+ "version":"0.3.2-42",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {