docusign_webforms.models.user_filter

Web Forms API version 1.1

The Web Forms API facilitates generating semantic HTML forms around everyday contracts. # noqa: E501

OpenAPI spec version: 1.1.0 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git

  1# coding: utf-8
  2
  3"""
  4    Web Forms API version 1.1
  5
  6    The Web Forms API facilitates generating semantic HTML forms around everyday contracts.   # noqa: E501
  7
  8    OpenAPI spec version: 1.1.0
  9    Contact: devcenter@docusign.com
 10    Generated by: https://github.com/swagger-api/swagger-codegen.git
 11"""
 12
 13
 14import pprint
 15import re  # noqa: F401
 16
 17import six
 18
 19from docusign_webforms.client.configuration import Configuration
 20
 21
 22class UserFilter(object):
 23    """NOTE: This class is auto generated by the swagger code generator program.
 24
 25    Do not edit the class manually.
 26    """
 27
 28    """
 29    allowed enum values
 30    """
 31    OWNED_BY_ME = "owned_by_me"
 32    SHARED_WITH_ME = "shared_with_me"
 33    ALL = "all"
 34
 35    """
 36    Attributes:
 37      swagger_types (dict): The key is attribute name
 38                            and the value is attribute type.
 39      attribute_map (dict): The key is attribute name
 40                            and the value is json key in definition.
 41    """
 42    swagger_types = {
 43    }
 44
 45    attribute_map = {
 46    }
 47
 48    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 49        """UserFilter - a model defined in Swagger"""  # noqa: E501
 50        if _configuration is None:
 51            _configuration = Configuration()
 52        self._configuration = _configuration
 53        self.discriminator = None
 54
 55    def to_dict(self):
 56        """Returns the model properties as a dict"""
 57        result = {}
 58
 59        for attr, _ in six.iteritems(self.swagger_types):
 60            value = getattr(self, attr)
 61            if isinstance(value, list):
 62                result[attr] = list(map(
 63                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
 64                    value
 65                ))
 66            elif hasattr(value, "to_dict"):
 67                result[attr] = value.to_dict()
 68            elif isinstance(value, dict):
 69                result[attr] = dict(map(
 70                    lambda item: (item[0], item[1].to_dict())
 71                    if hasattr(item[1], "to_dict") else item,
 72                    value.items()
 73                ))
 74            else:
 75                result[attr] = value
 76        if issubclass(UserFilter, dict):
 77            for key, value in self.items():
 78                result[key] = value
 79
 80        return result
 81
 82    def to_str(self):
 83        """Returns the string representation of the model"""
 84        return pprint.pformat(self.to_dict())
 85
 86    def __repr__(self):
 87        """For `print` and `pprint`"""
 88        return self.to_str()
 89
 90    def __eq__(self, other):
 91        """Returns true if both objects are equal"""
 92        if not isinstance(other, UserFilter):
 93            return False
 94
 95        return self.to_dict() == other.to_dict()
 96
 97    def __ne__(self, other):
 98        """Returns true if both objects are not equal"""
 99        if not isinstance(other, UserFilter):
100            return True
101
102        return self.to_dict() != other.to_dict()
class UserFilter:
 23class UserFilter(object):
 24    """NOTE: This class is auto generated by the swagger code generator program.
 25
 26    Do not edit the class manually.
 27    """
 28
 29    """
 30    allowed enum values
 31    """
 32    OWNED_BY_ME = "owned_by_me"
 33    SHARED_WITH_ME = "shared_with_me"
 34    ALL = "all"
 35
 36    """
 37    Attributes:
 38      swagger_types (dict): The key is attribute name
 39                            and the value is attribute type.
 40      attribute_map (dict): The key is attribute name
 41                            and the value is json key in definition.
 42    """
 43    swagger_types = {
 44    }
 45
 46    attribute_map = {
 47    }
 48
 49    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 50        """UserFilter - a model defined in Swagger"""  # noqa: E501
 51        if _configuration is None:
 52            _configuration = Configuration()
 53        self._configuration = _configuration
 54        self.discriminator = None
 55
 56    def to_dict(self):
 57        """Returns the model properties as a dict"""
 58        result = {}
 59
 60        for attr, _ in six.iteritems(self.swagger_types):
 61            value = getattr(self, attr)
 62            if isinstance(value, list):
 63                result[attr] = list(map(
 64                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
 65                    value
 66                ))
 67            elif hasattr(value, "to_dict"):
 68                result[attr] = value.to_dict()
 69            elif isinstance(value, dict):
 70                result[attr] = dict(map(
 71                    lambda item: (item[0], item[1].to_dict())
 72                    if hasattr(item[1], "to_dict") else item,
 73                    value.items()
 74                ))
 75            else:
 76                result[attr] = value
 77        if issubclass(UserFilter, dict):
 78            for key, value in self.items():
 79                result[key] = value
 80
 81        return result
 82
 83    def to_str(self):
 84        """Returns the string representation of the model"""
 85        return pprint.pformat(self.to_dict())
 86
 87    def __repr__(self):
 88        """For `print` and `pprint`"""
 89        return self.to_str()
 90
 91    def __eq__(self, other):
 92        """Returns true if both objects are equal"""
 93        if not isinstance(other, UserFilter):
 94            return False
 95
 96        return self.to_dict() == other.to_dict()
 97
 98    def __ne__(self, other):
 99        """Returns true if both objects are not equal"""
100        if not isinstance(other, UserFilter):
101            return True
102
103        return self.to_dict() != other.to_dict()

NOTE: This class is auto generated by the swagger code generator program.

Do not edit the class manually.

UserFilter(_configuration=None, **kwargs)
49    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
50        """UserFilter - a model defined in Swagger"""  # noqa: E501
51        if _configuration is None:
52            _configuration = Configuration()
53        self._configuration = _configuration
54        self.discriminator = None

UserFilter - a model defined in Swagger

OWNED_BY_ME = 'owned_by_me'
SHARED_WITH_ME = 'shared_with_me'
ALL = 'all'

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 = {}
attribute_map = {}
def to_dict(self)
56    def to_dict(self):
57        """Returns the model properties as a dict"""
58        result = {}
59
60        for attr, _ in six.iteritems(self.swagger_types):
61            value = getattr(self, attr)
62            if isinstance(value, list):
63                result[attr] = list(map(
64                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
65                    value
66                ))
67            elif hasattr(value, "to_dict"):
68                result[attr] = value.to_dict()
69            elif isinstance(value, dict):
70                result[attr] = dict(map(
71                    lambda item: (item[0], item[1].to_dict())
72                    if hasattr(item[1], "to_dict") else item,
73                    value.items()
74                ))
75            else:
76                result[attr] = value
77        if issubclass(UserFilter, dict):
78            for key, value in self.items():
79                result[key] = value
80
81        return result

Returns the model properties as a dict

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

Returns the string representation of the model