I was trying to get the layerDefinition properties and found a reference to the following function. However, it is not available, nor does it show up in the reference information for a DataSource.
Reference to it being available:
Nothing in the API reference:
That method is a part of the subclass FeatureLayerDataSource. But it looks like it is not yet included in the documentation there either.