Top

lentiq.models.user_projects module

# coding: utf-8
####alex test
"""
    
    
        
    """

import pprint
import re  # noqa: F401

import six
from lentiq.models.project import Project  # noqa: F401,E501


class UserProjects(object):
    """
        """
    """
    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 = {
        'accesible_projects': 'dict(str, list[Project])',
        'managed_projects': 'dict(str, list[Project])',
        'user_id': 'int'
    }

    attribute_map = {
        'accesible_projects': 'accesibleProjects',
        'managed_projects': 'managedProjects',
        'user_id': 'userId'
    }

    discriminator = None

    def __init__(self, accesible_projects=None, managed_projects=None, user_id=None):  # noqa: E501
        """UserProjects - a model defined in Swagger"""  # noqa: E501
        self._accesible_projects = None
        self._managed_projects = None
        self._user_id = None

        if accesible_projects is not None:
            self.accesible_projects = accesible_projects
        if managed_projects is not None:
            self.managed_projects = managed_projects
        if user_id is not None:
            self.user_id = user_id

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


        :return: The accesible_projects of this UserProjects.  # noqa: E501
        :rtype: dict(str, list[Project])
        """
        return self._accesible_projects

    @accesible_projects.setter
    def accesible_projects(self, accesible_projects):
        """Sets the accesible_projects of this UserProjects.


        :param accesible_projects: The accesible_projects of this UserProjects.  # noqa: E501
        :type: dict(str, list[Project])
        """

        self._accesible_projects = accesible_projects

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


        :return: The managed_projects of this UserProjects.  # noqa: E501
        :rtype: dict(str, list[Project])
        """
        return self._managed_projects

    @managed_projects.setter
    def managed_projects(self, managed_projects):
        """Sets the managed_projects of this UserProjects.


        :param managed_projects: The managed_projects of this UserProjects.  # noqa: E501
        :type: dict(str, list[Project])
        """

        self._managed_projects = managed_projects

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


        :return: The user_id of this UserProjects.  # noqa: E501
        :rtype: int
        """
        return self._user_id

    @user_id.setter
    def user_id(self, user_id):
        """Sets the user_id of this UserProjects.


        :param user_id: The user_id of this UserProjects.  # noqa: E501
        :type: int
        """

        self._user_id = user_id

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

        return self.__dict__ == other.__dict__

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

Classes

class UserProjects

class UserProjects(object):
    """
        """
    """
    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 = {
        'accesible_projects': 'dict(str, list[Project])',
        'managed_projects': 'dict(str, list[Project])',
        'user_id': 'int'
    }

    attribute_map = {
        'accesible_projects': 'accesibleProjects',
        'managed_projects': 'managedProjects',
        'user_id': 'userId'
    }

    discriminator = None

    def __init__(self, accesible_projects=None, managed_projects=None, user_id=None):  # noqa: E501
        """UserProjects - a model defined in Swagger"""  # noqa: E501
        self._accesible_projects = None
        self._managed_projects = None
        self._user_id = None

        if accesible_projects is not None:
            self.accesible_projects = accesible_projects
        if managed_projects is not None:
            self.managed_projects = managed_projects
        if user_id is not None:
            self.user_id = user_id

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


        :return: The accesible_projects of this UserProjects.  # noqa: E501
        :rtype: dict(str, list[Project])
        """
        return self._accesible_projects

    @accesible_projects.setter
    def accesible_projects(self, accesible_projects):
        """Sets the accesible_projects of this UserProjects.


        :param accesible_projects: The accesible_projects of this UserProjects.  # noqa: E501
        :type: dict(str, list[Project])
        """

        self._accesible_projects = accesible_projects

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


        :return: The managed_projects of this UserProjects.  # noqa: E501
        :rtype: dict(str, list[Project])
        """
        return self._managed_projects

    @managed_projects.setter
    def managed_projects(self, managed_projects):
        """Sets the managed_projects of this UserProjects.


        :param managed_projects: The managed_projects of this UserProjects.  # noqa: E501
        :type: dict(str, list[Project])
        """

        self._managed_projects = managed_projects

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


        :return: The user_id of this UserProjects.  # noqa: E501
        :rtype: int
        """
        return self._user_id

    @user_id.setter
    def user_id(self, user_id):
        """Sets the user_id of this UserProjects.


        :param user_id: The user_id of this UserProjects.  # noqa: E501
        :type: int
        """

        self._user_id = user_id

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

        return self.__dict__ == other.__dict__

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

Ancestors (in MRO)

Class variables

var attribute_map

var discriminator

var swagger_types

Static methods

def __init__(

self, accesible_projects=None, managed_projects=None, user_id=None)

UserProjects - a model defined in Swagger

def __init__(self, accesible_projects=None, managed_projects=None, user_id=None):  # noqa: E501
    """UserProjects - a model defined in Swagger"""  # noqa: E501
    self._accesible_projects = None
    self._managed_projects = None
    self._user_id = None
    if accesible_projects is not None:
        self.accesible_projects = accesible_projects
    if managed_projects is not None:
        self.managed_projects = managed_projects
    if user_id is not None:
        self.user_id = user_id

def to_dict(

self)

Returns the model properties as a dict

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(UserProjects, dict):
        for key, value in self.items():
            result[key] = value
    return result

def to_str(

self)

Returns the string representation of the model

def to_str(self):
    """Returns the string representation of the model"""
    return pprint.pformat(self.to_dict())

Instance variables

var accesible_projects

Gets the accesible_projects of this UserProjects. # noqa: E501

:return: The accesible_projects of this UserProjects. # noqa: E501 :rtype: dict(str, list[Project])

var managed_projects

Gets the managed_projects of this UserProjects. # noqa: E501

:return: The managed_projects of this UserProjects. # noqa: E501 :rtype: dict(str, list[Project])

var user_id

Gets the user_id of this UserProjects. # noqa: E501

:return: The user_id of this UserProjects. # noqa: E501 :rtype: int