UNPKG

@codingame/kubevirt-api

Version:

kubevirt OpenAPI automation for TypeScript

49 lines 1.78 kB
/* tslint:disable */ /* eslint-disable */ /** * KubeVirt Containerized Data Importer API * Containerized Data Importer for KubeVirt. * * The version of the OpenAPI document: 1.0.0 * Contact: kubevirt-dev@googlegroups.com * * 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 V1ManagedFieldsEntryFromJSON(json) { return V1ManagedFieldsEntryFromJSONTyped(json, false); } export function V1ManagedFieldsEntryFromJSONTyped(json, _ignoreDiscriminator) { if (json === undefined || json === null) { return json; } return { apiVersion: !exists(json, 'apiVersion') ? undefined : json['apiVersion'], fieldsType: !exists(json, 'fieldsType') ? undefined : json['fieldsType'], fieldsV1: !exists(json, 'fieldsV1') ? undefined : json['fieldsV1'], manager: !exists(json, 'manager') ? undefined : json['manager'], operation: !exists(json, 'operation') ? undefined : json['operation'], subresource: !exists(json, 'subresource') ? undefined : json['subresource'], time: !exists(json, 'time') ? undefined : json['time'], }; } export function V1ManagedFieldsEntryToJSON(value) { if (value === undefined) { return undefined; } if (value === null) { return null; } return { apiVersion: value.apiVersion, fieldsType: value.fieldsType, fieldsV1: value.fieldsV1, manager: value.manager, operation: value.operation, subresource: value.subresource, time: value.time === undefined ? undefined : value.time, }; } //# sourceMappingURL=V1ManagedFieldsEntry.js.map