class documentation

class ListFileMembersIndividualResult(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 ListFileMembersCountResult ListFileMembersIndividualResult.result: The results of the query for this file if it was successful. :ivar SharingFileAccessError ListFileMembersIndividualResult.access_error: The result of the query for this file if it was an error.

Class Method access_error Create an instance of this class set to the ``access_error`` tag with value ``val``.
Class Method result Create an instance of this class set to the ``result`` tag with value ``val``.
Method get_access_error The result of the query for this file if it was an error.
Method get_result The results of the query for this file if it was successful.
Method is_access_error Check if the union tag is ``access_error``.
Method is_other Check if the union tag is ``other``.
Method is_result Check if the union tag is ``result``.
Class Variable other Undocumented
Method _process_custom_annotations Undocumented
Class Variable _catch_all Undocumented
@classmethod
def access_error(cls, val): (source)

Create an instance of this class set to the ``access_error`` tag with value ``val``. :param SharingFileAccessError val: :rtype: ListFileMembersIndividualResult

@classmethod
def result(cls, val): (source)

Create an instance of this class set to the ``result`` tag with value ``val``. :param ListFileMembersCountResult val: :rtype: ListFileMembersIndividualResult

def get_access_error(self): (source)

The result of the query for this file if it was an error. Only call this if :meth:`is_access_error` is true. :rtype: SharingFileAccessError

def get_result(self): (source)

The results of the query for this file if it was successful. Only call this if :meth:`is_result` is true. :rtype: ListFileMembersCountResult

def is_access_error(self): (source)

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

def is_other(self): (source)

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

def is_result(self): (source)

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

Undocumented

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

Undocumented

_catch_all: str = (source)

Undocumented