From 335218867c3aa85e32dcfafbc0ed847fa97862d3 Mon Sep 17 00:00:00 2001 From: Richard Downer Date: Wed, 7 Dec 2011 12:05:46 +0200 Subject: [PATCH] Update Javadoc on CreateNetworkOptions: information about account ownership --- .../options/CreateNetworkOptions.java | 22 +++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/apis/cloudstack/src/main/java/org/jclouds/cloudstack/options/CreateNetworkOptions.java b/apis/cloudstack/src/main/java/org/jclouds/cloudstack/options/CreateNetworkOptions.java index 555f5eec39..e35d8400f1 100644 --- a/apis/cloudstack/src/main/java/org/jclouds/cloudstack/options/CreateNetworkOptions.java +++ b/apis/cloudstack/src/main/java/org/jclouds/cloudstack/options/CreateNetworkOptions.java @@ -187,7 +187,16 @@ public class CreateNetworkOptions extends AccountInDomainOptions { } /** - * {@inheritDoc} + * Specify the account that will own the network. This can be run by a privileged user to be + * able to set advanced network properties, such as the VLAN tag, and then to immediately pass + * ownership of the network to an unprivileged user. + * + * Note that the unprivileged user will be able to delete the network later, since they are it's owner. + * + * @param account + * account name + * @param domain + * domain ID */ @Override public CreateNetworkOptions accountInDomain(String account, long domain) { @@ -195,7 +204,16 @@ public class CreateNetworkOptions extends AccountInDomainOptions { } /** - * {@inheritDoc} + * Specify the domain that will own the network. Any user in the domain can then use this + * network. + * + * CloudStack requires that when using this option, you also specify isShared(true). + * + * Changes or deletions to this network must be done by a domain admin in the same domain, or a + * global admin. + * + * @param domainId + * domain ID */ @Override public CreateNetworkOptions domainId(long domainId) {