/**
 * Admin API
 * The Admin API is used to manage the ApeCloud platform.
 *
 * The version of the OpenAPI document: 1.0.0
 * Contact: support@apecloud.com
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
import type { Configuration } from '../configuration';
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
import { type RequestArgs, BaseAPI } from '../base';
import type { Task } from '../models';
import type { TaskList } from '../models';
import type { TaskTypeList } from '../models';
/**
 * TaskApi - axios parameter creator
 * @export
 */
export declare const TaskApiAxiosParamCreator: (configuration?: Configuration) => {
    /**
     * Cancel a task by taskID.
     * @summary Cancel a task
     * @param {string} taskId ID of the task
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    cancelTask: (taskId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
    /**
     * Get task
     * @summary Get task detail
     * @param {string} taskId ID of the task
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    getTask: (taskId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
    /**
     *
     * @summary Get task log
     * @param {string} taskId ID of the task
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    getTaskLog: (taskId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
    /**
     * Get logs for a specific task step (supports job type steps)
     * @summary Get task step log
     * @param {string} taskId ID of the task
     * @param {string} stepId ID of the step
     * @param {boolean} [follow] Follow log stream (streaming mode for running steps)
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    getTaskStepLog: (taskId: string, stepId: string, follow?: boolean, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
    /**
     * List task types
     * @summary List task types
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    listTaskTypes: (options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
    /**
     * List tasks
     * @summary List task
     * @param {number} start The start of the time range for the query, unit is seconds.
     * @param {number} end The end of the time range for the query, unit is seconds.
     * @param {string} [orgName] Filter by organization name
     * @param {string} [resourceId] Filter by resource ID (such as cluster ID, environment ID, etc.)
     * @param {string} [resourceType] Filter by resource type
     * @param {string} [taskType] Filter by task type (supports multiple task types separated by commas, e.g., \&quot;cluster-scale,cluster-upgrade\&quot;)
     * @param {string} [status] Filter by task status (supports multiple statuses separated by commas, e.g., \&quot;Running,Pending\&quot;)
     * @param {number} [pageNumber] The pageNumber of the query
     * @param {number} [pageSize] The pageSize of the query
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    listTasks: (start: number, end: number, orgName?: string, resourceId?: string, resourceType?: string, taskType?: string, status?: string, pageNumber?: number, pageSize?: number, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
    /**
     * retry task
     * @summary Retry a task
     * @param {string} taskId ID of the task
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    retryTask: (taskId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
    /**
     * stop task
     * @summary Stop a task
     * @param {string} taskId ID of the task
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    stopTask: (taskId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
};
/**
 * TaskApi - functional programming interface
 * @export
 */
export declare const TaskApiFp: (configuration?: Configuration) => {
    /**
     * Cancel a task by taskID.
     * @summary Cancel a task
     * @param {string} taskId ID of the task
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    cancelTask(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
    /**
     * Get task
     * @summary Get task detail
     * @param {string} taskId ID of the task
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    getTask(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Task>>;
    /**
     *
     * @summary Get task log
     * @param {string} taskId ID of the task
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    getTaskLog(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
    /**
     * Get logs for a specific task step (supports job type steps)
     * @summary Get task step log
     * @param {string} taskId ID of the task
     * @param {string} stepId ID of the step
     * @param {boolean} [follow] Follow log stream (streaming mode for running steps)
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    getTaskStepLog(taskId: string, stepId: string, follow?: boolean, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>>;
    /**
     * List task types
     * @summary List task types
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    listTaskTypes(options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TaskTypeList>>;
    /**
     * List tasks
     * @summary List task
     * @param {number} start The start of the time range for the query, unit is seconds.
     * @param {number} end The end of the time range for the query, unit is seconds.
     * @param {string} [orgName] Filter by organization name
     * @param {string} [resourceId] Filter by resource ID (such as cluster ID, environment ID, etc.)
     * @param {string} [resourceType] Filter by resource type
     * @param {string} [taskType] Filter by task type (supports multiple task types separated by commas, e.g., \&quot;cluster-scale,cluster-upgrade\&quot;)
     * @param {string} [status] Filter by task status (supports multiple statuses separated by commas, e.g., \&quot;Running,Pending\&quot;)
     * @param {number} [pageNumber] The pageNumber of the query
     * @param {number} [pageSize] The pageSize of the query
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    listTasks(start: number, end: number, orgName?: string, resourceId?: string, resourceType?: string, taskType?: string, status?: string, pageNumber?: number, pageSize?: number, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<TaskList>>;
    /**
     * retry task
     * @summary Retry a task
     * @param {string} taskId ID of the task
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    retryTask(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Task>>;
    /**
     * stop task
     * @summary Stop a task
     * @param {string} taskId ID of the task
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    stopTask(taskId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<Task>>;
};
/**
 * TaskApi - factory interface
 * @export
 */
export declare const TaskApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
    /**
     * Cancel a task by taskID.
     * @summary Cancel a task
     * @param {TaskApiCancelTaskRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    cancelTask(requestParameters: TaskApiCancelTaskRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
    /**
     * Get task
     * @summary Get task detail
     * @param {TaskApiGetTaskRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    getTask(requestParameters: TaskApiGetTaskRequest, options?: RawAxiosRequestConfig): AxiosPromise<Task>;
    /**
     *
     * @summary Get task log
     * @param {TaskApiGetTaskLogRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    getTaskLog(requestParameters: TaskApiGetTaskLogRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
    /**
     * Get logs for a specific task step (supports job type steps)
     * @summary Get task step log
     * @param {TaskApiGetTaskStepLogRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    getTaskStepLog(requestParameters: TaskApiGetTaskStepLogRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
    /**
     * List task types
     * @summary List task types
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    listTaskTypes(options?: RawAxiosRequestConfig): AxiosPromise<TaskTypeList>;
    /**
     * List tasks
     * @summary List task
     * @param {TaskApiListTasksRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    listTasks(requestParameters: TaskApiListTasksRequest, options?: RawAxiosRequestConfig): AxiosPromise<TaskList>;
    /**
     * retry task
     * @summary Retry a task
     * @param {TaskApiRetryTaskRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    retryTask(requestParameters: TaskApiRetryTaskRequest, options?: RawAxiosRequestConfig): AxiosPromise<Task>;
    /**
     * stop task
     * @summary Stop a task
     * @param {TaskApiStopTaskRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    stopTask(requestParameters: TaskApiStopTaskRequest, options?: RawAxiosRequestConfig): AxiosPromise<Task>;
};
/**
 * TaskApi - interface
 * @export
 * @interface TaskApi
 */
export interface TaskApiInterface {
    /**
     * Cancel a task by taskID.
     * @summary Cancel a task
     * @param {TaskApiCancelTaskRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof TaskApiInterface
     */
    cancelTask(requestParameters: TaskApiCancelTaskRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
    /**
     * Get task
     * @summary Get task detail
     * @param {TaskApiGetTaskRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof TaskApiInterface
     */
    getTask(requestParameters: TaskApiGetTaskRequest, options?: RawAxiosRequestConfig): AxiosPromise<Task>;
    /**
     *
     * @summary Get task log
     * @param {TaskApiGetTaskLogRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof TaskApiInterface
     */
    getTaskLog(requestParameters: TaskApiGetTaskLogRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
    /**
     * Get logs for a specific task step (supports job type steps)
     * @summary Get task step log
     * @param {TaskApiGetTaskStepLogRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof TaskApiInterface
     */
    getTaskStepLog(requestParameters: TaskApiGetTaskStepLogRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;
    /**
     * List task types
     * @summary List task types
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof TaskApiInterface
     */
    listTaskTypes(options?: RawAxiosRequestConfig): AxiosPromise<TaskTypeList>;
    /**
     * List tasks
     * @summary List task
     * @param {TaskApiListTasksRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof TaskApiInterface
     */
    listTasks(requestParameters: TaskApiListTasksRequest, options?: RawAxiosRequestConfig): AxiosPromise<TaskList>;
    /**
     * retry task
     * @summary Retry a task
     * @param {TaskApiRetryTaskRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof TaskApiInterface
     */
    retryTask(requestParameters: TaskApiRetryTaskRequest, options?: RawAxiosRequestConfig): AxiosPromise<Task>;
    /**
     * stop task
     * @summary Stop a task
     * @param {TaskApiStopTaskRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof TaskApiInterface
     */
    stopTask(requestParameters: TaskApiStopTaskRequest, options?: RawAxiosRequestConfig): AxiosPromise<Task>;
}
/**
 * Request parameters for cancelTask operation in TaskApi.
 * @export
 * @interface TaskApiCancelTaskRequest
 */
export interface TaskApiCancelTaskRequest {
    /**
     * ID of the task
     * @type {string}
     * @memberof TaskApiCancelTask
     */
    readonly taskId: string;
}
/**
 * Request parameters for getTask operation in TaskApi.
 * @export
 * @interface TaskApiGetTaskRequest
 */
export interface TaskApiGetTaskRequest {
    /**
     * ID of the task
     * @type {string}
     * @memberof TaskApiGetTask
     */
    readonly taskId: string;
}
/**
 * Request parameters for getTaskLog operation in TaskApi.
 * @export
 * @interface TaskApiGetTaskLogRequest
 */
export interface TaskApiGetTaskLogRequest {
    /**
     * ID of the task
     * @type {string}
     * @memberof TaskApiGetTaskLog
     */
    readonly taskId: string;
}
/**
 * Request parameters for getTaskStepLog operation in TaskApi.
 * @export
 * @interface TaskApiGetTaskStepLogRequest
 */
export interface TaskApiGetTaskStepLogRequest {
    /**
     * ID of the task
     * @type {string}
     * @memberof TaskApiGetTaskStepLog
     */
    readonly taskId: string;
    /**
     * ID of the step
     * @type {string}
     * @memberof TaskApiGetTaskStepLog
     */
    readonly stepId: string;
    /**
     * Follow log stream (streaming mode for running steps)
     * @type {boolean}
     * @memberof TaskApiGetTaskStepLog
     */
    readonly follow?: boolean;
}
/**
 * Request parameters for listTasks operation in TaskApi.
 * @export
 * @interface TaskApiListTasksRequest
 */
export interface TaskApiListTasksRequest {
    /**
     * The start of the time range for the query, unit is seconds.
     * @type {number}
     * @memberof TaskApiListTasks
     */
    readonly start: number;
    /**
     * The end of the time range for the query, unit is seconds.
     * @type {number}
     * @memberof TaskApiListTasks
     */
    readonly end: number;
    /**
     * Filter by organization name
     * @type {string}
     * @memberof TaskApiListTasks
     */
    readonly orgName?: string;
    /**
     * Filter by resource ID (such as cluster ID, environment ID, etc.)
     * @type {string}
     * @memberof TaskApiListTasks
     */
    readonly resourceId?: string;
    /**
     * Filter by resource type
     * @type {string}
     * @memberof TaskApiListTasks
     */
    readonly resourceType?: string;
    /**
     * Filter by task type (supports multiple task types separated by commas, e.g., \&quot;cluster-scale,cluster-upgrade\&quot;)
     * @type {string}
     * @memberof TaskApiListTasks
     */
    readonly taskType?: string;
    /**
     * Filter by task status (supports multiple statuses separated by commas, e.g., \&quot;Running,Pending\&quot;)
     * @type {string}
     * @memberof TaskApiListTasks
     */
    readonly status?: string;
    /**
     * The pageNumber of the query
     * @type {number}
     * @memberof TaskApiListTasks
     */
    readonly pageNumber?: number;
    /**
     * The pageSize of the query
     * @type {number}
     * @memberof TaskApiListTasks
     */
    readonly pageSize?: number;
}
/**
 * Request parameters for retryTask operation in TaskApi.
 * @export
 * @interface TaskApiRetryTaskRequest
 */
export interface TaskApiRetryTaskRequest {
    /**
     * ID of the task
     * @type {string}
     * @memberof TaskApiRetryTask
     */
    readonly taskId: string;
}
/**
 * Request parameters for stopTask operation in TaskApi.
 * @export
 * @interface TaskApiStopTaskRequest
 */
export interface TaskApiStopTaskRequest {
    /**
     * ID of the task
     * @type {string}
     * @memberof TaskApiStopTask
     */
    readonly taskId: string;
}
/**
 * TaskApi - object-oriented interface
 * @export
 * @class TaskApi
 * @extends {BaseAPI}
 */
export declare class TaskApi extends BaseAPI implements TaskApiInterface {
    /**
     * Cancel a task by taskID.
     * @summary Cancel a task
     * @param {TaskApiCancelTaskRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof TaskApi
     */
    cancelTask(requestParameters: TaskApiCancelTaskRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
    /**
     * Get task
     * @summary Get task detail
     * @param {TaskApiGetTaskRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof TaskApi
     */
    getTask(requestParameters: TaskApiGetTaskRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Task, any, {}>>;
    /**
     *
     * @summary Get task log
     * @param {TaskApiGetTaskLogRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof TaskApi
     */
    getTaskLog(requestParameters: TaskApiGetTaskLogRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
    /**
     * Get logs for a specific task step (supports job type steps)
     * @summary Get task step log
     * @param {TaskApiGetTaskStepLogRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof TaskApi
     */
    getTaskStepLog(requestParameters: TaskApiGetTaskStepLogRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<void, any, {}>>;
    /**
     * List task types
     * @summary List task types
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof TaskApi
     */
    listTaskTypes(options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TaskTypeList, any, {}>>;
    /**
     * List tasks
     * @summary List task
     * @param {TaskApiListTasksRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof TaskApi
     */
    listTasks(requestParameters: TaskApiListTasksRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<TaskList, any, {}>>;
    /**
     * retry task
     * @summary Retry a task
     * @param {TaskApiRetryTaskRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof TaskApi
     */
    retryTask(requestParameters: TaskApiRetryTaskRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Task, any, {}>>;
    /**
     * stop task
     * @summary Stop a task
     * @param {TaskApiStopTaskRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof TaskApi
     */
    stopTask(requestParameters: TaskApiStopTaskRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<Task, any, {}>>;
}
//# sourceMappingURL=task-api.d.ts.map