docusign_esign.models.workspace_user

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 WorkspaceUser(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        'active_since': 'str',
 39        'created': 'str',
 40        'created_by_id': 'str',
 41        'email': 'str',
 42        'error_details': 'ErrorDetails',
 43        'invitation_email_blurb': 'str',
 44        'invitation_email_subject': 'str',
 45        'last_modified': 'str',
 46        'last_modified_by_id': 'str',
 47        'status': 'str',
 48        'type': 'str',
 49        'user_id': 'str',
 50        'user_name': 'str',
 51        'workspace_id': 'str',
 52        'workspace_user_base_url': 'str',
 53        'workspace_user_id': 'str',
 54        'workspace_user_uri': 'str'
 55    }
 56
 57    attribute_map = {
 58        'account_id': 'accountId',
 59        'account_name': 'accountName',
 60        'active_since': 'activeSince',
 61        'created': 'created',
 62        'created_by_id': 'createdById',
 63        'email': 'email',
 64        'error_details': 'errorDetails',
 65        'invitation_email_blurb': 'invitationEmailBlurb',
 66        'invitation_email_subject': 'invitationEmailSubject',
 67        'last_modified': 'lastModified',
 68        'last_modified_by_id': 'lastModifiedById',
 69        'status': 'status',
 70        'type': 'type',
 71        'user_id': 'userId',
 72        'user_name': 'userName',
 73        'workspace_id': 'workspaceId',
 74        'workspace_user_base_url': 'workspaceUserBaseUrl',
 75        'workspace_user_id': 'workspaceUserId',
 76        'workspace_user_uri': 'workspaceUserUri'
 77    }
 78
 79    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 80        """WorkspaceUser - a model defined in Swagger"""  # noqa: E501
 81        if _configuration is None:
 82            _configuration = Configuration()
 83        self._configuration = _configuration
 84
 85        self._account_id = None
 86        self._account_name = None
 87        self._active_since = None
 88        self._created = None
 89        self._created_by_id = None
 90        self._email = None
 91        self._error_details = None
 92        self._invitation_email_blurb = None
 93        self._invitation_email_subject = None
 94        self._last_modified = None
 95        self._last_modified_by_id = None
 96        self._status = None
 97        self._type = None
 98        self._user_id = None
 99        self._user_name = None
100        self._workspace_id = None
101        self._workspace_user_base_url = None
102        self._workspace_user_id = None
103        self._workspace_user_uri = None
104        self.discriminator = None
105
106        setattr(self, "_{}".format('account_id'), kwargs.get('account_id', None))
107        setattr(self, "_{}".format('account_name'), kwargs.get('account_name', None))
108        setattr(self, "_{}".format('active_since'), kwargs.get('active_since', None))
109        setattr(self, "_{}".format('created'), kwargs.get('created', None))
110        setattr(self, "_{}".format('created_by_id'), kwargs.get('created_by_id', None))
111        setattr(self, "_{}".format('email'), kwargs.get('email', None))
112        setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None))
113        setattr(self, "_{}".format('invitation_email_blurb'), kwargs.get('invitation_email_blurb', None))
114        setattr(self, "_{}".format('invitation_email_subject'), kwargs.get('invitation_email_subject', None))
115        setattr(self, "_{}".format('last_modified'), kwargs.get('last_modified', None))
116        setattr(self, "_{}".format('last_modified_by_id'), kwargs.get('last_modified_by_id', None))
117        setattr(self, "_{}".format('status'), kwargs.get('status', None))
118        setattr(self, "_{}".format('type'), kwargs.get('type', None))
119        setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None))
120        setattr(self, "_{}".format('user_name'), kwargs.get('user_name', None))
121        setattr(self, "_{}".format('workspace_id'), kwargs.get('workspace_id', None))
122        setattr(self, "_{}".format('workspace_user_base_url'), kwargs.get('workspace_user_base_url', None))
123        setattr(self, "_{}".format('workspace_user_id'), kwargs.get('workspace_user_id', None))
124        setattr(self, "_{}".format('workspace_user_uri'), kwargs.get('workspace_user_uri', None))
125
126    @property
127    def account_id(self):
128        """Gets the account_id of this WorkspaceUser.  # noqa: E501
129
130        The account ID associated with the envelope.  # noqa: E501
131
132        :return: The account_id of this WorkspaceUser.  # noqa: E501
133        :rtype: str
134        """
135        return self._account_id
136
137    @account_id.setter
138    def account_id(self, account_id):
139        """Sets the account_id of this WorkspaceUser.
140
141        The account ID associated with the envelope.  # noqa: E501
142
143        :param account_id: The account_id of this WorkspaceUser.  # noqa: E501
144        :type: str
145        """
146
147        self._account_id = account_id
148
149    @property
150    def account_name(self):
151        """Gets the account_name of this WorkspaceUser.  # noqa: E501
152
153        The name of the account that the workspace user belongs to.  # noqa: E501
154
155        :return: The account_name of this WorkspaceUser.  # noqa: E501
156        :rtype: str
157        """
158        return self._account_name
159
160    @account_name.setter
161    def account_name(self, account_name):
162        """Sets the account_name of this WorkspaceUser.
163
164        The name of the account that the workspace user belongs to.  # noqa: E501
165
166        :param account_name: The account_name of this WorkspaceUser.  # noqa: E501
167        :type: str
168        """
169
170        self._account_name = account_name
171
172    @property
173    def active_since(self):
174        """Gets the active_since of this WorkspaceUser.  # noqa: E501
175
176          # noqa: E501
177
178        :return: The active_since of this WorkspaceUser.  # noqa: E501
179        :rtype: str
180        """
181        return self._active_since
182
183    @active_since.setter
184    def active_since(self, active_since):
185        """Sets the active_since of this WorkspaceUser.
186
187          # noqa: E501
188
189        :param active_since: The active_since of this WorkspaceUser.  # noqa: E501
190        :type: str
191        """
192
193        self._active_since = active_since
194
195    @property
196    def created(self):
197        """Gets the created of this WorkspaceUser.  # noqa: E501
198
199        The UTC DateTime when the workspace user was created.  # noqa: E501
200
201        :return: The created of this WorkspaceUser.  # noqa: E501
202        :rtype: str
203        """
204        return self._created
205
206    @created.setter
207    def created(self, created):
208        """Sets the created of this WorkspaceUser.
209
210        The UTC DateTime when the workspace user was created.  # noqa: E501
211
212        :param created: The created of this WorkspaceUser.  # noqa: E501
213        :type: str
214        """
215
216        self._created = created
217
218    @property
219    def created_by_id(self):
220        """Gets the created_by_id of this WorkspaceUser.  # noqa: E501
221
222          # noqa: E501
223
224        :return: The created_by_id of this WorkspaceUser.  # noqa: E501
225        :rtype: str
226        """
227        return self._created_by_id
228
229    @created_by_id.setter
230    def created_by_id(self, created_by_id):
231        """Sets the created_by_id of this WorkspaceUser.
232
233          # noqa: E501
234
235        :param created_by_id: The created_by_id of this WorkspaceUser.  # noqa: E501
236        :type: str
237        """
238
239        self._created_by_id = created_by_id
240
241    @property
242    def email(self):
243        """Gets the email of this WorkspaceUser.  # noqa: E501
244
245          # noqa: E501
246
247        :return: The email of this WorkspaceUser.  # noqa: E501
248        :rtype: str
249        """
250        return self._email
251
252    @email.setter
253    def email(self, email):
254        """Sets the email of this WorkspaceUser.
255
256          # noqa: E501
257
258        :param email: The email of this WorkspaceUser.  # noqa: E501
259        :type: str
260        """
261
262        self._email = email
263
264    @property
265    def error_details(self):
266        """Gets the error_details of this WorkspaceUser.  # noqa: E501
267
268        Array or errors.  # noqa: E501
269
270        :return: The error_details of this WorkspaceUser.  # noqa: E501
271        :rtype: ErrorDetails
272        """
273        return self._error_details
274
275    @error_details.setter
276    def error_details(self, error_details):
277        """Sets the error_details of this WorkspaceUser.
278
279        Array or errors.  # noqa: E501
280
281        :param error_details: The error_details of this WorkspaceUser.  # noqa: E501
282        :type: ErrorDetails
283        """
284
285        self._error_details = error_details
286
287    @property
288    def invitation_email_blurb(self):
289        """Gets the invitation_email_blurb of this WorkspaceUser.  # noqa: E501
290
291          # noqa: E501
292
293        :return: The invitation_email_blurb of this WorkspaceUser.  # noqa: E501
294        :rtype: str
295        """
296        return self._invitation_email_blurb
297
298    @invitation_email_blurb.setter
299    def invitation_email_blurb(self, invitation_email_blurb):
300        """Sets the invitation_email_blurb of this WorkspaceUser.
301
302          # noqa: E501
303
304        :param invitation_email_blurb: The invitation_email_blurb of this WorkspaceUser.  # noqa: E501
305        :type: str
306        """
307
308        self._invitation_email_blurb = invitation_email_blurb
309
310    @property
311    def invitation_email_subject(self):
312        """Gets the invitation_email_subject of this WorkspaceUser.  # noqa: E501
313
314          # noqa: E501
315
316        :return: The invitation_email_subject of this WorkspaceUser.  # noqa: E501
317        :rtype: str
318        """
319        return self._invitation_email_subject
320
321    @invitation_email_subject.setter
322    def invitation_email_subject(self, invitation_email_subject):
323        """Sets the invitation_email_subject of this WorkspaceUser.
324
325          # noqa: E501
326
327        :param invitation_email_subject: The invitation_email_subject of this WorkspaceUser.  # noqa: E501
328        :type: str
329        """
330
331        self._invitation_email_subject = invitation_email_subject
332
333    @property
334    def last_modified(self):
335        """Gets the last_modified of this WorkspaceUser.  # noqa: E501
336
337        Utc date and time the comment was last updated (can only be done by creator.)  # noqa: E501
338
339        :return: The last_modified of this WorkspaceUser.  # noqa: E501
340        :rtype: str
341        """
342        return self._last_modified
343
344    @last_modified.setter
345    def last_modified(self, last_modified):
346        """Sets the last_modified of this WorkspaceUser.
347
348        Utc date and time the comment was last updated (can only be done by creator.)  # noqa: E501
349
350        :param last_modified: The last_modified of this WorkspaceUser.  # noqa: E501
351        :type: str
352        """
353
354        self._last_modified = last_modified
355
356    @property
357    def last_modified_by_id(self):
358        """Gets the last_modified_by_id of this WorkspaceUser.  # noqa: E501
359
360          # noqa: E501
361
362        :return: The last_modified_by_id of this WorkspaceUser.  # noqa: E501
363        :rtype: str
364        """
365        return self._last_modified_by_id
366
367    @last_modified_by_id.setter
368    def last_modified_by_id(self, last_modified_by_id):
369        """Sets the last_modified_by_id of this WorkspaceUser.
370
371          # noqa: E501
372
373        :param last_modified_by_id: The last_modified_by_id of this WorkspaceUser.  # noqa: E501
374        :type: str
375        """
376
377        self._last_modified_by_id = last_modified_by_id
378
379    @property
380    def status(self):
381        """Gets the status of this WorkspaceUser.  # noqa: E501
382
383        Indicates the envelope status. Valid values are:  * sent - The envelope is sent to the recipients.  * created - The envelope is saved as a draft and can be modified and sent later.  # noqa: E501
384
385        :return: The status of this WorkspaceUser.  # noqa: E501
386        :rtype: str
387        """
388        return self._status
389
390    @status.setter
391    def status(self, status):
392        """Sets the status of this WorkspaceUser.
393
394        Indicates the envelope status. Valid values are:  * sent - The envelope is sent to the recipients.  * created - The envelope is saved as a draft and can be modified and sent later.  # noqa: E501
395
396        :param status: The status of this WorkspaceUser.  # noqa: E501
397        :type: str
398        """
399
400        self._status = status
401
402    @property
403    def type(self):
404        """Gets the type of this WorkspaceUser.  # noqa: E501
405
406        Type of the user. Valid values: type_owner, type_participant.  # noqa: E501
407
408        :return: The type of this WorkspaceUser.  # noqa: E501
409        :rtype: str
410        """
411        return self._type
412
413    @type.setter
414    def type(self, type):
415        """Sets the type of this WorkspaceUser.
416
417        Type of the user. Valid values: type_owner, type_participant.  # noqa: E501
418
419        :param type: The type of this WorkspaceUser.  # noqa: E501
420        :type: str
421        """
422
423        self._type = type
424
425    @property
426    def user_id(self):
427        """Gets the user_id of this WorkspaceUser.  # noqa: E501
428
429          # noqa: E501
430
431        :return: The user_id of this WorkspaceUser.  # noqa: E501
432        :rtype: str
433        """
434        return self._user_id
435
436    @user_id.setter
437    def user_id(self, user_id):
438        """Sets the user_id of this WorkspaceUser.
439
440          # noqa: E501
441
442        :param user_id: The user_id of this WorkspaceUser.  # noqa: E501
443        :type: str
444        """
445
446        self._user_id = user_id
447
448    @property
449    def user_name(self):
450        """Gets the user_name of this WorkspaceUser.  # noqa: E501
451
452          # noqa: E501
453
454        :return: The user_name of this WorkspaceUser.  # noqa: E501
455        :rtype: str
456        """
457        return self._user_name
458
459    @user_name.setter
460    def user_name(self, user_name):
461        """Sets the user_name of this WorkspaceUser.
462
463          # noqa: E501
464
465        :param user_name: The user_name of this WorkspaceUser.  # noqa: E501
466        :type: str
467        """
468
469        self._user_name = user_name
470
471    @property
472    def workspace_id(self):
473        """Gets the workspace_id of this WorkspaceUser.  # noqa: E501
474
475          # noqa: E501
476
477        :return: The workspace_id of this WorkspaceUser.  # noqa: E501
478        :rtype: str
479        """
480        return self._workspace_id
481
482    @workspace_id.setter
483    def workspace_id(self, workspace_id):
484        """Sets the workspace_id of this WorkspaceUser.
485
486          # noqa: E501
487
488        :param workspace_id: The workspace_id of this WorkspaceUser.  # noqa: E501
489        :type: str
490        """
491
492        self._workspace_id = workspace_id
493
494    @property
495    def workspace_user_base_url(self):
496        """Gets the workspace_user_base_url of this WorkspaceUser.  # noqa: E501
497
498        The relative URI that may be used to access a workspace user.  # noqa: E501
499
500        :return: The workspace_user_base_url of this WorkspaceUser.  # noqa: E501
501        :rtype: str
502        """
503        return self._workspace_user_base_url
504
505    @workspace_user_base_url.setter
506    def workspace_user_base_url(self, workspace_user_base_url):
507        """Sets the workspace_user_base_url of this WorkspaceUser.
508
509        The relative URI that may be used to access a workspace user.  # noqa: E501
510
511        :param workspace_user_base_url: The workspace_user_base_url of this WorkspaceUser.  # noqa: E501
512        :type: str
513        """
514
515        self._workspace_user_base_url = workspace_user_base_url
516
517    @property
518    def workspace_user_id(self):
519        """Gets the workspace_user_id of this WorkspaceUser.  # noqa: E501
520
521          # noqa: E501
522
523        :return: The workspace_user_id of this WorkspaceUser.  # noqa: E501
524        :rtype: str
525        """
526        return self._workspace_user_id
527
528    @workspace_user_id.setter
529    def workspace_user_id(self, workspace_user_id):
530        """Sets the workspace_user_id of this WorkspaceUser.
531
532          # noqa: E501
533
534        :param workspace_user_id: The workspace_user_id of this WorkspaceUser.  # noqa: E501
535        :type: str
536        """
537
538        self._workspace_user_id = workspace_user_id
539
540    @property
541    def workspace_user_uri(self):
542        """Gets the workspace_user_uri of this WorkspaceUser.  # noqa: E501
543
544          # noqa: E501
545
546        :return: The workspace_user_uri of this WorkspaceUser.  # noqa: E501
547        :rtype: str
548        """
549        return self._workspace_user_uri
550
551    @workspace_user_uri.setter
552    def workspace_user_uri(self, workspace_user_uri):
553        """Sets the workspace_user_uri of this WorkspaceUser.
554
555          # noqa: E501
556
557        :param workspace_user_uri: The workspace_user_uri of this WorkspaceUser.  # noqa: E501
558        :type: str
559        """
560
561        self._workspace_user_uri = workspace_user_uri
562
563    def to_dict(self):
564        """Returns the model properties as a dict"""
565        result = {}
566
567        for attr, _ in six.iteritems(self.swagger_types):
568            value = getattr(self, attr)
569            if isinstance(value, list):
570                result[attr] = list(map(
571                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
572                    value
573                ))
574            elif hasattr(value, "to_dict"):
575                result[attr] = value.to_dict()
576            elif isinstance(value, dict):
577                result[attr] = dict(map(
578                    lambda item: (item[0], item[1].to_dict())
579                    if hasattr(item[1], "to_dict") else item,
580                    value.items()
581                ))
582            else:
583                result[attr] = value
584        if issubclass(WorkspaceUser, dict):
585            for key, value in self.items():
586                result[key] = value
587
588        return result
589
590    def to_str(self):
591        """Returns the string representation of the model"""
592        return pprint.pformat(self.to_dict())
593
594    def __repr__(self):
595        """For `print` and `pprint`"""
596        return self.to_str()
597
598    def __eq__(self, other):
599        """Returns true if both objects are equal"""
600        if not isinstance(other, WorkspaceUser):
601            return False
602
603        return self.to_dict() == other.to_dict()
604
605    def __ne__(self, other):
606        """Returns true if both objects are not equal"""
607        if not isinstance(other, WorkspaceUser):
608            return True
609
610        return self.to_dict() != other.to_dict()
class WorkspaceUser:
 23class WorkspaceUser(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        'active_since': 'str',
 40        'created': 'str',
 41        'created_by_id': 'str',
 42        'email': 'str',
 43        'error_details': 'ErrorDetails',
 44        'invitation_email_blurb': 'str',
 45        'invitation_email_subject': 'str',
 46        'last_modified': 'str',
 47        'last_modified_by_id': 'str',
 48        'status': 'str',
 49        'type': 'str',
 50        'user_id': 'str',
 51        'user_name': 'str',
 52        'workspace_id': 'str',
 53        'workspace_user_base_url': 'str',
 54        'workspace_user_id': 'str',
 55        'workspace_user_uri': 'str'
 56    }
 57
 58    attribute_map = {
 59        'account_id': 'accountId',
 60        'account_name': 'accountName',
 61        'active_since': 'activeSince',
 62        'created': 'created',
 63        'created_by_id': 'createdById',
 64        'email': 'email',
 65        'error_details': 'errorDetails',
 66        'invitation_email_blurb': 'invitationEmailBlurb',
 67        'invitation_email_subject': 'invitationEmailSubject',
 68        'last_modified': 'lastModified',
 69        'last_modified_by_id': 'lastModifiedById',
 70        'status': 'status',
 71        'type': 'type',
 72        'user_id': 'userId',
 73        'user_name': 'userName',
 74        'workspace_id': 'workspaceId',
 75        'workspace_user_base_url': 'workspaceUserBaseUrl',
 76        'workspace_user_id': 'workspaceUserId',
 77        'workspace_user_uri': 'workspaceUserUri'
 78    }
 79
 80    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 81        """WorkspaceUser - a model defined in Swagger"""  # noqa: E501
 82        if _configuration is None:
 83            _configuration = Configuration()
 84        self._configuration = _configuration
 85
 86        self._account_id = None
 87        self._account_name = None
 88        self._active_since = None
 89        self._created = None
 90        self._created_by_id = None
 91        self._email = None
 92        self._error_details = None
 93        self._invitation_email_blurb = None
 94        self._invitation_email_subject = None
 95        self._last_modified = None
 96        self._last_modified_by_id = None
 97        self._status = None
 98        self._type = None
 99        self._user_id = None
100        self._user_name = None
101        self._workspace_id = None
102        self._workspace_user_base_url = None
103        self._workspace_user_id = None
104        self._workspace_user_uri = None
105        self.discriminator = None
106
107        setattr(self, "_{}".format('account_id'), kwargs.get('account_id', None))
108        setattr(self, "_{}".format('account_name'), kwargs.get('account_name', None))
109        setattr(self, "_{}".format('active_since'), kwargs.get('active_since', None))
110        setattr(self, "_{}".format('created'), kwargs.get('created', None))
111        setattr(self, "_{}".format('created_by_id'), kwargs.get('created_by_id', None))
112        setattr(self, "_{}".format('email'), kwargs.get('email', None))
113        setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None))
114        setattr(self, "_{}".format('invitation_email_blurb'), kwargs.get('invitation_email_blurb', None))
115        setattr(self, "_{}".format('invitation_email_subject'), kwargs.get('invitation_email_subject', None))
116        setattr(self, "_{}".format('last_modified'), kwargs.get('last_modified', None))
117        setattr(self, "_{}".format('last_modified_by_id'), kwargs.get('last_modified_by_id', None))
118        setattr(self, "_{}".format('status'), kwargs.get('status', None))
119        setattr(self, "_{}".format('type'), kwargs.get('type', None))
120        setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None))
121        setattr(self, "_{}".format('user_name'), kwargs.get('user_name', None))
122        setattr(self, "_{}".format('workspace_id'), kwargs.get('workspace_id', None))
123        setattr(self, "_{}".format('workspace_user_base_url'), kwargs.get('workspace_user_base_url', None))
124        setattr(self, "_{}".format('workspace_user_id'), kwargs.get('workspace_user_id', None))
125        setattr(self, "_{}".format('workspace_user_uri'), kwargs.get('workspace_user_uri', None))
126
127    @property
128    def account_id(self):
129        """Gets the account_id of this WorkspaceUser.  # noqa: E501
130
131        The account ID associated with the envelope.  # noqa: E501
132
133        :return: The account_id of this WorkspaceUser.  # noqa: E501
134        :rtype: str
135        """
136        return self._account_id
137
138    @account_id.setter
139    def account_id(self, account_id):
140        """Sets the account_id of this WorkspaceUser.
141
142        The account ID associated with the envelope.  # noqa: E501
143
144        :param account_id: The account_id of this WorkspaceUser.  # noqa: E501
145        :type: str
146        """
147
148        self._account_id = account_id
149
150    @property
151    def account_name(self):
152        """Gets the account_name of this WorkspaceUser.  # noqa: E501
153
154        The name of the account that the workspace user belongs to.  # noqa: E501
155
156        :return: The account_name of this WorkspaceUser.  # noqa: E501
157        :rtype: str
158        """
159        return self._account_name
160
161    @account_name.setter
162    def account_name(self, account_name):
163        """Sets the account_name of this WorkspaceUser.
164
165        The name of the account that the workspace user belongs to.  # noqa: E501
166
167        :param account_name: The account_name of this WorkspaceUser.  # noqa: E501
168        :type: str
169        """
170
171        self._account_name = account_name
172
173    @property
174    def active_since(self):
175        """Gets the active_since of this WorkspaceUser.  # noqa: E501
176
177          # noqa: E501
178
179        :return: The active_since of this WorkspaceUser.  # noqa: E501
180        :rtype: str
181        """
182        return self._active_since
183
184    @active_since.setter
185    def active_since(self, active_since):
186        """Sets the active_since of this WorkspaceUser.
187
188          # noqa: E501
189
190        :param active_since: The active_since of this WorkspaceUser.  # noqa: E501
191        :type: str
192        """
193
194        self._active_since = active_since
195
196    @property
197    def created(self):
198        """Gets the created of this WorkspaceUser.  # noqa: E501
199
200        The UTC DateTime when the workspace user was created.  # noqa: E501
201
202        :return: The created of this WorkspaceUser.  # noqa: E501
203        :rtype: str
204        """
205        return self._created
206
207    @created.setter
208    def created(self, created):
209        """Sets the created of this WorkspaceUser.
210
211        The UTC DateTime when the workspace user was created.  # noqa: E501
212
213        :param created: The created of this WorkspaceUser.  # noqa: E501
214        :type: str
215        """
216
217        self._created = created
218
219    @property
220    def created_by_id(self):
221        """Gets the created_by_id of this WorkspaceUser.  # noqa: E501
222
223          # noqa: E501
224
225        :return: The created_by_id of this WorkspaceUser.  # noqa: E501
226        :rtype: str
227        """
228        return self._created_by_id
229
230    @created_by_id.setter
231    def created_by_id(self, created_by_id):
232        """Sets the created_by_id of this WorkspaceUser.
233
234          # noqa: E501
235
236        :param created_by_id: The created_by_id of this WorkspaceUser.  # noqa: E501
237        :type: str
238        """
239
240        self._created_by_id = created_by_id
241
242    @property
243    def email(self):
244        """Gets the email of this WorkspaceUser.  # noqa: E501
245
246          # noqa: E501
247
248        :return: The email of this WorkspaceUser.  # noqa: E501
249        :rtype: str
250        """
251        return self._email
252
253    @email.setter
254    def email(self, email):
255        """Sets the email of this WorkspaceUser.
256
257          # noqa: E501
258
259        :param email: The email of this WorkspaceUser.  # noqa: E501
260        :type: str
261        """
262
263        self._email = email
264
265    @property
266    def error_details(self):
267        """Gets the error_details of this WorkspaceUser.  # noqa: E501
268
269        Array or errors.  # noqa: E501
270
271        :return: The error_details of this WorkspaceUser.  # noqa: E501
272        :rtype: ErrorDetails
273        """
274        return self._error_details
275
276    @error_details.setter
277    def error_details(self, error_details):
278        """Sets the error_details of this WorkspaceUser.
279
280        Array or errors.  # noqa: E501
281
282        :param error_details: The error_details of this WorkspaceUser.  # noqa: E501
283        :type: ErrorDetails
284        """
285
286        self._error_details = error_details
287
288    @property
289    def invitation_email_blurb(self):
290        """Gets the invitation_email_blurb of this WorkspaceUser.  # noqa: E501
291
292          # noqa: E501
293
294        :return: The invitation_email_blurb of this WorkspaceUser.  # noqa: E501
295        :rtype: str
296        """
297        return self._invitation_email_blurb
298
299    @invitation_email_blurb.setter
300    def invitation_email_blurb(self, invitation_email_blurb):
301        """Sets the invitation_email_blurb of this WorkspaceUser.
302
303          # noqa: E501
304
305        :param invitation_email_blurb: The invitation_email_blurb of this WorkspaceUser.  # noqa: E501
306        :type: str
307        """
308
309        self._invitation_email_blurb = invitation_email_blurb
310
311    @property
312    def invitation_email_subject(self):
313        """Gets the invitation_email_subject of this WorkspaceUser.  # noqa: E501
314
315          # noqa: E501
316
317        :return: The invitation_email_subject of this WorkspaceUser.  # noqa: E501
318        :rtype: str
319        """
320        return self._invitation_email_subject
321
322    @invitation_email_subject.setter
323    def invitation_email_subject(self, invitation_email_subject):
324        """Sets the invitation_email_subject of this WorkspaceUser.
325
326          # noqa: E501
327
328        :param invitation_email_subject: The invitation_email_subject of this WorkspaceUser.  # noqa: E501
329        :type: str
330        """
331
332        self._invitation_email_subject = invitation_email_subject
333
334    @property
335    def last_modified(self):
336        """Gets the last_modified of this WorkspaceUser.  # noqa: E501
337
338        Utc date and time the comment was last updated (can only be done by creator.)  # noqa: E501
339
340        :return: The last_modified of this WorkspaceUser.  # noqa: E501
341        :rtype: str
342        """
343        return self._last_modified
344
345    @last_modified.setter
346    def last_modified(self, last_modified):
347        """Sets the last_modified of this WorkspaceUser.
348
349        Utc date and time the comment was last updated (can only be done by creator.)  # noqa: E501
350
351        :param last_modified: The last_modified of this WorkspaceUser.  # noqa: E501
352        :type: str
353        """
354
355        self._last_modified = last_modified
356
357    @property
358    def last_modified_by_id(self):
359        """Gets the last_modified_by_id of this WorkspaceUser.  # noqa: E501
360
361          # noqa: E501
362
363        :return: The last_modified_by_id of this WorkspaceUser.  # noqa: E501
364        :rtype: str
365        """
366        return self._last_modified_by_id
367
368    @last_modified_by_id.setter
369    def last_modified_by_id(self, last_modified_by_id):
370        """Sets the last_modified_by_id of this WorkspaceUser.
371
372          # noqa: E501
373
374        :param last_modified_by_id: The last_modified_by_id of this WorkspaceUser.  # noqa: E501
375        :type: str
376        """
377
378        self._last_modified_by_id = last_modified_by_id
379
380    @property
381    def status(self):
382        """Gets the status of this WorkspaceUser.  # noqa: E501
383
384        Indicates the envelope status. Valid values are:  * sent - The envelope is sent to the recipients.  * created - The envelope is saved as a draft and can be modified and sent later.  # noqa: E501
385
386        :return: The status of this WorkspaceUser.  # noqa: E501
387        :rtype: str
388        """
389        return self._status
390
391    @status.setter
392    def status(self, status):
393        """Sets the status of this WorkspaceUser.
394
395        Indicates the envelope status. Valid values are:  * sent - The envelope is sent to the recipients.  * created - The envelope is saved as a draft and can be modified and sent later.  # noqa: E501
396
397        :param status: The status of this WorkspaceUser.  # noqa: E501
398        :type: str
399        """
400
401        self._status = status
402
403    @property
404    def type(self):
405        """Gets the type of this WorkspaceUser.  # noqa: E501
406
407        Type of the user. Valid values: type_owner, type_participant.  # noqa: E501
408
409        :return: The type of this WorkspaceUser.  # noqa: E501
410        :rtype: str
411        """
412        return self._type
413
414    @type.setter
415    def type(self, type):
416        """Sets the type of this WorkspaceUser.
417
418        Type of the user. Valid values: type_owner, type_participant.  # noqa: E501
419
420        :param type: The type of this WorkspaceUser.  # noqa: E501
421        :type: str
422        """
423
424        self._type = type
425
426    @property
427    def user_id(self):
428        """Gets the user_id of this WorkspaceUser.  # noqa: E501
429
430          # noqa: E501
431
432        :return: The user_id of this WorkspaceUser.  # noqa: E501
433        :rtype: str
434        """
435        return self._user_id
436
437    @user_id.setter
438    def user_id(self, user_id):
439        """Sets the user_id of this WorkspaceUser.
440
441          # noqa: E501
442
443        :param user_id: The user_id of this WorkspaceUser.  # noqa: E501
444        :type: str
445        """
446
447        self._user_id = user_id
448
449    @property
450    def user_name(self):
451        """Gets the user_name of this WorkspaceUser.  # noqa: E501
452
453          # noqa: E501
454
455        :return: The user_name of this WorkspaceUser.  # noqa: E501
456        :rtype: str
457        """
458        return self._user_name
459
460    @user_name.setter
461    def user_name(self, user_name):
462        """Sets the user_name of this WorkspaceUser.
463
464          # noqa: E501
465
466        :param user_name: The user_name of this WorkspaceUser.  # noqa: E501
467        :type: str
468        """
469
470        self._user_name = user_name
471
472    @property
473    def workspace_id(self):
474        """Gets the workspace_id of this WorkspaceUser.  # noqa: E501
475
476          # noqa: E501
477
478        :return: The workspace_id of this WorkspaceUser.  # noqa: E501
479        :rtype: str
480        """
481        return self._workspace_id
482
483    @workspace_id.setter
484    def workspace_id(self, workspace_id):
485        """Sets the workspace_id of this WorkspaceUser.
486
487          # noqa: E501
488
489        :param workspace_id: The workspace_id of this WorkspaceUser.  # noqa: E501
490        :type: str
491        """
492
493        self._workspace_id = workspace_id
494
495    @property
496    def workspace_user_base_url(self):
497        """Gets the workspace_user_base_url of this WorkspaceUser.  # noqa: E501
498
499        The relative URI that may be used to access a workspace user.  # noqa: E501
500
501        :return: The workspace_user_base_url of this WorkspaceUser.  # noqa: E501
502        :rtype: str
503        """
504        return self._workspace_user_base_url
505
506    @workspace_user_base_url.setter
507    def workspace_user_base_url(self, workspace_user_base_url):
508        """Sets the workspace_user_base_url of this WorkspaceUser.
509
510        The relative URI that may be used to access a workspace user.  # noqa: E501
511
512        :param workspace_user_base_url: The workspace_user_base_url of this WorkspaceUser.  # noqa: E501
513        :type: str
514        """
515
516        self._workspace_user_base_url = workspace_user_base_url
517
518    @property
519    def workspace_user_id(self):
520        """Gets the workspace_user_id of this WorkspaceUser.  # noqa: E501
521
522          # noqa: E501
523
524        :return: The workspace_user_id of this WorkspaceUser.  # noqa: E501
525        :rtype: str
526        """
527        return self._workspace_user_id
528
529    @workspace_user_id.setter
530    def workspace_user_id(self, workspace_user_id):
531        """Sets the workspace_user_id of this WorkspaceUser.
532
533          # noqa: E501
534
535        :param workspace_user_id: The workspace_user_id of this WorkspaceUser.  # noqa: E501
536        :type: str
537        """
538
539        self._workspace_user_id = workspace_user_id
540
541    @property
542    def workspace_user_uri(self):
543        """Gets the workspace_user_uri of this WorkspaceUser.  # noqa: E501
544
545          # noqa: E501
546
547        :return: The workspace_user_uri of this WorkspaceUser.  # noqa: E501
548        :rtype: str
549        """
550        return self._workspace_user_uri
551
552    @workspace_user_uri.setter
553    def workspace_user_uri(self, workspace_user_uri):
554        """Sets the workspace_user_uri of this WorkspaceUser.
555
556          # noqa: E501
557
558        :param workspace_user_uri: The workspace_user_uri of this WorkspaceUser.  # noqa: E501
559        :type: str
560        """
561
562        self._workspace_user_uri = workspace_user_uri
563
564    def to_dict(self):
565        """Returns the model properties as a dict"""
566        result = {}
567
568        for attr, _ in six.iteritems(self.swagger_types):
569            value = getattr(self, attr)
570            if isinstance(value, list):
571                result[attr] = list(map(
572                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
573                    value
574                ))
575            elif hasattr(value, "to_dict"):
576                result[attr] = value.to_dict()
577            elif isinstance(value, dict):
578                result[attr] = dict(map(
579                    lambda item: (item[0], item[1].to_dict())
580                    if hasattr(item[1], "to_dict") else item,
581                    value.items()
582                ))
583            else:
584                result[attr] = value
585        if issubclass(WorkspaceUser, dict):
586            for key, value in self.items():
587                result[key] = value
588
589        return result
590
591    def to_str(self):
592        """Returns the string representation of the model"""
593        return pprint.pformat(self.to_dict())
594
595    def __repr__(self):
596        """For `print` and `pprint`"""
597        return self.to_str()
598
599    def __eq__(self, other):
600        """Returns true if both objects are equal"""
601        if not isinstance(other, WorkspaceUser):
602            return False
603
604        return self.to_dict() == other.to_dict()
605
606    def __ne__(self, other):
607        """Returns true if both objects are not equal"""
608        if not isinstance(other, WorkspaceUser):
609            return True
610
611        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.

WorkspaceUser(_configuration=None, **kwargs)
 80    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 81        """WorkspaceUser - a model defined in Swagger"""  # noqa: E501
 82        if _configuration is None:
 83            _configuration = Configuration()
 84        self._configuration = _configuration
 85
 86        self._account_id = None
 87        self._account_name = None
 88        self._active_since = None
 89        self._created = None
 90        self._created_by_id = None
 91        self._email = None
 92        self._error_details = None
 93        self._invitation_email_blurb = None
 94        self._invitation_email_subject = None
 95        self._last_modified = None
 96        self._last_modified_by_id = None
 97        self._status = None
 98        self._type = None
 99        self._user_id = None
100        self._user_name = None
101        self._workspace_id = None
102        self._workspace_user_base_url = None
103        self._workspace_user_id = None
104        self._workspace_user_uri = None
105        self.discriminator = None
106
107        setattr(self, "_{}".format('account_id'), kwargs.get('account_id', None))
108        setattr(self, "_{}".format('account_name'), kwargs.get('account_name', None))
109        setattr(self, "_{}".format('active_since'), kwargs.get('active_since', None))
110        setattr(self, "_{}".format('created'), kwargs.get('created', None))
111        setattr(self, "_{}".format('created_by_id'), kwargs.get('created_by_id', None))
112        setattr(self, "_{}".format('email'), kwargs.get('email', None))
113        setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None))
114        setattr(self, "_{}".format('invitation_email_blurb'), kwargs.get('invitation_email_blurb', None))
115        setattr(self, "_{}".format('invitation_email_subject'), kwargs.get('invitation_email_subject', None))
116        setattr(self, "_{}".format('last_modified'), kwargs.get('last_modified', None))
117        setattr(self, "_{}".format('last_modified_by_id'), kwargs.get('last_modified_by_id', None))
118        setattr(self, "_{}".format('status'), kwargs.get('status', None))
119        setattr(self, "_{}".format('type'), kwargs.get('type', None))
120        setattr(self, "_{}".format('user_id'), kwargs.get('user_id', None))
121        setattr(self, "_{}".format('user_name'), kwargs.get('user_name', None))
122        setattr(self, "_{}".format('workspace_id'), kwargs.get('workspace_id', None))
123        setattr(self, "_{}".format('workspace_user_base_url'), kwargs.get('workspace_user_base_url', None))
124        setattr(self, "_{}".format('workspace_user_id'), kwargs.get('workspace_user_id', None))
125        setattr(self, "_{}".format('workspace_user_uri'), kwargs.get('workspace_user_uri', None))

