How to add animation clip into animator?

I want to add an animation clip which I built in C# into animator. But I don’t know how, can anybody help me on this, please?
alt text

built an animation clip using code? For animation to go into animator it needs to be an animation clip and type 2 in the debug mode ( as opposed to type 1 for Animation legacy)