@daocloud-proto/kpanda 0.9.7-28 → 0.9.7-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.
|
@@ -671,7 +671,7 @@ export class Clusterlcm {
|
|
|
671
671
|
return fm.fetchReq<KpandaIoApiClusterlcmV1alpha1Clusterlcm.CreateClusterRequest, KpandaIoApiClusterlcmV1alpha1Clusterlcm.ClusterlcmResponse>(`/apis/kpanda.io/v1alpha1/cluster-lcm`, {...initReq, method: "POST", body: JSON.stringify(req)})
|
|
672
672
|
}
|
|
673
673
|
static ListAvailableVersions(req: KpandaIoApiClusterlcmV1alpha1Clusterlcm.ListAvailableVersionsRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClusterlcmV1alpha1Clusterlcm.ListAvailableVersionsResponse> {
|
|
674
|
-
return fm.fetchReq<KpandaIoApiClusterlcmV1alpha1Clusterlcm.ListAvailableVersionsRequest, KpandaIoApiClusterlcmV1alpha1Clusterlcm.ListAvailableVersionsResponse>(`/apis/kpanda.io/v1alpha1/cluster-lcm/
|
|
674
|
+
return fm.fetchReq<KpandaIoApiClusterlcmV1alpha1Clusterlcm.ListAvailableVersionsRequest, KpandaIoApiClusterlcmV1alpha1Clusterlcm.ListAvailableVersionsResponse>(`/apis/kpanda.io/v1alpha1/cluster-lcm/${req["cluster"]}/available-versions?${fm.renderURLSearchParams(req, ["cluster"])}`, {...initReq, method: "GET"})
|
|
675
675
|
}
|
|
676
676
|
static UpgradeCluster(req: KpandaIoApiClusterlcmV1alpha1Clusterlcm.UpgradeClusterRequest, initReq?: fm.InitReq): Promise<KpandaIoApiClusterlcmV1alpha1Clusterlcm.ClusterlcmResponse> {
|
|
677
677
|
return fm.fetchReq<KpandaIoApiClusterlcmV1alpha1Clusterlcm.UpgradeClusterRequest, KpandaIoApiClusterlcmV1alpha1Clusterlcm.ClusterlcmResponse>(`/apis/kpanda.io/v1alpha1/cluster-lcm/${req["name"]}:upgrade`, {...initReq, method: "POST", body: JSON.stringify(req)})
|