"use strict";
/* tslint:disable */
/* eslint-disable */
/**
 * KubeBlocks Cloud API
 * KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources.  The API is organized around REST.  Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs.  We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
 *
 * The version of the OpenAPI document: 1.0.0
 * Contact: support@apecloud.com
 *
 * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
 * https://openapi-generator.tech
 * Do not edit the class manually.
 */
var __importDefault = (this && this.__importDefault) || function (mod) {
    return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.MemberApi = exports.MemberApiFactory = exports.MemberApiFp = exports.MemberApiAxiosParamCreator = void 0;
const axios_1 = __importDefault(require("axios"));
// Some imports not used depending on template conditions
// @ts-ignore
const common_1 = require("../common");
// @ts-ignore
const base_1 = require("../base");
/**
 * MemberApi - axios parameter creator
 * @export
 */
const MemberApiAxiosParamCreator = function (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, body, options = {}) => {
            // verify required parameter 'orgName' is not null or undefined
            (0, common_1.assertParamExists)('addOrgMember', 'orgName', orgName);
            // verify required parameter 'body' is not null or undefined
            (0, common_1.assertParamExists)('addOrgMember', 'body', body);
            const localVarPath = `/api/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, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication BearerToken required
            // http bearer authentication required
            await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
            // authentication DigestAuth required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
            localVarHeaderParameter['Content-Type'] = 'application/json';
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
            localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
            return {
                url: (0, common_1.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, memberId, options = {}) => {
            // verify required parameter 'orgName' is not null or undefined
            (0, common_1.assertParamExists)('deleteOrgMember', 'orgName', orgName);
            // verify required parameter 'memberId' is not null or undefined
            (0, common_1.assertParamExists)('deleteOrgMember', 'memberId', memberId);
            const localVarPath = `/api/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, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication BearerToken required
            // http bearer authentication required
            await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
            // authentication DigestAuth required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
            return {
                url: (0, common_1.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, options = {}) => {
            // verify required parameter 'orgName' is not null or undefined
            (0, common_1.assertParamExists)('listOrgMember', 'orgName', orgName);
            const localVarPath = `/api/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, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication BearerToken required
            // http bearer authentication required
            await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
            // authentication DigestAuth required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
        /**
         *
         * @summary List permissions of a member
         * @param {string} orgName The name of the organization
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        listOrgMemberPermission: async (orgName, options = {}) => {
            // verify required parameter 'orgName' is not null or undefined
            (0, common_1.assertParamExists)('listOrgMemberPermission', 'orgName', orgName);
            const localVarPath = `/api/v1/organizations/{orgName}/permissions`
                .replace(`{${"orgName"}}`, encodeURIComponent(String(orgName)));
            // use dummy base URL string because the URL constructor only accepts absolute URLs.
            const localVarUrlObj = new URL(localVarPath, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication BearerToken required
            // http bearer authentication required
            await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
            // authentication DigestAuth required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
            return {
                url: (0, common_1.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, memberId, body, options = {}) => {
            // verify required parameter 'orgName' is not null or undefined
            (0, common_1.assertParamExists)('patchOrgMember', 'orgName', orgName);
            // verify required parameter 'memberId' is not null or undefined
            (0, common_1.assertParamExists)('patchOrgMember', 'memberId', memberId);
            // verify required parameter 'body' is not null or undefined
            (0, common_1.assertParamExists)('patchOrgMember', 'body', body);
            const localVarPath = `/api/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, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = Object.assign(Object.assign({ method: 'PATCH' }, baseOptions), options);
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication BearerToken required
            // http bearer authentication required
            await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
            // authentication DigestAuth required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
            localVarHeaderParameter['Content-Type'] = 'application/json';
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
            localVarRequestOptions.data = (0, common_1.serializeDataIfNeeded)(body, localVarRequestOptions, configuration);
            return {
                url: (0, common_1.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, memberId, options = {}) => {
            // verify required parameter 'orgName' is not null or undefined
            (0, common_1.assertParamExists)('readOrgMember', 'orgName', orgName);
            // verify required parameter 'memberId' is not null or undefined
            (0, common_1.assertParamExists)('readOrgMember', 'memberId', memberId);
            const localVarPath = `/api/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, common_1.DUMMY_BASE_URL);
            let baseOptions;
            if (configuration) {
                baseOptions = configuration.baseOptions;
            }
            const localVarRequestOptions = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
            const localVarHeaderParameter = {};
            const localVarQueryParameter = {};
            // authentication BearerToken required
            // http bearer authentication required
            await (0, common_1.setBearerAuthToObject)(localVarHeaderParameter, configuration);
            // authentication DigestAuth required
            await (0, common_1.setApiKeyToObject)(localVarHeaderParameter, "Authorization", configuration);
            (0, common_1.setSearchParams)(localVarUrlObj, localVarQueryParameter);
            let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
            localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
            return {
                url: (0, common_1.toPathString)(localVarUrlObj),
                options: localVarRequestOptions,
            };
        },
    };
};
exports.MemberApiAxiosParamCreator = MemberApiAxiosParamCreator;
/**
 * MemberApi - functional programming interface
 * @export
 */
const MemberApiFp = function (configuration) {
    const localVarAxiosParamCreator = (0, exports.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, body, options) {
            var _a, _b, _c;
            const localVarAxiosArgs = await localVarAxiosParamCreator.addOrgMember(orgName, body, options);
            const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
            const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MemberApi.addOrgMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.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, memberId, options) {
            var _a, _b, _c;
            const localVarAxiosArgs = await localVarAxiosParamCreator.deleteOrgMember(orgName, memberId, options);
            const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
            const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MemberApi.deleteOrgMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.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, options) {
            var _a, _b, _c;
            const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgMember(orgName, options);
            const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
            const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MemberApi.listOrgMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
        /**
         *
         * @summary List permissions of a member
         * @param {string} orgName The name of the organization
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        async listOrgMemberPermission(orgName, options) {
            var _a, _b, _c;
            const localVarAxiosArgs = await localVarAxiosParamCreator.listOrgMemberPermission(orgName, options);
            const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
            const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MemberApi.listOrgMemberPermission']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.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, memberId, body, options) {
            var _a, _b, _c;
            const localVarAxiosArgs = await localVarAxiosParamCreator.patchOrgMember(orgName, memberId, body, options);
            const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
            const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MemberApi.patchOrgMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.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, memberId, options) {
            var _a, _b, _c;
            const localVarAxiosArgs = await localVarAxiosParamCreator.readOrgMember(orgName, memberId, options);
            const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
            const localVarOperationServerBasePath = (_c = (_b = base_1.operationServerMap['MemberApi.readOrgMember']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
            return (axios, basePath) => (0, common_1.createRequestFunction)(localVarAxiosArgs, axios_1.default, base_1.BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
        },
    };
};
exports.MemberApiFp = MemberApiFp;
/**
 * MemberApi - factory interface
 * @export
 */
const MemberApiFactory = function (configuration, basePath, axios) {
    const localVarFp = (0, exports.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, options) {
            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, options) {
            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, options) {
            return localVarFp.listOrgMember(requestParameters.orgName, options).then((request) => request(axios, basePath));
        },
        /**
         *
         * @summary List permissions of a member
         * @param {MemberApiListOrgMemberPermissionRequest} requestParameters Request parameters.
         * @param {*} [options] Override http request option.
         * @throws {RequiredError}
         */
        listOrgMemberPermission(requestParameters, options) {
            return localVarFp.listOrgMemberPermission(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, options) {
            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, options) {
            return localVarFp.readOrgMember(requestParameters.orgName, requestParameters.memberId, options).then((request) => request(axios, basePath));
        },
    };
};
exports.MemberApiFactory = MemberApiFactory;
/**
 * MemberApi - object-oriented interface
 * @export
 * @class MemberApi
 * @extends {BaseAPI}
 */
class MemberApi extends base_1.BaseAPI {
    /**
     * Add organization with specific role
     * @summary Add member
     * @param {MemberApiAddOrgMemberRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof MemberApi
     */
    addOrgMember(requestParameters, options) {
        return (0, exports.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
     */
    deleteOrgMember(requestParameters, options) {
        return (0, exports.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
     */
    listOrgMember(requestParameters, options) {
        return (0, exports.MemberApiFp)(this.configuration).listOrgMember(requestParameters.orgName, options).then((request) => request(this.axios, this.basePath));
    }
    /**
     *
     * @summary List permissions of a member
     * @param {MemberApiListOrgMemberPermissionRequest} requestParameters Request parameters.
     * @param {*} [options] Override http request option.
     * @throws {RequiredError}
     * @memberof MemberApi
     */
    listOrgMemberPermission(requestParameters, options) {
        return (0, exports.MemberApiFp)(this.configuration).listOrgMemberPermission(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
     */
    patchOrgMember(requestParameters, options) {
        return (0, exports.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
     */
    readOrgMember(requestParameters, options) {
        return (0, exports.MemberApiFp)(this.configuration).readOrgMember(requestParameters.orgName, requestParameters.memberId, options).then((request) => request(this.axios, this.basePath));
    }
}
exports.MemberApi = MemberApi;
//# sourceMappingURL=member-api.js.map