docusign_esign.models.template_view_settings

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 TemplateViewSettings(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        'back_button_action': 'str',
 37        'document_settings': 'EnvelopeViewDocumentSettings',
 38        'envelope_custom_field_settings': 'EnvelopeViewEnvelopeCustomFieldSettings',
 39        'lock_token': 'str',
 40        'recipient_settings': 'TemplateViewRecipientSettings',
 41        'show_advanced_options': 'str',
 42        'show_back_button': 'str',
 43        'show_discard_action': 'str',
 44        'show_header_actions': 'str',
 45        'starting_screen': 'str',
 46        'tagger_settings': 'EnvelopeViewTaggerSettings'
 47    }
 48
 49    attribute_map = {
 50        'back_button_action': 'backButtonAction',
 51        'document_settings': 'documentSettings',
 52        'envelope_custom_field_settings': 'envelopeCustomFieldSettings',
 53        'lock_token': 'lockToken',
 54        'recipient_settings': 'recipientSettings',
 55        'show_advanced_options': 'showAdvancedOptions',
 56        'show_back_button': 'showBackButton',
 57        'show_discard_action': 'showDiscardAction',
 58        'show_header_actions': 'showHeaderActions',
 59        'starting_screen': 'startingScreen',
 60        'tagger_settings': 'taggerSettings'
 61    }
 62
 63    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 64        """TemplateViewSettings - a model defined in Swagger"""  # noqa: E501
 65        if _configuration is None:
 66            _configuration = Configuration()
 67        self._configuration = _configuration
 68
 69        self._back_button_action = None
 70        self._document_settings = None
 71        self._envelope_custom_field_settings = None
 72        self._lock_token = None
 73        self._recipient_settings = None
 74        self._show_advanced_options = None
 75        self._show_back_button = None
 76        self._show_discard_action = None
 77        self._show_header_actions = None
 78        self._starting_screen = None
 79        self._tagger_settings = None
 80        self.discriminator = None
 81
 82        setattr(self, "_{}".format('back_button_action'), kwargs.get('back_button_action', None))
 83        setattr(self, "_{}".format('document_settings'), kwargs.get('document_settings', None))
 84        setattr(self, "_{}".format('envelope_custom_field_settings'), kwargs.get('envelope_custom_field_settings', None))
 85        setattr(self, "_{}".format('lock_token'), kwargs.get('lock_token', None))
 86        setattr(self, "_{}".format('recipient_settings'), kwargs.get('recipient_settings', None))
 87        setattr(self, "_{}".format('show_advanced_options'), kwargs.get('show_advanced_options', None))
 88        setattr(self, "_{}".format('show_back_button'), kwargs.get('show_back_button', None))
 89        setattr(self, "_{}".format('show_discard_action'), kwargs.get('show_discard_action', None))
 90        setattr(self, "_{}".format('show_header_actions'), kwargs.get('show_header_actions', None))
 91        setattr(self, "_{}".format('starting_screen'), kwargs.get('starting_screen', None))
 92        setattr(self, "_{}".format('tagger_settings'), kwargs.get('tagger_settings', None))
 93
 94    @property
 95    def back_button_action(self):
 96        """Gets the back_button_action of this TemplateViewSettings.  # noqa: E501
 97
 98          # noqa: E501
 99
100        :return: The back_button_action of this TemplateViewSettings.  # noqa: E501
101        :rtype: str
102        """
103        return self._back_button_action
104
105    @back_button_action.setter
106    def back_button_action(self, back_button_action):
107        """Sets the back_button_action of this TemplateViewSettings.
108
109          # noqa: E501
110
111        :param back_button_action: The back_button_action of this TemplateViewSettings.  # noqa: E501
112        :type: str
113        """
114
115        self._back_button_action = back_button_action
116
117    @property
118    def document_settings(self):
119        """Gets the document_settings of this TemplateViewSettings.  # noqa: E501
120
121          # noqa: E501
122
123        :return: The document_settings of this TemplateViewSettings.  # noqa: E501
124        :rtype: EnvelopeViewDocumentSettings
125        """
126        return self._document_settings
127
128    @document_settings.setter
129    def document_settings(self, document_settings):
130        """Sets the document_settings of this TemplateViewSettings.
131
132          # noqa: E501
133
134        :param document_settings: The document_settings of this TemplateViewSettings.  # noqa: E501
135        :type: EnvelopeViewDocumentSettings
136        """
137
138        self._document_settings = document_settings
139
140    @property
141    def envelope_custom_field_settings(self):
142        """Gets the envelope_custom_field_settings of this TemplateViewSettings.  # noqa: E501
143
144          # noqa: E501
145
146        :return: The envelope_custom_field_settings of this TemplateViewSettings.  # noqa: E501
147        :rtype: EnvelopeViewEnvelopeCustomFieldSettings
148        """
149        return self._envelope_custom_field_settings
150
151    @envelope_custom_field_settings.setter
152    def envelope_custom_field_settings(self, envelope_custom_field_settings):
153        """Sets the envelope_custom_field_settings of this TemplateViewSettings.
154
155          # noqa: E501
156
157        :param envelope_custom_field_settings: The envelope_custom_field_settings of this TemplateViewSettings.  # noqa: E501
158        :type: EnvelopeViewEnvelopeCustomFieldSettings
159        """
160
161        self._envelope_custom_field_settings = envelope_custom_field_settings
162
163    @property
164    def lock_token(self):
165        """Gets the lock_token of this TemplateViewSettings.  # noqa: E501
166
167          # noqa: E501
168
169        :return: The lock_token of this TemplateViewSettings.  # noqa: E501
170        :rtype: str
171        """
172        return self._lock_token
173
174    @lock_token.setter
175    def lock_token(self, lock_token):
176        """Sets the lock_token of this TemplateViewSettings.
177
178          # noqa: E501
179
180        :param lock_token: The lock_token of this TemplateViewSettings.  # noqa: E501
181        :type: str
182        """
183
184        self._lock_token = lock_token
185
186    @property
187    def recipient_settings(self):
188        """Gets the recipient_settings of this TemplateViewSettings.  # noqa: E501
189
190          # noqa: E501
191
192        :return: The recipient_settings of this TemplateViewSettings.  # noqa: E501
193        :rtype: TemplateViewRecipientSettings
194        """
195        return self._recipient_settings
196
197    @recipient_settings.setter
198    def recipient_settings(self, recipient_settings):
199        """Sets the recipient_settings of this TemplateViewSettings.
200
201          # noqa: E501
202
203        :param recipient_settings: The recipient_settings of this TemplateViewSettings.  # noqa: E501
204        :type: TemplateViewRecipientSettings
205        """
206
207        self._recipient_settings = recipient_settings
208
209    @property
210    def show_advanced_options(self):
211        """Gets the show_advanced_options of this TemplateViewSettings.  # noqa: E501
212
213          # noqa: E501
214
215        :return: The show_advanced_options of this TemplateViewSettings.  # noqa: E501
216        :rtype: str
217        """
218        return self._show_advanced_options
219
220    @show_advanced_options.setter
221    def show_advanced_options(self, show_advanced_options):
222        """Sets the show_advanced_options of this TemplateViewSettings.
223
224          # noqa: E501
225
226        :param show_advanced_options: The show_advanced_options of this TemplateViewSettings.  # noqa: E501
227        :type: str
228        """
229
230        self._show_advanced_options = show_advanced_options
231
232    @property
233    def show_back_button(self):
234        """Gets the show_back_button of this TemplateViewSettings.  # noqa: E501
235
236          # noqa: E501
237
238        :return: The show_back_button of this TemplateViewSettings.  # noqa: E501
239        :rtype: str
240        """
241        return self._show_back_button
242
243    @show_back_button.setter
244    def show_back_button(self, show_back_button):
245        """Sets the show_back_button of this TemplateViewSettings.
246
247          # noqa: E501
248
249        :param show_back_button: The show_back_button of this TemplateViewSettings.  # noqa: E501
250        :type: str
251        """
252
253        self._show_back_button = show_back_button
254
255    @property
256    def show_discard_action(self):
257        """Gets the show_discard_action of this TemplateViewSettings.  # noqa: E501
258
259          # noqa: E501
260
261        :return: The show_discard_action of this TemplateViewSettings.  # noqa: E501
262        :rtype: str
263        """
264        return self._show_discard_action
265
266    @show_discard_action.setter
267    def show_discard_action(self, show_discard_action):
268        """Sets the show_discard_action of this TemplateViewSettings.
269
270          # noqa: E501
271
272        :param show_discard_action: The show_discard_action of this TemplateViewSettings.  # noqa: E501
273        :type: str
274        """
275
276        self._show_discard_action = show_discard_action
277
278    @property
279    def show_header_actions(self):
280        """Gets the show_header_actions of this TemplateViewSettings.  # noqa: E501
281
282          # noqa: E501
283
284        :return: The show_header_actions of this TemplateViewSettings.  # noqa: E501
285        :rtype: str
286        """
287        return self._show_header_actions
288
289    @show_header_actions.setter
290    def show_header_actions(self, show_header_actions):
291        """Sets the show_header_actions of this TemplateViewSettings.
292
293          # noqa: E501
294
295        :param show_header_actions: The show_header_actions of this TemplateViewSettings.  # noqa: E501
296        :type: str
297        """
298
299        self._show_header_actions = show_header_actions
300
301    @property
302    def starting_screen(self):
303        """Gets the starting_screen of this TemplateViewSettings.  # noqa: E501
304
305          # noqa: E501
306
307        :return: The starting_screen of this TemplateViewSettings.  # noqa: E501
308        :rtype: str
309        """
310        return self._starting_screen
311
312    @starting_screen.setter
313    def starting_screen(self, starting_screen):
314        """Sets the starting_screen of this TemplateViewSettings.
315
316          # noqa: E501
317
318        :param starting_screen: The starting_screen of this TemplateViewSettings.  # noqa: E501
319        :type: str
320        """
321
322        self._starting_screen = starting_screen
323
324    @property
325    def tagger_settings(self):
326        """Gets the tagger_settings of this TemplateViewSettings.  # noqa: E501
327
328          # noqa: E501
329
330        :return: The tagger_settings of this TemplateViewSettings.  # noqa: E501
331        :rtype: EnvelopeViewTaggerSettings
332        """
333        return self._tagger_settings
334
335    @tagger_settings.setter
336    def tagger_settings(self, tagger_settings):
337        """Sets the tagger_settings of this TemplateViewSettings.
338
339          # noqa: E501
340
341        :param tagger_settings: The tagger_settings of this TemplateViewSettings.  # noqa: E501
342        :type: EnvelopeViewTaggerSettings
343        """
344
345        self._tagger_settings = tagger_settings
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(TemplateViewSettings, 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, TemplateViewSettings):
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, TemplateViewSettings):
392            return True
393
394        return self.to_dict() != other.to_dict()
class TemplateViewSettings:
 23class TemplateViewSettings(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        'back_button_action': 'str',
 38        'document_settings': 'EnvelopeViewDocumentSettings',
 39        'envelope_custom_field_settings': 'EnvelopeViewEnvelopeCustomFieldSettings',
 40        'lock_token': 'str',
 41        'recipient_settings': 'TemplateViewRecipientSettings',
 42        'show_advanced_options': 'str',
 43        'show_back_button': 'str',
 44        'show_discard_action': 'str',
 45        'show_header_actions': 'str',
 46        'starting_screen': 'str',
 47        'tagger_settings': 'EnvelopeViewTaggerSettings'
 48    }
 49
 50    attribute_map = {
 51        'back_button_action': 'backButtonAction',
 52        'document_settings': 'documentSettings',
 53        'envelope_custom_field_settings': 'envelopeCustomFieldSettings',
 54        'lock_token': 'lockToken',
 55        'recipient_settings': 'recipientSettings',
 56        'show_advanced_options': 'showAdvancedOptions',
 57        'show_back_button': 'showBackButton',
 58        'show_discard_action': 'showDiscardAction',
 59        'show_header_actions': 'showHeaderActions',
 60        'starting_screen': 'startingScreen',
 61        'tagger_settings': 'taggerSettings'
 62    }
 63
 64    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 65        """TemplateViewSettings - a model defined in Swagger"""  # noqa: E501
 66        if _configuration is None:
 67            _configuration = Configuration()
 68        self._configuration = _configuration
 69
 70        self._back_button_action = None
 71        self._document_settings = None
 72        self._envelope_custom_field_settings = None
 73        self._lock_token = None
 74        self._recipient_settings = None
 75        self._show_advanced_options = None
 76        self._show_back_button = None
 77        self._show_discard_action = None
 78        self._show_header_actions = None
 79        self._starting_screen = None
 80        self._tagger_settings = None
 81        self.discriminator = None
 82
 83        setattr(self, "_{}".format('back_button_action'), kwargs.get('back_button_action', None))
 84        setattr(self, "_{}".format('document_settings'), kwargs.get('document_settings', None))
 85        setattr(self, "_{}".format('envelope_custom_field_settings'), kwargs.get('envelope_custom_field_settings', None))
 86        setattr(self, "_{}".format('lock_token'), kwargs.get('lock_token', None))
 87        setattr(self, "_{}".format('recipient_settings'), kwargs.get('recipient_settings', None))
 88        setattr(self, "_{}".format('show_advanced_options'), kwargs.get('show_advanced_options', None))
 89        setattr(self, "_{}".format('show_back_button'), kwargs.get('show_back_button', None))
 90        setattr(self, "_{}".format('show_discard_action'), kwargs.get('show_discard_action', None))
 91        setattr(self, "_{}".format('show_header_actions'), kwargs.get('show_header_actions', None))
 92        setattr(self, "_{}".format('starting_screen'), kwargs.get('starting_screen', None))
 93        setattr(self, "_{}".format('tagger_settings'), kwargs.get('tagger_settings', None))
 94
 95    @property
 96    def back_button_action(self):
 97        """Gets the back_button_action of this TemplateViewSettings.  # noqa: E501
 98
 99          # noqa: E501
100
101        :return: The back_button_action of this TemplateViewSettings.  # noqa: E501
102        :rtype: str
103        """
104        return self._back_button_action
105
106    @back_button_action.setter
107    def back_button_action(self, back_button_action):
108        """Sets the back_button_action of this TemplateViewSettings.
109
110          # noqa: E501
111
112        :param back_button_action: The back_button_action of this TemplateViewSettings.  # noqa: E501
113        :type: str
114        """
115
116        self._back_button_action = back_button_action
117
118    @property
119    def document_settings(self):
120        """Gets the document_settings of this TemplateViewSettings.  # noqa: E501
121
122          # noqa: E501
123
124        :return: The document_settings of this TemplateViewSettings.  # noqa: E501
125        :rtype: EnvelopeViewDocumentSettings
126        """
127        return self._document_settings
128
129    @document_settings.setter
130    def document_settings(self, document_settings):
131        """Sets the document_settings of this TemplateViewSettings.
132
133          # noqa: E501
134
135        :param document_settings: The document_settings of this TemplateViewSettings.  # noqa: E501
136        :type: EnvelopeViewDocumentSettings
137        """
138
139        self._document_settings = document_settings
140
141    @property
142    def envelope_custom_field_settings(self):
143        """Gets the envelope_custom_field_settings of this TemplateViewSettings.  # noqa: E501
144
145          # noqa: E501
146
147        :return: The envelope_custom_field_settings of this TemplateViewSettings.  # noqa: E501
148        :rtype: EnvelopeViewEnvelopeCustomFieldSettings
149        """
150        return self._envelope_custom_field_settings
151
152    @envelope_custom_field_settings.setter
153    def envelope_custom_field_settings(self, envelope_custom_field_settings):
154        """Sets the envelope_custom_field_settings of this TemplateViewSettings.
155
156          # noqa: E501
157
158        :param envelope_custom_field_settings: The envelope_custom_field_settings of this TemplateViewSettings.  # noqa: E501
159        :type: EnvelopeViewEnvelopeCustomFieldSettings
160        """
161
162        self._envelope_custom_field_settings = envelope_custom_field_settings
163
164    @property
165    def lock_token(self):
166        """Gets the lock_token of this TemplateViewSettings.  # noqa: E501
167
168          # noqa: E501
169
170        :return: The lock_token of this TemplateViewSettings.  # noqa: E501
171        :rtype: str
172        """
173        return self._lock_token
174
175    @lock_token.setter
176    def lock_token(self, lock_token):
177        """Sets the lock_token of this TemplateViewSettings.
178
179          # noqa: E501
180
181        :param lock_token: The lock_token of this TemplateViewSettings.  # noqa: E501
182        :type: str
183        """
184
185        self._lock_token = lock_token
186
187    @property
188    def recipient_settings(self):
189        """Gets the recipient_settings of this TemplateViewSettings.  # noqa: E501
190
191          # noqa: E501
192
193        :return: The recipient_settings of this TemplateViewSettings.  # noqa: E501
194        :rtype: TemplateViewRecipientSettings
195        """
196        return self._recipient_settings
197
198    @recipient_settings.setter
199    def recipient_settings(self, recipient_settings):
200        """Sets the recipient_settings of this TemplateViewSettings.
201
202          # noqa: E501
203
204        :param recipient_settings: The recipient_settings of this TemplateViewSettings.  # noqa: E501
205        :type: TemplateViewRecipientSettings
206        """
207
208        self._recipient_settings = recipient_settings
209
210    @property
211    def show_advanced_options(self):
212        """Gets the show_advanced_options of this TemplateViewSettings.  # noqa: E501
213
214          # noqa: E501
215
216        :return: The show_advanced_options of this TemplateViewSettings.  # noqa: E501
217        :rtype: str
218        """
219        return self._show_advanced_options
220
221    @show_advanced_options.setter
222    def show_advanced_options(self, show_advanced_options):
223        """Sets the show_advanced_options of this TemplateViewSettings.
224
225          # noqa: E501
226
227        :param show_advanced_options: The show_advanced_options of this TemplateViewSettings.  # noqa: E501
228        :type: str
229        """
230
231        self._show_advanced_options = show_advanced_options
232
233    @property
234    def show_back_button(self):
235        """Gets the show_back_button of this TemplateViewSettings.  # noqa: E501
236
237          # noqa: E501
238
239        :return: The show_back_button of this TemplateViewSettings.  # noqa: E501
240        :rtype: str
241        """
242        return self._show_back_button
243
244    @show_back_button.setter
245    def show_back_button(self, show_back_button):
246        """Sets the show_back_button of this TemplateViewSettings.
247
248          # noqa: E501
249
250        :param show_back_button: The show_back_button of this TemplateViewSettings.  # noqa: E501
251        :type: str
252        """
253
254        self._show_back_button = show_back_button
255
256    @property
257    def show_discard_action(self):
258        """Gets the show_discard_action of this TemplateViewSettings.  # noqa: E501
259
260          # noqa: E501
261
262        :return: The show_discard_action of this TemplateViewSettings.  # noqa: E501
263        :rtype: str
264        """
265        return self._show_discard_action
266
267    @show_discard_action.setter
268    def show_discard_action(self, show_discard_action):
269        """Sets the show_discard_action of this TemplateViewSettings.
270
271          # noqa: E501
272
273        :param show_discard_action: The show_discard_action of this TemplateViewSettings.  # noqa: E501
274        :type: str
275        """
276
277        self._show_discard_action = show_discard_action
278
279    @property
280    def show_header_actions(self):
281        """Gets the show_header_actions of this TemplateViewSettings.  # noqa: E501
282
283          # noqa: E501
284
285        :return: The show_header_actions of this TemplateViewSettings.  # noqa: E501
286        :rtype: str
287        """
288        return self._show_header_actions
289
290    @show_header_actions.setter
291    def show_header_actions(self, show_header_actions):
292        """Sets the show_header_actions of this TemplateViewSettings.
293
294          # noqa: E501
295
296        :param show_header_actions: The show_header_actions of this TemplateViewSettings.  # noqa: E501
297        :type: str
298        """
299
300        self._show_header_actions = show_header_actions
301
302    @property
303    def starting_screen(self):
304        """Gets the starting_screen of this TemplateViewSettings.  # noqa: E501
305
306          # noqa: E501
307
308        :return: The starting_screen of this TemplateViewSettings.  # noqa: E501
309        :rtype: str
310        """
311        return self._starting_screen
312
313    @starting_screen.setter
314    def starting_screen(self, starting_screen):
315        """Sets the starting_screen of this TemplateViewSettings.
316
317          # noqa: E501
318
319        :param starting_screen: The starting_screen of this TemplateViewSettings.  # noqa: E501
320        :type: str
321        """
322
323        self._starting_screen = starting_screen
324
325    @property
326    def tagger_settings(self):
327        """Gets the tagger_settings of this TemplateViewSettings.  # noqa: E501
328
329          # noqa: E501
330
331        :return: The tagger_settings of this TemplateViewSettings.  # noqa: E501
332        :rtype: EnvelopeViewTaggerSettings
333        """
334        return self._tagger_settings
335
336    @tagger_settings.setter
337    def tagger_settings(self, tagger_settings):
338        """Sets the tagger_settings of this TemplateViewSettings.
339
340          # noqa: E501
341
342        :param tagger_settings: The tagger_settings of this TemplateViewSettings.  # noqa: E501
343        :type: EnvelopeViewTaggerSettings
344        """
345
346        self._tagger_settings = tagger_settings
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(TemplateViewSettings, 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, TemplateViewSettings):
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, TemplateViewSettings):
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.

