export type GetApiOrganizationOrganizationIdClusterClusterIdInstallationHelmValuesArgs = {organizationId: string, clusterId: string}; export type GetApiOrganizationOrganizationIdClusterClusterIdInstallationHelmValuesOptions = {baseUrl?: string | undefined, ApiKeyAuth?: string | undefined, fetch?: typeof fetch | undefined}; /** * Get cluster helm values for self managed installation * * GET /organization/{organizationId}/cluster/{clusterId}/installationHelmValues * * Also accepts auth: bearerAuth */ export const getApiOrganizationOrganizationIdClusterClusterIdInstallationHelmValues = async (args: GetApiOrganizationOrganizationIdClusterClusterIdInstallationHelmValuesArgs, options?: GetApiOrganizationOrganizationIdClusterClusterIdInstallationHelmValuesOptions) => { const {baseUrl = "https://api.qovery.com", fetch: fetchFn = fetch, ApiKeyAuth} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('accept', "application/x-yaml") if (ApiKeyAuth !== undefined) headers.set("Authorization", ApiKeyAuth) const url = `${baseUrl.replace(/\/+$/, '')}/organization/${encodeURIComponent(String(args.organizationId))}/cluster/${encodeURIComponent(String(args.clusterId))}/installationHelmValues${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "GET", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return res.blob() };