Closed stephen-hoover closed 5 years ago
@elsander , see what you think of the naming and other design choices here. It's not obvious what the right interface would be. I considered adding a list_models_shares
function as well, but doing that right would be really complex, and I wasn't sure it was worth it.
I think the function names make a lot of sense. I could see the list function being useful, but if it's complex to implement it's probably not worth doing right now. If we hear requests for it we could reevaluate.
@elsander , I addressed your comments.
A CivisML model has File and Project run outputs, each of which need to be shared to effectively share the "model". This helper will transparently handle sharing the run outputs. Include JSONValue in case a future version of CivisML uses that. The functions are patterned after the autogenerated API sharing endpoints.