Example #1
0
 public static Dictionary <string, VMWProviderVdcResourcePoolType> GetResourcePoolsByMoref(
     vCloudClient client,
     ReferenceType vmwProvVdcRef)
 {
     try
     {
         return(VMWProviderVdc.GetResourcePools(client, vmwProvVdcRef));
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }
Example #2
0
 public Dictionary <string, VMWProviderVdcResourcePoolType> GetResourcePoolsByMoref()
 {
     try
     {
         if (this._vmwProvVdcResPoolsByMoref == null || this._vmwProvVdcResPoolsByMoref.Count == 0)
         {
             this._vmwProvVdcResPoolsByMoref = VMWProviderVdc.GetResourcePools(this.VcloudClient, this.Reference);
         }
         return(this._vmwProvVdcResPoolsByMoref);
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }