async def get(self,request_configuration: Optional[RequestConfiguration[DirectoriesRequestBuilderGetQueryParameters]] = None) -> Optional[DirectoryDefinitionCollectionResponse]:
        """
        Contains the collection of directories and all of their objects.
        param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
        Returns: Optional[DirectoryDefinitionCollectionResponse]
        """
        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_definition_collection_response import DirectoryDefinitionCollectionResponse

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

        Contains the collection of directories and all of their objects.
        param request_configuration: Configuration for the request such as headers, query parameters, and middleware options.
        Returns: Optional[DirectoryDefinitionCollectionResponse]
        
msgraph/generated/service_principals/item/synchronization/templates/item/schema/directories/directories_request_builder.py