/* tslint:disable */
/* eslint-disable */
/**
 * Admin API
 * The Admin API is used to manage the ApeCloud platform. 
 *
 * The version of the OpenAPI document: 1.0.0
 * Contact: support@apecloud.com
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */


import type { Configuration } from '../configuration';
import type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';
import 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 { OrgMember } from '../models';
// @ts-ignore
import type { OrgMemberAdd } from '../models';
// @ts-ignore
import type { OrgMemberList } from '../models';
// @ts-ignore
import type { OrgMemberUpdate } from '../models';
/**
 * MemberApi - axios parameter creator
 * @export
 */
export const MemberApiAxiosParamCreator = function (configuration?: Configuration) {
    return {
        /**
         * Add organization with specific role
         * @summary Add member
         * @param {string} orgName Name of the Org
         * @param {OrgMemberAdd} body 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        addOrgMember: async (orgName: string, body: OrgMemberAdd, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'orgName' is not null or undefined
            assertParamExists('addOrgMember', 'orgName', orgName)
            // verify required parameter 'body' is not null or undefined
            assertParamExists('addOrgMember', 'body', body)
            const localVarPath = `/admin/v1/organizations/{orgName}/members`
                .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,
            };
        },
        /**
         * delete a Org Member
         * @summary Delete member
         * @param {string} orgName Name of the Org
         * @param {string} memberId ID of the member
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        deleteOrgMember: async (orgName: string, memberId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'orgName' is not null or undefined
            assertParamExists('deleteOrgMember', 'orgName', orgName)
            // verify required parameter 'memberId' is not null or undefined
            assertParamExists('deleteOrgMember', 'memberId', memberId)
            const localVarPath = `/admin/v1/organizations/{orgName}/members/{memberId}`
                .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
                .replace(`{${"memberId"}}`, encodeURIComponent(String(memberId)));
            // 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,
            };
        },
        /**
         * list members of the specified Org
         * @summary List members
         * @param {string} orgName Name of the Org
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        listOrgMember: async (orgName: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'orgName' is not null or undefined
            assertParamExists('listOrgMember', 'orgName', orgName)
            const localVarPath = `/admin/v1/organizations/{orgName}/members`
                .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,
            };
        },
        /**
         * Only authenticated organization admins can update the member\'s role
         * @summary Update member role
         * @param {string} orgName name of the Org
         * @param {string} memberId ID of the member
         * @param {OrgMemberUpdate} body 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        patchOrgMember: async (orgName: string, memberId: string, body: OrgMemberUpdate, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'orgName' is not null or undefined
            assertParamExists('patchOrgMember', 'orgName', orgName)
            // verify required parameter 'memberId' is not null or undefined
            assertParamExists('patchOrgMember', 'memberId', memberId)
            // verify required parameter 'body' is not null or undefined
            assertParamExists('patchOrgMember', 'body', body)
            const localVarPath = `/admin/v1/organizations/{orgName}/members/{memberId}`
                .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
                .replace(`{${"memberId"}}`, encodeURIComponent(String(memberId)));
            // 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,
            };
        },
        /**
         * read the specified OrgMember
         * @summary Get member
         * @param {string} orgName name of the Org
         * @param {string} memberId ID of the member
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        readOrgMember: async (orgName: string, memberId: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {
            // verify required parameter 'orgName' is not null or undefined
            assertParamExists('readOrgMember', 'orgName', orgName)
            // verify required parameter 'memberId' is not null or undefined
            assertParamExists('readOrgMember', 'memberId', memberId)
            const localVarPath = `/admin/v1/organizations/{orgName}/members/{memberId}`
                .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)))
                .replace(`{${"memberId"}}`, encodeURIComponent(String(memberId)));
            // 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,
            };
        },
    }
};

/**
 * MemberApi - functional programming interface
 * @export
 */
export const MemberApiFp = function(configuration?: Configuration) {
    const localVarAxiosParamCreator = MemberApiAxiosParamCreator(configuration)
    return {
        /**
         * Add organization with specific role
         * @summary Add member
         * @param {string} orgName Name of the Org
         * @param {OrgMemberAdd} body 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async addOrgMember(orgName: string, body: OrgMemberAdd, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgMember>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.addOrgMember(orgName, body, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = operationServerMap['MemberApi.addOrgMember']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         * delete a Org Member
         * @summary Delete member
         * @param {string} orgName Name of the Org
         * @param {string} memberId ID of the member
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async deleteOrgMember(orgName: string, memberId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<void>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrgMember(orgName, memberId, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = operationServerMap['MemberApi.deleteOrgMember']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         * list members of the specified Org
         * @summary List members
         * @param {string} orgName Name of the Org
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async listOrgMember(orgName: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgMemberList>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgMember(orgName, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = operationServerMap['MemberApi.listOrgMember']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         * Only authenticated organization admins can update the member\'s role
         * @summary Update member role
         * @param {string} orgName name of the Org
         * @param {string} memberId ID of the member
         * @param {OrgMemberUpdate} body 
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async patchOrgMember(orgName: string, memberId: string, body: OrgMemberUpdate, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgMember>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.patchOrgMember(orgName, memberId, body, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = operationServerMap['MemberApi.patchOrgMember']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         * read the specified OrgMember
         * @summary Get member
         * @param {string} orgName name of the Org
         * @param {string} memberId ID of the member
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async readOrgMember(orgName: string, memberId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<OrgMember>> {
            const localVarAxiosArgs = await localVarAxiosParamCreator.readOrgMember(orgName, memberId, options);
            const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
            const localVarOperationServerBasePath = operationServerMap['MemberApi.readOrgMember']?.[localVarOperationServerIndex]?.url;
            return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
    }
};

/**
 * MemberApi - factory interface
 * @export
 */
export const MemberApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {
    const localVarFp = MemberApiFp(configuration)
    return {
        /**
         * Add organization with specific role
         * @summary Add member
         * @param {MemberApiAddOrgMemberRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        addOrgMember(requestParameters: MemberApiAddOrgMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrgMember> {
            return localVarFp.addOrgMember(requestParameters.orgName, requestParameters.body, options).then((request) => request(axios, basePath));
        },
        /**
         * delete a Org Member
         * @summary Delete member
         * @param {MemberApiDeleteOrgMemberRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        deleteOrgMember(requestParameters: MemberApiDeleteOrgMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<void> {
            return localVarFp.deleteOrgMember(requestParameters.orgName, requestParameters.memberId, options).then((request) => request(axios, basePath));
        },
        /**
         * list members of the specified Org
         * @summary List members
         * @param {MemberApiListOrgMemberRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        listOrgMember(requestParameters: MemberApiListOrgMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrgMemberList> {
            return localVarFp.listOrgMember(requestParameters.orgName, options).then((request) => request(axios, basePath));
        },
        /**
         * Only authenticated organization admins can update the member\'s role
         * @summary Update member role
         * @param {MemberApiPatchOrgMemberRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        patchOrgMember(requestParameters: MemberApiPatchOrgMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrgMember> {
            return localVarFp.patchOrgMember(requestParameters.orgName, requestParameters.memberId, requestParameters.body, options).then((request) => request(axios, basePath));
        },
        /**
         * read the specified OrgMember
         * @summary Get member
         * @param {MemberApiReadOrgMemberRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        readOrgMember(requestParameters: MemberApiReadOrgMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrgMember> {
            return localVarFp.readOrgMember(requestParameters.orgName, requestParameters.memberId, options).then((request) => request(axios, basePath));
        },
    };
};

/**
 * MemberApi - interface
 * @export
 * @interface MemberApi
 */
export interface MemberApiInterface {
    /**
     * Add organization with specific role
     * @summary Add member
     * @param {MemberApiAddOrgMemberRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof MemberApiInterface
     */
    addOrgMember(requestParameters: MemberApiAddOrgMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrgMember>;

    /**
     * delete a Org Member
     * @summary Delete member
     * @param {MemberApiDeleteOrgMemberRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof MemberApiInterface
     */
    deleteOrgMember(requestParameters: MemberApiDeleteOrgMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<void>;

    /**
     * list members of the specified Org
     * @summary List members
     * @param {MemberApiListOrgMemberRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof MemberApiInterface
     */
    listOrgMember(requestParameters: MemberApiListOrgMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrgMemberList>;

    /**
     * Only authenticated organization admins can update the member\'s role
     * @summary Update member role
     * @param {MemberApiPatchOrgMemberRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof MemberApiInterface
     */
    patchOrgMember(requestParameters: MemberApiPatchOrgMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrgMember>;

    /**
     * read the specified OrgMember
     * @summary Get member
     * @param {MemberApiReadOrgMemberRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof MemberApiInterface
     */
    readOrgMember(requestParameters: MemberApiReadOrgMemberRequest, options?: RawAxiosRequestConfig): AxiosPromise<OrgMember>;

}

/**
 * Request parameters for addOrgMember operation in MemberApi.
 * @export
 * @interface MemberApiAddOrgMemberRequest
 */
export interface MemberApiAddOrgMemberRequest {
    /**
     * Name of the Org
     * @type {string}
     * @memberof MemberApiAddOrgMember
     */
    readonly orgName: string

    /**
     * 
     * @type {OrgMemberAdd}
     * @memberof MemberApiAddOrgMember
     */
    readonly body: OrgMemberAdd
}

/**
 * Request parameters for deleteOrgMember operation in MemberApi.
 * @export
 * @interface MemberApiDeleteOrgMemberRequest
 */
export interface MemberApiDeleteOrgMemberRequest {
    /**
     * Name of the Org
     * @type {string}
     * @memberof MemberApiDeleteOrgMember
     */
    readonly orgName: string

    /**
     * ID of the member
     * @type {string}
     * @memberof MemberApiDeleteOrgMember
     */
    readonly memberId: string
}

/**
 * Request parameters for listOrgMember operation in MemberApi.
 * @export
 * @interface MemberApiListOrgMemberRequest
 */
export interface MemberApiListOrgMemberRequest {
    /**
     * Name of the Org
     * @type {string}
     * @memberof MemberApiListOrgMember
     */
    readonly orgName: string
}

/**
 * Request parameters for patchOrgMember operation in MemberApi.
 * @export
 * @interface MemberApiPatchOrgMemberRequest
 */
export interface MemberApiPatchOrgMemberRequest {
    /**
     * name of the Org
     * @type {string}
     * @memberof MemberApiPatchOrgMember
     */
    readonly orgName: string

    /**
     * ID of the member
     * @type {string}
     * @memberof MemberApiPatchOrgMember
     */
    readonly memberId: string

    /**
     * 
     * @type {OrgMemberUpdate}
     * @memberof MemberApiPatchOrgMember
     */
    readonly body: OrgMemberUpdate
}

/**
 * Request parameters for readOrgMember operation in MemberApi.
 * @export
 * @interface MemberApiReadOrgMemberRequest
 */
export interface MemberApiReadOrgMemberRequest {
    /**
     * name of the Org
     * @type {string}
     * @memberof MemberApiReadOrgMember
     */
    readonly orgName: string

    /**
     * ID of the member
     * @type {string}
     * @memberof MemberApiReadOrgMember
     */
    readonly memberId: string
}

/**
 * MemberApi - object-oriented interface
 * @export
 * @class MemberApi
 * @extends {BaseAPI}
 */
export class MemberApi extends BaseAPI implements MemberApiInterface {
    /**
     * Add organization with specific role
     * @summary Add member
     * @param {MemberApiAddOrgMemberRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof MemberApi
     */
    public addOrgMember(requestParameters: MemberApiAddOrgMemberRequest, options?: RawAxiosRequestConfig) {
        return MemberApiFp(this.configuration).addOrgMember(requestParameters.orgName, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * delete a Org Member
     * @summary Delete member
     * @param {MemberApiDeleteOrgMemberRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof MemberApi
     */
    public deleteOrgMember(requestParameters: MemberApiDeleteOrgMemberRequest, options?: RawAxiosRequestConfig) {
        return MemberApiFp(this.configuration).deleteOrgMember(requestParameters.orgName, requestParameters.memberId, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * list members of the specified Org
     * @summary List members
     * @param {MemberApiListOrgMemberRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof MemberApi
     */
    public listOrgMember(requestParameters: MemberApiListOrgMemberRequest, options?: RawAxiosRequestConfig) {
        return MemberApiFp(this.configuration).listOrgMember(requestParameters.orgName, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * Only authenticated organization admins can update the member\'s role
     * @summary Update member role
     * @param {MemberApiPatchOrgMemberRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof MemberApi
     */
    public patchOrgMember(requestParameters: MemberApiPatchOrgMemberRequest, options?: RawAxiosRequestConfig) {
        return MemberApiFp(this.configuration).patchOrgMember(requestParameters.orgName, requestParameters.memberId, requestParameters.body, options).then((request) => request(this.axios, this.basePath));
    }

    /**
     * read the specified OrgMember
     * @summary Get member
     * @param {MemberApiReadOrgMemberRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof MemberApi
     */
    public readOrgMember(requestParameters: MemberApiReadOrgMemberRequest, options?: RawAxiosRequestConfig) {
        return MemberApiFp(this.configuration).readOrgMember(requestParameters.orgName, requestParameters.memberId, options).then((request) => request(this.axios, this.basePath));
    }
}

