Top

lentiq.models.user_datapools module

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

import pprint
import re  # noqa: F401

import six
from lentiq.models.datapool import Datapool  # noqa: F401,E501


class UserDatapools(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_datapools': 'list[Datapool]',
        'managed_datapools': 'list[Datapool]',
        'owned_datapools': 'list[Datapool]',
        'user_id': 'int'
    }

    attribute_map = {
        'accesible_datapools': 'accesibleDatapools',
        'managed_datapools': 'managedDatapools',
        'owned_datapools': 'ownedDatapools',
        'user_id': 'userId'
    }

    discriminator = None

    def __init__(self, accesible_datapools=None, managed_datapools=None, owned_datapools=None, user_id=None):  # noqa: E501
        """UserDatapools - a model defined in Swagger"""  # noqa: E501
        self._accesible_datapools = None
        self._managed_datapools = None
        self._owned_datapools = None
        self._user_id = None

        if accesible_datapools is not None:
            self.accesible_datapools = accesible_datapools
        if managed_datapools is not None:
            self.managed_datapools = managed_datapools
        if owned_datapools is not None:
            self.owned_datapools = owned_datapools
        if user_id is not None:
            self.user_id = user_id

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


        :return: The accesible_datapools of this UserDatapools.  # noqa: E501
        :rtype: list[Datapool]
        """
        return self._accesible_datapools

    @accesible_datapools.setter
    def accesible_datapools(self, accesible_datapools):
        """Sets the accesible_datapools of this UserDatapools.


        :param accesible_datapools: The accesible_datapools of this UserDatapools.  # noqa: E501
        :type: list[Datapool]
        """

        self._accesible_datapools = accesible_datapools

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


        :return: The managed_datapools of this UserDatapools.  # noqa: E501
        :rtype: list[Datapool]
        """
        return self._managed_datapools

    @managed_datapools.setter
    def managed_datapools(self, managed_datapools):
        """Sets the managed_datapools of this UserDatapools.


        :param managed_datapools: The managed_datapools of this UserDatapools.  # noqa: E501
        :type: list[Datapool]
        """

        self._managed_datapools = managed_datapools

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


        :return: The owned_datapools of this UserDatapools.  # noqa: E501
        :rtype: list[Datapool]
        """
        return self._owned_datapools

    @owned_datapools.setter
    def owned_datapools(self, owned_datapools):
        """Sets the owned_datapools of this UserDatapools.


        :param owned_datapools: The owned_datapools of this UserDatapools.  # noqa: E501
        :type: list[Datapool]
        """

        self._owned_datapools = owned_datapools

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


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

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


        :param user_id: The user_id of this UserDatapools.  # 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(UserDatapools, 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, UserDatapools):
            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 UserDatapools

class UserDatapools(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_datapools': 'list[Datapool]',
        'managed_datapools': 'list[Datapool]',
        'owned_datapools': 'list[Datapool]',
        'user_id': 'int'
    }

    attribute_map = {
        'accesible_datapools': 'accesibleDatapools',
        'managed_datapools': 'managedDatapools',
        'owned_datapools': 'ownedDatapools',
        'user_id': 'userId'
    }

    discriminator = None

    def __init__(self, accesible_datapools=None, managed_datapools=None, owned_datapools=None, user_id=None):  # noqa: E501
        """UserDatapools - a model defined in Swagger"""  # noqa: E501
        self._accesible_datapools = None
        self._managed_datapools = None
        self._owned_datapools = None
        self._user_id = None

        if accesible_datapools is not None:
            self.accesible_datapools = accesible_datapools
        if managed_datapools is not None:
            self.managed_datapools = managed_datapools
        if owned_datapools is not None:
            self.owned_datapools = owned_datapools
        if user_id is not None:
            self.user_id = user_id

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


        :return: The accesible_datapools of this UserDatapools.  # noqa: E501
        :rtype: list[Datapool]
        """
        return self._accesible_datapools

    @accesible_datapools.setter
    def accesible_datapools(self, accesible_datapools):
        """Sets the accesible_datapools of this UserDatapools.


        :param accesible_datapools: The accesible_datapools of this UserDatapools.  # noqa: E501
        :type: list[Datapool]
        """

        self._accesible_datapools = accesible_datapools

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


        :return: The managed_datapools of this UserDatapools.  # noqa: E501
        :rtype: list[Datapool]
        """
        return self._managed_datapools

    @managed_datapools.setter
    def managed_datapools(self, managed_datapools):
        """Sets the managed_datapools of this UserDatapools.


        :param managed_datapools: The managed_datapools of this UserDatapools.  # noqa: E501
        :type: list[Datapool]
        """

        self._managed_datapools = managed_datapools

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


        :return: The owned_datapools of this UserDatapools.  # noqa: E501
        :rtype: list[Datapool]
        """
        return self._owned_datapools

    @owned_datapools.setter
    def owned_datapools(self, owned_datapools):
        """Sets the owned_datapools of this UserDatapools.


        :param owned_datapools: The owned_datapools of this UserDatapools.  # noqa: E501
        :type: list[Datapool]
        """

        self._owned_datapools = owned_datapools

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


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

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


        :param user_id: The user_id of this UserDatapools.  # 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(UserDatapools, 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, UserDatapools):
            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_datapools=None, managed_datapools=None, owned_datapools=None, user_id=None)

UserDatapools - a model defined in Swagger

def __init__(self, accesible_datapools=None, managed_datapools=None, owned_datapools=None, user_id=None):  # noqa: E501
    """UserDatapools - a model defined in Swagger"""  # noqa: E501
    self._accesible_datapools = None
    self._managed_datapools = None
    self._owned_datapools = None
    self._user_id = None
    if accesible_datapools is not None:
        self.accesible_datapools = accesible_datapools
    if managed_datapools is not None:
        self.managed_datapools = managed_datapools
    if owned_datapools is not None:
        self.owned_datapools = owned_datapools
    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(UserDatapools, 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_datapools

Gets the accesible_datapools of this UserDatapools. # noqa: E501

:return: The accesible_datapools of this UserDatapools. # noqa: E501 :rtype: list[Datapool]

var managed_datapools

Gets the managed_datapools of this UserDatapools. # noqa: E501

:return: The managed_datapools of this UserDatapools. # noqa: E501 :rtype: list[Datapool]

var owned_datapools

Gets the owned_datapools of this UserDatapools. # noqa: E501

:return: The owned_datapools of this UserDatapools. # noqa: E501 :rtype: list[Datapool]

var user_id

Gets the user_id of this UserDatapools. # noqa: E501

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