docusign_esign.models.document_html_display_anchor

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 DocumentHtmlDisplayAnchor(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        'case_sensitive': 'bool',
 37        'display_settings': 'DocumentHtmlDisplaySettings',
 38        'end_anchor': 'str',
 39        'remove_end_anchor': 'bool',
 40        'remove_start_anchor': 'bool',
 41        'start_anchor': 'str'
 42    }
 43
 44    attribute_map = {
 45        'case_sensitive': 'caseSensitive',
 46        'display_settings': 'displaySettings',
 47        'end_anchor': 'endAnchor',
 48        'remove_end_anchor': 'removeEndAnchor',
 49        'remove_start_anchor': 'removeStartAnchor',
 50        'start_anchor': 'startAnchor'
 51    }
 52
 53    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 54        """DocumentHtmlDisplayAnchor - a model defined in Swagger"""  # noqa: E501
 55        if _configuration is None:
 56            _configuration = Configuration()
 57        self._configuration = _configuration
 58
 59        self._case_sensitive = None
 60        self._display_settings = None
 61        self._end_anchor = None
 62        self._remove_end_anchor = None
 63        self._remove_start_anchor = None
 64        self._start_anchor = None
 65        self.discriminator = None
 66
 67        setattr(self, "_{}".format('case_sensitive'), kwargs.get('case_sensitive', None))
 68        setattr(self, "_{}".format('display_settings'), kwargs.get('display_settings', None))
 69        setattr(self, "_{}".format('end_anchor'), kwargs.get('end_anchor', None))
 70        setattr(self, "_{}".format('remove_end_anchor'), kwargs.get('remove_end_anchor', None))
 71        setattr(self, "_{}".format('remove_start_anchor'), kwargs.get('remove_start_anchor', None))
 72        setattr(self, "_{}".format('start_anchor'), kwargs.get('start_anchor', None))
 73
 74    @property
 75    def case_sensitive(self):
 76        """Gets the case_sensitive of this DocumentHtmlDisplayAnchor.  # noqa: E501
 77
 78          # noqa: E501
 79
 80        :return: The case_sensitive of this DocumentHtmlDisplayAnchor.  # noqa: E501
 81        :rtype: bool
 82        """
 83        return self._case_sensitive
 84
 85    @case_sensitive.setter
 86    def case_sensitive(self, case_sensitive):
 87        """Sets the case_sensitive of this DocumentHtmlDisplayAnchor.
 88
 89          # noqa: E501
 90
 91        :param case_sensitive: The case_sensitive of this DocumentHtmlDisplayAnchor.  # noqa: E501
 92        :type: bool
 93        """
 94
 95        self._case_sensitive = case_sensitive
 96
 97    @property
 98    def display_settings(self):
 99        """Gets the display_settings of this DocumentHtmlDisplayAnchor.  # noqa: E501
100
101        This object defines how the HTML section inside the `startAnchor` and `endAnchor` displays.  # noqa: E501
102
103        :return: The display_settings of this DocumentHtmlDisplayAnchor.  # noqa: E501
104        :rtype: DocumentHtmlDisplaySettings
105        """
106        return self._display_settings
107
108    @display_settings.setter
109    def display_settings(self, display_settings):
110        """Sets the display_settings of this DocumentHtmlDisplayAnchor.
111
112        This object defines how the HTML section inside the `startAnchor` and `endAnchor` displays.  # noqa: E501
113
114        :param display_settings: The display_settings of this DocumentHtmlDisplayAnchor.  # noqa: E501
115        :type: DocumentHtmlDisplaySettings
116        """
117
118        self._display_settings = display_settings
119
120    @property
121    def end_anchor(self):
122        """Gets the end_anchor of this DocumentHtmlDisplayAnchor.  # noqa: E501
123
124          # noqa: E501
125
126        :return: The end_anchor of this DocumentHtmlDisplayAnchor.  # noqa: E501
127        :rtype: str
128        """
129        return self._end_anchor
130
131    @end_anchor.setter
132    def end_anchor(self, end_anchor):
133        """Sets the end_anchor of this DocumentHtmlDisplayAnchor.
134
135          # noqa: E501
136
137        :param end_anchor: The end_anchor of this DocumentHtmlDisplayAnchor.  # noqa: E501
138        :type: str
139        """
140
141        self._end_anchor = end_anchor
142
143    @property
144    def remove_end_anchor(self):
145        """Gets the remove_end_anchor of this DocumentHtmlDisplayAnchor.  # noqa: E501
146
147          # noqa: E501
148
149        :return: The remove_end_anchor of this DocumentHtmlDisplayAnchor.  # noqa: E501
150        :rtype: bool
151        """
152        return self._remove_end_anchor
153
154    @remove_end_anchor.setter
155    def remove_end_anchor(self, remove_end_anchor):
156        """Sets the remove_end_anchor of this DocumentHtmlDisplayAnchor.
157
158          # noqa: E501
159
160        :param remove_end_anchor: The remove_end_anchor of this DocumentHtmlDisplayAnchor.  # noqa: E501
161        :type: bool
162        """
163
164        self._remove_end_anchor = remove_end_anchor
165
166    @property
167    def remove_start_anchor(self):
168        """Gets the remove_start_anchor of this DocumentHtmlDisplayAnchor.  # noqa: E501
169
170          # noqa: E501
171
172        :return: The remove_start_anchor of this DocumentHtmlDisplayAnchor.  # noqa: E501
173        :rtype: bool
174        """
175        return self._remove_start_anchor
176
177    @remove_start_anchor.setter
178    def remove_start_anchor(self, remove_start_anchor):
179        """Sets the remove_start_anchor of this DocumentHtmlDisplayAnchor.
180
181          # noqa: E501
182
183        :param remove_start_anchor: The remove_start_anchor of this DocumentHtmlDisplayAnchor.  # noqa: E501
184        :type: bool
185        """
186
187        self._remove_start_anchor = remove_start_anchor
188
189    @property
190    def start_anchor(self):
191        """Gets the start_anchor of this DocumentHtmlDisplayAnchor.  # noqa: E501
192
193          # noqa: E501
194
195        :return: The start_anchor of this DocumentHtmlDisplayAnchor.  # noqa: E501
196        :rtype: str
197        """
198        return self._start_anchor
199
200    @start_anchor.setter
201    def start_anchor(self, start_anchor):
202        """Sets the start_anchor of this DocumentHtmlDisplayAnchor.
203
204          # noqa: E501
205
206        :param start_anchor: The start_anchor of this DocumentHtmlDisplayAnchor.  # noqa: E501
207        :type: str
208        """
209
210        self._start_anchor = start_anchor
211
212    def to_dict(self):
213        """Returns the model properties as a dict"""
214        result = {}
215
216        for attr, _ in six.iteritems(self.swagger_types):
217            value = getattr(self, attr)
218            if isinstance(value, list):
219                result[attr] = list(map(
220                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
221                    value
222                ))
223            elif hasattr(value, "to_dict"):
224                result[attr] = value.to_dict()
225            elif isinstance(value, dict):
226                result[attr] = dict(map(
227                    lambda item: (item[0], item[1].to_dict())
228                    if hasattr(item[1], "to_dict") else item,
229                    value.items()
230                ))
231            else:
232                result[attr] = value
233        if issubclass(DocumentHtmlDisplayAnchor, dict):
234            for key, value in self.items():
235                result[key] = value
236
237        return result
238
239    def to_str(self):
240        """Returns the string representation of the model"""
241        return pprint.pformat(self.to_dict())
242
243    def __repr__(self):
244        """For `print` and `pprint`"""
245        return self.to_str()
246
247    def __eq__(self, other):
248        """Returns true if both objects are equal"""
249        if not isinstance(other, DocumentHtmlDisplayAnchor):
250            return False
251
252        return self.to_dict() == other.to_dict()
253
254    def __ne__(self, other):
255        """Returns true if both objects are not equal"""
256        if not isinstance(other, DocumentHtmlDisplayAnchor):
257            return True
258
259        return self.to_dict() != other.to_dict()
class DocumentHtmlDisplayAnchor:
 23class DocumentHtmlDisplayAnchor(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        'case_sensitive': 'bool',
 38        'display_settings': 'DocumentHtmlDisplaySettings',
 39        'end_anchor': 'str',
 40        'remove_end_anchor': 'bool',
 41        'remove_start_anchor': 'bool',
 42        'start_anchor': 'str'
 43    }
 44
 45    attribute_map = {
 46        'case_sensitive': 'caseSensitive',
 47        'display_settings': 'displaySettings',
 48        'end_anchor': 'endAnchor',
 49        'remove_end_anchor': 'removeEndAnchor',
 50        'remove_start_anchor': 'removeStartAnchor',
 51        'start_anchor': 'startAnchor'
 52    }
 53
 54    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 55        """DocumentHtmlDisplayAnchor - a model defined in Swagger"""  # noqa: E501
 56        if _configuration is None:
 57            _configuration = Configuration()
 58        self._configuration = _configuration
 59
 60        self._case_sensitive = None
 61        self._display_settings = None
 62        self._end_anchor = None
 63        self._remove_end_anchor = None
 64        self._remove_start_anchor = None
 65        self._start_anchor = None
 66        self.discriminator = None
 67
 68        setattr(self, "_{}".format('case_sensitive'), kwargs.get('case_sensitive', None))
 69        setattr(self, "_{}".format('display_settings'), kwargs.get('display_settings', None))
 70        setattr(self, "_{}".format('end_anchor'), kwargs.get('end_anchor', None))
 71        setattr(self, "_{}".format('remove_end_anchor'), kwargs.get('remove_end_anchor', None))
 72        setattr(self, "_{}".format('remove_start_anchor'), kwargs.get('remove_start_anchor', None))
 73        setattr(self, "_{}".format('start_anchor'), kwargs.get('start_anchor', None))
 74
 75    @property
 76    def case_sensitive(self):
 77        """Gets the case_sensitive of this DocumentHtmlDisplayAnchor.  # noqa: E501
 78
 79          # noqa: E501
 80
 81        :return: The case_sensitive of this DocumentHtmlDisplayAnchor.  # noqa: E501
 82        :rtype: bool
 83        """
 84        return self._case_sensitive
 85
 86    @case_sensitive.setter
 87    def case_sensitive(self, case_sensitive):
 88        """Sets the case_sensitive of this DocumentHtmlDisplayAnchor.
 89
 90          # noqa: E501
 91
 92        :param case_sensitive: The case_sensitive of this DocumentHtmlDisplayAnchor.  # noqa: E501
 93        :type: bool
 94        """
 95
 96        self._case_sensitive = case_sensitive
 97
 98    @property
 99    def display_settings(self):
