UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

45 lines 1.5 kB
/* 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 IoK8sApiCoreV1ContainerPortFromJSON(json) { return IoK8sApiCoreV1ContainerPortFromJSONTyped(json, false); } export function IoK8sApiCoreV1ContainerPortFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { containerPort: json['containerPort'], hostIP: !exists(json, 'hostIP') ? undefined : json['hostIP'], hostPort: !exists(json, 'hostPort') ? undefined : json['hostPort'], name: !exists(json, 'name') ? undefined : json['name'], protocol: !exists(json, 'protocol') ? undefined : json['protocol'], }; } export function IoK8sApiCoreV1ContainerPortToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { containerPort: value.containerPort, hostIP: value.hostIP, hostPort: value.hostPort, name: value.name, protocol: value.protocol, }; } //# sourceMappingURL=IoK8sApiCoreV1ContainerPort.js.map