package com.bocloud.ims.interfaces.resource.azure.ddos;

import com.alibaba.fastjson.JSONObject;
import com.bocloud.cmp.model.DeleteParam;
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.azure.ddos.DdosProtectionPlan;

/**
 * DDOS防护计划
 *
 * @author wangyu
 * @version 5.0.0-SNAPSHOT
 * @since 2021/3/5
 */
public interface DdosProtectionPlanService {

    /**
     * 查询列表
     *
     * @param pager
     * @param context
     * @return
     */
    BocloudResult<GridBean<DdosProtectionPlan>> list(Pager pager, RequestContext context);

    /**
     * 创建DDOS防护计划
     *
     * @param plan
     * @param context
     * @return
     */
    BocloudResult<DdosProtectionPlan> create(DdosProtectionPlan plan, RequestContext context);

    /**
     * 修改DDOS防护计划
     *
     * @param plan
     * @param context
     * @return
     */
    BocloudResult<DdosProtectionPlan> modify(DdosProtectionPlan plan, RequestContext context);

    /**
     * 查询DDOS防护计划详情
     *
     * @param id
     * @param context
     * @return
     */
    BocloudResult<DdosProtectionPlan> detail(Long id, RequestContext context);

    /**
     * 删除DDOS防护计划
     *
     * @param id
     * @param context
     * @return
     */
    BocloudResult remove(Long id, RequestContext context);

    /**
     * 批量删除DDOS防护计划
     *
     * @param params
     * @param context
     * @return
     */
    BocloudResult batchRemove(DeleteParam params, RequestContext context);

    /**
     * 资源分配
     *
     * @param object
     * @param context
     * @return
     */
    BocloudResult assign(JSONObject object, RequestContext context);

}
