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
247
// CharmUrl is the new url for the charm.
247
248
CharmUrl string `json:"charm-url"`
248
250
// Channel is the charm store channel from which the charm came.
249
251
Channel string `json:"channel"`
253
// ConfigSettings is the charm settings to set during the upgrade.
254
// This field is only understood by Application facade version 2
256
ConfigSettings map[string]string `json:"config-settings,omitempty"`
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
262
ConfigSettingsYAML string `json:"config-settings-yaml,omitempty"`
250
264
// ForceUnits forces the upgrade on units in an error state.
251
265
ForceUnits bool `json:"force-units"`
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"`
255
271
// ResourceIDs is a map of resource names to resource IDs to activate during
257
273
ResourceIDs map[string]string `json:"resource-ids,omitempty"`
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"`
260
281
// ApplicationExpose holds the parameters for making the application Expose call.