def by_device_id(self,device_id: str) -> DeviceItemRequestBuilder:
        """
        Provides operations to manage the collection of device entities.
        param device_id: The unique identifier of device
        Returns: DeviceItemRequestBuilder
        """
        if device_id is None:
            raise TypeError("device_id cannot be null.")
        from .item.device_item_request_builder import DeviceItemRequestBuilder

        url_tpl_params = get_path_parameters(self.path_parameters)
        url_tpl_params["device%2Did"] = device_id
        return DeviceItemRequestBuilder(self.request_adapter, url_tpl_params)

        Provides operations to manage the collection of device entities.
        param device_id: The unique identifier of device
        Returns: DeviceItemRequestBuilder
        
msgraph/generated/devices/devices_request_builder.py