class documentation
class LinkExpiry(bb.Union): (source)
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 sharing.LinkExpiry.remove_expiry: Remove the currently set expiry for the link. :ivar datetime.datetime sharing.LinkExpiry.set_expiry: Set a new expiry or change an existing expiry.
Class Method | set |
Create an instance of this class set to the ``set_expiry`` tag with value ``val``. |
Method | get |
Set a new expiry or change an existing expiry. |
Method | is |
Check if the union tag is ``other``. |
Method | is |
Check if the union tag is ``remove_expiry``. |
Method | is |
Check if the union tag is ``set_expiry``. |
Class Variable | other |
Undocumented |
Class Variable | remove |
Undocumented |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |