docusign_webforms.models.web_form_metadata

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 WebFormMetadata(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        'source': 'WebFormSource',
 37        'type': 'WebFormType',
 38        'source_form_id': 'str',
 39        'owner': 'WebFormUserInfo',
 40        'sender': 'WebFormUserInfo',
 41        'last_modified_by': 'WebFormUserInfo',
 42        'form_content_modified_by': 'WebFormUserInfo',
 43        'form_properties_modified_by': 'WebFormUserInfo',
 44        'last_published_by': 'WebFormUserInfo',
 45        'last_enabled_by': 'WebFormUserInfo',
 46        'last_disabled_by': 'WebFormUserInfo',
 47        'archived_date_time': 'datetime',
 48        'created_date_time': 'datetime',
 49        'last_modified_date_time': 'datetime',
 50        'form_content_modified_date_time': 'datetime',
 51        'form_properties_modified_date_time': 'datetime',
 52        'last_published_date_time': 'datetime',
 53        'last_enabled_date_time': 'datetime',
 54        'last_disabled_date_time': 'datetime',
 55        'last_sender_consent_date_time': 'datetime',
 56        'published_slug': 'str',
 57        'published_component_names': 'dict(str, WebFormComponentType)'
 58    }
 59
 60    attribute_map = {
 61        'source': 'source',
 62        'type': 'type',
 63        'source_form_id': 'sourceFormId',
 64        'owner': 'owner',
 65        'sender': 'sender',
 66        'last_modified_by': 'lastModifiedBy',
 67        'form_content_modified_by': 'formContentModifiedBy',
 68        'form_properties_modified_by': 'formPropertiesModifiedBy',
 69        'last_published_by': 'lastPublishedBy',
 70        'last_enabled_by': 'lastEnabledBy',
 71        'last_disabled_by': 'lastDisabledBy',
 72        'archived_date_time': 'archivedDateTime',
 73        'created_date_time': 'createdDateTime',
 74        'last_modified_date_time': 'lastModifiedDateTime',
 75        'form_content_modified_date_time': 'formContentModifiedDateTime',
 76        'form_properties_modified_date_time': 'formPropertiesModifiedDateTime',
 77        'last_published_date_time': 'lastPublishedDateTime',
 78        'last_enabled_date_time': 'lastEnabledDateTime',
 79        'last_disabled_date_time': 'lastDisabledDateTime',
 80        'last_sender_consent_date_time': 'lastSenderConsentDateTime',
 81        'published_slug': 'publishedSlug',
 82        'published_component_names': 'publishedComponentNames'
 83    }
 84
 85    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 86        """WebFormMetadata - a model defined in Swagger"""  # noqa: E501
 87        if _configuration is None:
 88            _configuration = Configuration()
 89        self._configuration = _configuration
 90
 91        self._source = None
 92        self._type = None
 93        self._source_form_id = None
 94        self._owner = None
 95        self._sender = None
 96        self._last_modified_by = None
 97        self._form_content_modified_by = None
 98        self._form_properties_modified_by = None
 99        self._last_published_by = None
100        self._last_enabled_by = None
101        self._last_disabled_by = None
102        self._archived_date_time = None
103        self._created_date_time = None
104        self._last_modified_date_time = None
105        self._form_content_modified_date_time = None
106        self._form_properties_modified_date_time = None
107        self._last_published_date_time = None
108        self._last_enabled_date_time = None
109        self._last_disabled_date_time = None
110        self._last_sender_consent_date_time = None
111        self._published_slug = None
112        self._published_component_names = None
113        self.discriminator = None
114
115        setattr(self, "_{}".format('source'), kwargs.get('source', None))
116        setattr(self, "_{}".format('type'), kwargs.get('type', None))
117        setattr(self, "_{}".format('source_form_id'), kwargs.get('source_form_id', None))
118        setattr(self, "_{}".format('owner'), kwargs.get('owner', None))
119        setattr(self, "_{}".format('sender'), kwargs.get('sender', None))
120        setattr(self, "_{}".format('last_modified_by'), kwargs.get('last_modified_by', None))
121        setattr(self, "_{}".format('form_content_modified_by'), kwargs.get('form_content_modified_by', None))
122        setattr(self, "_{}".format('form_properties_modified_by'), kwargs.get('form_properties_modified_by', None))
123        setattr(self, "_{}".format('last_published_by'), kwargs.get('last_published_by', None))
124        setattr(self, "_{}".format('last_enabled_by'), kwargs.get('last_enabled_by', None))
125        setattr(self, "_{}".format('last_disabled_by'), kwargs.get('last_disabled_by', None))
126        setattr(self, "_{}".format('archived_date_time'), kwargs.get('archived_date_time', None))
127        setattr(self, "_{}".format('created_date_time'), kwargs.get('created_date_time', None))
128        setattr(self, "_{}".format('last_modified_date_time'), kwargs.get('last_modified_date_time', None))
129        setattr(self, "_{}".format('form_content_modified_date_time'), kwargs.get('form_content_modified_date_time', None))
130        setattr(self, "_{}".format('form_properties_modified_date_time'), kwargs.get('form_properties_modified_date_time', None))
131        setattr(self, "_{}".format('last_published_date_time'), kwargs.get('last_published_date_time', None))
132        setattr(self, "_{}".format('last_enabled_date_time'), kwargs.get('last_enabled_date_time', None))
133        setattr(self, "_{}".format('last_disabled_date_time'), kwargs.get('last_disabled_date_time', None))
134        setattr(self, "_{}".format('last_sender_consent_date_time'), kwargs.get('last_sender_consent_date_time', None))
135        setattr(self, "_{}".format('published_slug'), kwargs.get('published_slug', None))
136        setattr(self, "_{}".format('published_component_names'), kwargs.get('published_component_names', None))
137
138    @property
139    def source(self):
140        """Gets the source of this WebFormMetadata.  # noqa: E501
141
142        The source from which the webform is created. Accepted values are [templates, blank, form]  # noqa: E501
143
144        :return: The source of this WebFormMetadata.  # noqa: E501
145        :rtype: WebFormSource
146        """
147        return self._source
148
149    @source.setter
150    def source(self, source):
151        """Sets the source of this WebFormMetadata.
152
153        The source from which the webform is created. Accepted values are [templates, blank, form]  # noqa: E501
154
155        :param source: The source of this WebFormMetadata.  # noqa: E501
156        :type: WebFormSource
157        """
158
159        self._source = source
160
161    @property
162    def type(self):
163        """Gets the type of this WebFormMetadata.  # noqa: E501
164
165        Represents webform type. Possible values are [standalone, hasEsignTemplate]  # noqa: E501
166
167        :return: The type of this WebFormMetadata.  # noqa: E501
168        :rtype: WebFormType
169        """
170        return self._type
171
172    @type.setter
173    def type(self, type):
174        """Sets the type of this WebFormMetadata.
175
176        Represents webform type. Possible values are [standalone, hasEsignTemplate]  # noqa: E501
177
178        :param type: The type of this WebFormMetadata.  # noqa: E501
179        :type: WebFormType
180        """
181
182        self._type = type
183
184    @property
185    def source_form_id(self):
186        """Gets the source_form_id of this WebFormMetadata.  # noqa: E501
187
188        The source form id from which the webform is created.  # noqa: E501
189
190        :return: The source_form_id of this WebFormMetadata.  # noqa: E501
191        :rtype: str
192        """
193        return self._source_form_id
194
195    @source_form_id.setter
196    def source_form_id(self, source_form_id):
197        """Sets the source_form_id of this WebFormMetadata.
198
199        The source form id from which the webform is created.  # noqa: E501
200
201        :param source_form_id: The source_form_id of this WebFormMetadata.  # noqa: E501
202        :type: str
203        """
204
205        self._source_form_id = source_form_id
206
207    @property
208    def owner(self):
209        """Gets the owner of this WebFormMetadata.  # noqa: E501
210
211        The user that created the form or has been transferred ownership  # noqa: E501
212
213        :return: The owner of this WebFormMetadata.  # noqa: E501
214        :rtype: WebFormUserInfo
215        """
216        return self._owner
217
218    @owner.setter
219    def owner(self, owner):
220        """Sets the owner of this WebFormMetadata.
221
222        The user that created the form or has been transferred ownership  # noqa: E501
223
224        :param owner: The owner of this WebFormMetadata.  # noqa: E501
225        :type: WebFormUserInfo
226        """
227
228        self._owner = owner
229
230    @property
231    def sender(self):
232        """Gets the sender of this WebFormMetadata.  # noqa: E501
233
234        The user that has added their consent to the form for sending actions  # noqa: E501
235
236        :return: The sender of this WebFormMetadata.  # noqa: E501
237        :rtype: WebFormUserInfo
238        """
239        return self._sender
240
241    @sender.setter
242    def sender(self, sender):
243        """Sets the sender of this WebFormMetadata.
244
245        The user that has added their consent to the form for sending actions  # noqa: E501
246
247        :param sender: The sender of this WebFormMetadata.  # noqa: E501
248        :type: WebFormUserInfo
249        """
250
251        self._sender = sender
252
253    @property
254    def last_modified_by(self):
255        """Gets the last_modified_by of this WebFormMetadata.  # noqa: E501
256
257        Track the user that last modified anything related to the form  # noqa: E501
258
259        :return: The last_modified_by of this WebFormMetadata.  # noqa: E501
260        :rtype: WebFormUserInfo
261        """
262        return self._last_modified_by
263
264    @last_modified_by.setter
265    def last_modified_by(self, last_modified_by):
266        """Sets the last_modified_by of this WebFormMetadata.
267
268        Track the user that last modified anything related to the form  # noqa: E501
269
270        :param last_modified_by: The last_modified_by of this WebFormMetadata.  # noqa: E501
271        :type: WebFormUserInfo
272        """
273
274        self._last_modified_by = last_modified_by
275
276    @property
277    def form_content_modified_by(self):
278        """Gets the form_content_modified_by of this WebFormMetadata.  # noqa: E501
279
280        Track the user that last modified the form content  # noqa: E501
281
282        :return: The form_content_modified_by of this WebFormMetadata.  # noqa: E501
283        :rtype: WebFormUserInfo
284        """
285        return self._form_content_modified_by
286
287    @form_content_modified_by.setter
288    def form_content_modified_by(self, form_content_modified_by):
289        """Sets the form_content_modified_by of this WebFormMetadata.
290
291        Track the user that last modified the form content  # noqa: E501
292
293        :param form_content_modified_by: The form_content_modified_by of this WebFormMetadata.  # noqa: E501
294        :type: WebFormUserInfo
295        """
296
297        self._form_content_modified_by = form_content_modified_by
298
299    @property
300    def form_properties_modified_by(self):
301        """Gets the form_properties_modified_by of this WebFormMetadata.  # noqa: E501
302
303        Track the user that last modified the form properties  # noqa: E501
304
305        :return: The form_properties_modified_by of this WebFormMetadata.  # noqa: E501
306        :rtype: WebFormUserInfo
307        """
308        return self._form_properties_modified_by
309
310    @form_properties_modified_by.setter
311    def form_properties_modified_by(self, form_properties_modified_by):
312        """Sets the form_properties_modified_by of this WebFormMetadata.
313
314        Track the user that last modified the form properties  # noqa: E501
315
316        :param form_properties_modified_by: The form_properties_modified_by of this WebFormMetadata.  # noqa: E501
317        :type: WebFormUserInfo
318        """
319
320        self._form_properties_modified_by = form_properties_modified_by
321
322    @property
323    def last_published_by(self):
324        """Gets the last_published_by of this WebFormMetadata.  # noqa: E501
325
326        Track the user that last published a draft version to active  # noqa: E501
327
328        :return: The last_published_by of this WebFormMetadata.  # noqa: E501
329        :rtype: WebFormUserInfo
330        """
331        return self._last_published_by
332
333    @last_published_by.setter
334    def last_published_by(self, last_published_by):
335        """Sets the last_published_by of this WebFormMetadata.
336
337        Track the user that last published a draft version to active  # noqa: E501
338
339        :param last_published_by: The last_published_by of this WebFormMetadata.  # noqa: E501
340        :type: WebFormUserInfo
341        """
342
343        self._last_published_by = last_published_by
344
345    @property
346    def last_enabled_by(self):
347        """Gets the last_enabled_by of this WebFormMetadata.  # noqa: E501
348
349        Track the user that last unpublished an active version  # noqa: E501
350
351        :return: The last_enabled_by of this WebFormMetadata.  # noqa: E501
352        :rtype: WebFormUserInfo
353        """
354        return self._last_enabled_by
355
356    @last_enabled_by.setter
357    def last_enabled_by(self, last_enabled_by):
358        """Sets the last_enabled_by of this WebFormMetadata.
359
360        Track the user that last unpublished an active version  # noqa: E501
361
362        :param last_enabled_by: The last_enabled_by of this WebFormMetadata.  # noqa: E501
363        :type: WebFormUserInfo
364        """
365
366        self._last_enabled_by = last_enabled_by
367
368    @property
369    def last_disabled_by(self):
370        """Gets the last_disabled_by of this WebFormMetadata.  # noqa: E501
371
372        Track the user that last unpublished an active version  # noqa: E501
373
374        :return: The last_disabled_by of this WebFormMetadata.  # noqa: E501
375        :rtype: WebFormUserInfo
376        """
377        return self._last_disabled_by
378
379    @last_disabled_by.setter
380    def last_disabled_by(self, last_disabled_by):
381        """Sets the last_disabled_by of this WebFormMetadata.
382
383        Track the user that last unpublished an active version  # noqa: E501
384
385        :param last_disabled_by: The last_disabled_by of this WebFormMetadata.  # noqa: E501
386        :type: WebFormUserInfo
387        """
388
389        self._last_disabled_by = last_disabled_by
390
391    @property
392    def archived_date_time(self):
393        """Gets the archived_date_time of this WebFormMetadata.  # noqa: E501
394
395        The last time the web form was archived  # noqa: E501
396
397        :return: The archived_date_time of this WebFormMetadata.  # noqa: E501
398        :rtype: datetime
399        """
400        return self._archived_date_time
401
402    @archived_date_time.setter
403    def archived_date_time(self, archived_date_time):
404        """Sets the archived_date_time of this WebFormMetadata.
405
406        The last time the web form was archived  # noqa: E501
407
408        :param archived_date_time: The archived_date_time of this WebFormMetadata.  # noqa: E501
409        :type: datetime
410        """
411
412        self._archived_date_time = archived_date_time
413
414    @property
415    def created_date_time(self):
416        """Gets the created_date_time of this WebFormMetadata.  # noqa: E501
417
418        Track the time the web form was created  # noqa: E501
419
420        :return: The created_date_time of this WebFormMetadata.  # noqa: E501
421        :rtype: datetime
422        """
423        return self._created_date_time
424
425    @created_date_time.setter
426    def created_date_time(self, created_date_time):
427        """Sets the created_date_time of this WebFormMetadata.
428
429        Track the time the web form was created  # noqa: E501
430
431        :param created_date_time: The created_date_time of this WebFormMetadata.  # noqa: E501
432        :type: datetime
433        """
434
435        self._created_date_time = created_date_time
436
437    @property
438    def last_modified_date_time(self):
439        """Gets the last_modified_date_time of this WebFormMetadata.  # noqa: E501
440
441        The last time anything was modified on the form  # noqa: E501
442
443        :return: The last_modified_date_time of this WebFormMetadata.  # noqa: E501
444        :rtype: datetime
445        """
446        return self._last_modified_date_time
447
448    @last_modified_date_time.setter
449    def last_modified_date_time(self, last_modified_date_time):
450        """Sets the last_modified_date_time of this WebFormMetadata.
451
452        The last time anything was modified on the form  # noqa: E501
453
454        :param last_modified_date_time: The last_modified_date_time of this WebFormMetadata.  # noqa: E501
455        :type: datetime
456        """
457
458        self._last_modified_date_time = last_modified_date_time
459
460    @property
461    def form_content_modified_date_time(self):
462        """Gets the form_content_modified_date_time of this WebFormMetadata.  # noqa: E501
463
464        Track the last time web form content changed.  # noqa: E501
465
466        :return: The form_content_modified_date_time of this WebFormMetadata.  # noqa: E501
467        :rtype: datetime
468        """
469        return self._form_content_modified_date_time
470
471    @form_content_modified_date_time.setter
472    def form_content_modified_date_time(self, form_content_modified_date_time):
473        """Sets the form_content_modified_date_time of this WebFormMetadata.
474
475        Track the last time web form content changed.  # noqa: E501
476
477        :param form_content_modified_date_time: The form_content_modified_date_time of this WebFormMetadata.  # noqa: E501
478        :type: datetime
479        """
480
481        self._form_content_modified_date_time = form_content_modified_date_time
482
483    @property
484    def form_properties_modified_date_time(self):
485        """Gets the form_properties_modified_date_time of this WebFormMetadata.  # noqa: E501
486
487        Track the last time the form properties changed.  # noqa: E501
488
489        :return: The form_properties_modified_date_time of this WebFormMetadata.  # noqa: E501
490        :rtype: datetime
491        """
492        return self._form_properties_modified_date_time
493
494    @form_properties_modified_date_time.setter
495    def form_properties_modified_date_time(self, form_properties_modified_date_time):
496        """Sets the form_properties_modified_date_time of this WebFormMetadata.
497
498        Track the last time the form properties changed.  # noqa: E501
499
500        :param form_properties_modified_date_time: The form_properties_modified_date_time of this WebFormMetadata.  # noqa: E501
501        :type: datetime
502        """
503
504        self._form_properties_modified_date_time = form_properties_modified_date_time
505
506    @property
507    def last_published_date_time(self):
508        """Gets the last_published_date_time of this WebFormMetadata.  # noqa: E501
509
510        Track the last time a draft version was published to active  # noqa: E501
511
512        :return: The last_published_date_time of this WebFormMetadata.  # noqa: E501
513        :rtype: datetime
514        """
515        return self._last_published_date_time
516
517    @last_published_date_time.setter
518    def last_published_date_time(self, last_published_date_time):
519        """Sets the last_published_date_time of this WebFormMetadata.
520
521        Track the last time a draft version was published to active  # noqa: E501
522
523        :param last_published_date_time: The last_published_date_time of this WebFormMetadata.  # noqa: E501
524        :type: datetime
525        """
526
527        self._last_published_date_time = last_published_date_time
528
529    @property
530    def last_enabled_date_time(self):
531        """Gets the last_enabled_date_time of this WebFormMetadata.  # noqa: E501
532
533        Track the last time the form was enabled  # noqa: E501
534
535        :return: The last_enabled_date_time of this WebFormMetadata.  # noqa: E501
536        :rtype: datetime
537        """
538        return self._last_enabled_date_time
539
540    @last_enabled_date_time.setter
541    def last_enabled_date_time(self, last_enabled_date_time):
542        """Sets the last_enabled_date_time of this WebFormMetadata.
543
544        Track the last time the form was enabled  # noqa: E501
545
546        :param last_enabled_date_time: The last_enabled_date_time of this WebFormMetadata.  # noqa: E501
547        :type: datetime
548        """
549
550        self._last_enabled_date_time = last_enabled_date_time
551
552    @property
553    def last_disabled_date_time(self):
554        """Gets the last_disabled_date_time of this WebFormMetadata.  # noqa: E501
555
556        Track the last time the form was disabled  # noqa: E501
557
558        :return: The last_disabled_date_time of this WebFormMetadata.  # noqa: E501
559        :rtype: datetime
560        """
561        return self._last_disabled_date_time
562
563    @last_disabled_date_time.setter
564    def last_disabled_date_time(self, last_disabled_date_time):
565        """Sets the last_disabled_date_time of this WebFormMetadata.
566
567        Track the last time the form was disabled  # noqa: E501
568
569        :param last_disabled_date_time: The last_disabled_date_time of this WebFormMetadata.  # noqa: E501
570        :type: datetime
571        """
572
573        self._last_disabled_date_time = last_disabled_date_time
574
575    @property
576    def last_sender_consent_date_time(self):
577        """Gets the last_sender_consent_date_time of this WebFormMetadata.  # noqa: E501
578
579        Track the last time a user added their consent for the form.  # noqa: E501
580
581        :return: The last_sender_consent_date_time of this WebFormMetadata.  # noqa: E501
582        :rtype: datetime
583        """
584        return self._last_sender_consent_date_time
585
586    @last_sender_consent_date_time.setter
587    def last_sender_consent_date_time(self, last_sender_consent_date_time):
588        """Sets the last_sender_consent_date_time of this WebFormMetadata.
589
590        Track the last time a user added their consent for the form.  # noqa: E501
591
592        :param last_sender_consent_date_time: The last_sender_consent_date_time of this WebFormMetadata.  # noqa: E501
593        :type: datetime
594        """
595
596        self._last_sender_consent_date_time = last_sender_consent_date_time
597
598    @property
599    def published_slug(self):
600        """Gets the published_slug of this WebFormMetadata.  # noqa: E501
601
602        The public friendly slug that is used to access the form from the player  # noqa: E501
603
604        :return: The published_slug of this WebFormMetadata.  # noqa: E501
605        :rtype: str
606        """
607        return self._published_slug
608
609    @published_slug.setter
610    def published_slug(self, published_slug):
611        """Sets the published_slug of this WebFormMetadata.
612
613        The public friendly slug that is used to access the form from the player  # noqa: E501
614
615        :param published_slug: The published_slug of this WebFormMetadata.  # noqa: E501
616        :type: str
617        """
618
619        self._published_slug = published_slug
620
621    @property
622    def published_component_names(self):
623        """Gets the published_component_names of this WebFormMetadata.  # noqa: E501
624
625        A dictionary containing the mapping of component names to their respective component types for all the published components.  # noqa: E501
626
627        :return: The published_component_names of this WebFormMetadata.  # noqa: E501
628        :rtype: dict(str, WebFormComponentType)
629        """
630        return self._published_component_names
631
632    @published_component_names.setter
633    def published_component_names(self, published_component_names):
634        """Sets the published_component_names of this WebFormMetadata.
635
636        A dictionary containing the mapping of component names to their respective component types for all the published components.  # noqa: E501
637
638        :param published_component_names: The published_component_names of this WebFormMetadata.  # noqa: E501
639        :type: dict(str, WebFormComponentType)
640        """
641
642        self._published_component_names = published_component_names
643
644    def to_dict(self):
645        """Returns the model properties as a dict"""
646        result = {}
647
648        for attr, _ in six.iteritems(self.swagger_types):
649            value = getattr(self, attr)
650            if isinstance(value, list):
651                result[attr] = list(map(
652                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
653                    value
654                ))
655            elif hasattr(value, "to_dict"):
656                result[attr] = value.to_dict()
657            elif isinstance(value, dict):
658                result[attr] = dict(map(
659                    lambda item: (item[0], item[1].to_dict())
660                    if hasattr(item[1], "to_dict") else item,
661                    value.items()
662                ))
663            else:
664                result[attr] = value
665        if issubclass(WebFormMetadata, dict):
666            for key, value in self.items():
667                result[key] = value
668
669        return result
670
671    def to_str(self):
672        """Returns the string representation of the model"""
673        return pprint.pformat(self.to_dict())
674
675    def __repr__(self):
676        """For `print` and `pprint`"""
677        return self.to_str()
678
679    def __eq__(self, other):
680        """Returns true if both objects are equal"""
681        if not isinstance(other, WebFormMetadata):
682            return False
683
684        return self.to_dict() == other.to_dict()
685
686    def __ne__(self, other):
687        """Returns true if both objects are not equal"""
688        if not isinstance(other, WebFormMetadata):
689            return True
690
691        return self.to_dict() != other.to_dict()
class WebFormMetadata:
 23class WebFormMetadata(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        'source': 'WebFormSource',
 38        'type': 'WebFormType',
 39        'source_form_id': 'str',
 40        'owner': 'WebFormUserInfo',
 41        'sender': 'WebFormUserInfo',
 42        'last_modified_by': 'WebFormUserInfo',
 43        'form_content_modified_by': 'WebFormUserInfo',
 44        'form_properties_modified_by': 'WebFormUserInfo',
 45        'last_published_by': 'WebFormUserInfo',
 46        'last_enabled_by': 'WebFormUserInfo',
 47        'last_disabled_by': 'WebFormUserInfo',
 48        'archived_date_time': 'datetime',
 49        'created_date_time': 'datetime',
 50        'last_modified_date_time': 'datetime',
 51        'form_content_modified_date_time': 'datetime',
 52        'form_properties_modified_date_time': 'datetime',
 53        'last_published_date_time': 'datetime',
 54        'last_enabled_date_time': 'datetime',
 55        'last_disabled_date_time': 'datetime',
 56        'last_sender_consent_date_time': 'datetime',
 57        'published_slug': 'str',
 58        'published_component_names': 'dict(str, WebFormComponentType)'
 59    }
 60
 61    attribute_map = {
 62        'source': 'source',
 63        'type': 'type',
 64        'source_form_id': 'sourceFormId',
 65        'owner': 'owner',
 66        'sender': 'sender',
 67        'last_modified_by': 'lastModifiedBy',
 68        'form_content_modified_by': 'formContentModifiedBy',
 69        'form_properties_modified_by': 'formPropertiesModifiedBy',
 70        'last_published_by': 'lastPublishedBy',
 71        'last_enabled_by': 'lastEnabledBy',
 72        'last_disabled_by': 'lastDisabledBy',
 73        'archived_date_time': 'archivedDateTime',
 74        'created_date_time': 'createdDateTime',
 75        'last_modified_date_time': 'lastModifiedDateTime',
 76        'form_content_modified_date_time': 'formContentModifiedDateTime',
 77        'form_properties_modified_date_time': 'formPropertiesModifiedDateTime',
 78        'last_published_date_time': 'lastPublishedDateTime',
 79        'last_enabled_date_time': 'lastEnabledDateTime',
 80        'last_disabled_date_time': 'lastDisabledDateTime',
 81        'last_sender_consent_date_time': 'lastSenderConsentDateTime',
 82        'published_slug': 'publishedSlug',
 83        'published_component_names': 'publishedComponentNames'
 84    }
 85
 86    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 87        """WebFormMetadata - a model defined in Swagger"""  # noqa: E501
 88        if _configuration is None:
 89            _configuration = Configuration()
 90        self._configuration = _configuration
 91
 92        self._source = None
 93        self._type = None
 94        self._source_form_id = None
 95        self._owner = None
 96        self._sender = None
 97        self._last_modified_by = None
 98        self._form_content_modified_by = None
 99        self._form_properties_modified_by = None
