docusign_esign.models.doc_gen_form_field
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 DocGenFormField(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 'description': 'str', 37 'label': 'str', 38 'name': 'str', 39 'options': 'list[DocGenFormFieldOption]', 40 'predefined_validation': 'str', 41 'required': 'str', 42 'row_values': 'list[DocGenFormFieldRowValue]', 43 'type': 'str', 44 'validation': 'DocGenFormFieldValidation', 45 'value': 'str' 46 } 47 48 attribute_map = { 49 'description': 'description', 50 'label': 'label', 51 'name': 'name', 52 'options': 'options', 53 'predefined_validation': 'predefinedValidation', 54 'required': 'required', 55 'row_values': 'rowValues', 56 'type': 'type', 57 'validation': 'validation', 58 'value': 'value' 59 } 60 61 def __init__(self, _configuration=None, **kwargs): # noqa: E501 62 """DocGenFormField - a model defined in Swagger""" # noqa: E501 63 if _configuration is None: 64 _configuration = Configuration() 65 self._configuration = _configuration 66 67 self._description = None 68 self._label = None 69 self._name = None 70 self._options = None 71 self._predefined_validation = None 72 self._required = None 73 self._row_values = None 74 self._type = None 75 self._validation = None 76 self._value = None 77 self.discriminator = None 78 79 setattr(self, "_{}".format('description'), kwargs.get('description', None)) 80 setattr(self, "_{}".format('label'), kwargs.get('label', None)) 81 setattr(self, "_{}".format('name'), kwargs.get('name', None)) 82 setattr(self, "_{}".format('options'), kwargs.get('options', None)) 83 setattr(self, "_{}".format('predefined_validation'), kwargs.get('predefined_validation', None)) 84 setattr(self, "_{}".format('required'), kwargs.get('required', None)) 85 setattr(self, "_{}".format('row_values'), kwargs.get('row_values', None)) 86 setattr(self, "_{}".format('type'), kwargs.get('type', None)) 87 setattr(self, "_{}".format('validation'), kwargs.get('validation', None)) 88 setattr(self, "_{}".format('value'), kwargs.get('value', None)) 89 90 @property 91 def description(self): 92 """Gets the description of this DocGenFormField. # noqa: E501 93 94 # noqa: E501 95 96 :return: The description of this DocGenFormField. # noqa: E501 97 :rtype: str 98 """ 99 return self._description 100 101 @description.setter 102 def description(self, description): 103 """Sets the description of this DocGenFormField. 104 105 # noqa: E501 106 107 :param description: The description of this DocGenFormField. # noqa: E501 108 :type: str 109 """ 110 111 self._description = description 112 113 @property 114 def label(self): 115 """Gets the label of this DocGenFormField. # noqa: E501 116 117 # noqa: E501 118 119 :return: The label of this DocGenFormField. # noqa: E501 120 :rtype: str 121 """ 122 return self._label 123 124 @label.setter 125 def label(self, label): 126 """Sets the label of this DocGenFormField. 127 128 # noqa: E501 129 130 :param label: The label of this DocGenFormField. # noqa: E501 131 :type: str 132 """ 133 134 self._label = label 135 136 @property 137 def name(self): 138 """Gets the name of this DocGenFormField. # noqa: E501 139 140 # noqa: E501 141 142 :return: The name of this DocGenFormField. # noqa: E501 143 :rtype: str 144 """ 145 return self._name 146 147 @name.setter 148 def name(self, name): 149 """Sets the name of this DocGenFormField. 150 151 # noqa: E501 152 153 :param name: The name of this DocGenFormField. # noqa: E501 154 :type: str 155 """ 156 157 self._name = name 158 159 @property 160 def options(self): 161 """Gets the options of this DocGenFormField. # noqa: E501 162 163 # noqa: E501 164 165 :return: The options of this DocGenFormField. # noqa: E501 166 :rtype: list[DocGenFormFieldOption] 167 """ 168 return self._options 169 170 @options.setter 171 def options(self, options): 172 """Sets the options of this DocGenFormField. 173 174 # noqa: E501 175 176 :param options: The options of this DocGenFormField. # noqa: E501 177 :type: list[DocGenFormFieldOption] 178 """ 179 180 self._options = options 181 182 @property 183 def predefined_validation(self): 184 """Gets the predefined_validation of this DocGenFormField. # noqa: E501 185 186 # noqa: E501 187 188 :return: The predefined_validation of this DocGenFormField. # noqa: E501 189 :rtype: str 190 """ 191 return self._predefined_validation 192 193 @predefined_validation.setter 194 def predefined_validation(self, predefined_validation): 195 """Sets the predefined_validation of this DocGenFormField. 196 197 # noqa: E501 198 199 :param predefined_validation: The predefined_validation of this DocGenFormField. # noqa: E501 200 :type: str 201 """ 202 203 self._predefined_validation = predefined_validation 204 205 @property 206 def required(self): 207 """Gets the required of this DocGenFormField. # noqa: E501 208 209 When set to **true**, the signer is required to fill out this tab # noqa: E501 210 211 :return: The required of this DocGenFormField. # noqa: E501 212 :rtype: str 213 """ 214 return self._required 215 216 @required.setter 217 def required(self, required): 218 """Sets the required of this DocGenFormField. 219 220 When set to **true**, the signer is required to fill out this tab # noqa: E501 221 222 :param required: The required of this DocGenFormField. # noqa: E501 223 :type: str 224 """ 225 226 self._required = required 227 228 @property 229 def row_values(self): 230 """Gets the row_values of this DocGenFormField. # noqa: E501 231 232 # noqa: E501 233 234 :return: The row_values of this DocGenFormField. # noqa: E501 235 :rtype: list[DocGenFormFieldRowValue] 236 """ 237 return self._row_values 238 239 @row_values.setter 240 def row_values(self, row_values): 241 """Sets the row_values of this DocGenFormField. 242 243 # noqa: E501 244 245 :param row_values: The row_values of this DocGenFormField. # noqa: E501 246 :type: list[DocGenFormFieldRowValue] 247 """ 248 249 self._row_values = row_values 250 251 @property 252 def type(self): 253 """Gets the type of this DocGenFormField. # noqa: E501 254 255 # noqa: E501 256 257 :return: The type of this DocGenFormField. # noqa: E501 258 :rtype: str 259 """ 260 return self._type 261 262 @type.setter 263 def type(self, type): 264 """Sets the type of this DocGenFormField. 265 266 # noqa: E501 267 268 :param type: The type of this DocGenFormField. # noqa: E501 269 :type: str 270 """ 271 272 self._type = type 273 274 @property 275 def validation(self): 276 """Gets the validation of this DocGenFormField. # noqa: E501 277 278 # noqa: E501 279 280 :return: The validation of this DocGenFormField. # noqa: E501 281 :rtype: DocGenFormFieldValidation 282 """ 283 return self._validation 284 285 @validation.setter 286 def validation(self, validation): 287 """Sets the validation of this DocGenFormField. 288 289 # noqa: E501 290 291 :param validation: The validation of this DocGenFormField. # noqa: E501 292 :type: DocGenFormFieldValidation 293 """ 294 295 self._validation = validation 296 297 @property 298 def value(self): 299 """Gets the value of this DocGenFormField. # noqa: E501 300 301 Specifies the value of the tab. # noqa: E501 302 303 :return: The value of this DocGenFormField. # noqa: E501 304 :rtype: str 305 """ 306 return self._value 307 308 @value.setter 309 def value(self, value): 310 """Sets the value of this DocGenFormField. 311 312 Specifies the value of the tab. # noqa: E501 313 314 :param value: The value of this DocGenFormField. # noqa: E501 315 :type: str 316 """ 317 318 self._value = value 319 320 def to_dict(self): 321 """Returns the model properties as a dict""" 322 result = {} 323 324 for attr, _ in six.iteritems(self.swagger_types): 325 value = getattr(self, attr) 326 if isinstance(value, list): 327 result[attr] = list(map( 328 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 329 value 330 )) 331 elif hasattr(value, "to_dict"): 332 result[attr] = value.to_dict() 333 elif isinstance(value, dict): 334 result[attr] = dict(map( 335 lambda item: (item[0], item[1].to_dict()) 336 if hasattr(item[1], "to_dict") else item, 337 value.items() 338 )) 339 else: 340 result[attr] = value 341 if issubclass(DocGenFormField, dict): 342 for key, value in self.items(): 343 result[key] = value 344 345 return result 346 347 def to_str(self): 348 """Returns the string representation of the model""" 349 return pprint.pformat(self.to_dict()) 350 351 def __repr__(self): 352 """For `print` and `pprint`""" 353 return self.to_str() 354 355 def __eq__(self, other): 356 """Returns true if both objects are equal""" 357 if not isinstance(other, DocGenFormField): 358 return False 359 360 return self.to_dict() == other.to_dict() 361 362 def __ne__(self, other): 363 """Returns true if both objects are not equal""" 364 if not isinstance(other, DocGenFormField): 365 return True 366 367 return self.to_dict() != other.to_dict()
23class DocGenFormField(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 'description': 'str', 38 'label': 'str', 39 'name': 'str', 40 'options': 'list[DocGenFormFieldOption]', 41 'predefined_validation': 'str', 42 'required': 'str', 43 'row_values': 'list[DocGenFormFieldRowValue]', 44 'type': 'str', 45 'validation': 'DocGenFormFieldValidation', 46 'value': 'str' 47 } 48 49 attribute_map = { 50 'description': 'description', 51 'label': 'label', 52 'name': 'name', 53 'options': 'options', 54 'predefined_validation': 'predefinedValidation', 55 'required': 'required', 56 'row_values': 'rowValues', 57 'type': 'type', 58 'validation': 'validation', 59 'value': 'value' 60 } 61 62 def __init__(self, _configuration=None, **kwargs): # noqa: E501 63 """DocGenFormField - a model defined in Swagger""" # noqa: E501 64 if _configuration is None: 65 _configuration = Configuration() 66 self._configuration = _configuration 67 68 self._description = None 69 self._label = None 70 self._name = None 71 self._options = None 72 self._predefined_validation = None 73 self._required = None 74 self._row_values = None 75 self._type = None 76 self._validation = None 77 self._value = None 78 self.discriminator = None 79 80 setattr(self, "_{}".format('description'), kwargs.get('description', None)) 81 setattr(self, "_{}".format('label'), kwargs.get('label', None)) 82 setattr(self, "_{}".format('name'), kwargs.get('name', None)) 83 setattr(self, "_{}".format('options'), kwargs.get('options', None)) 84 setattr(self, "_{}".format('predefined_validation'), kwargs.get('predefined_validation', None)) 85 setattr(self, "_{}".format('required'), kwargs.get('required', None)) 86 setattr(self, "_{}".format('row_values'), kwargs.get('row_values', None)) 87 setattr(self, "_{}".format('type'), kwargs.get('type', None)) 88 setattr(self, "_{}".format('validation'), kwargs.get('validation', None)) 89 setattr(self, "_{}".format('value'), kwargs.get('value', None)) 90 91 @property 92 def description(self): 93 """Gets the description of this DocGenFormField. # noqa: E501 94 95 # noqa: E501 96 97 :return: The description of this DocGenFormField. # noqa: E501 98 :rtype: str 99 """ 100 return self._description 101 102 @description.setter 103 def description(self, description): 104 """Sets the description of this DocGenFormField. 105 106 # noqa: E501 107 108 :param description: The description of this DocGenFormField. # noqa: E501 109 :type: str 110 """ 111 112 self._description = description 113 114 @property 115 def label(self): 116 """Gets the label of this DocGenFormField. # noqa: E501 117 118 # noqa: E501 119 120 :return: The label of this DocGenFormField. # noqa: E501 121 :rtype: str 122 """ 123 return self._label 124 125 @label.setter 126 def label(self, label): 127 """Sets the label of this DocGenFormField. 128 129 # noqa: E501 130 131 :param label: The label of this DocGenFormField. # noqa: E501 132 :type: str 133 """ 134 135 self._label = label 136 137 @property 138 def name(self): 139 """Gets the name of this DocGenFormField. # noqa: E501 140 141 # noqa: E501 142 143 :return: The name of this DocGenFormField. # noqa: E501 144 :rtype: str 145 """ 146 return self._name 147 148 @name.setter 149 def name(self, name): 150 """Sets the name of this DocGenFormField. 151 152 # noqa: E501 153 154 :param name: The name of this DocGenFormField. # noqa: E501 155 :type: str 156 """ 157 158 self._name = name 159 160 @property 161 def options(self): 162 """Gets the options of this DocGenFormField. # noqa: E501 163 164 # noqa: E501 165 166 :return: The options of this DocGenFormField. # noqa: E501 167 :rtype: list[DocGenFormFieldOption] 168 """ 169 return self._options 170 171 @options.setter 172 def options(self, options): 173 """Sets the options of this DocGenFormField. 174 175 # noqa: E501 176 177 :param options: The options of this DocGenFormField. # noqa: E501 178 :type: list[DocGenFormFieldOption] 179 """ 180 181 self._options = options 182 183 @property 184 def predefined_validation(self): 185 """Gets the predefined_validation of this DocGenFormField. # noqa: E501 186 187 # noqa: E501 188 189 :return: The predefined_validation of this DocGenFormField. # noqa: E501 190 :rtype: str 191 """ 192 return self._predefined_validation 193 194 @predefined_validation.setter 195 def predefined_validation(self, predefined_validation): 196 """Sets the predefined_validation of this DocGenFormField. 197 198 # noqa: E501 199 200 :param predefined_validation: The predefined_validation of this DocGenFormField. # noqa: E501 201 :type: str 202 """ 203 204 self._predefined_validation = predefined_validation 205 206 @property 207 def required(self): 208 """Gets the required of this DocGenFormField. # noqa: E501 209 210 When set to **true**, the signer is required to fill out this tab # noqa: E501 211 212 :return: The required of this DocGenFormField. # noqa: E501 213 :rtype: str 214 """ 215 return self._required 216 217 @required.setter 218 def required(self, required): 219 """Sets the required of this DocGenFormField. 220 221 When set to **true**, the signer is required to fill out this tab # noqa: E501 222 223 :param required: The required of this DocGenFormField. # noqa: E501 224 :type: str 225 """ 226 227 self._required = required 228 229 @property 230 def row_values(self): 231 """Gets the row_values of this DocGenFormField. # noqa: E501 232 233 # noqa: E501 234 235 :return: The row_values of this DocGenFormField. # noqa: E501 236 :rtype: list[DocGenFormFieldRowValue] 237 """ 238 return self._row_values 239 240 @row_values.setter 241 def row_values(self, row_values): 242 """Sets the row_values of this DocGenFormField. 243 244 # noqa: E501 245 246 :param row_values: The row_values of this DocGenFormField. # noqa: E501 247 :type: list[DocGenFormFieldRowValue] 248 """ 249 250 self._row_values = row_values 251 252 @property 253 def type(self): 254 """Gets the type of this DocGenFormField. # noqa: E501 255 256 # noqa: E501 257 258 :return: The type of this DocGenFormField. # noqa: E501 259 :rtype: str 260 """ 261 return self._type 262 263 @type.setter 264 def type(self, type): 265 """Sets the type of this DocGenFormField. 266 267 # noqa: E501 268 269 :param type: The type of this DocGenFormField. # noqa: E501 270 :type: str 271 """ 272 273 self._type = type 274 275 @property 276 def validation(self): 277 """Gets the validation of this DocGenFormField. # noqa: E501 278 279 # noqa: E501 280 281 :return: The validation of this DocGenFormField. # noqa: E501 282 :rtype: DocGenFormFieldValidation 283 """ 284 return self._validation 285 286 @validation.setter 287 def validation(self, validation): 288 """Sets the validation of this DocGenFormField. 289 290 # noqa: E501 291 292 :param validation: The validation of this DocGenFormField. # noqa: E501 293 :type: DocGenFormFieldValidation 294 """ 295 296 self._validation = validation 297 298 @property 299 def value(self): 300 """Gets the value of this DocGenFormField. # noqa: E501 301 302 Specifies the value of the tab. # noqa: E501 303 304 :return: The value of this DocGenFormField. # noqa: E501 305 :rtype: str 306 """ 307 return self._value 308 309 @value.setter 310 def value(self, value): 311 """Sets the value of this DocGenFormField. 312 313 Specifies the value of the tab. # noqa: E501 314 315 :param value: The value of this DocGenFormField. # noqa: E501 316 :type: str 317 """ 318 319 self._value = value 320 321 def to_dict(self): 322 """Returns the model properties as a dict""" 323 result = {} 324 325 for attr, _ in six.iteritems(self.swagger_types): 326 value = getattr(self, attr) 327 if isinstance(value, list): 328 result[attr] = list(map( 329 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 330 value 331 )) 332 elif hasattr(value, "to_dict"): 333 result[attr] = value.to_dict() 334 elif isinstance(value, dict): 335 result[attr] = dict(map( 336 lambda item: (item[0], item[1].to_dict()) 337 if hasattr(item[1], "to_dict") else item, 338 value.items() 339 )) 340 else: 341 result[attr] = value 342 if issubclass(DocGenFormField, dict): 343 for key, value in self.items(): 344 result[key] = value 345 346 return result 347 348 def to_str(self): 349 """Returns the string representation of the model""" 350 return pprint.pformat(self.to_dict()) 351 352 def __repr__(self): 353 """For `print` and `pprint`""" 354 return self.to_str() 355 356 def __eq__(self, other): 357 """Returns true if both objects are equal""" 358 if not isinstance(other, DocGenFormField): 359 return False 360 361 return self.to_dict() == other.to_dict() 362 363 def __ne__(self, other): 364 """Returns true if both objects are not equal""" 365 if not isinstance(other, DocGenFormField): 366 return True 367 368 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.
62 def __init__(self, _configuration=None, **kwargs): # noqa: E501 63 """DocGenFormField - a model defined in Swagger""" # noqa: E501 64 if _configuration is None: 65 _configuration = Configuration() 66 self._configuration = _configuration 67 68 self._description = None 69 self._label = None 70 self._name = None 71 self._options = None 72 self._predefined_validation = None 73 self._required = None 74 self._row_values = None 75 self._type = None 76 self._validation = None 77 self._value = None 78 self.discriminator = None 79 80 setattr(self, "_{}".format('description'), kwargs.get('description', None)) 81 setattr(self, "_{}".format('label'), kwargs.get('label', None)) 82 setattr(self, "_{}".format('name'), kwargs.get('name', None)) 83 setattr(self, "_{}".format('options'), kwargs.get('options', None)) 84 setattr(self, "_{}".format('predefined_validation'), kwargs.get('predefined_validation', None)) 85 setattr(self, "_{}".format('required'), kwargs.get('required', None)) 86 setattr(self, "_{}".format('row_values'), kwargs.get('row_values', None)) 87 setattr(self, "_{}".format('type'), kwargs.get('type', None)) 88 setattr(self, "_{}".format('validation'), kwargs.get('validation', None)) 89 setattr(self, "_{}".format('value'), kwargs.get('value', None))
DocGenFormField - a model defined in Swagger
Gets the description of this DocGenFormField. # noqa: E501
# noqa: E501
Returns
The description of this DocGenFormField. # noqa: E501
Gets the label of this DocGenFormField. # noqa: E501
# noqa: E501
Returns
The label of this DocGenFormField. # noqa: E501
Gets the name of this DocGenFormField. # noqa: E501
# noqa: E501
Returns
The name of this DocGenFormField. # noqa: E501
Gets the options of this DocGenFormField. # noqa: E501
# noqa: E501
Returns
The options of this DocGenFormField. # noqa: E501
Gets the predefined_validation of this DocGenFormField. # noqa: E501
# noqa: E501
Returns
The predefined_validation of this DocGenFormField. # noqa: E501
Gets the required of this DocGenFormField. # noqa: E501
When set to true, the signer is required to fill out this tab # noqa: E501
Returns
The required of this DocGenFormField. # noqa: E501
Gets the row_values of this DocGenFormField. # noqa: E501
# noqa: E501
Returns
The row_values of this DocGenFormField. # noqa: E501
Gets the type of this DocGenFormField. # noqa: E501
# noqa: E501
Returns
The type of this DocGenFormField. # noqa: E501
Gets the validation of this DocGenFormField. # noqa: E501
# noqa: E501
Returns
The validation of this DocGenFormField. # noqa: E501
Gets the value of this DocGenFormField. # noqa: E501
Specifies the value of the tab. # noqa: E501
Returns
The value of this DocGenFormField. # noqa: E501
321 def to_dict(self): 322 """Returns the model properties as a dict""" 323 result = {} 324 325 for attr, _ in six.iteritems(self.swagger_types): 326 value = getattr(self, attr) 327 if isinstance(value, list): 328 result[attr] = list(map( 329 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 330 value 331 )) 332 elif hasattr(value, "to_dict"): 333 result[attr] = value.to_dict() 334 elif isinstance(value, dict): 335 result[attr] = dict(map( 336 lambda item: (item[0], item[1].to_dict()) 337 if hasattr(item[1], "to_dict") else item, 338 value.items() 339 )) 340 else: 341 result[attr] = value 342 if issubclass(DocGenFormField, dict): 343 for key, value in self.items(): 344 result[key] = value 345 346 return result
Returns the model properties as a dict