func (c *Client) SetConfig(branchName, application, configYAML string, config map[string]string) error {
	if c.BestAPIVersion() < 13 {
		return errors.NotSupportedf("SetConfig not supported by this version of Juju")
	}
	args := params.ConfigSetArgs{
		Args: []params.ConfigSet{{
			ApplicationName: application,
			Generation:      branchName,
			Config:          config,
			ConfigYAML:      configYAML,
		}},
	}
	var results params.ErrorResults
	err := c.facade.FacadeCall("SetConfigs", args, &results)
	if err != nil {
		return errors.Trace(err)
	}
	return results.OneError()
}
// SetConfig sets configuration options on an application and the charm.
SetConfig sets configuration options on an application and the charm.
// SetConfig sets configuration options on an application and the charm .
func (c *Client) SetConfig(branchName, application, configYAML string, config map[string]string) error {
	if c.BestAPIVersion() < 13 {
		return errors.NotSupportedf("SetConfig not supported by this version of Juju")
	}
	args := params.ConfigSetArgs{
		Args: []params.ConfigSet{{
			ApplicationName: application,
			Generation:      branchName,
			Config:          config,
			ConfigYAML:      configYAML,
		}},
	}
	var results params.ErrorResults
	err := c.facade.FacadeCall("SetConfigs", args, &results)
	if err != nil {
		return errors.Trace(err)
	}
	return results.OneError()
}
func ( c * Client ) SetConfig ( branchName , application , configYAML string , config map [ string ] string ) error { if c . BestAPIVersion ( ) < 13 { return errors . NotSupportedf ( " " ) } args := params . ConfigSetArgs { Args : [ ] params . ConfigSet { { ApplicationName : application , Generation : branchName , Config : config , ConfigYAML : configYAML , } } , } var results params . ErrorResults err := c . facade . FacadeCall ( " " , args , & results ) if err != nil { return errors . Trace ( err ) } return results . OneError ( ) }
SetConfig sets configuration options on an application and the charm.
SetConfig sets configuration options on an application and the charm .