/** * 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 { Region } from '../models'; export interface DownloadLogForProcessRequest { appId: string; processId: string; } export interface GetLogsForAppRequest { appId: string; follow?: boolean; tailLines?: number; region?: Region; } export interface GetLogsForDeploymentRequest { appId: string; deploymentId: number; follow?: boolean; tailLines?: number; } export interface GetLogsForProcessRequest { appId: string; processId: string; follow?: boolean; tailLines?: number; } /** * LogV1Api - interface * * @export * @interface LogV1ApiInterface */ export interface LogV1ApiInterface { /** * Download entire log file for a stopped process. * @param {string} appId * @param {string} processId * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LogV1ApiInterface */ downloadLogForProcessRaw(requestParameters: DownloadLogForProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Download entire log file for a stopped process. */ downloadLogForProcess(appId: string, processId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Returns a stream of logs for an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. * @param {string} appId * @param {boolean} [follow] * @param {number} [tailLines] * @param {Region} [region] * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} * @memberof LogV1ApiInterface */ getLogsForAppRaw(requestParameters: GetLogsForAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Returns a stream of logs for an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. */ getLogsForApp(appId: string, follow?: boolean, tailLines?: number, region?: Region, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Returns a stream of logs for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) using `appId` and `deploymentId`. * @param {string} appId * @param {number} deploymentId * @param {boolean} [follow] * @param {number} [tailLines] * @param {*} [options] Override http request option. * @deprecated * @throws {RequiredError} * @memberof LogV1ApiInterface */ getLogsForDeploymentRaw(requestParameters: GetLogsForDeploymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Returns a stream of logs for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) using `appId` and `deploymentId`. */ getLogsForDeployment(appId: string, deploymentId: number, follow?: boolean, tailLines?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Returns a stream of logs for a [process](https://hathora.dev/docs/concepts/hathora-entities#process) using `appId` and `processId`. * @param {string} appId * @param {string} processId * @param {boolean} [follow] * @param {number} [tailLines] * @param {*} [options] Override http request option. * @throws {RequiredError} * @memberof LogV1ApiInterface */ getLogsForProcessRaw(requestParameters: GetLogsForProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Returns a stream of logs for a [process](https://hathora.dev/docs/concepts/hathora-entities#process) using `appId` and `processId`. */ getLogsForProcess(appId: string, processId: string, follow?: boolean, tailLines?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; } /** * */ export declare class LogV1Api extends runtime.BaseAPI implements LogV1ApiInterface { /** * Download entire log file for a stopped process. */ downloadLogForProcessRaw(requestParameters: DownloadLogForProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Download entire log file for a stopped process. */ downloadLogForProcess(appId: string, processId: string, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Returns a stream of logs for an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. */ getLogsForAppRaw(requestParameters: GetLogsForAppRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Returns a stream of logs for an [application](https://hathora.dev/docs/concepts/hathora-entities#application) using `appId`. */ getLogsForApp(appId: string, follow?: boolean, tailLines?: number, region?: Region, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Returns a stream of logs for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) using `appId` and `deploymentId`. */ getLogsForDeploymentRaw(requestParameters: GetLogsForDeploymentRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Returns a stream of logs for a [deployment](https://hathora.dev/docs/concepts/hathora-entities#deployment) using `appId` and `deploymentId`. */ getLogsForDeployment(appId: string, deploymentId: number, follow?: boolean, tailLines?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; /** * Returns a stream of logs for a [process](https://hathora.dev/docs/concepts/hathora-entities#process) using `appId` and `processId`. */ getLogsForProcessRaw(requestParameters: GetLogsForProcessRequest, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise>; /** * Returns a stream of logs for a [process](https://hathora.dev/docs/concepts/hathora-entities#process) using `appId` and `processId`. */ getLogsForProcess(appId: string, processId: string, follow?: boolean, tailLines?: number, initOverrides?: RequestInit | runtime.InitOverrideFunction): Promise; }