本文整理汇总了Java中com.huawei.esdk.fusioncompute.local.model.storage.AvailableDatastoreQueryParams.setScope方法的典型用法代码示例。如果您正苦于以下问题:Java AvailableDatastoreQueryParams.setScope方法的具体用法?Java AvailableDatastoreQueryParams.setScope怎么用?Java AvailableDatastoreQueryParams.setScope使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.huawei.esdk.fusioncompute.local.model.storage.AvailableDatastoreQueryParams
的用法示例。
在下文中一共展示了AvailableDatastoreQueryParams.setScope方法的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: testQueryavailabledatastore
import com.huawei.esdk.fusioncompute.local.model.storage.AvailableDatastoreQueryParams; //导入方法依赖的package包/类
@Test
public void testQueryavailabledatastore()
{
AvailableDatastoreQueryParams param = new AvailableDatastoreQueryParams();
param.setLimit(10);
param.setOffset(0);
param.setScope("urn:sites:3EBE06F9:hosts:134");
param.setDatastoreURN("urn:sites:3EBE06F9:datastores:1");
// FCSDKResponse<PageList<Datastore>> lists =
dataStorageResource.queryAvailableDatastore("/service/sites/3EBE06F9", param);
}
示例2: testQueryavailabledatastore
import com.huawei.esdk.fusioncompute.local.model.storage.AvailableDatastoreQueryParams; //导入方法依赖的package包/类
@Test
public void testQueryavailabledatastore()
{
String uri = "/service/sites/400E07BB";
AvailableDatastoreQueryParams param = new AvailableDatastoreQueryParams();
param.setLimit(1);
param.setOffset(0);
param.setScope("urn:sites:400E07BB:clusters:11");
param.setDatastoreURN("urn:sites:400E07BB:datastores:2");
// param.setScope("urn:sites:400E07BB:hosts:112");
// param.setDatastoreURN("urn:sites:400E07BB:datastores:3");
// param.setScope("urn%3Asites%3A400E07BB%3Aclusters%3A11");
// param.setDatastoreURN("urn%3Asites%3A400E07BB%3Adatastores%3A1");
param.setDataStoreStorageType(100);
FCSDKResponse<PageList<Datastore>> lists = dataStorageResource.queryAvailableDatastore(uri, param);
try
{
List<Datastore> li = lists.getResult().getList();
for (Datastore datastore : li)
{
System.out.println(datastore.getName());
}
}
catch (NullPointerException e)
{
}
}
示例3: testQueryavailabledatastore
import com.huawei.esdk.fusioncompute.local.model.storage.AvailableDatastoreQueryParams; //导入方法依赖的package包/类
@Test
public void testQueryavailabledatastore()
{
String uri = "/service/sites/400E07BB";
AvailableDatastoreQueryParams param = new AvailableDatastoreQueryParams();
param.setLimit(1);
param.setOffset(0);
param.setScope("urn:sites:400E07BB:clusters:11");
param.setDatastoreURN("urn:sites:400E07BB:datastores:1");
// param.setScope("urn:sites:400E07BB:hosts:112");
// param.setDatastoreURN("urn:sites:400E07BB:datastores:3");
// param.setScope("urn%3Asites%3A400E07BB%3Aclusters%3A11");
// param.setDatastoreURN("urn%3Asites%3A400E07BB%3Adatastores%3A1");
param.setDataStoreStorageType(100);
FCSDKResponse<PageList<Datastore>> lists = dataStorageResource.queryAvailableDatastore(uri, param);
try
{
List<Datastore> li = lists.getResult().getList();
for (Datastore datastore : li)
{
System.out.println(datastore.getName());
}
}
catch (NullPointerException e)
{
}
}