/* tslint:disable */
/* eslint-disable */
/**
 * KubeBlocks Cloud API
 * KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources.  The API is organized around REST.  Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs.  We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth. 
 *
 * 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 globalAxios from 'axios';
// Some imports not used depending on template conditions
// @ts-ignore
import { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
// @ts-ignore
import { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
// @ts-ignore
import type { APIErrorResponse } from '../models';
// @ts-ignore
import type { AlertStrategy } from '../models';
// @ts-ignore
import type { AlertStrategyList } from '../models';
/**
 * AlertStrategyApi - axios parameter creator
 * @export
 */
export const AlertStrategyApiAxiosParamCreator = function (configuration?: Configuration) {
    return {
        /**
         * 
         * @summary Create alert strategy in org
         * @param {string} orgName name of the Org
         * @param {AlertStrategy} body 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        createAlertStrategy: async (orgName: string, body: AlertStrategy, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'orgName' is not null or undefined
            assertParamExists('createAlertStrategy', 'orgName', orgName)
            // verify required parameter 'body' is not null or undefined
            assertParamExists('createAlertStrategy', 'body', body)
            const localVarPath = `/api/v1/organizations/{orgName}/alerts/strategies`
                .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }

            const localVarRequestOptions = { method: 'POST', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;

            // authentication BearerToken required
            // http bearer authentication required
            await setBearerAuthToObject(localVarHeaderParameter, configuration)

            // authentication DigestAuth required
            await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)


    
            localVarHeaderParameter['Content-Type'] = 'application/json';

            setSearchParams(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
            localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * 
         * @summary Delete alert strategy
         * @param {string} orgName name of the Org
         * @param {string} strategyId id of the alert strategies
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        deleteAlertStrategy: async (orgName: string, strategyId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'orgName' is not null or undefined
            assertParamExists('deleteAlertStrategy', 'orgName', orgName)
            // verify required parameter 'strategyId' is not null or undefined
            assertParamExists('deleteAlertStrategy', 'strategyId', strategyId)
            const localVarPath = `/api/v1/organizations/{orgName}/alerts/strategies/{strategyId}`
                .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
                .replace(`{${"strategyId"}}`, encodeURIComponent(String(strategyId)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }

            const localVarRequestOptions = { method: 'DELETE', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;

            // authentication BearerToken required
            // http bearer authentication required
            await setBearerAuthToObject(localVarHeaderParameter, configuration)

            // authentication DigestAuth required
            await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)


    
            setSearchParams(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * 
         * @summary List alert strategies
         * @param {string} orgName name of the Org
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        listAlertStrategies: async (orgName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'orgName' is not null or undefined
            assertParamExists('listAlertStrategies', 'orgName', orgName)
            const localVarPath = `/api/v1/organizations/{orgName}/alerts/strategies`
                .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }

            const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;

            // authentication BearerToken required
            // http bearer authentication required
            await setBearerAuthToObject(localVarHeaderParameter, configuration)

            // authentication DigestAuth required
            await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)


    
            setSearchParams(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * 
         * @summary Update alert strategy
         * @param {string} orgName name of the Org
         * @param {AlertStrategy} body 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        patchAlertStrategy: async (orgName: string, body: AlertStrategy, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'orgName' is not null or undefined
            assertParamExists('patchAlertStrategy', 'orgName', orgName)
            // verify required parameter 'body' is not null or undefined
            assertParamExists('patchAlertStrategy', 'body', body)
            const localVarPath = `/api/v1/organizations/{orgName}/alerts/strategies`
                .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }

            const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;

            // authentication BearerToken required
            // http bearer authentication required
            await setBearerAuthToObject(localVarHeaderParameter, configuration)

            // authentication DigestAuth required
            await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)


    
            localVarHeaderParameter['Content-Type'] = 'application/json';

            setSearchParams(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
            localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * 
         * @summary Update alert strategy
         * @param {string} orgName name of the Org
         * @param {string} strategyId id of the alert strategies
         * @param {AlertStrategy} body 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        updateAlertStrategy: async (orgName: string, strategyId: string, body: AlertStrategy, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'orgName' is not null or undefined
            assertParamExists('updateAlertStrategy', 'orgName', orgName)
            // verify required parameter 'strategyId' is not null or undefined
            assertParamExists('updateAlertStrategy', 'strategyId', strategyId)
            // verify required parameter 'body' is not null or undefined
            assertParamExists('updateAlertStrategy', 'body', body)
            const localVarPath = `/api/v1/organizations/{orgName}/alerts/strategies/{strategyId}`
                .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
                .replace(`{${"strategyId"}}`, encodeURIComponent(String(strategyId)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }

            const localVarRequestOptions = { method: 'PATCH', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;

            // authentication BearerToken required
            // http bearer authentication required
            await setBearerAuthToObject(localVarHeaderParameter, configuration)

            // authentication DigestAuth required
            await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration)


    
            localVarHeaderParameter['Content-Type'] = 'application/json';

            setSearchParams(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};
            localVarRequestOptions.data = serializeDataIfNeeded(body, localVarRequestOptions, configuration)

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
    }
};

/**
 * AlertStrategyApi - functional programming interface
 * @export
 */
export const AlertStrategyApiFp = function(configuration?: Configuration) {
    const localVarAxiosParamCreator = AlertStrategyApiAxiosParamCreator(configuration)
    return {
        /**
         * 
         * @summary Create alert strategy in org
         * @param {string} orgName name of the Org
         * @param {AlertStrategy} body 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async createAlertStrategy(orgName: string, body: AlertStrategy, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertStrategy>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.createAlertStrategy(orgName, body, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = operationServerMap['AlertStrategyApi.createAlertStrategy']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         * 
         * @summary Delete alert strategy
         * @param {string} orgName name of the Org
         * @param {string} strategyId id of the alert strategies
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async deleteAlertStrategy(orgName: string, strategyId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.deleteAlertStrategy(orgName, strategyId, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = operationServerMap['AlertStrategyApi.deleteAlertStrategy']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         * 
         * @summary List alert strategies
         * @param {string} orgName name of the Org
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async listAlertStrategies(orgName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AlertStrategyList>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.listAlertStrategies(orgName, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = operationServerMap['AlertStrategyApi.listAlertStrategies']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         * 
         * @summary Update alert strategy
         * @param {string} orgName name of the Org
         * @param {AlertStrategy} body 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async patchAlertStrategy(orgName: string, body: AlertStrategy, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.patchAlertStrategy(orgName, body, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = operationServerMap['AlertStrategyApi.patchAlertStrategy']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         * 
         * @summary Update alert strategy
         * @param {string} orgName name of the Org
         * @param {string} strategyId id of the alert strategies
         * @param {AlertStrategy} body 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async updateAlertStrategy(orgName: string, strategyId: string, body: AlertStrategy, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<object>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.updateAlertStrategy(orgName, strategyId, body, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = operationServerMap['AlertStrategyApi.updateAlertStrategy']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
    }
};

/**
 * AlertStrategyApi - factory interface
 * @export
 */
export const AlertStrategyApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
    const localVarFp = AlertStrategyApiFp(configuration)
    return {
        /**
         * 
         * @summary Create alert strategy in org
         * @param {AlertStrategyApiCreateAlertStrategyRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        createAlertStrategy(requestParameters: AlertStrategyApiCreateAlertStrategyRequest, options?: RawAxiosRequestConfig): AxiosPromise<AlertStrategy> {
            return localVarFp.createAlertStrategy(requestParameters.orgName, requestParameters.body, options).then((request) => request(axios, basePath));
        },
        /**
         * 
         * @summary Delete alert strategy
         * @param {AlertStrategyApiDeleteAlertStrategyRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        deleteAlertStrategy(requestParameters: AlertStrategyApiDeleteAlertStrategyRequest, options?: RawAxiosRequestConfig): AxiosPromise<object> {
            return localVarFp.deleteAlertStrategy(requestParameters.orgName, requestParameters.strategyId, options).then((request) => request(axios, basePath));
        },
        /**
         * 
         * @summary List alert strategies
         * @param {AlertStrategyApiListAlertStrategiesRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        listAlertStrategies(requestParameters: AlertStrategyApiListAlertStrategiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<AlertStrategyList> {
            return localVarFp.listAlertStrategies(requestParameters.orgName, options).then((request) => request(axios, basePath));
        },
        /**
         * 
         * @summary Update alert strategy
         * @param {AlertStrategyApiPatchAlertStrategyRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        patchAlertStrategy(requestParameters: AlertStrategyApiPatchAlertStrategyRequest, options?: RawAxiosRequestConfig): AxiosPromise<object> {
            return localVarFp.patchAlertStrategy(requestParameters.orgName, requestParameters.body, options).then((request) => request(axios, basePath));
        },
        /**
         * 
         * @summary Update alert strategy
         * @param {AlertStrategyApiUpdateAlertStrategyRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        updateAlertStrategy(requestParameters: AlertStrategyApiUpdateAlertStrategyRequest, options?: RawAxiosRequestConfig): AxiosPromise<object> {
            return localVarFp.updateAlertStrategy(requestParameters.orgName, requestParameters.strategyId, requestParameters.body, options).then((request) => request(axios, basePath));
        },
    };
};

/**
 * AlertStrategyApi - interface
 * @export
 * @interface AlertStrategyApi
 */
export interface AlertStrategyApiInterface {
    /**
     * 
     * @summary Create alert strategy in org
     * @param {AlertStrategyApiCreateAlertStrategyRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof AlertStrategyApiInterface
     */
    createAlertStrategy(requestParameters: AlertStrategyApiCreateAlertStrategyRequest, options?: RawAxiosRequestConfig): AxiosPromise<AlertStrategy>;

    /**
     * 
     * @summary Delete alert strategy
     * @param {AlertStrategyApiDeleteAlertStrategyRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof AlertStrategyApiInterface
     */
    deleteAlertStrategy(requestParameters: AlertStrategyApiDeleteAlertStrategyRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;

    /**
     * 
     * @summary List alert strategies
     * @param {AlertStrategyApiListAlertStrategiesRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof AlertStrategyApiInterface
     */
    listAlertStrategies(requestParameters: AlertStrategyApiListAlertStrategiesRequest, options?: RawAxiosRequestConfig): AxiosPromise<AlertStrategyList>;

    /**
     * 
     * @summary Update alert strategy
     * @param {AlertStrategyApiPatchAlertStrategyRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof AlertStrategyApiInterface
     */
    patchAlertStrategy(requestParameters: AlertStrategyApiPatchAlertStrategyRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;

    /**
     * 
     * @summary Update alert strategy
     * @param {AlertStrategyApiUpdateAlertStrategyRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof AlertStrategyApiInterface
     */
    updateAlertStrategy(requestParameters: AlertStrategyApiUpdateAlertStrategyRequest, options?: RawAxiosRequestConfig): AxiosPromise<object>;

}

/**
 * Request parameters for createAlertStrategy operation in AlertStrategyApi.
 * @export
 * @interface AlertStrategyApiCreateAlertStrategyRequest
 */
export interface AlertStrategyApiCreateAlertStrategyRequest {
    /**
     * name of the Org
     * @type {string}
     * @memberof AlertStrategyApiCreateAlertStrategy
     */
    readonly orgName: string

    /**
     * 
     * @type {AlertStrategy}
     * @memberof AlertStrategyApiCreateAlertStrategy
     */
    readonly body: AlertStrategy
}

/**
 * Request parameters for deleteAlertStrategy operation in AlertStrategyApi.
 * @export
 * @interface AlertStrategyApiDeleteAlertStrategyRequest
 */
export interface AlertStrategyApiDeleteAlertStrategyRequest {
    /**
     * name of the Org
     * @type {string}
     * @memberof AlertStrategyApiDeleteAlertStrategy
     */
    readonly orgName: string

    /**
     * id of the alert strategies
     * @type {string}
     * @memberof AlertStrategyApiDeleteAlertStrategy
     */
    readonly strategyId: string
}

/**
 * Request parameters for listAlertStrategies operation in AlertStrategyApi.
 * @export
 * @interface AlertStrategyApiListAlertStrategiesRequest
 */
export interface AlertStrategyApiListAlertStrategiesRequest {
    /**
     * name of the Org
     * @type {string}
     * @memberof AlertStrategyApiListAlertStrategies
     */
    readonly orgName: string
}

/**
 * Request parameters for patchAlertStrategy operation in AlertStrategyApi.
 * @export
 * @interface AlertStrategyApiPatchAlertStrategyRequest
 */
export interface AlertStrategyApiPatchAlertStrategyRequest {
    /**
     * name of the Org
     * @type {string}
     * @memberof AlertStrategyApiPatchAlertStrategy
     */
    readonly orgName: string

    /**
     * 
     * @type {AlertStrategy}
     * @memberof AlertStrategyApiPatchAlertStrategy
     */
    readonly body: AlertStrategy
}

/**
 * Request parameters for updateAlertStrategy operation in AlertStrategyApi.
 * @export
 * @interface AlertStrategyApiUpdateAlertStrategyRequest
 */
export interface AlertStrategyApiUpdateAlertStrategyRequest {
    /**
     * name of the Org
     * @type {string}
     * @memberof AlertStrategyApiUpdateAlertStrategy
     */
    readonly orgName: string

    /**
     * id of the alert strategies
     * @type {string}
     * @memberof AlertStrategyApiUpdateAlertStrategy
     */
    readonly strategyId: string

    /**
     * 
     * @type {AlertStrategy}
     * @memberof AlertStrategyApiUpdateAlertStrategy
     */
    readonly body: AlertStrategy
}

/**
 * AlertStrategyApi - object-oriented interface
 * @export
 * @class AlertStrategyApi
 * @extends {BaseAPI}
 */
export class AlertStrategyApi extends BaseAPI implements AlertStrategyApiInterface {
    /**
     * 
     * @summary Create alert strategy in org
     * @param {AlertStrategyApiCreateAlertStrategyRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof AlertStrategyApi
     */
    public createAlertStrategy(requestParameters: AlertStrategyApiCreateAlertStrategyRequest, options?: RawAxiosRequestConfig) {
        return AlertStrategyApiFp(this.configuration).createAlertStrategy(requestParameters.orgName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * 
     * @summary Delete alert strategy
     * @param {AlertStrategyApiDeleteAlertStrategyRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof AlertStrategyApi
     */
    public deleteAlertStrategy(requestParameters: AlertStrategyApiDeleteAlertStrategyRequest, options?: RawAxiosRequestConfig) {
        return AlertStrategyApiFp(this.configuration).deleteAlertStrategy(requestParameters.orgName, requestParameters.strategyId, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * 
     * @summary List alert strategies
     * @param {AlertStrategyApiListAlertStrategiesRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof AlertStrategyApi
     */
    public listAlertStrategies(requestParameters: AlertStrategyApiListAlertStrategiesRequest, options?: RawAxiosRequestConfig) {
        return AlertStrategyApiFp(this.configuration).listAlertStrategies(requestParameters.orgName, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * 
     * @summary Update alert strategy
     * @param {AlertStrategyApiPatchAlertStrategyRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof AlertStrategyApi
     */
    public patchAlertStrategy(requestParameters: AlertStrategyApiPatchAlertStrategyRequest, options?: RawAxiosRequestConfig) {
        return AlertStrategyApiFp(this.configuration).patchAlertStrategy(requestParameters.orgName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * 
     * @summary Update alert strategy
     * @param {AlertStrategyApiUpdateAlertStrategyRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof AlertStrategyApi
     */
    public updateAlertStrategy(requestParameters: AlertStrategyApiUpdateAlertStrategyRequest, options?: RawAxiosRequestConfig) {
        return AlertStrategyApiFp(this.configuration).updateAlertStrategy(requestParameters.orgName, requestParameters.strategyId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
    }
}

