docusign_esign.models.user_info

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
 19from docusign_esign.client.configuration import Configuration
 20
 21
 22class UserInfo(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        'account_id': 'str',
 37        'account_name': 'str',
 38        'activation_access_code': 'str',
 39        'email': 'str',
 40        'error_details': 'ErrorDetails',
 41        'ip_address': 'str',
 42        'login_status': 'str',
 43        'membership_id': 'str',
 44        'send_activation_email': 'str',
 45        'uri': 'str',
 46        'user_id': 'str',
 47        'user_name': 'str',
 48        'user_status': 'str',
 49        'user_type': 'str'
 50    }
 51
 52    attribute_map = {
 53        'account_id': 'accountId',
 54        'account_name': 'accountName',
 55        'activation_access_code': 'activationAccessCode',
 56        'email': 'email',
 57        'error_details': 'errorDetails',
 58        'ip_address': 'ipAddress',
 59        'login_status': 'loginStatus',
 60        'membership_id': 'membershipId',
 61        'send_activation_email': 'sendActivationEmail',
 62        'uri': 'uri',
 63        'user_id': 'userId',
 64        'user_name': 'userName',
 65        'user_status': 'userStatus',
 66        'user_type': 'userType'
 67    }
 68
 69    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 70        """UserInfo - a model defined in Swagger"""  # noqa: E501
 71        if _configuration is None:
 72            _configuration = Configuration()
 73        self._configuration = _configuration
 74
 75        self._account_id = None
 76        self._account_name = None
 77        self._activation_access_code = None
 78        self._email = None
 79        self._error_details = None
 80        self._ip_address = None
 81        self._login_status = None
 82        self._membership_id = None
 83        self._send_activation_email = None
 84        self._uri = None
 85        self._user_id = None
 86        self._user_name = None
 87        self._user_status = None
 88        self._user_type = None
 89        self.discriminator = None
 90
 91        setattr(self, "_{}".format('account_id'), kwargs.get('account_id', None))
 92        setattr(self, "_{}".format('account_name'), kwargs.get('account_name', None))
 93        setattr(self, "_{}".format('activation_access_code'), kwargs.get('activation_access_code', None))
 94        setattr(self, "_{}".format('email'), kwargs.get('email', None))
 95        setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None))
 96        setattr(self, "_{}".format('ip_address'), kwargs.get('ip_address', None))
 97        setattr(self, "_{}".format('login_status'), kwargs.get('login_status', None))
 98        setattr(self, "_{}".format('membership_id'), kwargs.get('membership_id', None))
 99        setattr(self, "_{}".format('send_activation_email'), kwargs.get('send_activation_email', None))
