func DownloadOneFromRevision(id string, revision int) (RefreshConfig, error) {
	if id == "" {
		return nil, logAndReturnError(errors.NotValidf("empty id"))
	}
	uuid, err := utils.NewUUID()
	if err != nil {
		return nil, logAndReturnError(err)
	}
	return executeOneByRevision{
		action:      DownloadAction,
		instanceKey: uuid.String(),
		ID:          id,
		Revision:    &revision,
		fields:      requiredRefreshFields,
	}, nil
}
// DownloadOneFromRevision creates a request config using the revision and not
// the channel for requesting only one charm.
DownloadOneFromRevision creates a request config using the revision and not
the channel for requesting only one charm.
// DownloadOneFromRevision creates a request config using the revision and not // the channel for requesting only one charm .
func DownloadOneFromRevision(id string, revision int) (RefreshConfig, error) {
	if id == "" {
		return nil, logAndReturnError(errors.NotValidf("empty id"))
	}
	uuid, err := utils.NewUUID()
	if err != nil {
		return nil, logAndReturnError(err)
	}
	return executeOneByRevision{
		action:      DownloadAction,
		instanceKey: uuid.String(),
		ID:          id,
		Revision:    &revision,
		fields:      requiredRefreshFields,
	}, nil
}
func DownloadOneFromRevision ( id string , revision int ) ( RefreshConfig , error ) { if id == " " { return nil , logAndReturnError ( errors . NotValidf ( " " ) ) } uuid , err := utils . NewUUID ( ) if err != nil { return nil , logAndReturnError ( err ) } return executeOneByRevision { action : DownloadAction , instanceKey : uuid . String ( ) , ID : id , Revision : & revision , fields : requiredRefreshFields , } , nil }
DownloadOneFromRevision creates a request config using the revision and not
the channel for requesting only one charm.
DownloadOneFromRevision creates a request config using the revision and not the channel for requesting only one charm .