docusign_webforms.models.web_form_user_info

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 WebFormUserInfo(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    Attributes:
 30      swagger_types (dict): The key is attribute name
 31                            and the value is attribute type.
 32      attribute_map (dict): The key is attribute name
 33                            and the value is json key in definition.
 34    """
 35    swagger_types = {
 36        'user_id': 'str',
 37        'user_name': 'str'
 38    }
 39
 40    attribute_map = {
 41        'user_id': 'userId',
 42        'user_name': 'userName'
 43    }
 44
 45    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 46        """WebFormUserInfo - a model defined in Swagger"""  # noqa: E501
 47        if _configuration is None:
 48            _configuration = Configuration()
 49        self._configuration = _configuration
 50
 51        self._user_id = None
 52        self._user_name = None
 53        self.discriminator = None
 54
 55        setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None))
 56        setattr(self, "_{}".format('user_name'), kwargs.get('user_name', None))
 57
 58    @property
 59    def user_id(self):
 60        """Gets the user_id of this WebFormUserInfo.  # noqa: E501
 61
 62
 63        :return: The user_id of this WebFormUserInfo.  # noqa: E501
 64        :rtype: str
 65        """
 66        return self._user_id
 67
 68    @user_id.setter
 69    def user_id(self, user_id):
 70        """Sets the user_id of this WebFormUserInfo.
 71
 72
 73        :param user_id: The user_id of this WebFormUserInfo.  # noqa: E501
 74        :type: str
 75        """
 76
 77        self._user_id = user_id
 78
 79    @property
 80    def user_name(self):
 81        """Gets the user_name of this WebFormUserInfo.  # noqa: E501
 82
 83        Name of the user that can be displayed in the user interface.  # noqa: E501
 84
 85        :return: The user_name of this WebFormUserInfo.  # noqa: E501
 86        :rtype: str
 87        """
 88        return self._user_name
 89
 90    @user_name.setter
 91    def user_name(self, user_name):
 92        """Sets the user_name of this WebFormUserInfo.
 93
 94        Name of the user that can be displayed in the user interface.  # noqa: E501
 95
 96        :param user_name: The user_name of this WebFormUserInfo.  # noqa: E501
 97        :type: str
 98        """
 99        if (self._configuration.client_side_validation and
100                user_name is not None and len(user_name) > 150):
101            raise ValueError("Invalid value for `user_name`, length must be less than or equal to `150`")  # noqa: E501
102
103        self._user_name = user_name
104
105    def to_dict(self):
106        """Returns the model properties as a dict"""
107        result = {}
108
109        for attr, _ in six.iteritems(self.swagger_types):
110            value = getattr(self, attr)
111            if isinstance(value, list):
112                result[attr] = list(map(
113                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
114                    value
115                ))
116            elif hasattr(value, "to_dict"):
117                result[attr] = value.to_dict()
118            elif isinstance(value, dict):
119                result[attr] = dict(map(
120                    lambda item: (item[0], item[1].to_dict())
121                    if hasattr(item[1], "to_dict") else item,
122                    value.items()
123                ))
124            else:
125                result[attr] = value
126        if issubclass(WebFormUserInfo, dict):
127            for key, value in self.items():
128                result[key] = value
129
130        return result
131
132    def to_str(self):
133        """Returns the string representation of the model"""
134        return pprint.pformat(self.to_dict())
135
136    def __repr__(self):
137        """For `print` and `pprint`"""
138        return self.to_str()
139
140    def __eq__(self, other):
141        """Returns true if both objects are equal"""
142        if not isinstance(other, WebFormUserInfo):
143            return False
144
145        return self.to_dict() == other.to_dict()
146
147    def __ne__(self, other):
148        """Returns true if both objects are not equal"""
149        if not isinstance(other, WebFormUserInfo):
150            return True
151
152        return self.to_dict() != other.to_dict()
class WebFormUserInfo:
 23class WebFormUserInfo(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    Attributes:
 31      swagger_types (dict): The key is attribute name
 32                            and the value is attribute type.
 33      attribute_map (dict): The key is attribute name
 34                            and the value is json key in definition.
 35    """
 36    swagger_types = {
 37        'user_id': 'str',
 38        'user_name': 'str'
 39    }
 40
 41    attribute_map = {
 42        'user_id': 'userId',
 43        'user_name': 'userName'
 44    }
 45
 46    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 47        """WebFormUserInfo - a model defined in Swagger"""  # noqa: E501
 48        if _configuration is None:
 49            _configuration = Configuration()
 50        self._configuration = _configuration
 51
 52        self._user_id = None
 53        self._user_name = None
 54        self.discriminator = None
 55
 56        setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None))
 57        setattr(self, "_{}".format('user_name'), kwargs.get('user_name', None))
 58
 59    @property
 60    def user_id(self):
 61        """Gets the user_id of this WebFormUserInfo.  # noqa: E501
 62
 63
 64        :return: The user_id of this WebFormUserInfo.  # noqa: E501
 65        :rtype: str
 66        """
 67        return self._user_id
 68
 69    @user_id.setter
 70    def user_id(self, user_id):
 71        """Sets the user_id of this WebFormUserInfo.
 72
 73
 74        :param user_id: The user_id of this WebFormUserInfo.  # noqa: E501
 75        :type: str
 76        """
 77
 78        self._user_id = user_id
 79
 80    @property
 81    def user_name(self):
 82        """Gets the user_name of this WebFormUserInfo.  # noqa: E501
 83
 84        Name of the user that can be displayed in the user interface.  # noqa: E501
 85
 86        :return: The user_name of this WebFormUserInfo.  # noqa: E501
 87        :rtype: str
 88        """
 89        return self._user_name
 90
 91    @user_name.setter
 92    def user_name(self, user_name):
 93        """Sets the user_name of this WebFormUserInfo.
 94
 95        Name of the user that can be displayed in the user interface.  # noqa: E501
 96
 97        :param user_name: The user_name of this WebFormUserInfo.  # noqa: E501
 98        :type: str
 99        """