100        setattr(self, "_{}".format('uri'), kwargs.get('uri', None))
101        setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None))
102        setattr(self, "_{}".format('user_name'), kwargs.get('user_name', None))
103        setattr(self, "_{}".format('user_status'), kwargs.get('user_status', None))
104        setattr(self, "_{}".format('user_type'), kwargs.get('user_type', None))
105
106    @property
107    def account_id(self):
108        """Gets the account_id of this UserInfo.  # noqa: E501
109
110        The account ID associated with the envelope.  # noqa: E501
111
112        :return: The account_id of this UserInfo.  # noqa: E501
113        :rtype: str
114        """
115        return self._account_id
116
117    @account_id.setter
118    def account_id(self, account_id):
119        """Sets the account_id of this UserInfo.
120
121        The account ID associated with the envelope.  # noqa: E501
122
123        :param account_id: The account_id of this UserInfo.  # noqa: E501
124        :type: str
125        """
126
127        self._account_id = account_id
128
129    @property
130    def account_name(self):
131        """Gets the account_name of this UserInfo.  # noqa: E501
132
133          # noqa: E501
134
135        :return: The account_name of this UserInfo.  # noqa: E501
136        :rtype: str
137        """
138        return self._account_name
139
140    @account_name.setter
141    def account_name(self, account_name):
142        """Sets the account_name of this UserInfo.
143
144          # noqa: E501
145
146        :param account_name: The account_name of this UserInfo.  # noqa: E501
147        :type: str
148        """
149
150        self._account_name = account_name
151
152    @property
153    def activation_access_code(self):
154        """Gets the activation_access_code of this UserInfo.  # noqa: E501
155
156          # noqa: E501
157
158        :return: The activation_access_code of this UserInfo.  # noqa: E501
159        :rtype: str
160        """
161        return self._activation_access_code
162
163    @activation_access_code.setter
164    def activation_access_code(self, activation_access_code):
165        """Sets the activation_access_code of this UserInfo.
166
167          # noqa: E501
168
169        :param activation_access_code: The activation_access_code of this UserInfo.  # noqa: E501
170        :type: str
171        """
172
173        self._activation_access_code = activation_access_code
174
175    @property
176    def email(self):
177        """Gets the email of this UserInfo.  # noqa: E501
178
179          # noqa: E501
180
181        :return: The email of this UserInfo.  # noqa: E501
182        :rtype: str
183        """
184        return self._email
185
186    @email.setter
187    def email(self, email):
188        """Sets the email of this UserInfo.
189
190          # noqa: E501
191
192        :param email: The email of this UserInfo.  # noqa: E501
193        :type: str
194        """
195
196        self._email = email
197
198    @property
199    def error_details(self):
200        """Gets the error_details of this UserInfo.  # noqa: E501
201
202        Array or errors.  # noqa: E501
203
204        :return: The error_details of this UserInfo.  # noqa: E501
205        :rtype: ErrorDetails
206        """
207        return self._error_details
208
209    @error_details.setter
210    def error_details(self, error_details):
211        """Sets the error_details of this UserInfo.
212
213        Array or errors.  # noqa: E501
214
215        :param error_details: The error_details of this UserInfo.  # noqa: E501
216        :type: ErrorDetails
217        """
218
219        self._error_details = error_details
220
221    @property
222    def ip_address(self):
223        """Gets the ip_address of this UserInfo.  # noqa: E501
224
225          # noqa: E501
226
227        :return: The ip_address of this UserInfo.  # noqa: E501
228        :rtype: str
229        """
230        return self._ip_address
231
232    @ip_address.setter
233    def ip_address(self, ip_address):
234        """Sets the ip_address of this UserInfo.
235
236          # noqa: E501
237
238        :param ip_address: The ip_address of this UserInfo.  # noqa: E501
239        :type: str
240        """
241
242        self._ip_address = ip_address
243
244    @property
245    def login_status(self):
246        """Gets the login_status of this UserInfo.  # noqa: E501
247
248          # noqa: E501
249
250        :return: The login_status of this UserInfo.  # noqa: E501
251        :rtype: str
252        """
253        return self._login_status
254
255    @login_status.setter
256    def login_status(self, login_status):
257        """Sets the login_status of this UserInfo.
258
259          # noqa: E501
260
261        :param login_status: The login_status of this UserInfo.  # noqa: E501
262        :type: str
263        """
264
265        self._login_status = login_status
266
267    @property
268    def membership_id(self):
269        """Gets the membership_id of this UserInfo.  # noqa: E501
270
271          # noqa: E501
272
273        :return: The membership_id of this UserInfo.  # noqa: E501
274        :rtype: str
275        """
276        return self._membership_id
277
278    @membership_id.setter
279    def membership_id(self, membership_id):
280        """Sets the membership_id of this UserInfo.
281
282          # noqa: E501
283
284        :param membership_id: The membership_id of this UserInfo.  # noqa: E501
285        :type: str
286        """
287
288        self._membership_id = membership_id
289
290    @property
291    def send_activation_email(self):
292        """Gets the send_activation_email of this UserInfo.  # noqa: E501
293
294          # noqa: E501
295
296        :return: The send_activation_email of this UserInfo.  # noqa: E501
297        :rtype: str
298        """
299        return self._send_activation_email
300
301    @send_activation_email.setter
302    def send_activation_email(self, send_activation_email):
303        """Sets the send_activation_email of this UserInfo.
304
305          # noqa: E501
306
307        :param send_activation_email: The send_activation_email of this UserInfo.  # noqa: E501
308        :type: str
309        """
310
311        self._send_activation_email = send_activation_email
312
313    @property
314    def uri(self):
315        """Gets the uri of this UserInfo.  # noqa: E501
316
317          # noqa: E501
318
319        :return: The uri of this UserInfo.  # noqa: E501
320        :rtype: str
321        """
322        return self._uri
323
324    @uri.setter
325    def uri(self, uri):
326        """Sets the uri of this UserInfo.
327
328          # noqa: E501
329
330        :param uri: The uri of this UserInfo.  # noqa: E501
331        :type: str
332        """
333
334        self._uri = uri
335
336    @property
337    def user_id(self):
338        """Gets the user_id of this UserInfo.  # noqa: E501
339
340          # noqa: E501
341
342        :return: The user_id of this UserInfo.  # noqa: E501
343        :rtype: str
344        """
345        return self._user_id
346
347    @user_id.setter
348    def user_id(self, user_id):
349        """Sets the user_id of this UserInfo.
350
351          # noqa: E501
352
353        :param user_id: The user_id of this UserInfo.  # noqa: E501
354        :type: str
355        """
356
357        self._user_id = user_id
358
359    @property
360    def user_name(self):
361        """Gets the user_name of this UserInfo.  # noqa: E501
362
363          # noqa: E501
364
365        :return: The user_name of this UserInfo.  # noqa: E501
366        :rtype: str
367        """
368        return self._user_name
369
370    @user_name.setter
371    def user_name(self, user_name):
372        """Sets the user_name of this UserInfo.
373
374          # noqa: E501
375
376        :param user_name: The user_name of this UserInfo.  # noqa: E501
377        :type: str
378        """
379
380        self._user_name = user_name
381
382    @property
383    def user_status(self):
384        """Gets the user_status of this UserInfo.  # noqa: E501
385
386          # noqa: E501
387
388        :return: The user_status of this UserInfo.  # noqa: E501
389        :rtype: str
390        """
391        return self._user_status
392
393    @user_status.setter
394    def user_status(self, user_status):
395        """Sets the user_status of this UserInfo.
396
397          # noqa: E501
398
399        :param user_status: The user_status of this UserInfo.  # noqa: E501
400        :type: str
401        """
402
403        self._user_status = user_status
404
405    @property
406    def user_type(self):
407        """Gets the user_type of this UserInfo.  # noqa: E501
408
409          # noqa: E501
410
411        :return: The user_type of this UserInfo.  # noqa: E501
412        :rtype: str
413        """
414        return self._user_type
415
416    @user_type.setter
417    def user_type(self, user_type):
418        """Sets the user_type of this UserInfo.
419
420          # noqa: E501
421
422        :param user_type: The user_type of this UserInfo.  # noqa: E501
423        :type: str
424        """
425
426        self._user_type = user_type
427
428    def to_dict(self):
429        """Returns the model properties as a dict"""
430        result = {}
431
432        for attr, _ in six.iteritems(self.swagger_types):
433            value = getattr(self, attr)
434            if isinstance(value, list):
435                result[attr] = list(map(
436                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
437                    value
438                ))
439            elif hasattr(value, "to_dict"):
440                result[attr] = value.to_dict()
441            elif isinstance(value, dict):
442                result[attr] = dict(map(
443                    lambda item: (item[0], item[1].to_dict())
444                    if hasattr(item[1], "to_dict") else item,
445                    value.items()
446                ))
447            else:
448                result[attr] = value
449        if issubclass(UserInfo, dict):
450            for key, value in self.items():
451                result[key] = value
452
453        return result
454
455    def to_str(self):
456        """Returns the string representation of the model"""
457        return pprint.pformat(self.to_dict())
458
459    def __repr__(self):
460        """For `print` and `pprint`"""
461        return self.to_str()
462
463    def __eq__(self, other):
464        """Returns true if both objects are equal"""
465        if not isinstance(other, UserInfo):
466            return False
467
468        return self.to_dict() == other.to_dict()
469
470    def __ne__(self, other):
471        """Returns true if both objects are not equal"""
472        if not isinstance(other, UserInfo):
473            return True
474
475        return self.to_dict() != other.to_dict()
class UserInfo:
 23class UserInfo(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        'account_id': 'str',
 38        'account_name': 'str',
 39        'activation_access_code': 'str',
 40        'email': 'str',
 41        'error_details': 'ErrorDetails',
 42        'ip_address': 'str',
 43        'login_status': 'str',
 44        'membership_id': 'str',
 45        'send_activation_email': 'str',
 46        'uri': 'str',
 47        'user_id': 'str',
 48        'user_name': 'str',
 49        'user_status': 'str',
 50        'user_type': 'str'
 51    }
 52
 53    attribute_map = {
 54        'account_id': 'accountId',
 55        'account_name': 'accountName',
 56        'activation_access_code': 'activationAccessCode',
 57        'email': 'email',
 58        'error_details': 'errorDetails',
 59        'ip_address': 'ipAddress',
 60        'login_status': 'loginStatus',
 61        'membership_id': 'membershipId',
 62        'send_activation_email': 'sendActivationEmail',
 63        'uri': 'uri',
 64        'user_id': 'userId',
 65        'user_name': 'userName',
 66        'user_status': 'userStatus',
 67        'user_type': 'userType'
 68    }
 69
 70    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 71        """UserInfo - a model defined in Swagger"""  # noqa: E501
 72        if _configuration is None:
 73            _configuration = Configuration()
 74        self._configuration = _configuration
 75
 76        self._account_id = None
 77        self._account_name = None
 78        self._activation_access_code = None
 79        self._email = None
 80        self._error_details = None
 81        self._ip_address = None
 82        self._login_status = None
 83        self._membership_id = None
 84        self._send_activation_email = None
 85        self._uri = None
 86        self._user_id = None
 87        self._user_name = None
 88        self._user_status = None
 89        self._user_type = None
 90        self.discriminator = None
 91
 92        setattr(self, "_{}".format('account_id'), kwargs.get('account_id', None))
 93        setattr(self, "_{}".format('account_name'), kwargs.get('account_name', None))
 94        setattr(self, "_{}".format('activation_access_code'), kwargs.get('activation_access_code', None))
 95        setattr(self, "_{}".format('email'), kwargs.get('email', None))
 96        setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None))
 97        setattr(self, "_{}".format('ip_address'), kwargs.get('ip_address', None))
 98        setattr(self, "_{}".format('login_status'), kwargs.get('login_status', None))
 99        setattr(self, "_{}".format('membership_id'), kwargs.get('membership_id', None))
