| 
									
										
										
										
											2024-01-16 15:04:35 -08:00
										 |  |  | from enum import Enum | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | class OrgRole(str, Enum): | 
					
						
							| 
									
										
										
										
											2024-02-24 17:03:55 -08:00
										 |  |  |     """The roles in an organization."""  # noqa: E501 | 
					
						
							| 
									
										
										
										
											2024-01-16 15:04:35 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  |     """# Admins can do anything in the org. """  # noqa: E501 | 
					
						
							|  |  |  |     ADMIN = "admin" | 
					
						
							|  |  |  |     """# Members of an org can not modify an org, but they belong in the org. """  # noqa: E501 | 
					
						
							|  |  |  |     MEMBER = "member" | 
					
						
							| 
									
										
										
										
											2024-02-24 17:03:55 -08:00
										 |  |  |     """# A service account role. """  # noqa: E501 | 
					
						
							|  |  |  |     SERVICE_ACCOUNT = "service_account" | 
					
						
							| 
									
										
										
										
											2024-01-16 15:04:35 -08:00
										 |  |  | 
 | 
					
						
							|  |  |  |     def __str__(self) -> str: | 
					
						
							|  |  |  |         return str(self.value) |