100        """Gets the display_settings of this DocumentHtmlDisplayAnchor.  # noqa: E501
101
102        This object defines how the HTML section inside the `startAnchor` and `endAnchor` displays.  # noqa: E501
103
104        :return: The display_settings of this DocumentHtmlDisplayAnchor.  # noqa: E501
105        :rtype: DocumentHtmlDisplaySettings
106        """
107        return self._display_settings
108
109    @display_settings.setter
110    def display_settings(self, display_settings):
111        """Sets the display_settings of this DocumentHtmlDisplayAnchor.
112
113        This object defines how the HTML section inside the `startAnchor` and `endAnchor` displays.  # noqa: E501
114
115        :param display_settings: The display_settings of this DocumentHtmlDisplayAnchor.  # noqa: E501
116        :type: DocumentHtmlDisplaySettings
117        """
118
119        self._display_settings = display_settings
120
121    @property
122    def end_anchor(self):
123        """Gets the end_anchor of this DocumentHtmlDisplayAnchor.  # noqa: E501
124
125          # noqa: E501
126
127        :return: The end_anchor of this DocumentHtmlDisplayAnchor.  # noqa: E501
128        :rtype: str
129        """
130        return self._end_anchor
131
132    @end_anchor.setter
133    def end_anchor(self, end_anchor):
134        """Sets the end_anchor of this DocumentHtmlDisplayAnchor.
135
136          # noqa: E501
137
138        :param end_anchor: The end_anchor of this DocumentHtmlDisplayAnchor.  # noqa: E501
139        :type: str
140        """
141
142        self._end_anchor = end_anchor
143
144    @property
145    def remove_end_anchor(self):
146        """Gets the remove_end_anchor of this DocumentHtmlDisplayAnchor.  # noqa: E501
147
148          # noqa: E501
149
150        :return: The remove_end_anchor of this DocumentHtmlDisplayAnchor.  # noqa: E501
151        :rtype: bool
152        """
153        return self._remove_end_anchor
154
155    @remove_end_anchor.setter
156    def remove_end_anchor(self, remove_end_anchor):
157        """Sets the remove_end_anchor of this DocumentHtmlDisplayAnchor.
158
159          # noqa: E501
160
161        :param remove_end_anchor: The remove_end_anchor of this DocumentHtmlDisplayAnchor.  # noqa: E501
162        :type: bool
163        """
164
165        self._remove_end_anchor = remove_end_anchor
166
167    @property
168    def remove_start_anchor(self):
169        """Gets the remove_start_anchor of this DocumentHtmlDisplayAnchor.  # noqa: E501
170
171          # noqa: E501
172
173        :return: The remove_start_anchor of this DocumentHtmlDisplayAnchor.  # noqa: E501
174        :rtype: bool
175        """
176        return self._remove_start_anchor
177
178    @remove_start_anchor.setter
179    def remove_start_anchor(self, remove_start_anchor):
180        """Sets the remove_start_anchor of this DocumentHtmlDisplayAnchor.
181
182          # noqa: E501
183
184        :param remove_start_anchor: The remove_start_anchor of this DocumentHtmlDisplayAnchor.  # noqa: E501
185        :type: bool
186        """
187
188        self._remove_start_anchor = remove_start_anchor
189
190    @property
191    def start_anchor(self):
192        """Gets the start_anchor of this DocumentHtmlDisplayAnchor.  # noqa: E501
193
194          # noqa: E501
195
196        :return: The start_anchor of this DocumentHtmlDisplayAnchor.  # noqa: E501
197        :rtype: str
198        """
199        return self._start_anchor
200
201    @start_anchor.setter
202    def start_anchor(self, start_anchor):
203        """Sets the start_anchor of this DocumentHtmlDisplayAnchor.
204
205          # noqa: E501
206
207        :param start_anchor: The start_anchor of this DocumentHtmlDisplayAnchor.  # noqa: E501
208        :type: str
209        """
210
211        self._start_anchor = start_anchor
212
213    def to_dict(self):
214        """Returns the model properties as a dict"""
215        result = {}
216
217        for attr, _ in six.iteritems(self.swagger_types):
218            value = getattr(self, attr)
219            if isinstance(value, list):
220                result[attr] = list(map(
221                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
222                    value
223                ))
224            elif hasattr(value, "to_dict"):
225                result[attr] = value.to_dict()
226            elif isinstance(value, dict):
227                result[attr] = dict(map(
228                    lambda item: (item[0], item[1].to_dict())
229                    if hasattr(item[1], "to_dict") else item,
230                    value.items()
231                ))
232            else:
233                result[attr] = value
234        if issubclass(DocumentHtmlDisplayAnchor, dict):
235            for key, value in self.items():
236                result[key] = value
237
238        return result
239
240    def to_str(self):
241        """Returns the string representation of the model"""
242        return pprint.pformat(self.to_dict())
243
244    def __repr__(self):
245        """For `print` and `pprint`"""
246        return self.to_str()
247
248    def __eq__(self, other):
249        """Returns true if both objects are equal"""
250        if not isinstance(other, DocumentHtmlDisplayAnchor):
251            return False
252
253        return self.to_dict() == other.to_dict()
254
255    def __ne__(self, other):
256        """Returns true if both objects are not equal"""
257        if not isinstance(other, DocumentHtmlDisplayAnchor):
258            return True
259
260        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.