100        setattr(self, "_{}".format('send_activation_email'), kwargs.get('send_activation_email', None))
101        setattr(self, "_{}".format('uri'), kwargs.get('uri', None))
102        setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None))
103        setattr(self, "_{}".format('user_name'), kwargs.get('user_name', None))
104        setattr(self, "_{}".format('user_status'), kwargs.get('user_status', None))
105        setattr(self, "_{}".format('user_type'), kwargs.get('user_type', None))
106
107    @property
108    def account_id(self):
109        """Gets the account_id of this UserInfo.  # noqa: E501
110
111        The account ID associated with the envelope.  # noqa: E501
112
113        :return: The account_id of this UserInfo.  # noqa: E501
114        :rtype: str
115        """
116        return self._account_id
117
118    @account_id.setter
119    def account_id(self, account_id):
120        """Sets the account_id of this UserInfo.
121
122        The account ID associated with the envelope.  # noqa: E501
123
124        :param account_id: The account_id of this UserInfo.  # noqa: E501
125        :type: str
126        """
127
128        self._account_id = account_id
129
130    @property
131    def account_name(self):
132        """Gets the account_name of this UserInfo.  # noqa: E501
133
134          # noqa: E501
135
136        :return: The account_name of this UserInfo.  # noqa: E501
137        :rtype: str
138        """
139        return self._account_name
140
141    @account_name.setter
142    def account_name(self, account_name):
143        """Sets the account_name of this UserInfo.
144
145          # noqa: E501
146
147        :param account_name: The account_name of this UserInfo.  # noqa: E501
148        :type: str
149        """
150
151        self._account_name = account_name
152
153    @property
154    def activation_access_code(self):
155        """Gets the activation_access_code of this UserInfo.  # noqa: E501
156
157          # noqa: E501
158
159        :return: The activation_access_code of this UserInfo.  # noqa: E501
160        :rtype: str
161        """
162        return self._activation_access_code
163
164    @activation_access_code.setter
165    def activation_access_code(self, activation_access_code):
166        """Sets the activation_access_code of this UserInfo.
167
168          # noqa: E501
169
170        :param activation_access_code: The activation_access_code of this UserInfo.  # noqa: E501
171        :type: str
172        """
173
174        self._activation_access_code = activation_access_code
175
176    @property
177    def email(self):
178        """Gets the email of this UserInfo.  # noqa: E501
179
180          # noqa: E501
181
182        :return: The email of this UserInfo.  # noqa: E501
183        :rtype: str
184        """
185        return self._email
186
187    @email.setter
188    def email(self, email):
189        """Sets the email of this UserInfo.
190
191          # noqa: E501
192
193        :param email: The email of this UserInfo.  # noqa: E501
194        :type: str
195        """
196
197        self._email = email
198
199    @property
200    def error_details(self):
201        """Gets the error_details of this UserInfo.  # noqa: E501
202
203        Array or errors.  # noqa: E501
204
205        :return: The error_details of this UserInfo.  # noqa: E501
206        :rtype: ErrorDetails
207        """
208        return self._error_details
209
210    @error_details.setter
211    def error_details(self, error_details):
212        """Sets the error_details of this UserInfo.
213
214        Array or errors.  # noqa: E501
215
216        :param error_details: The error_details of this UserInfo.  # noqa: E501
217        :type: ErrorDetails
218        """
219
220        self._error_details = error_details
221
222    @property
223    def ip_address(self):
224        """Gets the ip_address of this UserInfo.  # noqa: E501
225
226          # noqa: E501
227
228        :return: The ip_address of this UserInfo.  # noqa: E501
229        :rtype: str
230        """
231        return self._ip_address
232
233    @ip_address.setter
234    def ip_address(self, ip_address):
235        """Sets the ip_address of this UserInfo.
236
237          # noqa: E501
238
239        :param ip_address: The ip_address of this UserInfo.  # noqa: E501
240        :type: str
241        """
242
243        self._ip_address = ip_address
244
245    @property
246    def login_status(self):
247        """Gets the login_status of this UserInfo.  # noqa: E501
248
249          # noqa: E501
250
251        :return: The login_status of this UserInfo.  # noqa: E501
252        :rtype: str
253        """
254        return self._login_status
255
256    @login_status.setter
257    def login_status(self, login_status):
258        """Sets the login_status of this UserInfo.
259
260          # noqa: E501
261
262        :param login_status: The login_status of this UserInfo.  # noqa: E501
263        :type: str
264        """
265
266        self._login_status = login_status
267
268    @property
269    def membership_id(self):
270        """Gets the membership_id of this UserInfo.  # noqa: E501
271
272          # noqa: E501
273
274        :return: The membership_id of this UserInfo.  # noqa: E501
275        :rtype: str
276        """
277        return self._membership_id
278
279    @membership_id.setter
280    def membership_id(self, membership_id):
281        """Sets the membership_id of this UserInfo.
282
283          # noqa: E501
284
285        :param membership_id: The membership_id of this UserInfo.  # noqa: E501
286        :type: str
287        """
288
289        self._membership_id = membership_id
290
291    @property
292    def send_activation_email(self):
293        """Gets the send_activation_email of this UserInfo.  # noqa: E501
294
295          # noqa: E501
296
297        :return: The send_activation_email of this UserInfo.  # noqa: E501
298        :rtype: str
299        """
300        return self._send_activation_email
301
302    @send_activation_email.setter
303    def send_activation_email(self, send_activation_email):
304        """Sets the send_activation_email of this UserInfo.
305
306          # noqa: E501
307
308        :param send_activation_email: The send_activation_email of this UserInfo.  # noqa: E501
309        :type: str
310        """
311
312        self._send_activation_email = send_activation_email
313
314    @property
315    def uri(self):
316        """Gets the uri of this UserInfo.  # noqa: E501
317
318          # noqa: E501
319
320        :return: The uri of this UserInfo.  # noqa: E501
321        :rtype: str
322        """
323        return self._uri
324
325    @uri.setter
326    def uri(self, uri):
327        """Sets the uri of this UserInfo.
328
329          # noqa: E501
330
331        :param uri: The uri of this UserInfo.  # noqa: E501
332        :type: str
333        """
334
335        self._uri = uri
336
337    @property
338    def user_id(self):
339        """Gets the user_id of this UserInfo.  # noqa: E501
340
341          # noqa: E501
342
343        :return: The user_id of this UserInfo.  # noqa: E501
344        :rtype: str
345        """
346        return self._user_id
347
348    @user_id.setter
349    def user_id(self, user_id):
350        """Sets the user_id of this UserInfo.
351
352          # noqa: E501
353
354        :param user_id: The user_id of this UserInfo.  # noqa: E501
355        :type: str
356        """
357
358        self._user_id = user_id
359
360    @property
361    def user_name(self):
362        """Gets the user_name of this UserInfo.  # noqa: E501
363
364          # noqa: E501
365
366        :return: The user_name of this UserInfo.  # noqa: E501
367        :rtype: str
368        """
369        return self._user_name
370
371    @user_name.setter
372    def user_name(self, user_name):
373        """Sets the user_name of this UserInfo.
374
375          # noqa: E501
376
377        :param user_name: The user_name of this UserInfo.  # noqa: E501
378        :type: str
379        """
380
381        self._user_name = user_name
382
383    @property
384    def user_status(self):
385        """Gets the user_status of this UserInfo.  # noqa: E501
386
387          # noqa: E501
388
389        :return: The user_status of this UserInfo.  # noqa: E501
390        :rtype: str
391        """
392        return self._user_status
393
394    @user_status.setter
395    def user_status(self, user_status):
396        """Sets the user_status of this UserInfo.
397
398          # noqa: E501
399
400        :param user_status: The user_status of this UserInfo.  # noqa: E501
401        :type: str
402        """
403
404        self._user_status = user_status
405
406    @property
407    def user_type(self):
408        """Gets the user_type of this UserInfo.  # noqa: E501
409
410          # noqa: E501
411
412        :return: The user_type of this UserInfo.  # noqa: E501
413        :rtype: str
414        """
415        return self._user_type
416
417    @user_type.setter
418    def user_type(self, user_type):
419        """Sets the user_type of this UserInfo.
420
421          # noqa: E501
422
423        :param user_type: The user_type of this UserInfo.  # noqa: E501
424        :type: str
425        """
426
427        self._user_type = user_type
428
429    def to_dict(self):
430        """Returns the model properties as a dict"""
431        result = {}
432
433        for attr, _ in six.iteritems(self.swagger_types):
434            value = getattr(self, attr)
435            if isinstance(value, list):
436                result[attr] = list(map(
437                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
438                    value
439                ))
440            elif hasattr(value, "to_dict"):
441                result[attr] = value.to_dict()
442            elif isinstance(value, dict):
443                result[attr] = dict(map(
444                    lambda item: (item[0], item[1].to_dict())
445                    if hasattr(item[1], "to_dict") else item,
446                    value.items()
447                ))
448            else:
449                result[attr] = value
450        if issubclass(UserInfo, dict):
451            for key, value in self.items():
452                result[key] = value
453
454        return result
455
456    def to_str(self):
457        """Returns the string representation of the model"""
458        return pprint.pformat(self.to_dict())
459
460    def __repr__(self):
461        """For `print` and `pprint`"""
462        return self.to_str()
463
464    def __eq__(self, other):
465        """Returns true if both objects are equal"""
466        if not isinstance(other, UserInfo):
467            return False
468
469        return self.to_dict() == other.to_dict()
470
471    def __ne__(self, other):
472        """Returns true if both objects are not equal"""
473        if not isinstance(other, UserInfo):
474            return True
475
476        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.

