docusign_esign.models.envelope_template_definition
DocuSign REST API
The DocuSign REST API provides you with a powerful, convenient, and simple Web services API for interacting with DocuSign.
OpenAPI spec version: v2 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. 7 8 OpenAPI spec version: v2 9 Contact: devcenter@docusign.com 10 Generated by: https://github.com/swagger-api/swagger-codegen.git 11""" 12 13 14from pprint import pformat 15from six import iteritems 16import re 17 18 19class EnvelopeTemplateDefinition(object): 20 """ 21 NOTE: This class is auto generated by the swagger code generator program. 22 Do not edit the class manually. 23 """ 24 def __init__(self, created=None, description=None, folder_id=None, folder_name=None, folder_uri=None, last_modified=None, last_modified_by=None, name=None, new_password=None, owner=None, page_count=None, parent_folder_uri=None, password=None, shared=None, template_id=None, uri=None): 25 """ 26 EnvelopeTemplateDefinition - a model defined in Swagger 27 28 :param dict swaggerTypes: The key is attribute name 29 and the value is attribute type. 30 :param dict attributeMap: The key is attribute name 31 and the value is json key in definition. 32 """ 33 self.swagger_types = { 34 'created': 'str', 35 'description': 'str', 36 'folder_id': 'str', 37 'folder_name': 'str', 38 'folder_uri': 'str', 39 'last_modified': 'str', 40 'last_modified_by': 'UserInfo', 41 'name': 'str', 42 'new_password': 'str', 43 'owner': 'UserInfo', 44 'page_count': 'int', 45 'parent_folder_uri': 'str', 46 'password': 'str', 47 'shared': 'str', 48 'template_id': 'str', 49 'uri': 'str' 50 } 51 52 self.attribute_map = { 53 'created': 'created', 54 'description': 'description', 55 'folder_id': 'folderId', 56 'folder_name': 'folderName', 57 'folder_uri': 'folderUri', 58 'last_modified': 'lastModified', 59 'last_modified_by': 'lastModifiedBy', 60 'name': 'name', 61 'new_password': 'newPassword', 62 'owner': 'owner', 63 'page_count': 'pageCount', 64 'parent_folder_uri': 'parentFolderUri', 65 'password': 'password', 66 'shared': 'shared', 67 'template_id': 'templateId', 68 'uri': 'uri' 69 } 70 71 self._created = created 72 self._description = description 73 self._folder_id = folder_id 74 self._folder_name = folder_name 75 self._folder_uri = folder_uri 76 self._last_modified = last_modified 77 self._last_modified_by = last_modified_by 78 self._name = name 79 self._new_password = new_password 80 self._owner = owner 81 self._page_count = page_count 82 self._parent_folder_uri = parent_folder_uri 83 self._password = password 84 self._shared = shared 85 self._template_id = template_id 86 self._uri = uri 87 88 @property 89 def created(self): 90 """ 91 Gets the created of this EnvelopeTemplateDefinition. 92 93 94 :return: The created of this EnvelopeTemplateDefinition. 95 :rtype: str 96 """ 97 return self._created 98 99 @created.setter 100 def created(self, created): 101 """ 102 Sets the created of this EnvelopeTemplateDefinition. 103 104 105 :param created: The created of this EnvelopeTemplateDefinition. 106 :type: str 107 """ 108 109 self._created = created 110 111 @property 112 def description(self): 113 """ 114 Gets the description of this EnvelopeTemplateDefinition. 115 116 117 :return: The description of this EnvelopeTemplateDefinition. 118 :rtype: str 119 """ 120 return self._description 121 122 @description.setter 123 def description(self, description): 124 """ 125 Sets the description of this EnvelopeTemplateDefinition. 126 127 128 :param description: The description of this EnvelopeTemplateDefinition. 129 :type: str 130 """ 131 132 self._description = description 133 134 @property 135 def folder_id(self): 136 """ 137 Gets the folder_id of this EnvelopeTemplateDefinition. 138 The ID for the folder. 139 140 :return: The folder_id of this EnvelopeTemplateDefinition. 141 :rtype: str 142 """ 143 return self._folder_id 144 145 @folder_id.setter 146 def folder_id(self, folder_id): 147 """ 148 Sets the folder_id of this EnvelopeTemplateDefinition. 149 The ID for the folder. 150 151 :param folder_id: The folder_id of this EnvelopeTemplateDefinition. 152 :type: str 153 """ 154 155 self._folder_id = folder_id 156 157 @property 158 def folder_name(self): 159 """ 160 Gets the folder_name of this EnvelopeTemplateDefinition. 161 The name of the folder in which the template is located. 162 163 :return: The folder_name of this EnvelopeTemplateDefinition. 164 :rtype: str 165 """ 166 return self._folder_name 167 168 @folder_name.setter 169 def folder_name(self, folder_name): 170 """ 171 Sets the folder_name of this EnvelopeTemplateDefinition. 172 The name of the folder in which the template is located. 173 174 :param folder_name: The folder_name of this EnvelopeTemplateDefinition. 175 :type: str 176 """ 177 178 self._folder_name = folder_name 179 180 @property 181 def folder_uri(self): 182 """ 183 Gets the folder_uri of this EnvelopeTemplateDefinition. 184 The URI of the folder. 185 186 :return: The folder_uri of this EnvelopeTemplateDefinition. 187 :rtype: str 188 """ 189 return self._folder_uri 190 191 @folder_uri.setter 192 def folder_uri(self, folder_uri): 193 """ 194 Sets the folder_uri of this EnvelopeTemplateDefinition. 195 The URI of the folder. 196 197 :param folder_uri: The folder_uri of this EnvelopeTemplateDefinition. 198 :type: str 199 """ 200 201 self._folder_uri = folder_uri 202 203 @property 204 def last_modified(self): 205 """ 206 Gets the last_modified of this EnvelopeTemplateDefinition. 207 208 209 :return: The last_modified of this EnvelopeTemplateDefinition. 210 :rtype: str 211 """ 212 return self._last_modified 213 214 @last_modified.setter 215 def last_modified(self, last_modified): 216 """ 217 Sets the last_modified of this EnvelopeTemplateDefinition. 218 219 220 :param last_modified: The last_modified of this EnvelopeTemplateDefinition. 221 :type: str 222 """ 223 224 self._last_modified = last_modified 225 226 @property 227 def last_modified_by(self): 228 """ 229 Gets the last_modified_by of this EnvelopeTemplateDefinition. 230 231 :return: The last_modified_by of this EnvelopeTemplateDefinition. 232 :rtype: UserInfo 233 """ 234 return self._last_modified_by 235 236 @last_modified_by.setter 237 def last_modified_by(self, last_modified_by): 238 """ 239 Sets the last_modified_by of this EnvelopeTemplateDefinition. 240 241 :param last_modified_by: The last_modified_by of this EnvelopeTemplateDefinition. 242 :type: UserInfo 243 """ 244 245 self._last_modified_by = last_modified_by 246 247 @property 248 def name(self): 249 """ 250 Gets the name of this EnvelopeTemplateDefinition. 251 252 253 :return: The name of this EnvelopeTemplateDefinition. 254 :rtype: str 255 """ 256 return self._name 257 258 @name.setter 259 def name(self, name): 260 """ 261 Sets the name of this EnvelopeTemplateDefinition. 262 263 264 :param name: The name of this EnvelopeTemplateDefinition. 265 :type: str 266 """ 267 268 self._name = name 269 270 @property 271 def new_password(self): 272 """ 273 Gets the new_password of this EnvelopeTemplateDefinition. 274 275 276 :return: The new_password of this EnvelopeTemplateDefinition. 277 :rtype: str 278 """ 279 return self._new_password 280 281 @new_password.setter 282 def new_password(self, new_password): 283 """ 284 Sets the new_password of this EnvelopeTemplateDefinition. 285 286 287 :param new_password: The new_password of this EnvelopeTemplateDefinition. 288 :type: str 289 """ 290 291 self._new_password = new_password 292 293 @property 294 def owner(self): 295 """ 296 Gets the owner of this EnvelopeTemplateDefinition. 297 298 :return: The owner of this EnvelopeTemplateDefinition. 299 :rtype: UserInfo 300 """ 301 return self._owner 302 303 @owner.setter 304 def owner(self, owner): 305 """ 306 Sets the owner of this EnvelopeTemplateDefinition. 307 308 :param owner: The owner of this EnvelopeTemplateDefinition. 309 :type: UserInfo 310 """ 311 312 self._owner = owner 313 314 @property 315 def page_count(self): 316 """ 317 Gets the page_count of this EnvelopeTemplateDefinition. 318 An integer value specifying the number of document pages in the template. Omit this property if not submitting a page count. 319 320 :return: The page_count of this EnvelopeTemplateDefinition. 321 :rtype: int 322 """ 323 return self._page_count 324 325 @page_count.setter 326 def page_count(self, page_count): 327 """ 328 Sets the page_count of this EnvelopeTemplateDefinition. 329 An integer value specifying the number of document pages in the template. Omit this property if not submitting a page count. 330 331 :param page_count: The page_count of this EnvelopeTemplateDefinition. 332 :type: int 333 """ 334 335 self._page_count = page_count 336 337 @property 338 def parent_folder_uri(self): 339 """ 340 Gets the parent_folder_uri of this EnvelopeTemplateDefinition. 341 342 343 :return: The parent_folder_uri of this EnvelopeTemplateDefinition. 344 :rtype: str 345 """ 346 return self._parent_folder_uri 347 348 @parent_folder_uri.setter 349 def parent_folder_uri(self, parent_folder_uri): 350 """ 351 Sets the parent_folder_uri of this EnvelopeTemplateDefinition. 352 353 354 :param parent_folder_uri: The parent_folder_uri of this EnvelopeTemplateDefinition. 355 :type: str 356 """ 357 358 self._parent_folder_uri = parent_folder_uri 359 360 @property 361 def password(self): 362 """ 363 Gets the password of this EnvelopeTemplateDefinition. 364 365 366 :return: The password of this EnvelopeTemplateDefinition. 367 :rtype: str 368 """ 369 return self._password 370 371 @password.setter 372 def password(self, password): 373 """ 374 Sets the password of this EnvelopeTemplateDefinition. 375 376 377 :param password: The password of this EnvelopeTemplateDefinition. 378 :type: str 379 """ 380 381 self._password = password 382 383 @property 384 def shared(self): 385 """ 386 Gets the shared of this EnvelopeTemplateDefinition. 387 When set to **true**, this custom tab is shared. 388 389 :return: The shared of this EnvelopeTemplateDefinition. 390 :rtype: str 391 """ 392 return self._shared 393 394 @shared.setter 395 def shared(self, shared): 396 """ 397 Sets the shared of this EnvelopeTemplateDefinition. 398 When set to **true**, this custom tab is shared. 399 400 :param shared: The shared of this EnvelopeTemplateDefinition. 401 :type: str 402 """ 403 404 self._shared = shared 405 406 @property 407 def template_id(self): 408 """ 409 Gets the template_id of this EnvelopeTemplateDefinition. 410 The unique identifier of the template. If this is not provided, DocuSign will generate a value. 411 412 :return: The template_id of this EnvelopeTemplateDefinition. 413 :rtype: str 414 """ 415 return self._template_id 416 417 @template_id.setter 418 def template_id(self, template_id): 419 """ 420 Sets the template_id of this EnvelopeTemplateDefinition. 421 The unique identifier of the template. If this is not provided, DocuSign will generate a value. 422 423 :param template_id: The template_id of this EnvelopeTemplateDefinition. 424 :type: str 425 """ 426 427 self._template_id = template_id 428 429 @property 430 def uri(self): 431 """ 432 Gets the uri of this EnvelopeTemplateDefinition. 433 434 435 :return: The uri of this EnvelopeTemplateDefinition. 436 :rtype: str 437 """ 438 return self._uri 439 440 @uri.setter 441 def uri(self, uri): 442 """ 443 Sets the uri of this EnvelopeTemplateDefinition. 444 445 446 :param uri: The uri of this EnvelopeTemplateDefinition. 447 :type: str 448 """ 449 450 self._uri = uri 451 452 def to_dict(self): 453 """ 454 Returns the model properties as a dict 455 """ 456 result = {} 457 458 for attr, _ in iteritems(self.swagger_types): 459 value = getattr(self, attr) 460 if isinstance(value, list): 461 result[attr] = list(map( 462 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 463 value 464 )) 465 elif hasattr(value, "to_dict"): 466 result[attr] = value.to_dict() 467 elif isinstance(value, dict): 468 result[attr] = dict(map( 469 lambda item: (item[0], item[1].to_dict()) 470 if hasattr(item[1], "to_dict") else item, 471 value.items() 472 )) 473 else: 474 result[attr] = value 475 476 return result 477 478 def to_str(self): 479 """ 480 Returns the string representation of the model 481 """ 482 return pformat(self.to_dict()) 483 484 def __repr__(self): 485 """ 486 For `print` and `pprint` 487 """ 488 return self.to_str() 489 490 def __eq__(self, other): 491 """ 492 Returns true if both objects are equal 493 """ 494 return self.__dict__ == other.__dict__ 495 496 def __ne__(self, other): 497 """ 498 Returns true if both objects are not equal 499 """ 500 return not self == other
20class EnvelopeTemplateDefinition(object): 21 """ 22 NOTE: This class is auto generated by the swagger code generator program. 23 Do not edit the class manually. 24 """ 25 def __init__(self, created=None, description=None, folder_id=None, folder_name=None, folder_uri=None, last_modified=None, last_modified_by=None, name=None, new_password=None, owner=None, page_count=None, parent_folder_uri=None, password=None, shared=None, template_id=None, uri=None): 26 """ 27 EnvelopeTemplateDefinition - a model defined in Swagger 28 29 :param dict swaggerTypes: The key is attribute name 30 and the value is attribute type. 31 :param dict attributeMap: The key is attribute name 32 and the value is json key in definition. 33 """ 34 self.swagger_types = { 35 'created': 'str', 36 'description': 'str', 37 'folder_id': 'str', 38 'folder_name': 'str', 39 'folder_uri': 'str', 40 'last_modified': 'str', 41 'last_modified_by': 'UserInfo', 42 'name': 'str', 43 'new_password': 'str', 44 'owner': 'UserInfo', 45 'page_count': 'int', 46 'parent_folder_uri': 'str', 47 'password': 'str', 48 'shared': 'str', 49 'template_id': 'str', 50 'uri': 'str' 51 } 52 53 self.attribute_map = { 54 'created': 'created', 55 'description': 'description', 56 'folder_id': 'folderId', 57 'folder_name': 'folderName', 58 'folder_uri': 'folderUri', 59 'last_modified': 'lastModified', 60 'last_modified_by': 'lastModifiedBy', 61 'name': 'name', 62 'new_password': 'newPassword', 63 'owner': 'owner', 64 'page_count': 'pageCount', 65 'parent_folder_uri': 'parentFolderUri', 66 'password': 'password', 67 'shared': 'shared', 68 'template_id': 'templateId', 69 'uri': 'uri' 70 } 71 72 self._created = created 73 self._description = description 74 self._folder_id = folder_id 75 self._folder_name = folder_name 76 self._folder_uri = folder_uri 77 self._last_modified = last_modified 78 self._last_modified_by = last_modified_by 79 self._name = name 80 self._new_password = new_password 81 self._owner = owner 82 self._page_count = page_count 83 self._parent_folder_uri = parent_folder_uri 84 self._password = password 85 self._shared = shared 86 self._template_id = template_id 87 self._uri = uri 88 89 @property 90 def created(self): 91 """ 92 Gets the created of this EnvelopeTemplateDefinition. 93 94 95 :return: The created of this EnvelopeTemplateDefinition. 96 :rtype: str 97 """ 98 return self._created 99 100 @created.setter 101 def created(self, created): 102 """ 103 Sets the created of this EnvelopeTemplateDefinition. 104 105 106 :param created: The created of this EnvelopeTemplateDefinition. 107 :type: str 108 """ 109 110 self._created = created 111 112 @property 113 def description(self): 114 """ 115 Gets the description of this EnvelopeTemplateDefinition. 116 117 118 :return: The description of this EnvelopeTemplateDefinition. 119 :rtype: str 120 """ 121 return self._description 122 123 @description.setter 124 def description(self, description): 125 """ 126 Sets the description of this EnvelopeTemplateDefinition. 127 128 129 :param description: The description of this EnvelopeTemplateDefinition. 130 :type: str 131 """ 132 133 self._description = description 134 135 @property 136 def folder_id(self): 137 """ 138 Gets the folder_id of this EnvelopeTemplateDefinition. 139 The ID for the folder. 140 141 :return: The folder_id of this EnvelopeTemplateDefinition. 142 :rtype: str 143 """ 144 return self._folder_id 145 146 @folder_id.setter 147 def folder_id(self, folder_id): 148 """ 149 Sets the folder_id of this EnvelopeTemplateDefinition. 150 The ID for the folder. 151 152 :param folder_id: The folder_id of this EnvelopeTemplateDefinition. 153 :type: str 154 """ 155 156 self._folder_id = folder_id 157 158 @property 159 def folder_name(self): 160 """ 161 Gets the folder_name of this EnvelopeTemplateDefinition. 162 The name of the folder in which the template is located. 163 164 :return: The folder_name of this EnvelopeTemplateDefinition. 165 :rtype: str 166 """ 167 return self._folder_name 168 169 @folder_name.setter 170 def folder_name(self, folder_name): 171 """ 172 Sets the folder_name of this EnvelopeTemplateDefinition. 173 The name of the folder in which the template is located. 174 175 :param folder_name: The folder_name of this EnvelopeTemplateDefinition. 176 :type: str 177 """ 178 179 self._folder_name = folder_name 180 181 @property 182 def folder_uri(self): 183 """ 184 Gets the folder_uri of this EnvelopeTemplateDefinition. 185 The URI of the folder. 186 187 :return: The folder_uri of this EnvelopeTemplateDefinition. 188 :rtype: str 189 """ 190 return self._folder_uri 191 192 @folder_uri.setter 193 def folder_uri(self, folder_uri): 194 """ 195 Sets the folder_uri of this EnvelopeTemplateDefinition. 196 The URI of the folder. 197 198 :param folder_uri: The folder_uri of this EnvelopeTemplateDefinition. 199 :type: str 200 """ 201 202 self._folder_uri = folder_uri 203 204 @property 205 def last_modified(self): 206 """ 207 Gets the last_modified of this EnvelopeTemplateDefinition. 208 209 210 :return: The last_modified of this EnvelopeTemplateDefinition. 211 :rtype: str 212 """ 213 return self._last_modified 214 215 @last_modified.setter 216 def last_modified(self, last_modified): 217 """ 218 Sets the last_modified of this EnvelopeTemplateDefinition. 219 220 221 :param last_modified: The last_modified of this EnvelopeTemplateDefinition. 222 :type: str 223 """ 224 225 self._last_modified = last_modified 226 227 @property 228 def last_modified_by(self): 229 """ 230 Gets the last_modified_by of this EnvelopeTemplateDefinition. 231 232 :return: The last_modified_by of this EnvelopeTemplateDefinition. 233 :rtype: UserInfo 234 """ 235 return self._last_modified_by 236 237 @last_modified_by.setter 238 def last_modified_by(self, last_modified_by): 239 """ 240 Sets the last_modified_by of this EnvelopeTemplateDefinition. 241 242 :param last_modified_by: The last_modified_by of this EnvelopeTemplateDefinition. 243 :type: UserInfo 244 """ 245 246 self._last_modified_by = last_modified_by 247 248 @property 249 def name(self): 250 """ 251 Gets the name of this EnvelopeTemplateDefinition. 252 253 254 :return: The name of this EnvelopeTemplateDefinition. 255 :rtype: str 256 """ 257 return self._name 258 259 @name.setter 260 def name(self, name): 261 """ 262 Sets the name of this EnvelopeTemplateDefinition. 263 264 265 :param name: The name of this EnvelopeTemplateDefinition. 266 :type: str 267 """ 268 269 self._name = name 270 271 @property 272 def new_password(self): 273 """ 274 Gets the new_password of this EnvelopeTemplateDefinition. 275 276 277 :return: The new_password of this EnvelopeTemplateDefinition. 278 :rtype: str 279 """ 280 return self._new_password 281 282 @new_password.setter 283 def new_password(self, new_password): 284 """ 285 Sets the new_password of this EnvelopeTemplateDefinition. 286 287 288 :param new_password: The new_password of this EnvelopeTemplateDefinition. 289 :type: str 290 """ 291 292 self._new_password = new_password 293 294 @property 295 def owner(self): 296 """ 297 Gets the owner of this EnvelopeTemplateDefinition. 298 299 :return: The owner of this EnvelopeTemplateDefinition. 300 :rtype: UserInfo 301 """ 302 return self._owner 303 304 @owner.setter 305 def owner(self, owner): 306 """ 307 Sets the owner of this EnvelopeTemplateDefinition. 308 309 :param owner: The owner of this EnvelopeTemplateDefinition. 310 :type: UserInfo 311 """ 312 313 self._owner = owner 314 315 @property 316 def page_count(self): 317 """ 318 Gets the page_count of this EnvelopeTemplateDefinition. 319 An integer value specifying the number of document pages in the template. Omit this property if not submitting a page count. 320 321 :return: The page_count of this EnvelopeTemplateDefinition. 322 :rtype: int 323 """ 324 return self._page_count 325 326 @page_count.setter 327 def page_count(self, page_count): 328 """ 329 Sets the page_count of this EnvelopeTemplateDefinition. 330 An integer value specifying the number of document pages in the template. Omit this property if not submitting a page count. 331 332 :param page_count: The page_count of this EnvelopeTemplateDefinition. 333 :type: int 334 """ 335 336 self._page_count = page_count 337 338 @property 339 def parent_folder_uri(self): 340 """ 341 Gets the parent_folder_uri of this EnvelopeTemplateDefinition. 342 343 344 :return: The parent_folder_uri of this EnvelopeTemplateDefinition. 345 :rtype: str 346 """ 347 return self._parent_folder_uri 348 349 @parent_folder_uri.setter 350 def parent_folder_uri(self, parent_folder_uri): 351 """ 352 Sets the parent_folder_uri of this EnvelopeTemplateDefinition. 353 354 355 :param parent_folder_uri: The parent_folder_uri of this EnvelopeTemplateDefinition. 356 :type: str 357 """ 358 359 self._parent_folder_uri = parent_folder_uri 360 361 @property 362 def password(self): 363 """ 364 Gets the password of this EnvelopeTemplateDefinition. 365 366 367 :return: The password of this EnvelopeTemplateDefinition. 368 :rtype: str 369 """ 370 return self._password 371 372 @password.setter 373 def password(self, password): 374 """ 375 Sets the password of this EnvelopeTemplateDefinition. 376 377 378 :param password: The password of this EnvelopeTemplateDefinition. 379 :type: str 380 """ 381 382 self._password = password 383 384 @property 385 def shared(self): 386 """ 387 Gets the shared of this EnvelopeTemplateDefinition. 388 When set to **true**, this custom tab is shared. 389 390 :return: The shared of this EnvelopeTemplateDefinition. 391 :rtype: str 392 """ 393 return self._shared 394 395 @shared.setter 396 def shared(self, shared): 397 """ 398 Sets the shared of this EnvelopeTemplateDefinition. 399 When set to **true**, this custom tab is shared. 400 401 :param shared: The shared of this EnvelopeTemplateDefinition. 402 :type: str 403 """ 404 405 self._shared = shared 406 407 @property 408 def template_id(self): 409 """ 410 Gets the template_id of this EnvelopeTemplateDefinition. 411 The unique identifier of the template. If this is not provided, DocuSign will generate a value. 412 413 :return: The template_id of this EnvelopeTemplateDefinition. 414 :rtype: str 415 """ 416 return self._template_id 417 418 @template_id.setter 419 def template_id(self, template_id): 420 """ 421 Sets the template_id of this EnvelopeTemplateDefinition. 422 The unique identifier of the template. If this is not provided, DocuSign will generate a value. 423 424 :param template_id: The template_id of this EnvelopeTemplateDefinition. 425 :type: str 426 """ 427 428 self._template_id = template_id 429 430 @property 431 def uri(self): 432 """ 433 Gets the uri of this EnvelopeTemplateDefinition. 434 435 436 :return: The uri of this EnvelopeTemplateDefinition. 437 :rtype: str 438 """ 439 return self._uri 440 441 @uri.setter 442 def uri(self, uri): 443 """ 444 Sets the uri of this EnvelopeTemplateDefinition. 445 446 447 :param uri: The uri of this EnvelopeTemplateDefinition. 448 :type: str 449 """ 450 451 self._uri = uri 452 453 def to_dict(self): 454 """ 455 Returns the model properties as a dict 456 """ 457 result = {} 458 459 for attr, _ in 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 477 return result 478 479 def to_str(self): 480 """ 481 Returns the string representation of the model 482 """ 483 return pformat(self.to_dict()) 484 485 def __repr__(self): 486 """ 487 For `print` and `pprint` 488 """ 489 return self.to_str() 490 491 def __eq__(self, other): 492 """ 493 Returns true if both objects are equal 494 """ 495 return self.__dict__ == other.__dict__ 496 497 def __ne__(self, other): 498 """ 499 Returns true if both objects are not equal 500 """ 501 return not self == other
NOTE: This class is auto generated by the swagger code generator program. Do not edit the class manually.
25 def __init__(self, created=None, description=None, folder_id=None, folder_name=None, folder_uri=None, last_modified=None, last_modified_by=None, name=None, new_password=None, owner=None, page_count=None, parent_folder_uri=None, password=None, shared=None, template_id=None, uri=None): 26 """ 27 EnvelopeTemplateDefinition - a model defined in Swagger 28 29 :param dict swaggerTypes: The key is attribute name 30 and the value is attribute type. 31 :param dict attributeMap: The key is attribute name 32 and the value is json key in definition. 33 """ 34 self.swagger_types = { 35 'created': 'str', 36 'description': 'str', 37 'folder_id': 'str', 38 'folder_name': 'str', 39 'folder_uri': 'str', 40 'last_modified': 'str', 41 'last_modified_by': 'UserInfo', 42 'name': 'str', 43 'new_password': 'str', 44 'owner': 'UserInfo', 45 'page_count': 'int', 46 'parent_folder_uri': 'str', 47 'password': 'str', 48 'shared': 'str', 49 'template_id': 'str', 50 'uri': 'str' 51 } 52 53 self.attribute_map = { 54 'created': 'created', 55 'description': 'description', 56 'folder_id': 'folderId', 57 'folder_name': 'folderName', 58 'folder_uri': 'folderUri', 59 'last_modified': 'lastModified', 60 'last_modified_by': 'lastModifiedBy', 61 'name': 'name', 62 'new_password': 'newPassword', 63 'owner': 'owner', 64 'page_count': 'pageCount', 65 'parent_folder_uri': 'parentFolderUri', 66 'password': 'password', 67 'shared': 'shared', 68 'template_id': 'templateId', 69 'uri': 'uri' 70 } 71 72 self._created = created 73 self._description = description 74 self._folder_id = folder_id 75 self._folder_name = folder_name 76 self._folder_uri = folder_uri 77 self._last_modified = last_modified 78 self._last_modified_by = last_modified_by 79 self._name = name 80 self._new_password = new_password 81 self._owner = owner 82 self._page_count = page_count 83 self._parent_folder_uri = parent_folder_uri 84 self._password = password 85 self._shared = shared 86 self._template_id = template_id 87 self._uri = uri
EnvelopeTemplateDefinition - a model defined in Swagger
Parameters
- dict swaggerTypes: The key is attribute name and the value is attribute type.
- dict attributeMap: The key is attribute name and the value is json key in definition.
Gets the created of this EnvelopeTemplateDefinition.
Returns
The created of this EnvelopeTemplateDefinition.
Gets the description of this EnvelopeTemplateDefinition.
Returns
The description of this EnvelopeTemplateDefinition.
Gets the folder_id of this EnvelopeTemplateDefinition. The ID for the folder.
Returns
The folder_id of this EnvelopeTemplateDefinition.
Gets the folder_name of this EnvelopeTemplateDefinition. The name of the folder in which the template is located.
Returns
The folder_name of this EnvelopeTemplateDefinition.
Gets the folder_uri of this EnvelopeTemplateDefinition. The URI of the folder.
Returns
The folder_uri of this EnvelopeTemplateDefinition.
Gets the last_modified of this EnvelopeTemplateDefinition.
Returns
The last_modified of this EnvelopeTemplateDefinition.
Gets the last_modified_by of this EnvelopeTemplateDefinition.
Returns
The last_modified_by of this EnvelopeTemplateDefinition.
Gets the name of this EnvelopeTemplateDefinition.
Returns
The name of this EnvelopeTemplateDefinition.
Gets the new_password of this EnvelopeTemplateDefinition.
Returns
The new_password of this EnvelopeTemplateDefinition.
Gets the owner of this EnvelopeTemplateDefinition.
Returns
The owner of this EnvelopeTemplateDefinition.
Gets the page_count of this EnvelopeTemplateDefinition. An integer value specifying the number of document pages in the template. Omit this property if not submitting a page count.
Returns
The page_count of this EnvelopeTemplateDefinition.
Gets the parent_folder_uri of this EnvelopeTemplateDefinition.
Returns
The parent_folder_uri of this EnvelopeTemplateDefinition.
Gets the password of this EnvelopeTemplateDefinition.
Returns
The password of this EnvelopeTemplateDefinition.
Gets the template_id of this EnvelopeTemplateDefinition. The unique identifier of the template. If this is not provided, DocuSign will generate a value.
Returns
The template_id of this EnvelopeTemplateDefinition.
Gets the uri of this EnvelopeTemplateDefinition.
Returns
The uri of this EnvelopeTemplateDefinition.
453 def to_dict(self): 454 """ 455 Returns the model properties as a dict 456 """ 457 result = {} 458 459 for attr, _ in 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 477 return result
Returns the model properties as a dict