I am writing a Python script to process mesh data using PyQIS. I would like to specify the dataset, in groups, and change the color styling. This is easily done through the GUI interface, However, I have not found a way to do this using PyQGIS.
Are the classes to do this part of QgsMeshLayer or do they exist somewhere else in PyQGIS?

QgsMeshLayer.rendererSettings(qgis.core.QgsMeshRendererSettings)