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

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

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

export function DtoUpdateLoadBalancerRequestFromJSON(
  json: any,
): DtoUpdateLoadBalancerRequest {
  return DtoUpdateLoadBalancerRequestFromJSONTyped(json, false);
}

export function DtoUpdateLoadBalancerRequestFromJSONTyped(
  json: any,
  ignoreDiscriminator: boolean,
): DtoUpdateLoadBalancerRequest {
  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 DtoUpdateLoadBalancerRequestToJSON(
  json: any,
): DtoUpdateLoadBalancerRequest {
  return DtoUpdateLoadBalancerRequestToJSONTyped(json, false);
}

export function DtoUpdateLoadBalancerRequestToJSONTyped(
  value?: DtoUpdateLoadBalancerRequest | 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"],
  };
}
