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

75 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 DtoAttachServersRequest
*/
export interface DtoAttachServersRequest {
/**
*
* @type {Array<string>}
* @memberof DtoAttachServersRequest
*/
server_ids?: Array<string>;
}
/**
* Check if a given object implements the DtoAttachServersRequest interface.
*/
export function instanceOfDtoAttachServersRequest(
value: object,
): value is DtoAttachServersRequest {
return true;
}
export function DtoAttachServersRequestFromJSON(
json: any,
): DtoAttachServersRequest {
return DtoAttachServersRequestFromJSONTyped(json, false);
}
export function DtoAttachServersRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): DtoAttachServersRequest {
if (json == null) {
return json;
}
return {
server_ids: json["server_ids"] == null ? undefined : json["server_ids"],
};
}
export function DtoAttachServersRequestToJSON(
json: any,
): DtoAttachServersRequest {
return DtoAttachServersRequestToJSONTyped(json, false);
}
export function DtoAttachServersRequestToJSONTyped(
value?: DtoAttachServersRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
server_ids: value["server_ids"],
};
}