I'm trying to automate the creation of some query layers with a toolbox and I've run into a problem that has me stumped. I need to save a particular string to each layer however I can't find a way to do it. Ideally I'd just save it the description of the layer however it looks likes the description property of the layer class has been depreciated in ArcPro. I attempted to alter the metadata however the query layers are created with metadata isReadOnly property set to true. I can't seem to find a way to programmatically add metadata to it as a result of this.
Any suggestions?