import type { CreateServerSnapshotModelDTO } from '../models/CreateServerSnapshotModelDTO'; import type { ReinstallServerModelDTO } from '../models/ReinstallServerModelDTO'; import type { ResizeServerModelDTO } from '../models/ResizeServerModelDTO'; import type { RestoreSnapshotModelDTO } from '../models/RestoreSnapshotModelDTO'; import type { ServerResizeDTO } from '../models/ServerResizeDTO'; import type { SnapshotDTO } from '../models/SnapshotDTO'; import type { CancelablePromise } from '../core/CancelablePromise'; export declare class ServerActionsService { /** * Start a server *  ![Asynchronous Request](https://api.webdock.io/application/themes/webdock/img/api-docs/async.png) * @param serverSlug Slug of the server * @returns string Server start initiated. * @throws ApiError */ static startServer(serverSlug: string): CancelablePromise; /** * Stop a server *  ![Asynchronous Request](https://api.webdock.io/application/themes/webdock/img/api-docs/async.png) * @param serverSlug Slug of the server * @returns string Server shutdown initiated. * @throws ApiError */ static stopServer(serverSlug: string): CancelablePromise; /** * Reboot a server *  ![Asynchronous Request](https://api.webdock.io/application/themes/webdock/img/api-docs/async.png) * @param serverSlug Slug of the server * @returns string Server reboot initiated. * @throws ApiError */ static rebootServer(serverSlug: string): CancelablePromise; /** * Suspend a server *  ![Asynchronous Request](https://api.webdock.io/application/themes/webdock/img/api-docs/async.png)\ * \ * Please note that you typically have a cap of 3 suspended servers at any one time. If you need more suspended server slots you can get these against a small monthly fee. Be in touch with Webdock support for more information. * @param serverSlug Slug of the server * @returns string Server suspend initiated. * @throws ApiError */ static suspendServer(serverSlug: string): CancelablePromise; /** * Reinstall a server *  ![Asynchronous Request](https://api.webdock.io/application/themes/webdock/img/api-docs/async.png)\ * \ * **Please note:** Reinstall means you will be deleting your server and replacing it with a fresh image of your choice. You will keep your server name and metadata, server shortname (slug), monitoring rules and IP addresses. Otherwise it will behave as a freshly provisioned server. Any existing snapshots for this server will be deleted. If you install a LAMP/LEMP stack Webdock will generate new credentials for your server (Database, FTP and admin Shell/SSH user). * @param serverSlug Slug of the server * @param requestBody Reinstall server model * @returns string Server reinstall initiated. * @throws ApiError */ static reinstallServer(serverSlug: string, requestBody: ReinstallServerModelDTO): CancelablePromise; /** * Create a snapshot for a server *  ![Asynchronous Request](https://api.webdock.io/application/themes/webdock/img/api-docs/async.png) * @param serverSlug Slug of the server * @param requestBody Server snapshot to be created * @returns SnapshotDTO Snapshot initiated * @throws ApiError */ static createServerSnapshot(serverSlug: string, requestBody: CreateServerSnapshotModelDTO): CancelablePromise; /** * Restore the server to a snapshot *  ![Asynchronous Request](https://api.webdock.io/application/themes/webdock/img/api-docs/async.png) * @param serverSlug Slug of the server * @param requestBody Restore snapshot model * @returns string Snapshot restore initiated * @throws ApiError */ static restoreServerToSnapshot(serverSlug: string, requestBody: RestoreSnapshotModelDTO): CancelablePromise; /** * Dry Run for Server Profile Change * You should call this method before trying to resize a server in order to discover what implications changing the Server hardware profile will have with regards to Billing. You will also be notified of any validation errors such as whether the requested profile has enough storage to accommodate your server. * @param serverSlug Slug of the server * @param requestBody Resize server model * @returns ServerResizeDTO Dry run result * @throws ApiError */ static resizeDryRun(serverSlug: string, requestBody: ResizeServerModelDTO): CancelablePromise; /** * Change a Server Profile *  ![Asynchronous Request](https://api.webdock.io/application/themes/webdock/img/api-docs/async.png)\ * Changing your hardware profile is near-instant and you keep your IP addresses and all data as-is. In some cases, a quick restart (less than 1min. downtime) is required for your new CPU allocation to come up correctly. This cannot be determined beforehand, so expect a restart of your server. We hope to have this solved in future updates of our hypervisor.\ * \ * _**You should always call the Change Profile Dry Run method first in order to make sure the requested profile can acccommodate your server!**_ * @param serverSlug Slug of the server * @param requestBody Resize server model * @returns string Server Profile Change initiated * @throws ApiError */ static resizeServer(serverSlug: string, requestBody: ResizeServerModelDTO): CancelablePromise; }