Add DocStrings for function allocate_for_instance

Add DocStrings about params for function
API::allocate_for_instance.

Change-Id: I1dd1625ed6ebd1dfee6dc71f7227302f3e0ece9f
Merge "Add DocStrings for function allocate_for_instance"