UserInfo(_configuration=None, **kwargs)
 70    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 71        """UserInfo - a model defined in Swagger"""  # noqa: E501
 72        if _configuration is None:
 73            _configuration = Configuration()
 74        self._configuration = _configuration
 75
 76        self._account_id = None
 77        self._account_name = None
 78        self._activation_access_code = None
 79        self._email = None
 80        self._error_details = None
 81        self._ip_address = None
 82        self._login_status = None
 83        self._membership_id = None
 84        self._send_activation_email = None
 85        self._uri = None
 86        self._user_id = None
 87        self._user_name = None
 88        self._user_status = None
 89        self._user_type = None
 90        self.discriminator = None
 91
 92        setattr(self, "_{}".format('account_id'), kwargs.get('account_id', None))
 93        setattr(self, "_{}".format('account_name'), kwargs.get('account_name', None))
 94        setattr(self, "_{}".format('activation_access_code'), kwargs.get('activation_access_code', None))
 95        setattr(self, "_{}".format('email'), kwargs.get('email', None))
 96        setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None))
 97        setattr(self, "_{}".format('ip_address'), kwargs.get('ip_address', None))
 98        setattr(self, "_{}".format('login_status'), kwargs.get('login_status', None))
 99        setattr(self, "_{}".format('membership_id'), kwargs.get('membership_id', None))
