/* 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 { V1ClockOffsetUTC, V1ClockOffsetUTCFromJSON, V1ClockOffsetUTCToJSON, V1Timer, V1TimerFromJSON, V1TimerToJSON, } from './'; /** * Represents the clock and timers of a vmi. * @export * @interface V1Clock */ export interface V1Clock { /** * * @type {V1Timer} * @memberof V1Clock */ timer?: V1Timer; /** * Timezone sets the guest clock to the specified timezone. Zone name follows the TZ environment variable format (e.g. 'America/New_York'). * @type {string} * @memberof V1Clock */ timezone?: string; /** * * @type {V1ClockOffsetUTC} * @memberof V1Clock */ utc?: V1ClockOffsetUTC; } export function V1ClockFromJSON(json: any): V1Clock { return V1ClockFromJSONTyped(json, false); } export function V1ClockFromJSONTyped(json: any, _ignoreDiscriminator: boolean): V1Clock { if (json === undefined || json === null) { return json; } return { timer: !exists(json, 'timer') ? undefined : V1TimerFromJSON(json['timer']), timezone: !exists(json, 'timezone') ? undefined : json['timezone'], utc: !exists(json, 'utc') ? undefined : V1ClockOffsetUTCFromJSON(json['utc']), }; } export function V1ClockToJSON(value?: V1Clock | null): any { if (value === undefined) { return undefined; } if (value === null) { return null; } return { timer: V1TimerToJSON(value.timer), timezone: value.timezone, utc: V1ClockOffsetUTCToJSON(value.utc), }; }