docusign_esign.models.user_info_response

DocuSign REST API

The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign. # noqa: E501

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

  1# coding: utf-8
  2
  3"""
  4    DocuSign REST API
  5
  6    The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.  # noqa: E501
  7
  8    OpenAPI spec version: v2.1
  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
 19
 20class UserInfoResponse(object):
 21    """NOTE: This class is auto generated by the swagger code generator program.
 22
 23    Do not edit the class manually.
 24    """
 25
 26    """
 27    Attributes:
 28      swagger_types (dict): The key is attribute name
 29                            and the value is attribute type.
 30      attribute_map (dict): The key is attribute name
 31                            and the value is json key in definition.
 32    """
 33    swagger_types = {
 34        'envelope_id': 'str',
 35        'language': 'str',
 36        'seal': 'Seal',
 37        'sender': 'Sender',
 38        'user': 'User'
 39    }
 40
 41    attribute_map = {
 42        'envelope_id': 'envelopeId',
 43        'language': 'language',
 44        'seal': 'seal',
 45        'sender': 'sender',
 46        'user': 'user'
 47    }
 48
 49    def __init__(self, envelope_id=None, language=None, seal=None, sender=None, user=None):  # noqa: E501
 50        """UserInfoResponse - a model defined in Swagger"""  # noqa: E501
 51
 52        self._envelope_id = None
 53        self._language = None
 54        self._seal = None
 55        self._sender = None
 56        self._user = None
 57        self.discriminator = None
 58
 59        if envelope_id is not None:
 60            self.envelope_id = envelope_id
 61        if language is not None:
 62            self.language = language
 63        if seal is not None:
 64            self.seal = seal
 65        if sender is not None:
 66            self.sender = sender
 67        if user is not None:
 68            self.user = user
 69
 70    @property
 71    def envelope_id(self):
 72        """Gets the envelope_id of this UserInfoResponse.  # noqa: E501
 73
 74        The envelope ID of the envelope status that failed to post.  # noqa: E501
 75
 76        :return: The envelope_id of this UserInfoResponse.  # noqa: E501
 77        :rtype: str
 78        """
 79        return self._envelope_id
 80
 81    @envelope_id.setter
 82    def envelope_id(self, envelope_id):
 83        """Sets the envelope_id of this UserInfoResponse.
 84
 85        The envelope ID of the envelope status that failed to post.  # noqa: E501
 86
 87        :param envelope_id: The envelope_id of this UserInfoResponse.  # noqa: E501
 88        :type: str
 89        """
 90
 91        self._envelope_id = envelope_id
 92
 93    @property
 94    def language(self):
 95        """Gets the language of this UserInfoResponse.  # noqa: E501
 96
 97          # noqa: E501
 98
 99        :return: The language of this UserInfoResponse.  # noqa: E501