100        setattr(self, "_{}".format('send_activation_email'), kwargs.get('send_activation_email', None))
101        setattr(self, "_{}".format('uri'), kwargs.get('uri', None))
102        setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None))
103        setattr(self, "_{}".format('user_name'), kwargs.get('user_name', None))
104        setattr(self, "_{}".format('user_status'), kwargs.get('user_status', None))
105        setattr(self, "_{}".format('user_type'), kwargs.get('user_type', None))

UserInfo - a model defined in Swagger

swagger_types = {'account_id': 'str', 'account_name': 'str', 'activation_access_code': 'str', 'email': 'str', 'error_details': 'ErrorDetails', 'ip_address': 'str', 'login_status': 'str', 'membership_id': 'str', 'send_activation_email': 'str', 'uri': 'str', 'user_id': 'str', 'user_name': 'str', 'user_status': 'str', 'user_type': 'str'}
attribute_map = {'account_id': 'accountId', 'account_name': 'accountName', 'activation_access_code': 'activationAccessCode', 'email': 'email', 'error_details': 'errorDetails', 'ip_address': 'ipAddress', 'login_status': 'loginStatus', 'membership_id': 'membershipId', 'send_activation_email': 'sendActivationEmail', 'uri': 'uri', 'user_id': 'userId', 'user_name': 'userName', 'user_status': 'userStatus', 'user_type': 'userType'}
account_id

