import type { PatchServerModelDTO } from '../models/PatchServerModelDTO'; import type { PostServerModelDTO } from '../models/PostServerModelDTO'; import type { ServerDTO } from '../models/ServerDTO'; import type { CancelablePromise } from '../core/CancelablePromise'; export declare class ServersService { /** * Get a list of servers * @param status Filter by current status of the server * @returns ServerDTO List of servers * @throws ApiError */ static getServers(status?: 'all' | 'suspended' | 'active'): CancelablePromise>; /** * Provision a server *  ![Asynchronous Request](https://api.webdock.io/application/themes/webdock/img/api-docs/async.png)\ * \ * You need to query the Server Configurations endpoints first in order to gather appropriate data for this method. * @param requestBody Post server model * @returns ServerDTO Server provisioning initiated * @throws ApiError */ static createServer(requestBody: PostServerModelDTO): CancelablePromise; /** * Get a specific server by slug * Get a specific server by slug (shortname) * @param serverSlug Slug of the server * @returns ServerDTO Server * @throws ApiError */ static getServerBySlug(serverSlug: string): CancelablePromise; /** * Delete a server (restricted) *  ![Asynchronous Request](https://api.webdock.io/application/themes/webdock/img/api-docs/async.png)\ * \ * This will nuke the server from orbit including all data and server snapshots. Use with care.\ * \ * _**Server Deletion requires special privileges which cannot be obtained in the Webdock dashboard without first contacting Webdock Support!**_ * @param serverSlug Slug of the server * @returns string Server deletion initiated * @throws ApiError */ static deleteServer(serverSlug: string): CancelablePromise; /** * Update server metadata * @param serverSlug Slug of the server * @param requestBody Patch server model * @returns ServerDTO Server Updated * @throws ApiError */ static patchServer(serverSlug: string, requestBody: PatchServerModelDTO): CancelablePromise; }