docusign_esign.models.folder
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 Folder(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 'error_details': 'ErrorDetails', 37 'filter': 'Filter', 38 'folder_id': 'str', 39 'folder_items': 'list[FolderItemV2]', 40 'folders': 'list[Folder]', 41 'has_access': 'str', 42 'has_sub_folders': 'str', 43 'item_count': 'str', 44 'name': 'str', 45 'owner': 'UserInfo', 46 'parent_folder_id': 'str', 47 'parent_folder_uri': 'str', 48 'sub_folder_count': 'str', 49 'type': 'str', 50 'uri': 'str' 51 } 52 53 attribute_map = { 54 'error_details': 'errorDetails', 55 'filter': 'filter', 56 'folder_id': 'folderId', 57 'folder_items': 'folderItems', 58 'folders': 'folders', 59 'has_access': 'hasAccess', 60 'has_sub_folders': 'hasSubFolders', 61 'item_count': 'itemCount', 62 'name': 'name', 63 'owner': 'owner', 64 'parent_folder_id': 'parentFolderId', 65 'parent_folder_uri': 'parentFolderUri', 66 'sub_folder_count': 'subFolderCount', 67 'type': 'type', 68 'uri': 'uri' 69 } 70 71 def __init__(self, _configuration=None, **kwargs): # noqa: E501 72 """Folder - a model defined in Swagger""" # noqa: E501 73 if _configuration is None: 74 _configuration = Configuration() 75 self._configuration = _configuration 76 77 self._error_details = None 78 self._filter = None 79 self._folder_id = None 80 self._folder_items = None 81 self._folders = None 82 self._has_access = None 83 self._has_sub_folders = None 84 self._item_count = None 85 self._name = None 86 self._owner = None 87 self._parent_folder_id = None 88 self._parent_folder_uri = None 89 self._sub_folder_count = None 90 self._type = None 91 self._uri = None 92 self.discriminator = None 93 94 setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) 95 setattr(self, "_{}".format('filter'), kwargs.get('filter', None)) 96 setattr(self, "_{}".format('folder_id'), kwargs.get('folder_id', None)) 97 setattr(self, "_{}".format('folder_items'), kwargs.get('folder_items', None)) 98 setattr(self, "_{}".format('folders'), kwargs.get('folders', None)) 99 setattr(self, "_{}".format('has_access'), kwargs.get('has_access', None)) 100 setattr(self, "_{}".format('has_sub_folders'), kwargs.get('has_sub_folders', None)) 101 setattr(self, "_{}".format('item_count'), kwargs.get('item_count', None)) 102 setattr(self, "_{}".format('name'), kwargs.get('name', None)) 103 setattr(self, "_{}".format('owner'), kwargs.get('owner', None)) 104 setattr(self, "_{}".format('parent_folder_id'), kwargs.get('parent_folder_id', None)) 105 setattr(self, "_{}".format('parent_folder_uri'), kwargs.get('parent_folder_uri', None)) 106 setattr(self, "_{}".format('sub_folder_count'), kwargs.get('sub_folder_count', None)) 107 setattr(self, "_{}".format('type'), kwargs.get('type', None)) 108 setattr(self, "_{}".format('uri'), kwargs.get('uri', None)) 109 110 @property 111 def error_details(self): 112 """Gets the error_details of this Folder. # noqa: E501 113 114 Array or errors. # noqa: E501 115 116 :return: The error_details of this Folder. # noqa: E501 117 :rtype: ErrorDetails 118 """ 119 return self._error_details 120 121 @error_details.setter 122 def error_details(self, error_details): 123 """Sets the error_details of this Folder. 124 125 Array or errors. # noqa: E501 126 127 :param error_details: The error_details of this Folder. # noqa: E501 128 :type: ErrorDetails 129 """ 130 131 self._error_details = error_details 132 133 @property 134 def filter(self): 135 """Gets the filter of this Folder. # noqa: E501 136 137 An object used to present a filtered view of the items in a folder. # noqa: E501 138 139 :return: The filter of this Folder. # noqa: E501 140 :rtype: Filter 141 """ 142 return self._filter 143 144 @filter.setter 145 def filter(self, filter): 146 """Sets the filter of this Folder. 147 148 An object used to present a filtered view of the items in a folder. # noqa: E501 149 150 :param filter: The filter of this Folder. # noqa: E501 151 :type: Filter 152 """ 153 154 self._filter = filter 155 156 @property 157 def folder_id(self): 158 """Gets the folder_id of this Folder. # noqa: E501 159 160 # noqa: E501 161 162 :return: The folder_id of this Folder. # noqa: E501 163 :rtype: str 164 """ 165 return self._folder_id 166 167 @folder_id.setter 168 def folder_id(self, folder_id): 169 """Sets the folder_id of this Folder. 170 171 # noqa: E501 172 173 :param folder_id: The folder_id of this Folder. # noqa: E501 174 :type: str 175 """ 176 177 self._folder_id = folder_id 178 179 @property 180 def folder_items(self): 181 """Gets the folder_items of this Folder. # noqa: E501 182 183 A list of the envelopes in the specified folder or folders. # noqa: E501 184 185 :return: The folder_items of this Folder. # noqa: E501 186 :rtype: list[FolderItemV2] 187 """ 188 return self._folder_items 189 190 @folder_items.setter 191 def folder_items(self, folder_items): 192 """Sets the folder_items of this Folder. 193 194 A list of the envelopes in the specified folder or folders. # noqa: E501 195 196 :param folder_items: The folder_items of this Folder. # noqa: E501 197 :type: list[FolderItemV2] 198 """ 199 200 self._folder_items = folder_items 201 202 @property 203 def folders(self): 204 """Gets the folders of this Folder. # noqa: E501 205 206 A collection of folder objects returned in a response. # noqa: E501 207 208 :return: The folders of this Folder. # noqa: E501 209 :rtype: list[Folder] 210 """ 211 return self._folders 212 213 @folders.setter 214 def folders(self, folders): 215 """Sets the folders of this Folder. 216 217 A collection of folder objects returned in a response. # noqa: E501 218 219 :param folders: The folders of this Folder. # noqa: E501 220 :type: list[Folder] 221 """ 222 223 self._folders = folders 224 225 @property 226 def has_access(self): 227 """Gets the has_access of this Folder. # noqa: E501 228 229 # noqa: E501 230 231 :return: The has_access of this Folder. # noqa: E501 232 :rtype: str 233 """ 234 return self._has_access 235 236 @has_access.setter 237 def has_access(self, has_access): 238 """Sets the has_access of this Folder. 239 240 # noqa: E501 241 242 :param has_access: The has_access of this Folder. # noqa: E501 243 :type: str 244 """ 245 246 self._has_access = has_access 247 248 @property 249 def has_sub_folders(self): 250 """Gets the has_sub_folders of this Folder. # noqa: E501 251 252 # noqa: E501 253 254 :return: The has_sub_folders of this Folder. # noqa: E501 255 :rtype: str 256 """ 257 return self._has_sub_folders 258 259 @has_sub_folders.setter 260 def has_sub_folders(self, has_sub_folders): 261 """Sets the has_sub_folders of this Folder. 262 263 # noqa: E501 264 265 :param has_sub_folders: The has_sub_folders of this Folder. # noqa: E501 266 :type: str 267 """ 268 269 self._has_sub_folders = has_sub_folders 270 271 @property 272 def item_count(self): 273 """Gets the item_count of this Folder. # noqa: E501 274 275 # noqa: E501 276 277 :return: The item_count of this Folder. # noqa: E501 278 :rtype: str 279 """ 280 return self._item_count 281 282 @item_count.setter 283 def item_count(self, item_count): 284 """Sets the item_count of this Folder. 285 286 # noqa: E501 287 288 :param item_count: The item_count of this Folder. # noqa: E501 289 :type: str 290 """ 291 292 self._item_count = item_count 293 294 @property 295 def name(self): 296 """Gets the name of this Folder. # noqa: E501 297 298 # noqa: E501 299 300 :return: The name of this Folder. # noqa: E501 301 :rtype: str 302 """ 303 return self._name 304 305 @name.setter 306 def name(self, name): 307 """Sets the name of this Folder. 308 309 # noqa: E501 310 311 :param name: The name of this Folder. # noqa: E501 312 :type: str 313 """ 314 315 self._name = name 316 317 @property 318 def owner(self): 319 """Gets the owner of this Folder. # noqa: E501 320 321 Information about the user who owns the folder. # noqa: E501 322 323 :return: The owner of this Folder. # noqa: E501 324 :rtype: UserInfo 325 """ 326 return self._owner 327 328 @owner.setter 329 def owner(self, owner): 330 """Sets the owner of this Folder. 331 332 Information about the user who owns the folder. # noqa: E501 333 334 :param owner: The owner of this Folder. # noqa: E501 335 :type: UserInfo 336 """ 337 338 self._owner = owner 339 340 @property 341 def parent_folder_id(self): 342 """Gets the parent_folder_id of this Folder. # noqa: E501 343 344 # noqa: E501 345 346 :return: The parent_folder_id of this Folder. # noqa: E501 347 :rtype: str 348 """ 349 return self._parent_folder_id 350 351 @parent_folder_id.setter 352 def parent_folder_id(self, parent_folder_id): 353 """Sets the parent_folder_id of this Folder. 354 355 # noqa: E501 356 357 :param parent_folder_id: The parent_folder_id of this Folder. # noqa: E501 358 :type: str 359 """ 360 361 self._parent_folder_id = parent_folder_id 362 363 @property 364 def parent_folder_uri(self): 365 """Gets the parent_folder_uri of this Folder. # noqa: E501 366 367 # noqa: E501 368 369 :return: The parent_folder_uri of this Folder. # noqa: E501 370 :rtype: str 371 """ 372 return self._parent_folder_uri 373 374 @parent_folder_uri.setter 375 def parent_folder_uri(self, parent_folder_uri): 376 """Sets the parent_folder_uri of this Folder. 377 378 # noqa: E501 379 380 :param parent_folder_uri: The parent_folder_uri of this Folder. # noqa: E501 381 :type: str 382 """ 383 384 self._parent_folder_uri = parent_folder_uri 385 386 @property 387 def sub_folder_count(self): 388 """Gets the sub_folder_count of this Folder. # noqa: E501 389 390 # noqa: E501 391 392 :return: The sub_folder_count of this Folder. # noqa: E501 393 :rtype: str 394 """ 395 return self._sub_folder_count 396 397 @sub_folder_count.setter 398 def sub_folder_count(self, sub_folder_count): 399 """Sets the sub_folder_count of this Folder. 400 401 # noqa: E501 402 403 :param sub_folder_count: The sub_folder_count of this Folder. # noqa: E501 404 :type: str 405 """ 406 407 self._sub_folder_count = sub_folder_count 408 409 @property 410 def type(self): 411 """Gets the type of this Folder. # noqa: E501 412 413 # noqa: E501 414 415 :return: The type of this Folder. # noqa: E501 416 :rtype: str 417 """ 418 return self._type 419 420 @type.setter 421 def type(self, type): 422 """Sets the type of this Folder. 423 424 # noqa: E501 425 426 :param type: The type of this Folder. # noqa: E501 427 :type: str 428 """ 429 430 self._type = type 431 432 @property 433 def uri(self): 434 """Gets the uri of this Folder. # noqa: E501 435 436 # noqa: E501 437 438 :return: The uri of this Folder. # noqa: E501 439 :rtype: str 440 """ 441 return self._uri 442 443 @uri.setter 444 def uri(self, uri): 445 """Sets the uri of this Folder. 446 447 # noqa: E501 448 449 :param uri: The uri of this Folder. # noqa: E501 450 :type: str 451 """ 452 453 self._uri = uri 454 455 def to_dict(self): 456 """Returns the model properties as a dict""" 457 result = {} 458 459 for attr, _ in six.iteritems(self.swagger_types): 460 value = getattr(self, attr) 461 if isinstance(value, list): 462 result[attr] = list(map( 463 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 464 value 465 )) 466 elif hasattr(value, "to_dict"): 467 result[attr] = value.to_dict() 468 elif isinstance(value, dict): 469 result[attr] = dict(map( 470 lambda item: (item[0], item[1].to_dict()) 471 if hasattr(item[1], "to_dict") else item, 472 value.items() 473 )) 474 else: 475 result[attr] = value 476 if issubclass(Folder, dict): 477 for key, value in self.items(): 478 result[key] = value 479 480 return result 481 482 def to_str(self): 483 """Returns the string representation of the model""" 484 return pprint.pformat(self.to_dict()) 485 486 def __repr__(self): 487 """For `print` and `pprint`""" 488 return self.to_str() 489 490 def __eq__(self, other): 491 """Returns true if both objects are equal""" 492 if not isinstance(other, Folder): 493 return False 494 495 return self.to_dict() == other.to_dict() 496 497 def __ne__(self, other): 498 """Returns true if both objects are not equal""" 499 if not isinstance(other, Folder): 500 return True 501 502 return self.to_dict() != other.to_dict()
23class Folder(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 'error_details': 'ErrorDetails', 38 'filter': 'Filter', 39 'folder_id': 'str', 40 'folder_items': 'list[FolderItemV2]', 41 'folders': 'list[Folder]', 42 'has_access': 'str', 43 'has_sub_folders': 'str', 44 'item_count': 'str', 45 'name': 'str', 46 'owner': 'UserInfo', 47 'parent_folder_id': 'str', 48 'parent_folder_uri': 'str', 49 'sub_folder_count': 'str', 50 'type': 'str', 51 'uri': 'str' 52 } 53 54 attribute_map = { 55 'error_details': 'errorDetails', 56 'filter': 'filter', 57 'folder_id': 'folderId', 58 'folder_items': 'folderItems', 59 'folders': 'folders', 60 'has_access': 'hasAccess', 61 'has_sub_folders': 'hasSubFolders', 62 'item_count': 'itemCount', 63 'name': 'name', 64 'owner': 'owner', 65 'parent_folder_id': 'parentFolderId', 66 'parent_folder_uri': 'parentFolderUri', 67 'sub_folder_count': 'subFolderCount', 68 'type': 'type', 69 'uri': 'uri' 70 } 71 72 def __init__(self, _configuration=None, **kwargs): # noqa: E501 73 """Folder - a model defined in Swagger""" # noqa: E501 74 if _configuration is None: 75 _configuration = Configuration() 76 self._configuration = _configuration 77 78 self._error_details = None 79 self._filter = None 80 self._folder_id = None 81 self._folder_items = None 82 self._folders = None 83 self._has_access = None 84 self._has_sub_folders = None 85 self._item_count = None 86 self._name = None 87 self._owner = None 88 self._parent_folder_id = None 89 self._parent_folder_uri = None 90 self._sub_folder_count = None 91 self._type = None 92 self._uri = None 93 self.discriminator = None 94 95 setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) 96 setattr(self, "_{}".format('filter'), kwargs.get('filter', None)) 97 setattr(self, "_{}".format('folder_id'), kwargs.get('folder_id', None)) 98 setattr(self, "_{}".format('folder_items'), kwargs.get('folder_items', None)) 99 setattr(self, "_{}".format('folders'), kwargs.get('folders', None)) 100 setattr(self, "_{}".format('has_access'), kwargs.get('has_access', None)) 101 setattr(self, "_{}".format('has_sub_folders'), kwargs.get('has_sub_folders', None)) 102 setattr(self, "_{}".format('item_count'), kwargs.get('item_count', None)) 103 setattr(self, "_{}".format('name'), kwargs.get('name', None)) 104 setattr(self, "_{}".format('owner'), kwargs.get('owner', None)) 105 setattr(self, "_{}".format('parent_folder_id'), kwargs.get('parent_folder_id', None)) 106 setattr(self, "_{}".format('parent_folder_uri'), kwargs.get('parent_folder_uri', None)) 107 setattr(self, "_{}".format('sub_folder_count'), kwargs.get('sub_folder_count', None)) 108 setattr(self, "_{}".format('type'), kwargs.get('type', None)) 109 setattr(self, "_{}".format('uri'), kwargs.get('uri', None)) 110 111 @property 112 def error_details(self): 113 """Gets the error_details of this Folder. # noqa: E501 114 115 Array or errors. # noqa: E501 116 117 :return: The error_details of this Folder. # noqa: E501 118 :rtype: ErrorDetails 119 """ 120 return self._error_details 121 122 @error_details.setter 123 def error_details(self, error_details): 124 """Sets the error_details of this Folder. 125 126 Array or errors. # noqa: E501 127 128 :param error_details: The error_details of this Folder. # noqa: E501 129 :type: ErrorDetails 130 """ 131 132 self._error_details = error_details 133 134 @property 135 def filter(self): 136 """Gets the filter of this Folder. # noqa: E501 137 138 An object used to present a filtered view of the items in a folder. # noqa: E501 139 140 :return: The filter of this Folder. # noqa: E501 141 :rtype: Filter 142 """ 143 return self._filter 144 145 @filter.setter 146 def filter(self, filter): 147 """Sets the filter of this Folder. 148 149 An object used to present a filtered view of the items in a folder. # noqa: E501 150 151 :param filter: The filter of this Folder. # noqa: E501 152 :type: Filter 153 """ 154 155 self._filter = filter 156 157 @property 158 def folder_id(self): 159 """Gets the folder_id of this Folder. # noqa: E501 160 161 # noqa: E501 162 163 :return: The folder_id of this Folder. # noqa: E501 164 :rtype: str 165 """ 166 return self._folder_id 167 168 @folder_id.setter 169 def folder_id(self, folder_id): 170 """Sets the folder_id of this Folder. 171 172 # noqa: E501 173 174 :param folder_id: The folder_id of this Folder. # noqa: E501 175 :type: str 176 """ 177 178 self._folder_id = folder_id 179 180 @property 181 def folder_items(self): 182 """Gets the folder_items of this Folder. # noqa: E501 183 184 A list of the envelopes in the specified folder or folders. # noqa: E501 185 186 :return: The folder_items of this Folder. # noqa: E501 187 :rtype: list[FolderItemV2] 188 """ 189 return self._folder_items 190 191 @folder_items.setter 192 def folder_items(self, folder_items): 193 """Sets the folder_items of this Folder. 194 195 A list of the envelopes in the specified folder or folders. # noqa: E501 196 197 :param folder_items: The folder_items of this Folder. # noqa: E501 198 :type: list[FolderItemV2] 199 """ 200 201 self._folder_items = folder_items 202 203 @property 204 def folders(self): 205 """Gets the folders of this Folder. # noqa: E501 206 207 A collection of folder objects returned in a response. # noqa: E501 208 209 :return: The folders of this Folder. # noqa: E501 210 :rtype: list[Folder] 211 """ 212 return self._folders 213 214 @folders.setter 215 def folders(self, folders): 216 """Sets the folders of this Folder. 217 218 A collection of folder objects returned in a response. # noqa: E501 219 220 :param folders: The folders of this Folder. # noqa: E501 221 :type: list[Folder] 222 """ 223 224 self._folders = folders 225 226 @property 227 def has_access(self): 228 """Gets the has_access of this Folder. # noqa: E501 229 230 # noqa: E501 231 232 :return: The has_access of this Folder. # noqa: E501 233 :rtype: str 234 """ 235 return self._has_access 236 237 @has_access.setter 238 def has_access(self, has_access): 239 """Sets the has_access of this Folder. 240 241 # noqa: E501 242 243 :param has_access: The has_access of this Folder. # noqa: E501 244 :type: str 245 """ 246 247 self._has_access = has_access 248 249 @property 250 def has_sub_folders(self): 251 """Gets the has_sub_folders of this Folder. # noqa: E501 252 253 # noqa: E501 254 255 :return: The has_sub_folders of this Folder. # noqa: E501 256 :rtype: str 257 """ 258 return self._has_sub_folders 259 260 @has_sub_folders.setter 261 def has_sub_folders(self, has_sub_folders): 262 """Sets the has_sub_folders of this Folder. 263 264 # noqa: E501 265 266 :param has_sub_folders: The has_sub_folders of this Folder. # noqa: E501 267 :type: str 268 """ 269 270 self._has_sub_folders = has_sub_folders 271 272 @property 273 def item_count(self): 274 """Gets the item_count of this Folder. # noqa: E501 275 276 # noqa: E501 277 278 :return: The item_count of this Folder. # noqa: E501 279 :rtype: str 280 """ 281 return self._item_count 282 283 @item_count.setter 284 def item_count(self, item_count): 285 """Sets the item_count of this Folder. 286 287 # noqa: E501 288 289 :param item_count: The item_count of this Folder. # noqa: E501 290 :type: str 291 """ 292 293 self._item_count = item_count 294 295 @property 296 def name(self): 297 """Gets the name of this Folder. # noqa: E501 298 299 # noqa: E501 300 301 :return: The name of this Folder. # noqa: E501 302 :rtype: str 303 """ 304 return self._name 305 306 @name.setter 307 def name(self, name): 308 """Sets the name of this Folder. 309 310 # noqa: E501 311 312 :param name: The name of this Folder. # noqa: E501 313 :type: str 314 """ 315 316 self._name = name 317 318 @property 319 def owner(self): 320 """Gets the owner of this Folder. # noqa: E501 321 322 Information about the user who owns the folder. # noqa: E501 323 324 :return: The owner of this Folder. # noqa: E501 325 :rtype: UserInfo 326 """ 327 return self._owner 328 329 @owner.setter 330 def owner(self, owner): 331 """Sets the owner of this Folder. 332 333 Information about the user who owns the folder. # noqa: E501 334 335 :param owner: The owner of this Folder. # noqa: E501 336 :type: UserInfo 337 """ 338 339 self._owner = owner 340 341 @property 342 def parent_folder_id(self): 343 """Gets the parent_folder_id of this Folder. # noqa: E501 344 345 # noqa: E501 346 347 :return: The parent_folder_id of this Folder. # noqa: E501 348 :rtype: str 349 """ 350 return self._parent_folder_id 351 352 @parent_folder_id.setter 353 def parent_folder_id(self, parent_folder_id): 354 """Sets the parent_folder_id of this Folder. 355 356 # noqa: E501 357 358 :param parent_folder_id: The parent_folder_id of this Folder. # noqa: E501 359 :type: str 360 """ 361 362 self._parent_folder_id = parent_folder_id 363 364 @property 365 def parent_folder_uri(self): 366 """Gets the parent_folder_uri of this Folder. # noqa: E501 367 368 # noqa: E501 369 370 :return: The parent_folder_uri of this Folder. # noqa: E501 371 :rtype: str 372 """ 373 return self._parent_folder_uri 374 375 @parent_folder_uri.setter 376 def parent_folder_uri(self, parent_folder_uri): 377 """Sets the parent_folder_uri of this Folder. 378 379 # noqa: E501 380 381 :param parent_folder_uri: The parent_folder_uri of this Folder. # noqa: E501 382 :type: str 383 """ 384 385 self._parent_folder_uri = parent_folder_uri 386 387 @property 388 def sub_folder_count(self): 389 """Gets the sub_folder_count of this Folder. # noqa: E501 390 391 # noqa: E501 392 393 :return: The sub_folder_count of this Folder. # noqa: E501 394 :rtype: str 395 """ 396 return self._sub_folder_count 397 398 @sub_folder_count.setter 399 def sub_folder_count(self, sub_folder_count): 400 """Sets the sub_folder_count of this Folder. 401 402 # noqa: E501 403 404 :param sub_folder_count: The sub_folder_count of this Folder. # noqa: E501 405 :type: str 406 """ 407 408 self._sub_folder_count = sub_folder_count 409 410 @property 411 def type(self): 412 """Gets the type of this Folder. # noqa: E501 413 414 # noqa: E501 415 416 :return: The type of this Folder. # noqa: E501 417 :rtype: str 418 """ 419 return self._type 420 421 @type.setter 422 def type(self, type): 423 """Sets the type of this Folder. 424 425 # noqa: E501 426 427 :param type: The type of this Folder. # noqa: E501 428 :type: str 429 """ 430 431 self._type = type 432 433 @property 434 def uri(self): 435 """Gets the uri of this Folder. # noqa: E501 436 437 # noqa: E501 438 439 :return: The uri of this Folder. # noqa: E501 440 :rtype: str 441 """ 442 return self._uri 443 444 @uri.setter 445 def uri(self, uri): 446 """Sets the uri of this Folder. 447 448 # noqa: E501 449 450 :param uri: The uri of this Folder. # noqa: E501 451 :type: str 452 """ 453 454 self._uri = uri 455 456 def to_dict(self): 457 """Returns the model properties as a dict""" 458 result = {} 459 460 for attr, _ in six.iteritems(self.swagger_types): 461 value = getattr(self, attr) 462 if isinstance(value, list): 463 result[attr] = list(map( 464 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 465 value 466 )) 467 elif hasattr(value, "to_dict"): 468 result[attr] = value.to_dict() 469 elif isinstance(value, dict): 470 result[attr] = dict(map( 471 lambda item: (item[0], item[1].to_dict()) 472 if hasattr(item[1], "to_dict") else item, 473 value.items() 474 )) 475 else: 476 result[attr] = value 477 if issubclass(Folder, dict): 478 for key, value in self.items(): 479 result[key] = value 480 481 return result 482 483 def to_str(self): 484 """Returns the string representation of the model""" 485 return pprint.pformat(self.to_dict()) 486 487 def __repr__(self): 488 """For `print` and `pprint`""" 489 return self.to_str() 490 491 def __eq__(self, other): 492 """Returns true if both objects are equal""" 493 if not isinstance(other, Folder): 494 return False 495 496 return self.to_dict() == other.to_dict() 497 498 def __ne__(self, other): 499 """Returns true if both objects are not equal""" 500 if not isinstance(other, Folder): 501 return True 502 503 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.
72 def __init__(self, _configuration=None, **kwargs): # noqa: E501 73 """Folder - a model defined in Swagger""" # noqa: E501 74 if _configuration is None: 75 _configuration = Configuration() 76 self._configuration = _configuration 77 78 self._error_details = None 79 self._filter = None 80 self._folder_id = None 81 self._folder_items = None 82 self._folders = None 83 self._has_access = None 84 self._has_sub_folders = None 85 self._item_count = None 86 self._name = None 87 self._owner = None 88 self._parent_folder_id = None 89 self._parent_folder_uri = None 90 self._sub_folder_count = None 91 self._type = None 92 self._uri = None 93 self.discriminator = None 94 95 setattr(self, "_{}".format('error_details'), kwargs.get('error_details', None)) 96 setattr(self, "_{}".format('filter'), kwargs.get('filter', None)) 97 setattr(self, "_{}".format('folder_id'), kwargs.get('folder_id', None)) 98 setattr(self, "_{}".format('folder_items'), kwargs.get('folder_items', None)) 99 setattr(self, "_{}".format('folders'), kwargs.get('folders', None)) 100 setattr(self, "_{}".format('has_access'), kwargs.get('has_access', None)) 101 setattr(self, "_{}".format('has_sub_folders'), kwargs.get('has_sub_folders', None)) 102 setattr(self, "_{}".format('item_count'), kwargs.get('item_count', None)) 103 setattr(self, "_{}".format('name'), kwargs.get('name', None)) 104 setattr(self, "_{}".format('owner'), kwargs.get('owner', None)) 105 setattr(self, "_{}".format('parent_folder_id'), kwargs.get('parent_folder_id', None)) 106 setattr(self, "_{}".format('parent_folder_uri'), kwargs.get('parent_folder_uri', None)) 107 setattr(self, "_{}".format('sub_folder_count'), kwargs.get('sub_folder_count', None)) 108 setattr(self, "_{}".format('type'), kwargs.get('type', None)) 109 setattr(self, "_{}".format('uri'), kwargs.get('uri', None))
Folder - a model defined in Swagger
Gets the error_details of this Folder. # noqa: E501
Array or errors. # noqa: E501
Returns
The error_details of this Folder. # noqa: E501
Gets the filter of this Folder. # noqa: E501
An object used to present a filtered view of the items in a folder. # noqa: E501
Returns
The filter of this Folder. # noqa: E501
Gets the folder_id of this Folder. # noqa: E501
# noqa: E501
Returns
The folder_id of this Folder. # noqa: E501
Gets the folder_items of this Folder. # noqa: E501
A list of the envelopes in the specified folder or folders. # noqa: E501
Returns
The folder_items of this Folder. # noqa: E501
Gets the folders of this Folder. # noqa: E501
A collection of folder objects returned in a response. # noqa: E501
Returns
The folders of this Folder. # noqa: E501
Gets the has_access of this Folder. # noqa: E501
# noqa: E501
Returns
The has_access of this Folder. # noqa: E501
Gets the has_sub_folders of this Folder. # noqa: E501
# noqa: E501
Returns
The has_sub_folders of this Folder. # noqa: E501
Gets the item_count of this Folder. # noqa: E501
# noqa: E501
Returns
The item_count of this Folder. # noqa: E501
Gets the name of this Folder. # noqa: E501
# noqa: E501
Returns
The name of this Folder. # noqa: E501
Gets the owner of this Folder. # noqa: E501
Information about the user who owns the folder. # noqa: E501
Returns
The owner of this Folder. # noqa: E501
Gets the parent_folder_id of this Folder. # noqa: E501
# noqa: E501
Returns
The parent_folder_id of this Folder. # noqa: E501
Gets the parent_folder_uri of this Folder. # noqa: E501
# noqa: E501
Returns
The parent_folder_uri of this Folder. # noqa: E501
Gets the sub_folder_count of this Folder. # noqa: E501
# noqa: E501
Returns
The sub_folder_count of this Folder. # noqa: E501
Gets the type of this Folder. # noqa: E501
# noqa: E501
Returns
The type of this Folder. # noqa: E501
Gets the uri of this Folder. # noqa: E501
# noqa: E501
Returns
The uri of this Folder. # noqa: E501
456 def to_dict(self): 457 """Returns the model properties as a dict""" 458 result = {} 459 460 for attr, _ in six.iteritems(self.swagger_types): 461 value = getattr(self, attr) 462 if isinstance(value, list): 463 result[attr] = list(map( 464 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 465 value 466 )) 467 elif hasattr(value, "to_dict"): 468 result[attr] = value.to_dict() 469 elif isinstance(value, dict): 470 result[attr] = dict(map( 471 lambda item: (item[0], item[1].to_dict()) 472 if hasattr(item[1], "to_dict") else item, 473 value.items() 474 )) 475 else: 476 result[attr] = value 477 if issubclass(Folder, dict): 478 for key, value in self.items(): 479 result[key] = value 480 481 return result
Returns the model properties as a dict