/* tslint:disable */
/* eslint-disable */
/**
 * Halo Next API
 * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
 *
 * The version of the OpenAPI document: 2.0.0
 *
 *
 * 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, AxiosRequestConfig } 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,
} from "../base";
// @ts-ignore
import { AuthProvider } from "../models";
// @ts-ignore
import { AuthProviderList } from "../models";
/**
 * AuthHaloRunV1alpha1AuthProviderApi - axios parameter creator
 * @export
 */
export const AuthHaloRunV1alpha1AuthProviderApiAxiosParamCreator = function (
  configuration?: Configuration
) {
  return {
    /**
     * Create auth.halo.run/v1alpha1/AuthProvider
     * @param {AuthProvider} [authProvider] Fresh authprovider
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    createauthHaloRunV1alpha1AuthProvider: async (
      authProvider?: AuthProvider,
      options: AxiosRequestConfig = {}
    ): Promise<RequestArgs> => {
      const localVarPath = `/apis/auth.halo.run/v1alpha1/authproviders`;
      // 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(
        authProvider,
        localVarRequestOptions,
        configuration
      );

      return {
        url: toPathString(localVarUrlObj),
        options: localVarRequestOptions,
      };
    },
    /**
     * Delete auth.halo.run/v1alpha1/AuthProvider
     * @param {string} name Name of authprovider
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    deleteauthHaloRunV1alpha1AuthProvider: async (
      name: string,
      options: AxiosRequestConfig = {}
    ): Promise<RequestArgs> => {
      // verify required parameter 'name' is not null or undefined
      assertParamExists("deleteauthHaloRunV1alpha1AuthProvider", "name", name);
      const localVarPath =
        `/apis/auth.halo.run/v1alpha1/authproviders/{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 auth.halo.run/v1alpha1/AuthProvider
     * @param {string} name Name of authprovider
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    getauthHaloRunV1alpha1AuthProvider: async (
      name: string,
      options: AxiosRequestConfig = {}
    ): Promise<RequestArgs> => {
      // verify required parameter 'name' is not null or undefined
      assertParamExists("getauthHaloRunV1alpha1AuthProvider", "name", name);
      const localVarPath =
        `/apis/auth.halo.run/v1alpha1/authproviders/{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 auth.halo.run/v1alpha1/AuthProvider
     * @param {Array<string>} [fieldSelector] Field selector for filtering.
     * @param {Array<string>} [labelSelector] Label selector for filtering.
     * @param {number} [page] The page number. Zero indicates no page.
     * @param {number} [size] Size of one page. Zero indicates no limit.
     * @param {Array<string>} [sort] Sort property and direction of the list result. Support sorting based on attribute name path.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    listauthHaloRunV1alpha1AuthProvider: async (
      fieldSelector?: Array<string>,
      labelSelector?: Array<string>,
      page?: number,
      size?: number,
      sort?: Array<string>,
      options: AxiosRequestConfig = {}
    ): Promise<RequestArgs> => {
      const localVarPath = `/apis/auth.halo.run/v1alpha1/authproviders`;
      // 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 (fieldSelector) {
        localVarQueryParameter["fieldSelector"] = fieldSelector;
      }

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

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

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

      if (sort) {
        localVarQueryParameter["sort"] = Array.from(sort);
      }

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

      return {
        url: toPathString(localVarUrlObj),
        options: localVarRequestOptions,
      };
    },
    /**
     * Update auth.halo.run/v1alpha1/AuthProvider
     * @param {string} name Name of authprovider
     * @param {AuthProvider} [authProvider] Updated authprovider
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    updateauthHaloRunV1alpha1AuthProvider: async (
      name: string,
      authProvider?: AuthProvider,
      options: AxiosRequestConfig = {}
    ): Promise<RequestArgs> => {
      // verify required parameter 'name' is not null or undefined
      assertParamExists("updateauthHaloRunV1alpha1AuthProvider", "name", name);
      const localVarPath =
        `/apis/auth.halo.run/v1alpha1/authproviders/{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(
        authProvider,
        localVarRequestOptions,
        configuration
      );

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

/**
 * AuthHaloRunV1alpha1AuthProviderApi - functional programming interface
 * @export
 */
export const AuthHaloRunV1alpha1AuthProviderApiFp = function (
  configuration?: Configuration
) {
  const localVarAxiosParamCreator =
    AuthHaloRunV1alpha1AuthProviderApiAxiosParamCreator(configuration);
  return {
    /**
     * Create auth.halo.run/v1alpha1/AuthProvider
     * @param {AuthProvider} [authProvider] Fresh authprovider
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    async createauthHaloRunV1alpha1AuthProvider(
      authProvider?: AuthProvider,
      options?: AxiosRequestConfig
    ): Promise<
      (axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthProvider>
    > {
      const localVarAxiosArgs =
        await localVarAxiosParamCreator.createauthHaloRunV1alpha1AuthProvider(
          authProvider,
          options
        );
      return createRequestFunction(
        localVarAxiosArgs,
        globalAxios,
        BASE_PATH,
        configuration
      );
    },
    /**
     * Delete auth.halo.run/v1alpha1/AuthProvider
     * @param {string} name Name of authprovider
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    async deleteauthHaloRunV1alpha1AuthProvider(
      name: string,
      options?: AxiosRequestConfig
    ): Promise<
      (axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>
    > {
      const localVarAxiosArgs =
        await localVarAxiosParamCreator.deleteauthHaloRunV1alpha1AuthProvider(
          name,
          options
        );
      return createRequestFunction(
        localVarAxiosArgs,
        globalAxios,
        BASE_PATH,
        configuration
      );
    },
    /**
     * Get auth.halo.run/v1alpha1/AuthProvider
     * @param {string} name Name of authprovider
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    async getauthHaloRunV1alpha1AuthProvider(
      name: string,
      options?: AxiosRequestConfig
    ): Promise<
      (axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthProvider>
    > {
      const localVarAxiosArgs =
        await localVarAxiosParamCreator.getauthHaloRunV1alpha1AuthProvider(
          name,
          options
        );
      return createRequestFunction(
        localVarAxiosArgs,
        globalAxios,
        BASE_PATH,
        configuration
      );
    },
    /**
     * List auth.halo.run/v1alpha1/AuthProvider
     * @param {Array<string>} [fieldSelector] Field selector for filtering.
     * @param {Array<string>} [labelSelector] Label selector for filtering.
     * @param {number} [page] The page number. Zero indicates no page.
     * @param {number} [size] Size of one page. Zero indicates no limit.
     * @param {Array<string>} [sort] Sort property and direction of the list result. Support sorting based on attribute name path.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    async listauthHaloRunV1alpha1AuthProvider(
      fieldSelector?: Array<string>,
      labelSelector?: Array<string>,
      page?: number,
      size?: number,
      sort?: Array<string>,
      options?: AxiosRequestConfig
    ): Promise<
      (
        axios?: AxiosInstance,
        basePath?: string
      ) => AxiosPromise<AuthProviderList>
    > {
      const localVarAxiosArgs =
        await localVarAxiosParamCreator.listauthHaloRunV1alpha1AuthProvider(
          fieldSelector,
          labelSelector,
          page,
          size,
          sort,
          options
        );
      return createRequestFunction(
        localVarAxiosArgs,
        globalAxios,
        BASE_PATH,
        configuration
      );
    },
    /**
     * Update auth.halo.run/v1alpha1/AuthProvider
     * @param {string} name Name of authprovider
     * @param {AuthProvider} [authProvider] Updated authprovider
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    async updateauthHaloRunV1alpha1AuthProvider(
      name: string,
      authProvider?: AuthProvider,
      options?: AxiosRequestConfig
    ): Promise<
      (axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthProvider>
    > {
      const localVarAxiosArgs =
        await localVarAxiosParamCreator.updateauthHaloRunV1alpha1AuthProvider(
          name,
          authProvider,
          options
        );
      return createRequestFunction(
        localVarAxiosArgs,
        globalAxios,
        BASE_PATH,
        configuration
      );
    },
  };
};

/**
 * AuthHaloRunV1alpha1AuthProviderApi - factory interface
 * @export
 */
export const AuthHaloRunV1alpha1AuthProviderApiFactory = function (
  configuration?: Configuration,
  basePath?: string,
  axios?: AxiosInstance
) {
  const localVarFp = AuthHaloRunV1alpha1AuthProviderApiFp(configuration);
  return {
    /**
     * Create auth.halo.run/v1alpha1/AuthProvider
     * @param {AuthHaloRunV1alpha1AuthProviderApiCreateauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    createauthHaloRunV1alpha1AuthProvider(
      requestParameters: AuthHaloRunV1alpha1AuthProviderApiCreateauthHaloRunV1alpha1AuthProviderRequest = {},
      options?: AxiosRequestConfig
    ): AxiosPromise<AuthProvider> {
      return localVarFp
        .createauthHaloRunV1alpha1AuthProvider(
          requestParameters.authProvider,
          options
        )
        .then((request) => request(axios, basePath));
    },
    /**
     * Delete auth.halo.run/v1alpha1/AuthProvider
     * @param {AuthHaloRunV1alpha1AuthProviderApiDeleteauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    deleteauthHaloRunV1alpha1AuthProvider(
      requestParameters: AuthHaloRunV1alpha1AuthProviderApiDeleteauthHaloRunV1alpha1AuthProviderRequest,
      options?: AxiosRequestConfig
    ): AxiosPromise<void> {
      return localVarFp
        .deleteauthHaloRunV1alpha1AuthProvider(requestParameters.name, options)
        .then((request) => request(axios, basePath));
    },
    /**
     * Get auth.halo.run/v1alpha1/AuthProvider
     * @param {AuthHaloRunV1alpha1AuthProviderApiGetauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    getauthHaloRunV1alpha1AuthProvider(
      requestParameters: AuthHaloRunV1alpha1AuthProviderApiGetauthHaloRunV1alpha1AuthProviderRequest,
      options?: AxiosRequestConfig
    ): AxiosPromise<AuthProvider> {
      return localVarFp
        .getauthHaloRunV1alpha1AuthProvider(requestParameters.name, options)
        .then((request) => request(axios, basePath));
    },
    /**
     * List auth.halo.run/v1alpha1/AuthProvider
     * @param {AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    listauthHaloRunV1alpha1AuthProvider(
      requestParameters: AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProviderRequest = {},
      options?: AxiosRequestConfig
    ): AxiosPromise<AuthProviderList> {
      return localVarFp
        .listauthHaloRunV1alpha1AuthProvider(
          requestParameters.fieldSelector,
          requestParameters.labelSelector,
          requestParameters.page,
          requestParameters.size,
          requestParameters.sort,
          options
        )
        .then((request) => request(axios, basePath));
    },
    /**
     * Update auth.halo.run/v1alpha1/AuthProvider
     * @param {AuthHaloRunV1alpha1AuthProviderApiUpdateauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     */
    updateauthHaloRunV1alpha1AuthProvider(
      requestParameters: AuthHaloRunV1alpha1AuthProviderApiUpdateauthHaloRunV1alpha1AuthProviderRequest,
      options?: AxiosRequestConfig
    ): AxiosPromise<AuthProvider> {
      return localVarFp
        .updateauthHaloRunV1alpha1AuthProvider(
          requestParameters.name,
          requestParameters.authProvider,
          options
        )
        .then((request) => request(axios, basePath));
    },
  };
};

/**
 * Request parameters for createauthHaloRunV1alpha1AuthProvider operation in AuthHaloRunV1alpha1AuthProviderApi.
 * @export
 * @interface AuthHaloRunV1alpha1AuthProviderApiCreateauthHaloRunV1alpha1AuthProviderRequest
 */
export interface AuthHaloRunV1alpha1AuthProviderApiCreateauthHaloRunV1alpha1AuthProviderRequest {
  /**
   * Fresh authprovider
   * @type {AuthProvider}
   * @memberof AuthHaloRunV1alpha1AuthProviderApiCreateauthHaloRunV1alpha1AuthProvider
   */
  readonly authProvider?: AuthProvider;
}

/**
 * Request parameters for deleteauthHaloRunV1alpha1AuthProvider operation in AuthHaloRunV1alpha1AuthProviderApi.
 * @export
 * @interface AuthHaloRunV1alpha1AuthProviderApiDeleteauthHaloRunV1alpha1AuthProviderRequest
 */
export interface AuthHaloRunV1alpha1AuthProviderApiDeleteauthHaloRunV1alpha1AuthProviderRequest {
  /**
   * Name of authprovider
   * @type {string}
   * @memberof AuthHaloRunV1alpha1AuthProviderApiDeleteauthHaloRunV1alpha1AuthProvider
   */
  readonly name: string;
}

/**
 * Request parameters for getauthHaloRunV1alpha1AuthProvider operation in AuthHaloRunV1alpha1AuthProviderApi.
 * @export
 * @interface AuthHaloRunV1alpha1AuthProviderApiGetauthHaloRunV1alpha1AuthProviderRequest
 */
export interface AuthHaloRunV1alpha1AuthProviderApiGetauthHaloRunV1alpha1AuthProviderRequest {
  /**
   * Name of authprovider
   * @type {string}
   * @memberof AuthHaloRunV1alpha1AuthProviderApiGetauthHaloRunV1alpha1AuthProvider
   */
  readonly name: string;
}

/**
 * Request parameters for listauthHaloRunV1alpha1AuthProvider operation in AuthHaloRunV1alpha1AuthProviderApi.
 * @export
 * @interface AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProviderRequest
 */
export interface AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProviderRequest {
  /**
   * Field selector for filtering.
   * @type {Array<string>}
   * @memberof AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProvider
   */
  readonly fieldSelector?: Array<string>;

  /**
   * Label selector for filtering.
   * @type {Array<string>}
   * @memberof AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProvider
   */
  readonly labelSelector?: Array<string>;

  /**
   * The page number. Zero indicates no page.
   * @type {number}
   * @memberof AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProvider
   */
  readonly page?: number;

  /**
   * Size of one page. Zero indicates no limit.
   * @type {number}
   * @memberof AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProvider
   */
  readonly size?: number;

  /**
   * Sort property and direction of the list result. Support sorting based on attribute name path.
   * @type {Array<string>}
   * @memberof AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProvider
   */
  readonly sort?: Array<string>;
}

/**
 * Request parameters for updateauthHaloRunV1alpha1AuthProvider operation in AuthHaloRunV1alpha1AuthProviderApi.
 * @export
 * @interface AuthHaloRunV1alpha1AuthProviderApiUpdateauthHaloRunV1alpha1AuthProviderRequest
 */
export interface AuthHaloRunV1alpha1AuthProviderApiUpdateauthHaloRunV1alpha1AuthProviderRequest {
  /**
   * Name of authprovider
   * @type {string}
   * @memberof AuthHaloRunV1alpha1AuthProviderApiUpdateauthHaloRunV1alpha1AuthProvider
   */
  readonly name: string;

  /**
   * Updated authprovider
   * @type {AuthProvider}
   * @memberof AuthHaloRunV1alpha1AuthProviderApiUpdateauthHaloRunV1alpha1AuthProvider
   */
  readonly authProvider?: AuthProvider;
}

/**
 * AuthHaloRunV1alpha1AuthProviderApi - object-oriented interface
 * @export
 * @class AuthHaloRunV1alpha1AuthProviderApi
 * @extends {BaseAPI}
 */
export class AuthHaloRunV1alpha1AuthProviderApi extends BaseAPI {
  /**
   * Create auth.halo.run/v1alpha1/AuthProvider
   * @param {AuthHaloRunV1alpha1AuthProviderApiCreateauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters.
   * @param {*} [options] Override http request option.
   * @throws {RequiredError}
   * @memberof AuthHaloRunV1alpha1AuthProviderApi
   */
  public createauthHaloRunV1alpha1AuthProvider(
    requestParameters: AuthHaloRunV1alpha1AuthProviderApiCreateauthHaloRunV1alpha1AuthProviderRequest = {},
    options?: AxiosRequestConfig
  ) {
    return AuthHaloRunV1alpha1AuthProviderApiFp(this.configuration)
      .createauthHaloRunV1alpha1AuthProvider(
        requestParameters.authProvider,
        options
      )
      .then((request) => request(this.axios, this.basePath));
  }

  /**
   * Delete auth.halo.run/v1alpha1/AuthProvider
   * @param {AuthHaloRunV1alpha1AuthProviderApiDeleteauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters.
   * @param {*} [options] Override http request option.
   * @throws {RequiredError}
   * @memberof AuthHaloRunV1alpha1AuthProviderApi
   */
  public deleteauthHaloRunV1alpha1AuthProvider(
    requestParameters: AuthHaloRunV1alpha1AuthProviderApiDeleteauthHaloRunV1alpha1AuthProviderRequest,
    options?: AxiosRequestConfig
  ) {
    return AuthHaloRunV1alpha1AuthProviderApiFp(this.configuration)
      .deleteauthHaloRunV1alpha1AuthProvider(requestParameters.name, options)
      .then((request) => request(this.axios, this.basePath));
  }

  /**
   * Get auth.halo.run/v1alpha1/AuthProvider
   * @param {AuthHaloRunV1alpha1AuthProviderApiGetauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters.
   * @param {*} [options] Override http request option.
   * @throws {RequiredError}
   * @memberof AuthHaloRunV1alpha1AuthProviderApi
   */
  public getauthHaloRunV1alpha1AuthProvider(
    requestParameters: AuthHaloRunV1alpha1AuthProviderApiGetauthHaloRunV1alpha1AuthProviderRequest,
    options?: AxiosRequestConfig
  ) {
    return AuthHaloRunV1alpha1AuthProviderApiFp(this.configuration)
      .getauthHaloRunV1alpha1AuthProvider(requestParameters.name, options)
      .then((request) => request(this.axios, this.basePath));
  }

  /**
   * List auth.halo.run/v1alpha1/AuthProvider
   * @param {AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters.
   * @param {*} [options] Override http request option.
   * @throws {RequiredError}
   * @memberof AuthHaloRunV1alpha1AuthProviderApi
   */
  public listauthHaloRunV1alpha1AuthProvider(
    requestParameters: AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProviderRequest = {},
    options?: AxiosRequestConfig
  ) {
    return AuthHaloRunV1alpha1AuthProviderApiFp(this.configuration)
      .listauthHaloRunV1alpha1AuthProvider(
        requestParameters.fieldSelector,
        requestParameters.labelSelector,
        requestParameters.page,
        requestParameters.size,
        requestParameters.sort,
        options
      )
      .then((request) => request(this.axios, this.basePath));
  }

  /**
   * Update auth.halo.run/v1alpha1/AuthProvider
   * @param {AuthHaloRunV1alpha1AuthProviderApiUpdateauthHaloRunV1alpha1AuthProviderRequest} requestParameters Request parameters.
   * @param {*} [options] Override http request option.
   * @throws {RequiredError}
   * @memberof AuthHaloRunV1alpha1AuthProviderApi
   */
  public updateauthHaloRunV1alpha1AuthProvider(
    requestParameters: AuthHaloRunV1alpha1AuthProviderApiUpdateauthHaloRunV1alpha1AuthProviderRequest,
    options?: AxiosRequestConfig
  ) {
    return AuthHaloRunV1alpha1AuthProviderApiFp(this.configuration)
      .updateauthHaloRunV1alpha1AuthProvider(
        requestParameters.name,
        requestParameters.authProvider,
        options
      )
      .then((request) => request(this.axios, this.basePath));
  }
}
