@jellyfin/sdk
Version:
A TypeScript SDK for Jellyfin.
650 lines (647 loc) • 31.6 kB
JavaScript
import globalAxios from 'axios';
import { DUMMY_BASE_URL, setApiKeyToObject, setSearchParams, toPathString, assertParamExists, createRequestFunction } from '../common.js';
import { operationServerMap, BaseAPI, BASE_PATH } from '../base.js';
/* tslint:disable */
/* eslint-disable */
/**
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* Do not edit the class manually.
*
* Jellyfin API
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/.
*/
/**
* SystemApi - axios parameter creator
* @export
*/
const SystemApiAxiosParamCreator = function (configuration) {
return {
/**
*
* @summary Gets information about the request endpoint.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getEndpointInfo: async (options = {}) => {
const localVarPath = `/System/Endpoint`;
// 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 = {};
const localVarQueryParameter = {};
// authentication CustomAuthentication 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,
};
},
/**
*
* @summary Gets a log file.
* @param {string} name The name of the log file to get.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getLogFile: async (name, options = {}) => {
// verify required parameter 'name' is not null or undefined
assertParamExists('getLogFile', 'name', name);
const localVarPath = `/System/Logs/Log`;
// 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 = {};
const localVarQueryParameter = {};
// authentication CustomAuthentication required
await setApiKeyToObject(localVarHeaderParameter, "Authorization", configuration);
if (name !== undefined) {
localVarQueryParameter['name'] = name;
}
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
*
* @summary Pings the system.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getPingSystem: async (options = {}) => {
const localVarPath = `/System/Ping`;
// 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 = {};
const localVarQueryParameter = {};
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
*
* @summary Gets public information about the server.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getPublicSystemInfo: async (options = {}) => {
const localVarPath = `/System/Info/Public`;
// 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 = {};
const localVarQueryParameter = {};
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
*
* @summary Gets a list of available server log files.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getServerLogs: async (options = {}) => {
const localVarPath = `/System/Logs`;
// 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 = {};
const localVarQueryParameter = {};
// authentication CustomAuthentication 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,
};
},
/**
*
* @summary Gets information about the server.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getSystemInfo: async (options = {}) => {
const localVarPath = `/System/Info`;
// 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 = {};
const localVarQueryParameter = {};
// authentication CustomAuthentication 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,
};
},
/**
*
* @summary Gets wake on lan information.
* @param {*} [options] Override http request option.
* @deprecated
* @throws {RequiredError}
*/
getWakeOnLanInfo: async (options = {}) => {
const localVarPath = `/System/WakeOnLanInfo`;
// 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 = {};
const localVarQueryParameter = {};
// authentication CustomAuthentication 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,
};
},
/**
*
* @summary Pings the system.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
postPingSystem: async (options = {}) => {
const localVarPath = `/System/Ping`;
// 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 = {};
const localVarQueryParameter = {};
setSearchParams(localVarUrlObj, localVarQueryParameter);
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
return {
url: toPathString(localVarUrlObj),
options: localVarRequestOptions,
};
},
/**
*
* @summary Restarts the application.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
restartApplication: async (options = {}) => {
const localVarPath = `/System/Restart`;
// 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 = {};
const localVarQueryParameter = {};
// authentication CustomAuthentication 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,
};
},
/**
*
* @summary Shuts down the application.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
shutdownApplication: async (options = {}) => {
const localVarPath = `/System/Shutdown`;
// 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 = {};
const localVarQueryParameter = {};
// authentication CustomAuthentication 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,
};
},
};
};
/**
* SystemApi - functional programming interface
* @export
*/
const SystemApiFp = function (configuration) {
const localVarAxiosParamCreator = SystemApiAxiosParamCreator(configuration);
return {
/**
*
* @summary Gets information about the request endpoint.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getEndpointInfo(options) {
var _a, _b, _c;
const localVarAxiosArgs = await localVarAxiosParamCreator.getEndpointInfo(options);
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SystemApi.getEndpointInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
*
* @summary Gets a log file.
* @param {string} name The name of the log file to get.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getLogFile(name, options) {
var _a, _b, _c;
const localVarAxiosArgs = await localVarAxiosParamCreator.getLogFile(name, options);
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SystemApi.getLogFile']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
*
* @summary Pings the system.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getPingSystem(options) {
var _a, _b, _c;
const localVarAxiosArgs = await localVarAxiosParamCreator.getPingSystem(options);
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SystemApi.getPingSystem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
*
* @summary Gets public information about the server.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getPublicSystemInfo(options) {
var _a, _b, _c;
const localVarAxiosArgs = await localVarAxiosParamCreator.getPublicSystemInfo(options);
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SystemApi.getPublicSystemInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
*
* @summary Gets a list of available server log files.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getServerLogs(options) {
var _a, _b, _c;
const localVarAxiosArgs = await localVarAxiosParamCreator.getServerLogs(options);
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SystemApi.getServerLogs']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
*
* @summary Gets information about the server.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async getSystemInfo(options) {
var _a, _b, _c;
const localVarAxiosArgs = await localVarAxiosParamCreator.getSystemInfo(options);
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SystemApi.getSystemInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
*
* @summary Gets wake on lan information.
* @param {*} [options] Override http request option.
* @deprecated
* @throws {RequiredError}
*/
async getWakeOnLanInfo(options) {
var _a, _b, _c;
const localVarAxiosArgs = await localVarAxiosParamCreator.getWakeOnLanInfo(options);
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SystemApi.getWakeOnLanInfo']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
*
* @summary Pings the system.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async postPingSystem(options) {
var _a, _b, _c;
const localVarAxiosArgs = await localVarAxiosParamCreator.postPingSystem(options);
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SystemApi.postPingSystem']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
*
* @summary Restarts the application.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async restartApplication(options) {
var _a, _b, _c;
const localVarAxiosArgs = await localVarAxiosParamCreator.restartApplication(options);
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SystemApi.restartApplication']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
/**
*
* @summary Shuts down the application.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
async shutdownApplication(options) {
var _a, _b, _c;
const localVarAxiosArgs = await localVarAxiosParamCreator.shutdownApplication(options);
const localVarOperationServerIndex = (_a = configuration === null || configuration === void 0 ? void 0 : configuration.serverIndex) !== null && _a !== void 0 ? _a : 0;
const localVarOperationServerBasePath = (_c = (_b = operationServerMap['SystemApi.shutdownApplication']) === null || _b === void 0 ? void 0 : _b[localVarOperationServerIndex]) === null || _c === void 0 ? void 0 : _c.url;
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
},
};
};
/**
* SystemApi - factory interface
* @export
*/
const SystemApiFactory = function (configuration, basePath, axios) {
const localVarFp = SystemApiFp(configuration);
return {
/**
*
* @summary Gets information about the request endpoint.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getEndpointInfo(options) {
return localVarFp.getEndpointInfo(options).then((request) => request(axios, basePath));
},
/**
*
* @summary Gets a log file.
* @param {SystemApiGetLogFileRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getLogFile(requestParameters, options) {
return localVarFp.getLogFile(requestParameters.name, options).then((request) => request(axios, basePath));
},
/**
*
* @summary Pings the system.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getPingSystem(options) {
return localVarFp.getPingSystem(options).then((request) => request(axios, basePath));
},
/**
*
* @summary Gets public information about the server.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getPublicSystemInfo(options) {
return localVarFp.getPublicSystemInfo(options).then((request) => request(axios, basePath));
},
/**
*
* @summary Gets a list of available server log files.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getServerLogs(options) {
return localVarFp.getServerLogs(options).then((request) => request(axios, basePath));
},
/**
*
* @summary Gets information about the server.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
getSystemInfo(options) {
return localVarFp.getSystemInfo(options).then((request) => request(axios, basePath));
},
/**
*
* @summary Gets wake on lan information.
* @param {*} [options] Override http request option.
* @deprecated
* @throws {RequiredError}
*/
getWakeOnLanInfo(options) {
return localVarFp.getWakeOnLanInfo(options).then((request) => request(axios, basePath));
},
/**
*
* @summary Pings the system.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
postPingSystem(options) {
return localVarFp.postPingSystem(options).then((request) => request(axios, basePath));
},
/**
*
* @summary Restarts the application.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
restartApplication(options) {
return localVarFp.restartApplication(options).then((request) => request(axios, basePath));
},
/**
*
* @summary Shuts down the application.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
*/
shutdownApplication(options) {
return localVarFp.shutdownApplication(options).then((request) => request(axios, basePath));
},
};
};
/**
* SystemApi - object-oriented interface
* @export
* @class SystemApi
* @extends {BaseAPI}
*/
class SystemApi extends BaseAPI {
/**
*
* @summary Gets information about the request endpoint.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SystemApi
*/
getEndpointInfo(options) {
return SystemApiFp(this.configuration).getEndpointInfo(options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Gets a log file.
* @param {SystemApiGetLogFileRequest} requestParameters Request parameters.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SystemApi
*/
getLogFile(requestParameters, options) {
return SystemApiFp(this.configuration).getLogFile(requestParameters.name, options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Pings the system.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SystemApi
*/
getPingSystem(options) {
return SystemApiFp(this.configuration).getPingSystem(options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Gets public information about the server.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SystemApi
*/
getPublicSystemInfo(options) {
return SystemApiFp(this.configuration).getPublicSystemInfo(options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Gets a list of available server log files.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SystemApi
*/
getServerLogs(options) {
return SystemApiFp(this.configuration).getServerLogs(options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Gets information about the server.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SystemApi
*/
getSystemInfo(options) {
return SystemApiFp(this.configuration).getSystemInfo(options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Gets wake on lan information.
* @param {*} [options] Override http request option.
* @deprecated
* @throws {RequiredError}
* @memberof SystemApi
*/
getWakeOnLanInfo(options) {
return SystemApiFp(this.configuration).getWakeOnLanInfo(options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Pings the system.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SystemApi
*/
postPingSystem(options) {
return SystemApiFp(this.configuration).postPingSystem(options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Restarts the application.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SystemApi
*/
restartApplication(options) {
return SystemApiFp(this.configuration).restartApplication(options).then((request) => request(this.axios, this.basePath));
}
/**
*
* @summary Shuts down the application.
* @param {*} [options] Override http request option.
* @throws {RequiredError}
* @memberof SystemApi
*/
shutdownApplication(options) {
return SystemApiFp(this.configuration).shutdownApplication(options).then((request) => request(this.axios, this.basePath));
}
}
export { SystemApi, SystemApiAxiosParamCreator, SystemApiFactory, SystemApiFp };