DocumentHtmlDisplayAnchor(_configuration=None, **kwargs)
54    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
55        """DocumentHtmlDisplayAnchor - a model defined in Swagger"""  # noqa: E501
56        if _configuration is None:
57            _configuration = Configuration()
58        self._configuration = _configuration
59
60        self._case_sensitive = None
61        self._display_settings = None
62        self._end_anchor = None
63        self._remove_end_anchor = None
64        self._remove_start_anchor = None
65        self._start_anchor = None
66        self.discriminator = None
67
68        setattr(self, "_{}".format('case_sensitive'), kwargs.get('case_sensitive', None))
69        setattr(self, "_{}".format('display_settings'), kwargs.get('display_settings', None))
70        setattr(self, "_{}".format('end_anchor'), kwargs.get('end_anchor', None))
71        setattr(self, "_{}".format('remove_end_anchor'), kwargs.get('remove_end_anchor', None))
72        setattr(self, "_{}".format('remove_start_anchor'), kwargs.get('remove_start_anchor', None))
73        setattr(self, "_{}".format('start_anchor'), kwargs.get('start_anchor', None))

DocumentHtmlDisplayAnchor - a model defined in Swagger

swagger_types = {'case_sensitive': 'bool', 'display_settings': 'DocumentHtmlDisplaySettings', 'end_anchor': 'str', 'remove_end_anchor': 'bool', 'remove_start_anchor': 'bool', 'start_anchor': 'str'}
attribute_map = {'case_sensitive': 'caseSensitive', 'display_settings': 'displaySettings', 'end_anchor': 'endAnchor', 'remove_end_anchor': 'removeEndAnchor', 'remove_start_anchor': 'removeStartAnchor', 'start_anchor': 'startAnchor'}
case_sensitive

