digitalfemsa
Version:
OpenAPI client for digitalfemsa
527 lines (526 loc) • 29.5 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* Femsa API
* Femsa sdk
*
* The version of the OpenAPI document: 2.1.0
* Contact: engineering@femsa.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 __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
return new (P || (P = Promise))(function (resolve, reject) {
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
step((generator = generator.apply(thisArg, _arguments || [])).next());
});
};
import globalAxios from 'axios';
// Some imports not used depending on template conditions
// @ts-ignore
import { DUMMY_BASE_URL, assertParamExists, setBearerAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction } from '../common';
// @ts-ignore
import { BASE_PATH, BaseAPI, operationServerMap } from '../base';
/**
* ApiKeysApi - axios parameter creator
* @export
*/
export const ApiKeysApiAxiosParamCreator = function (configuration) {
return {
/**
* Create a api key
* @summary Create Api Key
* @param {ApiKeyRequest} apiKeyRequest requested field for a api keys
* @param {CreateApiKeyAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use
* @param {string} [xChildCompanyId] In the case of a holding company, the company id of the child company to which will process the request.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createApiKey: (apiKeyRequest_1, acceptLanguage_1, xChildCompanyId_1, ...args_1) => __awaiter(this, [apiKeyRequest_1, acceptLanguage_1, xChildCompanyId_1, ...args_1], void 0, function* (apiKeyRequest, acceptLanguage, xChildCompanyId, options = {}) {
// verify required parameter 'apiKeyRequest' is not null or undefined
assertParamExists('createApiKey', 'apiKeyRequest', apiKeyRequest);
const localVarPath = `/api_keys`;
// 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 = Object.assign(Object.assign({ method: 'POST' }, baseOptions), options);
const localVarHeaderParameter = {};
const localVarQueryParameter = {};
// authentication bearerAuth required
// http bearer authentication required
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
if (acceptLanguage != null) {
localVarHeaderParameter['Accept-Language'] = String(acceptLanguage);
}
if (xChildCompanyId != null) {
localVarHeaderParameter['X-Child-Company-Id'] = String(xChildCompanyId);
}
localVarHeaderParameter['Content-Type'] = 'application/json';
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
localVarRequestOptions.data = serializeDataIfNeeded(apiKeyRequest, localVarRequestOptions, configuration);
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
}),
/**
* Deletes a api key that corresponds to a api key ID
* @summary Delete Api Key
* @param {string} id Identifier of the resource
* @param {DeleteApiKeyAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
deleteApiKey: (id_1, acceptLanguage_2, ...args_2) => __awaiter(this, [id_1, acceptLanguage_2, ...args_2], void 0, function* (id, acceptLanguage, options = {}) {
// verify required parameter 'id' is not null or undefined
assertParamExists('deleteApiKey', 'id', id);
const localVarPath = `/api_keys/{id}`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// 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 = Object.assign(Object.assign({ method: 'DELETE' }, baseOptions), options);
const localVarHeaderParameter = {};
const localVarQueryParameter = {};
// authentication bearerAuth required
// http bearer authentication required
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
if (acceptLanguage != null) {
localVarHeaderParameter['Accept-Language'] = String(acceptLanguage);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
}),
/**
* Gets a api key that corresponds to a api key ID
* @summary Get Api Key
* @param {string} id Identifier of the resource
* @param {GetApiKeyAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use
* @param {string} [xChildCompanyId] In the case of a holding company, the company id of the child company to which will process the request.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getApiKey: (id_2, acceptLanguage_3, xChildCompanyId_2, ...args_3) => __awaiter(this, [id_2, acceptLanguage_3, xChildCompanyId_2, ...args_3], void 0, function* (id, acceptLanguage, xChildCompanyId, options = {}) {
// verify required parameter 'id' is not null or undefined
assertParamExists('getApiKey', 'id', id);
const localVarPath = `/api_keys/{id}`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
const localVarHeaderParameter = {};
const localVarQueryParameter = {};
// authentication bearerAuth required
// http bearer authentication required
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
if (acceptLanguage != null) {
localVarHeaderParameter['Accept-Language'] = String(acceptLanguage);
}
if (xChildCompanyId != null) {
localVarHeaderParameter['X-Child-Company-Id'] = String(xChildCompanyId);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
}),
/**
* Consume the list of api keys you have
* @summary Get list of Api Keys
* @param {GetApiKeysAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use
* @param {string} [xChildCompanyId] In the case of a holding company, the company id of the child company to which will process the request.
* @param {number} [limit] The numbers of items to return, the maximum value is 250
* @param {string} [next] next page
* @param {string} [previous] previous page
* @param {string} [search] General search, e.g. by id, description, prefix
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getApiKeys: (acceptLanguage_4, xChildCompanyId_3, limit_1, next_1, previous_1, search_1, ...args_4) => __awaiter(this, [acceptLanguage_4, xChildCompanyId_3, limit_1, next_1, previous_1, search_1, ...args_4], void 0, function* (acceptLanguage, xChildCompanyId, limit, next, previous, search, options = {}) {
const localVarPath = `/api_keys`;
// 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 = Object.assign(Object.assign({ method: 'GET' }, baseOptions), options);
const localVarHeaderParameter = {};
const localVarQueryParameter = {};
// authentication bearerAuth required
// http bearer authentication required
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
if (limit !== undefined) {
localVarQueryParameter['limit'] = limit;
}
if (next !== undefined) {
localVarQueryParameter['next'] = next;
}
if (previous !== undefined) {
localVarQueryParameter['previous'] = previous;
}
if (search !== undefined) {
localVarQueryParameter['search'] = search;
}
if (acceptLanguage != null) {
localVarHeaderParameter['Accept-Language'] = String(acceptLanguage);
}
if (xChildCompanyId != null) {
localVarHeaderParameter['X-Child-Company-Id'] = String(xChildCompanyId);
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
}),
/**
* Update an existing api key
* @summary Update Api Key
* @param {string} id Identifier of the resource
* @param {UpdateApiKeyAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use
* @param {ApiKeyUpdateRequest} [apiKeyUpdateRequest]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateApiKey: (id_3, acceptLanguage_5, apiKeyUpdateRequest_1, ...args_5) => __awaiter(this, [id_3, acceptLanguage_5, apiKeyUpdateRequest_1, ...args_5], void 0, function* (id, acceptLanguage, apiKeyUpdateRequest, options = {}) {
// verify required parameter 'id' is not null or undefined
assertParamExists('updateApiKey', 'id', id);
const localVarPath = `/api_keys/{id}`
.replace(`{${"id"}}`, encodeURIComponent(String(id)));
// 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 = Object.assign(Object.assign({ method: 'PUT' }, baseOptions), options);
const localVarHeaderParameter = {};
const localVarQueryParameter = {};
// authentication bearerAuth required
// http bearer authentication required
yield setBearerAuthToObject(localVarHeaderParameter, configuration);
if (acceptLanguage != null) {
localVarHeaderParameter['Accept-Language'] = String(acceptLanguage);
}
localVarHeaderParameter['Content-Type'] = 'application/json';
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = Object.assign(Object.assign(Object.assign({}, localVarHeaderParameter), headersFromBaseOptions), options.headers);
localVarRequestOptions.data = serializeDataIfNeeded(apiKeyUpdateRequest, localVarRequestOptions, configuration);
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
}),
};
};
/**
* ApiKeysApi - functional programming interface
* @export
*/
export const ApiKeysApiFp = function (configuration) {
const localVarAxiosParamCreator = ApiKeysApiAxiosParamCreator(configuration);
return {
/**
* Create a api key
* @summary Create Api Key
* @param {ApiKeyRequest} apiKeyRequest requested field for a api keys
* @param {CreateApiKeyAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use
* @param {string} [xChildCompanyId] In the case of a holding company, the company id of the child company to which will process the request.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createApiKey(apiKeyRequest, acceptLanguage, xChildCompanyId, options) {
return __awaiter(this, void 0, void 0, function* () {
var _a, _b, _c;
const localVarAxiosArgs = yield localVarAxiosParamCreator.createApiKey(apiKeyRequest, acceptLanguage, xChildCompanyId, options);
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
const operationBasePath = (_c = (_b = operationServerMap['ApiKeysApi.createApiKey']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
});
},
/**
* Deletes a api key that corresponds to a api key ID
* @summary Delete Api Key
* @param {string} id Identifier of the resource
* @param {DeleteApiKeyAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
deleteApiKey(id, acceptLanguage, options) {
return __awaiter(this, void 0, void 0, function* () {
var _a, _b, _c;
const localVarAxiosArgs = yield localVarAxiosParamCreator.deleteApiKey(id, acceptLanguage, options);
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
const operationBasePath = (_c = (_b = operationServerMap['ApiKeysApi.deleteApiKey']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
});
},
/**
* Gets a api key that corresponds to a api key ID
* @summary Get Api Key
* @param {string} id Identifier of the resource
* @param {GetApiKeyAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use
* @param {string} [xChildCompanyId] In the case of a holding company, the company id of the child company to which will process the request.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getApiKey(id, acceptLanguage, xChildCompanyId, options) {
return __awaiter(this, void 0, void 0, function* () {
var _a, _b, _c;
const localVarAxiosArgs = yield localVarAxiosParamCreator.getApiKey(id, acceptLanguage, xChildCompanyId, options);
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
const operationBasePath = (_c = (_b = operationServerMap['ApiKeysApi.getApiKey']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
});
},
/**
* Consume the list of api keys you have
* @summary Get list of Api Keys
* @param {GetApiKeysAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use
* @param {string} [xChildCompanyId] In the case of a holding company, the company id of the child company to which will process the request.
* @param {number} [limit] The numbers of items to return, the maximum value is 250
* @param {string} [next] next page
* @param {string} [previous] previous page
* @param {string} [search] General search, e.g. by id, description, prefix
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getApiKeys(acceptLanguage, xChildCompanyId, limit, next, previous, search, options) {
return __awaiter(this, void 0, void 0, function* () {
var _a, _b, _c;
const localVarAxiosArgs = yield localVarAxiosParamCreator.getApiKeys(acceptLanguage, xChildCompanyId, limit, next, previous, search, options);
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
const operationBasePath = (_c = (_b = operationServerMap['ApiKeysApi.getApiKeys']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
});
},
/**
* Update an existing api key
* @summary Update Api Key
* @param {string} id Identifier of the resource
* @param {UpdateApiKeyAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use
* @param {ApiKeyUpdateRequest} [apiKeyUpdateRequest]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateApiKey(id, acceptLanguage, apiKeyUpdateRequest, options) {
return __awaiter(this, void 0, void 0, function* () {
var _a, _b, _c;
const localVarAxiosArgs = yield localVarAxiosParamCreator.updateApiKey(id, acceptLanguage, apiKeyUpdateRequest, options);
const index = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
const operationBasePath = (_c = (_b = operationServerMap['ApiKeysApi.updateApiKey']) === null || _b === void 0 ? void 0 : _b[index]) === null || _c === void 0 ? void 0 : _c.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, operationBasePath || basePath);
});
},
};
};
/**
* ApiKeysApi - factory interface
* @export
*/
export const ApiKeysApiFactory = function (configuration, basePath, axios) {
const localVarFp = ApiKeysApiFp(configuration);
return {
/**
* Create a api key
* @summary Create Api Key
* @param {ApiKeyRequest} apiKeyRequest requested field for a api keys
* @param {CreateApiKeyAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use
* @param {string} [xChildCompanyId] In the case of a holding company, the company id of the child company to which will process the request.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
createApiKey(apiKeyRequest, acceptLanguage, xChildCompanyId, options) {
return localVarFp.createApiKey(apiKeyRequest, acceptLanguage, xChildCompanyId, options).then((request) => request(axios, basePath));
},
/**
* Deletes a api key that corresponds to a api key ID
* @summary Delete Api Key
* @param {string} id Identifier of the resource
* @param {DeleteApiKeyAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
deleteApiKey(id, acceptLanguage, options) {
return localVarFp.deleteApiKey(id, acceptLanguage, options).then((request) => request(axios, basePath));
},
/**
* Gets a api key that corresponds to a api key ID
* @summary Get Api Key
* @param {string} id Identifier of the resource
* @param {GetApiKeyAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use
* @param {string} [xChildCompanyId] In the case of a holding company, the company id of the child company to which will process the request.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getApiKey(id, acceptLanguage, xChildCompanyId, options) {
return localVarFp.getApiKey(id, acceptLanguage, xChildCompanyId, options).then((request) => request(axios, basePath));
},
/**
* Consume the list of api keys you have
* @summary Get list of Api Keys
* @param {GetApiKeysAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use
* @param {string} [xChildCompanyId] In the case of a holding company, the company id of the child company to which will process the request.
* @param {number} [limit] The numbers of items to return, the maximum value is 250
* @param {string} [next] next page
* @param {string} [previous] previous page
* @param {string} [search] General search, e.g. by id, description, prefix
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getApiKeys(acceptLanguage, xChildCompanyId, limit, next, previous, search, options) {
return localVarFp.getApiKeys(acceptLanguage, xChildCompanyId, limit, next, previous, search, options).then((request) => request(axios, basePath));
},
/**
* Update an existing api key
* @summary Update Api Key
* @param {string} id Identifier of the resource
* @param {UpdateApiKeyAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use
* @param {ApiKeyUpdateRequest} [apiKeyUpdateRequest]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
updateApiKey(id, acceptLanguage, apiKeyUpdateRequest, options) {
return localVarFp.updateApiKey(id, acceptLanguage, apiKeyUpdateRequest, options).then((request) => request(axios, basePath));
},
};
};
/**
* ApiKeysApi - object-oriented interface
* @export
* @class ApiKeysApi
* @extends {BaseAPI}
*/
export class ApiKeysApi extends BaseAPI {
/**
* Create a api key
* @summary Create Api Key
* @param {ApiKeyRequest} apiKeyRequest requested field for a api keys
* @param {CreateApiKeyAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use
* @param {string} [xChildCompanyId] In the case of a holding company, the company id of the child company to which will process the request.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiKeysApi
*/
createApiKey(apiKeyRequest, acceptLanguage, xChildCompanyId, options) {
return ApiKeysApiFp(this.configuration).createApiKey(apiKeyRequest, acceptLanguage, xChildCompanyId, options).then((request) => request(this.axios, this.basePath));
}
/**
* Deletes a api key that corresponds to a api key ID
* @summary Delete Api Key
* @param {string} id Identifier of the resource
* @param {DeleteApiKeyAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiKeysApi
*/
deleteApiKey(id, acceptLanguage, options) {
return ApiKeysApiFp(this.configuration).deleteApiKey(id, acceptLanguage, options).then((request) => request(this.axios, this.basePath));
}
/**
* Gets a api key that corresponds to a api key ID
* @summary Get Api Key
* @param {string} id Identifier of the resource
* @param {GetApiKeyAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use
* @param {string} [xChildCompanyId] In the case of a holding company, the company id of the child company to which will process the request.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiKeysApi
*/
getApiKey(id, acceptLanguage, xChildCompanyId, options) {
return ApiKeysApiFp(this.configuration).getApiKey(id, acceptLanguage, xChildCompanyId, options).then((request) => request(this.axios, this.basePath));
}
/**
* Consume the list of api keys you have
* @summary Get list of Api Keys
* @param {GetApiKeysAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use
* @param {string} [xChildCompanyId] In the case of a holding company, the company id of the child company to which will process the request.
* @param {number} [limit] The numbers of items to return, the maximum value is 250
* @param {string} [next] next page
* @param {string} [previous] previous page
* @param {string} [search] General search, e.g. by id, description, prefix
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiKeysApi
*/
getApiKeys(acceptLanguage, xChildCompanyId, limit, next, previous, search, options) {
return ApiKeysApiFp(this.configuration).getApiKeys(acceptLanguage, xChildCompanyId, limit, next, previous, search, options).then((request) => request(this.axios, this.basePath));
}
/**
* Update an existing api key
* @summary Update Api Key
* @param {string} id Identifier of the resource
* @param {UpdateApiKeyAcceptLanguageEnum} [acceptLanguage] Use for knowing which language to use
* @param {ApiKeyUpdateRequest} [apiKeyUpdateRequest]
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof ApiKeysApi
*/
updateApiKey(id, acceptLanguage, apiKeyUpdateRequest, options) {
return ApiKeysApiFp(this.configuration).updateApiKey(id, acceptLanguage, apiKeyUpdateRequest, options).then((request) => request(this.axios, this.basePath));
}
}
/**
* @export
*/
export const CreateApiKeyAcceptLanguageEnum = {
es: 'es',
en: 'en'
};
/**
* @export
*/
export const DeleteApiKeyAcceptLanguageEnum = {
es: 'es',
en: 'en'
};
/**
* @export
*/
export const GetApiKeyAcceptLanguageEnum = {
es: 'es',
en: 'en'
};
/**
* @export
*/
export const GetApiKeysAcceptLanguageEnum = {
es: 'es',
en: 'en'
};
/**
* @export
*/
export const UpdateApiKeyAcceptLanguageEnum = {
es: 'es',
en: 'en'
};