Gets the account_id of this UserInfo. # noqa: E501

The account ID associated with the envelope. # noqa: E501

Returns

The account_id of this UserInfo. # noqa: E501

account_name

Gets the account_name of this UserInfo. # noqa: E501

# noqa: E501

Returns

The account_name of this UserInfo. # noqa: E501

activation_access_code

Gets the activation_access_code of this UserInfo. # noqa: E501

# noqa: E501

Returns

The activation_access_code of this UserInfo. # noqa: E501

email

Gets the email of this UserInfo. # noqa: E501

# noqa: E501

Returns

The email of this UserInfo. # noqa: E501

error_details

Gets the error_details of this UserInfo. # noqa: E501

Array or errors. # noqa: E501

Returns

The error_details of this UserInfo. # noqa: E501

ip_address

Gets the ip_address of this UserInfo. # noqa: E501

# noqa: E501

Returns

The ip_address of this UserInfo. # noqa: E501

login_status

Gets the login_status of this UserInfo. # noqa: E501

# noqa: E501

Returns

The login_status of this UserInfo. # noqa: E501

membership_id

Gets the membership_id of this UserInfo. # noqa: E501

# noqa: E501

Returns

The membership_id of this UserInfo. # noqa: E501

send_activation_email

Gets the send_activation_email of this UserInfo. # noqa: E501

