Files
autoglue/sdk/ts/src/models/DtoAttachNodePoolRequest.ts
2025-12-08 17:04:10 +00:00

76 lines
1.6 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 DtoAttachNodePoolRequest
*/
export interface DtoAttachNodePoolRequest {
/**
*
* @type {string}
* @memberof DtoAttachNodePoolRequest
*/
node_pool_id?: string;
}
/**
* Check if a given object implements the DtoAttachNodePoolRequest interface.
*/
export function instanceOfDtoAttachNodePoolRequest(
value: object,
): value is DtoAttachNodePoolRequest {
return true;
}
export function DtoAttachNodePoolRequestFromJSON(
json: any,
): DtoAttachNodePoolRequest {
return DtoAttachNodePoolRequestFromJSONTyped(json, false);
}
export function DtoAttachNodePoolRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): DtoAttachNodePoolRequest {
if (json == null) {
return json;
}
return {
node_pool_id:
json["node_pool_id"] == null ? undefined : json["node_pool_id"],
};
}
export function DtoAttachNodePoolRequestToJSON(
json: any,
): DtoAttachNodePoolRequest {
return DtoAttachNodePoolRequestToJSONTyped(json, false);
}
export function DtoAttachNodePoolRequestToJSONTyped(
value?: DtoAttachNodePoolRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
node_pool_id: value["node_pool_id"],
};
}