@daocloud-proto/insight 0.10.0-62 → 0.10.0-70

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.
@@ -175,8 +175,8 @@ export class Metric {
175
175
  }
176
176
  }
177
177
  export class Resource {
178
- static ListClusters(req: empty, initReq?: fm.InitReq): Promise<InsightIoApiResourceV1alpha1Cluster.ListClustersResponse> {
179
- return fm.fetchReq<empty, InsightIoApiResourceV1alpha1Cluster.ListClustersResponse>(`/apis/insight.io/v1alpha1/clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
178
+ static ListClusters(req: InsightIoApiResourceV1alpha1Cluster.ListClusterRequest, initReq?: fm.InitReq): Promise<InsightIoApiResourceV1alpha1Cluster.ListClustersResponse> {
179
+ return fm.fetchReq<InsightIoApiResourceV1alpha1Cluster.ListClusterRequest, InsightIoApiResourceV1alpha1Cluster.ListClustersResponse>(`/apis/insight.io/v1alpha1/clusters?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
180
180
  }
181
181
  static ListClusterSummary(req: InsightIoApiResourceV1alpha1Cluster.ListClusterSummaryRequest, initReq?: fm.InitReq): Promise<InsightIoApiResourceV1alpha1Cluster.ListClusterSummaryResponse> {
182
182
  return fm.fetchReq<InsightIoApiResourceV1alpha1Cluster.ListClusterSummaryRequest, InsightIoApiResourceV1alpha1Cluster.ListClusterSummaryResponse>(`/apis/insight.io/v1alpha1/clustersummary?${fm.renderURLSearchParams(req, [])}`, {...initReq, method: "GET"})
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/insight",
3
- "version":"0.10.0-62",
3
+ "version":"0.10.0-70",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -51,10 +51,15 @@ export type Cluster = {
51
51
  role?: Role
52
52
  }
53
53
 
54
+ export type ListClusterRequest = {
55
+ showAllCluster?: boolean
56
+ }
57
+
54
58
  export type ListClusterSummaryRequest = {
55
59
  name?: string
56
60
  version?: string
57
61
  phase?: ClusterPhase
62
+ showAllCluster?: boolean
58
63
  page?: number
59
64
  pageSize?: number
60
65
  }