# coding: utf-8

"""
    KAMONOHASHI API

    A platform for deep learning  # noqa: E501

    OpenAPI spec version: v2
    Contact: kamonohashi-support@jp.nssol.nipponsteel.com
    Generated by: https://github.com/swagger-api/swagger-codegen.git
"""


import pprint
import re  # noqa: F401

import six


class TenantApiModelsCreateInputModel(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 = {
        'available_infinite_time_notebook': 'bool',
        'default_git_id': 'int',
        'default_registry_id': 'int',
        'display_name': 'str',
        'git_ids': 'list[int]',
        'registry_ids': 'list[int]',
        'storage_id': 'int',
        'tenant_name': 'str',
        'user_group_ids': 'list[int]'
    }

    attribute_map = {
        'available_infinite_time_notebook': 'availableInfiniteTimeNotebook',
        'default_git_id': 'defaultGitId',
        'default_registry_id': 'defaultRegistryId',
        'display_name': 'displayName',
        'git_ids': 'gitIds',
        'registry_ids': 'registryIds',
        'storage_id': 'storageId',
        'tenant_name': 'tenantName',
        'user_group_ids': 'userGroupIds'
    }

    def __init__(self, available_infinite_time_notebook=None, default_git_id=None, default_registry_id=None, display_name=None, git_ids=None, registry_ids=None, storage_id=None, tenant_name=None, user_group_ids=None):  # noqa: E501
        """TenantApiModelsCreateInputModel - a model defined in Swagger"""  # noqa: E501

        self._available_infinite_time_notebook = None
        self._default_git_id = None
        self._default_registry_id = None
        self._display_name = None
        self._git_ids = None
        self._registry_ids = None
        self._storage_id = None
        self._tenant_name = None
        self._user_group_ids = None
        self.discriminator = None

        if available_infinite_time_notebook is not None:
            self.available_infinite_time_notebook = available_infinite_time_notebook
        if default_git_id is not None:
            self.default_git_id = default_git_id
        if default_registry_id is not None:
            self.default_registry_id = default_registry_id
        self.display_name = display_name
        self.git_ids = git_ids
        self.registry_ids = registry_ids
        self.storage_id = storage_id
        self.tenant_name = tenant_name
        if user_group_ids is not None:
            self.user_group_ids = user_group_ids

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


        :return: The available_infinite_time_notebook of this TenantApiModelsCreateInputModel.  # noqa: E501
        :rtype: bool
        """
        return self._available_infinite_time_notebook

    @available_infinite_time_notebook.setter
    def available_infinite_time_notebook(self, available_infinite_time_notebook):
        """Sets the available_infinite_time_notebook of this TenantApiModelsCreateInputModel.


        :param available_infinite_time_notebook: The available_infinite_time_notebook of this TenantApiModelsCreateInputModel.  # noqa: E501
        :type: bool
        """

        self._available_infinite_time_notebook = available_infinite_time_notebook

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


        :return: The default_git_id of this TenantApiModelsCreateInputModel.  # noqa: E501
        :rtype: int
        """
        return self._default_git_id

    @default_git_id.setter
    def default_git_id(self, default_git_id):
        """Sets the default_git_id of this TenantApiModelsCreateInputModel.


        :param default_git_id: The default_git_id of this TenantApiModelsCreateInputModel.  # noqa: E501
        :type: int
        """

        self._default_git_id = default_git_id

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


        :return: The default_registry_id of this TenantApiModelsCreateInputModel.  # noqa: E501
        :rtype: int
        """
        return self._default_registry_id

    @default_registry_id.setter
    def default_registry_id(self, default_registry_id):
        """Sets the default_registry_id of this TenantApiModelsCreateInputModel.


        :param default_registry_id: The default_registry_id of this TenantApiModelsCreateInputModel.  # noqa: E501
        :type: int
        """

        self._default_registry_id = default_registry_id

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


        :return: The display_name of this TenantApiModelsCreateInputModel.  # noqa: E501
        :rtype: str
        """
        return self._display_name

    @display_name.setter
    def display_name(self, display_name):
        """Sets the display_name of this TenantApiModelsCreateInputModel.


        :param display_name: The display_name of this TenantApiModelsCreateInputModel.  # noqa: E501
        :type: str
        """
        if display_name is None:
            raise ValueError("Invalid value for `display_name`, must not be `None`")  # noqa: E501

        self._display_name = display_name

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


        :return: The git_ids of this TenantApiModelsCreateInputModel.  # noqa: E501
        :rtype: list[int]
        """
        return self._git_ids

    @git_ids.setter
    def git_ids(self, git_ids):
        """Sets the git_ids of this TenantApiModelsCreateInputModel.


        :param git_ids: The git_ids of this TenantApiModelsCreateInputModel.  # noqa: E501
        :type: list[int]
        """
        if git_ids is None:
            raise ValueError("Invalid value for `git_ids`, must not be `None`")  # noqa: E501

        self._git_ids = git_ids

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


        :return: The registry_ids of this TenantApiModelsCreateInputModel.  # noqa: E501
        :rtype: list[int]
        """
        return self._registry_ids

    @registry_ids.setter
    def registry_ids(self, registry_ids):
        """Sets the registry_ids of this TenantApiModelsCreateInputModel.


        :param registry_ids: The registry_ids of this TenantApiModelsCreateInputModel.  # noqa: E501
        :type: list[int]
        """
        if registry_ids is None:
            raise ValueError("Invalid value for `registry_ids`, must not be `None`")  # noqa: E501

        self._registry_ids = registry_ids

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


        :return: The storage_id of this TenantApiModelsCreateInputModel.  # noqa: E501
        :rtype: int
        """
        return self._storage_id

    @storage_id.setter
    def storage_id(self, storage_id):
        """Sets the storage_id of this TenantApiModelsCreateInputModel.


        :param storage_id: The storage_id of this TenantApiModelsCreateInputModel.  # noqa: E501
        :type: int
        """
        if storage_id is None:
            raise ValueError("Invalid value for `storage_id`, must not be `None`")  # noqa: E501

        self._storage_id = storage_id

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


        :return: The tenant_name of this TenantApiModelsCreateInputModel.  # noqa: E501
        :rtype: str
        """
        return self._tenant_name

    @tenant_name.setter
    def tenant_name(self, tenant_name):
        """Sets the tenant_name of this TenantApiModelsCreateInputModel.


        :param tenant_name: The tenant_name of this TenantApiModelsCreateInputModel.  # noqa: E501
        :type: str
        """
        if tenant_name is None:
            raise ValueError("Invalid value for `tenant_name`, must not be `None`")  # noqa: E501
        if tenant_name is not None and not re.search(r'^[a-z]([-a-z0-9]*[a-z0-9])?$', tenant_name):  # noqa: E501
            raise ValueError(r"Invalid value for `tenant_name`, must be a follow pattern or equal to `/^[a-z]([-a-z0-9]*[a-z0-9])?$/`")  # noqa: E501

        self._tenant_name = tenant_name

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


        :return: The user_group_ids of this TenantApiModelsCreateInputModel.  # noqa: E501
        :rtype: list[int]
        """
        return self._user_group_ids

    @user_group_ids.setter
    def user_group_ids(self, user_group_ids):
        """Sets the user_group_ids of this TenantApiModelsCreateInputModel.


        :param user_group_ids: The user_group_ids of this TenantApiModelsCreateInputModel.  # noqa: E501
        :type: list[int]
        """

        self._user_group_ids = user_group_ids

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

        return self.__dict__ == other.__dict__

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