/*!
 * Copyright 2014 Apereo Foundation (AF) Licensed under the
 * Educational Community License, Version 2.0 (the "License"); you may
 * not use this file except in compliance with the License. You may
 * obtain a copy of the License at
 *
 *     http://opensource.org/licenses/ECL-2.0
 *
 * Unless required by applicable law or agreed to in writing,
 * software distributed under the License is distributed on an "AS IS"
 * BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
 * or implied. See the License for the specific language governing
 * permissions and limitations under the License.
 */

/**
 * @RESTModel TenantNetworkInfo
 *
 * @Required    [displayName]
 * @Property    {string}            displayName         Display name for tenant network
 */

/**
 * @RESTModel TenantAlias
 *
 * @Required    [alias]
 * @Property    {string[]}          alias               Tenant or array of tenants identified by short alias
 */

/**
 * @RESTModel TenantAliases
 *
 * @Required    [aliases]
 * @Property    {string[]}          aliases             Tenant or array of tenants identified by short alias
 */

/**
 * @RESTModel TenantNetworks
 *
 * @Required  []
 * @Property  {TenantNetwork}       {tenantId}          Tenant network for named tenant Identifier
 */

/**
 * @RESTModel TenantNetwork
 *
 * @Required  [displayName, id]
 * @Property  {string}              displayName         Display name for tenant network
 * @Property  {string}              id                  Unique identifier for tenant network
 * @Property  {Tenant[]}            tenants             Tenants associated with tenant network
 */

/**
 * @RESTModel NewTenant
 *
 * @Required  [alias, displayName, host]
 * @Property  {string}            alias           Unique short name for tenant in URLs (should be lowercase)
 * @Property  {string}            displayName     Display name for tenant
 * @Property  {string}            host            Host for tenant
 */

/**
 * @RESTModel Tenants
 *
 * @Required  []
 * @Property  {Tenant[]}        tenants         Tenants
 */

/**
 * @RESTModel TenantUpdate
 *
 * @Required  []
 * @Property  {string}          displayName             Display name for tenant
 * @Property  {string}          host                    Host address for tenant
 */

@@ -631,25 +631,340 @@
 del 
+New
 Tenant
-NetworkInfo
+%0A *%0A * @Required  %5Balias, displayName, host%5D%0A * @Property  %7Bstring%7D            alias           Unique short name for tenant in URLs (should be lowercase)%0A * @Property  %7Bstring%7D            displayName     Display name for tenant%0A * @Property  %7Bstring%7D            host            Host for tenant%0A */%0A%0A/**%0A * @RESTModel Tenant
 %0A *%0A
@@ -980,16 +980,22 @@
 red    %5B
+alias,
 displayN
@@ -997,16 +997,21 @@
 playName
+,host
 %5D%0A * @Pr
@@ -1024,32 +1024,143 @@
     %7Bstring%7D    
+    alias                   Unique short name for tenant in URLs (should be lowercase)%0A * @Property    %7Bstring%7D
         displayN
@@ -1163,32 +1163,36 @@
 layName         
+    
 Display name for
@@ -1194,32 +1194,353 @@
 e for tenant
- network
+%0A * @Property    %7Bstring%7D        host                    Host address for tenant%0A * @Property    %7Bboolean%7D       active                  Is tenant active?%0A * @Property    %7Bboolean%7D       deleted                 Is tenant deleted?%0A * @Property    %7Bboolean%7D       isGlobalAdminServer     Is tenant the global administrative server?
 %0A */%0A%0A/**%0A *
@@ -1907,16 +1907,12 @@
 nant
-Networks
+Info
 %0A *%0A
@@ -1929,109 +1929,198 @@
 ed  
-%5B%5D%0A * @Property  %7BTenantNetwork%7D       %7BtenantId%7D          Tenant network for named tenant Identifier
+  %5Balias,displayName%5D%0A * @Property    %7Bstring%7D        alias                   Unique identifier for tenant%0A * @Property    %7Bstring%7D        displayName             Displayable name for tenant
 %0A */
@@ -2483,33 +2483,41 @@
  @RESTModel 
-New
 Tenant
+NetworkInfo
 %0A *%0A * @Requ
@@ -2518,32 +2518,27 @@
  @Required  
+  
 %5B
-alias, 
 displayName,
@@ -2528,38 +2528,32 @@
     %5BdisplayName
-, host
 %5D%0A * @Property  
@@ -2544,32 +2544,34 @@
 %5D%0A * @Property  
+  
 %7Bstring%7D        
@@ -2578,222 +2578,216 @@
     
-alias           Unique short name for tenant in URLs (should be lowercase)%0A * @Property  %7Bstring%7D            displayName     Display name for tenant%0A * @Property  %7Bstring%7D            host            Host for tenant
+displayName         Display name for tenant network%0A */%0A%0A/**%0A * @RESTModel TenantNetworks%0A *%0A * @Required  %5B%5D%0A * @Property  %7BTenantNetwork%7D       %7BtenantId%7D          Tenant network for named tenant Identifier
 %0A */

add REST models from common module