package com.huawei.esdk.fm.local.local.resources.datastore;

import com.huawei.esdk.fm.local.local.model.datastore.QueryDataStoreReq;
import com.huawei.esdk.fm.local.local.model.datastore.QueryDataStoreResp;


/**
 * 
 * 数据存储资源
 * <p><b>代码示例：</b></p>
 * &nbsp;&nbsp;&nbsp;&nbsp;ClientProviderBean bean = new ClientProviderBean();<br>
 * &nbsp;&nbsp;&nbsp;&nbsp;//设置FM所在的IP<br>
 * &nbsp;&nbsp;&nbsp;&nbsp;bean.setServerIp("188.188.40.43");<br>
 * &nbsp;&nbsp;&nbsp;&nbsp;//设置FM的端口<br>
 * &nbsp;&nbsp;&nbsp;&nbsp;bean.setServerPort("643");<br>
 * &nbsp;&nbsp;&nbsp;&nbsp;//设置FM的用户名<br>
 * &nbsp;&nbsp;&nbsp;&nbsp;bean.setUserName("fm01");<br>
 * &nbsp;&nbsp;&nbsp;&nbsp;//获取DatastoreResource接口的实现<br>
 * &nbsp;&nbsp;&nbsp;&nbsp;DatastoreResource service = ServiceFactory.getService(DatastoreResource.class, bean);<br>
 * @since eSDK Cloud V100R003C50
 */
public interface DatastoreResource
{
    /**
     * 
     * 查询数据存储信息。
     * 
     * <p><b>代码示例：</b></p>
     * &nbsp;&nbsp;&nbsp;&nbsp;  QueryDataStoreReq req = new QueryDataStoreReq();<br>
     * &nbsp;&nbsp;&nbsp;&nbsp;  req.setDetail(0);<br>
     * &nbsp;&nbsp;&nbsp;&nbsp;  req.setScopeType("ZONE");<br>
     * &nbsp;&nbsp;&nbsp;&nbsp;  req.setLimit(10);<br>
     * &nbsp;&nbsp;&nbsp;&nbsp;  req.setOffset(0);<br>
     * &nbsp;&nbsp;&nbsp;&nbsp;  req.setScopeObjectId("4616189618054758401");<br>
     * &nbsp;&nbsp;&nbsp;&nbsp;  req.setCategory("0");<br>
     * &nbsp;&nbsp;&nbsp;&nbsp;  service.queryDataStores(req, "1");
        
     * @param req 【必选】查询数据存储请求信息。 
     * @param vdcId 【必选】VDC ID，LOCAL侧值为1
     * @return {@code QueryDataStoreResp}
     * @since eSDK Cloud V100R003C50
     */
    public QueryDataStoreResp queryDataStores(QueryDataStoreReq req, String vdcId);
}
