Search in sources :

Example 31 with ResourceGroupState

use of com.vmware.photon.controller.model.resources.ResourceGroupService.ResourceGroupState in project photon-model by vmware.

the class StorageDescriptionServiceTest method buildValidResourceGroupState.

private static ResourceGroupState buildValidResourceGroupState(String value) throws Throwable {
    ResourceGroupState rg = new ResourceGroupState();
    rg.id = value;
    rg.name = "my resource group";
    rg.customProperties = new HashMap<>();
    rg.customProperties.put("key1", "value1");
    return rg;
}
Also used : ResourceGroupState(com.vmware.photon.controller.model.resources.ResourceGroupService.ResourceGroupState)

Aggregations

ResourceGroupState (com.vmware.photon.controller.model.resources.ResourceGroupService.ResourceGroupState)31 Operation (com.vmware.xenon.common.Operation)10 QueryTask (com.vmware.xenon.services.common.QueryTask)10 ComputeProperties (com.vmware.photon.controller.model.ComputeProperties)9 QueryUtils (com.vmware.photon.controller.model.query.QueryUtils)9 ResourceState (com.vmware.photon.controller.model.resources.ResourceState)9 List (java.util.List)9 AdapterUtils (com.vmware.photon.controller.model.adapters.util.AdapterUtils)8 ResourceGroupService (com.vmware.photon.controller.model.resources.ResourceGroupService)8 StorageDescription (com.vmware.photon.controller.model.resources.StorageDescriptionService.StorageDescription)8 ManagedObjectReference (com.vmware.vim25.ManagedObjectReference)8 ServiceDocumentQueryResult (com.vmware.xenon.common.ServiceDocumentQueryResult)8 Collections (java.util.Collections)8 CompletionHandler (com.vmware.xenon.common.Operation.CompletionHandler)7 Utils (com.vmware.xenon.common.Utils)7 AuthCredentialsServiceState (com.vmware.xenon.services.common.AuthCredentialsService.AuthCredentialsServiceState)7 ArrayList (java.util.ArrayList)7 HashSet (java.util.HashSet)7 Builder (com.vmware.xenon.services.common.QueryTask.Query.Builder)6 VimNames (com.vmware.photon.controller.model.adapters.vsphere.util.VimNames)5