~juju-qa/ubuntu/xenial/juju/2.0-rc2

« back to all changes in this revision

Viewing changes to src/github.com/juju/juju/apiserver/params/model.go

  • Committer: Nicholas Skaggs
  • Date: 2016-09-30 14:39:30 UTC
  • mfrom: (1.8.1)
  • Revision ID: nicholas.skaggs@canonical.com-20160930143930-vwwhrefh6ftckccy
import upstream

Show diffs side-by-side

added added

removed removed

Lines of Context:
22
22
        Config map[string]ConfigValue `json:"config"`
23
23
}
24
24
 
 
25
// HostedModelConfig contains the model config and the cloud spec
 
26
// for the model, both things that a client needs to talk directly
 
27
// with the provider. This is used to take down mis-behaving models
 
28
// aggressively.
 
29
type HostedModelConfig struct {
 
30
        Name      string                 `json:"name"`
 
31
        OwnerTag  string                 `json:"owner"`
 
32
        Config    map[string]interface{} `json:"config,omitempty"`
 
33
        CloudSpec *CloudSpec             `json:"cloud-spec,omitempty"`
 
34
        Error     *Error                 `json:"error,omitempty"`
 
35
}
 
36
 
 
37
// HostedModelConfigsResults contains an entry for each hosted model
 
38
// in the controller.
 
39
type HostedModelConfigsResults struct {
 
40
        Models []HostedModelConfig `json:"models"`
 
41
}
 
42
 
25
43
// ModelDefaultsResult contains the result of client API calls to get the
26
44
// model default values.
27
45
type ModelDefaultsResult struct {
95
113
        ControllerUUID     string `json:"controller-uuid"`
96
114
        ProviderType       string `json:"provider-type"`
97
115
        DefaultSeries      string `json:"default-series"`
98
 
        Cloud              string `json:"cloud"`
 
116
        CloudTag           string `json:"cloud-tag"`
99
117
        CloudRegion        string `json:"cloud-region,omitempty"`
100
118
        CloudCredentialTag string `json:"cloud-credential-tag,omitempty"`
101
119