DestroyModel, ModelInfo API deprecation

Andrew Wilkins andrew.wilkins at canonical.com
Mon Aug 15 10:52:58 UTC 2016


On Mon, Aug 15, 2016 at 2:13 PM Andrew Wilkins <andrew.wilkins at canonical.com>
wrote:

> 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
>

This has now been done as described. You can continue

 - Cloud.Credentials will be updated or replaced to avoid exposing
> credentials to the client
>

I will be updating the existing API to return new credential tags. Since
this is a new API that nobody should yet be using, I'll save the list from
more emails about it.

There will be one more small change, which is to the CloudCredential field
in the ModelManager.CreateModel parameters. If you're not filling in the
field (most likely), you don't need to do anything. If you are, then let me
know and I'll send you more details when they're finalised.

Cheers,
Andrew

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/b720be0f/attachment.html>


More information about the Juju mailing list