100        self._last_published_by = None
101        self._last_enabled_by = None
102        self._last_disabled_by = None
103        self._archived_date_time = None
104        self._created_date_time = None
105        self._last_modified_date_time = None
106        self._form_content_modified_date_time = None
107        self._form_properties_modified_date_time = None
108        self._last_published_date_time = None
109        self._last_enabled_date_time = None
110        self._last_disabled_date_time = None
111        self._last_sender_consent_date_time = None
112        self._published_slug = None
113        self._published_component_names = None
114        self.discriminator = None
115
116        setattr(self, "_{}".format('source'), kwargs.get('source', None))
117        setattr(self, "_{}".format('type'), kwargs.get('type', None))
118        setattr(self, "_{}".format('source_form_id'), kwargs.get('source_form_id', None))
119        setattr(self, "_{}".format('owner'), kwargs.get('owner', None))
120        setattr(self, "_{}".format('sender'), kwargs.get('sender', None))
121        setattr(self, "_{}".format('last_modified_by'), kwargs.get('last_modified_by', None))
122        setattr(self, "_{}".format('form_content_modified_by'), kwargs.get('form_content_modified_by', None))
123        setattr(self, "_{}".format('form_properties_modified_by'), kwargs.get('form_properties_modified_by', None))
124        setattr(self, "_{}".format('last_published_by'), kwargs.get('last_published_by', None))
125        setattr(self, "_{}".format('last_enabled_by'), kwargs.get('last_enabled_by', None))
126        setattr(self, "_{}".format('last_disabled_by'), kwargs.get('last_disabled_by', None))
127        setattr(self, "_{}".format('archived_date_time'), kwargs.get('archived_date_time', None))
128        setattr(self, "_{}".format('created_date_time'), kwargs.get('created_date_time', None))
129        setattr(self, "_{}".format('last_modified_date_time'), kwargs.get('last_modified_date_time', None))
130        setattr(self, "_{}".format('form_content_modified_date_time'), kwargs.get('form_content_modified_date_time', None))
131        setattr(self, "_{}".format('form_properties_modified_date_time'), kwargs.get('form_properties_modified_date_time', None))
132        setattr(self, "_{}".format('last_published_date_time'), kwargs.get('last_published_date_time', None))
133        setattr(self, "_{}".format('last_enabled_date_time'), kwargs.get('last_enabled_date_time', None))
134        setattr(self, "_{}".format('last_disabled_date_time'), kwargs.get('last_disabled_date_time', None))
135        setattr(self, "_{}".format('last_sender_consent_date_time'), kwargs.get('last_sender_consent_date_time', None))
136        setattr(self, "_{}".format('published_slug'), kwargs.get('published_slug', None))
137        setattr(self, "_{}".format('published_component_names'), kwargs.get('published_component_names', None))
138
139    @property
140    def source(self):
141        """Gets the source of this WebFormMetadata.  # noqa: E501
142
143        The source from which the webform is created. Accepted values are [templates, blank, form]  # noqa: E501
144
145        :return: The source of this WebFormMetadata.  # noqa: E501
146        :rtype: WebFormSource
147        """
148        return self._source
149
150    @source.setter
151    def source(self, source):
152        """Sets the source of this WebFormMetadata.
153
154        The source from which the webform is created. Accepted values are [templates, blank, form]  # noqa: E501
155
156        :param source: The source of this WebFormMetadata.  # noqa: E501
157        :type: WebFormSource
158        """
159
160        self._source = source
161
162    @property
163    def type(self):
164        """Gets the type of this WebFormMetadata.  # noqa: E501
165
166        Represents webform type. Possible values are [standalone, hasEsignTemplate]  # noqa: E501
167
168        :return: The type of this WebFormMetadata.  # noqa: E501
169        :rtype: WebFormType
170        """
171        return self._type
172
173    @type.setter
174    def type(self, type):
175        """Sets the type of this WebFormMetadata.
176
177        Represents webform type. Possible values are [standalone, hasEsignTemplate]  # noqa: E501
178
179        :param type: The type of this WebFormMetadata.  # noqa: E501
180        :type: WebFormType
181        """
182
183        self._type = type
184
185    @property
186    def source_form_id(self):
187        """Gets the source_form_id of this WebFormMetadata.  # noqa: E501
188
189        The source form id from which the webform is created.  # noqa: E501
190
191        :return: The source_form_id of this WebFormMetadata.  # noqa: E501
192        :rtype: str
193        """
194        return self._source_form_id
195
196    @source_form_id.setter
197    def source_form_id(self, source_form_id):
198        """Sets the source_form_id of this WebFormMetadata.
199
200        The source form id from which the webform is created.  # noqa: E501
201
202        :param source_form_id: The source_form_id of this WebFormMetadata.  # noqa: E501
203        :type: str
204        """
205
206        self._source_form_id = source_form_id
207
208    @property
209    def owner(self):
210        """Gets the owner of this WebFormMetadata.  # noqa: E501
211
212        The user that created the form or has been transferred ownership  # noqa: E501
213
214        :return: The owner of this WebFormMetadata.  # noqa: E501
215        :rtype: WebFormUserInfo
216        """
217        return self._owner
218
219    @owner.setter
220    def owner(self, owner):
221        """Sets the owner of this WebFormMetadata.
222
223        The user that created the form or has been transferred ownership  # noqa: E501
224
225        :param owner: The owner of this WebFormMetadata.  # noqa: E501
226        :type: WebFormUserInfo
227        """
228
229        self._owner = owner
230
231    @property
232    def sender(self):
233        """Gets the sender of this WebFormMetadata.  # noqa: E501
234
235        The user that has added their consent to the form for sending actions  # noqa: E501
236
237        :return: The sender of this WebFormMetadata.  # noqa: E501
238        :rtype: WebFormUserInfo
239        """
240        return self._sender
241
242    @sender.setter
243    def sender(self, sender):
244        """Sets the sender of this WebFormMetadata.
245
246        The user that has added their consent to the form for sending actions  # noqa: E501
247
248        :param sender: The sender of this WebFormMetadata.  # noqa: E501
249        :type: WebFormUserInfo
250        """
251
252        self._sender = sender
253
254    @property
255    def last_modified_by(self):
256        """Gets the last_modified_by of this WebFormMetadata.  # noqa: E501
257
258        Track the user that last modified anything related to the form  # noqa: E501
259
260        :return: The last_modified_by of this WebFormMetadata.  # noqa: E501
261        :rtype: WebFormUserInfo
262        """
263        return self._last_modified_by
264
265    @last_modified_by.setter
266    def last_modified_by(self, last_modified_by):
267        """Sets the last_modified_by of this WebFormMetadata.
268
269        Track the user that last modified anything related to the form  # noqa: E501
270
271        :param last_modified_by: The last_modified_by of this WebFormMetadata.  # noqa: E501
272        :type: WebFormUserInfo
273        """
274
275        self._last_modified_by = last_modified_by
276
277    @property
278    def form_content_modified_by(self):
279        """Gets the form_content_modified_by of this WebFormMetadata.  # noqa: E501
280
281        Track the user that last modified the form content  # noqa: E501
282
283        :return: The form_content_modified_by of this WebFormMetadata.  # noqa: E501
284        :rtype: WebFormUserInfo
285        """
286        return self._form_content_modified_by
287
288    @form_content_modified_by.setter
289    def form_content_modified_by(self, form_content_modified_by):
290        """Sets the form_content_modified_by of this WebFormMetadata.
291
292        Track the user that last modified the form content  # noqa: E501
293
294        :param form_content_modified_by: The form_content_modified_by of this WebFormMetadata.  # noqa: E501
295        :type: WebFormUserInfo
296        """
297
298        self._form_content_modified_by = form_content_modified_by
299
300    @property
301    def form_properties_modified_by(self):
302        """Gets the form_properties_modified_by of this WebFormMetadata.  # noqa: E501
303
304        Track the user that last modified the form properties  # noqa: E501
305
306        :return: The form_properties_modified_by of this WebFormMetadata.  # noqa: E501
307        :rtype: WebFormUserInfo
308        """
309        return self._form_properties_modified_by
310
311    @form_properties_modified_by.setter
312    def form_properties_modified_by(self, form_properties_modified_by):
313        """Sets the form_properties_modified_by of this WebFormMetadata.
314
315        Track the user that last modified the form properties  # noqa: E501
316
317        :param form_properties_modified_by: The form_properties_modified_by of this WebFormMetadata.  # noqa: E501
318        :type: WebFormUserInfo
319        """
320
321        self._form_properties_modified_by = form_properties_modified_by
322
323    @property
324    def last_published_by(self):
325        """Gets the last_published_by of this WebFormMetadata.  # noqa: E501
326
327        Track the user that last published a draft version to active  # noqa: E501
328
329        :return: The last_published_by of this WebFormMetadata.  # noqa: E501
330        :rtype: WebFormUserInfo
331        """
332        return self._last_published_by
333
334    @last_published_by.setter
335    def last_published_by(self, last_published_by):
336        """Sets the last_published_by of this WebFormMetadata.
337
338        Track the user that last published a draft version to active  # noqa: E501
339
340        :param last_published_by: The last_published_by of this WebFormMetadata.  # noqa: E501
341        :type: WebFormUserInfo
342        """
343
344        self._last_published_by = last_published_by
345
346    @property
347    def last_enabled_by(self):
348        """Gets the last_enabled_by of this WebFormMetadata.  # noqa: E501
349
350        Track the user that last unpublished an active version  # noqa: E501
351
352        :return: The last_enabled_by of this WebFormMetadata.  # noqa: E501
353        :rtype: WebFormUserInfo
354        """
355        return self._last_enabled_by
356
357    @last_enabled_by.setter
358    def last_enabled_by(self, last_enabled_by):
359        """Sets the last_enabled_by of this WebFormMetadata.
360
361        Track the user that last unpublished an active version  # noqa: E501
362
363        :param last_enabled_by: The last_enabled_by of this WebFormMetadata.  # noqa: E501
364        :type: WebFormUserInfo
365        """
366
367        self._last_enabled_by = last_enabled_by
368
369    @property
370    def last_disabled_by(self):
371        """Gets the last_disabled_by of this WebFormMetadata.  # noqa: E501
372
373        Track the user that last unpublished an active version  # noqa: E501
374
375        :return: The last_disabled_by of this WebFormMetadata.  # noqa: E501
376        :rtype: WebFormUserInfo
377        """
378        return self._last_disabled_by
379
380    @last_disabled_by.setter
381    def last_disabled_by(self, last_disabled_by):
382        """Sets the last_disabled_by of this WebFormMetadata.
383
384        Track the user that last unpublished an active version  # noqa: E501
385
386        :param last_disabled_by: The last_disabled_by of this WebFormMetadata.  # noqa: E501
387        :type: WebFormUserInfo
388        """
389
390        self._last_disabled_by = last_disabled_by
391
392    @property
393    def archived_date_time(self):
394        """Gets the archived_date_time of this WebFormMetadata.  # noqa: E501
395
396        The last time the web form was archived  # noqa: E501
397
398        :return: The archived_date_time of this WebFormMetadata.  # noqa: E501
399        :rtype: datetime
400        """
401        return self._archived_date_time
402
403    @archived_date_time.setter
404    def archived_date_time(self, archived_date_time):
405        """Sets the archived_date_time of this WebFormMetadata.
406
407        The last time the web form was archived  # noqa: E501
408
409        :param archived_date_time: The archived_date_time of this WebFormMetadata.  # noqa: E501
410        :type: datetime
411        """
412
413        self._archived_date_time = archived_date_time
414
415    @property
416    def created_date_time(self):
417        """Gets the created_date_time of this WebFormMetadata.  # noqa: E501
418
419        Track the time the web form was created  # noqa: E501
420
421        :return: The created_date_time of this WebFormMetadata.  # noqa: E501
422        :rtype: datetime
423        """
424        return self._created_date_time
425
426    @created_date_time.setter
427    def created_date_time(self, created_date_time):
428        """Sets the created_date_time of this WebFormMetadata.
429
430        Track the time the web form was created  # noqa: E501
431
432        :param created_date_time: The created_date_time of this WebFormMetadata.  # noqa: E501
433        :type: datetime
434        """
435
436        self._created_date_time = created_date_time
437
438    @property
439    def last_modified_date_time(self):
440        """Gets the last_modified_date_time of this WebFormMetadata.  # noqa: E501
441
442        The last time anything was modified on the form  # noqa: E501
443
444        :return: The last_modified_date_time of this WebFormMetadata.  # noqa: E501
445        :rtype: datetime
446        """
447        return self._last_modified_date_time
448
449    @last_modified_date_time.setter
450    def last_modified_date_time(self, last_modified_date_time):
451        """Sets the last_modified_date_time of this WebFormMetadata.
452
453        The last time anything was modified on the form  # noqa: E501
454
455        :param last_modified_date_time: The last_modified_date_time of this WebFormMetadata.  # noqa: E501
456        :type: datetime
457        """
458
459        self._last_modified_date_time = last_modified_date_time
460
461    @property
462    def form_content_modified_date_time(self):
463        """Gets the form_content_modified_date_time of this WebFormMetadata.  # noqa: E501
464
465        Track the last time web form content changed.  # noqa: E501
466
467        :return: The form_content_modified_date_time of this WebFormMetadata.  # noqa: E501
468        :rtype: datetime
469        """
470        return self._form_content_modified_date_time
471
472    @form_content_modified_date_time.setter
473    def form_content_modified_date_time(self, form_content_modified_date_time):
474        """Sets the form_content_modified_date_time of this WebFormMetadata.
475
476        Track the last time web form content changed.  # noqa: E501
477
478        :param form_content_modified_date_time: The form_content_modified_date_time of this WebFormMetadata.  # noqa: E501
479        :type: datetime
480        """
481
482        self._form_content_modified_date_time = form_content_modified_date_time
483
484    @property
485    def form_properties_modified_date_time(self):
486        """Gets the form_properties_modified_date_time of this WebFormMetadata.  # noqa: E501
487
488        Track the last time the form properties changed.  # noqa: E501
489
490        :return: The form_properties_modified_date_time of this WebFormMetadata.  # noqa: E501
491        :rtype: datetime
492        """
493        return self._form_properties_modified_date_time
494
495    @form_properties_modified_date_time.setter
496    def form_properties_modified_date_time(self, form_properties_modified_date_time):
497        """Sets the form_properties_modified_date_time of this WebFormMetadata.
498
499        Track the last time the form properties changed.  # noqa: E501
500
501        :param form_properties_modified_date_time: The form_properties_modified_date_time of this WebFormMetadata.  # noqa: E501
502        :type: datetime
503        """
504
505        self._form_properties_modified_date_time = form_properties_modified_date_time
506
507    @property
508    def last_published_date_time(self):
509        """Gets the last_published_date_time of this WebFormMetadata.  # noqa: E501
510
511        Track the last time a draft version was published to active  # noqa: E501
512
513        :return: The last_published_date_time of this WebFormMetadata.  # noqa: E501
514        :rtype: datetime
515        """
516        return self._last_published_date_time
517
518    @last_published_date_time.setter
519    def last_published_date_time(self, last_published_date_time):
520        """Sets the last_published_date_time of this WebFormMetadata.
521
522        Track the last time a draft version was published to active  # noqa: E501
523
524        :param last_published_date_time: The last_published_date_time of this WebFormMetadata.  # noqa: E501
525        :type: datetime
526        """
527
528        self._last_published_date_time = last_published_date_time
529
530    @property
531    def last_enabled_date_time(self):
532        """Gets the last_enabled_date_time of this WebFormMetadata.  # noqa: E501
533
534        Track the last time the form was enabled  # noqa: E501
535
536        :return: The last_enabled_date_time of this WebFormMetadata.  # noqa: E501
537        :rtype: datetime
538        """
539        return self._last_enabled_date_time
540
541    @last_enabled_date_time.setter
542    def last_enabled_date_time(self, last_enabled_date_time):
543        """Sets the last_enabled_date_time of this WebFormMetadata.
544
545        Track the last time the form was enabled  # noqa: E501
546
547        :param last_enabled_date_time: The last_enabled_date_time of this WebFormMetadata.  # noqa: E501
548        :type: datetime
549        """
550
551        self._last_enabled_date_time = last_enabled_date_time
552
553    @property
554    def last_disabled_date_time(self):
555        """Gets the last_disabled_date_time of this WebFormMetadata.  # noqa: E501
556
557        Track the last time the form was disabled  # noqa: E501
558
559        :return: The last_disabled_date_time of this WebFormMetadata.  # noqa: E501
560        :rtype: datetime
561        """
562        return self._last_disabled_date_time
563
564    @last_disabled_date_time.setter
565    def last_disabled_date_time(self, last_disabled_date_time):
566        """Sets the last_disabled_date_time of this WebFormMetadata.
567
568        Track the last time the form was disabled  # noqa: E501
569
570        :param last_disabled_date_time: The last_disabled_date_time of this WebFormMetadata.  # noqa: E501
571        :type: datetime
572        """
573
574        self._last_disabled_date_time = last_disabled_date_time
575
576    @property
577    def last_sender_consent_date_time(self):
578        """Gets the last_sender_consent_date_time of this WebFormMetadata.  # noqa: E501
579
580        Track the last time a user added their consent for the form.  # noqa: E501
581
582        :return: The last_sender_consent_date_time of this WebFormMetadata.  # noqa: E501
583        :rtype: datetime
584        """
585        return self._last_sender_consent_date_time
586
587    @last_sender_consent_date_time.setter
588    def last_sender_consent_date_time(self, last_sender_consent_date_time):
589        """Sets the last_sender_consent_date_time of this WebFormMetadata.
590
591        Track the last time a user added their consent for the form.  # noqa: E501
592
593        :param last_sender_consent_date_time: The last_sender_consent_date_time of this WebFormMetadata.  # noqa: E501
594        :type: datetime
595        """
596
597        self._last_sender_consent_date_time = last_sender_consent_date_time
598
599    @property
600    def published_slug(self):
601        """Gets the published_slug of this WebFormMetadata.  # noqa: E501
602
603        The public friendly slug that is used to access the form from the player  # noqa: E501
604
605        :return: The published_slug of this WebFormMetadata.  # noqa: E501
606        :rtype: str
607        """
608        return self._published_slug
609
610    @published_slug.setter
611    def published_slug(self, published_slug):
612        """Sets the published_slug of this WebFormMetadata.
613
614        The public friendly slug that is used to access the form from the player  # noqa: E501
615
616        :param published_slug: The published_slug of this WebFormMetadata.  # noqa: E501
617        :type: str
618        """
619
620        self._published_slug = published_slug
621
622    @property
623    def published_component_names(self):
624        """Gets the published_component_names of this WebFormMetadata.  # noqa: E501
625
626        A dictionary containing the mapping of component names to their respective component types for all the published components.  # noqa: E501
627
628        :return: The published_component_names of this WebFormMetadata.  # noqa: E501
629        :rtype: dict(str, WebFormComponentType)
630        """
631        return self._published_component_names
632
633    @published_component_names.setter
634    def published_component_names(self, published_component_names):
635        """Sets the published_component_names of this WebFormMetadata.
636
637        A dictionary containing the mapping of component names to their respective component types for all the published components.  # noqa: E501
638
639        :param published_component_names: The published_component_names of this WebFormMetadata.  # noqa: E501
640        :type: dict(str, WebFormComponentType)
641        """
642
643        self._published_component_names = published_component_names
644
645    def to_dict(self):
646        """Returns the model properties as a dict"""
647        result = {}
648
649        for attr, _ in six.iteritems(self.swagger_types):
650            value = getattr(self, attr)
651            if isinstance(value, list):
652                result[attr] = list(map(
653                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
654                    value
655                ))
656            elif hasattr(value, "to_dict"):
657                result[attr] = value.to_dict()
658            elif isinstance(value, dict):
659                result[attr] = dict(map(
660                    lambda item: (item[0], item[1].to_dict())
661                    if hasattr(item[1], "to_dict") else item,
662                    value.items()
663                ))
664            else:
665                result[attr] = value
666        if issubclass(WebFormMetadata, dict):
667            for key, value in self.items():
668                result[key] = value
669
670        return result
671
672    def to_str(self):
673        """Returns the string representation of the model"""
674        return pprint.pformat(self.to_dict())
675
676    def __repr__(self):
677        """For `print` and `pprint`"""
678        return self.to_str()
679
680    def __eq__(self, other):
681        """Returns true if both objects are equal"""
682        if not isinstance(other, WebFormMetadata):
683            return False
684
685        return self.to_dict() == other.to_dict()
686
687    def __ne__(self, other):
688        """Returns true if both objects are not equal"""
689        if not isinstance(other, WebFormMetadata):
690            return True
691
692        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.

