Esempio n. 1
0
 public Task Delete()
 {
     try
     {
         return(VMWProviderVdc.DeleteVMWProviderVdc(this.VcloudClient, this.Reference.href));
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }
Esempio n. 2
0
 public Dictionary <string, ReferenceType> GetAdminVdcRefsByName()
 {
     try
     {
         return(VMWProviderVdc.GetAdminVdcRefs(this.VcloudClient, this._vdcReferences.href));
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }
Esempio n. 3
0
 public static Task Delete(vCloudClient client, ReferenceType vmwProviderVdcRef)
 {
     try
     {
         return(VMWProviderVdc.DeleteVMWProviderVdc(client, vmwProviderVdcRef.href));
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }
Esempio n. 4
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);
     }
 }
Esempio n. 5
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);
     }
 }