DestroyModel, ModelInfo API deprecation

Andrew Wilkins andrew.wilkins at canonical.com
Mon Aug 15 06:13:56 UTC 2016


Hi,

We're making a handful of changes around model- and cloud-related APIs.
Some of these will be broken in beta16, and some will be deprecated then
and broken directly after.

The first change is to ModelManager.DestroyModel. This method is now
deprecated, and replaced with the pluralised ModelManger.DestroyModels,
which takes a set of model tags. The old method will be removed after
beta16 is out.

The second change is to Client.ModelInfo. This was superseded a while ago
by ModelManager.ModelInfo, which takes model tags. The Client.ModelInfo
method will be removed after beta16 is out.

There's a couple of other changes in the works:
 - Cloud.CloudDefaults will be renamed to DefaultCloud, and just return the
tag of a cloud
 - Cloud.Credentials will be updated or replaced to avoid exposing
credentials to the client
I will reply to this thread when the details of these two have been
finalised.

Cheers,
Andrew
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/juju/attachments/20160815/293a4f58/attachment.html>


More information about the Juju mailing list