How to access a GameObject animation in unity 5?

I want to stop animation from a game object but acessing .animation doesnt give me the Stop method.

besides, .animation property is deprecated

Use GetComponent.