Use model.component(<ctag>).mesh(<tag>).create(<ftag>,"FreeQuad") to create an unstructured quadrilateral mesh.
Use model.component(<ctag>).mesh(<tag>).feature(<ftag>).selection() to specify the domain (boundary in 3D) selection. If you do not specify any selection the feature creates a mesh on the remaining geometric entities in 2D. In 3D, the default selection is empty.
Use model.component(<ctag>).mesh(<tag>).feature(<ftag>).create(<ftag1>,ftype) to add attribute features.
See the FreeTet feature for more information on the properties.
For imported meshes, there is a default size attribute under the FreeQuad feature with the tag size. You can access it using
model.component(<ctag>).mesh(<tag>).feature(<ftag>).feature("size").