func (c *RefreshClient) Refresh(ctx context.Context, config RefreshConfig) ([]transport.RefreshResponse, error) {
	if c.logger.IsTraceEnabled() {
		c.logger.Tracef("Refresh(%s)", pretty.Sprint(config))
	}
	req, err := config.Build()
	if err != nil {
		return nil, errors.Trace(err)
	}
	return c.refresh(ctx, config.Ensure, req)
}
// Refresh is used to refresh installed charms to a more suitable revision.
Refresh is used to refresh installed charms to a more suitable revision.
// Refresh is used to refresh installed charms to a more suitable revision .
func (c *RefreshClient) Refresh(ctx context.Context, config RefreshConfig) ([]transport.RefreshResponse, error) {
	if c.logger.IsTraceEnabled() {
		c.logger.Tracef("Refresh(%s)", pretty.Sprint(config))
	}
	req, err := config.Build()
	if err != nil {
		return nil, errors.Trace(err)
	}
	return c.refresh(ctx, config.Ensure, req)
}
func ( c * RefreshClient ) Refresh ( ctx context . Context , config RefreshConfig ) ( [ ] transport . RefreshResponse , error ) { if c . logger . IsTraceEnabled ( ) { c . logger . Tracef ( " " , pretty . Sprint ( config ) ) } req , err := config . Build ( ) if err != nil { return nil , errors . Trace ( err ) } return c . refresh ( ctx , config . Ensure , req ) }
Refresh is used to refresh installed charms to a more suitable revision.
Refresh is used to refresh installed charms to a more suitable revision .