WebFormMetadata(_configuration=None, **kwargs)
 86    def __init__(self, _configuration=None, **kwargs):  # noqa: E501
 87        """WebFormMetadata - a model defined in Swagger"""  # noqa: E501
 88        if _configuration is None:
 89            _configuration = Configuration()
 90        self._configuration = _configuration
 91
 92        self._source = None
 93        self._type = None
 94        self._source_form_id = None
 95        self._owner = None
 96        self._sender = None
 97        self._last_modified_by = None
 98        self._form_content_modified_by = None
 99        self._form_properties_modified_by = None
100        self._last_published_by = None
101        self._last_enabled_by = None
102        self._last_disabled_by = None
103        self._archived_date_time = None
104        self._created_date_time = None
105        self._last_modified_date_time = None
106        self._form_content_modified_date_time = None
107        self._form_properties_modified_date_time = None
108        self._last_published_date_time = None
109        self._last_enabled_date_time = None
110        self._last_disabled_date_time = None
111        self._last_sender_consent_date_time = None
112        self._published_slug = None
113        self._published_component_names = None
114        self.discriminator = None
115
116        setattr(self, "_{}".format('source'), kwargs.get('source', None))
117        setattr(self, "_{}".format('type'), kwargs.get('type', None))
118        setattr(self, "_{}".format('source_form_id'), kwargs.get('source_form_id', None))
119        setattr(self, "_{}".format('owner'), kwargs.get('owner', None))
120        setattr(self, "_{}".format('sender'), kwargs.get('sender', None))
121        setattr(self, "_{}".format('last_modified_by'), kwargs.get('last_modified_by', None))
122        setattr(self, "_{}".format('form_content_modified_by'), kwargs.get('form_content_modified_by', None))
123        setattr(self, "_{}".format('form_properties_modified_by'), kwargs.get('form_properties_modified_by', None))
124        setattr(self, "_{}".format('last_published_by'), kwargs.get('last_published_by', None))
125        setattr(self, "_{}".format('last_enabled_by'), kwargs.get('last_enabled_by', None))
126        setattr(self, "_{}".format('last_disabled_by'), kwargs.get('last_disabled_by', None))
127        setattr(self, "_{}".format('archived_date_time'), kwargs.get('archived_date_time', None))
128        setattr(self, "_{}".format('created_date_time'), kwargs.get('created_date_time', None))
129        setattr(self, "_{}".format('last_modified_date_time'), kwargs.get('last_modified_date_time', None))
130        setattr(self, "_{}".format('form_content_modified_date_time'), kwargs.get('form_content_modified_date_time', None))
131        setattr(self, "_{}".format('form_properties_modified_date_time'), kwargs.get('form_properties_modified_date_time', None))
132        setattr(self, "_{}".format('last_published_date_time'), kwargs.get('last_published_date_time', None))
133        setattr(self, "_{}".format('last_enabled_date_time'), kwargs.get('last_enabled_date_time', None))
134        setattr(self, "_{}".format('last_disabled_date_time'), kwargs.get('last_disabled_date_time', None))
135        setattr(self, "_{}".format('last_sender_consent_date_time'), kwargs.get('last_sender_consent_date_time', None))
136        setattr(self, "_{}".format('published_slug'), kwargs.get('published_slug', None))
137        setattr(self, "_{}".format('published_component_names'), kwargs.get('published_component_names', None))

