docusign_webforms.models.instance_source
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 InstanceSource(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 allowed enum values 30 """ 31 PUBLIC_URL = "PUBLIC_URL" 32 API_EMBEDDED = "API_EMBEDDED" 33 API_REMOTE = "API_REMOTE" 34 UI_REMOTE = "UI_REMOTE" 35 WORKFLOW = "WORKFLOW" 36 37 """ 38 Attributes: 39 swagger_types (dict): The key is attribute name 40 and the value is attribute type. 41 attribute_map (dict): The key is attribute name 42 and the value is json key in definition. 43 """ 44 swagger_types = { 45 } 46 47 attribute_map = { 48 } 49 50 def __init__(self, _configuration=None, **kwargs): # noqa: E501 51 """InstanceSource - a model defined in Swagger""" # noqa: E501 52 if _configuration is None: 53 _configuration = Configuration() 54 self._configuration = _configuration 55 self.discriminator = None 56 57 def to_dict(self): 58 """Returns the model properties as a dict""" 59 result = {} 60 61 for attr, _ in six.iteritems(self.swagger_types): 62 value = getattr(self, attr) 63 if isinstance(value, list): 64 result[attr] = list(map( 65 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 66 value 67 )) 68 elif hasattr(value, "to_dict"): 69 result[attr] = value.to_dict() 70 elif isinstance(value, dict): 71 result[attr] = dict(map( 72 lambda item: (item[0], item[1].to_dict()) 73 if hasattr(item[1], "to_dict") else item, 74 value.items() 75 )) 76 else: 77 result[attr] = value 78 if issubclass(InstanceSource, dict): 79 for key, value in self.items(): 80 result[key] = value 81 82 return result 83 84 def to_str(self): 85 """Returns the string representation of the model""" 86 return pprint.pformat(self.to_dict()) 87 88 def __repr__(self): 89 """For `print` and `pprint`""" 90 return self.to_str() 91 92 def __eq__(self, other): 93 """Returns true if both objects are equal""" 94 if not isinstance(other, InstanceSource): 95 return False 96 97 return self.to_dict() == other.to_dict() 98 99 def __ne__(self, other): 100 """Returns true if both objects are not equal""" 101 if not isinstance(other, InstanceSource): 102 return True 103 104 return self.to_dict() != other.to_dict()
class
InstanceSource:
23class InstanceSource(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 allowed enum values 31 """ 32 PUBLIC_URL = "PUBLIC_URL" 33 API_EMBEDDED = "API_EMBEDDED" 34 API_REMOTE = "API_REMOTE" 35 UI_REMOTE = "UI_REMOTE" 36 WORKFLOW = "WORKFLOW" 37 38 """ 39 Attributes: 40 swagger_types (dict): The key is attribute name 41 and the value is attribute type. 42 attribute_map (dict): The key is attribute name 43 and the value is json key in definition. 44 """ 45 swagger_types = { 46 } 47 48 attribute_map = { 49 } 50 51 def __init__(self, _configuration=None, **kwargs): # noqa: E501 52 """InstanceSource - a model defined in Swagger""" # noqa: E501 53 if _configuration is None: 54 _configuration = Configuration() 55 self._configuration = _configuration 56 self.discriminator = None 57 58 def to_dict(self): 59 """Returns the model properties as a dict""" 60 result = {} 61 62 for attr, _ in six.iteritems(self.swagger_types): 63 value = getattr(self, attr) 64 if isinstance(value, list): 65 result[attr] = list(map( 66 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 67 value 68 )) 69 elif hasattr(value, "to_dict"): 70 result[attr] = value.to_dict() 71 elif isinstance(value, dict): 72 result[attr] = dict(map( 73 lambda item: (item[0], item[1].to_dict()) 74 if hasattr(item[1], "to_dict") else item, 75 value.items() 76 )) 77 else: 78 result[attr] = value 79 if issubclass(InstanceSource, dict): 80 for key, value in self.items(): 81 result[key] = value 82 83 return result 84 85 def to_str(self): 86 """Returns the string representation of the model""" 87 return pprint.pformat(self.to_dict()) 88 89 def __repr__(self): 90 """For `print` and `pprint`""" 91 return self.to_str() 92 93 def __eq__(self, other): 94 """Returns true if both objects are equal""" 95 if not isinstance(other, InstanceSource): 96 return False 97 98 return self.to_dict() == other.to_dict() 99 100 def __ne__(self, other): 101 """Returns true if both objects are not equal""" 102 if not isinstance(other, InstanceSource): 103 return True 104 105 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.
InstanceSource(_configuration=None, **kwargs)
51 def __init__(self, _configuration=None, **kwargs): # noqa: E501 52 """InstanceSource - a model defined in Swagger""" # noqa: E501 53 if _configuration is None: 54 _configuration = Configuration() 55 self._configuration = _configuration 56 self.discriminator = None
InstanceSource - a model defined in Swagger
WORKFLOW = 'WORKFLOW'
Attributes: swagger_types (dict): The key is attribute name and the value is attribute type. attribute_map (dict): The key is attribute name and the value is json key in definition.
def
to_dict(self)
58 def to_dict(self): 59 """Returns the model properties as a dict""" 60 result = {} 61 62 for attr, _ in six.iteritems(self.swagger_types): 63 value = getattr(self, attr) 64 if isinstance(value, list): 65 result[attr] = list(map( 66 lambda x: x.to_dict() if hasattr(x, "to_dict") else x, 67 value 68 )) 69 elif hasattr(value, "to_dict"): 70 result[attr] = value.to_dict() 71 elif isinstance(value, dict): 72 result[attr] = dict(map( 73 lambda item: (item[0], item[1].to_dict()) 74 if hasattr(item[1], "to_dict") else item, 75 value.items() 76 )) 77 else: 78 result[attr] = value 79 if issubclass(InstanceSource, dict): 80 for key, value in self.items(): 81 result[key] = value 82 83 return result
Returns the model properties as a dict