Beispiel #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);
     }
 }
Beispiel #2
0
 public void Delete()
 {
     try
     {
         AdminOrganization.DeleteAdminOrg(this.VcloudClient, this.Reference.href);
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }
Beispiel #3
0
 public static void Delete(vCloudClient client, ReferenceType adminOrgRef)
 {
     try
     {
         AdminOrganization.DeleteAdminOrg(client, adminOrgRef.href);
     }
     catch (Exception ex)
     {
         throw new VCloudException(ex.Message);
     }
 }
Beispiel #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);
     }
 }
 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);
     }
 }