# coding: utf-8

"""
    Managed Ray API

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)  # noqa: E501

    The version of the OpenAPI document: 0.1.0
    Generated by: https://openapi-generator.tech
"""


import pprint
import re  # noqa: F401

import six

from openapi_client.configuration import Configuration


class JobConfigResponse(object):
    """NOTE: This class is auto generated by OpenAPI Generator.
    Ref: https://openapi-generator.tech

    Do not edit the class manually.
    """

    """
    Attributes:
      openapi_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.
    """
    openapi_types = {
        'name': 'str',
        'entrypoint': 'str',
        'image_uri': 'str',
        'containerfile': 'str',
        'ray_version': 'str',
        'registry_login_secret': 'str',
        'compute_config': 'str',
        'working_dir': 'str',
        'requirements': 'list[str]',
        'env_vars': 'dict(str, str)',
        'py_modules': 'list[str]',
        'py_executable': 'str',
        'excludes': 'list[str]',
        'max_retries': 'int',
        'timeout_s': 'int',
        'job_queue_config': 'JobQueueConfigResponse',
        'tags': 'dict(str, str)',
        'connections': 'list[ConnectionConfigResponse]',
        'project': 'str',
        'cloud': 'str'
    }

    attribute_map = {
        'name': 'name',
        'entrypoint': 'entrypoint',
        'image_uri': 'image_uri',
        'containerfile': 'containerfile',
        'ray_version': 'ray_version',
        'registry_login_secret': 'registry_login_secret',
        'compute_config': 'compute_config',
        'working_dir': 'working_dir',
        'requirements': 'requirements',
        'env_vars': 'env_vars',
        'py_modules': 'py_modules',
        'py_executable': 'py_executable',
        'excludes': 'excludes',
        'max_retries': 'max_retries',
        'timeout_s': 'timeout_s',
        'job_queue_config': 'job_queue_config',
        'tags': 'tags',
        'connections': 'connections',
        'project': 'project',
        'cloud': 'cloud'
    }

    def __init__(self, name=None, entrypoint=None, image_uri=None, containerfile=None, ray_version=None, registry_login_secret=None, compute_config=None, working_dir=None, requirements=None, env_vars=None, py_modules=None, py_executable=None, excludes=None, max_retries=None, timeout_s=None, job_queue_config=None, tags=None, connections=None, project=None, cloud=None, local_vars_configuration=None):  # noqa: E501
        """JobConfigResponse - a model defined in OpenAPI"""  # noqa: E501
        if local_vars_configuration is None:
            local_vars_configuration = Configuration()
        self.local_vars_configuration = local_vars_configuration

        self._name = None
        self._entrypoint = None
        self._image_uri = None
        self._containerfile = None
        self._ray_version = None
        self._registry_login_secret = None
        self._compute_config = None
        self._working_dir = None
        self._requirements = None
        self._env_vars = None
        self._py_modules = None
        self._py_executable = None
        self._excludes = None
        self._max_retries = None
        self._timeout_s = None
        self._job_queue_config = None
        self._tags = None
        self._connections = None
        self._project = None
        self._cloud = None
        self.discriminator = None

        if name is not None:
            self.name = name
        self.entrypoint = entrypoint
        if image_uri is not None:
            self.image_uri = image_uri
        if containerfile is not None:
            self.containerfile = containerfile
        if ray_version is not None:
            self.ray_version = ray_version
        if registry_login_secret is not None:
            self.registry_login_secret = registry_login_secret
        if compute_config is not None:
            self.compute_config = compute_config
        if working_dir is not None:
            self.working_dir = working_dir
        if requirements is not None:
            self.requirements = requirements
        if env_vars is not None:
            self.env_vars = env_vars
        if py_modules is not None:
            self.py_modules = py_modules
        if py_executable is not None:
            self.py_executable = py_executable
        if excludes is not None:
            self.excludes = excludes
        if max_retries is not None:
            self.max_retries = max_retries
        if timeout_s is not None:
            self.timeout_s = timeout_s
        if job_queue_config is not None:
            self.job_queue_config = job_queue_config
        if tags is not None:
            self.tags = tags
        if connections is not None:
            self.connections = connections
        if project is not None:
            self.project = project
        if cloud is not None:
            self.cloud = cloud

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

        Job name.  # noqa: E501

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

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

        Job name.  # noqa: E501

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

        self._name = name

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

        Job entrypoint command.  # noqa: E501

        :return: The entrypoint of this JobConfigResponse.  # noqa: E501
        :rtype: str
        """
        return self._entrypoint

    @entrypoint.setter
    def entrypoint(self, entrypoint):
        """Sets the entrypoint of this JobConfigResponse.

        Job entrypoint command.  # noqa: E501

        :param entrypoint: The entrypoint of this JobConfigResponse.  # noqa: E501
        :type: str
        """
        if self.local_vars_configuration.client_side_validation and entrypoint is None:  # noqa: E501
            raise ValueError("Invalid value for `entrypoint`, must not be `None`")  # noqa: E501

        self._entrypoint = entrypoint

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

        Container image URI.  # noqa: E501

        :return: The image_uri of this JobConfigResponse.  # noqa: E501
        :rtype: str
        """
        return self._image_uri

    @image_uri.setter
    def image_uri(self, image_uri):
        """Sets the image_uri of this JobConfigResponse.

        Container image URI.  # noqa: E501

        :param image_uri: The image_uri of this JobConfigResponse.  # noqa: E501
        :type: str
        """

        self._image_uri = image_uri

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

        Containerfile path.  # noqa: E501

        :return: The containerfile of this JobConfigResponse.  # noqa: E501
        :rtype: str
        """
        return self._containerfile

    @containerfile.setter
    def containerfile(self, containerfile):
        """Sets the containerfile of this JobConfigResponse.

        Containerfile path.  # noqa: E501

        :param containerfile: The containerfile of this JobConfigResponse.  # noqa: E501
        :type: str
        """

        self._containerfile = containerfile

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

        Ray version.  # noqa: E501

        :return: The ray_version of this JobConfigResponse.  # noqa: E501
        :rtype: str
        """
        return self._ray_version

    @ray_version.setter
    def ray_version(self, ray_version):
        """Sets the ray_version of this JobConfigResponse.

        Ray version.  # noqa: E501

        :param ray_version: The ray_version of this JobConfigResponse.  # noqa: E501
        :type: str
        """

        self._ray_version = ray_version

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

        Secret for authenticating to private Docker registry.  # noqa: E501

        :return: The registry_login_secret of this JobConfigResponse.  # noqa: E501
        :rtype: str
        """
        return self._registry_login_secret

    @registry_login_secret.setter
    def registry_login_secret(self, registry_login_secret):
        """Sets the registry_login_secret of this JobConfigResponse.

        Secret for authenticating to private Docker registry.  # noqa: E501

        :param registry_login_secret: The registry_login_secret of this JobConfigResponse.  # noqa: E501
        :type: str
        """

        self._registry_login_secret = registry_login_secret

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

        Compute config name.  # noqa: E501

        :return: The compute_config of this JobConfigResponse.  # noqa: E501
        :rtype: str
        """
        return self._compute_config

    @compute_config.setter
    def compute_config(self, compute_config):
        """Sets the compute_config of this JobConfigResponse.

        Compute config name.  # noqa: E501

        :param compute_config: The compute_config of this JobConfigResponse.  # noqa: E501
        :type: str
        """

        self._compute_config = compute_config

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

        Working directory path.  # noqa: E501

        :return: The working_dir of this JobConfigResponse.  # noqa: E501
        :rtype: str
        """
        return self._working_dir

    @working_dir.setter
    def working_dir(self, working_dir):
        """Sets the working_dir of this JobConfigResponse.

        Working directory path.  # noqa: E501

        :param working_dir: The working_dir of this JobConfigResponse.  # noqa: E501
        :type: str
        """

        self._working_dir = working_dir

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

        Pip package requirements.  # noqa: E501

        :return: The requirements of this JobConfigResponse.  # noqa: E501
        :rtype: list[str]
        """
        return self._requirements

    @requirements.setter
    def requirements(self, requirements):
        """Sets the requirements of this JobConfigResponse.

        Pip package requirements.  # noqa: E501

        :param requirements: The requirements of this JobConfigResponse.  # noqa: E501
        :type: list[str]
        """

        self._requirements = requirements

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

        Environment variables.  # noqa: E501

        :return: The env_vars of this JobConfigResponse.  # noqa: E501
        :rtype: dict(str, str)
        """
        return self._env_vars

    @env_vars.setter
    def env_vars(self, env_vars):
        """Sets the env_vars of this JobConfigResponse.

        Environment variables.  # noqa: E501

        :param env_vars: The env_vars of this JobConfigResponse.  # noqa: E501
        :type: dict(str, str)
        """

        self._env_vars = env_vars

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

        Python modules to include.  # noqa: E501

        :return: The py_modules of this JobConfigResponse.  # noqa: E501
        :rtype: list[str]
        """
        return self._py_modules

    @py_modules.setter
    def py_modules(self, py_modules):
        """Sets the py_modules of this JobConfigResponse.

        Python modules to include.  # noqa: E501

        :param py_modules: The py_modules of this JobConfigResponse.  # noqa: E501
        :type: list[str]
        """

        self._py_modules = py_modules

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

        Python executable path.  # noqa: E501

        :return: The py_executable of this JobConfigResponse.  # noqa: E501
        :rtype: str
        """
        return self._py_executable

    @py_executable.setter
    def py_executable(self, py_executable):
        """Sets the py_executable of this JobConfigResponse.

        Python executable path.  # noqa: E501

        :param py_executable: The py_executable of this JobConfigResponse.  # noqa: E501
        :type: str
        """

        self._py_executable = py_executable

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

        File path globs excluded during upload.  # noqa: E501

        :return: The excludes of this JobConfigResponse.  # noqa: E501
        :rtype: list[str]
        """
        return self._excludes

    @excludes.setter
    def excludes(self, excludes):
        """Sets the excludes of this JobConfigResponse.

        File path globs excluded during upload.  # noqa: E501

        :param excludes: The excludes of this JobConfigResponse.  # noqa: E501
        :type: list[str]
        """

        self._excludes = excludes

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

        Maximum retry count.  # noqa: E501

        :return: The max_retries of this JobConfigResponse.  # noqa: E501
        :rtype: int
        """
        return self._max_retries

    @max_retries.setter
    def max_retries(self, max_retries):
        """Sets the max_retries of this JobConfigResponse.

        Maximum retry count.  # noqa: E501

        :param max_retries: The max_retries of this JobConfigResponse.  # noqa: E501
        :type: int
        """

        self._max_retries = max_retries

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

        Timeout in seconds.  # noqa: E501

        :return: The timeout_s of this JobConfigResponse.  # noqa: E501
        :rtype: int
        """
        return self._timeout_s

    @timeout_s.setter
    def timeout_s(self, timeout_s):
        """Sets the timeout_s of this JobConfigResponse.

        Timeout in seconds.  # noqa: E501

        :param timeout_s: The timeout_s of this JobConfigResponse.  # noqa: E501
        :type: int
        """

        self._timeout_s = timeout_s

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

        Job queue configuration (priority, job_queue_spec, etc.).  # noqa: E501

        :return: The job_queue_config of this JobConfigResponse.  # noqa: E501
        :rtype: JobQueueConfigResponse
        """
        return self._job_queue_config

    @job_queue_config.setter
    def job_queue_config(self, job_queue_config):
        """Sets the job_queue_config of this JobConfigResponse.

        Job queue configuration (priority, job_queue_spec, etc.).  # noqa: E501

        :param job_queue_config: The job_queue_config of this JobConfigResponse.  # noqa: E501
        :type: JobQueueConfigResponse
        """

        self._job_queue_config = job_queue_config

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

        Resource tags (key-value pairs).  # noqa: E501

        :return: The tags of this JobConfigResponse.  # noqa: E501
        :rtype: dict(str, str)
        """
        return self._tags

    @tags.setter
    def tags(self, tags):
        """Sets the tags of this JobConfigResponse.

        Resource tags (key-value pairs).  # noqa: E501

        :param tags: The tags of this JobConfigResponse.  # noqa: E501
        :type: dict(str, str)
        """

        self._tags = tags

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

        Connections associated with the job.  # noqa: E501

        :return: The connections of this JobConfigResponse.  # noqa: E501
        :rtype: list[ConnectionConfigResponse]
        """
        return self._connections

    @connections.setter
    def connections(self, connections):
        """Sets the connections of this JobConfigResponse.

        Connections associated with the job.  # noqa: E501

        :param connections: The connections of this JobConfigResponse.  # noqa: E501
        :type: list[ConnectionConfigResponse]
        """

        self._connections = connections

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

        Project name.  # noqa: E501

        :return: The project of this JobConfigResponse.  # noqa: E501
        :rtype: str
        """
        return self._project

    @project.setter
    def project(self, project):
        """Sets the project of this JobConfigResponse.

        Project name.  # noqa: E501

        :param project: The project of this JobConfigResponse.  # noqa: E501
        :type: str
        """

        self._project = project

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

        Cloud name.  # noqa: E501

        :return: The cloud of this JobConfigResponse.  # noqa: E501
        :rtype: str
        """
        return self._cloud

    @cloud.setter
    def cloud(self, cloud):
        """Sets the cloud of this JobConfigResponse.

        Cloud name.  # noqa: E501

        :param cloud: The cloud of this JobConfigResponse.  # noqa: E501
        :type: str
        """

        self._cloud = cloud

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

        for attr, _ in six.iteritems(self.openapi_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 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, JobConfigResponse):
            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, JobConfigResponse):
            return True

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