/* 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";
/**
 *
 * @export
 * @interface DtoAttachNodePoolRequest
 */
export interface DtoAttachNodePoolRequest {
  /**
   *
   * @type {string}
   * @memberof DtoAttachNodePoolRequest
   */
  node_pool_id?: string;
}

/**
 * Check if a given object implements the DtoAttachNodePoolRequest interface.
 */
export function instanceOfDtoAttachNodePoolRequest(
  value: object,
): value is DtoAttachNodePoolRequest {
  return true;
}

export function DtoAttachNodePoolRequestFromJSON(
  json: any,
): DtoAttachNodePoolRequest {
  return DtoAttachNodePoolRequestFromJSONTyped(json, false);
}

export function DtoAttachNodePoolRequestFromJSONTyped(
  json: any,
  ignoreDiscriminator: boolean,
): DtoAttachNodePoolRequest {
  if (json == null) {
    return json;
  }
  return {
    node_pool_id:
      json["node_pool_id"] == null ? undefined : json["node_pool_id"],
  };
}

export function DtoAttachNodePoolRequestToJSON(
  json: any,
): DtoAttachNodePoolRequest {
  return DtoAttachNodePoolRequestToJSONTyped(json, false);
}

export function DtoAttachNodePoolRequestToJSONTyped(
  value?: DtoAttachNodePoolRequest | null,
  ignoreDiscriminator: boolean = false,
): any {
  if (value == null) {
    return value;
  }

  return {
    node_pool_id: value["node_pool_id"],
  };
}
