@daocloud-proto/kpanda 0.11.3-250 → 0.11.3-252

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.
@@ -319,4 +319,10 @@ export type CheckClusterRequest = {
319
319
  export type CheckClusterResponse = {
320
320
  available?: boolean
321
321
  errMsg?: string
322
+ }
323
+
324
+ export type CheckNodeRequest = {
325
+ cluster?: string
326
+ dkgClusterName?: string
327
+ nodeConfig?: NodeConfig
322
328
  }
@@ -820,6 +820,9 @@ export class Clusterlcm {
820
820
  static BatchAddNode(req: KpandaIoApiClusterlcmV1alpha1Clusterlcm.BatchAddNodeRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClusterlcmV1alpha1Clusterlcm.ClusterlcmResponse> {
821
821
  return fm.fetchReq<KpandaIoApiClusterlcmV1alpha1Clusterlcm.BatchAddNodeRequest, KpandaIoApiClusterlcmV1alpha1Clusterlcm.ClusterlcmResponse>(`/apis/kpanda.io/v1alpha1/cluster-lcm/${req["cluster"]}/nodes`, {...initReq, method: "POST", body: JSON.stringify(req)})
822
822
  }
823
+ static CheckNode(req: KpandaIoApiClusterlcmV1alpha1Clusterlcm.CheckNodeRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClusterlcmV1alpha1Clusterlcm.ClusterlcmResponse> {
824
+ return fm.fetchReq<KpandaIoApiClusterlcmV1alpha1Clusterlcm.CheckNodeRequest, KpandaIoApiClusterlcmV1alpha1Clusterlcm.ClusterlcmResponse>(`/apis/kpanda.io/v1alpha1/cluster-lcm/${req["cluster"]}/nodes:check`, {...initReq, method: "POST", body: JSON.stringify(req)})
825
+ }
823
826
  static ListClusterlcmOps(req: KpandaIoApiClusterlcmV1alpha1Clusterlcm.ListClusterlcmOpsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClusterlcmV1alpha1Clusterlcm.ListClusterlcmOpsResponse> {
824
827
  return fm.fetchReq<KpandaIoApiClusterlcmV1alpha1Clusterlcm.ListClusterlcmOpsRequest, KpandaIoApiClusterlcmV1alpha1Clusterlcm.ListClusterlcmOpsResponse>(`/apis/kpanda.io/v1alpha1/cluster-lcm/${req["cluster"]}/ops?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
825
828
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name":"@daocloud-proto/kpanda",
3
- "version":"0.11.3-250",
3
+ "version":"0.11.3-252",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {