The subscription level of a Paper doc. This class acts as a tagged union. Only one of the ``is_*`` methods will return true. To get the associated value of a tag (if one exists), use the corresponding ``get_*`` method. :ivar paper.DocSubscriptionLevel.default: No change email
| 383 | DocLookupError_validator = bv.Union(DocLookupError) |
| 384 | |
| 385 | class DocSubscriptionLevel(bb.Union): |
| 386 | """ |
| 387 | The subscription level of a Paper doc. |
| 388 | |
| 389 | This class acts as a tagged union. Only one of the ``is_*`` methods will |
| 390 | return true. To get the associated value of a tag (if one exists), use the |
| 391 | corresponding ``get_*`` method. |
| 392 | |
| 393 | :ivar paper.DocSubscriptionLevel.default: No change email messages unless |
| 394 | you're the creator. |
| 395 | :ivar paper.DocSubscriptionLevel.ignore: Ignored: Not shown in pad lists or |
| 396 | activity and no email message is sent. |
| 397 | :ivar paper.DocSubscriptionLevel.every: Subscribed: Shown in pad lists and |
| 398 | activity and change email messages are sent. |
| 399 | :ivar paper.DocSubscriptionLevel.no_email: Unsubscribed: Shown in pad lists, |
| 400 | but not in activity and no change email messages are sent. |
| 401 | """ |
| 402 | |
| 403 | _catch_all = None |
| 404 | # Attribute is overwritten below the class definition |
| 405 | default = None |
| 406 | # Attribute is overwritten below the class definition |
| 407 | ignore = None |
| 408 | # Attribute is overwritten below the class definition |
| 409 | every = None |
| 410 | # Attribute is overwritten below the class definition |
| 411 | no_email = None |
| 412 | |
| 413 | def is_default(self): |
| 414 | """ |
| 415 | Check if the union tag is ``default``. |
| 416 | |
| 417 | :rtype: bool |
| 418 | """ |
| 419 | return self._tag == 'default' |
| 420 | |
| 421 | def is_ignore(self): |
| 422 | """ |
| 423 | Check if the union tag is ``ignore``. |
| 424 | |
| 425 | :rtype: bool |
| 426 | """ |
| 427 | return self._tag == 'ignore' |
| 428 | |
| 429 | def is_every(self): |
| 430 | """ |
| 431 | Check if the union tag is ``every``. |
| 432 | |
| 433 | :rtype: bool |
| 434 | """ |
| 435 | return self._tag == 'every' |
| 436 | |
| 437 | def is_no_email(self): |
| 438 | """ |
| 439 | Check if the union tag is ``no_email``. |
| 440 | |
| 441 | :rtype: bool |
| 442 | """ |