mirror of
https://github.com/GlueOps/autoglue.git
synced 2026-02-13 21:00:06 +01:00
feat: complete node pool api, sdk and ui
Signed-off-by: allanice001 <allanice001@gmail.com>
This commit is contained in:
156
ui/src/sdk/models/DtoNodePoolResponse.ts
Normal file
156
ui/src/sdk/models/DtoNodePoolResponse.ts
Normal file
@@ -0,0 +1,156 @@
|
||||
/* tslint:disable */
|
||||
/* eslint-disable */
|
||||
/**
|
||||
* AutoGlue API
|
||||
* API for managing K3s clusters across cloud providers
|
||||
*
|
||||
* The version of the OpenAPI document: 1.0
|
||||
*
|
||||
*
|
||||
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
||||
* https://openapi-generator.tech
|
||||
* Do not edit the class manually.
|
||||
*/
|
||||
|
||||
import type { DtoTaintResponse } from "./DtoTaintResponse"
|
||||
import { DtoTaintResponseFromJSON, DtoTaintResponseToJSON, } from "./DtoTaintResponse"
|
||||
import type { DtoLabelResponse } from "./DtoLabelResponse"
|
||||
import { DtoLabelResponseFromJSON, DtoLabelResponseToJSON, } from "./DtoLabelResponse"
|
||||
import type { DtoServerResponse } from "./DtoServerResponse"
|
||||
import { DtoServerResponseFromJSON, DtoServerResponseToJSON, } from "./DtoServerResponse"
|
||||
import type { DtoAnnotationResponse } from "./DtoAnnotationResponse"
|
||||
import { DtoAnnotationResponseFromJSON, DtoAnnotationResponseToJSON, } from "./DtoAnnotationResponse"
|
||||
|
||||
/**
|
||||
*
|
||||
* @export
|
||||
* @interface DtoNodePoolResponse
|
||||
*/
|
||||
export interface DtoNodePoolResponse {
|
||||
/**
|
||||
*
|
||||
* @type {Array<DtoAnnotationResponse>}
|
||||
* @memberof DtoNodePoolResponse
|
||||
*/
|
||||
annotations?: Array<DtoAnnotationResponse>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoNodePoolResponse
|
||||
*/
|
||||
created_at?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoNodePoolResponse
|
||||
*/
|
||||
id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {Array<DtoLabelResponse>}
|
||||
* @memberof DtoNodePoolResponse
|
||||
*/
|
||||
labels?: Array<DtoLabelResponse>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoNodePoolResponse
|
||||
*/
|
||||
name?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoNodePoolResponse
|
||||
*/
|
||||
organization_id?: string;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoNodePoolResponse
|
||||
*/
|
||||
role?: DtoNodePoolResponseRoleEnum;
|
||||
/**
|
||||
*
|
||||
* @type {Array<DtoServerResponse>}
|
||||
* @memberof DtoNodePoolResponse
|
||||
*/
|
||||
servers?: Array<DtoServerResponse>;
|
||||
/**
|
||||
*
|
||||
* @type {Array<DtoTaintResponse>}
|
||||
* @memberof DtoNodePoolResponse
|
||||
*/
|
||||
taints?: Array<DtoTaintResponse>;
|
||||
/**
|
||||
*
|
||||
* @type {string}
|
||||
* @memberof DtoNodePoolResponse
|
||||
*/
|
||||
updated_at?: string;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* @export
|
||||
*/
|
||||
export const DtoNodePoolResponseRoleEnum = {
|
||||
master: 'master',
|
||||
worker: 'worker'
|
||||
} as const;
|
||||
export type DtoNodePoolResponseRoleEnum = typeof DtoNodePoolResponseRoleEnum[keyof typeof DtoNodePoolResponseRoleEnum];
|
||||
|
||||
|
||||
/**
|
||||
* Check if a given object implements the DtoNodePoolResponse interface.
|
||||
*/
|
||||
export function instanceOfDtoNodePoolResponse(value: object): value is DtoNodePoolResponse {
|
||||
return true;
|
||||
}
|
||||
|
||||
export function DtoNodePoolResponseFromJSON(json: any): DtoNodePoolResponse {
|
||||
return DtoNodePoolResponseFromJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DtoNodePoolResponseFromJSONTyped(json: any, ignoreDiscriminator: boolean): DtoNodePoolResponse {
|
||||
if (json == null) {
|
||||
return json;
|
||||
}
|
||||
return {
|
||||
|
||||
'annotations': json['annotations'] == null ? undefined : ((json['annotations'] as Array<any>).map(DtoAnnotationResponseFromJSON)),
|
||||
'created_at': json['created_at'] == null ? undefined : json['created_at'],
|
||||
'id': json['id'] == null ? undefined : json['id'],
|
||||
'labels': json['labels'] == null ? undefined : ((json['labels'] as Array<any>).map(DtoLabelResponseFromJSON)),
|
||||
'name': json['name'] == null ? undefined : json['name'],
|
||||
'organization_id': json['organization_id'] == null ? undefined : json['organization_id'],
|
||||
'role': json['role'] == null ? undefined : json['role'],
|
||||
'servers': json['servers'] == null ? undefined : ((json['servers'] as Array<any>).map(DtoServerResponseFromJSON)),
|
||||
'taints': json['taints'] == null ? undefined : ((json['taints'] as Array<any>).map(DtoTaintResponseFromJSON)),
|
||||
'updated_at': json['updated_at'] == null ? undefined : json['updated_at'],
|
||||
};
|
||||
}
|
||||
|
||||
export function DtoNodePoolResponseToJSON(json: any): DtoNodePoolResponse {
|
||||
return DtoNodePoolResponseToJSONTyped(json, false);
|
||||
}
|
||||
|
||||
export function DtoNodePoolResponseToJSONTyped(value?: DtoNodePoolResponse | null, ignoreDiscriminator: boolean = false): any {
|
||||
if (value == null) {
|
||||
return value;
|
||||
}
|
||||
|
||||
return {
|
||||
|
||||
'annotations': value['annotations'] == null ? undefined : ((value['annotations'] as Array<any>).map(DtoAnnotationResponseToJSON)),
|
||||
'created_at': value['created_at'],
|
||||
'id': value['id'],
|
||||
'labels': value['labels'] == null ? undefined : ((value['labels'] as Array<any>).map(DtoLabelResponseToJSON)),
|
||||
'name': value['name'],
|
||||
'organization_id': value['organization_id'],
|
||||
'role': value['role'],
|
||||
'servers': value['servers'] == null ? undefined : ((value['servers'] as Array<any>).map(DtoServerResponseToJSON)),
|
||||
'taints': value['taints'] == null ? undefined : ((value['taints'] as Array<any>).map(DtoTaintResponseToJSON)),
|
||||
'updated_at': value['updated_at'],
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user