TemplateViewSettings(_configuration=None, **kwargs)
64    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
65        """TemplateViewSettings - a model defined in Swagger"""  # noqa: E501
66        if _configuration is None:
67            _configuration = Configuration()
68        self._configuration = _configuration
69
70        self._back_button_action = None
71        self._document_settings = None
72        self._envelope_custom_field_settings = None
73        self._lock_token = None
74        self._recipient_settings = None
75        self._show_advanced_options = None
76        self._show_back_button = None
77        self._show_discard_action = None
78        self._show_header_actions = None
79        self._starting_screen = None
80        self._tagger_settings = None
81        self.discriminator = None
82
83        setattr(self, "_{}".format('back_button_action'), kwargs.get('back_button_action', None))
84        setattr(self, "_{}".format('document_settings'), kwargs.get('document_settings', None))
85        setattr(self, "_{}".format('envelope_custom_field_settings'), kwargs.get('envelope_custom_field_settings', None))
86        setattr(self, "_{}".format('lock_token'), kwargs.get('lock_token', None))
87        setattr(self, "_{}".format('recipient_settings'), kwargs.get('recipient_settings', None))
88        setattr(self, "_{}".format('show_advanced_options'), kwargs.get('show_advanced_options', None))
89        setattr(self, "_{}".format('show_back_button'), kwargs.get('show_back_button', None))
90        setattr(self, "_{}".format('show_discard_action'), kwargs.get('show_discard_action', None))
91        setattr(self, "_{}".format('show_header_actions'), kwargs.get('show_header_actions', None))
92        setattr(self, "_{}".format('starting_screen'), kwargs.get('starting_screen', None))
93        setattr(self, "_{}".format('tagger_settings'), kwargs.get('tagger_settings', None))