100        :rtype: str
101        """
102        return self._language
103
104    @language.setter
105    def language(self, language):
106        """Sets the language of this UserInfoResponse.
107
108          # noqa: E501
109
110        :param language: The language of this UserInfoResponse.  # noqa: E501
111        :type: str
112        """
113
114        self._language = language
115
116    @property
117    def seal(self):
118        """Gets the seal of this UserInfoResponse.  # noqa: E501
119
120
121        :return: The seal of this UserInfoResponse.  # noqa: E501
122        :rtype: Seal
123        """
124        return self._seal
125
126    @seal.setter
127    def seal(self, seal):
128        """Sets the seal of this UserInfoResponse.
129
130
131        :param seal: The seal of this UserInfoResponse.  # noqa: E501
132        :type: Seal
133        """
134
135        self._seal = seal
136
137    @property
138    def sender(self):
139        """Gets the sender of this UserInfoResponse.  # noqa: E501
140
141
142        :return: The sender of this UserInfoResponse.  # noqa: E501
143        :rtype: Sender
144        """
145        return self._sender
146
147    @sender.setter
148    def sender(self, sender):
149        """Sets the sender of this UserInfoResponse.
150
151
152        :param sender: The sender of this UserInfoResponse.  # noqa: E501
153        :type: Sender
154        """
155
156        self._sender = sender
157
158    @property
159    def user(self):
160        """Gets the user of this UserInfoResponse.  # noqa: E501
161
162
163        :return: The user of this UserInfoResponse.  # noqa: E501
164        :rtype: User
165        """
166        return self._user
167
168    @user.setter
169    def user(self, user):
170        """Sets the user of this UserInfoResponse.
171
172
173        :param user: The user of this UserInfoResponse.  # noqa: E501
174        :type: User
175        """
176
177        self._user = user
178
179    def to_dict(self):
180        """Returns the model properties as a dict"""
181        result = {}
182
183        for attr, _ in six.iteritems(self.swagger_types):
184            value = getattr(self, attr)
185            if isinstance(value, list):
186                result[attr] = list(map(
187                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
188                    value
189                ))
190            elif hasattr(value, "to_dict"):
191                result[attr] = value.to_dict()
192            elif isinstance(value, dict):
193                result[attr] = dict(map(
194                    lambda item: (item[0], item[1].to_dict())
195                    if hasattr(item[1], "to_dict") else item,
196                    value.items()
197                ))
198            else:
199                result[attr] = value
200        if issubclass(UserInfoResponse, dict):
201            for key, value in self.items():
202                result[key] = value
203
204        return result
205
206    def to_str(self):
207        """Returns the string representation of the model"""
208        return pprint.pformat(self.to_dict())
209
210    def __repr__(self):
211        """For `print` and `pprint`"""
212        return self.to_str()
213
214    def __eq__(self, other):
215        """Returns true if both objects are equal"""
216        if not isinstance(other, UserInfoResponse):
217            return False
218
219        return self.__dict__ == other.__dict__
220
221    def __ne__(self, other):
222        """Returns true if both objects are not equal"""
223        return not self == other
class UserInfoResponse:
 21class UserInfoResponse(object):
 22    """NOTE: This class is auto generated by the swagger code generator program.
 23
 24    Do not edit the class manually.
 25    """
 26
 27    """
 28    Attributes:
 29      swagger_types (dict): The key is attribute name
 30                            and the value is attribute type.
 31      attribute_map (dict): The key is attribute name
 32                            and the value is json key in definition.
 33    """
 34    swagger_types = {
 35        'envelope_id': 'str',
 36        'language': 'str',
 37        'seal': 'Seal',
 38        'sender': 'Sender',
 39        'user': 'User'
 40    }
 41
 42    attribute_map = {
 43        'envelope_id': 'envelopeId',
 44        'language': 'language',
 45        'seal': 'seal',
 46        'sender': 'sender',
 47        'user': 'user'
 48    }
 49
 50    def __init__(self, envelope_id=None, language=None, seal=None, sender=None, user=None):  # noqa: E501
 51        """UserInfoResponse - a model defined in Swagger"""  # noqa: E501
 52
 53        self._envelope_id = None
 54        self._language = None
 55        self._seal = None
 56        self._sender = None
 57        self._user = None
 58        self.discriminator = None
 59
 60        if envelope_id is not None:
 61            self.envelope_id = envelope_id
 62        if language is not None:
 63            self.language = language
 64        if seal is not None:
 65            self.seal = seal
 66        if sender is not None:
 67            self.sender = sender
 68        if user is not None:
 69            self.user = user
 70
 71    @property
 72    def envelope_id(self):
 73        """Gets the envelope_id of this UserInfoResponse.  # noqa: E501
 74
 75        The envelope ID of the envelope status that failed to post.  # noqa: E501
 76
 77        :return: The envelope_id of this UserInfoResponse.  # noqa: E501
 78        :rtype: str
 79        """
 80        return self._envelope_id
 81
 82    @envelope_id.setter
 83    def envelope_id(self, envelope_id):
 84        """Sets the envelope_id of this UserInfoResponse.
 85
 86        The envelope ID of the envelope status that failed to post.  # noqa: E501
 87
 88        :param envelope_id: The envelope_id of this UserInfoResponse.  # noqa: E501
 89        :type: str
 90        """
 91
 92        self._envelope_id = envelope_id
 93
 94    @property
 95    def language(self):
 96        """Gets the language of this UserInfoResponse.  # noqa: E501
 97
 98          # noqa: E501
 99
