docusign_esign.models.document_html_definition

Docusign eSignature REST API

The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign. # noqa: E501

OpenAPI spec version: v2.1 Contact: devcenter@docusign.com Generated by: https://github.com/swagger-api/swagger-codegen.git

  1# coding: utf-8
  2
  3"""
  4    Docusign eSignature REST API
  5
  6    The Docusign eSignature REST API provides you with a powerful, convenient, and simple Web services API for interacting with Docusign.  # noqa: E501
  7
  8    OpenAPI spec version: v2.1
  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_esign.client.configuration import Configuration
 20
 21
 22class DocumentHtmlDefinition(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        'display_anchor_prefix': 'str',
 37        'display_anchors': 'list[DocumentHtmlDisplayAnchor]',
 38        'display_order': 'str',
 39        'display_page_number': 'str',
 40        'document_guid': 'str',
 41        'document_id': 'str',
 42        'header_label': 'str',
 43        'max_screen_width': 'str',
 44        'remove_empty_tags': 'str',
 45        'show_mobile_optimized_toggle': 'str',
 46        'source': 'str'
 47    }
 48
 49    attribute_map = {
 50        'display_anchor_prefix': 'displayAnchorPrefix',
 51        'display_anchors': 'displayAnchors',
 52        'display_order': 'displayOrder',
 53        'display_page_number': 'displayPageNumber',
 54        'document_guid': 'documentGuid',
 55        'document_id': 'documentId',
 56        'header_label': 'headerLabel',
 57        'max_screen_width': 'maxScreenWidth',
 58        'remove_empty_tags': 'removeEmptyTags',
 59        'show_mobile_optimized_toggle': 'showMobileOptimizedToggle',
 60        'source': 'source'
 61    }
 62
 63    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 64        """DocumentHtmlDefinition - a model defined in Swagger"""  # noqa: E501
 65        if _configuration is None:
 66            _configuration = Configuration()
 67        self._configuration = _configuration
 68
 69        self._display_anchor_prefix = None
 70        self._display_anchors = None
 71        self._display_order = None
 72        self._display_page_number = None
 73        self._document_guid = None
 74        self._document_id = None
 75        self._header_label = None
 76        self._max_screen_width = None
 77        self._remove_empty_tags = None
 78        self._show_mobile_optimized_toggle = None
 79        self._source = None
 80        self.discriminator = None
 81
 82        setattr(self, "_{}".format('display_anchor_prefix'), kwargs.get('display_anchor_prefix', None))
 83        setattr(self, "_{}".format('display_anchors'), kwargs.get('display_anchors', None))
 84        setattr(self, "_{}".format('display_order'), kwargs.get('display_order', None))
 85        setattr(self, "_{}".format('display_page_number'), kwargs.get('display_page_number', None))
 86        setattr(self, "_{}".format('document_guid'), kwargs.get('document_guid', None))
 87        setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None))
 88        setattr(self, "_{}".format('header_label'), kwargs.get('header_label', None))
 89        setattr(self, "_{}".format('max_screen_width'), kwargs.get('max_screen_width', None))
 90        setattr(self, "_{}".format('remove_empty_tags'), kwargs.get('remove_empty_tags', None))
 91        setattr(self, "_{}".format('show_mobile_optimized_toggle'), kwargs.get('show_mobile_optimized_toggle', None))
 92        setattr(self, "_{}".format('source'), kwargs.get('source', None))
 93
 94    @property
 95    def display_anchor_prefix(self):
 96        """Gets the display_anchor_prefix of this DocumentHtmlDefinition.  # noqa: E501
 97
 98          # noqa: E501
 99