TemplateViewSettings - a model defined in Swagger

swagger_types = {'back_button_action': 'str', 'document_settings': 'EnvelopeViewDocumentSettings', 'envelope_custom_field_settings': 'EnvelopeViewEnvelopeCustomFieldSettings', 'lock_token': 'str', 'recipient_settings': 'TemplateViewRecipientSettings', 'show_advanced_options': 'str', 'show_back_button': 'str', 'show_discard_action': 'str', 'show_header_actions': 'str', 'starting_screen': 'str', 'tagger_settings': 'EnvelopeViewTaggerSettings'}
attribute_map = {'back_button_action': 'backButtonAction', 'document_settings': 'documentSettings', 'envelope_custom_field_settings': 'envelopeCustomFieldSettings', 'lock_token': 'lockToken', 'recipient_settings': 'recipientSettings', 'show_advanced_options': 'showAdvancedOptions', 'show_back_button': 'showBackButton', 'show_discard_action': 'showDiscardAction', 'show_header_actions': 'showHeaderActions', 'starting_screen': 'startingScreen', 'tagger_settings': 'taggerSettings'}
back_button_action

Gets the back_button_action of this TemplateViewSettings. # noqa: E501

# noqa: E501

Returns

The back_button_action of this TemplateViewSettings. # noqa: E501

