/* tslint:disable */ /* eslint-disable */ /** * KubeVirt API * This is KubeVirt API an add-on for Kubernetes. * * 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'; import { K8sIoApimachineryPkgApisMetaV1ObjectMeta, K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON, K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON, V1beta1VirtualMachineSnapshotContentSpec, V1beta1VirtualMachineSnapshotContentSpecFromJSON, V1beta1VirtualMachineSnapshotContentSpecToJSON, V1beta1VirtualMachineSnapshotContentStatus, V1beta1VirtualMachineSnapshotContentStatusFromJSON, V1beta1VirtualMachineSnapshotContentStatusToJSON, } from './'; /** * VirtualMachineSnapshotContent contains the snapshot data * @export * @interface V1beta1VirtualMachineSnapshotContent */ export interface V1beta1VirtualMachineSnapshotContent { /** * APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources * @type {string} * @memberof V1beta1VirtualMachineSnapshotContent */ apiVersion?: string; /** * Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds * @type {string} * @memberof V1beta1VirtualMachineSnapshotContent */ kind?: string; /** * * @type {K8sIoApimachineryPkgApisMetaV1ObjectMeta} * @memberof V1beta1VirtualMachineSnapshotContent */ metadata?: K8sIoApimachineryPkgApisMetaV1ObjectMeta; /** * * @type {V1beta1VirtualMachineSnapshotContentSpec} * @memberof V1beta1VirtualMachineSnapshotContent */ spec: V1beta1VirtualMachineSnapshotContentSpec; /** * * @type {V1beta1VirtualMachineSnapshotContentStatus} * @memberof V1beta1VirtualMachineSnapshotContent */ status?: V1beta1VirtualMachineSnapshotContentStatus; } export function V1beta1VirtualMachineSnapshotContentFromJSON( json: any, ): V1beta1VirtualMachineSnapshotContent { return V1beta1VirtualMachineSnapshotContentFromJSONTyped(json, false); } export function V1beta1VirtualMachineSnapshotContentFromJSONTyped( json: any, _ignoreDiscriminator: boolean, ): V1beta1VirtualMachineSnapshotContent { if (json === undefined || json === null) { return json; } return { apiVersion: !exists(json, 'apiVersion') ? undefined : json['apiVersion'], kind: !exists(json, 'kind') ? undefined : json['kind'], metadata: !exists(json, 'metadata') ? undefined : K8sIoApimachineryPkgApisMetaV1ObjectMetaFromJSON(json['metadata']), spec: V1beta1VirtualMachineSnapshotContentSpecFromJSON(json['spec']), status: !exists(json, 'status') ? undefined : V1beta1VirtualMachineSnapshotContentStatusFromJSON(json['status']), }; } export function V1beta1VirtualMachineSnapshotContentToJSON( value?: V1beta1VirtualMachineSnapshotContent | null, ): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { apiVersion: value.apiVersion, kind: value.kind, metadata: K8sIoApimachineryPkgApisMetaV1ObjectMetaToJSON(value.metadata), spec: V1beta1VirtualMachineSnapshotContentSpecToJSON(value.spec), status: V1beta1VirtualMachineSnapshotContentStatusToJSON(value.status), }; }