WebFormMetadata - a model defined in Swagger

swagger_types = {'source': 'WebFormSource', 'type': 'WebFormType', 'source_form_id': 'str', 'owner': 'WebFormUserInfo', 'sender': 'WebFormUserInfo', 'last_modified_by': 'WebFormUserInfo', 'form_content_modified_by': 'WebFormUserInfo', 'form_properties_modified_by': 'WebFormUserInfo', 'last_published_by': 'WebFormUserInfo', 'last_enabled_by': 'WebFormUserInfo', 'last_disabled_by': 'WebFormUserInfo', 'archived_date_time': 'datetime', 'created_date_time': 'datetime', 'last_modified_date_time': 'datetime', 'form_content_modified_date_time': 'datetime', 'form_properties_modified_date_time': 'datetime', 'last_published_date_time': 'datetime', 'last_enabled_date_time': 'datetime', 'last_disabled_date_time': 'datetime', 'last_sender_consent_date_time': 'datetime', 'published_slug': 'str', 'published_component_names': 'dict(str, WebFormComponentType)'}
attribute_map = {'source': 'source', 'type': 'type', 'source_form_id': 'sourceFormId', 'owner': 'owner', 'sender': 'sender', 'last_modified_by': 'lastModifiedBy', 'form_content_modified_by': 'formContentModifiedBy', 'form_properties_modified_by': 'formPropertiesModifiedBy', 'last_published_by': 'lastPublishedBy', 'last_enabled_by': 'lastEnabledBy', 'last_disabled_by': 'lastDisabledBy', 'archived_date_time': 'archivedDateTime', 'created_date_time': 'createdDateTime', 'last_modified_date_time': 'lastModifiedDateTime', 'form_content_modified_date_time': 'formContentModifiedDateTime', 'form_properties_modified_date_time': 'formPropertiesModifiedDateTime', 'last_published_date_time': 'lastPublishedDateTime', 'last_enabled_date_time': 'lastEnabledDateTime', 'last_disabled_date_time': 'lastDisabledDateTime', 'last_sender_consent_date_time': 'lastSenderConsentDateTime', 'published_slug': 'publishedSlug', 'published_component_names': 'publishedComponentNames'}
source

Gets the source of this WebFormMetadata. # noqa: E501

The source from which the webform is created. Accepted values are [templates, blank, form] # noqa: E501

Returns

The source of this WebFormMetadata. # noqa: E501

type

Gets the type of this WebFormMetadata. # noqa: E501

Represents webform type. Possible values are [standalone, hasEsignTemplate] # noqa: E501

Returns

The type of this WebFormMetadata. # noqa: E501

source_form_id

Gets the source_form_id of this WebFormMetadata. # noqa: E501

The source form id from which the webform is created. # noqa: E501

Returns

The source_form_id of this WebFormMetadata. # noqa: E501

owner

Gets the owner of this WebFormMetadata. # noqa: E501

The user that created the form or has been transferred ownership # noqa: E501

Returns

The owner of this WebFormMetadata. # noqa: E501

sender

Gets the sender of this WebFormMetadata. # noqa: E501

The user that has added their consent to the form for sending actions # noqa: E501

Returns

The sender of this WebFormMetadata. # noqa: E501

last_modified_by

Gets the last_modified_by of this WebFormMetadata. # noqa: E501

Track the user that last modified anything related to the form # noqa: E501

Returns

The last_modified_by of this WebFormMetadata. # noqa: E501

form_content_modified_by

Gets the form_content_modified_by of this WebFormMetadata. # noqa: E501

