docusign_esign.models.envelopes_shares_response_item
Docusign eSignature REST API
The Docusign eSignature 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 eSignature REST API 5 6 The Docusign eSignature 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 EnvelopesSharesResponseItem(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 'agent_user': 'AuthorizationUser', 37 'created_timestamp': 'str', 38 'envelope_id': 'str', 39 'error_details': 'ErrorDetails', 40 'modified_timestamp': 'str', 41 'permission': 'str', 42 'sender_info': 'AuthorizationUser', 43 'share_id': 'str', 44 'subject': 'str' 45 } 46 47 attribute_map = { 48 'agent_user': 'agentUser', 49 'created_timestamp': 'createdTimestamp', 50 'envelope_id': 'envelopeId', 51 'error_details': 'errorDetails', 52 'modified_timestamp': 'modifiedTimestamp', 53 'permission': 'permission', 54 'sender_info': 'senderInfo', 55 'share_id': 'shareId', 56 'subject': 'subject' 57 } 58 59 def __init__(self, _configuration=None, **kwargs): # noqa: E501 60 """EnvelopesSharesResponseItem - a model defined in Swagger""" # noqa: E501 61 if _configuration is None: 62 _configuration = Configuration() 63 self._configuration = _configuration 64 65 self._agent_user = None 66 self._created_timestamp = None 67 self._envelope_id = None 68 self._error_details = None 69 self._modified_timestamp = None 70 self._permission = None 71 self._sender_info = None 72 self._share_id = None 73 self._subject = None 74 self.discriminator = None 75 76 setattr(self, "_{}".format('agent_user'), kwargs.get('agent_user', None)) 77 setattr(self, "_{}".format('created_timestamp'), kwargs.get('created_timestamp', None)) 78 setattr(self, "_{}".format('envelope_id'), kwargs.get('envelope_id', None)) 79 setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) 80 setattr(self, "_{}".format('modified_timestamp'), kwargs.get('modified_timestamp', None)) 81 setattr(self, "_{}".format('permission'), kwargs.get('permission', None)) 82 setattr(self, "_{}".format('sender_info'), kwargs.get('sender_info', None)) 83 setattr(self, "_{}".format('share_id'), kwargs.get('share_id', None)) 84 setattr(self, "_{}".format('subject'), kwargs.get('subject', None)) 85 86 @property 87 def agent_user(self): 88 """Gets the agent_user of this EnvelopesSharesResponseItem. # noqa: E501 89 90 # noqa: E501 91 92 :return: The agent_user of this EnvelopesSharesResponseItem. # noqa: E501 93 :rtype: AuthorizationUser 94 """ 95 return self._agent_user 96 97 @agent_user.setter 98 def agent_user(self, agent_user): 99 """Sets the agent_user of this EnvelopesSharesResponseItem. 100 101 # noqa: E501 102 103 :param agent_user: The agent_user of this EnvelopesSharesResponseItem. # noqa: E501 104 :type: AuthorizationUser 105 """ 106 107 self._agent_user = agent_user 108 109 @property 110 def created_timestamp(self): 111 """Gets the created_timestamp of this EnvelopesSharesResponseItem. # noqa: E501 112 113 # noqa: E501 114 115 :return: The created_timestamp of this EnvelopesSharesResponseItem. # noqa: E501 116 :rtype: str 117 """ 118 return self._created_timestamp 119 120 @created_timestamp.setter 121 def created_timestamp(self, created_timestamp): 122 """Sets the created_timestamp of this EnvelopesSharesResponseItem. 123 124 # noqa: E501 125 126 :param created_timestamp: The created_timestamp of this EnvelopesSharesResponseItem. # noqa: E501 127 :type: str 128 """ 129 130 self._created_timestamp = created_timestamp 131 132 @property 133 def envelope_id(self): 134 """Gets the envelope_id of this EnvelopesSharesResponseItem. # noqa: E501 135 136 The envelope ID of the envelope status that failed to post. # noqa: E501 137 138 :return: The envelope_id of this EnvelopesSharesResponseItem. # noqa: E501 139 :rtype: str 140 """ 141 return self._envelope_id 142 143 @envelope_id.setter 144 def envelope_id(self, envelope_id): 145 """Sets the envelope_id of this EnvelopesSharesResponseItem. 146 147 The envelope ID of the envelope status that failed to post. # noqa: E501 148 149 :param envelope_id: The envelope_id of this EnvelopesSharesResponseItem. # noqa: E501 150 :type: str 151 """ 152 153 self._envelope_id = envelope_id 154 155 @property 156 def error_details(self): 157 """Gets the error_details of this EnvelopesSharesResponseItem. # noqa: E501 158 159 Array or errors. # noqa: E501 160 161 :return: The error_details of this EnvelopesSharesResponseItem. # noqa: E501 162 :rtype: ErrorDetails 163 """ 164 return self._error_details 165 166 @error_details.setter 167 def error_details(self, error_details): 168 """Sets the error_details of this EnvelopesSharesResponseItem. 169 170 Array or errors. # noqa: E501 171 172 :param error_details: The error_details of this EnvelopesSharesResponseItem. # noqa: E501 173 :type: ErrorDetails 174 """ 175 176 self._error_details = error_details 177 178 @property 179 def modified_timestamp(self): 180 """Gets the modified_timestamp of this EnvelopesSharesResponseItem. # noqa: E501 181 182 # noqa: E501 183 184 :return: The modified_timestamp of this EnvelopesSharesResponseItem. # noqa: E501 185 :rtype: str 186 """ 187 return self._modified_timestamp 188 189 @modified_timestamp.setter 190 def modified_timestamp(self, modified_timestamp): 191 """Sets the modified_timestamp of this EnvelopesSharesResponseItem. 192 193 # noqa: E501 194 195 :param modified_timestamp: The modified_timestamp of this EnvelopesSharesResponseItem. # noqa: E501 196 :type: str 197 """ 198 199 self._modified_timestamp = modified_timestamp 200 201 @property 202 def permission(self): 203 """Gets the permission of this EnvelopesSharesResponseItem. # noqa: E501 204 205 # noqa: E501 206 207 :return: The permission of this EnvelopesSharesResponseItem. # noqa: E501 208 :rtype: str 209 """ 210 return self._permission 211 212 @permission.setter 213 def permission(self, permission): 214 """Sets the permission of this EnvelopesSharesResponseItem. 215 216 # noqa: E501 217 218 :param permission: The permission of this EnvelopesSharesResponseItem. # noqa: E501 219 :type: str 220 """ 221 222 self._permission = permission 223 224 @property 225 def sender_info(self): 226 """Gets the sender_info of this EnvelopesSharesResponseItem. # noqa: E501 227 228 # noqa: E501 229 230 :return: The sender_info of this EnvelopesSharesResponseItem. # noqa: E501 231 :rtype: AuthorizationUser 232 """ 233 return self._sender_info 234 235 @sender_info.setter 236 def sender_info(self, sender_info): 237 """Sets the sender_info of this EnvelopesSharesResponseItem. 238 239 # noqa: E501 240 241 :param sender_info: The sender_info of this EnvelopesSharesResponseItem. # noqa: E501 242 :type: AuthorizationUser 243 """ 244 245 self._sender_info = sender_info 246 247 @property 248 def share_id(self): 249 """Gets the share_id of this EnvelopesSharesResponseItem. # noqa: E501 250 251 # noqa: E501 252 253 :return: The share_id of this EnvelopesSharesResponseItem. # noqa: E501 254 :rtype: str 255 """ 256 return self._share_id 257 258 @share_id.setter 259 def share_id(self, share_id): 260 """Sets the share_id of this EnvelopesSharesResponseItem. 261 262 # noqa: E501 263 264 :param share_id: The share_id of this EnvelopesSharesResponseItem. # noqa: E501 265 :type: str 266 """ 267 268 self._share_id = share_id 269 270 @property 271 def subject(self): 272 """Gets the subject of this EnvelopesSharesResponseItem. # noqa: E501 273 274 # noqa: E501 275 276 :return: The subject of this EnvelopesSharesResponseItem. # noqa: E501 277 :rtype: str 278 """ 279 return self._subject 280 281 @subject.setter 282 def subject(self, subject): 283 """Sets the subject of this EnvelopesSharesResponseItem. 284 285 # noqa: E501 286 287 :param subject: The subject of this EnvelopesSharesResponseItem. # noqa: E501 288 :type: str 289 """ 290 291 self._subject = subject 292 293 def to_dict(self): 294 """Returns the model properties as a dict""" 295 result = {} 296 297 for attr, _ in six.iteritems(self.swagger_types): 298 value = getattr(self, attr) 299 if isinstance(value, list): 300 result[attr] = list(map( 301 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 302 value 303 )) 304 elif hasattr(value, "to_dict"): 305 result[attr] = value.to_dict() 306 elif isinstance(value, dict): 307 result[attr] = dict(map( 308 lambda item: (item[0], item[1].to_dict()) 309 if hasattr(item[1], "to_dict") else item, 310 value.items() 311 )) 312 else: 313 result[attr] = value 314 if issubclass(EnvelopesSharesResponseItem, dict): 315 for key, value in self.items(): 316 result[key] = value 317 318 return result 319 320 def to_str(self): 321 """Returns the string representation of the model""" 322 return pprint.pformat(self.to_dict()) 323 324 def __repr__(self): 325 """For `print` and `pprint`""" 326 return self.to_str() 327 328 def __eq__(self, other): 329 """Returns true if both objects are equal""" 330 if not isinstance(other, EnvelopesSharesResponseItem): 331 return False 332 333 return self.to_dict() == other.to_dict() 334 335 def __ne__(self, other): 336 """Returns true if both objects are not equal""" 337 if not isinstance(other, EnvelopesSharesResponseItem): 338 return True 339 340 return self.to_dict() != other.to_dict()