docusign_webforms.models.http_success

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 HttpSuccess(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        'status': 'str'
 37    }
 38
 39    attribute_map = {
 40        'status': 'status'
 41    }
 42
 43    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 44        """HttpSuccess - a model defined in Swagger"""  # noqa: E501
 45        if _configuration is None:
 46            _configuration = Configuration()
 47        self._configuration = _configuration
 48
 49        self._status = None
 50        self.discriminator = None
 51
 52        setattr(self, "_{}".format('status'), kwargs.get('status', None))
 53
 54    @property
 55    def status(self):
 56        """Gets the status of this HttpSuccess.  # noqa: E501
 57
 58
 59        :return: The status of this HttpSuccess.  # noqa: E501
 60        :rtype: str
 61        """
 62        return self._status
 63
 64    @status.setter
 65    def status(self, status):
 66        """Sets the status of this HttpSuccess.
 67
 68
 69        :param status: The status of this HttpSuccess.  # noqa: E501
 70        :type: str
 71        """
 72
 73        self._status = status
 74
 75    def to_dict(self):
 76        """Returns the model properties as a dict"""
 77        result = {}
 78
 79        for attr, _ in six.iteritems(self.swagger_types):
 80            value = getattr(self, attr)
 81            if isinstance(value, list):
 82                result[attr] = list(map(
 83                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
 84                    value
 85                ))
 86            elif hasattr(value, "to_dict"):
 87                result[attr] = value.to_dict()
 88            elif isinstance(value, dict):
 89                result[attr] = dict(map(
 90                    lambda item: (item[0], item[1].to_dict())
 91                    if hasattr(item[1], "to_dict") else item,
 92                    value.items()
 93                ))
 94            else:
 95                result[attr] = value
 96        if issubclass(HttpSuccess, dict):
 97            for key, value in self.items():
 98                result[key] = value
 99
100        return result
101
102    def to_str(self):
103        """Returns the string representation of the model"""
104        return pprint.pformat(self.to_dict())
105
106    def __repr__(self):
107        """For `print` and `pprint`"""
108        return self.to_str()
109
110    def __eq__(self, other):
111        """Returns true if both objects are equal"""
112        if not isinstance(other, HttpSuccess):
113            return False
114
115        return self.to_dict() == other.to_dict()
116
117    def __ne__(self, other):
118        """Returns true if both objects are not equal"""
119        if not isinstance(other, HttpSuccess):
120            return True
121
122        return self.to_dict() != other.to_dict()
class HttpSuccess:
 23class HttpSuccess(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        'status': 'str'
 38    }
 39
 40    attribute_map = {
 41        'status': 'status'
 42    }
 43
 44    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 45        """HttpSuccess - a model defined in Swagger"""  # noqa: E501
 46        if _configuration is None:
 47            _configuration = Configuration()
 48        self._configuration = _configuration
 49
 50        self._status = None
 51        self.discriminator = None
 52
 53        setattr(self, "_{}".format('status'), kwargs.get('status', None))
 54
 55    @property
 56    def status(self):
 57        """Gets the status of this HttpSuccess.  # noqa: E501
 58
 59
 60        :return: The status of this HttpSuccess.  # noqa: E501
 61        :rtype: str
 62        """
 63        return self._status
 64
 65    @status.setter
 66    def status(self, status):
 67        """Sets the status of this HttpSuccess.
 68
 69
 70        :param status: The status of this HttpSuccess.  # noqa: E501
 71        :type: str
 72        """
 73
 74        self._status = status
 75
 76    def to_dict(self):
 77        """Returns the model properties as a dict"""
 78        result = {}
 79
 80        for attr, _ in six.iteritems(self.swagger_types):
 81            value = getattr(self, attr)
 82            if isinstance(value, list):
 83                result[attr] = list(map(
 84                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
 85                    value
 86                ))
 87            elif hasattr(value, "to_dict"):
 88                result[attr] = value.to_dict()
 89            elif isinstance(value, dict):
 90                result[attr] = dict(map(
 91                    lambda item: (item[0], item[1].to_dict())
 92                    if hasattr(item[1], "to_dict") else item,
 93                    value.items()
 94                ))
 95            else:
 96                result[attr] = value
 97        if issubclass(HttpSuccess, dict):
 98            for key, value in self.items():
 99                result[key] = value
100
101        return result
102
103    def to_str(self):
104        """Returns the string representation of the model"""
105        return pprint.pformat(self.to_dict())
106
107    def __repr__(self):
108        """For `print` and `pprint`"""
109        return self.to_str()
110
111    def __eq__(self, other):
112        """Returns true if both objects are equal"""
113        if not isinstance(other, HttpSuccess):
114            return False
115
116        return self.to_dict() == other.to_dict()
117
118    def __ne__(self, other):
119        """Returns true if both objects are not equal"""
120        if not isinstance(other, HttpSuccess):
121            return True
122
123        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.

HttpSuccess(_configuration=None, **kwargs)
44    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
45        """HttpSuccess - a model defined in Swagger"""  # noqa: E501
46        if _configuration is None:
47            _configuration = Configuration()
48        self._configuration = _configuration
49
50        self._status = None
51        self.discriminator = None
52
53        setattr(self, "_{}".format('status'), kwargs.get('status', None))

HttpSuccess - a model defined in Swagger

swagger_types = {'status': 'str'}
attribute_map = {'status': 'status'}
status

Gets the status of this HttpSuccess. # noqa: E501

Returns

The status of this HttpSuccess. # noqa: E501

def to_dict(self)
 76    def to_dict(self):
 77        """Returns the model properties as a dict"""
 78        result = {}
 79
 80        for attr, _ in six.iteritems(self.swagger_types):
 81            value = getattr(self, attr)
 82            if isinstance(value, list):
 83                result[attr] = list(map(
 84                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
 85                    value
 86                ))
 87            elif hasattr(value, "to_dict"):
 88                result[attr] = value.to_dict()
 89            elif isinstance(value, dict):
 90                result[attr] = dict(map(
 91                    lambda item: (item[0], item[1].to_dict())
 92                    if hasattr(item[1], "to_dict") else item,
 93                    value.items()
 94                ))
 95            else:
 96                result[attr] = value
 97        if issubclass(HttpSuccess, dict):
 98            for key, value in self.items():
 99                result[key] = value
100
101        return result

Returns the model properties as a dict

def to_str(self)
103    def to_str(self):
104        """Returns the string representation of the model"""
105        return pprint.pformat(self.to_dict())

Returns the string representation of the model