export type CreateApiV2DistributorsAccountsAccountIdBackupTasksIdActivateAllArgs = {id: string, accountId: string}; export type CreateApiV2DistributorsAccountsAccountIdBackupTasksIdActivateAllOptions = {baseUrl?: string | undefined, fetch?: typeof fetch | undefined}; /** * activateAll * * POST /v2/distributors/accounts/{accountId}/backup-tasks/{id}/activateAll */ export const createApiV2DistributorsAccountsAccountIdBackupTasksIdActivateAll = async (args: CreateApiV2DistributorsAccountsAccountIdBackupTasksIdActivateAllArgs, options?: CreateApiV2DistributorsAccountsAccountIdBackupTasksIdActivateAllOptions) => { const {baseUrl = "https://api.cloudally.com", fetch: fetchFn = fetch} = options ?? {} const query = new URLSearchParams() const headers = new Headers() headers.set('accept', "*/*") const url = `${baseUrl.replace(/\/+$/, '')}/v2/distributors/accounts/${encodeURIComponent(String(args.accountId))}/backup-tasks/${encodeURIComponent(String(args.id))}/activateAll${query.size > 0 ? `?${query}` : ''}` const res = await fetchFn(url, {method: "POST", headers}) if (!res.ok) throw new Error(`Request failed with status ${res.status}`, {cause: {status: res.status, body: await res.text()}}) return res.blob() };