/* tslint:disable */
/* eslint-disable */
/**
 * AutoGlue API
 * API for managing K3s clusters across cloud providers
 *
 * The version of the OpenAPI document: dev
 *
 *
 * 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 { HandlersVersionResponse } from "../models/index";
import {
  HandlersVersionResponseFromJSON,
  HandlersVersionResponseToJSON,
} from "../models/index";

/**
 *
 */
export class MetaApi extends runtime.BaseAPI {
  /**
   * Returns build/runtime metadata for the running service.
   * Service version information
   */
  async versionOperationIdRaw(
    initOverrides?: RequestInit | runtime.InitOverrideFunction,
  ): Promise<runtime.ApiResponse<HandlersVersionResponse>> {
    const queryParameters: any = {};

    const headerParameters: runtime.HTTPHeaders = {};

    let urlPath = `/version`;

    const response = await this.request(
      {
        path: urlPath,
        method: "GET",
        headers: headerParameters,
        query: queryParameters,
      },
      initOverrides,
    );

    return new runtime.JSONApiResponse(response, (jsonValue) =>
      HandlersVersionResponseFromJSON(jsonValue),
    );
  }

  /**
   * Returns build/runtime metadata for the running service.
   * Service version information
   */
  async versionOperationId(
    initOverrides?: RequestInit | runtime.InitOverrideFunction,
  ): Promise<HandlersVersionResponse> {
    const response = await this.versionOperationIdRaw(initOverrides);
    return await response.value();
  }
}
