class GetFileMetadataIndividualResult(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 SharedFileMetadata GetFileMetadataIndividualResult.metadata: The result for this file if it was successful. :ivar SharingFileAccessError GetFileMetadataIndividualResult.access_error: The result for this file if it was an error.
Class Method | access |
Create an instance of this class set to the ``access_error`` tag with value ``val``. |
Class Method | metadata |
Create an instance of this class set to the ``metadata`` tag with value ``val``. |
Method | get |
The result for this file if it was an error. |
Method | get |
The result for this file if it was successful. |
Method | is |
Check if the union tag is ``access_error``. |
Method | is |
Check if the union tag is ``metadata``. |
Method | is |
Check if the union tag is ``other``. |
Class Variable | other |
Undocumented |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |
Create an instance of this class set to the ``access_error`` tag with value ``val``. :param SharingFileAccessError val: :rtype: GetFileMetadataIndividualResult
Create an instance of this class set to the ``metadata`` tag with value ``val``. :param SharedFileMetadata val: :rtype: GetFileMetadataIndividualResult
The result for this file if it was an error. Only call this if :meth:`is_access_error` is true. :rtype: SharingFileAccessError
The result for this file if it was successful. Only call this if :meth:`is_metadata` is true. :rtype: SharedFileMetadata