Exemplo n.º 1
0
 public void ChangeOwner(ReferenceType userReference)
 {
     try
     {
         AdminCatalog.ChangeOwner(this.Reference.href + "/owner", userReference, this.VcloudClient);
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }
Exemplo n.º 2
0
 public static void Delete(vCloudClient client, ReferenceType adminCatalogRef)
 {
     try
     {
         AdminCatalog.DeleteAdminCatalog(client, adminCatalogRef.href);
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }
Exemplo n.º 3
0
 public void Delete()
 {
     try
     {
         AdminCatalog.DeleteAdminCatalog(this.VcloudClient, this.Reference.href);
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }
Exemplo n.º 4
0
 public static void ChangeOwner(
     vCloudClient client,
     ReferenceType catalogRef,
     ReferenceType userReference)
 {
     try
     {
         AdminCatalog.ChangeOwner(catalogRef.href + "/owner", userReference, client);
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }