package com.bocloud.ims.interfaces.resource;

import com.bocloud.common.model.BocloudResult;
import com.bocloud.common.model.GridBean;
import com.bocloud.common.model.Pager;
import com.bocloud.common.model.RequestContext;
import com.bocloud.ims.entity.resource.Backup;

/**
 * 华为存储库
 *
 * @author admin
 */
public interface BackupService {

    /**
     * 列表展示
     *
     * @param pager
     * @param context
     * @return
     */
    BocloudResult<GridBean<Backup>> list(Pager pager, RequestContext context);

    /**
     * 创建
     *
     * @param backup
     * @param context
     * @return
     */
    BocloudResult<Backup> create(Backup backup, RequestContext context);

    /**
     * 修改
     *
     * @param backup
     * @param context
     * @return
     */
    BocloudResult<Backup> modify(Backup backup, RequestContext context);

    /**
     * 删除
     *
     * @param id
     * @param context
     * @return
     */
    BocloudResult remove(Long id, RequestContext context);

    /**
     * 详情
     *
     * @param id
     * @return
     */
    BocloudResult<Backup> detail(Long id);

    /**
     * 备份恢复
     *
     * @param backup
     * @param context
     * @return
     */
    BocloudResult restore(Backup backup, RequestContext context);

}