100        :return: The language of this UserInfoResponse.  # noqa: E501
101        :rtype: str
102        """
103        return self._language
104
105    @language.setter
106    def language(self, language):
107        """Sets the language of this UserInfoResponse.
108
109          # noqa: E501
110
111        :param language: The language of this UserInfoResponse.  # noqa: E501
112        :type: str
113        """
114
115        self._language = language
116
117    @property
118    def seal(self):
119        """Gets the seal of this UserInfoResponse.  # noqa: E501
120
121
122        :return: The seal of this UserInfoResponse.  # noqa: E501
123        :rtype: Seal
124        """
125        return self._seal
126
127    @seal.setter
128    def seal(self, seal):
129        """Sets the seal of this UserInfoResponse.
130
131
132        :param seal: The seal of this UserInfoResponse.  # noqa: E501
133        :type: Seal
134        """
135
136        self._seal = seal
137
138    @property
139    def sender(self):
140        """Gets the sender of this UserInfoResponse.  # noqa: E501
141
142
143        :return: The sender of this UserInfoResponse.  # noqa: E501
144        :rtype: Sender
145        """
146        return self._sender
147
148    @sender.setter
149    def sender(self, sender):
150        """Sets the sender of this UserInfoResponse.
151
152
153        :param sender: The sender of this UserInfoResponse.  # noqa: E501
154        :type: Sender
155        """
156
157        self._sender = sender
158
159    @property
160    def user(self):
161        """Gets the user of this UserInfoResponse.  # noqa: E501
162
163
164        :return: The user of this UserInfoResponse.  # noqa: E501
165        :rtype: User
166        """
167        return self._user
168
169    @user.setter
170    def user(self, user):
171        """Sets the user of this UserInfoResponse.
172
173
174        :param user: The user of this UserInfoResponse.  # noqa: E501
175        :type: User
176        """
177
178        self._user = user
179
180    def to_dict(self):
181        """Returns the model properties as a dict"""
182        result = {}
183
184        for attr, _ in six.iteritems(self.swagger_types):
185            value = getattr(self, attr)
186            if isinstance(value, list):
187                result[attr] = list(map(
188                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
189                    value
190                ))
191            elif hasattr(value, "to_dict"):
192                result[attr] = value.to_dict()
193            elif isinstance(value, dict):
194                result[attr] = dict(map(
195                    lambda item: (item[0], item[1].to_dict())
196                    if hasattr(item[1], "to_dict") else item,
197                    value.items()
198                ))
199            else:
200                result[attr] = value
201        if issubclass(UserInfoResponse, dict):
202            for key, value in self.items():
203                result[key] = value
204
205        return result
206
207    def to_str(self):
208        """Returns the string representation of the model"""
209        return pprint.pformat(self.to_dict())
210
211    def __repr__(self):
212        """For `print` and `pprint`"""
213        return self.to_str()
214
215    def __eq__(self, other):
216        """Returns true if both objects are equal"""
217        if not isinstance(other, UserInfoResponse):
218            return False
219
220        return self.__dict__ == other.__dict__
221
222    def __ne__(self, other):
223        """Returns true if both objects are not equal"""
224        return not self == other

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

Do not edit the class manually.

UserInfoResponse(envelope_id=None, language=None, seal=None, sender=None, user=None)
50    def __init__(self, envelope_id=None, language=None, seal=None, sender=None, user=None):  # noqa: E501
51        """UserInfoResponse - a model defined in Swagger"""  # noqa: E501
52
53        self._envelope_id = None
54        self._language = None
55        self._seal = None
56        self._sender = None
57        self._user = None
58        self.discriminator = None
59
60        if envelope_id is not None:
61            self.envelope_id = envelope_id
62        if language is not None:
63            self.language = language
64        if seal is not None:
65            self.seal = seal
66        if sender is not None:
67            self.sender = sender
68        if user is not None:
69            self.user = user

UserInfoResponse - a model defined in Swagger

swagger_types = {'envelope_id': 'str', 'language': 'str', 'seal': 'Seal', 'sender': 'Sender', 'user': 'User'}
attribute_map = {'envelope_id': 'envelopeId', 'language': 'language', 'seal': 'seal', 'sender': 'sender', 'user': 'user'}
envelope_id

Gets the envelope_id of this UserInfoResponse. # noqa: E501

The envelope ID of the envelope status that failed to post. # noqa: E501

Returns

The envelope_id of this UserInfoResponse. # noqa: E501

language

Gets the language of this UserInfoResponse. # noqa: E501

# noqa: E501

Returns

The language of this UserInfoResponse. # noqa: E501

seal

Gets the seal of this UserInfoResponse. # noqa: E501

Returns

The seal of this UserInfoResponse. # noqa: E501

sender

Gets the sender of this UserInfoResponse. # noqa: E501

Returns

The sender of this UserInfoResponse. # noqa: E501

user

Gets the user of this UserInfoResponse. # noqa: E501

Returns

The user of this UserInfoResponse. # noqa: E501

def to_dict(self)
180    def to_dict(self):
181        """Returns the model properties as a dict"""
182        result = {}
183
184        for attr, _ in six.iteritems(self.swagger_types):
185            value = getattr(self, attr)
186            if isinstance(value, list):
187                result[attr] = list(map(
188                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
189                    value
190                ))
191            elif hasattr(value, "to_dict"):
192                result[attr] = value.to_dict()
193            elif isinstance(value, dict):
194                result[attr] = dict(map(
195                    lambda item: (item[0], item[1].to_dict())
196                    if hasattr(item[1], "to_dict") else item,
197                    value.items()
198                ))
199            else:
200                result[attr] = value
201        if issubclass(UserInfoResponse, dict):
202            for key, value in self.items():
203                result[key] = value
204
205        return result

Returns the model properties as a dict

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

Returns the string representation of the model