/* 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 DtoCreateLoadBalancerRequest
 */
export interface DtoCreateLoadBalancerRequest {
  /**
   *
   * @type {string}
   * @memberof DtoCreateLoadBalancerRequest
   */
  kind?: DtoCreateLoadBalancerRequestKindEnum;
  /**
   *
   * @type {string}
   * @memberof DtoCreateLoadBalancerRequest
   */
  name?: string;
  /**
   *
   * @type {string}
   * @memberof DtoCreateLoadBalancerRequest
   */
  private_ip_address?: string;
  /**
   *
   * @type {string}
   * @memberof DtoCreateLoadBalancerRequest
   */
  public_ip_address?: string;
}

/**
 * @export
 */
export const DtoCreateLoadBalancerRequestKindEnum = {
  glueops: "glueops",
  public: "public",
} as const;
export type DtoCreateLoadBalancerRequestKindEnum =
  (typeof DtoCreateLoadBalancerRequestKindEnum)[keyof typeof DtoCreateLoadBalancerRequestKindEnum];

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

export function DtoCreateLoadBalancerRequestFromJSON(
  json: any,
): DtoCreateLoadBalancerRequest {
  return DtoCreateLoadBalancerRequestFromJSONTyped(json, false);
}

export function DtoCreateLoadBalancerRequestFromJSONTyped(
  json: any,
  ignoreDiscriminator: boolean,
): DtoCreateLoadBalancerRequest {
  if (json == null) {
    return json;
  }
  return {
    kind: json["kind"] == null ? undefined : json["kind"],
    name: json["name"] == null ? undefined : json["name"],
    private_ip_address:
      json["private_ip_address"] == null
        ? undefined
        : json["private_ip_address"],
    public_ip_address:
      json["public_ip_address"] == null ? undefined : json["public_ip_address"],
  };
}

export function DtoCreateLoadBalancerRequestToJSON(
  json: any,
): DtoCreateLoadBalancerRequest {
  return DtoCreateLoadBalancerRequestToJSONTyped(json, false);
}

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

  return {
    kind: value["kind"],
    name: value["name"],
    private_ip_address: value["private_ip_address"],
    public_ip_address: value["public_ip_address"],
  };
}
