docusign_esign.models.member_shared_items
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 MemberSharedItems(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 'envelopes': 'list[SharedItem]', 37 'error_details': 'ErrorDetails', 38 'folders': 'list[FolderSharedItem]', 39 'templates': 'list[TemplateSharedItem]', 40 'user': 'UserInfo' 41 } 42 43 attribute_map = { 44 'envelopes': 'envelopes', 45 'error_details': 'errorDetails', 46 'folders': 'folders', 47 'templates': 'templates', 48 'user': 'user' 49 } 50 51 def __init__(self, _configuration=None, **kwargs): # noqa: E501 52 """MemberSharedItems - a model defined in Swagger""" # noqa: E501 53 if _configuration is None: 54 _configuration = Configuration() 55 self._configuration = _configuration 56 57 self._envelopes = None 58 self._error_details = None 59 self._folders = None 60 self._templates = None 61 self._user = None 62 self.discriminator = None 63 64 setattr(self, "_{}".format('envelopes'), kwargs.get('envelopes', None)) 65 setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) 66 setattr(self, "_{}".format('folders'), kwargs.get('folders', None)) 67 setattr(self, "_{}".format('templates'), kwargs.get('templates', None)) 68 setattr(self, "_{}".format('user'), kwargs.get('user', None)) 69 70 @property 71 def envelopes(self): 72 """Gets the envelopes of this MemberSharedItems. # noqa: E501 73 74 # noqa: E501 75 76 :return: The envelopes of this MemberSharedItems. # noqa: E501 77 :rtype: list[SharedItem] 78 """ 79 return self._envelopes 80 81 @envelopes.setter 82 def envelopes(self, envelopes): 83 """Sets the envelopes of this MemberSharedItems. 84 85 # noqa: E501 86 87 :param envelopes: The envelopes of this MemberSharedItems. # noqa: E501 88 :type: list[SharedItem] 89 """ 90 91 self._envelopes = envelopes 92 93 @property 94 def error_details(self): 95 """Gets the error_details of this MemberSharedItems. # noqa: E501 96 97 Array or errors. # noqa: E501 98 99 :return: The error_details of this MemberSharedItems. # noqa: E501 100 :rtype: ErrorDetails 101 """ 102 return self._error_details 103 104 @error_details.setter 105 def error_details(self, error_details): 106 """Sets the error_details of this MemberSharedItems. 107 108 Array or errors. # noqa: E501 109 110 :param error_details: The error_details of this MemberSharedItems. # noqa: E501 111 :type: ErrorDetails 112 """ 113 114 self._error_details = error_details 115 116 @property 117 def folders(self): 118 """Gets the folders of this MemberSharedItems. # noqa: E501 119 120 # noqa: E501 121 122 :return: The folders of this MemberSharedItems. # noqa: E501 123 :rtype: list[FolderSharedItem] 124 """ 125 return self._folders 126 127 @folders.setter 128 def folders(self, folders): 129 """Sets the folders of this MemberSharedItems. 130 131 # noqa: E501 132 133 :param folders: The folders of this MemberSharedItems. # noqa: E501 134 :type: list[FolderSharedItem] 135 """ 136 137 self._folders = folders 138 139 @property 140 def templates(self): 141 """Gets the templates of this MemberSharedItems. # noqa: E501 142 143 # noqa: E501 144 145 :return: The templates of this MemberSharedItems. # noqa: E501 146 :rtype: list[TemplateSharedItem] 147 """ 148 return self._templates 149 150 @templates.setter 151 def templates(self, templates): 152 """Sets the templates of this MemberSharedItems. 153 154 # noqa: E501 155 156 :param templates: The templates of this MemberSharedItems. # noqa: E501 157 :type: list[TemplateSharedItem] 158 """ 159 160 self._templates = templates 161 162 @property 163 def user(self): 164 """Gets the user of this MemberSharedItems. # noqa: E501 165 166 Information about the user requesting sharing information. # noqa: E501 167 168 :return: The user of this MemberSharedItems. # noqa: E501 169 :rtype: UserInfo 170 """ 171 return self._user 172 173 @user.setter 174 def user(self, user): 175 """Sets the user of this MemberSharedItems. 176 177 Information about the user requesting sharing information. # noqa: E501 178 179 :param user: The user of this MemberSharedItems. # noqa: E501 180 :type: UserInfo 181 """ 182 183 self._user = user 184 185 def to_dict(self): 186 """Returns the model properties as a dict""" 187 result = {} 188 189 for attr, _ in six.iteritems(self.swagger_types): 190 value = getattr(self, attr) 191 if isinstance(value, list): 192 result[attr] = list(map( 193 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 194 value 195 )) 196 elif hasattr(value, "to_dict"): 197 result[attr] = value.to_dict() 198 elif isinstance(value, dict): 199 result[attr] = dict(map( 200 lambda item: (item[0], item[1].to_dict()) 201 if hasattr(item[1], "to_dict") else item, 202 value.items() 203 )) 204 else: 205 result[attr] = value 206 if issubclass(MemberSharedItems, dict): 207 for key, value in self.items(): 208 result[key] = value 209 210 return result 211 212 def to_str(self): 213 """Returns the string representation of the model""" 214 return pprint.pformat(self.to_dict()) 215 216 def __repr__(self): 217 """For `print` and `pprint`""" 218 return self.to_str() 219 220 def __eq__(self, other): 221 """Returns true if both objects are equal""" 222 if not isinstance(other, MemberSharedItems): 223 return False 224 225 return self.to_dict() == other.to_dict() 226 227 def __ne__(self, other): 228 """Returns true if both objects are not equal""" 229 if not isinstance(other, MemberSharedItems): 230 return True 231 232 return self.to_dict() != other.to_dict()