@daocloud-proto/kairship 0.3.2-22 → 0.3.2-28

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.
@@ -94,6 +94,14 @@ export type ListClustersRequest = {
94
94
  zone?: string
95
95
  }
96
96
 
97
+ export type ListClustersDeploymentLocationsSummaryRequest = {
98
+ }
99
+
100
+ export type ListClustersDeploymentLocationsSummaryResponse = {
101
+ region?: string[]
102
+ zone?: string[]
103
+ }
104
+
97
105
  export type ListClustersResponse = {
98
106
  items?: Cluster[]
99
107
  pagination?: KairshipIoApiTypesPage.Pagination
@@ -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-22",
3
+ "version":"0.3.2-28",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {