docusign_esign.models.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
 19
 20class User(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        'cell_phone_number': 'str',
 35        'country_code': 'str',
 36        'credentials': 'list[Credential]',
 37        'display_name': 'str',
 38        'email': 'str',
 39        'external_claims': 'list[ExternalClaim]'
 40    }
 41
 42    attribute_map = {
 43        'cell_phone_number': 'cellPhoneNumber',
 44        'country_code': 'countryCode',
 45        'credentials': 'credentials',
 46        'display_name': 'displayName',
 47        'email': 'email',
 48        'external_claims': 'externalClaims'
 49    }
 50
 51    def __init__(self, cell_phone_number=None, country_code=None, credentials=None, display_name=None, email=None, external_claims=None):  # noqa: E501
 52        """User - a model defined in Swagger"""  # noqa: E501
 53
 54        self._cell_phone_number = None
 55        self._country_code = None
 56        self._credentials = None
 57        self._display_name = None
 58        self._email = None
 59        self._external_claims = None
 60        self.discriminator = None
 61
 62        if cell_phone_number is not None:
 63            self.cell_phone_number = cell_phone_number
 64        if country_code is not None:
 65            self.country_code = country_code
 66        if credentials is not None:
 67            self.credentials = credentials
 68        if display_name is not None:
 69            self.display_name = display_name
 70        if email is not None:
 71            self.email = email
 72        if external_claims is not None:
 73            self.external_claims = external_claims
 74
 75    @property
 76    def cell_phone_number(self):
 77        """Gets the cell_phone_number of this User.  # noqa: E501
 78
 79          # noqa: E501
 80
 81        :return: The cell_phone_number of this User.  # noqa: E501
 82        :rtype: str
 83        """
 84        return self._cell_phone_number
 85
 86    @cell_phone_number.setter
 87    def cell_phone_number(self, cell_phone_number):
 88        """Sets the cell_phone_number of this User.
 89
 90          # noqa: E501
 91
 92        :param cell_phone_number: The cell_phone_number of this User.  # noqa: E501
 93        :type: str
 94        """
 95
 96        self._cell_phone_number = cell_phone_number
 97
 98    @property
 99    def country_code(self):
100        """Gets the country_code of this User.  # noqa: E501
101
102          # noqa: E501
103
104        :return: The country_code of this User.  # noqa: E501
105        :rtype: str
106        """
107        return self._country_code
108
109    @country_code.setter
110    def country_code(self, country_code):
111        """Sets the country_code of this User.
112
113          # noqa: E501
114
115        :param country_code: The country_code of this User.  # noqa: E501
116        :type: str
117        """
118
119        self._country_code = country_code
120
121    @property
122    def credentials(self):
123        """Gets the credentials of this User.  # noqa: E501
124
125          # noqa: E501
126
127        :return: The credentials of this User.  # noqa: E501
128        :rtype: list[Credential]
129        """
130        return self._credentials
131
132    @credentials.setter
133    def credentials(self, credentials):
134        """Sets the credentials of this User.
135
136          # noqa: E501
137
138        :param credentials: The credentials of this User.  # noqa: E501
139        :type: list[Credential]
140        """
141
142        self._credentials = credentials
143
144    @property
145    def display_name(self):
146        """Gets the display_name of this User.  # noqa: E501
147
148          # noqa: E501
149
150        :return: The display_name of this User.  # noqa: E501
151        :rtype: str
152        """
153        return self._display_name
154
155    @display_name.setter
156    def display_name(self, display_name):
157        """Sets the display_name of this User.
158
159          # noqa: E501
160
161        :param display_name: The display_name of this User.  # noqa: E501
162        :type: str
163        """
164
165        self._display_name = display_name
166
167    @property
168    def email(self):
169        """Gets the email of this User.  # noqa: E501
170
171          # noqa: E501
172
173        :return: The email of this User.  # noqa: E501
174        :rtype: str
175        """
176        return self._email
177
178    @email.setter
179    def email(self, email):
180        """Sets the email of this User.
181
182          # noqa: E501
183
184        :param email: The email of this User.  # noqa: E501
185        :type: str
186        """
187
188        self._email = email
189
190    @property
191    def external_claims(self):
192        """Gets the external_claims of this User.  # noqa: E501
193
194          # noqa: E501
195
196        :return: The external_claims of this User.  # noqa: E501
197        :rtype: list[ExternalClaim]
198        """
199        return self._external_claims
200
201    @external_claims.setter
202    def external_claims(self, external_claims):
203        """Sets the external_claims of this User.
204
205          # noqa: E501
206
207        :param external_claims: The external_claims of this User.  # noqa: E501
208        :type: list[ExternalClaim]
209        """
210
211        self._external_claims = external_claims
212
213    def to_dict(self):
214        """Returns the model properties as a dict"""
215        result = {}
216
217        for attr, _ in six.iteritems(self.swagger_types):
218            value = getattr(self, attr)
219            if isinstance(value, list):
220                result[attr] = list(map(
221                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
222                    value
223                ))
224            elif hasattr(value, "to_dict"):
225                result[attr] = value.to_dict()
226            elif isinstance(value, dict):
227                result[attr] = dict(map(
228                    lambda item: (item[0], item[1].to_dict())
229                    if hasattr(item[1], "to_dict") else item,
230                    value.items()
231                ))
232            else:
233                result[attr] = value
234        if issubclass(User, dict):
235            for key, value in self.items():
236                result[key] = value
237
238        return result
239
240    def to_str(self):
241        """Returns the string representation of the model"""
242        return pprint.pformat(self.to_dict())
243
244    def __repr__(self):
245        """For `print` and `pprint`"""
246        return self.to_str()
247
248    def __eq__(self, other):
249        """Returns true if both objects are equal"""
250        if not isinstance(other, User):
251            return False
252
253        return self.__dict__ == other.__dict__
254
255    def __ne__(self, other):
256        """Returns true if both objects are not equal"""
257        return not self == other
class User:
 21class User(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        'cell_phone_number': 'str',
 36        'country_code': 'str',
 37        'credentials': 'list[Credential]',
 38        'display_name': 'str',
 39        'email': 'str',
 40        'external_claims': 'list[ExternalClaim]'
 41    }
 42
 43    attribute_map = {
 44        'cell_phone_number': 'cellPhoneNumber',
 45        'country_code': 'countryCode',
 46        'credentials': 'credentials',
 47        'display_name': 'displayName',
 48        'email': 'email',
 49        'external_claims': 'externalClaims'
 50    }
 51
 52    def __init__(self, cell_phone_number=None, country_code=None, credentials=None, display_name=None, email=None, external_claims=None):  # noqa: E501
 53        """User - a model defined in Swagger"""  # noqa: E501
 54
 55        self._cell_phone_number = None
 56        self._country_code = None
 57        self._credentials = None
 58        self._display_name = None
 59        self._email = None
 60        self._external_claims = None
 61        self.discriminator = None
 62
 63        if cell_phone_number is not None:
 64            self.cell_phone_number = cell_phone_number
 65        if country_code is not None:
 66            self.country_code = country_code
 67        if credentials is not None:
 68            self.credentials = credentials
 69        if display_name is not None:
 70            self.display_name = display_name
 71        if email is not None:
 72            self.email = email
 73        if external_claims is not None:
 74            self.external_claims = external_claims
 75
 76    @property
 77    def cell_phone_number(self):
 78        """Gets the cell_phone_number of this User.  # noqa: E501
 79
 80          # noqa: E501
 81
 82        :return: The cell_phone_number of this User.  # noqa: E501
 83        :rtype: str
 84        """
 85        return self._cell_phone_number
 86
 87    @cell_phone_number.setter
 88    def cell_phone_number(self, cell_phone_number):
 89        """Sets the cell_phone_number of this User.
 90
 91          # noqa: E501
 92
 93        :param cell_phone_number: The cell_phone_number of this User.  # noqa: E501
 94        :type: str
 95        """
 96
 97        self._cell_phone_number = cell_phone_number
 98
 99    @property
100    def country_code(self):
101        """Gets the country_code of this User.  # noqa: E501
102
103          # noqa: E501
104
105        :return: The country_code of this User.  # noqa: E501
106        :rtype: str
107        """
108        return self._country_code
109
110    @country_code.setter
111    def country_code(self, country_code):
112        """Sets the country_code of this User.
113
114          # noqa: E501
115
116        :param country_code: The country_code of this User.  # noqa: E501
117        :type: str
118        """
119
120        self._country_code = country_code
121
122    @property
123    def credentials(self):
124        """Gets the credentials of this User.  # noqa: E501
125
126          # noqa: E501
127
128        :return: The credentials of this User.  # noqa: E501
129        :rtype: list[Credential]
130        """
131        return self._credentials
132
133    @credentials.setter
134    def credentials(self, credentials):
135        """Sets the credentials of this User.
136
137          # noqa: E501
138
139        :param credentials: The credentials of this User.  # noqa: E501
140        :type: list[Credential]
141        """
142
143        self._credentials = credentials
144
145    @property
146    def display_name(self):
147        """Gets the display_name of this User.  # noqa: E501
148
149          # noqa: E501
150
151        :return: The display_name of this User.  # noqa: E501
152        :rtype: str
153        """
154        return self._display_name
155
156    @display_name.setter
157    def display_name(self, display_name):
158        """Sets the display_name of this User.
159
160          # noqa: E501
161
162        :param display_name: The display_name of this User.  # noqa: E501
163        :type: str
164        """
165
166        self._display_name = display_name
167
168    @property
169    def email(self):
170        """Gets the email of this User.  # noqa: E501
171
172          # noqa: E501
173
174        :return: The email of this User.  # noqa: E501
175        :rtype: str
176        """
177        return self._email
178
179    @email.setter
180    def email(self, email):
181        """Sets the email of this User.
182
183          # noqa: E501
184
185        :param email: The email of this User.  # noqa: E501
186        :type: str
187        """
188
189        self._email = email
190
191    @property
192    def external_claims(self):
193        """Gets the external_claims of this User.  # noqa: E501
194
195          # noqa: E501
196
197        :return: The external_claims of this User.  # noqa: E501
198        :rtype: list[ExternalClaim]
199        """
200        return self._external_claims
201
202    @external_claims.setter
203    def external_claims(self, external_claims):
204        """Sets the external_claims of this User.
205
206          # noqa: E501
207
208        :param external_claims: The external_claims of this User.  # noqa: E501
209        :type: list[ExternalClaim]
210        """
211
212        self._external_claims = external_claims
213
214    def to_dict(self):
215        """Returns the model properties as a dict"""
216        result = {}
217
218        for attr, _ in six.iteritems(self.swagger_types):
219            value = getattr(self, attr)
220            if isinstance(value, list):
221                result[attr] = list(map(
222                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
223                    value
224                ))
225            elif hasattr(value, "to_dict"):
226                result[attr] = value.to_dict()
227            elif isinstance(value, dict):
228                result[attr] = dict(map(
229                    lambda item: (item[0], item[1].to_dict())
230                    if hasattr(item[1], "to_dict") else item,
231                    value.items()
232                ))
233            else:
234                result[attr] = value
235        if issubclass(User, dict):
236            for key, value in self.items():
237                result[key] = value
238
239        return result
240
241    def to_str(self):
242        """Returns the string representation of the model"""
243        return pprint.pformat(self.to_dict())
244
245    def __repr__(self):
246        """For `print` and `pprint`"""
247        return self.to_str()
248
249    def __eq__(self, other):
250        """Returns true if both objects are equal"""
251        if not isinstance(other, User):
252            return False
253
254        return self.__dict__ == other.__dict__
255
256    def __ne__(self, other):
257        """Returns true if both objects are not equal"""
258        return not self == other

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

Do not edit the class manually.

User( cell_phone_number=None, country_code=None, credentials=None, display_name=None, email=None, external_claims=None)
52    def __init__(self, cell_phone_number=None, country_code=None, credentials=None, display_name=None, email=None, external_claims=None):  # noqa: E501
53        """User - a model defined in Swagger"""  # noqa: E501
54
55        self._cell_phone_number = None
56        self._country_code = None
57        self._credentials = None
58        self._display_name = None
59        self._email = None
60        self._external_claims = None
61        self.discriminator = None
62
63        if cell_phone_number is not None:
64            self.cell_phone_number = cell_phone_number
65        if country_code is not None:
66            self.country_code = country_code
67        if credentials is not None:
68            self.credentials = credentials
69        if display_name is not None:
70            self.display_name = display_name
71        if email is not None:
72            self.email = email
73        if external_claims is not None:
74            self.external_claims = external_claims

User - a model defined in Swagger

swagger_types = {'cell_phone_number': 'str', 'country_code': 'str', 'credentials': 'list[Credential]', 'display_name': 'str', 'email': 'str', 'external_claims': 'list[ExternalClaim]'}
attribute_map = {'cell_phone_number': 'cellPhoneNumber', 'country_code': 'countryCode', 'credentials': 'credentials', 'display_name': 'displayName', 'email': 'email', 'external_claims': 'externalClaims'}
cell_phone_number

Gets the cell_phone_number of this User. # noqa: E501

# noqa: E501

Returns

The cell_phone_number of this User. # noqa: E501

country_code

Gets the country_code of this User. # noqa: E501

# noqa: E501

Returns

The country_code of this User. # noqa: E501

credentials

Gets the credentials of this User. # noqa: E501

# noqa: E501

Returns

The credentials of this User. # noqa: E501

display_name

Gets the display_name of this User. # noqa: E501

# noqa: E501

Returns

The display_name of this User. # noqa: E501

email

Gets the email of this User. # noqa: E501

# noqa: E501

Returns

The email of this User. # noqa: E501

external_claims

Gets the external_claims of this User. # noqa: E501

# noqa: E501

Returns

The external_claims of this User. # noqa: E501

def to_dict(self)
214    def to_dict(self):
215        """Returns the model properties as a dict"""
216        result = {}
217
218        for attr, _ in six.iteritems(self.swagger_types):
219            value = getattr(self, attr)
220            if isinstance(value, list):
221                result[attr] = list(map(
222                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
223                    value
224                ))
225            elif hasattr(value, "to_dict"):
226                result[attr] = value.to_dict()
227            elif isinstance(value, dict):
228                result[attr] = dict(map(
229                    lambda item: (item[0], item[1].to_dict())
230                    if hasattr(item[1], "to_dict") else item,
231                    value.items()
232                ))
233            else:
234                result[attr] = value
235        if issubclass(User, dict):
236            for key, value in self.items():
237                result[key] = value
238
239        return result

Returns the model properties as a dict

def to_str(self)
241    def to_str(self):
242        """Returns the string representation of the model"""
243        return pprint.pformat(self.to_dict())

Returns the string representation of the model