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

import com.alibaba.fastjson.JSONObject;
import com.bocloud.cmp.params.azure.AzureDdosCustomPolicieOperationParams;
import com.bocloud.common.model.*;
import com.bocloud.ims.entity.resource.azure.ddos.DdosCustomPolicie;

import java.util.List;
import java.util.Map;

/**
 * @author wangyu
 * @version 5.0.0-SNAPSHOT
 * @since 2021/3/8
 */
public interface AzureDdosCustomPolicieService {

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

    /**
     * 创建DDOS策略
     *
     * @param policie
     * @param context
     * @return
     */
    BocloudResult<Void> create(DdosCustomPolicie policie, RequestContext context);

    /**
     * 修改DDOS策略
     *
     * @param policie
     * @param context
     * @return
     */
    BocloudResult<Void> modify(DdosCustomPolicie policie, RequestContext context);

    /**
     * 查询DDOS策略详情
     *
     * @param id
     * @return
     */
    BocloudResult<DdosCustomPolicie> detail(Long id);

    /**
     * 删除DDOS策略
     *
     * @param id
     * @param context
     * @return
     */
    BocloudResult<Void> remove(Long id, RequestContext context);

    /**
     * 批量删除DDOS策略
     *
     * @param params
     * @param context
     * @return
     */
    BocloudResult<Void> batchRemove(AzureDdosCustomPolicieOperationParams params, RequestContext context);

    /**
     * 资源分配
     *
     * @param params
     * @param context
     * @return
     */
    BocloudResult<Void> assign(AzureDdosCustomPolicieOperationParams params, RequestContext context);

    /**
     * 批量资源分配
     *
     * @param params
     * @param context
     * @return
     */
    BocloudResult<Void> batchAssign(AzureDdosCustomPolicieOperationParams params, RequestContext context);
}
