<reponame>kubevirt/client-python<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 V1alpha1Selectors(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 = {
        'namespace_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector',
        'virtual_machine_instance_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector'
    }

    attribute_map = {
        'namespace_selector': 'namespaceSelector',
        'virtual_machine_instance_selector': 'virtualMachineInstanceSelector'
    }

    def __init__(self, namespace_selector=None, virtual_machine_instance_selector=None):
        """
        V1alpha1Selectors - a model defined in Swagger
        """

        self._namespace_selector = None
        self._virtual_machine_instance_selector = None

        if namespace_selector is not None:
          self.namespace_selector = namespace_selector
        if virtual_machine_instance_selector is not None:
          self.virtual_machine_instance_selector = virtual_machine_instance_selector

    @property
    def namespace_selector(self):
        """
        Gets the namespace_selector of this V1alpha1Selectors.

        :return: The namespace_selector of this V1alpha1Selectors.
        :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector
        """
        return self._namespace_selector

    @namespace_selector.setter
    def namespace_selector(self, namespace_selector):
        """
        Sets the namespace_selector of this V1alpha1Selectors.

        :param namespace_selector: The namespace_selector of this V1alpha1Selectors.
        :type: K8sIoApimachineryPkgApisMetaV1LabelSelector
        """

        self._namespace_selector = namespace_selector

    @property
    def virtual_machine_instance_selector(self):
        """
        Gets the virtual_machine_instance_selector of this V1alpha1Selectors.

        :return: The virtual_machine_instance_selector of this V1alpha1Selectors.
        :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector
        """
        return self._virtual_machine_instance_selector

    @virtual_machine_instance_selector.setter
    def virtual_machine_instance_selector(self, virtual_machine_instance_selector):
        """
        Sets the virtual_machine_instance_selector of this V1alpha1Selectors.

        :param virtual_machine_instance_selector: The virtual_machine_instance_selector of this V1alpha1Selectors.
        :type: K8sIoApimachineryPkgApisMetaV1LabelSelector
        """

        self._virtual_machine_instance_selector = virtual_machine_instance_selector

    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, V1alpha1Selectors):
            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 V1alpha1Selectors(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 = {
        'namespace_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector',
        'virtual_machine_instance_selector': 'K8sIoApimachineryPkgApisMetaV1LabelSelector'
    }

    attribute_map = {
        'namespace_selector': 'namespaceSelector',
        'virtual_machine_instance_selector': 'virtualMachineInstanceSelector'
    }

    def __init__(self, namespace_selector=None, virtual_machine_instance_selector=None):
        """
        V1alpha1Selectors - a model defined in Swagger
        """

        self._namespace_selector = None
        self._virtual_machine_instance_selector = None

        if namespace_selector is not None:
          self.namespace_selector = namespace_selector
        if virtual_machine_instance_selector is not None:
          self.virtual_machine_instance_selector = virtual_machine_instance_selector

    @property
    def namespace_selector(self):
        """
        Gets the namespace_selector of this V1alpha1Selectors.

        :return: The namespace_selector of this V1alpha1Selectors.
        :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector
        """
        return self._namespace_selector

    @namespace_selector.setter
    def namespace_selector(self, namespace_selector):
        """
        Sets the namespace_selector of this V1alpha1Selectors.

        :param namespace_selector: The namespace_selector of this V1alpha1Selectors.
        :type: K8sIoApimachineryPkgApisMetaV1LabelSelector
        """

        self._namespace_selector = namespace_selector

    @property
    def virtual_machine_instance_selector(self):
        """
        Gets the virtual_machine_instance_selector of this V1alpha1Selectors.

        :return: The virtual_machine_instance_selector of this V1alpha1Selectors.
        :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector
        """
        return self._virtual_machine_instance_selector

    @virtual_machine_instance_selector.setter
    def virtual_machine_instance_selector(self, virtual_machine_instance_selector):
        """
        Sets the virtual_machine_instance_selector of this V1alpha1Selectors.

        :param virtual_machine_instance_selector: The virtual_machine_instance_selector of this V1alpha1Selectors.
        :type: K8sIoApimachineryPkgApisMetaV1LabelSelector
        """

        self._virtual_machine_instance_selector = virtual_machine_instance_selector

    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, V1alpha1Selectors):
            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. V1alpha1Selectors - a model defined in Swagger Gets the namespace_selector of this V1alpha1Selectors.          :return: The namespace_selector of this V1alpha1Selectors.         :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector Sets the namespace_selector of this V1alpha1Selectors.          :param namespace_selector: The namespace_selector of this V1alpha1Selectors.         :type: K8sIoApimachineryPkgApisMetaV1LabelSelector Gets the virtual_machine_instance_selector of this V1alpha1Selectors.          :return: The virtual_machine_instance_selector of this V1alpha1Selectors.         :rtype: K8sIoApimachineryPkgApisMetaV1LabelSelector Sets the virtual_machine_instance_selector of this V1alpha1Selectors.          :param virtual_machine_instance_selector: The virtual_machine_instance_selector of this V1alpha1Selectors.         :type: K8sIoApimachineryPkgApisMetaV1LabelSelector 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