UNPKG

@openshift-assisted/ui-lib

Version:

React component library for the Assisted Installer UI

27 lines 2.26 kB
import type { ClusterCreateParamsWithStaticNetworking } from './types'; import type { CustomManifestValues, ListManifestsExtended } from '../components/clusterConfiguration/manifestsConfiguration/data/dataTypes'; import type { Cluster, Host, UpdateManifestParams, V2ClusterUpdateParams } from '@openshift-assisted/types/assisted-installer-service'; declare const ClustersService: { findHost(hosts: Cluster['hosts'], hostId: Host['id']): Host | undefined; create(params: ClusterCreateParamsWithStaticNetworking, isAssistedMigration?: boolean): Promise<Cluster>; remove(clusterId: Cluster['id']): Promise<void>; downloadLogs(clusterId: Cluster['id'], hostId?: Host['id']): Promise<{ data: Blob; fileName: string | undefined; }>; update(clusterId: Cluster['id'], clusterTags: Cluster['tags'], params: V2ClusterUpdateParams): Promise<import("axios").AxiosResponse<Cluster, any>>; install(clusterId: Cluster['id'], clusterTags: Cluster['tags']): Promise<import("axios").AxiosResponse<Cluster, any>>; updateClusterTags(clusterTags: Cluster['tags'], params: V2ClusterUpdateParams): V2ClusterUpdateParams; get(clusterId: Cluster['id']): Promise<Cluster>; transformFormViewManifest(manifest: CustomManifestValues): { folder: import("../components/clusterConfiguration/manifestsConfiguration/data/dataTypes").FormViewManifestFolder; fileName: string; content: string; }; getUpdateManifestParams(existingManifest: CustomManifestValues, updatedManifest: CustomManifestValues): UpdateManifestParams; createClusterManifests(manifests: CustomManifestValues[], clusterId: Cluster['id']): Promise<import("axios").AxiosResponse<import("@openshift-assisted/types/assisted-installer-service").Manifest, any>[]>; removeClusterManifests(customManifests: ListManifestsExtended, clusterId: Cluster['id']): Promise<import("axios").AxiosResponse<void, any>[]>; updateCustomManifest(existingManifest: CustomManifestValues, updatedManifest: CustomManifestValues, clusterId: Cluster['id']): Promise<import("axios").AxiosResponse<import("@openshift-assisted/types/assisted-installer-service").Manifest, any>>; }; export default ClustersService; //# sourceMappingURL=ClustersService.d.ts.map