The access permission that can be requested by the caller for the shared link. Note that the final resolved visibility of the shared link takes into account other aspects, such as team and shared folder settings. Check the :class:`ResolvedVisibility` for more info on the possible re
| 940 | AddMemberSelectorError_validator = bv.Union(AddMemberSelectorError) |
| 941 | |
| 942 | class RequestedVisibility(bb.Union): |
| 943 | """ |
| 944 | The access permission that can be requested by the caller for the shared |
| 945 | link. Note that the final resolved visibility of the shared link takes into |
| 946 | account other aspects, such as team and shared folder settings. Check the |
| 947 | :class:`ResolvedVisibility` for more info on the possible resolved |
| 948 | visibility values of shared links. |
| 949 | |
| 950 | This class acts as a tagged union. Only one of the ``is_*`` methods will |
| 951 | return true. To get the associated value of a tag (if one exists), use the |
| 952 | corresponding ``get_*`` method. |
| 953 | |
| 954 | :ivar sharing.RequestedVisibility.public: Anyone who has received the link |
| 955 | can access it. No login required. |
| 956 | :ivar sharing.RequestedVisibility.team_only: Only members of the same team |
| 957 | can access the link. Login is required. |
| 958 | :ivar sharing.RequestedVisibility.password: A link-specific password is |
| 959 | required to access the link. Login is not required. |
| 960 | """ |
| 961 | |
| 962 | _catch_all = None |
| 963 | # Attribute is overwritten below the class definition |
| 964 | public = None |
| 965 | # Attribute is overwritten below the class definition |
| 966 | team_only = None |
| 967 | # Attribute is overwritten below the class definition |
| 968 | password = None |
| 969 | |
| 970 | def is_public(self): |
| 971 | """ |
| 972 | Check if the union tag is ``public``. |
| 973 | |
| 974 | :rtype: bool |
| 975 | """ |
| 976 | return self._tag == 'public' |
| 977 | |
| 978 | def is_team_only(self): |
| 979 | """ |
| 980 | Check if the union tag is ``team_only``. |
| 981 | |
| 982 | :rtype: bool |
| 983 | """ |
| 984 | return self._tag == 'team_only' |
| 985 | |
| 986 | def is_password(self): |
| 987 | """ |
| 988 | Check if the union tag is ``password``. |
| 989 | |
| 990 | :rtype: bool |
| 991 | """ |
| 992 | return self._tag == 'password' |
| 993 | |
| 994 | def _process_custom_annotations(self, annotation_type, field_path, processor): |
| 995 | super(RequestedVisibility, self)._process_custom_annotations(annotation_type, field_path, processor) |
| 996 | |
| 997 | RequestedVisibility_validator = bv.Union(RequestedVisibility) |
| 998 |