def by_on_premises_directory_synchronization_id(self,on_premises_directory_synchronization_id: str) -> OnPremisesDirectorySynchronizationItemRequestBuilder:
        """
        Provides operations to manage the onPremisesSynchronization property of the microsoft.graph.directory entity.
        param on_premises_directory_synchronization_id: The unique identifier of onPremisesDirectorySynchronization
        Returns: OnPremisesDirectorySynchronizationItemRequestBuilder
        """
        if on_premises_directory_synchronization_id is None:
            raise TypeError("on_premises_directory_synchronization_id cannot be null.")
        from .item.on_premises_directory_synchronization_item_request_builder import OnPremisesDirectorySynchronizationItemRequestBuilder

        url_tpl_params = get_path_parameters(self.path_parameters)
        url_tpl_params["onPremisesDirectorySynchronization%2Did"] = on_premises_directory_synchronization_id
        return OnPremisesDirectorySynchronizationItemRequestBuilder(self.request_adapter, url_tpl_params)

        Provides operations to manage the onPremisesSynchronization property of the microsoft.graph.directory entity.
        param on_premises_directory_synchronization_id: The unique identifier of onPremisesDirectorySynchronization
        Returns: OnPremisesDirectorySynchronizationItemRequestBuilder
        
msgraph/generated/directory/on_premises_synchronization/on_premises_synchronization_request_builder.py