@codingame/kubevirt-api
Version:
kubevirt OpenAPI automation for TypeScript
39 lines • 1.14 kB
JavaScript
/* tslint:disable */
/* eslint-disable */
/**
* Kubernetes
* No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)
*
* The version of the OpenAPI document: unversioned
*
*
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
* https://openapi-generator.tech
* Do not edit the class manually.
*/
import { exists } from '../runtime';
export function IoK8sApiCoreV1HostAliasFromJSON(json) {
return IoK8sApiCoreV1HostAliasFromJSONTyped(json, false);
}
export function IoK8sApiCoreV1HostAliasFromJSONTyped(json, _ignoreDiscriminator) {
if (json === undefined || json === null) {
return json;
}
return {
hostnames: !exists(json, 'hostnames') ? undefined : json['hostnames'],
ip: json['ip'],
};
}
export function IoK8sApiCoreV1HostAliasToJSON(value) {
if (value === undefined) {
return undefined;
}
if (value === null) {
return null;
}
return {
hostnames: value.hostnames,
ip: value.ip,
};
}
//# sourceMappingURL=IoK8sApiCoreV1HostAlias.js.map