docusign_esign.models.account_shared_access
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 AccountSharedAccess(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 'end_position': 'str', 38 'error_details': 'ErrorDetails', 39 'next_uri': 'str', 40 'previous_uri': 'str', 41 'result_set_size': 'str', 42 'shared_access': 'list[MemberSharedItems]', 43 'start_position': 'str', 44 'total_set_size': 'str' 45 } 46 47 attribute_map = { 48 'account_id': 'accountId', 49 'end_position': 'endPosition', 50 'error_details': 'errorDetails', 51 'next_uri': 'nextUri', 52 'previous_uri': 'previousUri', 53 'result_set_size': 'resultSetSize', 54 'shared_access': 'sharedAccess', 55 'start_position': 'startPosition', 56 'total_set_size': 'totalSetSize' 57 } 58 59 def __init__(self, _configuration=None, **kwargs): # noqa: E501 60 """AccountSharedAccess - a model defined in Swagger""" # noqa: E501 61 if _configuration is None: 62 _configuration = Configuration() 63 self._configuration = _configuration 64 65 self._account_id = None 66 self._end_position = None 67 self._error_details = None 68 self._next_uri = None 69 self._previous_uri = None 70 self._result_set_size = None 71 self._shared_access = None 72 self._start_position = None 73 self._total_set_size = None 74 self.discriminator = None 75 76 setattr(self, "_{}".format('account_id'), kwargs.get('account_id', None)) 77 setattr(self, "_{}".format('end_position'), kwargs.get('end_position', None)) 78 setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) 79 setattr(self, "_{}".format('next_uri'), kwargs.get('next_uri', None)) 80 setattr(self, "_{}".format('previous_uri'), kwargs.get('previous_uri', None)) 81 setattr(self, "_{}".format('result_set_size'), kwargs.get('result_set_size', None)) 82 setattr(self, "_{}".format('shared_access'), kwargs.get('shared_access', None)) 83 setattr(self, "_{}".format('start_position'), kwargs.get('start_position', None)) 84 setattr(self, "_{}".format('total_set_size'), kwargs.get('total_set_size', None)) 85 86 @property 87 def account_id(self): 88 """Gets the account_id of this AccountSharedAccess. # noqa: E501 89 90 The account ID associated with the envelope. # noqa: E501 91 92 :return: The account_id of this AccountSharedAccess. # noqa: E501 93 :rtype: str 94 """ 95 return self._account_id 96 97 @account_id.setter 98 def account_id(self, account_id): 99 """Sets the account_id of this AccountSharedAccess. 100 101 The account ID associated with the envelope. # noqa: E501 102 103 :param account_id: The account_id of this AccountSharedAccess. # noqa: E501 104 :type: str 105 """ 106 107 self._account_id = account_id 108 109 @property 110 def end_position(self): 111 """Gets the end_position of this AccountSharedAccess. # noqa: E501 112 113 The last position in the result set. # noqa: E501 114 115 :return: The end_position of this AccountSharedAccess. # noqa: E501 116 :rtype: str 117 """ 118 return self._end_position 119 120 @end_position.setter 121 def end_position(self, end_position): 122 """Sets the end_position of this AccountSharedAccess. 123 124 The last position in the result set. # noqa: E501 125 126 :param end_position: The end_position of this AccountSharedAccess. # noqa: E501 127 :type: str 128 """ 129 130 self._end_position = end_position 131 132 @property 133 def error_details(self): 134 """Gets the error_details of this AccountSharedAccess. # noqa: E501 135 136 Array or errors. # noqa: E501 137 138 :return: The error_details of this AccountSharedAccess. # noqa: E501 139 :rtype: ErrorDetails 140 """ 141 return self._error_details 142 143 @error_details.setter 144 def error_details(self, error_details): 145 """Sets the error_details of this AccountSharedAccess. 146 147 Array or errors. # noqa: E501 148 149 :param error_details: The error_details of this AccountSharedAccess. # noqa: E501 150 :type: ErrorDetails 151 """ 152 153 self._error_details = error_details 154 155 @property 156 def next_uri(self): 157 """Gets the next_uri of this AccountSharedAccess. # noqa: E501 158 159 The URI to the next chunk of records based on the search request. If the endPosition is the entire results of the search, this is null. # noqa: E501 160 161 :return: The next_uri of this AccountSharedAccess. # noqa: E501 162 :rtype: str 163 """ 164 return self._next_uri 165 166 @next_uri.setter 167 def next_uri(self, next_uri): 168 """Sets the next_uri of this AccountSharedAccess. 169 170 The URI to the next chunk of records based on the search request. If the endPosition is the entire results of the search, this is null. # noqa: E501 171 172 :param next_uri: The next_uri of this AccountSharedAccess. # noqa: E501 173 :type: str 174 """ 175 176 self._next_uri = next_uri 177 178 @property 179 def previous_uri(self): 180 """Gets the previous_uri of this AccountSharedAccess. # noqa: E501 181 182 The postal code for the billing address. # noqa: E501 183 184 :return: The previous_uri of this AccountSharedAccess. # noqa: E501 185 :rtype: str 186 """ 187 return self._previous_uri 188 189 @previous_uri.setter 190 def previous_uri(self, previous_uri): 191 """Sets the previous_uri of this AccountSharedAccess. 192 193 The postal code for the billing address. # noqa: E501 194 195 :param previous_uri: The previous_uri of this AccountSharedAccess. # noqa: E501 196 :type: str 197 """ 198 199 self._previous_uri = previous_uri 200 201 @property 202 def result_set_size(self): 203 """Gets the result_set_size of this AccountSharedAccess. # noqa: E501 204 205 The number of results returned in this response. # noqa: E501 206 207 :return: The result_set_size of this AccountSharedAccess. # noqa: E501 208 :rtype: str 209 """ 210 return self._result_set_size 211 212 @result_set_size.setter 213 def result_set_size(self, result_set_size): 214 """Sets the result_set_size of this AccountSharedAccess. 215 216 The number of results returned in this response. # noqa: E501 217 218 :param result_set_size: The result_set_size of this AccountSharedAccess. # noqa: E501 219 :type: str 220 """ 221 222 self._result_set_size = result_set_size 223 224 @property 225 def shared_access(self): 226 """Gets the shared_access of this AccountSharedAccess. # noqa: E501 227 228 A complex type containing the shared access information to an envelope for the users specified in the request. # noqa: E501 229 230 :return: The shared_access of this AccountSharedAccess. # noqa: E501 231 :rtype: list[MemberSharedItems] 232 """ 233 return self._shared_access 234 235 @shared_access.setter 236 def shared_access(self, shared_access): 237 """Sets the shared_access of this AccountSharedAccess. 238 239 A complex type containing the shared access information to an envelope for the users specified in the request. # noqa: E501 240 241 :param shared_access: The shared_access of this AccountSharedAccess. # noqa: E501 242 :type: list[MemberSharedItems] 243 """ 244 245 self._shared_access = shared_access 246 247 @property 248 def start_position(self): 249 """Gets the start_position of this AccountSharedAccess. # noqa: E501 250 251 Starting position of the current result set. # noqa: E501 252 253 :return: The start_position of this AccountSharedAccess. # noqa: E501 254 :rtype: str 255 """ 256 return self._start_position 257 258 @start_position.setter 259 def start_position(self, start_position): 260 """Sets the start_position of this AccountSharedAccess. 261 262 Starting position of the current result set. # noqa: E501 263 264 :param start_position: The start_position of this AccountSharedAccess. # noqa: E501 265 :type: str 266 """ 267 268 self._start_position = start_position 269 270 @property 271 def total_set_size(self): 272 """Gets the total_set_size of this AccountSharedAccess. # noqa: E501 273 274 The total number of items available in the result set. This will always be greater than or equal to the value of the property returning the results in the in the response. # noqa: E501 275 276 :return: The total_set_size of this AccountSharedAccess. # noqa: E501 277 :rtype: str 278 """ 279 return self._total_set_size 280 281 @total_set_size.setter 282 def total_set_size(self, total_set_size): 283 """Sets the total_set_size of this AccountSharedAccess. 284 285 The total number of items available in the result set. This will always be greater than or equal to the value of the property returning the results in the in the response. # noqa: E501 286 287 :param total_set_size: The total_set_size of this AccountSharedAccess. # noqa: E501 288 :type: str 289 """ 290 291 self._total_set_size = total_set_size 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(AccountSharedAccess, 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, AccountSharedAccess): 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, AccountSharedAccess): 338 return True 339 340 return self.to_dict() != other.to_dict()