/* tslint:disable */
/* eslint-disable */
/**
 * Halo
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 2.20.10-SNAPSHOT
 * 
 *
 * 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, RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base';
// @ts-ignore
import { ExtensionDefinition } from '../models';
// @ts-ignore
import { ExtensionDefinitionList } from '../models';
// @ts-ignore
import { JsonPatchInner } from '../models';
/**
 * ExtensionDefinitionV1alpha1Api - axios parameter creator
 * @export
 */
export const ExtensionDefinitionV1alpha1ApiAxiosParamCreator = function (configuration?: Configuration) {
    return {
        /**
         * Create ExtensionDefinition
         * @param {ExtensionDefinition} [extensionDefinition] Fresh extensiondefinition
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        createExtensionDefinition: async (extensionDefinition?: ExtensionDefinition, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
            const localVarPath = `/apis/plugin.halo.run/v1alpha1/extensiondefinitions`;
            // 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 basicAuth required
            // http basic authentication required
            setBasicAuthToObject(localVarRequestOptions, configuration)

            // authentication bearerAuth required
            // http bearer authentication required
            await setBearerAuthToObject(localVarHeaderParameter, 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(extensionDefinition, localVarRequestOptions, configuration)

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Delete ExtensionDefinition
         * @param {string} name Name of extensiondefinition
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        deleteExtensionDefinition: async (name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'name' is not null or undefined
            assertParamExists('deleteExtensionDefinition', 'name', name)
            const localVarPath = `/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}`
                .replace(`{${"name"}}`, encodeURIComponent(String(name)));
            // 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 basicAuth required
            // http basic authentication required
            setBasicAuthToObject(localVarRequestOptions, configuration)

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


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

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Get ExtensionDefinition
         * @param {string} name Name of extensiondefinition
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getExtensionDefinition: async (name: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'name' is not null or undefined
            assertParamExists('getExtensionDefinition', 'name', name)
            const localVarPath = `/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}`
                .replace(`{${"name"}}`, encodeURIComponent(String(name)));
            // 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 basicAuth required
            // http basic authentication required
            setBasicAuthToObject(localVarRequestOptions, configuration)

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


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

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * List ExtensionDefinition
         * @param {number} [page] Page number. Default is 0.
         * @param {number} [size] Size number. Default is 0.
         * @param {Array<string>} [labelSelector] Label selector. e.g.: hidden!&#x3D;true
         * @param {Array<string>} [fieldSelector] Field selector. e.g.: metadata.name&#x3D;&#x3D;halo
         * @param {Array<string>} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        listExtensionDefinition: async (page?: number, size?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, sort?: Array<string>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
            const localVarPath = `/apis/plugin.halo.run/v1alpha1/extensiondefinitions`;
            // 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 basicAuth required
            // http basic authentication required
            setBasicAuthToObject(localVarRequestOptions, configuration)

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

            if (page !== undefined) {
                localVarQueryParameter['page'] = page;
            }

            if (size !== undefined) {
                localVarQueryParameter['size'] = size;
            }

            if (labelSelector) {
                localVarQueryParameter['labelSelector'] = labelSelector;
            }

            if (fieldSelector) {
                localVarQueryParameter['fieldSelector'] = fieldSelector;
            }

            if (sort) {
                localVarQueryParameter['sort'] = sort;
            }


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

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Patch ExtensionDefinition
         * @param {string} name Name of extensiondefinition
         * @param {Array<JsonPatchInner>} [jsonPatchInner] 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        patchExtensionDefinition: async (name: string, jsonPatchInner?: Array<JsonPatchInner>, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'name' is not null or undefined
            assertParamExists('patchExtensionDefinition', 'name', name)
            const localVarPath = `/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}`
                .replace(`{${"name"}}`, encodeURIComponent(String(name)));
            // 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 basicAuth required
            // http basic authentication required
            setBasicAuthToObject(localVarRequestOptions, configuration)

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


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

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

            return {
                url: toPathString(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         * Update ExtensionDefinition
         * @param {string} name Name of extensiondefinition
         * @param {ExtensionDefinition} [extensionDefinition] Updated extensiondefinition
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        updateExtensionDefinition: async (name: string, extensionDefinition?: ExtensionDefinition, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'name' is not null or undefined
            assertParamExists('updateExtensionDefinition', 'name', name)
            const localVarPath = `/apis/plugin.halo.run/v1alpha1/extensiondefinitions/{name}`
                .replace(`{${"name"}}`, encodeURIComponent(String(name)));
            // 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: 'PUT', ...baseOptions, ...options};
            const localVarHeaderParameter = {} as any;
            const localVarQueryParameter = {} as any;

            // authentication basicAuth required
            // http basic authentication required
            setBasicAuthToObject(localVarRequestOptions, configuration)

            // authentication bearerAuth required
            // http bearer authentication required
            await setBearerAuthToObject(localVarHeaderParameter, 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(extensionDefinition, localVarRequestOptions, configuration)

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

/**
 * ExtensionDefinitionV1alpha1Api - functional programming interface
 * @export
 */
export const ExtensionDefinitionV1alpha1ApiFp = function(configuration?: Configuration) {
    const localVarAxiosParamCreator = ExtensionDefinitionV1alpha1ApiAxiosParamCreator(configuration)
    return {
        /**
         * Create ExtensionDefinition
         * @param {ExtensionDefinition} [extensionDefinition] Fresh extensiondefinition
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async createExtensionDefinition(extensionDefinition?: ExtensionDefinition, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExtensionDefinition>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.createExtensionDefinition(extensionDefinition, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = operationServerMap['ExtensionDefinitionV1alpha1Api.createExtensionDefinition']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         * Delete ExtensionDefinition
         * @param {string} name Name of extensiondefinition
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async deleteExtensionDefinition(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.deleteExtensionDefinition(name, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = operationServerMap['ExtensionDefinitionV1alpha1Api.deleteExtensionDefinition']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         * Get ExtensionDefinition
         * @param {string} name Name of extensiondefinition
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async getExtensionDefinition(name: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExtensionDefinition>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.getExtensionDefinition(name, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = operationServerMap['ExtensionDefinitionV1alpha1Api.getExtensionDefinition']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         * List ExtensionDefinition
         * @param {number} [page] Page number. Default is 0.
         * @param {number} [size] Size number. Default is 0.
         * @param {Array<string>} [labelSelector] Label selector. e.g.: hidden!&#x3D;true
         * @param {Array<string>} [fieldSelector] Field selector. e.g.: metadata.name&#x3D;&#x3D;halo
         * @param {Array<string>} [sort] Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async listExtensionDefinition(page?: number, size?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, sort?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExtensionDefinitionList>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.listExtensionDefinition(page, size, labelSelector, fieldSelector, sort, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = operationServerMap['ExtensionDefinitionV1alpha1Api.listExtensionDefinition']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         * Patch ExtensionDefinition
         * @param {string} name Name of extensiondefinition
         * @param {Array<JsonPatchInner>} [jsonPatchInner] 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async patchExtensionDefinition(name: string, jsonPatchInner?: Array<JsonPatchInner>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExtensionDefinition>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.patchExtensionDefinition(name, jsonPatchInner, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = operationServerMap['ExtensionDefinitionV1alpha1Api.patchExtensionDefinition']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         * Update ExtensionDefinition
         * @param {string} name Name of extensiondefinition
         * @param {ExtensionDefinition} [extensionDefinition] Updated extensiondefinition
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async updateExtensionDefinition(name: string, extensionDefinition?: ExtensionDefinition, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ExtensionDefinition>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.updateExtensionDefinition(name, extensionDefinition, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = operationServerMap['ExtensionDefinitionV1alpha1Api.updateExtensionDefinition']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
    }
};

/**
 * ExtensionDefinitionV1alpha1Api - factory interface
 * @export
 */
export const ExtensionDefinitionV1alpha1ApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
    const localVarFp = ExtensionDefinitionV1alpha1ApiFp(configuration)
    return {
        /**
         * Create ExtensionDefinition
         * @param {ExtensionDefinitionV1alpha1ApiCreateExtensionDefinitionRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        createExtensionDefinition(requestParameters: ExtensionDefinitionV1alpha1ApiCreateExtensionDefinitionRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<ExtensionDefinition> {
            return localVarFp.createExtensionDefinition(requestParameters.extensionDefinition, options).then((request) => request(axios, basePath));
        },
        /**
         * Delete ExtensionDefinition
         * @param {ExtensionDefinitionV1alpha1ApiDeleteExtensionDefinitionRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        deleteExtensionDefinition(requestParameters: ExtensionDefinitionV1alpha1ApiDeleteExtensionDefinitionRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
            return localVarFp.deleteExtensionDefinition(requestParameters.name, options).then((request) => request(axios, basePath));
        },
        /**
         * Get ExtensionDefinition
         * @param {ExtensionDefinitionV1alpha1ApiGetExtensionDefinitionRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        getExtensionDefinition(requestParameters: ExtensionDefinitionV1alpha1ApiGetExtensionDefinitionRequest, options?: RawAxiosRequestConfig): AxiosPromise<ExtensionDefinition> {
            return localVarFp.getExtensionDefinition(requestParameters.name, options).then((request) => request(axios, basePath));
        },
        /**
         * List ExtensionDefinition
         * @param {ExtensionDefinitionV1alpha1ApiListExtensionDefinitionRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        listExtensionDefinition(requestParameters: ExtensionDefinitionV1alpha1ApiListExtensionDefinitionRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<ExtensionDefinitionList> {
            return localVarFp.listExtensionDefinition(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(axios, basePath));
        },
        /**
         * Patch ExtensionDefinition
         * @param {ExtensionDefinitionV1alpha1ApiPatchExtensionDefinitionRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        patchExtensionDefinition(requestParameters: ExtensionDefinitionV1alpha1ApiPatchExtensionDefinitionRequest, options?: RawAxiosRequestConfig): AxiosPromise<ExtensionDefinition> {
            return localVarFp.patchExtensionDefinition(requestParameters.name, requestParameters.jsonPatchInner, options).then((request) => request(axios, basePath));
        },
        /**
         * Update ExtensionDefinition
         * @param {ExtensionDefinitionV1alpha1ApiUpdateExtensionDefinitionRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        updateExtensionDefinition(requestParameters: ExtensionDefinitionV1alpha1ApiUpdateExtensionDefinitionRequest, options?: RawAxiosRequestConfig): AxiosPromise<ExtensionDefinition> {
            return localVarFp.updateExtensionDefinition(requestParameters.name, requestParameters.extensionDefinition, options).then((request) => request(axios, basePath));
        },
    };
};

/**
 * Request parameters for createExtensionDefinition operation in ExtensionDefinitionV1alpha1Api.
 * @export
 * @interface ExtensionDefinitionV1alpha1ApiCreateExtensionDefinitionRequest
 */
export interface ExtensionDefinitionV1alpha1ApiCreateExtensionDefinitionRequest {
    /**
     * Fresh extensiondefinition
     * @type {ExtensionDefinition}
     * @memberof ExtensionDefinitionV1alpha1ApiCreateExtensionDefinition
     */
    readonly extensionDefinition?: ExtensionDefinition
}

/**
 * Request parameters for deleteExtensionDefinition operation in ExtensionDefinitionV1alpha1Api.
 * @export
 * @interface ExtensionDefinitionV1alpha1ApiDeleteExtensionDefinitionRequest
 */
export interface ExtensionDefinitionV1alpha1ApiDeleteExtensionDefinitionRequest {
    /**
     * Name of extensiondefinition
     * @type {string}
     * @memberof ExtensionDefinitionV1alpha1ApiDeleteExtensionDefinition
     */
    readonly name: string
}

/**
 * Request parameters for getExtensionDefinition operation in ExtensionDefinitionV1alpha1Api.
 * @export
 * @interface ExtensionDefinitionV1alpha1ApiGetExtensionDefinitionRequest
 */
export interface ExtensionDefinitionV1alpha1ApiGetExtensionDefinitionRequest {
    /**
     * Name of extensiondefinition
     * @type {string}
     * @memberof ExtensionDefinitionV1alpha1ApiGetExtensionDefinition
     */
    readonly name: string
}

/**
 * Request parameters for listExtensionDefinition operation in ExtensionDefinitionV1alpha1Api.
 * @export
 * @interface ExtensionDefinitionV1alpha1ApiListExtensionDefinitionRequest
 */
export interface ExtensionDefinitionV1alpha1ApiListExtensionDefinitionRequest {
    /**
     * Page number. Default is 0.
     * @type {number}
     * @memberof ExtensionDefinitionV1alpha1ApiListExtensionDefinition
     */
    readonly page?: number

    /**
     * Size number. Default is 0.
     * @type {number}
     * @memberof ExtensionDefinitionV1alpha1ApiListExtensionDefinition
     */
    readonly size?: number

    /**
     * Label selector. e.g.: hidden!&#x3D;true
     * @type {Array<string>}
     * @memberof ExtensionDefinitionV1alpha1ApiListExtensionDefinition
     */
    readonly labelSelector?: Array<string>

    /**
     * Field selector. e.g.: metadata.name&#x3D;&#x3D;halo
     * @type {Array<string>}
     * @memberof ExtensionDefinitionV1alpha1ApiListExtensionDefinition
     */
    readonly fieldSelector?: Array<string>

    /**
     * Sorting criteria in the format: property,(asc|desc). Default sort order is ascending. Multiple sort criteria are supported.
     * @type {Array<string>}
     * @memberof ExtensionDefinitionV1alpha1ApiListExtensionDefinition
     */
    readonly sort?: Array<string>
}

/**
 * Request parameters for patchExtensionDefinition operation in ExtensionDefinitionV1alpha1Api.
 * @export
 * @interface ExtensionDefinitionV1alpha1ApiPatchExtensionDefinitionRequest
 */
export interface ExtensionDefinitionV1alpha1ApiPatchExtensionDefinitionRequest {
    /**
     * Name of extensiondefinition
     * @type {string}
     * @memberof ExtensionDefinitionV1alpha1ApiPatchExtensionDefinition
     */
    readonly name: string

    /**
     * 
     * @type {Array<JsonPatchInner>}
     * @memberof ExtensionDefinitionV1alpha1ApiPatchExtensionDefinition
     */
    readonly jsonPatchInner?: Array<JsonPatchInner>
}

/**
 * Request parameters for updateExtensionDefinition operation in ExtensionDefinitionV1alpha1Api.
 * @export
 * @interface ExtensionDefinitionV1alpha1ApiUpdateExtensionDefinitionRequest
 */
export interface ExtensionDefinitionV1alpha1ApiUpdateExtensionDefinitionRequest {
    /**
     * Name of extensiondefinition
     * @type {string}
     * @memberof ExtensionDefinitionV1alpha1ApiUpdateExtensionDefinition
     */
    readonly name: string

    /**
     * Updated extensiondefinition
     * @type {ExtensionDefinition}
     * @memberof ExtensionDefinitionV1alpha1ApiUpdateExtensionDefinition
     */
    readonly extensionDefinition?: ExtensionDefinition
}

/**
 * ExtensionDefinitionV1alpha1Api - object-oriented interface
 * @export
 * @class ExtensionDefinitionV1alpha1Api
 * @extends {BaseAPI}
 */
export class ExtensionDefinitionV1alpha1Api extends BaseAPI {
    /**
     * Create ExtensionDefinition
     * @param {ExtensionDefinitionV1alpha1ApiCreateExtensionDefinitionRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof ExtensionDefinitionV1alpha1Api
     */
    public createExtensionDefinition(requestParameters: ExtensionDefinitionV1alpha1ApiCreateExtensionDefinitionRequest = {}, options?: RawAxiosRequestConfig) {
        return ExtensionDefinitionV1alpha1ApiFp(this.configuration).createExtensionDefinition(requestParameters.extensionDefinition, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Delete ExtensionDefinition
     * @param {ExtensionDefinitionV1alpha1ApiDeleteExtensionDefinitionRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof ExtensionDefinitionV1alpha1Api
     */
    public deleteExtensionDefinition(requestParameters: ExtensionDefinitionV1alpha1ApiDeleteExtensionDefinitionRequest, options?: RawAxiosRequestConfig) {
        return ExtensionDefinitionV1alpha1ApiFp(this.configuration).deleteExtensionDefinition(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Get ExtensionDefinition
     * @param {ExtensionDefinitionV1alpha1ApiGetExtensionDefinitionRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof ExtensionDefinitionV1alpha1Api
     */
    public getExtensionDefinition(requestParameters: ExtensionDefinitionV1alpha1ApiGetExtensionDefinitionRequest, options?: RawAxiosRequestConfig) {
        return ExtensionDefinitionV1alpha1ApiFp(this.configuration).getExtensionDefinition(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * List ExtensionDefinition
     * @param {ExtensionDefinitionV1alpha1ApiListExtensionDefinitionRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof ExtensionDefinitionV1alpha1Api
     */
    public listExtensionDefinition(requestParameters: ExtensionDefinitionV1alpha1ApiListExtensionDefinitionRequest = {}, options?: RawAxiosRequestConfig) {
        return ExtensionDefinitionV1alpha1ApiFp(this.configuration).listExtensionDefinition(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, requestParameters.sort, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Patch ExtensionDefinition
     * @param {ExtensionDefinitionV1alpha1ApiPatchExtensionDefinitionRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof ExtensionDefinitionV1alpha1Api
     */
    public patchExtensionDefinition(requestParameters: ExtensionDefinitionV1alpha1ApiPatchExtensionDefinitionRequest, options?: RawAxiosRequestConfig) {
        return ExtensionDefinitionV1alpha1ApiFp(this.configuration).patchExtensionDefinition(requestParameters.name, requestParameters.jsonPatchInner, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Update ExtensionDefinition
     * @param {ExtensionDefinitionV1alpha1ApiUpdateExtensionDefinitionRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof ExtensionDefinitionV1alpha1Api
     */
    public updateExtensionDefinition(requestParameters: ExtensionDefinitionV1alpha1ApiUpdateExtensionDefinitionRequest, options?: RawAxiosRequestConfig) {
        return ExtensionDefinitionV1alpha1ApiFp(this.configuration).updateExtensionDefinition(requestParameters.name, requestParameters.extensionDefinition, options).then((request) => request(this.axios, this.basePath));
    }
}

