<gh_stars>10-100
# coding: utf-8

"""
    KubeVirt API

    This is KubeVirt API an add-on for Kubernetes.

    OpenAPI spec version: 1.0.0
    Contact: <EMAIL>
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from pprint import pformat
from six import iteritems
import re


class V1Timer(object):
    """
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    """


    """
    Attributes:
      swagger_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    swagger_types = {
        'hpet': 'V1HPETTimer',
        'hyperv': 'V1HypervTimer',
        'kvm': 'V1KVMTimer',
        'pit': 'V1PITTimer',
        'rtc': 'V1RTCTimer'
    }

    attribute_map = {
        'hpet': 'hpet',
        'hyperv': 'hyperv',
        'kvm': 'kvm',
        'pit': 'pit',
        'rtc': 'rtc'
    }

    def __init__(self, hpet=None, hyperv=None, kvm=None, pit=None, rtc=None):
        """
        V1Timer - a model defined in Swagger
        """

        self._hpet = None
        self._hyperv = None
        self._kvm = None
        self._pit = None
        self._rtc = None

        if hpet is not None:
          self.hpet = hpet
        if hyperv is not None:
          self.hyperv = hyperv
        if kvm is not None:
          self.kvm = kvm
        if pit is not None:
          self.pit = pit
        if rtc is not None:
          self.rtc = rtc

    @property
    def hpet(self):
        """
        Gets the hpet of this V1Timer.
        HPET (High Precision Event Timer) - multiple timers with periodic interrupts.

        :return: The hpet of this V1Timer.
        :rtype: V1HPETTimer
        """
        return self._hpet

    @hpet.setter
    def hpet(self, hpet):
        """
        Sets the hpet of this V1Timer.
        HPET (High Precision Event Timer) - multiple timers with periodic interrupts.

        :param hpet: The hpet of this V1Timer.
        :type: V1HPETTimer
        """

        self._hpet = hpet

    @property
    def hyperv(self):
        """
        Gets the hyperv of this V1Timer.
        Hyperv (Hypervclock) - lets guests read the host’s wall clock time (paravirtualized). For windows guests.

        :return: The hyperv of this V1Timer.
        :rtype: V1HypervTimer
        """
        return self._hyperv

    @hyperv.setter
    def hyperv(self, hyperv):
        """
        Sets the hyperv of this V1Timer.
        Hyperv (Hypervclock) - lets guests read the host’s wall clock time (paravirtualized). For windows guests.

        :param hyperv: The hyperv of this V1Timer.
        :type: V1HypervTimer
        """

        self._hyperv = hyperv

    @property
    def kvm(self):
        """
        Gets the kvm of this V1Timer.
        KVM  (KVM clock) - lets guests read the host’s wall clock time (paravirtualized). For linux guests.

        :return: The kvm of this V1Timer.
        :rtype: V1KVMTimer
        """
        return self._kvm

    @kvm.setter
    def kvm(self, kvm):
        """
        Sets the kvm of this V1Timer.
        KVM  (KVM clock) - lets guests read the host’s wall clock time (paravirtualized). For linux guests.

        :param kvm: The kvm of this V1Timer.
        :type: V1KVMTimer
        """

        self._kvm = kvm

    @property
    def pit(self):
        """
        Gets the pit of this V1Timer.
        PIT (Programmable Interval Timer) - a timer with periodic interrupts.

        :return: The pit of this V1Timer.
        :rtype: V1PITTimer
        """
        return self._pit

    @pit.setter
    def pit(self, pit):
        """
        Sets the pit of this V1Timer.
        PIT (Programmable Interval Timer) - a timer with periodic interrupts.

        :param pit: The pit of this V1Timer.
        :type: V1PITTimer
        """

        self._pit = pit

    @property
    def rtc(self):
        """
        Gets the rtc of this V1Timer.
        RTC (Real Time Clock) - a continuously running timer with periodic interrupts.

        :return: The rtc of this V1Timer.
        :rtype: V1RTCTimer
        """
        return self._rtc

    @rtc.setter
    def rtc(self, rtc):
        """
        Sets the rtc of this V1Timer.
        RTC (Real Time Clock) - a continuously running timer with periodic interrupts.

        :param rtc: The rtc of this V1Timer.
        :type: V1RTCTimer
        """

        self._rtc = rtc

    def to_dict(self):
        """
        Returns the model properties as a dict
        """
        result = {}

        for attr, _ in iteritems(self.swagger_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value

        return result

    def to_str(self):
        """
        Returns the string representation of the model
        """
        return pformat(self.to_dict())

    def __repr__(self):
        """
        For `print` and `pprint`
        """
        return self.to_str()

    def __eq__(self, other):
        """
        Returns true if both objects are equal
        """
        if not isinstance(other, V1Timer):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """
        Returns true if both objects are not equal
        """
        return not self == other

# coding: utf-8

"""
    KubeVirt API

    This is KubeVirt API an add-on for Kubernetes.

    OpenAPI spec version: 1.0.0
    Contact: <EMAIL>
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


from pprint import pformat
from six import iteritems
import re


class V1Timer(object):
    """
    NOTE: This class is auto generated by the swagger code generator program.
    Do not edit the class manually.
    """


    """
    Attributes:
      swagger_types (dict): The key is attribute name
                            and the value is attribute type.
      attribute_map (dict): The key is attribute name
                            and the value is json key in definition.
    """
    swagger_types = {
        'hpet': 'V1HPETTimer',
        'hyperv': 'V1HypervTimer',
        'kvm': 'V1KVMTimer',
        'pit': 'V1PITTimer',
        'rtc': 'V1RTCTimer'
    }

    attribute_map = {
        'hpet': 'hpet',
        'hyperv': 'hyperv',
        'kvm': 'kvm',
        'pit': 'pit',
        'rtc': 'rtc'
    }

    def __init__(self, hpet=None, hyperv=None, kvm=None, pit=None, rtc=None):
        """
        V1Timer - a model defined in Swagger
        """

        self._hpet = None
        self._hyperv = None
        self._kvm = None
        self._pit = None
        self._rtc = None

        if hpet is not None:
          self.hpet = hpet
        if hyperv is not None:
          self.hyperv = hyperv
        if kvm is not None:
          self.kvm = kvm
        if pit is not None:
          self.pit = pit
        if rtc is not None:
          self.rtc = rtc

    @property
    def hpet(self):
        """
        Gets the hpet of this V1Timer.
        HPET (High Precision Event Timer) - multiple timers with periodic interrupts.

        :return: The hpet of this V1Timer.
        :rtype: V1HPETTimer
        """
        return self._hpet

    @hpet.setter
    def hpet(self, hpet):
        """
        Sets the hpet of this V1Timer.
        HPET (High Precision Event Timer) - multiple timers with periodic interrupts.

        :param hpet: The hpet of this V1Timer.
        :type: V1HPETTimer
        """

        self._hpet = hpet

    @property
    def hyperv(self):
        """
        Gets the hyperv of this V1Timer.
        Hyperv (Hypervclock) - lets guests read the host’s wall clock time (paravirtualized). For windows guests.

        :return: The hyperv of this V1Timer.
        :rtype: V1HypervTimer
        """
        return self._hyperv

    @hyperv.setter
    def hyperv(self, hyperv):
        """
        Sets the hyperv of this V1Timer.
        Hyperv (Hypervclock) - lets guests read the host’s wall clock time (paravirtualized). For windows guests.

        :param hyperv: The hyperv of this V1Timer.
        :type: V1HypervTimer
        """

        self._hyperv = hyperv

    @property
    def kvm(self):
        """
        Gets the kvm of this V1Timer.
        KVM  (KVM clock) - lets guests read the host’s wall clock time (paravirtualized). For linux guests.

        :return: The kvm of this V1Timer.
        :rtype: V1KVMTimer
        """
        return self._kvm

    @kvm.setter
    def kvm(self, kvm):
        """
        Sets the kvm of this V1Timer.
        KVM  (KVM clock) - lets guests read the host’s wall clock time (paravirtualized). For linux guests.

        :param kvm: The kvm of this V1Timer.
        :type: V1KVMTimer
        """

        self._kvm = kvm

    @property
    def pit(self):
        """
        Gets the pit of this V1Timer.
        PIT (Programmable Interval Timer) - a timer with periodic interrupts.

        :return: The pit of this V1Timer.
        :rtype: V1PITTimer
        """
        return self._pit

    @pit.setter
    def pit(self, pit):
        """
        Sets the pit of this V1Timer.
        PIT (Programmable Interval Timer) - a timer with periodic interrupts.

        :param pit: The pit of this V1Timer.
        :type: V1PITTimer
        """

        self._pit = pit

    @property
    def rtc(self):
        """
        Gets the rtc of this V1Timer.
        RTC (Real Time Clock) - a continuously running timer with periodic interrupts.

        :return: The rtc of this V1Timer.
        :rtype: V1RTCTimer
        """
        return self._rtc

    @rtc.setter
    def rtc(self, rtc):
        """
        Sets the rtc of this V1Timer.
        RTC (Real Time Clock) - a continuously running timer with periodic interrupts.

        :param rtc: The rtc of this V1Timer.
        :type: V1RTCTimer
        """

        self._rtc = rtc

    def to_dict(self):
        """
        Returns the model properties as a dict
        """
        result = {}

        for attr, _ in iteritems(self.swagger_types):
            value = getattr(self, attr)
            if isinstance(value, list):
                result[attr] = list(map(
                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
                    value
                ))
            elif hasattr(value, "to_dict"):
                result[attr] = value.to_dict()
            elif isinstance(value, dict):
                result[attr] = dict(map(
                    lambda item: (item[0], item[1].to_dict())
                    if hasattr(item[1], "to_dict") else item,
                    value.items()
                ))
            else:
                result[attr] = value

        return result

    def to_str(self):
        """
        Returns the string representation of the model
        """
        return pformat(self.to_dict())

    def __repr__(self):
        """
        For `print` and `pprint`
        """
        return self.to_str()

    def __eq__(self, other):
        """
        Returns true if both objects are equal
        """
        if not isinstance(other, V1Timer):
            return False

        return self.__dict__ == other.__dict__

    def __ne__(self, other):
        """
        Returns true if both objects are not equal
        """
        return not self == other
# coding: utf-8 KubeVirt API      This is KubeVirt API an add-on for Kubernetes.      OpenAPI spec version: 1.0.0     Contact: <EMAIL>     Generated by: https://github.com/swagger-api/swagger-codegen.git NOTE: This class is auto generated by the swagger code generator program.     Do not edit the class manually. Attributes:       swagger_types (dict): The key is attribute name                             and the value is attribute type.       attribute_map (dict): The key is attribute name                             and the value is json key in definition. V1Timer - a model defined in Swagger Gets the hpet of this V1Timer.         HPET (High Precision Event Timer) - multiple timers with periodic interrupts.          :return: The hpet of this V1Timer.         :rtype: V1HPETTimer Sets the hpet of this V1Timer.         HPET (High Precision Event Timer) - multiple timers with periodic interrupts.          :param hpet: The hpet of this V1Timer.         :type: V1HPETTimer Gets the hyperv of this V1Timer.         Hyperv (Hypervclock) - lets guests read the host’s wall clock time (paravirtualized). For windows guests.          :return: The hyperv of this V1Timer.         :rtype: V1HypervTimer Sets the hyperv of this V1Timer.         Hyperv (Hypervclock) - lets guests read the host’s wall clock time (paravirtualized). For windows guests.          :param hyperv: The hyperv of this V1Timer.         :type: V1HypervTimer Gets the kvm of this V1Timer.         KVM  (KVM clock) - lets guests read the host’s wall clock time (paravirtualized). For linux guests.          :return: The kvm of this V1Timer.         :rtype: V1KVMTimer Sets the kvm of this V1Timer.         KVM  (KVM clock) - lets guests read the host’s wall clock time (paravirtualized). For linux guests.          :param kvm: The kvm of this V1Timer.         :type: V1KVMTimer Gets the pit of this V1Timer.         PIT (Programmable Interval Timer) - a timer with periodic interrupts.          :return: The pit of this V1Timer.         :rtype: V1PITTimer Sets the pit of this V1Timer.         PIT (Programmable Interval Timer) - a timer with periodic interrupts.          :param pit: The pit of this V1Timer.         :type: V1PITTimer Gets the rtc of this V1Timer.         RTC (Real Time Clock) - a continuously running timer with periodic interrupts.          :return: The rtc of this V1Timer.         :rtype: V1RTCTimer Sets the rtc of this V1Timer.         RTC (Real Time Clock) - a continuously running timer with periodic interrupts.          :param rtc: The rtc of this V1Timer.         :type: V1RTCTimer Returns the model properties as a dict Returns the string representation of the model For `print` and `pprint` Returns true if both objects are equal Returns true if both objects are not equal