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

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

export function DtoAttachBastionRequestFromJSON(
  json: any,
): DtoAttachBastionRequest {
  return DtoAttachBastionRequestFromJSONTyped(json, false);
}

export function DtoAttachBastionRequestFromJSONTyped(
  json: any,
  ignoreDiscriminator: boolean,
): DtoAttachBastionRequest {
  if (json == null) {
    return json;
  }
  return {
    server_id: json["server_id"] == null ? undefined : json["server_id"],
  };
}

export function DtoAttachBastionRequestToJSON(
  json: any,
): DtoAttachBastionRequest {
  return DtoAttachBastionRequestToJSONTyped(json, false);
}

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

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