document_settings

Gets the document_settings of this TemplateViewSettings. # noqa: E501

# noqa: E501

Returns

The document_settings of this TemplateViewSettings. # noqa: E501

envelope_custom_field_settings

Gets the envelope_custom_field_settings of this TemplateViewSettings. # noqa: E501

# noqa: E501

Returns

The envelope_custom_field_settings of this TemplateViewSettings. # noqa: E501

lock_token

Gets the lock_token of this TemplateViewSettings. # noqa: E501

# noqa: E501

Returns

The lock_token of this TemplateViewSettings. # noqa: E501

recipient_settings

Gets the recipient_settings of this TemplateViewSettings. # noqa: E501

# noqa: E501

Returns

The recipient_settings of this TemplateViewSettings. # noqa: E501

show_advanced_options

Gets the show_advanced_options of this TemplateViewSettings. # noqa: E501

# noqa: E501

Returns

The show_advanced_options of this TemplateViewSettings. # noqa: E501

show_back_button

Gets the show_back_button of this TemplateViewSettings. # noqa: E501

# noqa: E501

Returns

The show_back_button of this TemplateViewSettings. # noqa: E501

show_discard_action

Gets the show_discard_action of this TemplateViewSettings. # noqa: E501

# noqa: E501

Returns

The show_discard_action of this TemplateViewSettings. # noqa: E501

show_header_actions

Gets the show_header_actions of this TemplateViewSettings. # noqa: E501

# noqa: E501

Returns

The show_header_actions of this TemplateViewSettings. # noqa: E501

starting_screen

Gets the starting_screen of this TemplateViewSettings. # noqa: E501

# noqa: E501

Returns

The starting_screen of this TemplateViewSettings. # noqa: E501

tagger_settings

Gets the tagger_settings of this TemplateViewSettings. # noqa: E501

# noqa: E501

Returns

The tagger_settings of this TemplateViewSettings. # 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(TemplateViewSettings, 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