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

Source(_configuration=None, **kwargs)
50    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
51        """Source - a model defined in Swagger"""  # noqa: E501
52        if _configuration is None:
53            _configuration = Configuration()
54        self._configuration = _configuration
55        self.discriminator = None

Source - a model defined in Swagger

PUBLIC_URL = 'PUBLIC_URL'
API_EMBEDDED = 'API_EMBEDDED'
API_REMOTE = 'API_REMOTE'
UI_REMOTE = 'UI_REMOTE'

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.

swagger_types = {}
attribute_map = {}
def to_dict(self)
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(Source, dict):
79            for key, value in self.items():
80                result[key] = value
81
82        return result

Returns the model properties as a dict

def to_str(self)
84    def to_str(self):
85        """Returns the string representation of the model"""
86        return pprint.pformat(self.to_dict())

Returns the string representation of the model