docusign_webforms.models.web_form_summary
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 WebFormSummary(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 'id': 'str', 37 'account_id': 'str', 38 'is_published': 'bool', 39 'is_enabled': 'bool', 40 'is_uploaded': 'bool', 41 'has_draft_changes': 'bool', 42 'form_state': 'WebFormState', 43 'form_properties': 'WebFormProperties', 44 'form_metadata': 'WebFormMetadata' 45 } 46 47 attribute_map = { 48 'id': 'id', 49 'account_id': 'accountId', 50 'is_published': 'isPublished', 51 'is_enabled': 'isEnabled', 52 'is_uploaded': 'isUploaded', 53 'has_draft_changes': 'hasDraftChanges', 54 'form_state': 'formState', 55 'form_properties': 'formProperties', 56 'form_metadata': 'formMetadata' 57 } 58 59 def __init__(self, _configuration=None, **kwargs): # noqa: E501 60 """WebFormSummary - a model defined in Swagger""" # noqa: E501 61 if _configuration is None: 62 _configuration = Configuration() 63 self._configuration = _configuration 64 65 self._id = None 66 self._account_id = None 67 self._is_published = None 68 self._is_enabled = None 69 self._is_uploaded = None 70 self._has_draft_changes = None 71 self._form_state = None 72 self._form_properties = None 73 self._form_metadata = None 74 self.discriminator = None 75 76 setattr(self, "_{}".format('id'), kwargs.get('id', None)) 77 setattr(self, "_{}".format('account_id'), kwargs.get('account_id', None)) 78 setattr(self, "_{}".format('is_published'), kwargs.get('is_published', None)) 79 setattr(self, "_{}".format('is_enabled'), kwargs.get('is_enabled', None)) 80 setattr(self, "_{}".format('is_uploaded'), kwargs.get('is_uploaded', None)) 81 setattr(self, "_{}".format('has_draft_changes'), kwargs.get('has_draft_changes', None)) 82 setattr(self, "_{}".format('form_state'), kwargs.get('form_state', None)) 83 setattr(self, "_{}".format('form_properties'), kwargs.get('form_properties', None)) 84 setattr(self, "_{}".format('form_metadata'), kwargs.get('form_metadata', None)) 85 86 @property 87 def id(self): 88 """Gets the id of this WebFormSummary. # noqa: E501 89 90 91 :return: The id of this WebFormSummary. # noqa: E501 92 :rtype: str 93 """ 94 return self._id 95 96 @id.setter 97 def id(self, id): 98 """Sets the id of this WebFormSummary. 99 100 101 :param id: The id of this WebFormSummary. # noqa: E501 102 :type: str 103 """ 104 105 self._id = id 106 107 @property 108 def account_id(self): 109 """Gets the account_id of this WebFormSummary. # noqa: E501 110 111 112 :return: The account_id of this WebFormSummary. # noqa: E501 113 :rtype: str 114 """ 115 return self._account_id 116 117 @account_id.setter 118 def account_id(self, account_id): 119 """Sets the account_id of this WebFormSummary. 120 121 122 :param account_id: The account_id of this WebFormSummary. # noqa: E501 123 :type: str 124 """ 125 126 self._account_id = account_id 127 128 @property 129 def is_published(self): 130 """Gets the is_published of this WebFormSummary. # noqa: E501 131 132 Has the form been published # noqa: E501 133 134 :return: The is_published of this WebFormSummary. # noqa: E501 135 :rtype: bool 136 """ 137 return self._is_published 138 139 @is_published.setter 140 def is_published(self, is_published): 141 """Sets the is_published of this WebFormSummary. 142 143 Has the form been published # noqa: E501 144 145 :param is_published: The is_published of this WebFormSummary. # noqa: E501 146 :type: bool 147 """ 148 149 self._is_published = is_published 150 151 @property 152 def is_enabled(self): 153 """Gets the is_enabled of this WebFormSummary. # noqa: E501 154 155 Is the form currently enabled and available for data collection # noqa: E501 156 157 :return: The is_enabled of this WebFormSummary. # noqa: E501 158 :rtype: bool 159 """ 160 return self._is_enabled 161 162 @is_enabled.setter 163 def is_enabled(self, is_enabled): 164 """Sets the is_enabled of this WebFormSummary. 165 166 Is the form currently enabled and available for data collection # noqa: E501 167 168 :param is_enabled: The is_enabled of this WebFormSummary. # noqa: E501 169 :type: bool 170 """ 171 172 self._is_enabled = is_enabled 173 174 @property 175 def is_uploaded(self): 176 """Gets the is_uploaded of this WebFormSummary. # noqa: E501 177 178 Has the form created through upload # noqa: E501 179 180 :return: The is_uploaded of this WebFormSummary. # noqa: E501 181 :rtype: bool 182 """ 183 return self._is_uploaded 184 185 @is_uploaded.setter 186 def is_uploaded(self, is_uploaded): 187 """Sets the is_uploaded of this WebFormSummary. 188 189 Has the form created through upload # noqa: E501 190 191 :param is_uploaded: The is_uploaded of this WebFormSummary. # noqa: E501 192 :type: bool 193 """ 194 195 self._is_uploaded = is_uploaded 196 197 @property 198 def has_draft_changes(self): 199 """Gets the has_draft_changes of this WebFormSummary. # noqa: E501 200 201 Does the form have draft changes that need to be published? # noqa: E501 202 203 :return: The has_draft_changes of this WebFormSummary. # noqa: E501 204 :rtype: bool 205 """ 206 return self._has_draft_changes 207 208 @has_draft_changes.setter 209 def has_draft_changes(self, has_draft_changes): 210 """Sets the has_draft_changes of this WebFormSummary. 211 212 Does the form have draft changes that need to be published? # noqa: E501 213 214 :param has_draft_changes: The has_draft_changes of this WebFormSummary. # noqa: E501 215 :type: bool 216 """ 217 218 self._has_draft_changes = has_draft_changes 219 220 @property 221 def form_state(self): 222 """Gets the form_state of this WebFormSummary. # noqa: E501 223 224 225 :return: The form_state of this WebFormSummary. # noqa: E501 226 :rtype: WebFormState 227 """ 228 return self._form_state 229 230 @form_state.setter 231 def form_state(self, form_state): 232 """Sets the form_state of this WebFormSummary. 233 234 235 :param form_state: The form_state of this WebFormSummary. # noqa: E501 236 :type: WebFormState 237 """ 238 239 self._form_state = form_state 240 241 @property 242 def form_properties(self): 243 """Gets the form_properties of this WebFormSummary. # noqa: E501 244 245 246 :return: The form_properties of this WebFormSummary. # noqa: E501 247 :rtype: WebFormProperties 248 """ 249 return self._form_properties 250 251 @form_properties.setter 252 def form_properties(self, form_properties): 253 """Sets the form_properties of this WebFormSummary. 254 255 256 :param form_properties: The form_properties of this WebFormSummary. # noqa: E501 257 :type: WebFormProperties 258 """ 259 260 self._form_properties = form_properties 261 262 @property 263 def form_metadata(self): 264 """Gets the form_metadata of this WebFormSummary. # noqa: E501 265 266 267 :return: The form_metadata of this WebFormSummary. # noqa: E501 268 :rtype: WebFormMetadata 269 """ 270 return self._form_metadata 271 272 @form_metadata.setter 273 def form_metadata(self, form_metadata): 274 """Sets the form_metadata of this WebFormSummary. 275 276 277 :param form_metadata: The form_metadata of this WebFormSummary. # noqa: E501 278 :type: WebFormMetadata 279 """ 280 281 self._form_metadata = form_metadata 282 283 def to_dict(self): 284 """Returns the model properties as a dict""" 285 result = {} 286 287 for attr, _ in six.iteritems(self.swagger_types): 288 value = getattr(self, attr) 289 if isinstance(value, list): 290 result[attr] = list(map( 291 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 292 value 293 )) 294 elif hasattr(value, "to_dict"): 295 result[attr] = value.to_dict() 296 elif isinstance(value, dict): 297 result[attr] = dict(map( 298 lambda item: (item[0], item[1].to_dict()) 299 if hasattr(item[1], "to_dict") else item, 300 value.items() 301 )) 302 else: 303 result[attr] = value 304 if issubclass(WebFormSummary, dict): 305 for key, value in self.items(): 306 result[key] = value 307 308 return result 309 310 def to_str(self): 311 """Returns the string representation of the model""" 312 return pprint.pformat(self.to_dict()) 313 314 def __repr__(self): 315 """For `print` and `pprint`""" 316 return self.to_str() 317 318 def __eq__(self, other): 319 """Returns true if both objects are equal""" 320 if not isinstance(other, WebFormSummary): 321 return False 322 323 return self.to_dict() == other.to_dict() 324 325 def __ne__(self, other): 326 """Returns true if both objects are not equal""" 327 if not isinstance(other, WebFormSummary): 328 return True 329 330 return self.to_dict() != other.to_dict()
23class WebFormSummary(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 'id': 'str', 38 'account_id': 'str', 39 'is_published': 'bool', 40 'is_enabled': 'bool', 41 'is_uploaded': 'bool', 42 'has_draft_changes': 'bool', 43 'form_state': 'WebFormState', 44 'form_properties': 'WebFormProperties', 45 'form_metadata': 'WebFormMetadata' 46 } 47 48 attribute_map = { 49 'id': 'id', 50 'account_id': 'accountId', 51 'is_published': 'isPublished', 52 'is_enabled': 'isEnabled', 53 'is_uploaded': 'isUploaded', 54 'has_draft_changes': 'hasDraftChanges', 55 'form_state': 'formState', 56 'form_properties': 'formProperties', 57 'form_metadata': 'formMetadata' 58 } 59 60 def __init__(self, _configuration=None, **kwargs): # noqa: E501 61 """WebFormSummary - a model defined in Swagger""" # noqa: E501 62 if _configuration is None: 63 _configuration = Configuration() 64 self._configuration = _configuration 65 66 self._id = None 67 self._account_id = None 68 self._is_published = None 69 self._is_enabled = None 70 self._is_uploaded = None 71 self._has_draft_changes = None 72 self._form_state = None 73 self._form_properties = None 74 self._form_metadata = None 75 self.discriminator = None 76 77 setattr(self, "_{}".format('id'), kwargs.get('id', None)) 78 setattr(self, "_{}".format('account_id'), kwargs.get('account_id', None)) 79 setattr(self, "_{}".format('is_published'), kwargs.get('is_published', None)) 80 setattr(self, "_{}".format('is_enabled'), kwargs.get('is_enabled', None)) 81 setattr(self, "_{}".format('is_uploaded'), kwargs.get('is_uploaded', None)) 82 setattr(self, "_{}".format('has_draft_changes'), kwargs.get('has_draft_changes', None)) 83 setattr(self, "_{}".format('form_state'), kwargs.get('form_state', None)) 84 setattr(self, "_{}".format('form_properties'), kwargs.get('form_properties', None)) 85 setattr(self, "_{}".format('form_metadata'), kwargs.get('form_metadata', None)) 86 87 @property 88 def id(self): 89 """Gets the id of this WebFormSummary. # noqa: E501 90 91 92 :return: The id of this WebFormSummary. # noqa: E501 93 :rtype: str 94 """ 95 return self._id 96 97 @id.setter 98 def id(self, id): 99 """Sets the id of this WebFormSummary. 100 101 102 :param id: The id of this WebFormSummary. # noqa: E501 103 :type: str 104 """ 105 106 self._id = id 107 108 @property 109 def account_id(self): 110 """Gets the account_id of this WebFormSummary. # noqa: E501 111 112 113 :return: The account_id of this WebFormSummary. # noqa: E501 114 :rtype: str 115 """ 116 return self._account_id 117 118 @account_id.setter 119 def account_id(self, account_id): 120 """Sets the account_id of this WebFormSummary. 121 122 123 :param account_id: The account_id of this WebFormSummary. # noqa: E501 124 :type: str 125 """ 126 127 self._account_id = account_id 128 129 @property 130 def is_published(self): 131 """Gets the is_published of this WebFormSummary. # noqa: E501 132 133 Has the form been published # noqa: E501 134 135 :return: The is_published of this WebFormSummary. # noqa: E501 136 :rtype: bool 137 """ 138 return self._is_published 139 140 @is_published.setter 141 def is_published(self, is_published): 142 """Sets the is_published of this WebFormSummary. 143 144 Has the form been published # noqa: E501 145 146 :param is_published: The is_published of this WebFormSummary. # noqa: E501 147 :type: bool 148 """ 149 150 self._is_published = is_published 151 152 @property 153 def is_enabled(self): 154 """Gets the is_enabled of this WebFormSummary. # noqa: E501 155 156 Is the form currently enabled and available for data collection # noqa: E501 157 158 :return: The is_enabled of this WebFormSummary. # noqa: E501 159 :rtype: bool 160 """ 161 return self._is_enabled 162 163 @is_enabled.setter 164 def is_enabled(self, is_enabled): 165 """Sets the is_enabled of this WebFormSummary. 166 167 Is the form currently enabled and available for data collection # noqa: E501 168 169 :param is_enabled: The is_enabled of this WebFormSummary. # noqa: E501 170 :type: bool 171 """ 172 173 self._is_enabled = is_enabled 174 175 @property 176 def is_uploaded(self): 177 """Gets the is_uploaded of this WebFormSummary. # noqa: E501 178 179 Has the form created through upload # noqa: E501 180 181 :return: The is_uploaded of this WebFormSummary. # noqa: E501 182 :rtype: bool 183 """ 184 return self._is_uploaded 185 186 @is_uploaded.setter 187 def is_uploaded(self, is_uploaded): 188 """Sets the is_uploaded of this WebFormSummary. 189 190 Has the form created through upload # noqa: E501 191 192 :param is_uploaded: The is_uploaded of this WebFormSummary. # noqa: E501 193 :type: bool 194 """ 195 196 self._is_uploaded = is_uploaded 197 198 @property 199 def has_draft_changes(self): 200 """Gets the has_draft_changes of this WebFormSummary. # noqa: E501 201 202 Does the form have draft changes that need to be published? # noqa: E501 203 204 :return: The has_draft_changes of this WebFormSummary. # noqa: E501 205 :rtype: bool 206 """ 207 return self._has_draft_changes 208 209 @has_draft_changes.setter 210 def has_draft_changes(self, has_draft_changes): 211 """Sets the has_draft_changes of this WebFormSummary. 212 213 Does the form have draft changes that need to be published? # noqa: E501 214 215 :param has_draft_changes: The has_draft_changes of this WebFormSummary. # noqa: E501 216 :type: bool 217 """ 218 219 self._has_draft_changes = has_draft_changes 220 221 @property 222 def form_state(self): 223 """Gets the form_state of this WebFormSummary. # noqa: E501 224 225 226 :return: The form_state of this WebFormSummary. # noqa: E501 227 :rtype: WebFormState 228 """ 229 return self._form_state 230 231 @form_state.setter 232 def form_state(self, form_state): 233 """Sets the form_state of this WebFormSummary. 234 235 236 :param form_state: The form_state of this WebFormSummary. # noqa: E501 237 :type: WebFormState 238 """ 239 240 self._form_state = form_state 241 242 @property 243 def form_properties(self): 244 """Gets the form_properties of this WebFormSummary. # noqa: E501 245 246 247 :return: The form_properties of this WebFormSummary. # noqa: E501 248 :rtype: WebFormProperties 249 """ 250 return self._form_properties 251 252 @form_properties.setter 253 def form_properties(self, form_properties): 254 """Sets the form_properties of this WebFormSummary. 255 256 257 :param form_properties: The form_properties of this WebFormSummary. # noqa: E501 258 :type: WebFormProperties 259 """ 260 261 self._form_properties = form_properties 262 263 @property 264 def form_metadata(self): 265 """Gets the form_metadata of this WebFormSummary. # noqa: E501 266 267 268 :return: The form_metadata of this WebFormSummary. # noqa: E501 269 :rtype: WebFormMetadata 270 """ 271 return self._form_metadata 272 273 @form_metadata.setter 274 def form_metadata(self, form_metadata): 275 """Sets the form_metadata of this WebFormSummary. 276 277 278 :param form_metadata: The form_metadata of this WebFormSummary. # noqa: E501 279 :type: WebFormMetadata 280 """ 281 282 self._form_metadata = form_metadata 283 284 def to_dict(self): 285 """Returns the model properties as a dict""" 286 result = {} 287 288 for attr, _ in six.iteritems(self.swagger_types): 289 value = getattr(self, attr) 290 if isinstance(value, list): 291 result[attr] = list(map( 292 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 293 value 294 )) 295 elif hasattr(value, "to_dict"): 296 result[attr] = value.to_dict() 297 elif isinstance(value, dict): 298 result[attr] = dict(map( 299 lambda item: (item[0], item[1].to_dict()) 300 if hasattr(item[1], "to_dict") else item, 301 value.items() 302 )) 303 else: 304 result[attr] = value 305 if issubclass(WebFormSummary, dict): 306 for key, value in self.items(): 307 result[key] = value 308 309 return result 310 311 def to_str(self): 312 """Returns the string representation of the model""" 313 return pprint.pformat(self.to_dict()) 314 315 def __repr__(self): 316 """For `print` and `pprint`""" 317 return self.to_str() 318 319 def __eq__(self, other): 320 """Returns true if both objects are equal""" 321 if not isinstance(other, WebFormSummary): 322 return False 323 324 return self.to_dict() == other.to_dict() 325 326 def __ne__(self, other): 327 """Returns true if both objects are not equal""" 328 if not isinstance(other, WebFormSummary): 329 return True 330 331 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.
60 def __init__(self, _configuration=None, **kwargs): # noqa: E501 61 """WebFormSummary - a model defined in Swagger""" # noqa: E501 62 if _configuration is None: 63 _configuration = Configuration() 64 self._configuration = _configuration 65 66 self._id = None 67 self._account_id = None 68 self._is_published = None 69 self._is_enabled = None 70 self._is_uploaded = None 71 self._has_draft_changes = None 72 self._form_state = None 73 self._form_properties = None 74 self._form_metadata = None 75 self.discriminator = None 76 77 setattr(self, "_{}".format('id'), kwargs.get('id', None)) 78 setattr(self, "_{}".format('account_id'), kwargs.get('account_id', None)) 79 setattr(self, "_{}".format('is_published'), kwargs.get('is_published', None)) 80 setattr(self, "_{}".format('is_enabled'), kwargs.get('is_enabled', None)) 81 setattr(self, "_{}".format('is_uploaded'), kwargs.get('is_uploaded', None)) 82 setattr(self, "_{}".format('has_draft_changes'), kwargs.get('has_draft_changes', None)) 83 setattr(self, "_{}".format('form_state'), kwargs.get('form_state', None)) 84 setattr(self, "_{}".format('form_properties'), kwargs.get('form_properties', None)) 85 setattr(self, "_{}".format('form_metadata'), kwargs.get('form_metadata', None))
WebFormSummary - a model defined in Swagger
Gets the id of this WebFormSummary. # noqa: E501
Returns
The id of this WebFormSummary. # noqa: E501
Gets the account_id of this WebFormSummary. # noqa: E501
Returns
The account_id of this WebFormSummary. # noqa: E501
Gets the is_published of this WebFormSummary. # noqa: E501
Has the form been published # noqa: E501
Returns
The is_published of this WebFormSummary. # noqa: E501
Gets the is_enabled of this WebFormSummary. # noqa: E501
Is the form currently enabled and available for data collection # noqa: E501
Returns
The is_enabled of this WebFormSummary. # noqa: E501
Gets the is_uploaded of this WebFormSummary. # noqa: E501
Has the form created through upload # noqa: E501
Returns
The is_uploaded of this WebFormSummary. # noqa: E501
Gets the has_draft_changes of this WebFormSummary. # noqa: E501
Does the form have draft changes that need to be published? # noqa: E501
Returns
The has_draft_changes of this WebFormSummary. # noqa: E501
Gets the form_state of this WebFormSummary. # noqa: E501
Returns
The form_state of this WebFormSummary. # noqa: E501
Gets the form_properties of this WebFormSummary. # noqa: E501
Returns
The form_properties of this WebFormSummary. # noqa: E501
Gets the form_metadata of this WebFormSummary. # noqa: E501
Returns
The form_metadata of this WebFormSummary. # noqa: E501
284 def to_dict(self): 285 """Returns the model properties as a dict""" 286 result = {} 287 288 for attr, _ in six.iteritems(self.swagger_types): 289 value = getattr(self, attr) 290 if isinstance(value, list): 291 result[attr] = list(map( 292 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 293 value 294 )) 295 elif hasattr(value, "to_dict"): 296 result[attr] = value.to_dict() 297 elif isinstance(value, dict): 298 result[attr] = dict(map( 299 lambda item: (item[0], item[1].to_dict()) 300 if hasattr(item[1], "to_dict") else item, 301 value.items() 302 )) 303 else: 304 result[attr] = value 305 if issubclass(WebFormSummary, dict): 306 for key, value in self.items(): 307 result[key] = value 308 309 return result
Returns the model properties as a dict