mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-14 13:20:05 +01:00
fis: updates to remove Terraform Provider reserved word collisions
Signed-off-by: allanice001 <allanice001@gmail.com>
This commit is contained in:
177
sdk/ts/src/models/DtoServerResponse.ts
Normal file
177
sdk/ts/src/models/DtoServerResponse.ts
Normal file
@@ -0,0 +1,177 @@
|
||||
/* 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.
|
||||
*/
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface DtoServerResponse
|
||||
*/
|
||||
export interface DtoServerResponse {
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoServerResponse
|
||||
*/
|
||||
created_at?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoServerResponse
|
||||
*/
|
||||
hostname?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoServerResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoServerResponse
|
||||
*/
|
||||
organization_id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoServerResponse
|
||||
*/
|
||||
private_ip_address?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoServerResponse
|
||||
*/
|
||||
public_ip_address?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoServerResponse
|
||||
*/
|
||||
role?: DtoServerResponseRoleEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoServerResponse
|
||||
*/
|
||||
ssh_key_id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoServerResponse
|
||||
*/
|
||||
ssh_user?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoServerResponse
|
||||
*/
|
||||
status?: DtoServerResponseStatusEnum;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoServerResponse
|
||||
*/
|
||||
updated_at?: string;
|
||||
}
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const DtoServerResponseRoleEnum = {
|
||||
master: "master",
|
||||
worker: "worker",
|
||||
bastion: "bastion",
|
||||
} as const;
|
||||
export type DtoServerResponseRoleEnum =
|
||||
(typeof DtoServerResponseRoleEnum)[keyof typeof DtoServerResponseRoleEnum];
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const DtoServerResponseStatusEnum = {
|
||||
pending: "pending",
|
||||
provisioning: "provisioning",
|
||||
ready: "ready",
|
||||
failed: "failed",
|
||||
} as const;
|
||||
export type DtoServerResponseStatusEnum =
|
||||
(typeof DtoServerResponseStatusEnum)[keyof typeof DtoServerResponseStatusEnum];
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DtoServerResponse interface.
|
||||
*/
|
||||
export function instanceOfDtoServerResponse(
|
||||
value: object,
|
||||
): value is DtoServerResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function DtoServerResponseFromJSON(json: any): DtoServerResponse {
|
||||
return DtoServerResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DtoServerResponseFromJSONTyped(
|
||||
json: any,
|
||||
ignoreDiscriminator: boolean,
|
||||
): DtoServerResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
created_at: json["created_at"] == null ? undefined : json["created_at"],
|
||||
hostname: json["hostname"] == null ? undefined : json["hostname"],
|
||||
id: json["id"] == null ? undefined : json["id"],
|
||||
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"],
|
||||
role: json["role"] == null ? undefined : json["role"],
|
||||
ssh_key_id: json["ssh_key_id"] == null ? undefined : json["ssh_key_id"],
|
||||
ssh_user: json["ssh_user"] == null ? undefined : json["ssh_user"],
|
||||
status: json["status"] == null ? undefined : json["status"],
|
||||
updated_at: json["updated_at"] == null ? undefined : json["updated_at"],
|
||||
};
|
||||
}
|
||||
|
||||
export function DtoServerResponseToJSON(json: any): DtoServerResponse {
|
||||
return DtoServerResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DtoServerResponseToJSONTyped(
|
||||
value?: DtoServerResponse | null,
|
||||
ignoreDiscriminator: boolean = false,
|
||||
): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
created_at: value["created_at"],
|
||||
hostname: value["hostname"],
|
||||
id: value["id"],
|
||||
organization_id: value["organization_id"],
|
||||
private_ip_address: value["private_ip_address"],
|
||||
public_ip_address: value["public_ip_address"],
|
||||
role: value["role"],
|
||||
ssh_key_id: value["ssh_key_id"],
|
||||
ssh_user: value["ssh_user"],
|
||||
status: value["status"],
|
||||
updated_at: value["updated_at"],
|
||||
};
|
||||
}
|
||||
Reference in New Issue
Block a user