class documentation

class SharedLinkSettingsError(bb.Union): (source)

View In Hierarchy

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.SharedLinkSettingsError.invalid_settings: The given settings are invalid (for example, all attributes of the :class:`SharedLinkSettings` are empty, the requested visibility is ``RequestedVisibility.password`` but the ``SharedLinkSettings.link_password`` is missing, ``SharedLinkSettings.expires`` is set to the past, etc.). :ivar sharing.SharedLinkSettingsError.not_authorized: User is not allowed to modify the settings of this link. Note that basic users can only set ``RequestedVisibility.public`` as the ``SharedLinkSettings.requested_visibility`` and cannot set ``SharedLinkSettings.expires``.

Method is_invalid_settings Check if the union tag is ``invalid_settings``.
Method is_not_authorized Check if the union tag is ``not_authorized``.
Class Variable invalid_settings Undocumented
Class Variable not_authorized Undocumented
Method _process_custom_annotations Undocumented
Class Variable _catch_all Undocumented
def is_invalid_settings(self): (source)

Check if the union tag is ``invalid_settings``. :rtype: bool

def is_not_authorized(self): (source)

Check if the union tag is ``not_authorized``. :rtype: bool

invalid_settings = (source)

Undocumented

not_authorized = (source)

Undocumented

def _process_custom_annotations(self, annotation_type, field_path, processor): (source)

Undocumented

_catch_all = (source)

Undocumented