# coding: utf-8

"""
    external/v1/external_session_service.proto

    No description provided (generated by Swagger Codegen https://github.com/swagger-api/swagger-codegen)  # noqa: E501

    OpenAPI spec version: version not set
    
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six

from grid.openapi.configuration import Configuration


class V1ClusterDriver(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 = {
        'external': 'ProtobufAny',
        'kubernetes': 'V1KubernetesClusterDriver',
        'slurm': 'V1SlurmClusterDriver'
    }

    attribute_map = {
        'external': 'external',
        'kubernetes': 'kubernetes',
        'slurm': 'slurm'
    }

    def __init__(self, external=None, kubernetes=None, slurm=None, _configuration=None):  # noqa: E501
        """V1ClusterDriver - a model defined in Swagger"""  # noqa: E501
        if _configuration is None:
            _configuration = Configuration()
        self._configuration = _configuration

        self._external = None
        self._kubernetes = None
        self._slurm = None
        self.discriminator = None

        if external is not None:
            self.external = external
        if kubernetes is not None:
            self.kubernetes = kubernetes
        if slurm is not None:
            self.slurm = slurm

    @property
    def external(self):
        """Gets the external of this V1ClusterDriver.  # noqa: E501


        :return: The external of this V1ClusterDriver.  # noqa: E501
        :rtype: ProtobufAny
        """
        return self._external

    @external.setter
    def external(self, external):
        """Sets the external of this V1ClusterDriver.


        :param external: The external of this V1ClusterDriver.  # noqa: E501
        :type: ProtobufAny
        """

        self._external = external

    @property
    def kubernetes(self):
        """Gets the kubernetes of this V1ClusterDriver.  # noqa: E501


        :return: The kubernetes of this V1ClusterDriver.  # noqa: E501
        :rtype: V1KubernetesClusterDriver
        """
        return self._kubernetes

    @kubernetes.setter
    def kubernetes(self, kubernetes):
        """Sets the kubernetes of this V1ClusterDriver.


        :param kubernetes: The kubernetes of this V1ClusterDriver.  # noqa: E501
        :type: V1KubernetesClusterDriver
        """

        self._kubernetes = kubernetes

    @property
    def slurm(self):
        """Gets the slurm of this V1ClusterDriver.  # noqa: E501


        :return: The slurm of this V1ClusterDriver.  # noqa: E501
        :rtype: V1SlurmClusterDriver
        """
        return self._slurm

    @slurm.setter
    def slurm(self, slurm):
        """Sets the slurm of this V1ClusterDriver.


        :param slurm: The slurm of this V1ClusterDriver.  # noqa: E501
        :type: V1SlurmClusterDriver
        """

        self._slurm = slurm

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

        for attr, _ in six.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
        if issubclass(V1ClusterDriver, dict):
            for key, value in self.items():
                result[key] = value

        return result

    def to_str(self):
        """Returns the string representation of the model"""
        return pprint.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, V1ClusterDriver):
            return False

        return self.to_dict() == other.to_dict()

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

        return self.to_dict() != other.to_dict()
