/* 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 { mapValues } from "../runtime"; import type { DtoTaintResponse } from "./DtoTaintResponse"; import { DtoTaintResponseFromJSON, DtoTaintResponseFromJSONTyped, DtoTaintResponseToJSON, DtoTaintResponseToJSONTyped, } from "./DtoTaintResponse"; import type { DtoLabelResponse } from "./DtoLabelResponse"; import { DtoLabelResponseFromJSON, DtoLabelResponseFromJSONTyped, DtoLabelResponseToJSON, DtoLabelResponseToJSONTyped, } from "./DtoLabelResponse"; import type { DtoServerResponse } from "./DtoServerResponse"; import { DtoServerResponseFromJSON, DtoServerResponseFromJSONTyped, DtoServerResponseToJSON, DtoServerResponseToJSONTyped, } from "./DtoServerResponse"; import type { DtoAnnotationResponse } from "./DtoAnnotationResponse"; import { DtoAnnotationResponseFromJSON, DtoAnnotationResponseFromJSONTyped, DtoAnnotationResponseToJSON, DtoAnnotationResponseToJSONTyped, } from "./DtoAnnotationResponse"; /** * * @export * @interface DtoNodePoolResponse */ export interface DtoNodePoolResponse { /** * * @type {Array} * @memberof DtoNodePoolResponse */ annotations?: Array; /** * * @type {string} * @memberof DtoNodePoolResponse */ created_at?: string; /** * * @type {string} * @memberof DtoNodePoolResponse */ id?: string; /** * * @type {Array} * @memberof DtoNodePoolResponse */ labels?: Array; /** * * @type {string} * @memberof DtoNodePoolResponse */ name?: string; /** * * @type {string} * @memberof DtoNodePoolResponse */ organization_id?: string; /** * * @type {string} * @memberof DtoNodePoolResponse */ role?: DtoNodePoolResponseRoleEnum; /** * * @type {Array} * @memberof DtoNodePoolResponse */ servers?: Array; /** * * @type {Array} * @memberof DtoNodePoolResponse */ taints?: Array; /** * * @type {string} * @memberof DtoNodePoolResponse */ updated_at?: string; } /** * @export */ export const DtoNodePoolResponseRoleEnum = { master: "master", worker: "worker", } as const; export type DtoNodePoolResponseRoleEnum = (typeof DtoNodePoolResponseRoleEnum)[keyof typeof DtoNodePoolResponseRoleEnum]; /** * Check if a given object implements the DtoNodePoolResponse interface. */ export function instanceOfDtoNodePoolResponse( value: object, ): value is DtoNodePoolResponse { return true; } export function DtoNodePoolResponseFromJSON(json: any): DtoNodePoolResponse { return DtoNodePoolResponseFromJSONTyped(json, false); } export function DtoNodePoolResponseFromJSONTyped( json: any, ignoreDiscriminator: boolean, ): DtoNodePoolResponse { if (json == null) { return json; } return { annotations: json["annotations"] == null ? undefined : (json["annotations"] as Array).map( DtoAnnotationResponseFromJSON, ), created_at: json["created_at"] == null ? undefined : json["created_at"], id: json["id"] == null ? undefined : json["id"], labels: json["labels"] == null ? undefined : (json["labels"] as Array).map(DtoLabelResponseFromJSON), name: json["name"] == null ? undefined : json["name"], organization_id: json["organization_id"] == null ? undefined : json["organization_id"], role: json["role"] == null ? undefined : json["role"], servers: json["servers"] == null ? undefined : (json["servers"] as Array).map(DtoServerResponseFromJSON), taints: json["taints"] == null ? undefined : (json["taints"] as Array).map(DtoTaintResponseFromJSON), updated_at: json["updated_at"] == null ? undefined : json["updated_at"], }; } export function DtoNodePoolResponseToJSON(json: any): DtoNodePoolResponse { return DtoNodePoolResponseToJSONTyped(json, false); } export function DtoNodePoolResponseToJSONTyped( value?: DtoNodePoolResponse | null, ignoreDiscriminator: boolean = false, ): any { if (value == null) { return value; } return { annotations: value["annotations"] == null ? undefined : (value["annotations"] as Array).map(DtoAnnotationResponseToJSON), created_at: value["created_at"], id: value["id"], labels: value["labels"] == null ? undefined : (value["labels"] as Array).map(DtoLabelResponseToJSON), name: value["name"], organization_id: value["organization_id"], role: value["role"], servers: value["servers"] == null ? undefined : (value["servers"] as Array).map(DtoServerResponseToJSON), taints: value["taints"] == null ? undefined : (value["taints"] as Array).map(DtoTaintResponseToJSON), updated_at: value["updated_at"], }; }