Exemplo n.º 1
0
 public void Disable()
 {
     try
     {
         AdminOrganization.ExecuteOrgAction(this.VcloudClient, this.Reference.href + "/action/disable", (string)null, (string)null, 204);
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }
Exemplo n.º 2
0
 public void Delete()
 {
     try
     {
         AdminOrganization.DeleteAdminOrg(this.VcloudClient, this.Reference.href);
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }
Exemplo n.º 3
0
 public static void Delete(vCloudClient client, ReferenceType adminOrgRef)
 {
     try
     {
         AdminOrganization.DeleteAdminOrg(client, adminOrgRef.href);
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }
Exemplo n.º 4
0
 public static void Disable(vCloudClient client, ReferenceType adminOrgRef)
 {
     try
     {
         string orgActionUrl = adminOrgRef.href + "/action/disable";
         AdminOrganization.ExecuteOrgAction(client, orgActionUrl, (string)null, (string)null, 204);
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }
Exemplo n.º 5
0
 public AdminOrganization GetSystemAdminOrg()
 {
     try
     {
         if (this._systemAdminOrgReference == null)
         {
             throw new VCloudException(SdkUtil.GetI18nString(SdkMessage.REFERENCE_NOT_FOUND_MSG));
         }
         return(AdminOrganization.GetAdminOrgByReference(this._client, this._systemAdminOrgReference));
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }