class FileErrorResult(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 str sharing.FileErrorResult.file_not_found_error: File specified by id was not found. :ivar str sharing.FileErrorResult.invalid_file_action_error: User does not have permission to take the specified action on the file. :ivar str sharing.FileErrorResult.permission_denied_error: User does not have permission to access file specified by file.Id.
Class Method | file |
Create an instance of this class set to the ``file_not_found_error`` tag with value ``val``. |
Class Method | invalid |
Create an instance of this class set to the ``invalid_file_action_error`` tag with value ``val``. |
Class Method | permission |
Create an instance of this class set to the ``permission_denied_error`` tag with value ``val``. |
Method | get |
File specified by id was not found. |
Method | get |
User does not have permission to take the specified action on the file. |
Method | get |
User does not have permission to access file specified by file.Id. |
Method | is |
Check if the union tag is ``file_not_found_error``. |
Method | is |
Check if the union tag is ``invalid_file_action_error``. |
Method | is |
Check if the union tag is ``other``. |
Method | is |
Check if the union tag is ``permission_denied_error``. |
Class Variable | other |
Undocumented |
Method | _process |
Undocumented |
Class Variable | _catch |
Undocumented |
Create an instance of this class set to the ``file_not_found_error`` tag with value ``val``. :param str val: :rtype: FileErrorResult
Create an instance of this class set to the ``invalid_file_action_error`` tag with value ``val``. :param str val: :rtype: FileErrorResult
Create an instance of this class set to the ``permission_denied_error`` tag with value ``val``. :param str val: :rtype: FileErrorResult
File specified by id was not found. Only call this if :meth:`is_file_not_found_error` is true. :rtype: str
User does not have permission to take the specified action on the file. Only call this if :meth:`is_invalid_file_action_error` is true. :rtype: str
User does not have permission to access file specified by file.Id. Only call this if :meth:`is_permission_denied_error` is true. :rtype: str