docusign_webforms.models.web_form_state

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

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

WebFormState - a model defined in Swagger

ACTIVE = 'active'
DRAFT = 'draft'

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)
55    def to_dict(self):
56        """Returns the model properties as a dict"""
57        result = {}
58
59        for attr, _ in six.iteritems(self.swagger_types):
60            value = getattr(self, attr)
61            if isinstance(value, list):
62                result[attr] = list(map(
63                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
64                    value
65                ))
66            elif hasattr(value, "to_dict"):
67                result[attr] = value.to_dict()
68            elif isinstance(value, dict):
69                result[attr] = dict(map(
70                    lambda item: (item[0], item[1].to_dict())
71                    if hasattr(item[1], "to_dict") else item,
72                    value.items()
73                ))
74            else:
75                result[attr] = value
76        if issubclass(WebFormState, dict):
77            for key, value in self.items():
78                result[key] = value
79
80        return result

Returns the model properties as a dict

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

Returns the string representation of the model