WorkspaceUser - a model defined in Swagger

swagger_types = {'account_id': 'str', 'account_name': 'str', 'active_since': 'str', 'created': 'str', 'created_by_id': 'str', 'email': 'str', 'error_details': 'ErrorDetails', 'invitation_email_blurb': 'str', 'invitation_email_subject': 'str', 'last_modified': 'str', 'last_modified_by_id': 'str', 'status': 'str', 'type': 'str', 'user_id': 'str', 'user_name': 'str', 'workspace_id': 'str', 'workspace_user_base_url': 'str', 'workspace_user_id': 'str', 'workspace_user_uri': 'str'}
attribute_map = {'account_id': 'accountId', 'account_name': 'accountName', 'active_since': 'activeSince', 'created': 'created', 'created_by_id': 'createdById', 'email': 'email', 'error_details': 'errorDetails', 'invitation_email_blurb': 'invitationEmailBlurb', 'invitation_email_subject': 'invitationEmailSubject', 'last_modified': 'lastModified', 'last_modified_by_id': 'lastModifiedById', 'status': 'status', 'type': 'type', 'user_id': 'userId', 'user_name': 'userName', 'workspace_id': 'workspaceId', 'workspace_user_base_url': 'workspaceUserBaseUrl', 'workspace_user_id': 'workspaceUserId', 'workspace_user_uri': 'workspaceUserUri'}
account_id

Gets the account_id of this WorkspaceUser. # noqa: E501

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

Returns

The account_id of this WorkspaceUser. # noqa: E501

account_name

Gets the account_name of this WorkspaceUser. # noqa: E501

The name of the account that the workspace user belongs to. # noqa: E501

Returns

The account_name of this WorkspaceUser. # noqa: E501

active_since

Gets the active_since of this WorkspaceUser. # noqa: E501

# noqa: E501

Returns

The active_since of this WorkspaceUser. # noqa: E501

created

Gets the created of this WorkspaceUser. # noqa: E501

The UTC DateTime when the workspace user was created. # noqa: E501

Returns

The created of this WorkspaceUser. # noqa: E501

created_by_id

Gets the created_by_id of this WorkspaceUser. # noqa: E501

# noqa: E501

Returns

The created_by_id of this WorkspaceUser. # noqa: E501

email

Gets the email of this WorkspaceUser. # noqa: E501

# noqa: E501

Returns

The email of this WorkspaceUser. # noqa: E501

error_details

Gets the error_details of this WorkspaceUser. # noqa: E501

Array or errors. # noqa: E501

Returns

The error_details of this WorkspaceUser. # noqa: E501

invitation_email_blurb

Gets the invitation_email_blurb of this WorkspaceUser. # noqa: E501

# noqa: E501

Returns

The invitation_email_blurb of this WorkspaceUser. # noqa: E501

invitation_email_subject

Gets the invitation_email_subject of this WorkspaceUser. # noqa: E501

# noqa: E501

Returns

The invitation_email_subject of this WorkspaceUser. # noqa: E501

last_modified

Gets the last_modified of this WorkspaceUser. # noqa: E501

Utc date and time the comment was last updated (can only be done by creator.) # noqa: E501

Returns

The last_modified of this WorkspaceUser. # noqa: E501

last_modified_by_id

Gets the last_modified_by_id of this WorkspaceUser. # noqa: E501

# noqa: E501

Returns

The last_modified_by_id of this WorkspaceUser. # noqa: E501

status

Gets the status of this WorkspaceUser. # noqa: E501

Indicates the envelope status. Valid values are: * sent - The envelope is sent to the recipients. * created - The envelope is saved as a draft and can be modified and sent later. # noqa: E501

Returns

The status of this WorkspaceUser. # noqa: E501

type

Gets the type of this WorkspaceUser. # noqa: E501

Type of the user. Valid values: type_owner, type_participant. # noqa: E501

Returns

The type of this WorkspaceUser. # noqa: E501

user_id

Gets the user_id of this WorkspaceUser. # noqa: E501

# noqa: E501

Returns

The user_id of this WorkspaceUser. # noqa: E501

user_name

Gets the user_name of this WorkspaceUser. # noqa: E501

# noqa: E501

Returns

The user_name of this WorkspaceUser. # noqa: E501

workspace_id

Gets the workspace_id of this WorkspaceUser. # noqa: E501

# noqa: E501

Returns

The workspace_id of this WorkspaceUser. # noqa: E501

workspace_user_base_url

Gets the workspace_user_base_url of this WorkspaceUser. # noqa: E501

The relative URI that may be used to access a workspace user. # noqa: E501

Returns

The workspace_user_base_url of this WorkspaceUser. # noqa: E501

workspace_user_id

Gets the workspace_user_id of this WorkspaceUser. # noqa: E501

# noqa: E501

Returns

The workspace_user_id of this WorkspaceUser. # noqa: E501

workspace_user_uri

Gets the workspace_user_uri of this WorkspaceUser. # noqa: E501

# noqa: E501

Returns

The workspace_user_uri of this WorkspaceUser. # noqa: E501

def to_dict(self)
564    def to_dict(self):
565        """Returns the model properties as a dict"""
566        result = {}
567
568        for attr, _ in six.iteritems(self.swagger_types):
569            value = getattr(self, attr)
570            if isinstance(value, list):
571                result[attr] = list(map(
572                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
573                    value
574                ))
575            elif hasattr(value, "to_dict"):
576                result[attr] = value.to_dict()
577            elif isinstance(value, dict):
578                result[attr] = dict(map(
579                    lambda item: (item[0], item[1].to_dict())
580                    if hasattr(item[1], "to_dict") else item,
581                    value.items()
582                ))
583            else:
584                result[attr] = value
585        if issubclass(WorkspaceUser, dict):
586            for key, value in self.items():
587                result[key] = value
588
589        return result

Returns the model properties as a dict

def to_str(self)
591    def to_str(self):
592        """Returns the string representation of the model"""
593        return pprint.pformat(self.to_dict())

Returns the string representation of the model