mirror of https://github.com/halo-dev/halo
565 lines
29 KiB
TypeScript
565 lines
29 KiB
TypeScript
/* 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, 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 { 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: RawAxiosRequestConfig = {}): 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: RawAxiosRequestConfig = {}): 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: RawAxiosRequestConfig = {}): 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 {number} [page] Page number. Default is 0.
|
|
* @param {number} [size] Size number. Default is 0.
|
|
* @param {Array<string>} [labelSelector] Label selector. e.g.: hidden!=true
|
|
* @param {Array<string>} [fieldSelector] Field selector. e.g.: metadata.name==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}
|
|
*/
|
|
listauthHaloRunV1alpha1AuthProvider: async (page?: number, size?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, sort?: Array<string>, options: RawAxiosRequestConfig = {}): 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 (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,
|
|
};
|
|
},
|
|
/**
|
|
* 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: RawAxiosRequestConfig = {}): 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?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthProvider>> {
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.createauthHaloRunV1alpha1AuthProvider(authProvider, options);
|
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
const localVarOperationServerBasePath = operationServerMap['AuthHaloRunV1alpha1AuthProviderApi.createauthHaloRunV1alpha1AuthProvider']?.[localVarOperationServerIndex]?.url;
|
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
},
|
|
/**
|
|
* 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?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.deleteauthHaloRunV1alpha1AuthProvider(name, options);
|
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
const localVarOperationServerBasePath = operationServerMap['AuthHaloRunV1alpha1AuthProviderApi.deleteauthHaloRunV1alpha1AuthProvider']?.[localVarOperationServerIndex]?.url;
|
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
},
|
|
/**
|
|
* 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?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthProvider>> {
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.getauthHaloRunV1alpha1AuthProvider(name, options);
|
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
const localVarOperationServerBasePath = operationServerMap['AuthHaloRunV1alpha1AuthProviderApi.getauthHaloRunV1alpha1AuthProvider']?.[localVarOperationServerIndex]?.url;
|
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
},
|
|
/**
|
|
* List auth.halo.run/v1alpha1/AuthProvider
|
|
* @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!=true
|
|
* @param {Array<string>} [fieldSelector] Field selector. e.g.: metadata.name==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 listauthHaloRunV1alpha1AuthProvider(page?: number, size?: number, labelSelector?: Array<string>, fieldSelector?: Array<string>, sort?: Array<string>, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthProviderList>> {
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.listauthHaloRunV1alpha1AuthProvider(page, size, labelSelector, fieldSelector, sort, options);
|
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
const localVarOperationServerBasePath = operationServerMap['AuthHaloRunV1alpha1AuthProviderApi.listauthHaloRunV1alpha1AuthProvider']?.[localVarOperationServerIndex]?.url;
|
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
},
|
|
/**
|
|
* 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?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<AuthProvider>> {
|
|
const localVarAxiosArgs = await localVarAxiosParamCreator.updateauthHaloRunV1alpha1AuthProvider(name, authProvider, options);
|
|
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
const localVarOperationServerBasePath = operationServerMap['AuthHaloRunV1alpha1AuthProviderApi.updateauthHaloRunV1alpha1AuthProvider']?.[localVarOperationServerIndex]?.url;
|
|
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
},
|
|
}
|
|
};
|
|
|
|
/**
|
|
* 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?: RawAxiosRequestConfig): 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?: RawAxiosRequestConfig): 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?: RawAxiosRequestConfig): 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?: RawAxiosRequestConfig): AxiosPromise<AuthProviderList> {
|
|
return localVarFp.listauthHaloRunV1alpha1AuthProvider(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, 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?: RawAxiosRequestConfig): 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 {
|
|
/**
|
|
* Page number. Default is 0.
|
|
* @type {number}
|
|
* @memberof AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProvider
|
|
*/
|
|
readonly page?: number
|
|
|
|
/**
|
|
* Size number. Default is 0.
|
|
* @type {number}
|
|
* @memberof AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProvider
|
|
*/
|
|
readonly size?: number
|
|
|
|
/**
|
|
* Label selector. e.g.: hidden!=true
|
|
* @type {Array<string>}
|
|
* @memberof AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProvider
|
|
*/
|
|
readonly labelSelector?: Array<string>
|
|
|
|
/**
|
|
* Field selector. e.g.: metadata.name==halo
|
|
* @type {Array<string>}
|
|
* @memberof AuthHaloRunV1alpha1AuthProviderApiListauthHaloRunV1alpha1AuthProvider
|
|
*/
|
|
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 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?: RawAxiosRequestConfig) {
|
|
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?: RawAxiosRequestConfig) {
|
|
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?: RawAxiosRequestConfig) {
|
|
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?: RawAxiosRequestConfig) {
|
|
return AuthHaloRunV1alpha1AuthProviderApiFp(this.configuration).listauthHaloRunV1alpha1AuthProvider(requestParameters.page, requestParameters.size, requestParameters.labelSelector, requestParameters.fieldSelector, 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?: RawAxiosRequestConfig) {
|
|
return AuthHaloRunV1alpha1AuthProviderApiFp(this.configuration).updateauthHaloRunV1alpha1AuthProvider(requestParameters.name, requestParameters.authProvider, options).then((request) => request(this.axios, this.basePath));
|
|
}
|
|
}
|
|
|