~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/params.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:
243
243
type ApplicationSetCharm struct {
244
244
        // ApplicationName is the name of the application to set the charm on.
245
245
        ApplicationName string `json:"application"`
 
246
 
246
247
        // CharmUrl is the new url for the charm.
247
248
        CharmUrl string `json:"charm-url"`
 
249
 
248
250
        // Channel is the charm store channel from which the charm came.
249
251
        Channel string `json:"channel"`
 
252
 
 
253
        // ConfigSettings is the charm settings to set during the upgrade.
 
254
        // This field is only understood by Application facade version 2
 
255
        // and greater.
 
256
        ConfigSettings map[string]string `json:"config-settings,omitempty"`
 
257
 
 
258
        // ConfigSettingsYAML is the charm settings in YAML format to set
 
259
        // during the upgrade. If this is non-empty, it will take precedence
 
260
        // over ConfigSettings. This field is only understood by Application
 
261
        // facade version 2
 
262
        ConfigSettingsYAML string `json:"config-settings-yaml,omitempty"`
 
263
 
250
264
        // ForceUnits forces the upgrade on units in an error state.
251
265
        ForceUnits bool `json:"force-units"`
 
266
 
252
267
        // ForceSeries forces the use of the charm even if it doesn't match the
253
268
        // series of the unit.
254
269
        ForceSeries bool `json:"force-series"`
 
270
 
255
271
        // ResourceIDs is a map of resource names to resource IDs to activate during
256
272
        // the upgrade.
257
273
        ResourceIDs map[string]string `json:"resource-ids,omitempty"`
 
274
 
 
275
        // StorageConstraints is a map of storage names to storage constraints to
 
276
        // update during the upgrade. This field is only understood by Application
 
277
        // facade version 2 and greater.
 
278
        StorageConstraints map[string]StorageConstraints `json:"storage-constraints,omitempty"`
258
279
}
259
280
 
260
281
// ApplicationExpose holds the parameters for making the application Expose call.