/** * Hathora Cloud API * Welcome to the Hathora Cloud API documentation! Learn how to use the Hathora Cloud APIs to build and scale your game servers globally. * * The version of the OpenAPI document: 0.0.1 * * * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech). * https://openapi-generator.tech * Do not edit the class manually. */ import * as runtime from '../runtime'; import type { DeploymentConfigV2, DeploymentV2 } from '../models'; export interface CreateDeploymentRequest { appId: string; buildId: number; deploymentConfigV2: DeploymentConfigV2; } export interface GetDeploymentInfoRequest { appId: string; deploymentId: number; } export interface GetDeploymentsRequest { appId: string; } export interface GetLatestDeploymentRequest { appId: string; } /** * DeploymentV2Api - interface * * @export * @interface DeploymentV2ApiInterface */ export interface DeploymentV2ApiInterface { /** * Create a new [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). Creating a new deployment means all new rooms created will use the latest deployment configuration, but existing games in progress will not be affected. * @param {string} appId * @param {number} buildId * @param {DeploymentConfigV2} deploymentConfigV2 * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DeploymentV2ApiInterface */ createDeploymentRaw(requestParameters: CreateDeploymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Create a new [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). Creating a new deployment means all new rooms created will use the latest deployment configuration, but existing games in progress will not be affected. */ createDeployment(appId: string, buildId: number, deploymentConfigV2: DeploymentConfigV2, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Get details for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). * @param {string} appId * @param {number} deploymentId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DeploymentV2ApiInterface */ getDeploymentInfoRaw(requestParameters: GetDeploymentInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get details for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). */ getDeploymentInfo(appId: string, deploymentId: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Returns an array of [deployments](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). * @param {string} appId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DeploymentV2ApiInterface */ getDeploymentsRaw(requestParameters: GetDeploymentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * Returns an array of [deployments](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). */ getDeployments(appId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get the latest [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). * @param {string} appId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof DeploymentV2ApiInterface */ getLatestDeploymentRaw(requestParameters: GetLatestDeploymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get the latest [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). */ getLatestDeployment(appId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } /** * */ export declare class DeploymentV2Api extends runtime.BaseAPI implements DeploymentV2ApiInterface { /** * Create a new [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). Creating a new deployment means all new rooms created will use the latest deployment configuration, but existing games in progress will not be affected. */ createDeploymentRaw(requestParameters: CreateDeploymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Create a new [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). Creating a new deployment means all new rooms created will use the latest deployment configuration, but existing games in progress will not be affected. */ createDeployment(appId: string, buildId: number, deploymentConfigV2: DeploymentConfigV2, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Get details for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). */ getDeploymentInfoRaw(requestParameters: GetDeploymentInfoRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get details for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment). */ getDeploymentInfo(appId: string, deploymentId: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Returns an array of [deployments](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). */ getDeploymentsRaw(requestParameters: GetDeploymentsRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>>; /** * Returns an array of [deployments](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). */ getDeployments(appId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get the latest [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). */ getLatestDeploymentRaw(requestParameters: GetLatestDeploymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Get the latest [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) for an [application](https://hathora.dev/docs/concepts/hathora-entities#application). */ getLatestDeployment(appId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; }