Track the user that last modified the form content # noqa: E501

Returns

The form_content_modified_by of this WebFormMetadata. # noqa: E501

form_properties_modified_by

Gets the form_properties_modified_by of this WebFormMetadata. # noqa: E501

Track the user that last modified the form properties # noqa: E501

Returns

The form_properties_modified_by of this WebFormMetadata. # noqa: E501

last_published_by

Gets the last_published_by of this WebFormMetadata. # noqa: E501

Track the user that last published a draft version to active # noqa: E501

Returns

The last_published_by of this WebFormMetadata. # noqa: E501

last_enabled_by

Gets the last_enabled_by of this WebFormMetadata. # noqa: E501

Track the user that last unpublished an active version # noqa: E501

Returns

The last_enabled_by of this WebFormMetadata. # noqa: E501

last_disabled_by

Gets the last_disabled_by of this WebFormMetadata. # noqa: E501

Track the user that last unpublished an active version # noqa: E501

Returns

The last_disabled_by of this WebFormMetadata. # noqa: E501

archived_date_time

Gets the archived_date_time of this WebFormMetadata. # noqa: E501

The last time the web form was archived # noqa: E501

Returns

The archived_date_time of this WebFormMetadata. # noqa: E501

created_date_time

Gets the created_date_time of this WebFormMetadata. # noqa: E501

Track the time the web form was created # noqa: E501

Returns

The created_date_time of this WebFormMetadata. # noqa: E501

last_modified_date_time

Gets the last_modified_date_time of this WebFormMetadata. # noqa: E501

The last time anything was modified on the form # noqa: E501

Returns

The last_modified_date_time of this WebFormMetadata. # noqa: E501

form_content_modified_date_time

Gets the form_content_modified_date_time of this WebFormMetadata. # noqa: E501

Track the last time web form content changed. # noqa: E501

Returns

The form_content_modified_date_time of this WebFormMetadata. # noqa: E501

form_properties_modified_date_time

Gets the form_properties_modified_date_time of this WebFormMetadata. # noqa: E501

Track the last time the form properties changed. # noqa: E501

Returns

The form_properties_modified_date_time of this WebFormMetadata. # noqa: E501

last_published_date_time

Gets the last_published_date_time of this WebFormMetadata. # noqa: E501

Track the last time a draft version was published to active # noqa: E501

Returns

The last_published_date_time of this WebFormMetadata. # noqa: E501

last_enabled_date_time

Gets the last_enabled_date_time of this WebFormMetadata. # noqa: E501

Track the last time the form was enabled # noqa: E501

Returns

The last_enabled_date_time of this WebFormMetadata. # noqa: E501

last_disabled_date_time

Gets the last_disabled_date_time of this WebFormMetadata. # noqa: E501

Track the last time the form was disabled # noqa: E501

Returns

The last_disabled_date_time of this WebFormMetadata. # noqa: E501

published_slug

Gets the published_slug of this WebFormMetadata. # noqa: E501

The public friendly slug that is used to access the form from the player # noqa: E501

Returns

The published_slug of this WebFormMetadata. # noqa: E501

published_component_names

Gets the published_component_names of this WebFormMetadata. # noqa: E501

A dictionary containing the mapping of component names to their respective component types for all the published components. # noqa: E501

Returns

The published_component_names of this WebFormMetadata. # noqa: E501

def to_dict(self)
645    def to_dict(self):
646        """Returns the model properties as a dict"""
647        result = {}
648
649        for attr, _ in six.iteritems(self.swagger_types):
650            value = getattr(self, attr)
651            if isinstance(value, list):
652                result[attr] = list(map(
653                    lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
654                    value
655                ))
656            elif hasattr(value, "to_dict"):
657                result[attr] = value.to_dict()
658            elif isinstance(value, dict):
659                result[attr] = dict(map(
660                    lambda item: (item[0], item[1].to_dict())
661                    if hasattr(item[1], "to_dict") else item,
662                    value.items()
663                ))
664            else:
665                result[attr] = value
666        if issubclass(WebFormMetadata, dict):
667            for key, value in self.items():
668                result[key] = value
669
670        return result

Returns the model properties as a dict

def to_str(self)
672    def to_str(self):
673        """Returns the string representation of the model"""
674        return pprint.pformat(self.to_dict())

Returns the string representation of the model