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

75 lines
1.7 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 DtoAttachCaptainDomainRequest
*/
export interface DtoAttachCaptainDomainRequest {
/**
*
* @type {string}
* @memberof DtoAttachCaptainDomainRequest
*/
domain_id?: string;
}
/**
* Check if a given object implements the DtoAttachCaptainDomainRequest interface.
*/
export function instanceOfDtoAttachCaptainDomainRequest(
value: object,
): value is DtoAttachCaptainDomainRequest {
return true;
}
export function DtoAttachCaptainDomainRequestFromJSON(
json: any,
): DtoAttachCaptainDomainRequest {
return DtoAttachCaptainDomainRequestFromJSONTyped(json, false);
}
export function DtoAttachCaptainDomainRequestFromJSONTyped(
json: any,
ignoreDiscriminator: boolean,
): DtoAttachCaptainDomainRequest {
if (json == null) {
return json;
}
return {
domain_id: json["domain_id"] == null ? undefined : json["domain_id"],
};
}
export function DtoAttachCaptainDomainRequestToJSON(
json: any,
): DtoAttachCaptainDomainRequest {
return DtoAttachCaptainDomainRequestToJSONTyped(json, false);
}
export function DtoAttachCaptainDomainRequestToJSONTyped(
value?: DtoAttachCaptainDomainRequest | null,
ignoreDiscriminator: boolean = false,
): any {
if (value == null) {
return value;
}
return {
domain_id: value["domain_id"],
};
}