You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by ed...@apache.org on 2012/10/21 09:02:10 UTC
[6/9] add apidocs/devcloud projects
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b57be338/setup/apidoc/generatetoc.xsl
----------------------------------------------------------------------
diff --git a/setup/apidoc/generatetoc.xsl b/setup/apidoc/generatetoc.xsl
deleted file mode 100644
index 8f30de5..0000000
--- a/setup/apidoc/generatetoc.xsl
+++ /dev/null
@@ -1,1146 +0,0 @@
-<?xml version="1.0"?>
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you under the Apache 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://www.apache.org/licenses/LICENSE-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.
--->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-version="1.0">
-<xsl:template match="/">
-<html>
-<head><title>Cloudstack API</title></head>
-<body>
-<table border="1" cellpadding="1" cellspacing="0.5">
-<tr>
-<h1 ALIGN='CENTER'>Cloudstack API Version 2.2</h1>
-<br/>
-<h2 ALIGN='CENTER'>Table of Contents</h2>
-<th><h3>Name</h3></th>
-<th><h3>Description</h3></th>
-</tr>
-<xsl:for-each select="commands/command">
-<tr>
-<xsl:if test="name='updateAccount'">
-<td><A HREF="/home/aj/workspace/xxml/xml/commands.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='deleteDiskOffering'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='updateDiskOffering'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listOsTypes'">
-<tr>
-<td><h4 ALIGN='CENTER'>OS Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>OS Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listLoadBalancerRuleInstances'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listIsos'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='createDomain'">
-<tr>
-<td><h4 ALIGN='CENTER'>Domain Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Domain Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='extractVolume'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='deployVirtualMachine'">
-<tr>
-<td><h4 ALIGN='CENTER'>Virtual Machine Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Virtual Machine Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listIsoPermissions'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listUsers'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listHypervisors'">
-<tr>
-<td><h4 ALIGN='CENTER'>Hypervisor Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Hypervisor Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='registerPreallocatedLun'">
-<tr>
-<td><h4 ALIGN='CENTER'>Lun Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Lun Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='extractTemplate'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='prepareHostForMaintenance'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listRouters'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='deleteVlanIpRange'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listTemplates'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='authorizeSecurityGroupIngress'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='detachIso'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='createTemplate'">
-<tr>
-<td><h4 ALIGN='CENTER'>Template Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Template Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='cancelHostMaintenance'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='updateVirtualMachine'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='createConfiguration'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listStoragePools'">
-<tr>
-<td><h4 ALIGN='CENTER'>Storage Pool Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Storage Pool Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='deleteServiceOffering'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listPortForwardingRules'">
-<tr>
-<td><h4 ALIGN='CENTER'>Firewall Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Firewall Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='enableStorageMaintenance'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='copyIso'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listTemplatePermissions'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='createInstanceGroup'">
-<tr>
-<td><h4 ALIGN='CENTER'>VM Group Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>VM Group Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listZones'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='updateZone'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listServiceOfferings'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='copyTemplate'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='createVlanIpRange'">
-<tr>
-<td><h4 ALIGN='CENTER'>Vlan Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Vlan Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listDomainChildren'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='deleteZone'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='rebootVirtualMachine'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='addSecondaryStorage'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='startRouter'">
-<tr>
-<td><h4 ALIGN='CENTER'>Router Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Router Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='createServiceOffering'">
-<tr>
-<td><h4 ALIGN='CENTER'>Service Offering Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Service Offering Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='updateServiceOffering'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='createNetwork'">
-<tr>
-<td><h4 ALIGN='CENTER'>Network Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Network Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listSecurityGroups'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='stopVirtualMachine'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listVlanIpRanges'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='restartNetwork'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listInstanceGroups'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='disableUser'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='rebootRouter'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='reconnectHost'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='destroyVirtualMachine'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='rebootSystemVm'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='removeVpnUser'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='deleteStoragePool'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='deleteVolume'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='updateConfiguration'">
-<tr>
-<td><h4 ALIGN='CENTER'>Configuration Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Configuration Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='assignToLoadBalancerRule'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listOsCategories'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='createAccount'">
-<tr>
-<td><h4 ALIGN='CENTER'>Account Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Account Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listAccounts'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='registerUserKeys'">
-<tr>
-<td><h4 ALIGN='CENTER'>Registration Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Registration Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='updateLoadBalancerRule'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='deleteSnapshot'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='createZone'">
-<tr>
-<td><h4 ALIGN='CENTER'>Zone Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Zone Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='createSecurityGroup'">
-<tr>
-<td><h4 ALIGN='CENTER'>Security Group Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Security Group Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='deleteNetwork'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listAlerts'">
-<tr>
-<td><h4 ALIGN='CENTER'>Alert Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Alert Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='stopSystemVm'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='deleteDomain'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listVirtualMachines'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='updateInstanceGroup'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='createPod'">
-<tr>
-<td><h4 ALIGN='CENTER'>Pod Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Pod Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='recoverVirtualMachine'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='queryAsyncJobResult'">
-<tr>
-<td><h4 ALIGN='CENTER'>Async job Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Async job Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='deleteAccount'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='updateResourceLimit'">
-<tr>
-<td><h4 ALIGN='CENTER'>Resource limit Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Resource limit Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listLoadBalancerRules'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listPods'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='deleteLoadBalancerRule'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listNetworkOfferings'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='deleteRemoteAccessVpn'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listIpForwardingRules'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listPreallocatedLuns'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listSnapshotPolicies'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='getCloudIdentifier'">
-<tr>
-<td><h4 ALIGN='CENTER'>Cloudstack Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Cloudstack Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='removeFromLoadBalancerRule'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='resetPasswordForVirtualMachine'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='createStoragePool'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='updateNetworkOffering'">
-<tr>
-<td><h4 ALIGN='CENTER'>Network Offering Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Network Offering Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='updateIsoPermissions'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='addVpnUser'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listResourceLimits'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listHosts'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='attachVolume'">
-<tr>
-<td><h4 ALIGN='CENTER'>Volume Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Volume Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='deleteSnapshotPolicies'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='cancelStorageMaintenance'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listPublicIpAddresses'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='updateTemplatePermissions'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='enableUser'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='registerTemplate'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='associateIpAddress'">
-<tr>
-<td><h4 ALIGN='CENTER'>Ip Address Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Ip Address Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='enableAccount'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listCapabilities'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='createRemoteAccessVpn'">
-<tr>
-<td><h4 ALIGN='CENTER'>VPN Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>VPN Address Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listEvents'">
-<tr>
-<td><h4 ALIGN='CENTER'>Event Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Event Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listSnapshots'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='createPortForwardingRule'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listConfigurations'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='detachVolume'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='deleteTemplate'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='registerIso'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='createLoadBalancerRule'">
-<tr>
-<td><h4 ALIGN='CENTER'>Load Balancer Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Load Balancer Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='updatePod'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listVolumes'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='stopRouter'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listAsyncJobs'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listNetworks'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listDiskOfferings'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='deletePreallocatedLun'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='deleteIpForwardingRule'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='changeServiceForVirtualMachine'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='deleteCluster'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='attachIso'">
-<tr>
-<td><h4 ALIGN='CENTER'>Iso Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Iso Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='changeServiceForRouter'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listRemoteAccessVpns'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='disassociateIpAddress'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listClusters'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listDomains'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='deletePod'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='disableAccount'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='deleteInstanceGroup'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='uploadCustomCertificate'">
-<tr>
-<td><h4 ALIGN='CENTER'>Certificate Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Certificate Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='updateUser'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listVpnUsers'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='addHost'">
-<tr>
-<td><h4 ALIGN='CENTER'>Host Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Host Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='createSnapshot'">
-<tr>
-<td><h4 ALIGN='CENTER'>Snapshot Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Snapshot Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='deleteUser'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listSystemVms'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='extractIso'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='updateTemplate'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='updateHost'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='updateDomain'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='revokeSecurityGroupIngress'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='createDiskOffering'">
-<tr>
-<td><h4 ALIGN='CENTER'>Disk Offering Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Disk Offering Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='updateIso'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='createSnapshotPolicy'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='createIpForwardingRule'">
-<tr>
-<td><h4 ALIGN='CENTER'>NAT Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>NAT Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='deleteSecurityGroup'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='listCapacity'">
-<tr>
-<td><h4 ALIGN='CENTER'>Capacity Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>Capacity Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='deleteHost'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='createUser'">
-<tr>
-<td><h4 ALIGN='CENTER'>User Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>User Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='startSystemVm'">
-<tr>
-<td><h4 ALIGN='CENTER'>System VM Specific Commands</h4><br></br></td>
-<td><h4 ALIGN='CENTER'>System VM Specific Command Descriptions</h4><br></br></td>
-</tr>
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='addCluster'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='deletePortForwardingRule'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='createVolume'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='deleteIso'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-<tr>
-<xsl:if test="name='startVirtualMachine'">
-<td><A HREF="resumepage.html"><xsl:value-of select="name"/></A></td>
-<td><xsl:value-of select="description"/></td>
-</xsl:if>
-</tr>
-</xsl:for-each>
-</table>
-</body></html>
-</xsl:template>
-</xsl:stylesheet>
-
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b57be338/setup/apidoc/generatetoc_footer.xsl
----------------------------------------------------------------------
diff --git a/setup/apidoc/generatetoc_footer.xsl b/setup/apidoc/generatetoc_footer.xsl
deleted file mode 100644
index 5bc2cf4..0000000
--- a/setup/apidoc/generatetoc_footer.xsl
+++ /dev/null
@@ -1,21 +0,0 @@
- </div>
- </div>
- </div>
-
-
- </div>
- </div>
-<div id="footer">
- <div id="footer_mainmaster">
-
- <p>Copyright © 2012 The Apache Software Foundation, Licensed under the
- <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0.</a> <br />
- Apache and the Apache feather logo are trademarks of The Apache Software Foundation.</p>
- </div>
- </div>
- </div>
- </div>
-</body>
-</html>
-</xsl:template>
-</xsl:stylesheet>
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b57be338/setup/apidoc/generatetoc_header.xsl
----------------------------------------------------------------------
diff --git a/setup/apidoc/generatetoc_header.xsl b/setup/apidoc/generatetoc_header.xsl
deleted file mode 100644
index ffb8c29..0000000
--- a/setup/apidoc/generatetoc_header.xsl
+++ /dev/null
@@ -1,70 +0,0 @@
-<?xml version="1.0"?>
-<!--
-Licensed to the Apache Software Foundation (ASF) under one
-or more contributor license agreements. See the NOTICE file
-distributed with this work for additional information
-regarding copyright ownership. The ASF licenses this file
-to you under the Apache 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://www.apache.org/licenses/LICENSE-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.
--->
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-version="1.0">
-<xsl:output method="html" doctype-public="-//W3C//DTD HTML 1.0 Transitional//EN"/>
-<xsl:template match="/">
-<html xmlns="http://www.w3.org/1999/xhtml"><head>
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-<link rel= "stylesheet" href="includes/main.css" type="text/css" />
-<link rel="shortcut icon" href="favicon.ico" type="image/x-icon" />
-
-<title>CloudStack API Reference</title>
-</head>
-
-<body>
-<div id="insidetopbg">
-<div id="inside_wrapper">
- <div class="uppermenu_panel">
- <div class="uppermenu_box"></div>
- </div>
-
- <div id="main_master">
- <div id="inside_header">
- <div class="header_top">
- <a class="cloud_logo" href="http://cloudstack.org"></a>
- <div class="mainemenu_panel">
-
- </div>
- </div>
-
-
- </div>
- <div id="main_content">
-
- <div class="inside_apileftpanel">
- <div class="inside_contentpanel" style="width:930px;">
- <!-- Modify this line for the release version -->
- <h1>Apache CloudStack API Documentation (v4.0.0)</h1>
- <div class="apiannouncement_box">
- <div class="apiannouncement_contentarea">
- <h3>Using the CloudStack API</h3>
- <p>For information about how the APIs work, and tips on how to use them, see the
- <a href="http://docs.cloud.com/CloudStack_Documentation/Developer's_Guide%3A_CloudStack">Developer's Guide</a>.</p>
- </div>
- </div>
-
- <div class="api_leftsections">
- <h3>%API_HEADER%</h3>
- <span>Commands available through the developer API URL and the integration API URL.</span>
- <div class="api_legends">
- <p><span class="api_legends_async">(A)</span> implies that the command is asynchronous.</p>
- <p>(*) implies element has a child.</p>
- </div>
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b57be338/setup/apidoc/generateusercommands.xsl
----------------------------------------------------------------------
diff --git a/setup/apidoc/generateusercommands.xsl b/setup/apidoc/generateusercommands.xsl
deleted file mode 100644
index ca0eb1f..0000000
--- a/setup/apidoc/generateusercommands.xsl
+++ /dev/null
@@ -1,139 +0,0 @@
-<?xml version="1.0"?>
-<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
-version="1.0">
-<xsl:output method="html" doctype-public="-//W3C//DTD HTML 1.0 Transitional//EN"/>
-<xsl:template match="/">
-<html xmlns="http://www.w3.org/1999/xhtml"><head>
-<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-<link rel= "stylesheet" href="../includes/main.css" type="text/css" />
-<link rel="shortcut icon" href="../favicon.ico" type="image/x-icon" />
-
-<title>Apache CloudStack | The Power Behind Your Cloud</title>
-</head>
-
-<body>
-<div id="insidetopbg">
-<div id="inside_wrapper">
- <div class="uppermenu_panel">
- <div class="uppermenu_box"></div>
- </div>
-
- <div id="main_master">
- <div id="inside_header">
-
- <div class="header_top">
- <a class="cloud_logo" href="http://cloudstack.org"></a>
- <div class="mainemenu_panel">
-
- </div>
- </div>
-
- </div>
-
- <div id="main_content">
-
- <div class="inside_apileftpanel">
- <div class="inside_contentpanel" style="width:930px;">
- <div class="api_titlebox">
- <div class="api_titlebox_left">
- <xsl:for-each select="command/command">
- <!-- Modify this line for the release version -->
- <span>
- Apache CloudStack v4.0.0 User API Reference
- </span>
- <p></p>
- <h1><xsl:value-of select="name"/></h1>
- <p><xsl:value-of select="description"/></p>
- </xsl:for-each>
- </div>
-
-
- <div class="api_titlebox_right">
- <a class="api_backbutton" href="../TOC_User.html"></a>
- </div>
- </div>
- <div class="api_tablepanel">
- <h2>Request parameters</h2>
- <table class="apitable">
- <tr class="hed">
- <td style="width:200px;"><strong>Parameter Name</strong></td>
-
- <td style="width:500px;">Description</td>
- <td style="width:180px;">Required</td>
- </tr>
- <xsl:for-each select="command/command/request/arg">
- <tr>
- <xsl:if test="required='true'">
- <td style="width:200px;"><strong><xsl:value-of select="name"/></strong></td>
- <td style="width:500px;"><strong><xsl:value-of select="description"/></strong></td>
- <td style="width:180px;"><strong><xsl:value-of select="required"/></strong></td>
- </xsl:if>
- <xsl:if test="required='false'">
- <td style="width:200px;"><i><xsl:value-of select="name"/></i></td>
- <td style="width:500px;"><i><xsl:value-of select="description"/></i></td>
- <td style="width:180px;"><i><xsl:value-of select="required"/></i></td>
- </xsl:if>
- </tr>
- </xsl:for-each>
- </table>
- </div>
-
-
- <div class="api_tablepanel">
- <h2>Response Tags</h2>
- <table class="apitable">
- <tr class="hed">
- <td style="width:200px;"><strong>Response Name</strong></td>
- <td style="width:500px;">Description</td>
- </tr>
-
- <xsl:for-each select="command/command/response/arg">
- <tr>
- <td style="width:200px;"><strong><xsl:value-of select="name"/></strong></td>
- <td style="width:500px;"><xsl:value-of select="description"/></td>
- <xsl:for-each select="./arguments/arg">
- <tr>
- <td style="width:180px; padding-left:25px;"><strong><xsl:value-of select="name"/></strong></td>
- <td style="width:500px;"><xsl:value-of select="description"/></td>
- </tr>
- <xsl:for-each select="./arguments/arg">
- <tr>
- <td style="width:165px; padding-left:40px;"><xsl:value-of select="name"/></td>
- <td style="width:500px;"><xsl:value-of select="description"/></td>
- </tr>
- </xsl:for-each>
- </xsl:for-each>
- </tr>
- </xsl:for-each>
-
-
-
-
-
- </table>
-
- </div>
-
-
- </div>
- </div>
-
-
- </div>
- </div>
-<div id="footer">
-
- <div id="footer_mainmaster">
- <p>Copyright © 2012 The Apache Software Foundation, Licensed under the
- <a href="http://www.apache.org/licenses/LICENSE-2.0">Apache License, Version 2.0.</a> <br />
- Apache and the Apache feather logo are trademarks of The Apache Software Foundation.</p>
- </div>
- </div>
-
- </div>
- </div>
-</body>
-</html>
-</xsl:template>
-</xsl:stylesheet>
-
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b57be338/setup/apidoc/images/api_bullets.gif
----------------------------------------------------------------------
diff --git a/setup/apidoc/images/api_bullets.gif b/setup/apidoc/images/api_bullets.gif
deleted file mode 100644
index a7ea2f6..0000000
Binary files a/setup/apidoc/images/api_bullets.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b57be338/setup/apidoc/images/back_button.gif
----------------------------------------------------------------------
diff --git a/setup/apidoc/images/back_button.gif b/setup/apidoc/images/back_button.gif
deleted file mode 100644
index 509f256..0000000
Binary files a/setup/apidoc/images/back_button.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b57be338/setup/apidoc/images/back_button_hover.gif
----------------------------------------------------------------------
diff --git a/setup/apidoc/images/back_button_hover.gif b/setup/apidoc/images/back_button_hover.gif
deleted file mode 100644
index 7316e8e..0000000
Binary files a/setup/apidoc/images/back_button_hover.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b57be338/setup/apidoc/images/cloudstack.png
----------------------------------------------------------------------
diff --git a/setup/apidoc/images/cloudstack.png b/setup/apidoc/images/cloudstack.png
deleted file mode 100644
index cc3c9d7..0000000
Binary files a/setup/apidoc/images/cloudstack.png and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b57be338/setup/apidoc/images/ins_buttonshadow.gif
----------------------------------------------------------------------
diff --git a/setup/apidoc/images/ins_buttonshadow.gif b/setup/apidoc/images/ins_buttonshadow.gif
deleted file mode 100644
index ac34ec8..0000000
Binary files a/setup/apidoc/images/ins_buttonshadow.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b57be338/setup/apidoc/images/insdownload_button.gif
----------------------------------------------------------------------
diff --git a/setup/apidoc/images/insdownload_button.gif b/setup/apidoc/images/insdownload_button.gif
deleted file mode 100644
index eb5cb5e..0000000
Binary files a/setup/apidoc/images/insdownload_button.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b57be338/setup/apidoc/images/insdownload_button_hover.gif
----------------------------------------------------------------------
diff --git a/setup/apidoc/images/insdownload_button_hover.gif b/setup/apidoc/images/insdownload_button_hover.gif
deleted file mode 100644
index 424ab46..0000000
Binary files a/setup/apidoc/images/insdownload_button_hover.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b57be338/setup/apidoc/images/insjoincomm_button.gif
----------------------------------------------------------------------
diff --git a/setup/apidoc/images/insjoincomm_button.gif b/setup/apidoc/images/insjoincomm_button.gif
deleted file mode 100644
index f149c85..0000000
Binary files a/setup/apidoc/images/insjoincomm_button.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b57be338/setup/apidoc/images/insjoincomm_button_hover.gif
----------------------------------------------------------------------
diff --git a/setup/apidoc/images/insjoincomm_button_hover.gif b/setup/apidoc/images/insjoincomm_button_hover.gif
deleted file mode 100644
index 74df0a6..0000000
Binary files a/setup/apidoc/images/insjoincomm_button_hover.gif and /dev/null differ
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b57be338/setup/apidoc/includes/main.css
----------------------------------------------------------------------
diff --git a/setup/apidoc/includes/main.css b/setup/apidoc/includes/main.css
deleted file mode 100644
index a8fa348..0000000
--- a/setup/apidoc/includes/main.css
+++ /dev/null
@@ -1,1092 +0,0 @@
-@charset "UTF-8";
-/*
-* Licensed to the Apache Software Foundation (ASF) under one
-* or more contributor license agreements. See the NOTICE file
-* distributed with this work for additional information
-* regarding copyright ownership. The ASF licenses this file
-* to you under the Apache 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://www.apache.org/licenses/LICENSE-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.
-*/
-
-/* CSS Document */
-
-
-*{
- margin:0;
- padding:0;
-}
-
-body{
- font-family:Arial, Helvetica, sans-serif;
- font-size:12px;
- color:#333;
- font-weight:normal;
- background:#FFF repeat top left;
- margin:0;
- padding:0;
-}
-
-
-#inside_wrapper {
- width:auto;
- height:auto;
- margin:0;
- padding:0;
- overflow:hidden;
-}
-
-#insidetopbg {
- width:100%;
- height:auto;
- margin:0;
- padding:0;
- overflow:hidden;
-}
-
-.uppermenu_panel {
- width:100%;
- height:auto;
- float:left;
- margin:0;
- padding:0;
-}
-.uppermenu_box {
- width:auto;
- height:29px;
- float:right;
- margin:0;
- padding:0;
-
-}
-
-.uppermenu {
- width:300px;
- height:auto;
- float:left;
- color:#FFF;
- font-size:13px;
- font-weight:normal;
- text-align:left;
- padding:0;
- margin:4px 10px 0 0;
-}
-
-.uppermenu a:link {
- width:auto;
- height:auto;
- color:#54bfd3;
- font-weight:normal;
- text-align:left;
- text-decoration:none;
- margin:0 5px 0 5px;
-
-}
-
-.uppermenu a:visited {
- width:auto;
- height:auto;
- color:#54bfd3;
- font-weight:normal;
- text-align:left;
- text-decoration:none;
- margin:0 5px 0 5px;
-
-}
-
-.uppermenu a:hover {
- width:auto;
- height:auto;
- color:#ccf004;
- font-weight:normal;
- text-align:left;
- text-decoration:none;
- margin:0 5px 0 5px;
-
-}
-
-
-#main_master {
- width:960px;
- height:auto;
- margin:0 auto;
- padding:0;
-}
-
-#inside_header {
- width:960px;
- height:auto;
- float:left;
- margin:0 0 0 0;
- padding:0;
-}
-
-.header_top {
- width:960px;
- height:67px;
- float:left;
- margin:0;
- padding:0;
-}
-
-.header_bot {
- width:960px;
- height:352px;
- float:left;
- margin:0;
- padding:0;
-}
-
-.insideheader_bot {
- width:960px;
- height:91px;
- float:left;
- margin:0;
- padding:0;
-}
-
-.insideheader_botleft {
- width:620px;
- height:91px;
- float:left;
- margin:0;
- padding:0;
-}
-
-.insideheader_botleft h1 {
- width:auto;
- height:auto;
- float:left;
- color:#199cb4;
- font-size:30px;
- text-align:left;
- font-weight:normal;
- letter-spacing:1px;
- margin:30px 0 0 0;
- padding:0;
-}
-
-.insideheader_botright {
- width:340px;
- height:91px;
- float:left;
- margin:0;
- padding:0;
-}
-
-.insideheader_button {
- width:340px;
- height:32px;
- float:left;
- margin:30px 0 0 0;
- padding:0;
-}
-
-a.insjoincomm_button {
- width:169px;
- height:32px;
- float:left;
- background:url(../images/insjoincomm_button.gif) no-repeat top left;
- margin:0;
- padding:0;
-}
-
-a:hover.insjoincomm_button {
- background:url(../images/insjoincomm_button_hover.gif) no-repeat top left;
-}
-
-a.insdownload_button {
- width:171px;
- height:32px;
- float:left;
- background:url(../images/insdownload_button.gif) no-repeat top left;
- margin:0;
- padding:0;
-}
-
-a:hover.insdownload_button {
- background:url(../images/insdownload_button_hover.gif) no-repeat top left;
-}
-
-.insheader_buttonshadow {
- width:336px;
- height:14px;
- float:left;
- background:url(../images/ins_buttonshadow.gif) no-repeat top left;
- margin:0;
- padding:0;
-}
-.header_botright {
- width:550px;
- height:352px;
- float:left;
- margin:0;
- padding:0;
-}
-
-.clear {
- clear:both;
-}
-
-
-a.cloud_logo {
- width:300px;
- height:51px;
- float:left;
- background:url(../images/cloudstack.png) no-repeat top left;
- margin:8px 0 0 0;
- padding:0;
-}
-
-.mainemenu_panel {
- width: 801px;
- height:51px;
- float:left;
- margin:0;
- padding:0;
-}
-
-.mainemenu_links {
- width: auto;
- height:auto;
- float:right;
- margin:30px 0 0 0;
- padding:0;
-}
-
-.mainemenu_links a:link {
- width: auto;
- height:auto;
- font-size:18px;
- text-align:left;
- font-weight:normal;
- text-decoration:none;
- color:#FFF;
- margin:0 25px 0 0;
- padding:0;
-}
-
-.mainemenu_links a:visited {
- width: auto;
- height:auto;
- font-size:18px;
- text-align:left;
- font-weight:normal;
- text-decoration:none;
- margin:0 25px 0 0;
- padding:0;
- color:#FFF;
-}
-
-.mainemenu_links a:hover {
- width: auto;
- height:auto;
- font-size:18px;
- text-align:left;
- font-weight:normal;
- text-decoration:none;
- margin:0 25px 0 0;
- padding:0;
- color:#FFF;
-}
-
-#main_content {
- width:960px;
- min-height:600px;
- height:auto;
- float:left;
- margin:0;
- padding:0;
-}
-
-.main_homecontent_left {
- width:600px;
- height:auto;
- float:left;
- margin:0;
- padding:0;
-}
-
-.home_introbox {
- width:600px;
- height:auto;
- float:left;
- margin: 25px 0 0 0;
- padding:0;
-}
-
-.home_introbox h1 {
- width:600px;
- height:auto;
- float:left;
- color:#199cb4;
- text-align:left;
- font-weight:normal;
- font-size:22px;
- margin:0;
- padding:0;
-}
-
-.home_introbox p {
- width:600px;
- height:auto;
- float:left;
- text-align:justify;
- font-weight:normal;
- line-height:22px;
- font-size:18px;
- margin:10px 0 0 0;
- padding:0;
-}
-.main_homecontent_right {
- width:311px;
- height:auto;
- float:right;
- margin:0;
- padding:0;
-}
-
-#news_panel {
- width:600px;
- height:auto;
- float:left;
- margin:30px 0 0 0;
- padding:0;
-}
-
-#news_panel h2 {
- width:auto;
- height:auto;
- float:left;
- color:#199cb4;
- font-size:18px;
- font-weight:normal;
- text-align:left;
-}
-
-.news_box {
- width:600px;
- height:auto;
- float:left;
- margin:15px 0 0 0;
- padding:0;
-}
-
-.news_box a:link {
- width:600px;
- height:auto;
- float:left;
- color:#105f8b;
- text-align:left;
- text-decoration:none;
- font-weight:normal;
- font-size:15px;
-}
-
-.news_box a:visited {
- width:600px;
- height:auto;
- float:left;
- color:#105f8b;
- text-align:left;
- text-decoration:none;
- font-weight:normal;
- font-size:15px;
-}
-
-.news_box a:hover {
- width:600px;
- height:auto;
- float:left;
- color:#666;
- text-align:left;
- text-decoration:none;
- font-weight:normal;
- font-size:15px;
-}
-
-.news_box p {
- width:600px;
- height:auto;
- float:left;
- margin:8px 0 0 0;
- text-align:left;
- font-size:12px;
- font-weight:normal;
- padding:0;
-}
-
-.news_box span {
- width:auto;
- height:auto;
- float:left;
- margin:0;
- color:#999;
- text-align:left;
- font-size:11px;
- font-weight:normal;
- padding:0;
-}
-
-#partners_panel {
- width:311px;
- height:auto;
- float:left;
- margin:30px 0 0 0;
- padding:0;
-}
-
-#partners_panel h2 {
- width:300px;
- height:auto;
- float:left;
- color:#199cb4;
- font-size:18px;
- font-weight:normal;
- text-align:left;
-}
-
-.partners_box {
- width:310px;
- height:auto;
- float:left;
- border-bottom:1px solid #CCC;
- margin:15px 0 0 0;
-}
-
-.partners_box_logo {
- width:auto;
- height:auto;
- float:left;
- display:block;
- margin:0 0 10px 0;
- padding:0;
- border:0;
-}
-
-.partners_box_small {
- width:155px;
- height:80px;
- float:left;
- margin:0;
- padding:0;
-}
-
-.readmore_box {
- width:100%;
- height:29px;
- float:left;
- margin:15px 0 0 0;
- padding:0;
-}
-
-.readmore_box a:link {
- width:auto;
- height:auto;
- float:right;
- color:#105f8b;
- font-size:12px;
- font-weight:normal;
- text-decoration:none;
- text-align:right;
- margin:0 10px 0 0;
- padding:0;
-}
-
-.readmore_box a:visited {
- width:auto;
- height:auto;
- float:right;
- color:#105f8b;
- font-size:12px;
- font-weight:normal;
- text-decoration:none;
- text-align:right;
- margin:0 10px 0 0;
- padding:0;
-}
-
-.readmore_box a:hover {
- width:auto;
- height:auto;
- float:right;
- color:#105f8b;
- font-size:12px;
- font-weight:normal;
- text-decoration:underline;
- text-align:right;
- margin:0 10px 0 0;
- padding:0;
-}
-
-#footer {
- width:100%;
- height:auto;
- background:#cdcdcd repeat top left;
- margin:25px 0 0 0;
- padding:0 0 10px 0;
- float:left;
-}
-
-#inside_footer {
- width:100%;
- height:auto;
- background:#cdcdcd repeat top left;
- margin:25px 0 0 0;
- padding:0;
- position:absolute;
- bottom:0;
-}
-
-
-#footer_mainmaster {
- width:960px;
- height:auto;
- margin:0 auto;
- padding:0;
-}
-
-#footer_mainmaster p{
- width:100%;
- height:auto;
- float:left;
- margin:15px 0 0 0;
- text-align:left;
- font-size:11px;
- font-weight:normal;
- padding:0;
-}
-
-.footer_linksbox {
- width:180px;
- height:auto;
- float:left;
- margin: 15px 20px 20px 0;
- padding:0;
-}
-
-.footer_linksbox li {
- width:170px;
- height:auto;
- float:left;
- margin: 0 0 5px 0;
- border-bottom:1px solid #999;
- list-style:none;
- padding:0;
-}
-
-.footer_linksbox a:link {
- width:auto;
- height:auto;
- float:left;
- font-size:11px;
- font-weight:normal;
- color:#666;
- text-decoration:none;
-}
-
-.footer_linksbox a:visited {
- width:auto;
- height:auto;
- float:left;
- font-size:11px;
- font-weight:normal;
- color:#666;
- text-decoration:none;
-}
-
-.footer_linksbox a:hover {
- width:auto;
- height:auto;
- float:left;
- font-size:11px;
- font-weight:normal;
- color:#333;
- text-decoration:none;
-}
-
-.inside_leftpanel {
- width:212px;
- height:auto;
- float:left;
- margin:0;
- padding:0;
-}
-
-.inside_rightpanel {
- width:718px;
- height:auto;
- float:right;
- margin:0;
- padding:0;
-}
-
-.inside_contentpanel {
- width:700px;
- height:auto;
- float:left;
- margin:0 0 0 0;
- padding:0;
-}
-
-.inside_contentpanel h1{
- width:700px;
- height:auto;
- float:left;
- color:#199cb4;
- font-size:20px;
- font-weight:normal;
- text-align:left;
- margin:0;
- padding:0;
-}
-
-.inside_contentpanel h2{
- width:700px;
- height:auto;
- float:left;
- color:#199cb4;
- font-size:16px;
- font-weight:normal;
- text-align:left;
- margin:15px 0 0 0;
- padding:0;
-}
-
-
-.inside_contentpanel h3{
- width:700px;
- height:auto;
- float:left;
- font-size:15px;
- font-weight:bold;
- text-align:left;
- margin:15px 0 0 0;
- padding:0;
-}
-
-.inside_contentpanel h4{
- width:700px;
- height:auto;
- float:left;
- font-size:14px;
- font-weight:normal;
- text-align:left;
- margin:15px 0 10px 15px;
- padding:0;
-}
-
-.inside_contentpanel p {
- width:100%;
- height:auto;
- float:left;
- text-align:justify;
- font-size:12px;
- font-weight:normal;
- margin:10px 0 0 0;
- padding:0;
-}
-
-.inside_contentpanel a:link {
- width:auto;
- height:auto;
- color:#009fcd;
- text-decoration:none;
- text-align:left;
- font-size:12px;
- margin:0;
- padding:0;
-}
-
-.inside_contentpanel a:visited {
- width:auto;
- height:auto;
- color:#009fcd;
- text-decoration:none;
- text-align:left;
- font-size:12px;
- margin:0;
- padding:0;
-}
-
-.inside_contentpanel a:hover {
- width:auto;
- height:auto;
- color:#009fcd;
- text-decoration:underline;
- text-align:left;
- font-size:12px;
- margin:0;
- padding:0;
-}
-
-.download_text {
- width:600px;
- height:auto;
- float:left;
- color:#7418c2;
- text-align:left;
- font-weight:normal;
- font-size:18px;
- margin:20px 0 15px 0
-}
-
-.download_textbox {
- width:720px;
- height:auto;
- float:left;
- color:#333;
- text-align:left;
- font-weight:normal;
- font-size:18px;
- margin:20px 0 15px 0;
- border-top:1px dashed #999;
-}
-
-.screenshots_box {
- width:454px;
- height:455px;
- float:left;
- background:#000 repeat top left;
- margin:20px 0 0 65px;
- display:inline;
-}
-
-.apiannouncement_box {
- width:928px;
- height:auto;
- float:left;
- background:#e0f4ff repeat top left;
- margin:15px 0 0 0;
- border:1px solid #9dd2eb;
-}
-
-.apiannouncement_contentarea {
- width:895px;
- height:auto;
- float:left;
- margin:0 0 0 15px;
- display:inline;
- padding:0;
-}
-
-.inside_apileftpanel {
- width:930px;
- height:left;
- float:left;
- margin:0;
- padding:0;
-}
-
-.api_leftsections {
- width:928px;
- height:auto;
- float:left;
- border-top:1px dashed #666;
- margin:15px 0 0 0;
- padding:0;
-}
-
-
-
-.api_leftsections span {
- width:700px;
- height:auto;
- float:left;
- color:#666;
- font-size:11px;
- font-weight:normal;
- text-align:left;
- margin:7px 0 0 0;
- padding:0;
-}
-
-.api_legends{
- width:300px;
- height:auto;
- float:left;
- background:#f9f9f9;
- border:1px solid #e6e6e6;
- margin:8px 0 0 0;
- padding:0 3px 3px 0;
-}
-
-.api_legends p{
- width:250px;
- height:auto;
- float:left;
- color:#333;
- text-align:left;
- font-size:11px;
- font-weight:normal;
- margin:5px 0 0 5px;
- padding:0;
-}
-
-.api_legends_async{
- width:auto !important;
- height:auto;
- color:#2c8bbc !important;
- font-size:11px;
- font-weight:normal;
- text-align:left;
- margin:0 3px 0 0 !important;
- padding:0;
-}
-
-.api_legends_premium{
- width:auto !important;
- height:auto;
- color:#013150 !important;;
- font-size:11px;
- font-weight:normal;
- text-align:left;
- margin:0 3px 0 0 !important;;
- padding:0;
-}
-
-.apismallsections {
- width:925px;
- height:auto;
- float:left;
- margin:15px 0 0 0;
- list-style:none;
- padding:0;
-}
-
-.apismallbullet_box {
- width:231px;
- height:auto;
- float:left;
- margin:10px 0 0 0;
- list-style:none;
- padding:0;
-}
-
-.apismallbullet_box h5 {
- width:120px;
- height:auto;
- float:left;
- color:#666;
- font-size:12px;
- text-align:left;
- font-weight:bold;
- margin:0;
- padding:0 0 10px 0;
-}
-
-.apismallbullet_box h6 {
- width:120px;
- height:auto;
- float:left;
- color:#6214ab;
- font-size:12px;
- text-align:left;
- font-weight:bold;
- margin:0;
- padding:0 0 10px 0;
-}
-
-.apismallbullet_box li {
- width:188px;
- height:auto;
- float:left;
- margin:4px 0 0 0;
- background:url(../images/api_bullets.gif) no-repeat top left;
- padding:0 0 3px 15px;
- background-position: 2px 2px;
- text-align: left;
- list-style:none;
- border-bottom:1px dotted #999;
-}
-
-.apismallbullet_box a{
- width:auto;
- height:auto;
- float:left;
- color:#2c8bbc;
- font-size:11px !important;
- font-weight:normal;
- text-align:left;
- margin:0;
- padding:0;
- text-decoration:none;
-}
-
-.apismallbullet_box a:link, .apismallbullet_box a:visited {
- text-decoration:none;
-}
-
-.apismallbullet_box a:hover {
- text-decoration:underline;
-}
-
-.api_tablepanel {
- width:920px;
- height:auto;
- float:left;
- margin:15px 0 0 0;
- padding:0;
-}
-
-.api_tablepanel h2{
- width:800px;
- height:auto;
- float:left;
- color:#666;
- font-size:14px;
- font-weight:bold;
- text-align:left;
- margin:15px 0 0 0;
- padding:0;
-}
-
-.apitable {
- width:100%;
- height:auto;
- float:left;
- border:none;
- border-collapse:collapse;
- margin:10px 0 0 0;
- padding:0;
-}
-
-.api_usagebox {
- width:700px;
- height:auto;
- float:left;
- background:#f4f5f5;
- border:1px solid #CCC;
- margin:10px 0 0 30px;
- padding:10px;
- color:#333;
- font-size:11px;
- font-weight:normal;
- text-align:left;
-}
-
-.api_samplebox {
- width:700px;
- height:auto;
- float:left;
- background:#E0F4FF;
- border:1px solid #9DD2EB;
- margin:10px 0 0 30px;
- padding:10px;
- color:#333;
- font-size:11px;
- font-weight:normal;
- text-align:left;
-}
-
-.apitable tr {
- width:100%;
- height:auto;
- float:left;
- border-collapse:collapse;
- border-bottom:1px solid #d5e8f1;
- margin:0;
- padding:0;
-}
-
-.apitable tr.hed {
- width:100%;
- height:22px;
- float:left;
- background:#e7e7e7;
- border-collapse:collapse;
- border-top:1px solid #999;
- border-bottom:1px solid #999;
- margin:15px 0 0 0;
- padding:0;
- border-left:none;
- border-right:none;
-}
-
-.apitable td {
- height:auto;
- float:left;
- border:none;
- color:#333;
- font-size:12px;
- font-weight:normal;
- border-collapse:collapse;
- text-align:left;
- padding:5px;
- margin:0;
-}
-
-
-.apitable td.p{
- height:auto;
- float:left;
- border:none;
- color:#333;
- font-size:12px;
- font-weight:normal;
- text-align:left;
- padding:5px;
- margin:0;
-}
-
-
-
-.api_titlebox {
- width:100%;
- height:auto;
- float:left;
- margin:0;
- padding:0;
-}
-
-.api_titlebox_left {
- width:700px;
- height:auto;
- float:left;
- margin:0;
- padding:0;
-}
-
-.api_titlebox span{
- width:600px;
- height:auto;
- float:left;
- color:#666;
- font-size:11px;
- font-weight:normal;
- font-style:italic;
- text-align:left;
- margin:10px 0 0 0;
- padding:0;
-}
-
-.api_titlebox_right {
- width:200px;
- height:20px;
- float:right;
- margin:0;
- padding:0;
-}
-
-a.api_backbutton {
- width:60px !important;
- height:19px !important;
- float:right;
- background:#F00 url(../images/back_button.gif) no-repeat top left;
- margin:10px 0 0 0 !important;
- padding:0;
- text-decoration:none;
-}
-
-a:hover.api_backbutton {
- background:url(../images/back_button_hover.gif) no-repeat top left;
-}
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b57be338/setup/db/clouddev.sql
----------------------------------------------------------------------
diff --git a/setup/db/clouddev.sql b/setup/db/clouddev.sql
deleted file mode 100644
index 10ad3b2..0000000
--- a/setup/db/clouddev.sql
+++ /dev/null
@@ -1,33 +0,0 @@
--- Licensed to the Apache Software Foundation (ASF) under one
--- or more contributor license agreements. See the NOTICE file
--- distributed with this work for additional information
--- regarding copyright ownership. The ASF licenses this file
--- to you under the Apache 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://www.apache.org/licenses/LICENSE-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.
-
-
-UPDATE `cloud`.`configuration` SET value = 'true' where name = 'use.local.storage';
-UPDATE `cloud`.`configuration` SET value = 'true' where name = 'system.vm.use.local.storage';
-INSERT INTO `cloud`.`disk_offering` (id, name, uuid, display_text, created, use_local_storage, type) VALUES (17, 'tinyOffering', UUID(), 'tinyOffering', NOW(), 1, 'Service');
-INSERT INTO `cloud`.`service_offering` (id, cpu, speed, ram_size) VALUES (17, 1, 100, 100);
-INSERT INTO `cloud`.`disk_offering` (id, name, uuid, display_text, created, type, disk_size) VALUES (18, 'tinyDiskOffering', UUID(), 'tinyDiskOffering', NOW(), 'Disk', 1073741824);
-INSERT INTO `cloud`.`configuration` (name,value) VALUE('router.ram.size', '100');
-INSERT INTO `cloud`.`configuration` (name,value) VALUE('router.cpu.mhz','100');
-INSERT INTO `cloud`.`configuration` (name,value) VALUE('console.ram.size','100');
-INSERT INTO `cloud`.`configuration` (name,value) VALUE('console.cpu.mhz', '100');
-INSERT INTO `cloud`.`configuration` (name,value) VALUE('ssvm.ram.size','100');
-INSERT INTO `cloud`.`configuration` (name,value) VALUE('ssvm.cpu.mhz','100');
-UPDATE `cloud`.`configuration` SET value='10' where name = 'storage.overprovisioning.factor';
-UPDATE `cloud`.`configuration` SET value='10' where name = 'cpu.overprovisioning.factor';
-UPDATE `cloud`.`configuration` SET value='10' where name = 'mem.overprovisioning.factor';
-UPDATE `cloud`.`vm_template` SET unique_name="tiny Linux",name="tiny Linux",url="http://nfs1.lab.vmops.com/templates/ttylinux_pv.vhd",checksum="046e134e642e6d344b34648223ba4bc1",display_text="tiny Linux" where id=5;
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b57be338/tools/apidoc/XmlToHtmlConverter.java
----------------------------------------------------------------------
diff --git a/tools/apidoc/XmlToHtmlConverter.java b/tools/apidoc/XmlToHtmlConverter.java
new file mode 100644
index 0000000..8b7cfcc
--- /dev/null
+++ b/tools/apidoc/XmlToHtmlConverter.java
@@ -0,0 +1,143 @@
+// Licensed to the Apache Software Foundation (ASF) under one
+// or more contributor license agreements. See the NOTICE file
+// distributed with this work for additional information
+// regarding copyright ownership. The ASF licenses this file
+// to you under the Apache 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://www.apache.org/licenses/LICENSE-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.
+import javax.xml.transform.*;
+import java.io.*;
+public class XmlToHtmlConverter extends XmlToHtmlConverterData {
+ // To turn off generation of API docs for certain roles, comment out
+ public static void main(String[] args) {
+ XmlToHtmlConverter x = new XmlToHtmlConverter();
+ x.populateForRootAdmin();
+ x.populateForDomainAdmin();
+ x.populateForUser();
+ x.generateToc();
+ x.generateIndividualCommandPages();
+ }
+ public void generateToc() {
+ try {
+ TransformerFactory tFactory = TransformerFactory.newInstance();
+ // Generate the TOC for the API reference for User role
+ Transformer transformer =
+ tFactory.newTransformer
+ (new javax.xml.transform.stream.StreamSource
+ ("generatetocforuser.xsl"));
+ // Modify this path to match your own setup.
+ transformer.transform
+ (new javax.xml.transform.stream.StreamSource
+ ("regular_user/regularUserSummary.xml"),
+ new javax.xml.transform.stream.StreamResult
+ ( new FileOutputStream("html/TOC_User.html")));
+ // Generate the TOC for root administrator role
+ Transformer transformer1 =
+ tFactory.newTransformer
+ (new javax.xml.transform.stream.StreamSource
+ ("generatetocforadmin.xsl"));
+ // Modify this path to match your own setup.
+ transformer1.transform
+ (new javax.xml.transform.stream.StreamSource
+ ("root_admin/rootAdminSummary.xml"),
+ // Modify this path to your own desired output location.
+ new javax.xml.transform.stream.StreamResult
+ ( new FileOutputStream("html/TOC_Root_Admin.html")));
+ // Generate the TOC for domain admin role
+ Transformer transformer2 =
+ tFactory.newTransformer
+ (new javax.xml.transform.stream.StreamSource
+ ("generatetocfordomainadmin.xsl"));
+
+ // The XML to be transformed must be at the location below.
+ // Modify this path to match your own setup.
+ transformer2.transform
+ (new javax.xml.transform.stream.StreamSource
+ ("domain_admin/domainAdminSummary.xml"),
+ // Modify this path to your own desired output location.
+ new javax.xml.transform.stream.StreamResult
+ ( new FileOutputStream("html/TOC_Domain_Admin.html")));
+
+ }
+ catch (Exception e) {
+ e.printStackTrace( );
+ }
+ }
+
+ // Create man pages
+ public void generateIndividualCommandPages() {
+ for(String commandName : rootAdminCommandNames) {
+
+ try {
+
+ TransformerFactory tFactory = TransformerFactory.newInstance();
+ Transformer transformer =
+ tFactory.newTransformer
+ (new javax.xml.transform.stream.StreamSource
+ ("generateadmincommands.xsl"));
+
+ transformer.transform
+ // Modify this path to the location of the input files on your system.
+ (new javax.xml.transform.stream.StreamSource
+ ("root_admin/"+commandName+".xml"),
+ // Modify this path with the desired output location.
+ new javax.xml.transform.stream.StreamResult
+ ( new FileOutputStream("html/root_admin/"+commandName+".html")));
+ } catch (Exception e) {
+ e.printStackTrace( );
+ }
+ }
+
+ for(String commandName : domainAdminCommandNames) {
+
+ try {
+
+ TransformerFactory tFactory = TransformerFactory.newInstance();
+ Transformer transformer =
+ tFactory.newTransformer
+ (new javax.xml.transform.stream.StreamSource
+ ("generatedomainadmincommands.xsl"));
+
+ transformer.transform
+ // Modify this path with the location of the input files on your system.
+ (new javax.xml.transform.stream.StreamSource
+ ("domain_admin/"+commandName+".xml"),
+ // Modify this path to the desired output location.
+ new javax.xml.transform.stream.StreamResult
+ ( new FileOutputStream("html/domain_admin/"+commandName+".html")));
+ } catch (Exception e) {
+ e.printStackTrace( );
+ }
+ }
+
+ for(String commandName : userCommandNames) {
+
+ try {
+
+ TransformerFactory tFactory = TransformerFactory.newInstance();
+
+ Transformer transformer =
+ tFactory.newTransformer
+ (new javax.xml.transform.stream.StreamSource
+ ("generateusercommands.xsl"));
+
+ transformer.transform
+ (new javax.xml.transform.stream.StreamSource
+ ("regular_user/"+commandName+".xml"),
+ new javax.xml.transform.stream.StreamResult
+ ( new FileOutputStream("html/user/"+commandName+".html")));
+ } catch (Exception e) {
+ e.printStackTrace( );
+ }
+ }
+ }
+}
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b57be338/tools/apidoc/build-apidoc.sh
----------------------------------------------------------------------
diff --git a/tools/apidoc/build-apidoc.sh b/tools/apidoc/build-apidoc.sh
new file mode 100755
index 0000000..14d6459
--- /dev/null
+++ b/tools/apidoc/build-apidoc.sh
@@ -0,0 +1,90 @@
+#!/usr/bin/env bash
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache 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://www.apache.org/licenses/LICENSE-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.
+
+
+# cloud-build-api-doc.sh -- builds api documentation.
+#set -x
+set -u
+TARGETJARDIR="$1"
+shift
+DEPSDIR="$1"
+shift
+DISTDIR="$1"
+shift
+
+canonical_readlink ()
+{
+ cd `dirname $1`;
+ __filename=`basename $1`;
+ if [ -h "$__filename" ]; then
+ canonical_readlink `readlink $__filename`;
+ else
+ echo "`pwd -P`";
+ fi
+}
+
+thisdir=$(canonical_readlink $0)
+
+PATHSEP=':'
+if [[ $OSTYPE == "cygwin" ]] ; then
+ PATHSEP=';'
+fi
+
+CP=$PATHSEP/
+
+for file in $TARGETJARDIR/*.jar
+do
+ CP=${CP}$PATHSEP$file
+done
+
+for file in $DEPSDIR/*.jar; do
+ CP=${CP}$PATHSEP$file
+done
+
+java -cp $CP com.cloud.api.doc.ApiXmlDocWriter -d "$DISTDIR" $*
+
+if [ $? -ne 0 ]
+then
+ exit 1
+fi
+
+set -e
+(cd "$DISTDIR/xmldoc"
+ cp "$thisdir"/*.java .
+ cp "$thisdir"/*.xsl .
+ sed -e 's,%API_HEADER%,User API,g' "$thisdir/generatetoc_header.xsl" >generatetocforuser.xsl
+ sed -e 's,%API_HEADER%,Root Admin API,g' "$thisdir/generatetoc_header.xsl" >generatetocforadmin.xsl
+ sed -e 's,%API_HEADER%,Domain Admin API,g' "$thisdir/generatetoc_header.xsl" >generatetocfordomainadmin.xsl
+
+ python "$thisdir/gen_toc.py" $(find . -type f)
+
+ cat generatetocforuser_include.xsl >>generatetocforuser.xsl
+ cat generatetocforadmin_include.xsl >>generatetocforadmin.xsl
+ cat generatetocfordomainadmin_include.xsl >>generatetocfordomainadmin.xsl
+
+ cat "$thisdir/generatetoc_footer.xsl" >>generatetocforuser.xsl
+ cat "$thisdir/generatetoc_footer.xsl" >>generatetocforadmin.xsl
+ cat "$thisdir/generatetoc_footer.xsl" >>generatetocfordomainadmin.xsl
+
+ mkdir -p html/user html/domain_admin html/root_admin
+ cp -r "$thisdir/includes" html
+ cp -r "$thisdir/images" html
+
+ javac -cp . *.java
+ java -cp . XmlToHtmlConverter
+)
http://git-wip-us.apache.org/repos/asf/incubator-cloudstack/blob/b57be338/tools/apidoc/gen_toc.py
----------------------------------------------------------------------
diff --git a/tools/apidoc/gen_toc.py b/tools/apidoc/gen_toc.py
new file mode 100644
index 0000000..4106531
--- /dev/null
+++ b/tools/apidoc/gen_toc.py
@@ -0,0 +1,270 @@
+#!/usr/bin/python
+# Licensed to the Apache Software Foundation (ASF) under one
+# or more contributor license agreements. See the NOTICE file
+# distributed with this work for additional information
+# regarding copyright ownership. The ASF licenses this file
+# to you under the Apache 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://www.apache.org/licenses/LICENSE-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.
+
+import os
+import os.path
+import sys
+from xml.dom import minidom
+from xml.parsers.expat import ExpatError
+
+
+REGULAR_USER = 'u'
+DOMAIN_ADMIN = 'd'
+ROOT_ADMIN = 'r'
+
+user_to_func = {
+ REGULAR_USER: 'populateForUser',
+ DOMAIN_ADMIN: 'populateForDomainAdmin',
+ ROOT_ADMIN: 'populateForRootAdmin',
+ }
+
+
+user_to_cns = {
+ REGULAR_USER: 'userCommandNames',
+ DOMAIN_ADMIN: 'domainAdminCommandNames',
+ ROOT_ADMIN: 'rootAdminCommandNames',
+ }
+
+
+dirname_to_user = {
+ 'regular_user': REGULAR_USER,
+ 'domain_admin': DOMAIN_ADMIN,
+ 'root_admin': ROOT_ADMIN,
+ }
+
+
+dirname_to_dirname = {
+ 'regular_user': 'user',
+ 'domain_admin': 'domain_admin',
+ 'root_admin': 'root_admin',
+ }
+
+
+known_categories = {
+ 'SystemVm': 'System VM',
+ 'VirtualMachine': 'Virtual Machine',
+ 'VM': 'Virtual Machine',
+ 'Domain': 'Domain',
+ 'Template': 'Template',
+ 'Iso': 'ISO',
+ 'Volume': 'Volume',
+ 'Vlan': 'VLAN',
+ 'IpAddress': 'Address',
+ 'PortForwarding': 'Firewall',
+ 'Firewall': 'Firewall',
+ 'StaticNat': 'NAT',
+ 'IpForwarding': 'NAT',
+ 'Host': 'Host',
+ 'Cluster': 'Cluster',
+ 'Account': 'Account',
+ 'Snapshot': 'Snapshot',
+ 'User': 'User',
+ 'Os': 'Guest OS',
+ 'ServiceOffering': 'Service Offering',
+ 'DiskOffering': 'Disk Offering',
+ 'LoadBalancer': 'Load Balancer',
+ 'Router': 'Router',
+ 'SystemVm': 'System VM',
+ 'Configuration': 'Configuration',
+ 'Capabilities': 'Configuration',
+ 'Pod': 'Pod',
+ 'Zone': 'Zone',
+ 'NetworkOffering': 'Network Offering',
+ 'NetworkACL': 'Network ACL',
+ 'Network': 'Network',
+ 'CiscoNexus': 'Network',
+ 'Vpn': 'VPN',
+ 'Limit': 'Limit',
+ 'ResourceCount': 'Limit',
+ 'CloudIdentifier': 'Cloud Identifier',
+ 'InstanceGroup': 'VM Group',
+ 'StorageMaintenance': 'Storage Pool',
+ 'StoragePool': 'Storage Pool',
+ 'SecurityGroup': 'Security Group',
+ 'SSH': 'SSH',
+ 'register': 'Registration',
+ 'AsyncJob': 'Async job',
+ 'Certificate': 'Certificate',
+ 'Hypervisor': 'Hypervisor',
+ 'Alert': 'Alert',
+ 'Event': 'Event',
+ 'login': 'Login',
+ 'logout': 'Logout',
+ 'Capacity': 'System Capacity',
+ 'NetworkDevice': 'Network Device',
+ 'ExternalLoadBalancer': 'Ext Load Balancer',
+ 'ExternalFirewall': 'Ext Firewall',
+ 'Usage': 'Usage',
+ 'TrafficMonitor': 'Usage',
+ 'TrafficType': 'Usage',
+ 'Product': 'Product',
+ 'LB': 'Load Balancer',
+ 'ldap': 'LDAP',
+ 'Swift': 'Swift',
+ 'SecondaryStorage': 'Host',
+ 'Project': 'Project',
+ 'Lun': 'Storage',
+ 'Pool': 'Pool',
+ 'VPC': 'VPC',
+ 'PrivateGateway': 'VPC',
+ 'StaticRoute': 'VPC',
+ 'Tags': 'Resource tags',
+ 'NiciraNvpDevice': 'Nicira NVP'
+ }
+
+
+categories = {}
+
+
+def choose_category(fn):
+ for k, v in known_categories.iteritems():
+ if k in fn:
+ return v
+ raise Exception('Need to add a category for %s to %s:known_categories' %
+ (fn, __file__))
+ sys.exit(1)
+
+
+for f in sys.argv:
+ dirname, fn = os.path.split(f)
+ if not fn.endswith('.xml'):
+ continue
+ if fn.endswith('Summary.xml'):
+ continue
+ if fn.endswith('SummarySorted.xml'):
+ continue
+ if fn == 'alert_types.xml':
+ continue
+ if dirname.startswith('./'):
+ dirname = dirname[2:]
+ try:
+ dom = minidom.parse(file(f))
+ name = dom.getElementsByTagName('name')[0].firstChild.data
+ isAsync = dom.getElementsByTagName('isAsync')[0].firstChild.data
+ category = choose_category(fn)
+ if category not in categories:
+ categories[category] = []
+ categories[category].append({
+ 'name': name,
+ 'dirname': dirname_to_dirname[dirname],
+ 'async': isAsync == 'true',
+ 'user': dirname_to_user[dirname],
+ })
+ except ExpatError, e:
+ pass
+ except IndexError, e:
+ print fn
+
+
+def xml_for(command):
+ name = command['name']
+ async = command['async'] and ' (A)' or ''
+ dirname = command['dirname']
+ return '''<xsl:if test="name=\'%(name)s\'">
+<li><a href="%(dirname)s/%(name)s.html"><xsl:value-of select="name"/>%(async)s</a></li>
+</xsl:if>
+''' % locals()
+
+
+def write_xml(out, user):
+ with file(out, 'w') as f:
+ cat_strings = []
+
+ for category in categories.keys():
+ strings = []
+ for command in categories[category]:
+ if command['user'] == user:
+ strings.append(xml_for(command))
+ if strings:
+ all_strings = ''.join(strings)
+ cat_strings.append((len(strings), category, all_strings))
+
+ cat_strings.sort(reverse=True)
+
+ i = 0
+ for _1, category, all_strings in cat_strings:
+ if i == 0:
+ print >>f, '<div class="apismallsections">'
+ print >>f, '''<div class="apismallbullet_box">
+<h5>%(category)s</h5>
+<ul>
+<xsl:for-each select="commands/command">
+%(all_strings)s
+</xsl:for-each>
+</ul>
+</div>
+
+''' % locals()
+ if i == 3:
+ print >>f, '</div>'
+ i = 0
+ else:
+ i += 1
+ if i != 0:
+ print >>f, '</div>'
+
+
+def java_for(command, user):
+ name = command['name']
+ cns = user_to_cns[user]
+ return '''%(cns)s.add("%(name)s");
+''' % locals()
+
+
+def java_for_user(user):
+ strings = []
+ for category in categories.keys():
+ for command in categories[category]:
+ if command['user'] == user:
+ strings.append(java_for(command, user))
+ func = user_to_func[user]
+ all_strings = ''.join(strings)
+ return '''
+ public void %(func)s() {
+ %(all_strings)s
+ }
+''' % locals()
+
+
+def write_java(out):
+ with file(out, 'w') as f:
+ print >>f, '''/* Generated using gen_toc.py. Do not edit. */
+
+import java.util.HashSet;
+import java.util.Set;
+
+public class XmlToHtmlConverterData {
+
+ Set<String> rootAdminCommandNames = new HashSet<String>();
+ Set<String> domainAdminCommandNames = new HashSet<String>();
+ Set<String> userCommandNames = new HashSet<String>();
+
+'''
+ print >>f, java_for_user(REGULAR_USER)
+ print >>f, java_for_user(ROOT_ADMIN)
+ print >>f, java_for_user(DOMAIN_ADMIN)
+
+ print >>f, '''
+}
+'''
+
+
+write_xml('generatetocforuser_include.xsl', REGULAR_USER)
+write_xml('generatetocforadmin_include.xsl', ROOT_ADMIN)
+write_xml('generatetocfordomainadmin_include.xsl', DOMAIN_ADMIN)
+write_java('XmlToHtmlConverterData.java')