def by_directory_role_id(self,directory_role_id: str) -> DirectoryRoleItemRequestBuilder:
        """
        Provides operations to manage the collection of directoryRole entities.
        param directory_role_id: The unique identifier of directoryRole
        Returns: DirectoryRoleItemRequestBuilder
        """
        if directory_role_id is None:
            raise TypeError("directory_role_id cannot be null.")
        from .item.directory_role_item_request_builder import DirectoryRoleItemRequestBuilder

        url_tpl_params = get_path_parameters(self.path_parameters)
        url_tpl_params["directoryRole%2Did"] = directory_role_id
        return DirectoryRoleItemRequestBuilder(self.request_adapter, url_tpl_params)

        Provides operations to manage the collection of directoryRole entities.
        param directory_role_id: The unique identifier of directoryRole
        Returns: DirectoryRoleItemRequestBuilder
        
msgraph/generated/directory_roles/directory_roles_request_builder.py