Sharing actions that may be taken on files. 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.FileAction.disable_viewer_info: Disable
| 1684 | ExpectedSharedContentLinkMetadata_validator = bv.Struct(ExpectedSharedContentLinkMetadata) |
| 1685 | |
| 1686 | class FileAction(bb.Union): |
| 1687 | """ |
| 1688 | Sharing actions that may be taken on files. |
| 1689 | |
| 1690 | This class acts as a tagged union. Only one of the ``is_*`` methods will |
| 1691 | return true. To get the associated value of a tag (if one exists), use the |
| 1692 | corresponding ``get_*`` method. |
| 1693 | |
| 1694 | :ivar sharing.FileAction.disable_viewer_info: Disable viewer information on |
| 1695 | the file. |
| 1696 | :ivar sharing.FileAction.edit_contents: Change or edit contents of the file. |
| 1697 | :ivar sharing.FileAction.enable_viewer_info: Enable viewer information on |
| 1698 | the file. |
| 1699 | :ivar sharing.FileAction.invite_viewer: Add a member with view permissions. |
| 1700 | :ivar sharing.FileAction.invite_viewer_no_comment: Add a member with view |
| 1701 | permissions but no comment permissions. |
| 1702 | :ivar sharing.FileAction.invite_editor: Add a member with edit permissions. |
| 1703 | :ivar sharing.FileAction.unshare: Stop sharing this file. |
| 1704 | :ivar sharing.FileAction.relinquish_membership: Relinquish one's own |
| 1705 | membership to the file. |
| 1706 | :ivar sharing.FileAction.share_link: Use create_view_link and |
| 1707 | create_edit_link instead. |
| 1708 | :ivar sharing.FileAction.create_link: Use create_view_link and |
| 1709 | create_edit_link instead. |
| 1710 | :ivar sharing.FileAction.create_view_link: Create a shared link to a file |
| 1711 | that only allows users to view the content. |
| 1712 | :ivar sharing.FileAction.create_edit_link: Create a shared link to a file |
| 1713 | that allows users to edit the content. |
| 1714 | """ |
| 1715 | |
| 1716 | _catch_all = 'other' |
| 1717 | # Attribute is overwritten below the class definition |
| 1718 | disable_viewer_info = None |
| 1719 | # Attribute is overwritten below the class definition |
| 1720 | edit_contents = None |
| 1721 | # Attribute is overwritten below the class definition |
| 1722 | enable_viewer_info = None |
| 1723 | # Attribute is overwritten below the class definition |
| 1724 | invite_viewer = None |
| 1725 | # Attribute is overwritten below the class definition |
| 1726 | invite_viewer_no_comment = None |
| 1727 | # Attribute is overwritten below the class definition |
| 1728 | invite_editor = None |
| 1729 | # Attribute is overwritten below the class definition |
| 1730 | unshare = None |
| 1731 | # Attribute is overwritten below the class definition |
| 1732 | relinquish_membership = None |
| 1733 | # Attribute is overwritten below the class definition |
| 1734 | share_link = None |
| 1735 | # Attribute is overwritten below the class definition |
| 1736 | create_link = None |
| 1737 | # Attribute is overwritten below the class definition |
| 1738 | create_view_link = None |
| 1739 | # Attribute is overwritten below the class definition |
| 1740 | create_edit_link = None |
| 1741 | # Attribute is overwritten below the class definition |
| 1742 | other = None |
| 1743 |