Error returned when getting member custom quota. 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 team.CustomQuotaError.too_many_users: A ma
| 858 | BaseTeamFolderError_validator = bv.Union(BaseTeamFolderError) |
| 859 | |
| 860 | class CustomQuotaError(bb.Union): |
| 861 | """ |
| 862 | Error returned when getting member custom quota. |
| 863 | |
| 864 | This class acts as a tagged union. Only one of the ``is_*`` methods will |
| 865 | return true. To get the associated value of a tag (if one exists), use the |
| 866 | corresponding ``get_*`` method. |
| 867 | |
| 868 | :ivar team.CustomQuotaError.too_many_users: A maximum of 1000 users can be |
| 869 | set for a single call. |
| 870 | """ |
| 871 | |
| 872 | _catch_all = 'other' |
| 873 | # Attribute is overwritten below the class definition |
| 874 | too_many_users = None |
| 875 | # Attribute is overwritten below the class definition |
| 876 | other = None |
| 877 | |
| 878 | def is_too_many_users(self): |
| 879 | """ |
| 880 | Check if the union tag is ``too_many_users``. |
| 881 | |
| 882 | :rtype: bool |
| 883 | """ |
| 884 | return self._tag == 'too_many_users' |
| 885 | |
| 886 | def is_other(self): |
| 887 | """ |
| 888 | Check if the union tag is ``other``. |
| 889 | |
| 890 | :rtype: bool |
| 891 | """ |
| 892 | return self._tag == 'other' |
| 893 | |
| 894 | def _process_custom_annotations(self, annotation_type, field_path, processor): |
| 895 | super(CustomQuotaError, self)._process_custom_annotations(annotation_type, field_path, processor) |
| 896 | |
| 897 | CustomQuotaError_validator = bv.Union(CustomQuotaError) |
| 898 |