Gets the case_sensitive of this DocumentHtmlDisplayAnchor. # noqa: E501

# noqa: E501

Returns

The case_sensitive of this DocumentHtmlDisplayAnchor. # noqa: E501

display_settings

Gets the display_settings of this DocumentHtmlDisplayAnchor. # noqa: E501

This object defines how the HTML section inside the startAnchor and endAnchor displays. # noqa: E501

Returns

The display_settings of this DocumentHtmlDisplayAnchor. # noqa: E501

end_anchor

Gets the end_anchor of this DocumentHtmlDisplayAnchor. # noqa: E501

# noqa: E501

Returns

The end_anchor of this DocumentHtmlDisplayAnchor. # noqa: E501

remove_end_anchor

Gets the remove_end_anchor of this DocumentHtmlDisplayAnchor. # noqa: E501

# noqa: E501

Returns

The remove_end_anchor of this DocumentHtmlDisplayAnchor. # noqa: E501

remove_start_anchor

Gets the remove_start_anchor of this DocumentHtmlDisplayAnchor. # noqa: E501

# noqa: E501

Returns

The remove_start_anchor of this DocumentHtmlDisplayAnchor. # noqa: E501

start_anchor

Gets the start_anchor of this DocumentHtmlDisplayAnchor. # noqa: E501

# noqa: E501

Returns

The start_anchor of this DocumentHtmlDisplayAnchor. # noqa: E501

def to_dict(self)
213    def to_dict(self):
214        """Returns the model properties as a dict"""
215        result = {}
216
217        for attr, _ in six.iteritems(self.swagger_types):
218            value = getattr(self, attr)
219            if isinstance(value, list):
220                result[attr] = list(map(
221                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
222                    value
223                ))
224            elif hasattr(value, "to_dict"):
225                result[attr] = value.to_dict()
226            elif isinstance(value, dict):
227                result[attr] = dict(map(
228                    lambda item: (item[0], item[1].to_dict())
229                    if hasattr(item[1], "to_dict") else item,
230                    value.items()
231                ))
232            else:
233                result[attr] = value
234        if issubclass(DocumentHtmlDisplayAnchor, dict):
235            for key, value in self.items():
236                result[key] = value
237
238        return result

Returns the model properties as a dict

def to_str(self)
240    def to_str(self):
241        """Returns the string representation of the model"""
242        return pprint.pformat(self.to_dict())

Returns the string representation of the model