100        :return: The display_anchor_prefix of this DocumentHtmlDefinition.  # noqa: E501
101        :rtype: str
102        """
103        return self._display_anchor_prefix
104
105    @display_anchor_prefix.setter
106    def display_anchor_prefix(self, display_anchor_prefix):
107        """Sets the display_anchor_prefix of this DocumentHtmlDefinition.
108
109          # noqa: E501
110
111        :param display_anchor_prefix: The display_anchor_prefix of this DocumentHtmlDefinition.  # noqa: E501
112        :type: str
113        """
114
115        self._display_anchor_prefix = display_anchor_prefix
116
117    @property
118    def display_anchors(self):
119        """Gets the display_anchors of this DocumentHtmlDefinition.  # noqa: E501
120
121          # noqa: E501
122
123        :return: The display_anchors of this DocumentHtmlDefinition.  # noqa: E501
124        :rtype: list[DocumentHtmlDisplayAnchor]
125        """
126        return self._display_anchors
127
128    @display_anchors.setter
129    def display_anchors(self, display_anchors):
130        """Sets the display_anchors of this DocumentHtmlDefinition.
131
132          # noqa: E501
133
134        :param display_anchors: The display_anchors of this DocumentHtmlDefinition.  # noqa: E501
135        :type: list[DocumentHtmlDisplayAnchor]
136        """
137
138        self._display_anchors = display_anchors
139
140    @property
141    def display_order(self):
142        """Gets the display_order of this DocumentHtmlDefinition.  # noqa: E501
143
144          # noqa: E501
145
146        :return: The display_order of this DocumentHtmlDefinition.  # noqa: E501
147        :rtype: str
148        """
149        return self._display_order
150
151    @display_order.setter
152    def display_order(self, display_order):
153        """Sets the display_order of this DocumentHtmlDefinition.
154
155          # noqa: E501
156
157        :param display_order: The display_order of this DocumentHtmlDefinition.  # noqa: E501
158        :type: str
159        """
160
161        self._display_order = display_order
162
163    @property
164    def display_page_number(self):
165        """Gets the display_page_number of this DocumentHtmlDefinition.  # noqa: E501
166
167          # noqa: E501
168
169        :return: The display_page_number of this DocumentHtmlDefinition.  # noqa: E501
170        :rtype: str
171        """
172        return self._display_page_number
173
174    @display_page_number.setter
175    def display_page_number(self, display_page_number):
176        """Sets the display_page_number of this DocumentHtmlDefinition.
177
178          # noqa: E501
179
180        :param display_page_number: The display_page_number of this DocumentHtmlDefinition.  # noqa: E501
181        :type: str
182        """
183
184        self._display_page_number = display_page_number
185
186    @property
187    def document_guid(self):
188        """Gets the document_guid of this DocumentHtmlDefinition.  # noqa: E501
189
190          # noqa: E501
191
192        :return: The document_guid of this DocumentHtmlDefinition.  # noqa: E501
193        :rtype: str
194        """
195        return self._document_guid
196
197    @document_guid.setter
198    def document_guid(self, document_guid):
199        """Sets the document_guid of this DocumentHtmlDefinition.
200
201          # noqa: E501
202
203        :param document_guid: The document_guid of this DocumentHtmlDefinition.  # noqa: E501
204        :type: str
205        """
206
207        self._document_guid = document_guid
208
209    @property
210    def document_id(self):
211        """Gets the document_id of this DocumentHtmlDefinition.  # noqa: E501
212
213        Specifies the document ID number that the tab is placed on. This must refer to an existing Document's ID attribute.  # noqa: E501
214
215        :return: The document_id of this DocumentHtmlDefinition.  # noqa: E501
216        :rtype: str
217        """
218        return self._document_id
219
220    @document_id.setter
221    def document_id(self, document_id):
222        """Sets the document_id of this DocumentHtmlDefinition.
223
224        Specifies the document ID number that the tab is placed on. This must refer to an existing Document's ID attribute.  # noqa: E501
225
226        :param document_id: The document_id of this DocumentHtmlDefinition.  # noqa: E501
227        :type: str
228        """
229
230        self._document_id = document_id
231
232    @property
233    def header_label(self):
234        """Gets the header_label of this DocumentHtmlDefinition.  # noqa: E501
235
236          # noqa: E501
237
238        :return: The header_label of this DocumentHtmlDefinition.  # noqa: E501
239        :rtype: str
240        """
241        return self._header_label
242
243    @header_label.setter
244    def header_label(self, header_label):
245        """Sets the header_label of this DocumentHtmlDefinition.
246
247          # noqa: E501
248
249        :param header_label: The header_label of this DocumentHtmlDefinition.  # noqa: E501
250        :type: str
251        """
252
253        self._header_label = header_label
254
255    @property
256    def max_screen_width(self):
257        """Gets the max_screen_width of this DocumentHtmlDefinition.  # noqa: E501
258
259          # noqa: E501
260
261        :return: The max_screen_width of this DocumentHtmlDefinition.  # noqa: E501
262        :rtype: str
263        """
264        return self._max_screen_width
265
266    @max_screen_width.setter
267    def max_screen_width(self, max_screen_width):
268        """Sets the max_screen_width of this DocumentHtmlDefinition.
269
270          # noqa: E501
271
272        :param max_screen_width: The max_screen_width of this DocumentHtmlDefinition.  # noqa: E501
273        :type: str
274        """
275
276        self._max_screen_width = max_screen_width
277
278    @property
279    def remove_empty_tags(self):
280        """Gets the remove_empty_tags of this DocumentHtmlDefinition.  # noqa: E501
281
282          # noqa: E501
283
284        :return: The remove_empty_tags of this DocumentHtmlDefinition.  # noqa: E501
285        :rtype: str
286        """
287        return self._remove_empty_tags
288
289    @remove_empty_tags.setter
290    def remove_empty_tags(self, remove_empty_tags):
291        """Sets the remove_empty_tags of this DocumentHtmlDefinition.
292
293          # noqa: E501
294
295        :param remove_empty_tags: The remove_empty_tags of this DocumentHtmlDefinition.  # noqa: E501
296        :type: str
297        """
298
299        self._remove_empty_tags = remove_empty_tags
300
301    @property
302    def show_mobile_optimized_toggle(self):
303        """Gets the show_mobile_optimized_toggle of this DocumentHtmlDefinition.  # noqa: E501
304
305          # noqa: E501
306
307        :return: The show_mobile_optimized_toggle of this DocumentHtmlDefinition.  # noqa: E501
308        :rtype: str
309        """
310        return self._show_mobile_optimized_toggle
311
312    @show_mobile_optimized_toggle.setter
313    def show_mobile_optimized_toggle(self, show_mobile_optimized_toggle):
314        """Sets the show_mobile_optimized_toggle of this DocumentHtmlDefinition.
315
316          # noqa: E501
317
318        :param show_mobile_optimized_toggle: The show_mobile_optimized_toggle of this DocumentHtmlDefinition.  # noqa: E501
319        :type: str
320        """
321
322        self._show_mobile_optimized_toggle = show_mobile_optimized_toggle
323
324    @property
325    def source(self):
326        """Gets the source of this DocumentHtmlDefinition.  # noqa: E501
327
328          # noqa: E501
329
330        :return: The source of this DocumentHtmlDefinition.  # noqa: E501
331        :rtype: str
332        """
333        return self._source
334
335    @source.setter
336    def source(self, source):
337        """Sets the source of this DocumentHtmlDefinition.
338
339          # noqa: E501
340
341        :param source: The source of this DocumentHtmlDefinition.  # noqa: E501
342        :type: str
343        """
344
345        self._source = source
346
347    def to_dict(self):
348        """Returns the model properties as a dict"""
349        result = {}
350
351        for attr, _ in six.iteritems(self.swagger_types):
352            value = getattr(self, attr)
353            if isinstance(value, list):
354                result[attr] = list(map(
355                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
356                    value
357                ))
358            elif hasattr(value, "to_dict"):
359                result[attr] = value.to_dict()
360            elif isinstance(value, dict):
361                result[attr] = dict(map(
362                    lambda item: (item[0], item[1].to_dict())
363                    if hasattr(item[1], "to_dict") else item,
364                    value.items()
365                ))
366            else:
367                result[attr] = value
368        if issubclass(DocumentHtmlDefinition, dict):
369            for key, value in self.items():
370                result[key] = value
371
372        return result
373
374    def to_str(self):
375        """Returns the string representation of the model"""
376        return pprint.pformat(self.to_dict())
377
378    def __repr__(self):
379        """For `print` and `pprint`"""
380        return self.to_str()
381
382    def __eq__(self, other):
383        """Returns true if both objects are equal"""
384        if not isinstance(other, DocumentHtmlDefinition):
385            return False
386
387        return self.to_dict() == other.to_dict()
388
389    def __ne__(self, other):
390        """Returns true if both objects are not equal"""
391        if not isinstance(other, DocumentHtmlDefinition):
392            return True
393
394        return self.to_dict() != other.to_dict()
class DocumentHtmlDefinition:
 23class DocumentHtmlDefinition(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        'display_anchor_prefix': 'str',
 38        'display_anchors': 'list[DocumentHtmlDisplayAnchor]',
 39        'display_order': 'str',
 40        'display_page_number': 'str',
 41        'document_guid': 'str',
 42        'document_id': 'str',
 43        'header_label': 'str',
 44        'max_screen_width': 'str',
 45        'remove_empty_tags': 'str',
 46        'show_mobile_optimized_toggle': 'str',
 47        'source': 'str'
 48    }
 49
 50    attribute_map = {
 51        'display_anchor_prefix': 'displayAnchorPrefix',
 52        'display_anchors': 'displayAnchors',
 53        'display_order': 'displayOrder',
 54        'display_page_number': 'displayPageNumber',
 55        'document_guid': 'documentGuid',
 56        'document_id': 'documentId',
 57        'header_label': 'headerLabel',
 58        'max_screen_width': 'maxScreenWidth',
 59        'remove_empty_tags': 'removeEmptyTags',
 60        'show_mobile_optimized_toggle': 'showMobileOptimizedToggle',
 61        'source': 'source'
 62    }
 63
 64    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 65        """DocumentHtmlDefinition - a model defined in Swagger"""  # noqa: E501
 66        if _configuration is None:
 67            _configuration = Configuration()
 68        self._configuration = _configuration
 69
 70        self._display_anchor_prefix = None
 71        self._display_anchors = None
 72        self._display_order = None
 73        self._display_page_number = None
 74        self._document_guid = None
 75        self._document_id = None
 76        self._header_label = None
 77        self._max_screen_width = None
 78        self._remove_empty_tags = None
 79        self._show_mobile_optimized_toggle = None
 80        self._source = None
 81        self.discriminator = None
 82
 83        setattr(self, "_{}".format('display_anchor_prefix'), kwargs.get('display_anchor_prefix', None))
 84        setattr(self, "_{}".format('display_anchors'), kwargs.get('display_anchors', None))
 85        setattr(self, "_{}".format('display_order'), kwargs.get('display_order', None))
 86        setattr(self, "_{}".format('display_page_number'), kwargs.get('display_page_number', None))
 87        setattr(self, "_{}".format('document_guid'), kwargs.get('document_guid', None))
 88        setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None))
 89        setattr(self, "_{}".format('header_label'), kwargs.get('header_label', None))
 90        setattr(self, "_{}".format('max_screen_width'), kwargs.get('max_screen_width', None))
 91        setattr(self, "_{}".format('remove_empty_tags'), kwargs.get('remove_empty_tags', None))
 92        setattr(self, "_{}".format('show_mobile_optimized_toggle'), kwargs.get('show_mobile_optimized_toggle', None))
 93        setattr(self, "_{}".format('source'), kwargs.get('source', None))
 94
 95    @property
 96    def display_anchor_prefix(self):
 97        """Gets the display_anchor_prefix of this DocumentHtmlDefinition.  # noqa: E501
 98
 99          # noqa: E501
100
101        :return: The display_anchor_prefix of this DocumentHtmlDefinition.  # noqa: E501
102        :rtype: str
103        """
104        return self._display_anchor_prefix
105
106    @display_anchor_prefix.setter
107    def display_anchor_prefix(self, display_anchor_prefix):
108        """Sets the display_anchor_prefix of this DocumentHtmlDefinition.
109
110          # noqa: E501
111
112        :param display_anchor_prefix: The display_anchor_prefix of this DocumentHtmlDefinition.  # noqa: E501
113        :type: str
114        """
115
116        self._display_anchor_prefix = display_anchor_prefix
117
118    @property
119    def display_anchors(self):
120        """Gets the display_anchors of this DocumentHtmlDefinition.  # noqa: E501
121
122          # noqa: E501
123
124        :return: The display_anchors of this DocumentHtmlDefinition.  # noqa: E501
125        :rtype: list[DocumentHtmlDisplayAnchor]
126        """
127        return self._display_anchors
128
129    @display_anchors.setter
130    def display_anchors(self, display_anchors):
131        """Sets the display_anchors of this DocumentHtmlDefinition.
132
133          # noqa: E501
134
135        :param display_anchors: The display_anchors of this DocumentHtmlDefinition.  # noqa: E501
136        :type: list[DocumentHtmlDisplayAnchor]
137        """
138
139        self._display_anchors = display_anchors
140
141    @property
142    def display_order(self):
143        """Gets the display_order of this DocumentHtmlDefinition.  # noqa: E501
144
145          # noqa: E501
146
147        :return: The display_order of this DocumentHtmlDefinition.  # noqa: E501
148        :rtype: str
149        """
150        return self._display_order
151
152    @display_order.setter
153    def display_order(self, display_order):
154        """Sets the display_order of this DocumentHtmlDefinition.
155
156          # noqa: E501
157
158        :param display_order: The display_order of this DocumentHtmlDefinition.  # noqa: E501
159        :type: str
160        """
161
162        self._display_order = display_order
163
164    @property
165    def display_page_number(self):
166        """Gets the display_page_number of this DocumentHtmlDefinition.  # noqa: E501
167
168          # noqa: E501
169
170        :return: The display_page_number of this DocumentHtmlDefinition.  # noqa: E501
171        :rtype: str
172        """
173        return self._display_page_number
174
175    @display_page_number.setter
176    def display_page_number(self, display_page_number):
177        """Sets the display_page_number of this DocumentHtmlDefinition.
178
179          # noqa: E501
180
181        :param display_page_number: The display_page_number of this DocumentHtmlDefinition.  # noqa: E501
182        :type: str
183        """
184
185        self._display_page_number = display_page_number
186
187    @property
188    def document_guid(self):
189        """Gets the document_guid of this DocumentHtmlDefinition.  # noqa: E501
190
191          # noqa: E501
192
193        :return: The document_guid of this DocumentHtmlDefinition.  # noqa: E501
194        :rtype: str
195        """
196        return self._document_guid
197
198    @document_guid.setter
199    def document_guid(self, document_guid):
200        """Sets the document_guid of this DocumentHtmlDefinition.
201
202          # noqa: E501
203
204        :param document_guid: The document_guid of this DocumentHtmlDefinition.  # noqa: E501
205        :type: str
206        """
207
208        self._document_guid = document_guid
209
210    @property
211    def document_id(self):
212        """Gets the document_id of this DocumentHtmlDefinition.  # noqa: E501
213
214        Specifies the document ID number that the tab is placed on. This must refer to an existing Document's ID attribute.  # noqa: E501
215
216        :return: The document_id of this DocumentHtmlDefinition.  # noqa: E501
217        :rtype: str
218        """
219        return self._document_id
220
221    @document_id.setter
222    def document_id(self, document_id):
223        """Sets the document_id of this DocumentHtmlDefinition.
224
225        Specifies the document ID number that the tab is placed on. This must refer to an existing Document's ID attribute.  # noqa: E501
226
227        :param document_id: The document_id of this DocumentHtmlDefinition.  # noqa: E501
228        :type: str
229        """
230
231        self._document_id = document_id
232
233    @property
234    def header_label(self):
235        """Gets the header_label of this DocumentHtmlDefinition.  # noqa: E501
236
237          # noqa: E501
238
239        :return: The header_label of this DocumentHtmlDefinition.  # noqa: E501
240        :rtype: str
241        """
242        return self._header_label
243
244    @header_label.setter
245    def header_label(self, header_label):
246        """Sets the header_label of this DocumentHtmlDefinition.
247
248          # noqa: E501
249
250        :param header_label: The header_label of this DocumentHtmlDefinition.  # noqa: E501
251        :type: str
252        """
253
254        self._header_label = header_label
255
256    @property
257    def max_screen_width(self):
258        """Gets the max_screen_width of this DocumentHtmlDefinition.  # noqa: E501
259
260          # noqa: E501
261
262        :return: The max_screen_width of this DocumentHtmlDefinition.  # noqa: E501
263        :rtype: str
264        """
265        return self._max_screen_width
266
267    @max_screen_width.setter
268    def max_screen_width(self, max_screen_width):
269        """Sets the max_screen_width of this DocumentHtmlDefinition.
270
271          # noqa: E501
272
273        :param max_screen_width: The max_screen_width of this DocumentHtmlDefinition.  # noqa: E501
274        :type: str
275        """
276
277        self._max_screen_width = max_screen_width
278
279    @property
280    def remove_empty_tags(self):
281        """Gets the remove_empty_tags of this DocumentHtmlDefinition.  # noqa: E501
282
283          # noqa: E501
284
285        :return: The remove_empty_tags of this DocumentHtmlDefinition.  # noqa: E501
286        :rtype: str
287        """
288        return self._remove_empty_tags
289
290    @remove_empty_tags.setter
291    def remove_empty_tags(self, remove_empty_tags):
292        """Sets the remove_empty_tags of this DocumentHtmlDefinition.
293
294          # noqa: E501
295
296        :param remove_empty_tags: The remove_empty_tags of this DocumentHtmlDefinition.  # noqa: E501
297        :type: str
298        """
299
300        self._remove_empty_tags = remove_empty_tags
301
302    @property
303    def show_mobile_optimized_toggle(self):
304        """Gets the show_mobile_optimized_toggle of this DocumentHtmlDefinition.  # noqa: E501
305
306          # noqa: E501
307
308        :return: The show_mobile_optimized_toggle of this DocumentHtmlDefinition.  # noqa: E501
309        :rtype: str
310        """
311        return self._show_mobile_optimized_toggle
312
313    @show_mobile_optimized_toggle.setter
314    def show_mobile_optimized_toggle(self, show_mobile_optimized_toggle):
315        """Sets the show_mobile_optimized_toggle of this DocumentHtmlDefinition.
316
317          # noqa: E501
318
319        :param show_mobile_optimized_toggle: The show_mobile_optimized_toggle of this DocumentHtmlDefinition.  # noqa: E501
320        :type: str
321        """
322
323        self._show_mobile_optimized_toggle = show_mobile_optimized_toggle
324
325    @property
326    def source(self):
327        """Gets the source of this DocumentHtmlDefinition.  # noqa: E501
328
329          # noqa: E501
330
331        :return: The source of this DocumentHtmlDefinition.  # noqa: E501
332        :rtype: str
333        """
334        return self._source
335
336    @source.setter
337    def source(self, source):
338        """Sets the source of this DocumentHtmlDefinition.
339
340          # noqa: E501
341
342        :param source: The source of this DocumentHtmlDefinition.  # noqa: E501
343        :type: str
344        """
345
346        self._source = source
347
348    def to_dict(self):
349        """Returns the model properties as a dict"""
350        result = {}
351
352        for attr, _ in six.iteritems(self.swagger_types):
353            value = getattr(self, attr)
354            if isinstance(value, list):
355                result[attr] = list(map(
356                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
357                    value
358                ))
359            elif hasattr(value, "to_dict"):
360                result[attr] = value.to_dict()
361            elif isinstance(value, dict):
362                result[attr] = dict(map(
363                    lambda item: (item[0], item[1].to_dict())
364                    if hasattr(item[1], "to_dict") else item,
365                    value.items()
366                ))
367            else:
368                result[attr] = value
369        if issubclass(DocumentHtmlDefinition, dict):
370            for key, value in self.items():
371                result[key] = value
372
373        return result
374
375    def to_str(self):
376        """Returns the string representation of the model"""
377        return pprint.pformat(self.to_dict())
378
379    def __repr__(self):
380        """For `print` and `pprint`"""
381        return self.to_str()
382
383    def __eq__(self, other):
384        """Returns true if both objects are equal"""
385        if not isinstance(other, DocumentHtmlDefinition):
386            return False
387
388        return self.to_dict() == other.to_dict()
389
390    def __ne__(self, other):
391        """Returns true if both objects are not equal"""
392        if not isinstance(other, DocumentHtmlDefinition):
393            return True
394
395        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.

DocumentHtmlDefinition(_configuration=None, **kwargs)
64    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
65        """DocumentHtmlDefinition - a model defined in Swagger"""  # noqa: E501
66        if _configuration is None:
67            _configuration = Configuration()
68        self._configuration = _configuration
69
70        self._display_anchor_prefix = None
71        self._display_anchors = None
72        self._display_order = None
73        self._display_page_number = None
74        self._document_guid = None
75        self._document_id = None
76        self._header_label = None
77        self._max_screen_width = None
78        self._remove_empty_tags = None
79        self._show_mobile_optimized_toggle = None
80        self._source = None
81        self.discriminator = None
82
83        setattr(self, "_{}".format('display_anchor_prefix'), kwargs.get('display_anchor_prefix', None))
84        setattr(self, "_{}".format('display_anchors'), kwargs.get('display_anchors', None))
85        setattr(self, "_{}".format('display_order'), kwargs.get('display_order', None))
86        setattr(self, "_{}".format('display_page_number'), kwargs.get('display_page_number', None))
87        setattr(self, "_{}".format('document_guid'), kwargs.get('document_guid', None))
88        setattr(self, "_{}".format('document_id'), kwargs.get('document_id', None))
89        setattr(self, "_{}".format('header_label'), kwargs.get('header_label', None))
90        setattr(self, "_{}".format('max_screen_width'), kwargs.get('max_screen_width', None))
91        setattr(self, "_{}".format('remove_empty_tags'), kwargs.get('remove_empty_tags', None))
92        setattr(self, "_{}".format('show_mobile_optimized_toggle'), kwargs.get('show_mobile_optimized_toggle', None))
93        setattr(self, "_{}".format('source'), kwargs.get('source', None))

DocumentHtmlDefinition - a model defined in Swagger

swagger_types = {'display_anchor_prefix': 'str', 'display_anchors': 'list[DocumentHtmlDisplayAnchor]', 'display_order': 'str', 'display_page_number': 'str', 'document_guid': 'str', 'document_id': 'str', 'header_label': 'str', 'max_screen_width': 'str', 'remove_empty_tags': 'str', 'show_mobile_optimized_toggle': 'str', 'source': 'str'}
attribute_map = {'display_anchor_prefix': 'displayAnchorPrefix', 'display_anchors': 'displayAnchors', 'display_order': 'displayOrder', 'display_page_number': 'displayPageNumber', 'document_guid': 'documentGuid', 'document_id': 'documentId', 'header_label': 'headerLabel', 'max_screen_width': 'maxScreenWidth', 'remove_empty_tags': 'removeEmptyTags', 'show_mobile_optimized_toggle': 'showMobileOptimizedToggle', 'source': 'source'}
display_anchor_prefix

Gets the display_anchor_prefix of this DocumentHtmlDefinition. # noqa: E501

# noqa: E501

Returns

The display_anchor_prefix of this DocumentHtmlDefinition. # noqa: E501

display_anchors

Gets the display_anchors of this DocumentHtmlDefinition. # noqa: E501

# noqa: E501

Returns

The display_anchors of this DocumentHtmlDefinition. # noqa: E501

display_order

Gets the display_order of this DocumentHtmlDefinition. # noqa: E501

# noqa: E501

Returns

The display_order of this DocumentHtmlDefinition. # noqa: E501

display_page_number

Gets the display_page_number of this DocumentHtmlDefinition. # noqa: E501

# noqa: E501

Returns

The display_page_number of this DocumentHtmlDefinition. # noqa: E501

document_guid

Gets the document_guid of this DocumentHtmlDefinition. # noqa: E501

# noqa: E501

Returns

The document_guid of this DocumentHtmlDefinition. # noqa: E501

document_id

Gets the document_id of this DocumentHtmlDefinition. # noqa: E501

Specifies the document ID number that the tab is placed on. This must refer to an existing Document's ID attribute. # noqa: E501

Returns

The document_id of this DocumentHtmlDefinition. # noqa: E501

header_label

Gets the header_label of this DocumentHtmlDefinition. # noqa: E501

# noqa: E501

Returns

The header_label of this DocumentHtmlDefinition. # noqa: E501

max_screen_width

Gets the max_screen_width of this DocumentHtmlDefinition. # noqa: E501

# noqa: E501

Returns

The max_screen_width of this DocumentHtmlDefinition. # noqa: E501

remove_empty_tags

Gets the remove_empty_tags of this DocumentHtmlDefinition. # noqa: E501

# noqa: E501

Returns

The remove_empty_tags of this DocumentHtmlDefinition. # noqa: E501

show_mobile_optimized_toggle

Gets the show_mobile_optimized_toggle of this DocumentHtmlDefinition. # noqa: E501

# noqa: E501

Returns

The show_mobile_optimized_toggle of this DocumentHtmlDefinition. # noqa: E501

source

Gets the source of this DocumentHtmlDefinition. # noqa: E501

# noqa: E501

Returns

The source of this DocumentHtmlDefinition. # noqa: E501

def to_dict(self)
348    def to_dict(self):
349        """Returns the model properties as a dict"""
350        result = {}
351
352        for attr, _ in six.iteritems(self.swagger_types):
353            value = getattr(self, attr)
354            if isinstance(value, list):
355                result[attr] = list(map(
356                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
357                    value
358                ))
359            elif hasattr(value, "to_dict"):
360                result[attr] = value.to_dict()
361            elif isinstance(value, dict):
362                result[attr] = dict(map(
363                    lambda item: (item[0], item[1].to_dict())
364                    if hasattr(item[1], "to_dict") else item,
365                    value.items()
366                ))
367            else:
368                result[attr] = value
369        if issubclass(DocumentHtmlDefinition, dict):
370            for key, value in self.items():
371                result[key] = value
372
373        return result

Returns the model properties as a dict

def to_str(self)
375    def to_str(self):
376        """Returns the string representation of the model"""
377        return pprint.pformat(self.to_dict())

Returns the string representation of the model