/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { fleetsV1CreateFleetDeprecated } from "../funcs/fleetsV1CreateFleetDeprecated.js"; import { fleetsV1GetFleetDeprecated } from "../funcs/fleetsV1GetFleetDeprecated.js"; import { fleetsV1GetFleetMetricsDeprecated } from "../funcs/fleetsV1GetFleetMetricsDeprecated.js"; import { fleetsV1GetFleetRegionDeprecated } from "../funcs/fleetsV1GetFleetRegionDeprecated.js"; import { fleetsV1GetFleetRegionMetricsDeprecated } from "../funcs/fleetsV1GetFleetRegionMetricsDeprecated.js"; import { fleetsV1GetFleetsDeprecated } from "../funcs/fleetsV1GetFleetsDeprecated.js"; import { fleetsV1UpdateFleetDeprecated } from "../funcs/fleetsV1UpdateFleetDeprecated.js"; import { fleetsV1UpdateFleetRegionDeprecated } from "../funcs/fleetsV1UpdateFleetRegionDeprecated.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as components from "../models/components/index.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class FleetsV1 extends ClientSDK { /** * GetFleetsDeprecated * * @remarks * Returns an array of [fleets](https://hathora.dev/docs/concepts/hathora-entities#fleet). */ async getFleetsDeprecated( orgId?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(fleetsV1GetFleetsDeprecated( this, orgId, options, )); } /** * CreateFleetDeprecated */ async createFleetDeprecated( createFleet: components.CreateFleet, orgId?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(fleetsV1CreateFleetDeprecated( this, createFleet, orgId, options, )); } /** * GetFleetDeprecated * * @remarks * Returns a [fleet](https://hathora.dev/docs/concepts/hathora-entities#fleet). */ async getFleetDeprecated( fleetId: string, orgId?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(fleetsV1GetFleetDeprecated( this, fleetId, orgId, options, )); } /** * UpdateFleetDeprecated * * @remarks * Updates a [fleet](https://hathora.dev/docs/concepts/hathora-entities#fleet)'s configuration. */ async updateFleetDeprecated( fleetId: string, updateFleet: components.UpdateFleet, orgId?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(fleetsV1UpdateFleetDeprecated( this, fleetId, updateFleet, orgId, options, )); } /** * GetFleetRegionDeprecated * * @remarks * Gets the configuration for a given [fleet](https://hathora.dev/docs/concepts/hathora-entities#fleet) in a region. */ async getFleetRegionDeprecated( fleetId: string, region: components.Region, orgId?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(fleetsV1GetFleetRegionDeprecated( this, fleetId, region, orgId, options, )); } /** * UpdateFleetRegionDeprecated * * @remarks * Updates the configuration for a given [fleet](https://hathora.dev/docs/concepts/hathora-entities#fleet) in a region. */ async updateFleetRegionDeprecated( fleetId: string, region: components.Region, fleetRegionConfig: components.FleetRegionConfig, orgId?: string | undefined, options?: RequestOptions, ): Promise { return unwrapAsync(fleetsV1UpdateFleetRegionDeprecated( this, fleetId, region, fleetRegionConfig, orgId, options, )); } /** * GetFleetMetricsDeprecated * * @remarks * Gets aggregate metrics for a [fleet](https://hathora.dev/docs/concepts/hathora-entities#fleet). */ async getFleetMetricsDeprecated( request: operations.GetFleetMetricsDeprecatedRequest, options?: RequestOptions, ): Promise { return unwrapAsync(fleetsV1GetFleetMetricsDeprecated( this, request, options, )); } /** * GetFleetRegionMetricsDeprecated * * @remarks * Gets metrics for a region in a [fleet](https://hathora.dev/docs/concepts/hathora-entities#fleet). */ async getFleetRegionMetricsDeprecated( request: operations.GetFleetRegionMetricsDeprecatedRequest, options?: RequestOptions, ): Promise { return unwrapAsync(fleetsV1GetFleetRegionMetricsDeprecated( this, request, options, )); } }