# coding: utf-8

"""
    eLabFTW REST API v2 Documentation

    This document describes all available endpoints and methods for eLabFTW's API version 2.   # noqa: E501

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

import pprint
import re  # noqa: F401

import six

class Team(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 = {
        'id': 'int',
        'name': 'str',
        'common_template': 'str',
        'common_template_md': 'str',
        'deletable_xp': 'int',
        'deletable_item': 'int',
        'user_create_tag': 'int',
        'force_exp_tpl': 'int',
        'link_name': 'str',
        'link_href': 'str',
        'created_at': 'str',
        'orgid': 'str',
        'public_db': 'int',
        'force_canread': 'str',
        'force_canwrite': 'str',
        'do_force_canread': 'int',
        'do_force_canwrite': 'int',
        'visible': 'int'
    }

    attribute_map = {
        'id': 'id',
        'name': 'name',
        'common_template': 'common_template',
        'common_template_md': 'common_template_md',
        'deletable_xp': 'deletable_xp',
        'deletable_item': 'deletable_item',
        'user_create_tag': 'user_create_tag',
        'force_exp_tpl': 'force_exp_tpl',
        'link_name': 'link_name',
        'link_href': 'link_href',
        'created_at': 'created_at',
        'orgid': 'orgid',
        'public_db': 'public_db',
        'force_canread': 'force_canread',
        'force_canwrite': 'force_canwrite',
        'do_force_canread': 'do_force_canread',
        'do_force_canwrite': 'do_force_canwrite',
        'visible': 'visible'
    }

    def __init__(self, id=None, name=None, common_template=None, common_template_md=None, deletable_xp=None, deletable_item=None, user_create_tag=None, force_exp_tpl=None, link_name=None, link_href=None, created_at=None, orgid=None, public_db=None, force_canread=None, force_canwrite=None, do_force_canread=None, do_force_canwrite=None, visible=None):  # noqa: E501
        """Team - a model defined in Swagger"""  # noqa: E501
        self._id = None
        self._name = None
        self._common_template = None
        self._common_template_md = None
        self._deletable_xp = None
        self._deletable_item = None
        self._user_create_tag = None
        self._force_exp_tpl = None
        self._link_name = None
        self._link_href = None
        self._created_at = None
        self._orgid = None
        self._public_db = None
        self._force_canread = None
        self._force_canwrite = None
        self._do_force_canread = None
        self._do_force_canwrite = None
        self._visible = None
        self.discriminator = None
        if id is not None:
            self.id = id
        if name is not None:
            self.name = name
        if common_template is not None:
            self.common_template = common_template
        if common_template_md is not None:
            self.common_template_md = common_template_md
        if deletable_xp is not None:
            self.deletable_xp = deletable_xp
        if deletable_item is not None:
            self.deletable_item = deletable_item
        if user_create_tag is not None:
            self.user_create_tag = user_create_tag
        if force_exp_tpl is not None:
            self.force_exp_tpl = force_exp_tpl
        if link_name is not None:
            self.link_name = link_name
        if link_href is not None:
            self.link_href = link_href
        if created_at is not None:
            self.created_at = created_at
        if orgid is not None:
            self.orgid = orgid
        if public_db is not None:
            self.public_db = public_db
        if force_canread is not None:
            self.force_canread = force_canread
        if force_canwrite is not None:
            self.force_canwrite = force_canwrite
        if do_force_canread is not None:
            self.do_force_canread = do_force_canread
        if do_force_canwrite is not None:
            self.do_force_canwrite = do_force_canwrite
        if visible is not None:
            self.visible = visible

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


        :return: The id of this Team.  # noqa: E501
        :rtype: int
        """
        return self._id

    @id.setter
    def id(self, id):
        """Sets the id of this Team.


        :param id: The id of this Team.  # noqa: E501
        :type: int
        """

        self._id = id

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


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

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


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

        self._name = name

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


        :return: The common_template of this Team.  # noqa: E501
        :rtype: str
        """
        return self._common_template

    @common_template.setter
    def common_template(self, common_template):
        """Sets the common_template of this Team.


        :param common_template: The common_template of this Team.  # noqa: E501
        :type: str
        """

        self._common_template = common_template

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


        :return: The common_template_md of this Team.  # noqa: E501
        :rtype: str
        """
        return self._common_template_md

    @common_template_md.setter
    def common_template_md(self, common_template_md):
        """Sets the common_template_md of this Team.


        :param common_template_md: The common_template_md of this Team.  # noqa: E501
        :type: str
        """

        self._common_template_md = common_template_md

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


        :return: The deletable_xp of this Team.  # noqa: E501
        :rtype: int
        """
        return self._deletable_xp

    @deletable_xp.setter
    def deletable_xp(self, deletable_xp):
        """Sets the deletable_xp of this Team.


        :param deletable_xp: The deletable_xp of this Team.  # noqa: E501
        :type: int
        """

        self._deletable_xp = deletable_xp

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


        :return: The deletable_item of this Team.  # noqa: E501
        :rtype: int
        """
        return self._deletable_item

    @deletable_item.setter
    def deletable_item(self, deletable_item):
        """Sets the deletable_item of this Team.


        :param deletable_item: The deletable_item of this Team.  # noqa: E501
        :type: int
        """

        self._deletable_item = deletable_item

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


        :return: The user_create_tag of this Team.  # noqa: E501
        :rtype: int
        """
        return self._user_create_tag

    @user_create_tag.setter
    def user_create_tag(self, user_create_tag):
        """Sets the user_create_tag of this Team.


        :param user_create_tag: The user_create_tag of this Team.  # noqa: E501
        :type: int
        """

        self._user_create_tag = user_create_tag

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


        :return: The force_exp_tpl of this Team.  # noqa: E501
        :rtype: int
        """
        return self._force_exp_tpl

    @force_exp_tpl.setter
    def force_exp_tpl(self, force_exp_tpl):
        """Sets the force_exp_tpl of this Team.


        :param force_exp_tpl: The force_exp_tpl of this Team.  # noqa: E501
        :type: int
        """

        self._force_exp_tpl = force_exp_tpl

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


        :return: The link_name of this Team.  # noqa: E501
        :rtype: str
        """
        return self._link_name

    @link_name.setter
    def link_name(self, link_name):
        """Sets the link_name of this Team.


        :param link_name: The link_name of this Team.  # noqa: E501
        :type: str
        """

        self._link_name = link_name

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


        :return: The link_href of this Team.  # noqa: E501
        :rtype: str
        """
        return self._link_href

    @link_href.setter
    def link_href(self, link_href):
        """Sets the link_href of this Team.


        :param link_href: The link_href of this Team.  # noqa: E501
        :type: str
        """

        self._link_href = link_href

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


        :return: The created_at of this Team.  # noqa: E501
        :rtype: str
        """
        return self._created_at

    @created_at.setter
    def created_at(self, created_at):
        """Sets the created_at of this Team.


        :param created_at: The created_at of this Team.  # noqa: E501
        :type: str
        """

        self._created_at = created_at

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


        :return: The orgid of this Team.  # noqa: E501
        :rtype: str
        """
        return self._orgid

    @orgid.setter
    def orgid(self, orgid):
        """Sets the orgid of this Team.


        :param orgid: The orgid of this Team.  # noqa: E501
        :type: str
        """

        self._orgid = orgid

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


        :return: The public_db of this Team.  # noqa: E501
        :rtype: int
        """
        return self._public_db

    @public_db.setter
    def public_db(self, public_db):
        """Sets the public_db of this Team.


        :param public_db: The public_db of this Team.  # noqa: E501
        :type: int
        """

        self._public_db = public_db

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


        :return: The force_canread of this Team.  # noqa: E501
        :rtype: str
        """
        return self._force_canread

    @force_canread.setter
    def force_canread(self, force_canread):
        """Sets the force_canread of this Team.


        :param force_canread: The force_canread of this Team.  # noqa: E501
        :type: str
        """

        self._force_canread = force_canread

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


        :return: The force_canwrite of this Team.  # noqa: E501
        :rtype: str
        """
        return self._force_canwrite

    @force_canwrite.setter
    def force_canwrite(self, force_canwrite):
        """Sets the force_canwrite of this Team.


        :param force_canwrite: The force_canwrite of this Team.  # noqa: E501
        :type: str
        """

        self._force_canwrite = force_canwrite

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


        :return: The do_force_canread of this Team.  # noqa: E501
        :rtype: int
        """
        return self._do_force_canread

    @do_force_canread.setter
    def do_force_canread(self, do_force_canread):
        """Sets the do_force_canread of this Team.


        :param do_force_canread: The do_force_canread of this Team.  # noqa: E501
        :type: int
        """

        self._do_force_canread = do_force_canread

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


        :return: The do_force_canwrite of this Team.  # noqa: E501
        :rtype: int
        """
        return self._do_force_canwrite

    @do_force_canwrite.setter
    def do_force_canwrite(self, do_force_canwrite):
        """Sets the do_force_canwrite of this Team.


        :param do_force_canwrite: The do_force_canwrite of this Team.  # noqa: E501
        :type: int
        """

        self._do_force_canwrite = do_force_canwrite

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


        :return: The visible of this Team.  # noqa: E501
        :rtype: int
        """
        return self._visible

    @visible.setter
    def visible(self, visible):
        """Sets the visible of this Team.


        :param visible: The visible of this Team.  # noqa: E501
        :type: int
        """

        self._visible = visible

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

        return self.__dict__ == other.__dict__

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