func (c *Client) SetApplicationConfig(branchName, application string, config map[string]string) error {
	apiVersion := c.BestAPIVersion()
	if apiVersion < 6 || apiVersion > 12 {
		return errors.NotSupportedf("SetApplicationsConfig not supported by this version of Juju")
	}
	args := params.ApplicationConfigSetArgs{
		Args: []params.ApplicationConfigSet{{
			ApplicationName: application,
			Generation:      branchName,
			Config:          config,
		}},
	}
	var results params.ErrorResults
	err := c.facade.FacadeCall("SetApplicationsConfig", args, &results)
	if err != nil {
		return errors.Trace(err)
	}
	return results.OneError()
}
// SetApplicationConfig sets configuration options on an application and the charm,
// from the provided map.
// Note: The name is misleading as charm config is also set.
SetApplicationConfig sets configuration options on an application and the charm,
from the provided map.
Note: The name is misleading as charm config is also set.
// SetApplicationConfig sets configuration options on an application and the charm // from the provided map . // Note : The name is misleading as charm config is also set .
func (c *Client) SetApplicationConfig(branchName, application string, config map[string]string) error {
	apiVersion := c.BestAPIVersion()
	if apiVersion < 6 || apiVersion > 12 {
		return errors.NotSupportedf("SetApplicationsConfig not supported by this version of Juju")
	}
	args := params.ApplicationConfigSetArgs{
		Args: []params.ApplicationConfigSet{{
			ApplicationName: application,
			Generation:      branchName,
			Config:          config,
		}},
	}
	var results params.ErrorResults
	err := c.facade.FacadeCall("SetApplicationsConfig", args, &results)
	if err != nil {
		return errors.Trace(err)
	}
	return results.OneError()
}
func ( c * Client ) SetApplicationConfig ( branchName , application string , config map [ string ] string ) error { apiVersion := c . BestAPIVersion ( ) if apiVersion < 6 || apiVersion > 12 { return errors . NotSupportedf ( " " ) } args := params . ApplicationConfigSetArgs { Args : [ ] params . ApplicationConfigSet { { ApplicationName : application , Generation : branchName , Config : config , } } , } var results params . ErrorResults err := c . facade . FacadeCall ( " " , args , & results ) if err != nil { return errors . Trace ( err ) } return results . OneError ( ) }
SetApplicationConfig sets configuration options on an application and the charm,
from the provided map.
SetApplicationConfig sets configuration options on an application and the charm from the provided map .