# noqa: E501

Returns

The send_activation_email of this UserInfo. # noqa: E501

uri

Gets the uri of this UserInfo. # noqa: E501

# noqa: E501

Returns

The uri of this UserInfo. # noqa: E501

user_id

Gets the user_id of this UserInfo. # noqa: E501

# noqa: E501

Returns

The user_id of this UserInfo. # noqa: E501

user_name

Gets the user_name of this UserInfo. # noqa: E501

# noqa: E501

Returns

The user_name of this UserInfo. # noqa: E501

user_status

Gets the user_status of this UserInfo. # noqa: E501

# noqa: E501

Returns

The user_status of this UserInfo. # noqa: E501

user_type

Gets the user_type of this UserInfo. # noqa: E501

# noqa: E501

Returns

The user_type of this UserInfo. # noqa: E501

def to_dict(self)
429    def to_dict(self):
430        """Returns the model properties as a dict"""
431        result = {}
432
433        for attr, _ in six.iteritems(self.swagger_types):
434            value = getattr(self, attr)
435            if isinstance(value, list):
436                result[attr] = list(map(
437                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
438                    value
439                ))
440            elif hasattr(value, "to_dict"):
441                result[attr] = value.to_dict()
442            elif isinstance(value, dict):
443                result[attr] = dict(map(
444                    lambda item: (item[0], item[1].to_dict())
445                    if hasattr(item[1], "to_dict") else item,
446                    value.items()
447                ))
448            else:
449                result[attr] = value
450        if issubclass(UserInfo, dict):
451            for key, value in self.items():
452                result[key] = value
453
454        return result

Returns the model properties as a dict

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

Returns the string representation of the model