docusign_webforms.models.web_form_instance_metadata
Web Forms API version 1.1
The Web Forms API facilitates generating semantic HTML forms around everyday contracts. # noqa: E501
OpenAPI spec version: 1.1.0 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git
1# coding: utf-8 2 3""" 4 Web Forms API version 1.1 5 6 The Web Forms API facilitates generating semantic HTML forms around everyday contracts. # noqa: E501 7 8 OpenAPI spec version: 1.1.0 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_webforms.client.configuration import Configuration 20 21 22class WebFormInstanceMetadata(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 'expiration_date_time': 'datetime', 37 'created_date_time': 'datetime', 38 'created_by': 'WebFormUserInfo', 39 'last_modified_date_time': 'str', 40 'last_modified_by': 'WebFormUserInfo' 41 } 42 43 attribute_map = { 44 'expiration_date_time': 'expirationDateTime', 45 'created_date_time': 'createdDateTime', 46 'created_by': 'createdBy', 47 'last_modified_date_time': 'lastModifiedDateTime', 48 'last_modified_by': 'lastModifiedBy' 49 } 50 51 def __init__(self, _configuration=None, **kwargs): # noqa: E501 52 """WebFormInstanceMetadata - a model defined in Swagger""" # noqa: E501 53 if _configuration is None: 54 _configuration = Configuration() 55 self._configuration = _configuration 56 57 self._expiration_date_time = None 58 self._created_date_time = None 59 self._created_by = None 60 self._last_modified_date_time = None 61 self._last_modified_by = None 62 self.discriminator = None 63 64 setattr(self, "_{}".format('expiration_date_time'), kwargs.get('expiration_date_time', None)) 65 setattr(self, "_{}".format('created_date_time'), kwargs.get('created_date_time', None)) 66 setattr(self, "_{}".format('created_by'), kwargs.get('created_by', None)) 67 setattr(self, "_{}".format('last_modified_date_time'), kwargs.get('last_modified_date_time', None)) 68 setattr(self, "_{}".format('last_modified_by'), kwargs.get('last_modified_by', None)) 69 70 @property 71 def expiration_date_time(self): 72 """Gets the expiration_date_time of this WebFormInstanceMetadata. # noqa: E501 73 74 75 :return: The expiration_date_time of this WebFormInstanceMetadata. # noqa: E501 76 :rtype: datetime 77 """ 78 return self._expiration_date_time 79 80 @expiration_date_time.setter 81 def expiration_date_time(self, expiration_date_time): 82 """Sets the expiration_date_time of this WebFormInstanceMetadata. 83 84 85 :param expiration_date_time: The expiration_date_time of this WebFormInstanceMetadata. # noqa: E501 86 :type: datetime 87 """ 88 if self._configuration.client_side_validation and expiration_date_time is None: 89 raise ValueError("Invalid value for `expiration_date_time`, must not be `None`") # noqa: E501 90 91 self._expiration_date_time = expiration_date_time 92 93 @property 94 def created_date_time(self): 95 """Gets the created_date_time of this WebFormInstanceMetadata. # noqa: E501 96 97 98 :return: The created_date_time of this WebFormInstanceMetadata. # noqa: E501 99 :rtype: datetime 100 """ 101 return self._created_date_time 102 103 @created_date_time.setter 104 def created_date_time(self, created_date_time): 105 """Sets the created_date_time of this WebFormInstanceMetadata. 106 107 108 :param created_date_time: The created_date_time of this WebFormInstanceMetadata. # noqa: E501 109 :type: datetime 110 """ 111 if self._configuration.client_side_validation and created_date_time is None: 112 raise ValueError("Invalid value for `created_date_time`, must not be `None`") # noqa: E501 113 114 self._created_date_time = created_date_time 115 116 @property 117 def created_by(self): 118 """Gets the created_by of this WebFormInstanceMetadata. # noqa: E501 119 120 The user that created the Web Form Instance # noqa: E501 121 122 :return: The created_by of this WebFormInstanceMetadata. # noqa: E501 123 :rtype: WebFormUserInfo 124 """ 125 return self._created_by 126 127 @created_by.setter 128 def created_by(self, created_by): 129 """Sets the created_by of this WebFormInstanceMetadata. 130 131 The user that created the Web Form Instance # noqa: E501 132 133 :param created_by: The created_by of this WebFormInstanceMetadata. # noqa: E501 134 :type: WebFormUserInfo 135 """ 136 if self._configuration.client_side_validation and created_by is None: 137 raise ValueError("Invalid value for `created_by`, must not be `None`") # noqa: E501 138 139 self._created_by = created_by 140 141 @property 142 def last_modified_date_time(self): 143 """Gets the last_modified_date_time of this WebFormInstanceMetadata. # noqa: E501 144 145 146 :return: The last_modified_date_time of this WebFormInstanceMetadata. # noqa: E501 147 :rtype: str 148 """ 149 return self._last_modified_date_time 150 151 @last_modified_date_time.setter 152 def last_modified_date_time(self, last_modified_date_time): 153 """Sets the last_modified_date_time of this WebFormInstanceMetadata. 154 155 156 :param last_modified_date_time: The last_modified_date_time of this WebFormInstanceMetadata. # noqa: E501 157 :type: str 158 """ 159 160 self._last_modified_date_time = last_modified_date_time 161 162 @property 163 def last_modified_by(self): 164 """Gets the last_modified_by of this WebFormInstanceMetadata. # noqa: E501 165 166 The user that last modified the Web Form Instance # noqa: E501 167 168 :return: The last_modified_by of this WebFormInstanceMetadata. # noqa: E501 169 :rtype: WebFormUserInfo 170 """ 171 return self._last_modified_by 172 173 @last_modified_by.setter 174 def last_modified_by(self, last_modified_by): 175 """Sets the last_modified_by of this WebFormInstanceMetadata. 176 177 The user that last modified the Web Form Instance # noqa: E501 178 179 :param last_modified_by: The last_modified_by of this WebFormInstanceMetadata. # noqa: E501 180 :type: WebFormUserInfo 181 """ 182 183 self._last_modified_by = last_modified_by 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(WebFormInstanceMetadata, 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, WebFormInstanceMetadata): 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, WebFormInstanceMetadata): 230 return True 231 232 return self.to_dict() != other.to_dict()
23class WebFormInstanceMetadata(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 'expiration_date_time': 'datetime', 38 'created_date_time': 'datetime', 39 'created_by': 'WebFormUserInfo', 40 'last_modified_date_time': 'str', 41 'last_modified_by': 'WebFormUserInfo' 42 } 43 44 attribute_map = { 45 'expiration_date_time': 'expirationDateTime', 46 'created_date_time': 'createdDateTime', 47 'created_by': 'createdBy', 48 'last_modified_date_time': 'lastModifiedDateTime', 49 'last_modified_by': 'lastModifiedBy' 50 } 51 52 def __init__(self, _configuration=None, **kwargs): # noqa: E501 53 """WebFormInstanceMetadata - a model defined in Swagger""" # noqa: E501 54 if _configuration is None: 55 _configuration = Configuration() 56 self._configuration = _configuration 57 58 self._expiration_date_time = None 59 self._created_date_time = None 60 self._created_by = None 61 self._last_modified_date_time = None 62 self._last_modified_by = None 63 self.discriminator = None 64 65 setattr(self, "_{}".format('expiration_date_time'), kwargs.get('expiration_date_time', None)) 66 setattr(self, "_{}".format('created_date_time'), kwargs.get('created_date_time', None)) 67 setattr(self, "_{}".format('created_by'), kwargs.get('created_by', None)) 68 setattr(self, "_{}".format('last_modified_date_time'), kwargs.get('last_modified_date_time', None)) 69 setattr(self, "_{}".format('last_modified_by'), kwargs.get('last_modified_by', None)) 70 71 @property 72 def expiration_date_time(self): 73 """Gets the expiration_date_time of this WebFormInstanceMetadata. # noqa: E501 74 75 76 :return: The expiration_date_time of this WebFormInstanceMetadata. # noqa: E501 77 :rtype: datetime 78 """ 79 return self._expiration_date_time 80 81 @expiration_date_time.setter 82 def expiration_date_time(self, expiration_date_time): 83 """Sets the expiration_date_time of this WebFormInstanceMetadata. 84 85 86 :param expiration_date_time: The expiration_date_time of this WebFormInstanceMetadata. # noqa: E501 87 :type: datetime 88 """ 89 if self._configuration.client_side_validation and expiration_date_time is None: 90 raise ValueError("Invalid value for `expiration_date_time`, must not be `None`") # noqa: E501 91 92 self._expiration_date_time = expiration_date_time 93 94 @property 95 def created_date_time(self): 96 """Gets the created_date_time of this WebFormInstanceMetadata. # noqa: E501 97 98 99 :return: The created_date_time of this WebFormInstanceMetadata. # noqa: E501 100 :rtype: datetime 101 """ 102 return self._created_date_time 103 104 @created_date_time.setter 105 def created_date_time(self, created_date_time): 106 """Sets the created_date_time of this WebFormInstanceMetadata. 107 108 109 :param created_date_time: The created_date_time of this WebFormInstanceMetadata. # noqa: E501 110 :type: datetime 111 """ 112 if self._configuration.client_side_validation and created_date_time is None: 113 raise ValueError("Invalid value for `created_date_time`, must not be `None`") # noqa: E501 114 115 self._created_date_time = created_date_time 116 117 @property 118 def created_by(self): 119 """Gets the created_by of this WebFormInstanceMetadata. # noqa: E501 120 121 The user that created the Web Form Instance # noqa: E501 122 123 :return: The created_by of this WebFormInstanceMetadata. # noqa: E501 124 :rtype: WebFormUserInfo 125 """ 126 return self._created_by 127 128 @created_by.setter 129 def created_by(self, created_by): 130 """Sets the created_by of this WebFormInstanceMetadata. 131 132 The user that created the Web Form Instance # noqa: E501 133 134 :param created_by: The created_by of this WebFormInstanceMetadata. # noqa: E501 135 :type: WebFormUserInfo 136 """ 137 if self._configuration.client_side_validation and created_by is None: 138 raise ValueError("Invalid value for `created_by`, must not be `None`") # noqa: E501 139 140 self._created_by = created_by 141 142 @property 143 def last_modified_date_time(self): 144 """Gets the last_modified_date_time of this WebFormInstanceMetadata. # noqa: E501 145 146 147 :return: The last_modified_date_time of this WebFormInstanceMetadata. # noqa: E501 148 :rtype: str 149 """ 150 return self._last_modified_date_time 151 152 @last_modified_date_time.setter 153 def last_modified_date_time(self, last_modified_date_time): 154 """Sets the last_modified_date_time of this WebFormInstanceMetadata. 155 156 157 :param last_modified_date_time: The last_modified_date_time of this WebFormInstanceMetadata. # noqa: E501 158 :type: str 159 """ 160 161 self._last_modified_date_time = last_modified_date_time 162 163 @property 164 def last_modified_by(self): 165 """Gets the last_modified_by of this WebFormInstanceMetadata. # noqa: E501 166 167 The user that last modified the Web Form Instance # noqa: E501 168 169 :return: The last_modified_by of this WebFormInstanceMetadata. # noqa: E501 170 :rtype: WebFormUserInfo 171 """ 172 return self._last_modified_by 173 174 @last_modified_by.setter 175 def last_modified_by(self, last_modified_by): 176 """Sets the last_modified_by of this WebFormInstanceMetadata. 177 178 The user that last modified the Web Form Instance # noqa: E501 179 180 :param last_modified_by: The last_modified_by of this WebFormInstanceMetadata. # noqa: E501 181 :type: WebFormUserInfo 182 """ 183 184 self._last_modified_by = last_modified_by 185 186 def to_dict(self): 187 """Returns the model properties as a dict""" 188 result = {} 189 190 for attr, _ in six.iteritems(self.swagger_types): 191 value = getattr(self, attr) 192 if isinstance(value, list): 193 result[attr] = list(map( 194 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 195 value 196 )) 197 elif hasattr(value, "to_dict"): 198 result[attr] = value.to_dict() 199 elif isinstance(value, dict): 200 result[attr] = dict(map( 201 lambda item: (item[0], item[1].to_dict()) 202 if hasattr(item[1], "to_dict") else item, 203 value.items() 204 )) 205 else: 206 result[attr] = value 207 if issubclass(WebFormInstanceMetadata, dict): 208 for key, value in self.items(): 209 result[key] = value 210 211 return result 212 213 def to_str(self): 214 """Returns the string representation of the model""" 215 return pprint.pformat(self.to_dict()) 216 217 def __repr__(self): 218 """For `print` and `pprint`""" 219 return self.to_str() 220 221 def __eq__(self, other): 222 """Returns true if both objects are equal""" 223 if not isinstance(other, WebFormInstanceMetadata): 224 return False 225 226 return self.to_dict() == other.to_dict() 227 228 def __ne__(self, other): 229 """Returns true if both objects are not equal""" 230 if not isinstance(other, WebFormInstanceMetadata): 231 return True 232 233 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.
52 def __init__(self, _configuration=None, **kwargs): # noqa: E501 53 """WebFormInstanceMetadata - a model defined in Swagger""" # noqa: E501 54 if _configuration is None: 55 _configuration = Configuration() 56 self._configuration = _configuration 57 58 self._expiration_date_time = None 59 self._created_date_time = None 60 self._created_by = None 61 self._last_modified_date_time = None 62 self._last_modified_by = None 63 self.discriminator = None 64 65 setattr(self, "_{}".format('expiration_date_time'), kwargs.get('expiration_date_time', None)) 66 setattr(self, "_{}".format('created_date_time'), kwargs.get('created_date_time', None)) 67 setattr(self, "_{}".format('created_by'), kwargs.get('created_by', None)) 68 setattr(self, "_{}".format('last_modified_date_time'), kwargs.get('last_modified_date_time', None)) 69 setattr(self, "_{}".format('last_modified_by'), kwargs.get('last_modified_by', None))
WebFormInstanceMetadata - a model defined in Swagger
Gets the expiration_date_time of this WebFormInstanceMetadata. # noqa: E501
Returns
The expiration_date_time of this WebFormInstanceMetadata. # noqa: E501
Gets the created_date_time of this WebFormInstanceMetadata. # noqa: E501
Returns
The created_date_time of this WebFormInstanceMetadata. # noqa: E501
Gets the created_by of this WebFormInstanceMetadata. # noqa: E501
The user that created the Web Form Instance # noqa: E501
Returns
The created_by of this WebFormInstanceMetadata. # noqa: E501
Gets the last_modified_date_time of this WebFormInstanceMetadata. # noqa: E501
Returns
The last_modified_date_time of this WebFormInstanceMetadata. # noqa: E501
Gets the last_modified_by of this WebFormInstanceMetadata. # noqa: E501
The user that last modified the Web Form Instance # noqa: E501
Returns
The last_modified_by of this WebFormInstanceMetadata. # noqa: E501
186 def to_dict(self): 187 """Returns the model properties as a dict""" 188 result = {} 189 190 for attr, _ in six.iteritems(self.swagger_types): 191 value = getattr(self, attr) 192 if isinstance(value, list): 193 result[attr] = list(map( 194 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 195 value 196 )) 197 elif hasattr(value, "to_dict"): 198 result[attr] = value.to_dict() 199 elif isinstance(value, dict): 200 result[attr] = dict(map( 201 lambda item: (item[0], item[1].to_dict()) 202 if hasattr(item[1], "to_dict") else item, 203 value.items() 204 )) 205 else: 206 result[attr] = value 207 if issubclass(WebFormInstanceMetadata, dict): 208 for key, value in self.items(): 209 result[key] = value 210 211 return result
Returns the model properties as a dict