# coding: utf-8

"""
    Thoth User API

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

    OpenAPI spec version: 0.7.0-dev

    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""

import pprint
import re  # noqa: F401

import six

class RuntimeEnvironment(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 = {
        'hardware': 'RuntimeEnvironmentHardware',
        'operating_system': 'RuntimeEnvironmentOperatingSystem',
        'python_version': 'str',
        'cuda_version': 'str',
        'openblas_version': 'str',
        'openmpi_version': 'str',
        'cudnn_version': 'str',
        'mkl_version': 'str',
        'platform': 'list[str]',
        'base_image': 'str',
        'name': 'str'
    }

    attribute_map = {
        'hardware': 'hardware',
        'operating_system': 'operating_system',
        'python_version': 'python_version',
        'cuda_version': 'cuda_version',
        'openblas_version': 'openblas_version',
        'openmpi_version': 'openmpi_version',
        'cudnn_version': 'cudnn_version',
        'mkl_version': 'mkl_version',
        'platform': 'platform',
        'base_image': 'base_image',
        'name': 'name'
    }

    def __init__(self, hardware=None, operating_system=None, python_version=None, cuda_version=None, openblas_version=None, openmpi_version=None, cudnn_version=None, mkl_version=None, platform=None, base_image=None, name=None):  # noqa: E501
        """RuntimeEnvironment - a model defined in Swagger"""  # noqa: E501
        self._hardware = None
        self._operating_system = None
        self._python_version = None
        self._cuda_version = None
        self._openblas_version = None
        self._openmpi_version = None
        self._cudnn_version = None
        self._mkl_version = None
        self._platform = None
        self._base_image = None
        self._name = None
        self.discriminator = None
        if hardware is not None:
            self.hardware = hardware
        if operating_system is not None:
            self.operating_system = operating_system
        if python_version is not None:
            self.python_version = python_version
        if cuda_version is not None:
            self.cuda_version = cuda_version
        if openblas_version is not None:
            self.openblas_version = openblas_version
        if openmpi_version is not None:
            self.openmpi_version = openmpi_version
        if cudnn_version is not None:
            self.cudnn_version = cudnn_version
        if mkl_version is not None:
            self.mkl_version = mkl_version
        if platform is not None:
            self.platform = platform
        if base_image is not None:
            self.base_image = base_image
        if name is not None:
            self.name = name

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


        :return: The hardware of this RuntimeEnvironment.  # noqa: E501
        :rtype: RuntimeEnvironmentHardware
        """
        return self._hardware

    @hardware.setter
    def hardware(self, hardware):
        """Sets the hardware of this RuntimeEnvironment.


        :param hardware: The hardware of this RuntimeEnvironment.  # noqa: E501
        :type: RuntimeEnvironmentHardware
        """

        self._hardware = hardware

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


        :return: The operating_system of this RuntimeEnvironment.  # noqa: E501
        :rtype: RuntimeEnvironmentOperatingSystem
        """
        return self._operating_system

    @operating_system.setter
    def operating_system(self, operating_system):
        """Sets the operating_system of this RuntimeEnvironment.


        :param operating_system: The operating_system of this RuntimeEnvironment.  # noqa: E501
        :type: RuntimeEnvironmentOperatingSystem
        """

        self._operating_system = operating_system

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

        Python version on which the application runs on  # noqa: E501

        :return: The python_version of this RuntimeEnvironment.  # noqa: E501
        :rtype: str
        """
        return self._python_version

    @python_version.setter
    def python_version(self, python_version):
        """Sets the python_version of this RuntimeEnvironment.

        Python version on which the application runs on  # noqa: E501

        :param python_version: The python_version of this RuntimeEnvironment.  # noqa: E501
        :type: str
        """

        self._python_version = python_version

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

        Nvidia CUDA version which the application uses  # noqa: E501

        :return: The cuda_version of this RuntimeEnvironment.  # noqa: E501
        :rtype: str
        """
        return self._cuda_version

    @cuda_version.setter
    def cuda_version(self, cuda_version):
        """Sets the cuda_version of this RuntimeEnvironment.

        Nvidia CUDA version which the application uses  # noqa: E501

        :param cuda_version: The cuda_version of this RuntimeEnvironment.  # noqa: E501
        :type: str
        """

        self._cuda_version = cuda_version

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

        OpenBLAS version used, if any  # noqa: E501

        :return: The openblas_version of this RuntimeEnvironment.  # noqa: E501
        :rtype: str
        """
        return self._openblas_version

    @openblas_version.setter
    def openblas_version(self, openblas_version):
        """Sets the openblas_version of this RuntimeEnvironment.

        OpenBLAS version used, if any  # noqa: E501

        :param openblas_version: The openblas_version of this RuntimeEnvironment.  # noqa: E501
        :type: str
        """

        self._openblas_version = openblas_version

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

        Open MPI version used, if any  # noqa: E501

        :return: The openmpi_version of this RuntimeEnvironment.  # noqa: E501
        :rtype: str
        """
        return self._openmpi_version

    @openmpi_version.setter
    def openmpi_version(self, openmpi_version):
        """Sets the openmpi_version of this RuntimeEnvironment.

        Open MPI version used, if any  # noqa: E501

        :param openmpi_version: The openmpi_version of this RuntimeEnvironment.  # noqa: E501
        :type: str
        """

        self._openmpi_version = openmpi_version

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

        NVIDIA cuDNN version used, if any  # noqa: E501

        :return: The cudnn_version of this RuntimeEnvironment.  # noqa: E501
        :rtype: str
        """
        return self._cudnn_version

    @cudnn_version.setter
    def cudnn_version(self, cudnn_version):
        """Sets the cudnn_version of this RuntimeEnvironment.

        NVIDIA cuDNN version used, if any  # noqa: E501

        :param cudnn_version: The cudnn_version of this RuntimeEnvironment.  # noqa: E501
        :type: str
        """

        self._cudnn_version = cudnn_version

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

        Intel® Math Kernel Library version used, if any  # noqa: E501

        :return: The mkl_version of this RuntimeEnvironment.  # noqa: E501
        :rtype: str
        """
        return self._mkl_version

    @mkl_version.setter
    def mkl_version(self, mkl_version):
        """Sets the mkl_version of this RuntimeEnvironment.

        Intel® Math Kernel Library version used, if any  # noqa: E501

        :param mkl_version: The mkl_version of this RuntimeEnvironment.  # noqa: E501
        :type: str
        """

        self._mkl_version = mkl_version

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

        Platform used - corresponds to sysconfig.get_platform() call  # noqa: E501

        :return: The platform of this RuntimeEnvironment.  # noqa: E501
        :rtype: list[str]
        """
        return self._platform

    @platform.setter
    def platform(self, platform):
        """Sets the platform of this RuntimeEnvironment.

        Platform used - corresponds to sysconfig.get_platform() call  # noqa: E501

        :param platform: The platform of this RuntimeEnvironment.  # noqa: E501
        :type: list[str]
        """

        self._platform = platform

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

        A base container image used to run the application  # noqa: E501

        :return: The base_image of this RuntimeEnvironment.  # noqa: E501
        :rtype: str
        """
        return self._base_image

    @base_image.setter
    def base_image(self, base_image):
        """Sets the base_image of this RuntimeEnvironment.

        A base container image used to run the application  # noqa: E501

        :param base_image: The base_image of this RuntimeEnvironment.  # noqa: E501
        :type: str
        """

        self._base_image = base_image

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

        User defined name of the runtime environment  # noqa: E501

        :return: The name of this RuntimeEnvironment.  # noqa: E501
        :rtype: str
        """
        return self._name

    @name.setter
    def name(self, name):
        """Sets the name of this RuntimeEnvironment.

        User defined name of the runtime environment  # noqa: E501

        :param name: The name of this RuntimeEnvironment.  # noqa: E501
        :type: str
        """

        self._name = name

    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(RuntimeEnvironment, 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, RuntimeEnvironment):
            return False

        return self.__dict__ == other.__dict__

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