100        if (self._configuration.client_side_validation and
101                user_name is not None and len(user_name) > 150):
102            raise ValueError("Invalid value for `user_name`, length must be less than or equal to `150`")  # noqa: E501
103
104        self._user_name = user_name
105
106    def to_dict(self):
107        """Returns the model properties as a dict"""
108        result = {}
109
110        for attr, _ in six.iteritems(self.swagger_types):
111            value = getattr(self, attr)
112            if isinstance(value, list):
113                result[attr] = list(map(
114                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
115                    value
116                ))
117            elif hasattr(value, "to_dict"):
118                result[attr] = value.to_dict()
119            elif isinstance(value, dict):
120                result[attr] = dict(map(
121                    lambda item: (item[0], item[1].to_dict())
122                    if hasattr(item[1], "to_dict") else item,
123                    value.items()
124                ))
125            else:
126                result[attr] = value
127        if issubclass(WebFormUserInfo, dict):
128            for key, value in self.items():
129                result[key] = value
130
131        return result
132
133    def to_str(self):
134        """Returns the string representation of the model"""
135        return pprint.pformat(self.to_dict())
136
137    def __repr__(self):
138        """For `print` and `pprint`"""
139        return self.to_str()
140
141    def __eq__(self, other):
142        """Returns true if both objects are equal"""
143        if not isinstance(other, WebFormUserInfo):
144            return False
145
146        return self.to_dict() == other.to_dict()
147
148    def __ne__(self, other):
149        """Returns true if both objects are not equal"""
150        if not isinstance(other, WebFormUserInfo):
151            return True
152
153        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.

WebFormUserInfo(_configuration=None, **kwargs)
46    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
47        """WebFormUserInfo - a model defined in Swagger"""  # noqa: E501
48        if _configuration is None:
49            _configuration = Configuration()
50        self._configuration = _configuration
51
52        self._user_id = None
53        self._user_name = None
54        self.discriminator = None
55
56        setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None))
57        setattr(self, "_{}".format('user_name'), kwargs.get('user_name', None))

WebFormUserInfo - a model defined in Swagger

swagger_types = {'user_id': 'str', 'user_name': 'str'}
attribute_map = {'user_id': 'userId', 'user_name': 'userName'}
user_id

Gets the user_id of this WebFormUserInfo. # noqa: E501

Returns

The user_id of this WebFormUserInfo. # noqa: E501

user_name

Gets the user_name of this WebFormUserInfo. # noqa: E501

Name of the user that can be displayed in the user interface. # noqa: E501

Returns

The user_name of this WebFormUserInfo. # noqa: E501

def to_dict(self)
106    def to_dict(self):
107        """Returns the model properties as a dict"""
108        result = {}
109
110        for attr, _ in six.iteritems(self.swagger_types):
111            value = getattr(self, attr)
112            if isinstance(value, list):
113                result[attr] = list(map(
114                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
115                    value
116                ))
117            elif hasattr(value, "to_dict"):
118                result[attr] = value.to_dict()
119            elif isinstance(value, dict):
120                result[attr] = dict(map(
121                    lambda item: (item[0], item[1].to_dict())
122                    if hasattr(item[1], "to_dict") else item,
123                    value.items()
124                ))
125            else:
126                result[attr] = value
127        if issubclass(WebFormUserInfo, dict):
128            for key, value in self.items():
129                result[key] = value
130
131        return result

Returns the model properties as a dict

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

Returns the string representation of the model