docusign_esign.models.envelope_form_data_prefill_form_data
DocuSign REST API
The DocuSign 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 REST API 5 6 The DocuSign 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 19 20class EnvelopeFormDataPrefillFormData(object): 21 """NOTE: This class is auto generated by the swagger code generator program. 22 23 Do not edit the class manually. 24 """ 25 26 """ 27 Attributes: 28 swagger_types (dict): The key is attribute name 29 and the value is attribute type. 30 attribute_map (dict): The key is attribute name 31 and the value is json key in definition. 32 """ 33 swagger_types = { 34 'form_data': 'list[FormDataItem]' 35 } 36 37 attribute_map = { 38 'form_data': 'formData' 39 } 40 41 def __init__(self, form_data=None): # noqa: E501 42 """EnvelopeFormDataPrefillFormData - a model defined in Swagger""" # noqa: E501 43 44 self._form_data = None 45 self.discriminator = None 46 47 if form_data is not None: 48 self.form_data = form_data 49 50 @property 51 def form_data(self): 52 """Gets the form_data of this EnvelopeFormDataPrefillFormData. # noqa: E501 53 54 # noqa: E501 55 56 :return: The form_data of this EnvelopeFormDataPrefillFormData. # noqa: E501 57 :rtype: list[FormDataItem] 58 """ 59 return self._form_data 60 61 @form_data.setter 62 def form_data(self, form_data): 63 """Sets the form_data of this EnvelopeFormDataPrefillFormData. 64 65 # noqa: E501 66 67 :param form_data: The form_data of this EnvelopeFormDataPrefillFormData. # noqa: E501 68 :type: list[FormDataItem] 69 """ 70 71 self._form_data = form_data 72 73 def to_dict(self): 74 """Returns the model properties as a dict""" 75 result = {} 76 77 for attr, _ in six.iteritems(self.swagger_types): 78 value = getattr(self, attr) 79 if isinstance(value, list): 80 result[attr] = list(map( 81 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 82 value 83 )) 84 elif hasattr(value, "to_dict"): 85 result[attr] = value.to_dict() 86 elif isinstance(value, dict): 87 result[attr] = dict(map( 88 lambda item: (item[0], item[1].to_dict()) 89 if hasattr(item[1], "to_dict") else item, 90 value.items() 91 )) 92 else: 93 result[attr] = value 94 if issubclass(EnvelopeFormDataPrefillFormData, dict): 95 for key, value in self.items(): 96 result[key] = value 97 98 return result 99 100 def to_str(self): 101 """Returns the string representation of the model""" 102 return pprint.pformat(self.to_dict()) 103 104 def __repr__(self): 105 """For `print` and `pprint`""" 106 return self.to_str() 107 108 def __eq__(self, other): 109 """Returns true if both objects are equal""" 110 if not isinstance(other, EnvelopeFormDataPrefillFormData): 111 return False 112 113 return self.__dict__ == other.__dict__ 114 115 def __ne__(self, other): 116 """Returns true if both objects are not equal""" 117 return not self == other
class
EnvelopeFormDataPrefillFormData:
21class EnvelopeFormDataPrefillFormData(object): 22 """NOTE: This class is auto generated by the swagger code generator program. 23 24 Do not edit the class manually. 25 """ 26 27 """ 28 Attributes: 29 swagger_types (dict): The key is attribute name 30 and the value is attribute type. 31 attribute_map (dict): The key is attribute name 32 and the value is json key in definition. 33 """ 34 swagger_types = { 35 'form_data': 'list[FormDataItem]' 36 } 37 38 attribute_map = { 39 'form_data': 'formData' 40 } 41 42 def __init__(self, form_data=None): # noqa: E501 43 """EnvelopeFormDataPrefillFormData - a model defined in Swagger""" # noqa: E501 44 45 self._form_data = None 46 self.discriminator = None 47 48 if form_data is not None: 49 self.form_data = form_data 50 51 @property 52 def form_data(self): 53 """Gets the form_data of this EnvelopeFormDataPrefillFormData. # noqa: E501 54 55 # noqa: E501 56 57 :return: The form_data of this EnvelopeFormDataPrefillFormData. # noqa: E501 58 :rtype: list[FormDataItem] 59 """ 60 return self._form_data 61 62 @form_data.setter 63 def form_data(self, form_data): 64 """Sets the form_data of this EnvelopeFormDataPrefillFormData. 65 66 # noqa: E501 67 68 :param form_data: The form_data of this EnvelopeFormDataPrefillFormData. # noqa: E501 69 :type: list[FormDataItem] 70 """ 71 72 self._form_data = form_data 73 74 def to_dict(self): 75 """Returns the model properties as a dict""" 76 result = {} 77 78 for attr, _ in six.iteritems(self.swagger_types): 79 value = getattr(self, attr) 80 if isinstance(value, list): 81 result[attr] = list(map( 82 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 83 value 84 )) 85 elif hasattr(value, "to_dict"): 86 result[attr] = value.to_dict() 87 elif isinstance(value, dict): 88 result[attr] = dict(map( 89 lambda item: (item[0], item[1].to_dict()) 90 if hasattr(item[1], "to_dict") else item, 91 value.items() 92 )) 93 else: 94 result[attr] = value 95 if issubclass(EnvelopeFormDataPrefillFormData, dict): 96 for key, value in self.items(): 97 result[key] = value 98 99 return result 100 101 def to_str(self): 102 """Returns the string representation of the model""" 103 return pprint.pformat(self.to_dict()) 104 105 def __repr__(self): 106 """For `print` and `pprint`""" 107 return self.to_str() 108 109 def __eq__(self, other): 110 """Returns true if both objects are equal""" 111 if not isinstance(other, EnvelopeFormDataPrefillFormData): 112 return False 113 114 return self.__dict__ == other.__dict__ 115 116 def __ne__(self, other): 117 """Returns true if both objects are not equal""" 118 return not self == other
NOTE: This class is auto generated by the swagger code generator program.
Do not edit the class manually.
EnvelopeFormDataPrefillFormData(form_data=None)
42 def __init__(self, form_data=None): # noqa: E501 43 """EnvelopeFormDataPrefillFormData - a model defined in Swagger""" # noqa: E501 44 45 self._form_data = None 46 self.discriminator = None 47 48 if form_data is not None: 49 self.form_data = form_data
EnvelopeFormDataPrefillFormData - a model defined in Swagger
form_data
Gets the form_data of this EnvelopeFormDataPrefillFormData. # noqa: E501
# noqa: E501
Returns
The form_data of this EnvelopeFormDataPrefillFormData. # noqa: E501
def
to_dict(self)
74 def to_dict(self): 75 """Returns the model properties as a dict""" 76 result = {} 77 78 for attr, _ in six.iteritems(self.swagger_types): 79 value = getattr(self, attr) 80 if isinstance(value, list): 81 result[attr] = list(map( 82 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 83 value 84 )) 85 elif hasattr(value, "to_dict"): 86 result[attr] = value.to_dict() 87 elif isinstance(value, dict): 88 result[attr] = dict(map( 89 lambda item: (item[0], item[1].to_dict()) 90 if hasattr(item[1], "to_dict") else item, 91 value.items() 92 )) 93 else: 94 result[attr] = value 95 if issubclass(EnvelopeFormDataPrefillFormData, dict): 96 for key, value in self.items(): 97 result[key] = value 98 99 return result
Returns the model properties as a dict