/* tslint:disable */ /* eslint-disable */ /** * Kubernetes * No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) * * The version of the OpenAPI document: unversioned * * * 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 { IoK8sApimachineryPkgVersionInfo, IoK8sApimachineryPkgVersionInfoFromJSON, } from '../models'; /** * */ export class VersionApi extends runtime.BaseAPI { /** * get the version information for this server */ async getCodeVersionRaw( initOverrides?: RequestInit, ): Promise> { const queryParameters: any = {}; const headerParameters: runtime.HTTPHeaders = {}; if (this.configuration && this.configuration.apiKey) { headerParameters['authorization'] = this.configuration.apiKey('authorization'); // BearerToken authentication } const response = await this.request( { path: `/version/`, method: 'GET', headers: headerParameters, query: queryParameters, }, initOverrides, ); return new runtime.JSONApiResponse(response, (jsonValue) => IoK8sApimachineryPkgVersionInfoFromJSON(jsonValue), ); } /** * get the version information for this server */ async getCodeVersion(initOverrides?: RequestInit): Promise { const response = await this.getCodeVersionRaw(initOverrides); return await response.value(); } }