async def get(self,request_configuration: Optional[RequestConfiguration[DirectoryRolesRequestBuilderGetQueryParameters]] = None) -> Optional[DirectoryRoleCollectionResponse]:
        """
        List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated.  When assigning a role using the Microsoft Entra admin center, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Microsoft Entra ID, use List directoryRoleTemplates.
        param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
        Returns: Optional[DirectoryRoleCollectionResponse]
        Find more info here: https://learn.microsoft.com/graph/api/directoryrole-list?view=graph-rest-1.0
        """
        request_info = self.to_get_request_information(
            request_configuration
        )
        from ..models.o_data_errors.o_data_error import ODataError

        error_mapping: dict[str, type[ParsableFactory]] = {
            "XXX": ODataError,
        }
        if not self.request_adapter:
            raise Exception("Http core is null") 
        from ..models.directory_role_collection_response import DirectoryRoleCollectionResponse

        return await self.request_adapter.send_async(request_info, DirectoryRoleCollectionResponse, error_mapping)

        List the directory roles that are activated in the tenant. This operation only returns roles that have been activated. A role becomes activated when an admin activates the role using the Activate directoryRole API. Not all built-in roles are initially activated.  When assigning a role using the Microsoft Entra admin center, the role activation step is implicitly done on the admin's behalf. To get the full list of roles that are available in Microsoft Entra ID, use List directoryRoleTemplates.
        param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
        Returns: Optional[DirectoryRoleCollectionResponse]
        Find more info here: https://learn.microsoft.com/graph/api/directoryrole-list?view=graph-rest-1.0
        
msgraph/generated/directory_roles/directory_roles_request_builder.py