docusign_webforms.models.web_form_content

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 WebFormContent(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        'components': 'dict(str, dict(str, object))',
 37        'is_standalone': 'bool',
 38        'brand_id': 'str',
 39        'templates': 'list[TemplateProperties]'
 40    }
 41
 42    attribute_map = {
 43        'components': 'components',
 44        'is_standalone': 'isStandalone',
 45        'brand_id': 'brandId',
 46        'templates': 'templates'
 47    }
 48
 49    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 50        """WebFormContent - a model defined in Swagger"""  # noqa: E501
 51        if _configuration is None:
 52            _configuration = Configuration()
 53        self._configuration = _configuration
 54
 55        self._components = None
 56        self._is_standalone = None
 57        self._brand_id = None
 58        self._templates = None
 59        self.discriminator = None
 60
 61        setattr(self, "_{}".format('components'), kwargs.get('components', None))
 62        setattr(self, "_{}".format('is_standalone'), kwargs.get('is_standalone', None))
 63        setattr(self, "_{}".format('brand_id'), kwargs.get('brand_id', None))
 64        setattr(self, "_{}".format('templates'), kwargs.get('templates', None))
 65
 66    @property
 67    def components(self):
 68        """Gets the components of this WebFormContent.  # noqa: E501
 69
 70        Key/value dictionary of components that represent the form  # noqa: E501
 71
 72        :return: The components of this WebFormContent.  # noqa: E501
 73        :rtype: dict(str, dict(str, object))
 74        """
 75        return self._components
 76
 77    @components.setter
 78    def components(self, components):
 79        """Sets the components of this WebFormContent.
 80
 81        Key/value dictionary of components that represent the form  # noqa: E501
 82
 83        :param components: The components of this WebFormContent.  # noqa: E501
 84        :type: dict(str, dict(str, object))
 85        """
 86
 87        self._components = components
 88
 89    @property
 90    def is_standalone(self):
 91        """Gets the is_standalone of this WebFormContent.  # noqa: E501
 92
 93
 94        :return: The is_standalone of this WebFormContent.  # noqa: E501
 95        :rtype: bool
 96        """
 97        return self._is_standalone
 98
 99    @is_standalone.setter
100    def is_standalone(self, is_standalone):
101        """Sets the is_standalone of this WebFormContent.
102
103
104        :param is_standalone: The is_standalone of this WebFormContent.  # noqa: E501
105        :type: bool
106        """
107
108        self._is_standalone = is_standalone
109
110    @property
111    def brand_id(self):
112        """Gets the brand_id of this WebFormContent.  # noqa: E501
113
114
115        :return: The brand_id of this WebFormContent.  # noqa: E501
116        :rtype: str
117        """
118        return self._brand_id
119
120    @brand_id.setter
121    def brand_id(self, brand_id):
122        """Sets the brand_id of this WebFormContent.
123
124
125        :param brand_id: The brand_id of this WebFormContent.  # noqa: E501
126        :type: str
127        """
128
129        self._brand_id = brand_id
130
131    @property
132    def templates(self):
133        """Gets the templates of this WebFormContent.  # noqa: E501
134
135        Optional template information that will be used to seed the form.  # noqa: E501
136
137        :return: The templates of this WebFormContent.  # noqa: E501
138        :rtype: list[TemplateProperties]
139        """
140        return self._templates
141
142    @templates.setter
143    def templates(self, templates):
144        """Sets the templates of this WebFormContent.
145
146        Optional template information that will be used to seed the form.  # noqa: E501
147
148        :param templates: The templates of this WebFormContent.  # noqa: E501
149        :type: list[TemplateProperties]
150        """
151
152        self._templates = templates
153
154    def to_dict(self):
155        """Returns the model properties as a dict"""
156        result = {}
157
158        for attr, _ in six.iteritems(self.swagger_types):
159            value = getattr(self, attr)
160            if isinstance(value, list):
161                result[attr] = list(map(
162                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
163                    value
164                ))
165            elif hasattr(value, "to_dict"):
166                result[attr] = value.to_dict()
167            elif isinstance(value, dict):
168                result[attr] = dict(map(
169                    lambda item: (item[0], item[1].to_dict())
170                    if hasattr(item[1], "to_dict") else item,
171                    value.items()
172                ))
173            else:
174                result[attr] = value
175        if issubclass(WebFormContent, dict):
176            for key, value in self.items():
177                result[key] = value
178
179        return result
180
181    def to_str(self):
182        """Returns the string representation of the model"""
183        return pprint.pformat(self.to_dict())
184
185    def __repr__(self):
186        """For `print` and `pprint`"""
187        return self.to_str()
188
189    def __eq__(self, other):
190        """Returns true if both objects are equal"""
191        if not isinstance(other, WebFormContent):
192            return False
193
194        return self.to_dict() == other.to_dict()
195
196    def __ne__(self, other):
197        """Returns true if both objects are not equal"""
198        if not isinstance(other, WebFormContent):
199            return True
200
201        return self.to_dict() != other.to_dict()
class WebFormContent:
 23class WebFormContent(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        'components': 'dict(str, dict(str, object))',
 38        'is_standalone': 'bool',
 39        'brand_id': 'str',
 40        'templates': 'list[TemplateProperties]'
 41    }
 42
 43    attribute_map = {
 44        'components': 'components',
 45        'is_standalone': 'isStandalone',
 46        'brand_id': 'brandId',
 47        'templates': 'templates'
 48    }
 49
 50    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 51        """WebFormContent - a model defined in Swagger"""  # noqa: E501
 52        if _configuration is None:
 53            _configuration = Configuration()
 54        self._configuration = _configuration
 55
 56        self._components = None
 57        self._is_standalone = None
 58        self._brand_id = None
 59        self._templates = None
 60        self.discriminator = None
 61
 62        setattr(self, "_{}".format('components'), kwargs.get('components', None))
 63        setattr(self, "_{}".format('is_standalone'), kwargs.get('is_standalone', None))
 64        setattr(self, "_{}".format('brand_id'), kwargs.get('brand_id', None))
 65        setattr(self, "_{}".format('templates'), kwargs.get('templates', None))
 66
 67    @property
 68    def components(self):
 69        """Gets the components of this WebFormContent.  # noqa: E501
 70
 71        Key/value dictionary of components that represent the form  # noqa: E501
 72
 73        :return: The components of this WebFormContent.  # noqa: E501
 74        :rtype: dict(str, dict(str, object))
 75        """
 76        return self._components
 77
 78    @components.setter
 79    def components(self, components):
 80        """Sets the components of this WebFormContent.
 81
 82        Key/value dictionary of components that represent the form  # noqa: E501
 83
 84        :param components: The components of this WebFormContent.  # noqa: E501
 85        :type: dict(str, dict(str, object))
 86        """
 87
 88        self._components = components
 89
 90    @property
 91    def is_standalone(self):
 92        """Gets the is_standalone of this WebFormContent.  # noqa: E501
 93
 94
 95        :return: The is_standalone of this WebFormContent.  # noqa: E501
 96        :rtype: bool
 97        """
 98        return self._is_standalone
 99
100    @is_standalone.setter
101    def is_standalone(self, is_standalone):
102        """Sets the is_standalone of this WebFormContent.
103
104
105        :param is_standalone: The is_standalone of this WebFormContent.  # noqa: E501
106        :type: bool
107        """
108
109        self._is_standalone = is_standalone
110
111    @property
112    def brand_id(self):
113        """Gets the brand_id of this WebFormContent.  # noqa: E501
114
115
116        :return: The brand_id of this WebFormContent.  # noqa: E501
117        :rtype: str
118        """
119        return self._brand_id
120
121    @brand_id.setter
122    def brand_id(self, brand_id):
123        """Sets the brand_id of this WebFormContent.
124
125
126        :param brand_id: The brand_id of this WebFormContent.  # noqa: E501
127        :type: str
128        """
129
130        self._brand_id = brand_id
131
132    @property
133    def templates(self):
134        """Gets the templates of this WebFormContent.  # noqa: E501
135
136        Optional template information that will be used to seed the form.  # noqa: E501
137
138        :return: The templates of this WebFormContent.  # noqa: E501
139        :rtype: list[TemplateProperties]
140        """
141        return self._templates
142
143    @templates.setter
144    def templates(self, templates):
145        """Sets the templates of this WebFormContent.
146
147        Optional template information that will be used to seed the form.  # noqa: E501
148
149        :param templates: The templates of this WebFormContent.  # noqa: E501
150        :type: list[TemplateProperties]
151        """
152
153        self._templates = templates
154
155    def to_dict(self):
156        """Returns the model properties as a dict"""
157        result = {}
158
159        for attr, _ in six.iteritems(self.swagger_types):
160            value = getattr(self, attr)
161            if isinstance(value, list):
162                result[attr] = list(map(
163                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
164                    value
165                ))
166            elif hasattr(value, "to_dict"):
167                result[attr] = value.to_dict()
168            elif isinstance(value, dict):
169                result[attr] = dict(map(
170                    lambda item: (item[0], item[1].to_dict())
171                    if hasattr(item[1], "to_dict") else item,
172                    value.items()
173                ))
174            else:
175                result[attr] = value
176        if issubclass(WebFormContent, dict):
177            for key, value in self.items():
178                result[key] = value
179
180        return result
181
182    def to_str(self):
183        """Returns the string representation of the model"""
184        return pprint.pformat(self.to_dict())
185
186    def __repr__(self):
187        """For `print` and `pprint`"""
188        return self.to_str()
189
190    def __eq__(self, other):
191        """Returns true if both objects are equal"""
192        if not isinstance(other, WebFormContent):
193            return False
194
195        return self.to_dict() == other.to_dict()
196
197    def __ne__(self, other):
198        """Returns true if both objects are not equal"""
199        if not isinstance(other, WebFormContent):
200            return True
201
202        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.

WebFormContent(_configuration=None, **kwargs)
50    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
51        """WebFormContent - a model defined in Swagger"""  # noqa: E501
52        if _configuration is None:
53            _configuration = Configuration()
54        self._configuration = _configuration
55
56        self._components = None
57        self._is_standalone = None
58        self._brand_id = None
59        self._templates = None
60        self.discriminator = None
61
62        setattr(self, "_{}".format('components'), kwargs.get('components', None))
63        setattr(self, "_{}".format('is_standalone'), kwargs.get('is_standalone', None))
64        setattr(self, "_{}".format('brand_id'), kwargs.get('brand_id', None))
65        setattr(self, "_{}".format('templates'), kwargs.get('templates', None))

WebFormContent - a model defined in Swagger

swagger_types = {'components': 'dict(str, dict(str, object))', 'is_standalone': 'bool', 'brand_id': 'str', 'templates': 'list[TemplateProperties]'}
attribute_map = {'components': 'components', 'is_standalone': 'isStandalone', 'brand_id': 'brandId', 'templates': 'templates'}
components

Gets the components of this WebFormContent. # noqa: E501

Key/value dictionary of components that represent the form # noqa: E501

Returns

The components of this WebFormContent. # noqa: E501

is_standalone

Gets the is_standalone of this WebFormContent. # noqa: E501

Returns

The is_standalone of this WebFormContent. # noqa: E501

brand_id

Gets the brand_id of this WebFormContent. # noqa: E501

Returns

The brand_id of this WebFormContent. # noqa: E501

templates

Gets the templates of this WebFormContent. # noqa: E501

Optional template information that will be used to seed the form. # noqa: E501

Returns

The templates of this WebFormContent. # noqa: E501

def to_dict(self)
155    def to_dict(self):
156        """Returns the model properties as a dict"""
157        result = {}
158
159        for attr, _ in six.iteritems(self.swagger_types):
160            value = getattr(self, attr)
161            if isinstance(value, list):
162                result[attr] = list(map(
163                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
164                    value
165                ))
166            elif hasattr(value, "to_dict"):
167                result[attr] = value.to_dict()
168            elif isinstance(value, dict):
169                result[attr] = dict(map(
170                    lambda item: (item[0], item[1].to_dict())
171                    if hasattr(item[1], "to_dict") else item,
172                    value.items()
173                ))
174            else:
175                result[attr] = value
176        if issubclass(WebFormContent, dict):
177            for key, value in self.items():
178                result[key] = value
179
180        return result

Returns the model properties as a dict

def to_str(self)
182    def to_str(self):
183        """Returns the string representation of the model"""
184        return pprint.pformat(self.to_dict())

Returns the string representation of the model