mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 21:00:06 +01:00
136 lines
3.1 KiB
TypeScript
136 lines
3.1 KiB
TypeScript
/* 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 DtoLoadBalancerResponse
|
|
*/
|
|
export interface DtoLoadBalancerResponse {
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof DtoLoadBalancerResponse
|
|
*/
|
|
created_at?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof DtoLoadBalancerResponse
|
|
*/
|
|
id?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof DtoLoadBalancerResponse
|
|
*/
|
|
kind?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof DtoLoadBalancerResponse
|
|
*/
|
|
name?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof DtoLoadBalancerResponse
|
|
*/
|
|
organization_id?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof DtoLoadBalancerResponse
|
|
*/
|
|
private_ip_address?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof DtoLoadBalancerResponse
|
|
*/
|
|
public_ip_address?: string;
|
|
/**
|
|
*
|
|
* @type {string}
|
|
* @memberof DtoLoadBalancerResponse
|
|
*/
|
|
updated_at?: string;
|
|
}
|
|
|
|
/**
|
|
* Check if a given object implements the DtoLoadBalancerResponse interface.
|
|
*/
|
|
export function instanceOfDtoLoadBalancerResponse(
|
|
value: object,
|
|
): value is DtoLoadBalancerResponse {
|
|
return true;
|
|
}
|
|
|
|
export function DtoLoadBalancerResponseFromJSON(
|
|
json: any,
|
|
): DtoLoadBalancerResponse {
|
|
return DtoLoadBalancerResponseFromJSONTyped(json, false);
|
|
}
|
|
|
|
export function DtoLoadBalancerResponseFromJSONTyped(
|
|
json: any,
|
|
ignoreDiscriminator: boolean,
|
|
): DtoLoadBalancerResponse {
|
|
if (json == null) {
|
|
return json;
|
|
}
|
|
return {
|
|
created_at: json["created_at"] == null ? undefined : json["created_at"],
|
|
id: json["id"] == null ? undefined : json["id"],
|
|
kind: json["kind"] == null ? undefined : json["kind"],
|
|
name: json["name"] == null ? undefined : json["name"],
|
|
organization_id:
|
|
json["organization_id"] == null ? undefined : json["organization_id"],
|
|
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"],
|
|
updated_at: json["updated_at"] == null ? undefined : json["updated_at"],
|
|
};
|
|
}
|
|
|
|
export function DtoLoadBalancerResponseToJSON(
|
|
json: any,
|
|
): DtoLoadBalancerResponse {
|
|
return DtoLoadBalancerResponseToJSONTyped(json, false);
|
|
}
|
|
|
|
export function DtoLoadBalancerResponseToJSONTyped(
|
|
value?: DtoLoadBalancerResponse | null,
|
|
ignoreDiscriminator: boolean = false,
|
|
): any {
|
|
if (value == null) {
|
|
return value;
|
|
}
|
|
|
|
return {
|
|
created_at: value["created_at"],
|
|
id: value["id"],
|
|
kind: value["kind"],
|
|
name: value["name"],
|
|
organization_id: value["organization_id"],
|
|
private_ip_address: value["private_ip_address"],
|
|
public_ip_address: value["public_ip_address"],
|
|
updated_at: value["updated_at"],
|
|
};
|
|
}
|