resistor/diode in parking break wiring

What's a resistor/diode?