You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jclouds.apache.org by ev...@apache.org on 2014/11/18 19:56:19 UTC

[4/5] jclouds git commit: JCLOUDS-716: Remove Rackspace First-Gen Cloud Servers

http://git-wip-us.apache.org/repos/asf/jclouds/blob/162226b8/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/BackupSchedule.java
----------------------------------------------------------------------
diff --git a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/BackupSchedule.java b/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/BackupSchedule.java
deleted file mode 100644
index dc46e3a..0000000
--- a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/BackupSchedule.java
+++ /dev/null
@@ -1,143 +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.
- */
-package org.jclouds.cloudservers.domain;
-
-import java.beans.ConstructorProperties;
-
-import org.jclouds.javax.annotation.Nullable;
-
-import com.google.common.base.Objects;
-import com.google.common.base.Objects.ToStringHelper;
-
-/**
- * A backup schedule can be defined to create server images at regular intervals (daily and weekly).
- * Backup schedules are configurable per server.
- * 
-*/
-public class BackupSchedule {
-
-   public static Builder<?> builder() { 
-      return new ConcreteBuilder();
-   }
-   
-   public Builder<?> toBuilder() { 
-      return new ConcreteBuilder().fromBackupSchedule(this);
-   }
-
-   public abstract static class Builder<T extends Builder<T>>  {
-      protected abstract T self();
-
-      protected DailyBackup daily;
-      protected boolean enabled;
-      protected WeeklyBackup weekly;
-   
-      /** 
-       * @see BackupSchedule#getDaily()
-       */
-      public T daily(DailyBackup daily) {
-         this.daily = daily;
-         return self();
-      }
-
-      /** 
-       * @see BackupSchedule#isEnabled()
-       */
-      public T enabled(boolean enabled) {
-         this.enabled = enabled;
-         return self();
-      }
-
-      /** 
-       * @see BackupSchedule#getWeekly()
-       */
-      public T weekly(WeeklyBackup weekly) {
-         this.weekly = weekly;
-         return self();
-      }
-
-      public BackupSchedule build() {
-         return new BackupSchedule(daily, enabled, weekly);
-      }
-      
-      public T fromBackupSchedule(BackupSchedule in) {
-         return this
-                  .daily(in.getDaily())
-                  .enabled(in.isEnabled())
-                  .weekly(in.getWeekly());
-      }
-   }
-
-   private static class ConcreteBuilder extends Builder<ConcreteBuilder> {
-      @Override
-      protected ConcreteBuilder self() {
-         return this;
-      }
-   }
-
-   private final DailyBackup daily;
-   private final boolean enabled;
-   private final WeeklyBackup weekly;
-
-   @ConstructorProperties({
-      "daily", "enabled", "weekly"
-   })
-   protected BackupSchedule(@Nullable DailyBackup daily, boolean enabled, @Nullable WeeklyBackup weekly) {
-      this.daily = daily;
-      this.enabled = enabled;
-      this.weekly = weekly;
-   }
-
-   @Nullable
-   public DailyBackup getDaily() {
-      return this.daily;
-   }
-
-   public boolean isEnabled() {
-      return this.enabled;
-   }
-
-   @Nullable
-   public WeeklyBackup getWeekly() {
-      return this.weekly;
-   }
-
-   @Override
-   public int hashCode() {
-      return Objects.hashCode(daily, enabled, weekly);
-   }
-
-   @Override
-   public boolean equals(Object obj) {
-      if (this == obj) return true;
-      if (obj == null || getClass() != obj.getClass()) return false;
-      BackupSchedule that = BackupSchedule.class.cast(obj);
-      return Objects.equal(this.daily, that.daily)
-               && Objects.equal(this.enabled, that.enabled)
-               && Objects.equal(this.weekly, that.weekly);
-   }
-   
-   protected ToStringHelper string() {
-      return Objects.toStringHelper(this)
-            .add("daily", daily).add("enabled", enabled).add("weekly", weekly);
-   }
-   
-   @Override
-   public String toString() {
-      return string().toString();
-   }
-
-}

http://git-wip-us.apache.org/repos/asf/jclouds/blob/162226b8/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/DailyBackup.java
----------------------------------------------------------------------
diff --git a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/DailyBackup.java b/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/DailyBackup.java
deleted file mode 100644
index d76c00e..0000000
--- a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/DailyBackup.java
+++ /dev/null
@@ -1,35 +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.
- */
-package org.jclouds.cloudservers.domain;
-
-public enum DailyBackup {
-
-   DISABLED, H_0000_0200, H_0200_0400, H_0400_0600, H_0600_0800, H_0800_1000, H_1000_1200, H_1200_1400, H_1400_1600, H_1600_1800, H_1800_2000, H_2000_2200, H_2200_0000, UNRECOGNIZED;
-
-   public String value() {
-      return name();
-   }
-
-   public static DailyBackup fromValue(String v) {
-      try {
-         return valueOf(v);
-      } catch (IllegalArgumentException e) {
-         return UNRECOGNIZED;
-      }
-   }
-
-}

http://git-wip-us.apache.org/repos/asf/jclouds/blob/162226b8/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/Flavor.java
----------------------------------------------------------------------
diff --git a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/Flavor.java b/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/Flavor.java
deleted file mode 100644
index 4edc77f..0000000
--- a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/Flavor.java
+++ /dev/null
@@ -1,162 +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.
- */
-package org.jclouds.cloudservers.domain;
-
-import static com.google.common.base.Preconditions.checkNotNull;
-
-import java.beans.ConstructorProperties;
-
-import org.jclouds.javax.annotation.Nullable;
-
-import com.google.common.base.Objects;
-import com.google.common.base.Objects.ToStringHelper;
-
-/**
- * A flavor is an available hardware configuration for a server. Each flavor has a unique
- * combination of disk space and memory capacity.
- * 
-*/
-public class Flavor {
-
-   public static Builder<?> builder() { 
-      return new ConcreteBuilder();
-   }
-   
-   public Builder<?> toBuilder() { 
-      return new ConcreteBuilder().fromFlavor(this);
-   }
-
-   public abstract static class Builder<T extends Builder<T>>  {
-      protected abstract T self();
-
-      protected int id;
-      protected String name;
-      protected Integer disk;
-      protected Integer ram;
-   
-      /** 
-       * @see Flavor#getId()
-       */
-      public T id(int id) {
-         this.id = id;
-         return self();
-      }
-
-      /** 
-       * @see Flavor#getName()
-       */
-      public T name(String name) {
-         this.name = name;
-         return self();
-      }
-
-      /** 
-       * @see Flavor#getDisk()
-       */
-      public T disk(Integer disk) {
-         this.disk = disk;
-         return self();
-      }
-
-      /** 
-       * @see Flavor#getRam()
-       */
-      public T ram(Integer ram) {
-         this.ram = ram;
-         return self();
-      }
-
-      public Flavor build() {
-         return new Flavor(id, name, disk, ram);
-      }
-      
-      public T fromFlavor(Flavor in) {
-         return this
-                  .id(in.getId())
-                  .name(in.getName())
-                  .disk(in.getDisk())
-                  .ram(in.getRam());
-      }
-   }
-
-   private static class ConcreteBuilder extends Builder<ConcreteBuilder> {
-      @Override
-      protected ConcreteBuilder self() {
-         return this;
-      }
-   }
-
-   private final int id;
-   private final String name;
-   private final Integer disk;
-   private final Integer ram;
-
-   @ConstructorProperties({
-      "id", "name", "disk", "ram"
-   })
-   protected Flavor(int id, String name, @Nullable Integer disk, @Nullable Integer ram) {
-      this.id = id;
-      this.name = checkNotNull(name, "name");
-      this.disk = disk;
-      this.ram = ram;
-   }
-
-   public int getId() {
-      return this.id;
-   }
-
-   public String getName() {
-      return this.name;
-   }
-
-   @Nullable
-   public Integer getDisk() {
-      return this.disk;
-   }
-
-   @Nullable
-   public Integer getRam() {
-      return this.ram;
-   }
-
-   @Override
-   public int hashCode() {
-      return Objects.hashCode(id, name, disk, ram);
-   }
-
-   @Override
-   public boolean equals(Object obj) {
-      if (this == obj) return true;
-      if (obj == null || getClass() != obj.getClass()) return false;
-      Flavor that = Flavor.class.cast(obj);
-      return Objects.equal(this.id, that.id)
-               && Objects.equal(this.name, that.name)
-               && Objects.equal(this.disk, that.disk)
-               && Objects.equal(this.ram, that.ram);
-   }
-   
-   protected ToStringHelper string() {
-      return Objects.toStringHelper(this)
-            .add("id", id).add("name", name).add("disk", disk).add("ram", ram);
-   }
-   
-   @Override
-   public String toString() {
-      return string().toString();
-   }
-
-}

http://git-wip-us.apache.org/repos/asf/jclouds/blob/162226b8/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/Image.java
----------------------------------------------------------------------
diff --git a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/Image.java b/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/Image.java
deleted file mode 100644
index 61c8397..0000000
--- a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/Image.java
+++ /dev/null
@@ -1,219 +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.
- */
-package org.jclouds.cloudservers.domain;
-
-import static com.google.common.base.Preconditions.checkNotNull;
-
-import java.beans.ConstructorProperties;
-import java.util.Date;
-
-import org.jclouds.javax.annotation.Nullable;
-
-import com.google.common.base.Objects;
-import com.google.common.base.Objects.ToStringHelper;
-
-/**
- * An image is a collection of files used to create or rebuild a server. Rackspace provides a number
- * of pre-built OS images by default. You may also create custom images from cloud servers you have
- * launched. These custom images are useful for backup purposes or for producing gold server images
- * if you plan to deploy a particular server configuration frequently.
- * 
-*/
-public class Image {
-
-   public static Builder<?> builder() { 
-      return new ConcreteBuilder();
-   }
-   
-   public Builder<?> toBuilder() { 
-      return new ConcreteBuilder().fromImage(this);
-   }
-
-   public abstract static class Builder<T extends Builder<T>>  {
-      protected abstract T self();
-
-      protected Date created;
-      protected int id;
-      protected String name;
-      protected Integer progress;
-      protected Integer serverId;
-      protected ImageStatus status;
-      protected Date updated;
-   
-      /** 
-       * @see Image#getCreated()
-       */
-      public T created(Date created) {
-         this.created = created;
-         return self();
-      }
-
-      /** 
-       * @see Image#getId()
-       */
-      public T id(int id) {
-         this.id = id;
-         return self();
-      }
-
-      /** 
-       * @see Image#getName()
-       */
-      public T name(String name) {
-         this.name = name;
-         return self();
-      }
-
-      /** 
-       * @see Image#getProgress()
-       */
-      public T progress(Integer progress) {
-         this.progress = progress;
-         return self();
-      }
-
-      /** 
-       * @see Image#getServerId()
-       */
-      public T serverId(Integer serverId) {
-         this.serverId = serverId;
-         return self();
-      }
-
-      /** 
-       * @see Image#getStatus()
-       */
-      public T status(ImageStatus status) {
-         this.status = status;
-         return self();
-      }
-
-      /** 
-       * @see Image#getUpdated()
-       */
-      public T updated(Date updated) {
-         this.updated = updated;
-         return self();
-      }
-
-      public Image build() {
-         return new Image(created, id, name, progress, serverId, status, updated);
-      }
-      
-      public T fromImage(Image in) {
-         return this
-                  .created(in.getCreated())
-                  .id(in.getId())
-                  .name(in.getName())
-                  .progress(in.getProgress())
-                  .serverId(in.getServerId())
-                  .status(in.getStatus())
-                  .updated(in.getUpdated());
-      }
-   }
-
-   private static class ConcreteBuilder extends Builder<ConcreteBuilder> {
-      @Override
-      protected ConcreteBuilder self() {
-         return this;
-      }
-   }
-
-   private final Date created;
-   private final int id;
-   private final String name;
-   private final Integer progress;
-   private final Integer serverId;
-   private final ImageStatus status;
-   private final Date updated;
-
-   @ConstructorProperties({
-      "created", "id", "name", "progress", "serverId", "status", "updated"
-   })
-   protected Image(@Nullable Date created, int id, String name, @Nullable Integer progress, @Nullable Integer serverId, @Nullable ImageStatus status, @Nullable Date updated) {
-      this.created = created;
-      this.id = id;
-      this.name = checkNotNull(name, "name");
-      this.progress = progress;
-      this.serverId = serverId;
-      this.status = status;
-      this.updated = updated;
-   }
-
-   @Nullable
-   public Date getCreated() {
-      return this.created;
-   }
-
-   public int getId() {
-      return this.id;
-   }
-
-   public String getName() {
-      return this.name;
-   }
-
-   @Nullable
-   public Integer getProgress() {
-      return this.progress;
-   }
-
-   @Nullable
-   public Integer getServerId() {
-      return this.serverId;
-   }
-
-   @Nullable
-   public ImageStatus getStatus() {
-      return this.status;
-   }
-
-   @Nullable
-   public Date getUpdated() {
-      return this.updated;
-   }
-
-   @Override
-   public int hashCode() {
-      return Objects.hashCode(created, id, name, progress, serverId, status, updated);
-   }
-
-   @Override
-   public boolean equals(Object obj) {
-      if (this == obj) return true;
-      if (obj == null || getClass() != obj.getClass()) return false;
-      Image that = Image.class.cast(obj);
-      return Objects.equal(this.created, that.created)
-               && Objects.equal(this.id, that.id)
-               && Objects.equal(this.name, that.name)
-               && Objects.equal(this.progress, that.progress)
-               && Objects.equal(this.serverId, that.serverId)
-               && Objects.equal(this.status, that.status)
-               && Objects.equal(this.updated, that.updated);
-   }
-   
-   protected ToStringHelper string() {
-      return Objects.toStringHelper(this)
-            .add("created", created).add("id", id).add("name", name).add("progress", progress).add("serverId", serverId).add("status", status).add("updated", updated);
-   }
-   
-   @Override
-   public String toString() {
-      return string().toString();
-   }
-
-}

http://git-wip-us.apache.org/repos/asf/jclouds/blob/162226b8/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/ImageStatus.java
----------------------------------------------------------------------
diff --git a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/ImageStatus.java b/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/ImageStatus.java
deleted file mode 100644
index 68740b8..0000000
--- a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/ImageStatus.java
+++ /dev/null
@@ -1,41 +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.
- */
-package org.jclouds.cloudservers.domain;
-
-/**
- * In-flight images will have the status attribute set to SAVING and the conditional progress
- * element (0- 100% completion) will also be returned. Other possible values for the status
- * attribute include: UNKNOWN, PREPARING, ACTIVE QUEUED, FAILED. Images with an ACTIVE status are
- * available for install.
- */
-public enum ImageStatus {
-
-   UNRECOGNIZED, UNKNOWN, ACTIVE, SAVING, PREPARING, QUEUED, FAILED;
-
-   public String value() {
-      return name();
-   }
-
-   public static ImageStatus fromValue(String v) {
-      try {
-         return valueOf(v);
-      } catch (IllegalArgumentException e) {
-         return UNRECOGNIZED;
-      }
-   }
-
-}

http://git-wip-us.apache.org/repos/asf/jclouds/blob/162226b8/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/Limits.java
----------------------------------------------------------------------
diff --git a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/Limits.java b/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/Limits.java
deleted file mode 100644
index 1b085c8..0000000
--- a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/Limits.java
+++ /dev/null
@@ -1,130 +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.
- */
-package org.jclouds.cloudservers.domain;
-
-import static com.google.common.base.Preconditions.checkNotNull;
-
-import java.beans.ConstructorProperties;
-import java.util.Map;
-import java.util.Set;
-
-import com.google.common.base.Objects;
-import com.google.common.base.Objects.ToStringHelper;
-import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.ImmutableSet;
-
-/**
- * Class Limits
-*/
-public class Limits {
-
-   public static Builder<?> builder() { 
-      return new ConcreteBuilder();
-   }
-   
-   public Builder<?> toBuilder() { 
-      return new ConcreteBuilder().fromLimits(this);
-   }
-
-   public abstract static class Builder<T extends Builder<T>>  {
-      protected abstract T self();
-
-      protected Set<RateLimit> rate = ImmutableSet.of();
-      protected Map<String, Integer> absolute = ImmutableMap.of();
-   
-      /** 
-       * @see Limits#getRate()
-       */
-      public T rate(Set<RateLimit> rate) {
-         this.rate = ImmutableSet.copyOf(checkNotNull(rate, "rate"));      
-         return self();
-      }
-
-      public T rate(RateLimit... in) {
-         return rate(ImmutableSet.copyOf(in));
-      }
-
-      /** 
-       * @see Limits#getAbsolute()
-       */
-      public T absolute(Map<String, Integer> absolute) {
-         this.absolute = ImmutableMap.copyOf(checkNotNull(absolute, "absolute"));     
-         return self();
-      }
-
-      public Limits build() {
-         return new Limits(rate, absolute);
-      }
-      
-      public T fromLimits(Limits in) {
-         return this
-                  .rate(in.getRate())
-                  .absolute(in.getAbsolute());
-      }
-   }
-
-   private static class ConcreteBuilder extends Builder<ConcreteBuilder> {
-      @Override
-      protected ConcreteBuilder self() {
-         return this;
-      }
-   }
-
-   private final Set<RateLimit> rate;
-   private final Map<String, Integer> absolute;
-
-   @ConstructorProperties({
-      "rate", "absolute"
-   })
-   protected Limits(Set<RateLimit> rate, Map<String, Integer> absolute) {
-      this.rate = ImmutableSet.copyOf(checkNotNull(rate, "rate"));      
-      this.absolute = ImmutableMap.copyOf(checkNotNull(absolute, "absolute"));     
-   }
-
-   public Set<RateLimit> getRate() {
-      return this.rate;
-   }
-
-   public Map<String, Integer> getAbsolute() {
-      return this.absolute;
-   }
-
-   @Override
-   public int hashCode() {
-      return Objects.hashCode(rate, absolute);
-   }
-
-   @Override
-   public boolean equals(Object obj) {
-      if (this == obj) return true;
-      if (obj == null || getClass() != obj.getClass()) return false;
-      Limits that = Limits.class.cast(obj);
-      return Objects.equal(this.rate, that.rate)
-               && Objects.equal(this.absolute, that.absolute);
-   }
-   
-   protected ToStringHelper string() {
-      return Objects.toStringHelper(this)
-            .add("rate", rate).add("absolute", absolute);
-   }
-   
-   @Override
-   public String toString() {
-      return string().toString();
-   }
-
-}

http://git-wip-us.apache.org/repos/asf/jclouds/blob/162226b8/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/RateLimit.java
----------------------------------------------------------------------
diff --git a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/RateLimit.java b/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/RateLimit.java
deleted file mode 100644
index b56f623..0000000
--- a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/RateLimit.java
+++ /dev/null
@@ -1,225 +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.
- */
-package org.jclouds.cloudservers.domain;
-
-import static com.google.common.base.Preconditions.checkNotNull;
-
-import java.beans.ConstructorProperties;
-
-import org.jclouds.javax.annotation.Nullable;
-
-import com.google.common.base.Objects;
-import com.google.common.base.Objects.ToStringHelper;
-
-/**
- * RateLimit.
- * <p/>
- * we specify rate limits in terms of both a human readable wild-card URI and a machine processable
- * regular expression. The regular expression boundary matcher '^' takes affect after the root URI
- * path. For example, the regular expression ^/servers would match the bolded portion of the
- * following URI: https://servers.api.rackspacecloud.com/v1.0/3542812 /servers .
- * <p/>
- * Rate limits are applied in order relative to the verb, going from least to most specific. For
- * example, although the threshold for POST to /servers is 25 per day, one cannot POST to /servers
- * more than 10 times within a single minute because the rate limits for any POST is 10/min. In the
- * event you exceed the thresholds established for your identity, a 413 Rate Control HTTP response
- * will be returned with a Reply-After header to notify the client when theyagain.
- * 
-*/
-public class RateLimit {
-
-   public static Builder<?> builder() { 
-      return new ConcreteBuilder();
-   }
-   
-   public Builder<?> toBuilder() { 
-      return new ConcreteBuilder().fromRateLimit(this);
-   }
-
-   public abstract static class Builder<T extends Builder<T>>  {
-      protected abstract T self();
-
-      protected String uri;
-      protected String regex;
-      protected int remaining;
-      protected long resetTime;
-      protected RateLimitUnit unit;
-      protected int value;
-      protected String verb;
-   
-      /** 
-       * @see RateLimit#getUri()
-       */
-      public T uri(String uri) {
-         this.uri = uri;
-         return self();
-      }
-
-      /** 
-       * @see RateLimit#getRegex()
-       */
-      public T regex(String regex) {
-         this.regex = regex;
-         return self();
-      }
-
-      /** 
-       * @see RateLimit#getRemaining()
-       */
-      public T remaining(int remaining) {
-         this.remaining = remaining;
-         return self();
-      }
-
-      /** 
-       * @see RateLimit#getResetTime()
-       */
-      public T resetTime(long resetTime) {
-         this.resetTime = resetTime;
-         return self();
-      }
-
-      /** 
-       * @see RateLimit#getUnit()
-       */
-      public T unit(RateLimitUnit unit) {
-         this.unit = unit;
-         return self();
-      }
-
-      /** 
-       * @see RateLimit#getValue()
-       */
-      public T value(int value) {
-         this.value = value;
-         return self();
-      }
-
-      /** 
-       * @see RateLimit#getVerb()
-       */
-      public T verb(String verb) {
-         this.verb = verb;
-         return self();
-      }
-
-      public RateLimit build() {
-         return new RateLimit(uri, regex, remaining, resetTime, unit, value, verb);
-      }
-      
-      public T fromRateLimit(RateLimit in) {
-         return this
-                  .uri(in.getUri())
-                  .regex(in.getRegex())
-                  .remaining(in.getRemaining())
-                  .resetTime(in.getResetTime())
-                  .unit(in.getUnit())
-                  .value(in.getValue())
-                  .verb(in.getVerb());
-      }
-   }
-
-   private static class ConcreteBuilder extends Builder<ConcreteBuilder> {
-      @Override
-      protected ConcreteBuilder self() {
-         return this;
-      }
-   }
-
-   private final String uri;
-   private final String regex;
-   private final int remaining;
-   private final long resetTime;
-   private final RateLimitUnit unit;
-   private final int value;
-   private final String verb;
-
-   @ConstructorProperties({
-      "uri", "regex", "remaining", "resetTime", "unit", "value", "verb"
-   })
-   protected RateLimit(String uri, @Nullable String regex, int remaining, long resetTime, @Nullable RateLimitUnit unit,
-                       int value, @Nullable String verb) {
-      this.uri = checkNotNull(uri, "uri");
-      this.regex = regex;
-      this.remaining = remaining;
-      this.resetTime = resetTime;
-      this.unit = unit;
-      this.value = value;
-      this.verb = verb;
-   }
-
-   public String getUri() {
-      return this.uri;
-   }
-
-   @Nullable
-   public String getRegex() {
-      return this.regex;
-   }
-
-   public int getRemaining() {
-      return this.remaining;
-   }
-
-   public long getResetTime() {
-      return this.resetTime;
-   }
-
-   @Nullable
-   public RateLimitUnit getUnit() {
-      return this.unit;
-   }
-
-   public int getValue() {
-      return this.value;
-   }
-
-   @Nullable
-   public String getVerb() {
-      return this.verb;
-   }
-
-   @Override
-   public int hashCode() {
-      return Objects.hashCode(uri, regex, remaining, resetTime, unit, value, verb);
-   }
-
-   @Override
-   public boolean equals(Object obj) {
-      if (this == obj) return true;
-      if (obj == null || getClass() != obj.getClass()) return false;
-      RateLimit that = RateLimit.class.cast(obj);
-      return Objects.equal(this.uri, that.uri)
-               && Objects.equal(this.regex, that.regex)
-               && Objects.equal(this.remaining, that.remaining)
-               && Objects.equal(this.resetTime, that.resetTime)
-               && Objects.equal(this.unit, that.unit)
-               && Objects.equal(this.value, that.value)
-               && Objects.equal(this.verb, that.verb);
-   }
-   
-   protected ToStringHelper string() {
-      return Objects.toStringHelper(this)
-            .add("uri", uri).add("regex", regex).add("remaining", remaining).add("resetTime", resetTime).add("unit", unit).add("value", value).add("verb", verb);
-   }
-   
-   @Override
-   public String toString() {
-      return string().toString();
-   }
-
-}

http://git-wip-us.apache.org/repos/asf/jclouds/blob/162226b8/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/RateLimitUnit.java
----------------------------------------------------------------------
diff --git a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/RateLimitUnit.java b/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/RateLimitUnit.java
deleted file mode 100644
index c297b37..0000000
--- a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/RateLimitUnit.java
+++ /dev/null
@@ -1,35 +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.
- */
-package org.jclouds.cloudservers.domain;
-
-public enum RateLimitUnit {
-
-   MINUTE, HOUR, DAY, UNRECOGNIZED;
-
-   public String value() {
-      return name();
-   }
-
-   public static RateLimitUnit fromValue(String v) {
-      try {
-         return valueOf(v);
-      } catch (IllegalArgumentException e) {
-         return UNRECOGNIZED;
-      }
-   }
-
-}

http://git-wip-us.apache.org/repos/asf/jclouds/blob/162226b8/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/RebootType.java
----------------------------------------------------------------------
diff --git a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/RebootType.java b/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/RebootType.java
deleted file mode 100644
index e284966..0000000
--- a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/RebootType.java
+++ /dev/null
@@ -1,31 +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.
- */
-package org.jclouds.cloudservers.domain;
-
-public enum RebootType {
-
-   HARD, SOFT;
-
-   public String value() {
-      return name();
-   }
-
-   public static RebootType fromValue(String v) {
-      return valueOf(v);
-   }
-
-}

http://git-wip-us.apache.org/repos/asf/jclouds/blob/162226b8/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/Server.java
----------------------------------------------------------------------
diff --git a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/Server.java b/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/Server.java
deleted file mode 100644
index 6590a41..0000000
--- a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/Server.java
+++ /dev/null
@@ -1,301 +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.
- */
-package org.jclouds.cloudservers.domain;
-
-import static com.google.common.base.Preconditions.checkNotNull;
-
-import java.beans.ConstructorProperties;
-import java.util.Map;
-
-import org.jclouds.javax.annotation.Nullable;
-
-import com.google.common.base.Objects;
-import com.google.common.base.Objects.ToStringHelper;
-import com.google.common.collect.ImmutableMap;
-
-/**
- * A server is a virtual machine instance in the Cloud Servers system. Flavor and image are
- * requisite elements when creating a server.
- * 
-*/
-public class Server {
-
-   public static Builder<?> builder() { 
-      return new ConcreteBuilder();
-   }
-   
-   public Builder<?> toBuilder() { 
-      return new ConcreteBuilder().fromServer(this);
-   }
-
-   public abstract static class Builder<T extends Builder<T>>  {
-      protected abstract T self();
-
-      protected int id;
-      protected String name;
-      protected Map<String, String> metadata;
-      protected Addresses addresses;
-      protected String adminPass;
-      protected Integer flavorId;
-      protected String hostId;
-      protected Integer imageId;
-      protected Integer sharedIpGroupId;
-      protected Integer progress;
-      protected ServerStatus status;
-   
-      /** 
-       * @see Server#getId()
-       */
-      public T id(int id) {
-         this.id = id;
-         return self();
-      }
-
-      /** 
-       * @see Server#getName()
-       */
-      public T name(String name) {
-         this.name = name;
-         return self();
-      }
-
-      /** 
-       * @see Server#getMetadata()
-       */
-      public T metadata(Map<String, String> metadata) {
-         this.metadata = ImmutableMap.copyOf(checkNotNull(metadata, "metadata"));     
-         return self();
-      }
-
-      /** 
-       * @see Server#getAddresses()
-       */
-      public T addresses(Addresses addresses) {
-         this.addresses = addresses;
-         return self();
-      }
-
-      /** 
-       * @see Server#getAdminPass()
-       */
-      public T adminPass(String adminPass) {
-         this.adminPass = adminPass;
-         return self();
-      }
-
-      /** 
-       * @see Server#getFlavorId()
-       */
-      public T flavorId(Integer flavorId) {
-         this.flavorId = flavorId;
-         return self();
-      }
-
-      /** 
-       * @see Server#getHostId()
-       */
-      public T hostId(String hostId) {
-         this.hostId = hostId;
-         return self();
-      }
-
-      /** 
-       * @see Server#getImageId()
-       */
-      public T imageId(Integer imageId) {
-         this.imageId = imageId;
-         return self();
-      }
-
-      /** 
-       * @see Server#getSharedIpGroupId()
-       */
-      public T sharedIpGroupId(Integer sharedIpGroupId) {
-         this.sharedIpGroupId = sharedIpGroupId;
-         return self();
-      }
-
-      /** 
-       * @see Server#getProgress()
-       */
-      public T progress(Integer progress) {
-         this.progress = progress;
-         return self();
-      }
-
-      /** 
-       * @see Server#getStatus()
-       */
-      public T status(ServerStatus status) {
-         this.status = status;
-         return self();
-      }
-
-      public Server build() {
-         return new Server(id, name, metadata, addresses, adminPass, flavorId, hostId, imageId, sharedIpGroupId, progress, status);
-      }
-      
-      public T fromServer(Server in) {
-         return this
-                  .id(in.getId())
-                  .name(in.getName())
-                  .metadata(in.getMetadata())
-                  .addresses(in.getAddresses())
-                  .adminPass(in.getAdminPass())
-                  .flavorId(in.getFlavorId())
-                  .hostId(in.getHostId())
-                  .imageId(in.getImageId())
-                  .sharedIpGroupId(in.getSharedIpGroupId())
-                  .progress(in.getProgress())
-                  .status(in.getStatus());
-      }
-   }
-
-   private static class ConcreteBuilder extends Builder<ConcreteBuilder> {
-      @Override
-      protected ConcreteBuilder self() {
-         return this;
-      }
-   }
-
-   private final int id;
-   private final String name;
-   private final Map<String, String> metadata;
-   private final Addresses addresses;
-   private final String adminPass;
-   private final Integer flavorId;
-   private final String hostId;
-   private final Integer imageId;
-   private final Integer sharedIpGroupId;
-   private final Integer progress;
-   private final ServerStatus status;
-
-   @ConstructorProperties({
-      "id", "name", "metadata", "addresses", "adminPass", "flavorId", "hostId", "imageId", "sharedIpGroupId", "progress", "status"
-   })
-   protected Server(int id, String name, @Nullable Map<String, String> metadata, @Nullable Addresses addresses,
-                    @Nullable String adminPass, @Nullable Integer flavorId, @Nullable String hostId, @Nullable Integer imageId,
-                    @Nullable Integer sharedIpGroupId, @Nullable Integer progress, @Nullable ServerStatus status) {
-      this.id = id;
-      this.name = checkNotNull(name, "name");
-      this.metadata = metadata == null ? null : ImmutableMap.copyOf(metadata);     
-      this.addresses = addresses;
-      this.adminPass = adminPass;
-      this.flavorId = flavorId;
-      this.hostId = hostId;
-      this.imageId = imageId;
-      this.sharedIpGroupId = sharedIpGroupId;
-      this.progress = progress;
-      this.status = status == null ? ServerStatus.UNKNOWN : status;
-   }
-
-   public int getId() {
-      return this.id;
-   }
-
-   public String getName() {
-      return this.name;
-   }
-
-   @Nullable
-   public Map<String, String> getMetadata() {
-      return this.metadata;
-   }
-
-   @Nullable
-   public Addresses getAddresses() {
-      return this.addresses;
-   }
-
-   @Nullable
-   public String getAdminPass() {
-      return this.adminPass;
-   }
-
-   @Nullable
-   public Integer getFlavorId() {
-      return this.flavorId;
-   }
-
-   /**
-    * The Cloud Servers provisioning algorithm has an anti-affinity property that attempts to spread
-    * out customer VMs across hosts. Under certain situations, VMs from the same customer may be
-    * placed on the same host. hostId represents the host your cloud server runs on and can be used
-    * to determine this scenario if it's relevant to your application.
-    * <p/>
-    * Note: hostId is unique PER ACCOUNT and is not globally unique.
-    */
-   @Nullable
-   public String getHostId() {
-      return this.hostId;
-   }
-
-   @Nullable
-   public Integer getImageId() {
-      return this.imageId;
-   }
-
-   @Nullable
-   public Integer getSharedIpGroupId() {
-      return this.sharedIpGroupId;
-   }
-
-   @Nullable
-   public Integer getProgress() {
-      return this.progress;
-   }
-
-   /**
-    * Servers contain a status attribute that can be used as an indication of the current server
-    * state. Servers with an ACTIVE status are available for use.
-    */
-   public ServerStatus getStatus() {
-      return this.status;
-   }
-
-   @Override
-   public int hashCode() {
-      return Objects.hashCode(id, name, metadata, addresses, adminPass, flavorId, hostId, imageId, sharedIpGroupId);
-   }
-
-   @Override
-   public boolean equals(Object obj) {
-      if (this == obj) return true;
-      if (obj == null || getClass() != obj.getClass()) return false;
-      Server that = Server.class.cast(obj);
-      return Objects.equal(this.id, that.id)
-               && Objects.equal(this.name, that.name)
-               && Objects.equal(this.metadata, that.metadata)
-               && Objects.equal(this.addresses, that.addresses)
-               && Objects.equal(this.adminPass, that.adminPass)
-               && Objects.equal(this.flavorId, that.flavorId)
-               && Objects.equal(this.hostId, that.hostId)
-               && Objects.equal(this.imageId, that.imageId)
-               && Objects.equal(this.sharedIpGroupId, that.sharedIpGroupId);
-   }
-   
-   protected ToStringHelper string() {
-      return Objects.toStringHelper(this)
-            .add("id", id).add("name", name).add("metadata", metadata).add("addresses", addresses).add("adminPass", adminPass).add("flavorId", flavorId).add("hostId", hostId).add("imageId", imageId).add("sharedIpGroupId", sharedIpGroupId).add("progress", progress).add("status", status);
-   }
-   
-   @Override
-   public String toString() {
-      return string().toString();
-   }
-
-}

http://git-wip-us.apache.org/repos/asf/jclouds/blob/162226b8/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/ServerStatus.java
----------------------------------------------------------------------
diff --git a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/ServerStatus.java b/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/ServerStatus.java
deleted file mode 100644
index 89c3542..0000000
--- a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/ServerStatus.java
+++ /dev/null
@@ -1,50 +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.
- */
-package org.jclouds.cloudservers.domain;
-
-/**
- * 
- * Servers contain a status attribute that can be used as an indication of the current server state.
- * Servers with an ACTIVE status are available for use.
- * <p/>
- * <h2>Note</h2>
- * When the system changes a server's status from BUILD to ACTIVE the system will not be immediately
- * available. The 'ACTIVE' label is really misleading in the fact that it just means the system
- * doesn't have any activity going on related to it's configuration.
- * <p/>
- * Processes such as ssh will not be available until 5-10 seconds following the phase ACTIVE
- * <ul>
- * <li>[Web Hosting #119335]</li>
- * </ul>
- */
-public enum ServerStatus {
-
-   ACTIVE, SUSPENDED, DELETED, QUEUE_RESIZE, PREP_RESIZE, RESIZE, VERIFY_RESIZE, QUEUE_MOVE, PREP_MOVE, MOVE, VERIFY_MOVE, RESCUE, ERROR, BUILD, RESTORING, PASSWORD, REBUILD, DELETE_IP, SHARE_IP_NO_CONFIG, SHARE_IP, REBOOT, HARD_REBOOT, UNKNOWN, UNRECOGNIZED;
-
-   public String value() {
-      return name();
-   }
-
-   public static ServerStatus fromValue(String v) {
-      try {
-         return valueOf(v);
-      } catch (IllegalArgumentException e) {
-         return UNRECOGNIZED;
-      }
-   }
-
-}

http://git-wip-us.apache.org/repos/asf/jclouds/blob/162226b8/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/ShareIp.java
----------------------------------------------------------------------
diff --git a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/ShareIp.java b/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/ShareIp.java
deleted file mode 100644
index 9c18f29..0000000
--- a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/ShareIp.java
+++ /dev/null
@@ -1,120 +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.
- */
-package org.jclouds.cloudservers.domain;
-
-import java.beans.ConstructorProperties;
-
-import com.google.common.base.Objects;
-import com.google.common.base.Objects.ToStringHelper;
-
-/**
- * Class ShareIp
-*/
-public class ShareIp {
-
-   public static Builder<?> builder() { 
-      return new ConcreteBuilder();
-   }
-   
-   public Builder<?> toBuilder() { 
-      return new ConcreteBuilder().fromShareIp(this);
-   }
-
-   public abstract static class Builder<T extends Builder<T>>  {
-      protected abstract T self();
-
-      protected boolean configureServer;
-      protected int sharedIpGroupId;
-   
-      /** 
-       * @see ShareIp#isConfigureServer()
-       */
-      public T configureServer(boolean configureServer) {
-         this.configureServer = configureServer;
-         return self();
-      }
-
-      /** 
-       * @see ShareIp#getSharedIpGroupId()
-       */
-      public T sharedIpGroupId(int sharedIpGroupId) {
-         this.sharedIpGroupId = sharedIpGroupId;
-         return self();
-      }
-
-      public ShareIp build() {
-         return new ShareIp(configureServer, sharedIpGroupId);
-      }
-      
-      public T fromShareIp(ShareIp in) {
-         return this
-                  .configureServer(in.isConfigureServer())
-                  .sharedIpGroupId(in.getSharedIpGroupId());
-      }
-   }
-
-   private static class ConcreteBuilder extends Builder<ConcreteBuilder> {
-      @Override
-      protected ConcreteBuilder self() {
-         return this;
-      }
-   }
-
-   private final boolean configureServer;
-   private final int sharedIpGroupId;
-
-   @ConstructorProperties({
-      "configureServer", "sharedIpGroupId"
-   })
-   protected ShareIp(boolean configureServer, int sharedIpGroupId) {
-      this.configureServer = configureServer;
-      this.sharedIpGroupId = sharedIpGroupId;
-   }
-
-   public boolean isConfigureServer() {
-      return this.configureServer;
-   }
-
-   public int getSharedIpGroupId() {
-      return this.sharedIpGroupId;
-   }
-
-   @Override
-   public int hashCode() {
-      return Objects.hashCode(configureServer, sharedIpGroupId);
-   }
-
-   @Override
-   public boolean equals(Object obj) {
-      if (this == obj) return true;
-      if (obj == null || getClass() != obj.getClass()) return false;
-      ShareIp that = ShareIp.class.cast(obj);
-      return Objects.equal(this.configureServer, that.configureServer)
-               && Objects.equal(this.sharedIpGroupId, that.sharedIpGroupId);
-   }
-   
-   protected ToStringHelper string() {
-      return Objects.toStringHelper(this)
-            .add("configureServer", configureServer).add("sharedIpGroupId", sharedIpGroupId);
-   }
-   
-   @Override
-   public String toString() {
-      return string().toString();
-   }
-
-}

http://git-wip-us.apache.org/repos/asf/jclouds/blob/162226b8/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/SharedIpGroup.java
----------------------------------------------------------------------
diff --git a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/SharedIpGroup.java b/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/SharedIpGroup.java
deleted file mode 100644
index 62354e3..0000000
--- a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/SharedIpGroup.java
+++ /dev/null
@@ -1,152 +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.
- */
-package org.jclouds.cloudservers.domain;
-
-import static com.google.common.base.Preconditions.checkNotNull;
-
-import java.beans.ConstructorProperties;
-import java.util.List;
-
-import org.jclouds.javax.annotation.Nullable;
-
-import com.google.common.base.Objects;
-import com.google.common.base.Objects.ToStringHelper;
-import com.google.common.collect.ImmutableList;
-
-/**
- * A shared IP group is a collection of servers that can share IPs with other members of the group.
- * Any server in a group can share one or more public IPs with any other server in the group. With
- * the exception of the first server in a shared IP group, servers must be launched into shared IP
- * groups. A server may only be a member of one shared IP group.
- * 
-*/
-public class SharedIpGroup {
-
-   public static Builder<?> builder() { 
-      return new ConcreteBuilder();
-   }
-   
-   public Builder<?> toBuilder() { 
-      return new ConcreteBuilder().fromSharedIpGroup(this);
-   }
-
-   public abstract static class Builder<T extends Builder<T>>  {
-      protected abstract T self();
-
-      protected int id;
-      protected String name;
-      protected List<Integer> servers = null;
-   
-      /** 
-       * @see SharedIpGroup#getId()
-       */
-      public T id(int id) {
-         this.id = id;
-         return self();
-      }
-
-      /** 
-       * @see SharedIpGroup#getName()
-       */
-      public T name(String name) {
-         this.name = name;
-         return self();
-      }
-
-      /** 
-       * @see SharedIpGroup#getServers()
-       */
-      public T servers(List<Integer> servers) {
-         this.servers = ImmutableList.copyOf(checkNotNull(servers, "servers"));     
-         return self();
-      }
-
-      public T servers(Integer... in) {
-         return servers(ImmutableList.copyOf(in));
-      }
-
-      public SharedIpGroup build() {
-         return new SharedIpGroup(id, name, servers);
-      }
-      
-      public T fromSharedIpGroup(SharedIpGroup in) {
-         return this
-                  .id(in.getId())
-                  .name(in.getName())
-                  .servers(in.getServers());
-      }
-   }
-
-   private static class ConcreteBuilder extends Builder<ConcreteBuilder> {
-      @Override
-      protected ConcreteBuilder self() {
-         return this;
-      }
-   }
-
-   private final int id;
-   private final String name;
-   private final List<Integer> servers;
-
-   @ConstructorProperties({
-      "id", "name", "servers"
-   })
-   protected SharedIpGroup(int id, String name, @Nullable List<Integer> servers) {
-      this.id = id;
-      this.name = checkNotNull(name, "name");
-      this.servers = servers == null ? null : ImmutableList.copyOf(servers);     
-   }
-
-   public int getId() {
-      return this.id;
-   }
-
-   public String getName() {
-      return this.name;
-   }
-
-   @Nullable
-   public List<Integer> getServers() {
-      return this.servers;
-   }
-
-   @Override
-   public int hashCode() {
-      return Objects.hashCode(id, name, servers);
-   }
-
-   @Override
-   public boolean equals(Object obj) {
-      if (this == obj) return true;
-      if (obj == null || getClass() != obj.getClass()) return false;
-      SharedIpGroup that = SharedIpGroup.class.cast(obj);
-      return Objects.equal(this.id, that.id)
-               && Objects.equal(this.name, that.name)
-               && Objects.equal(this.servers, that.servers);
-   }
-   
-   protected ToStringHelper string() {
-      return Objects.toStringHelper(this)
-            .add("id", id).add("name", name).add("servers", servers);
-   }
-   
-   @Override
-   public String toString() {
-      return string().toString();
-   }
-
-}

http://git-wip-us.apache.org/repos/asf/jclouds/blob/162226b8/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/Version.java
----------------------------------------------------------------------
diff --git a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/Version.java b/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/Version.java
deleted file mode 100644
index 753f0eb..0000000
--- a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/Version.java
+++ /dev/null
@@ -1,159 +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.
- */
-package org.jclouds.cloudservers.domain;
-
-import static com.google.common.base.Preconditions.checkNotNull;
-
-import java.beans.ConstructorProperties;
-
-import org.jclouds.javax.annotation.Nullable;
-
-import com.google.common.base.Objects;
-import com.google.common.base.Objects.ToStringHelper;
-
-/**
- * Class Version
-*/
-public class Version {
-
-   public static Builder<?> builder() { 
-      return new ConcreteBuilder();
-   }
-   
-   public Builder<?> toBuilder() { 
-      return new ConcreteBuilder().fromVersion(this);
-   }
-
-   public abstract static class Builder<T extends Builder<T>>  {
-      protected abstract T self();
-
-      protected String docURL;
-      protected String id;
-      protected VersionStatus status;
-      protected String wadl;
-   
-      /** 
-       * @see Version#getDocURL()
-       */
-      public T docURL(String docURL) {
-         this.docURL = docURL;
-         return self();
-      }
-
-      /** 
-       * @see Version#getId()
-       */
-      public T id(String id) {
-         this.id = id;
-         return self();
-      }
-
-      /** 
-       * @see Version#getStatus()
-       */
-      public T status(VersionStatus status) {
-         this.status = status;
-         return self();
-      }
-
-      /** 
-       * @see Version#getWadl()
-       */
-      public T wadl(String wadl) {
-         this.wadl = wadl;
-         return self();
-      }
-
-      public Version build() {
-         return new Version(docURL, id, status, wadl);
-      }
-      
-      public T fromVersion(Version in) {
-         return this
-                  .docURL(in.getDocURL())
-                  .id(in.getId())
-                  .status(in.getStatus())
-                  .wadl(in.getWadl());
-      }
-   }
-
-   private static class ConcreteBuilder extends Builder<ConcreteBuilder> {
-      @Override
-      protected ConcreteBuilder self() {
-         return this;
-      }
-   }
-
-   private final String docURL;
-   private final String id;
-   private final VersionStatus status;
-   private final String wadl;
-
-   @ConstructorProperties({
-      "docURL", "id", "status", "wadl"
-   })
-   protected Version(String docURL, String id, @Nullable VersionStatus status, @Nullable String wadl) {
-      this.docURL = checkNotNull(docURL, "docURL");
-      this.id = checkNotNull(id, "id");
-      this.status = status == null ? VersionStatus.UNRECOGNIZED : status;
-      this.wadl = wadl;
-   }
-
-   public String getDocURL() {
-      return this.docURL;
-   }
-
-   public String getId() {
-      return this.id;
-   }
-
-   public VersionStatus getStatus() {
-      return this.status;
-   }
-
-   @Nullable
-   public String getWadl() {
-      return this.wadl;
-   }
-
-   @Override
-   public int hashCode() {
-      return Objects.hashCode(docURL, id, status, wadl);
-   }
-
-   @Override
-   public boolean equals(Object obj) {
-      if (this == obj) return true;
-      if (obj == null || getClass() != obj.getClass()) return false;
-      Version that = Version.class.cast(obj);
-      return Objects.equal(this.docURL, that.docURL)
-               && Objects.equal(this.id, that.id)
-               && Objects.equal(this.status, that.status)
-               && Objects.equal(this.wadl, that.wadl);
-   }
-   
-   protected ToStringHelper string() {
-      return Objects.toStringHelper(this)
-            .add("docURL", docURL).add("id", id).add("status", status).add("wadl", wadl);
-   }
-   
-   @Override
-   public String toString() {
-      return string().toString();
-   }
-
-}

http://git-wip-us.apache.org/repos/asf/jclouds/blob/162226b8/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/VersionStatus.java
----------------------------------------------------------------------
diff --git a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/VersionStatus.java b/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/VersionStatus.java
deleted file mode 100644
index 164dc73..0000000
--- a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/VersionStatus.java
+++ /dev/null
@@ -1,35 +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.
- */
-package org.jclouds.cloudservers.domain;
-
-public enum VersionStatus {
-
-   BETA, CURRENT, DEPRECATED, UNRECOGNIZED;
-
-   public String value() {
-      return name();
-   }
-
-   public static VersionStatus fromValue(String v) {
-      try {
-         return valueOf(v);
-      } catch (IllegalArgumentException e) {
-         return UNRECOGNIZED;
-      }
-   }
-
-}

http://git-wip-us.apache.org/repos/asf/jclouds/blob/162226b8/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/WeeklyBackup.java
----------------------------------------------------------------------
diff --git a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/WeeklyBackup.java b/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/WeeklyBackup.java
deleted file mode 100644
index f629213..0000000
--- a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/domain/WeeklyBackup.java
+++ /dev/null
@@ -1,35 +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.
- */
-package org.jclouds.cloudservers.domain;
-
-public enum WeeklyBackup {
-
-   DISABLED, SUNDAY, MONDAY, TUESDAY, WEDNESDAY, THURSDAY, FRIDAY, SATURDAY, UNRECOGNIZED;
-
-   public String value() {
-      return name();
-   }
-
-   public static WeeklyBackup fromValue(String v) {
-      try {
-         return valueOf(v);
-      } catch (IllegalArgumentException e) {
-         return UNRECOGNIZED;
-      }
-   }
-
-}

http://git-wip-us.apache.org/repos/asf/jclouds/blob/162226b8/apis/cloudservers/src/main/java/org/jclouds/cloudservers/handlers/ParseCloudServersErrorFromHttpResponse.java
----------------------------------------------------------------------
diff --git a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/handlers/ParseCloudServersErrorFromHttpResponse.java b/apis/cloudservers/src/main/java/org/jclouds/cloudservers/handlers/ParseCloudServersErrorFromHttpResponse.java
deleted file mode 100644
index 012e5e5..0000000
--- a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/handlers/ParseCloudServersErrorFromHttpResponse.java
+++ /dev/null
@@ -1,90 +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.
- */
-package org.jclouds.cloudservers.handlers;
-
-import static org.jclouds.http.HttpUtils.releasePayload;
-
-import java.io.IOException;
-import java.util.regex.Matcher;
-import java.util.regex.Pattern;
-
-import javax.annotation.Resource;
-
-import org.jclouds.http.HttpCommand;
-import org.jclouds.http.HttpErrorHandler;
-import org.jclouds.http.HttpResponse;
-import org.jclouds.http.HttpResponseException;
-import org.jclouds.logging.Logger;
-import org.jclouds.rest.AuthorizationException;
-import org.jclouds.rest.ResourceNotFoundException;
-import org.jclouds.util.Strings2;
-
-/**
- * This will parse and set an appropriate exception on the command object.
- */
-public class ParseCloudServersErrorFromHttpResponse implements HttpErrorHandler {
-   @Resource
-   protected Logger logger = Logger.NULL;
-   public static final Pattern RESOURCE_PATTERN = Pattern
-            .compile("^/v1[^/]*/[0-9]+/([^/]+)/([0-9]+)");
-
-   public void handleError(HttpCommand command, HttpResponse response) {
-      Exception exception = new HttpResponseException(command, response);
-      try {
-         String content = parseErrorFromContentOrNull(command, response);
-         exception = content != null ? new HttpResponseException(command, response, content) : exception;
-         switch (response.getStatusCode()) {
-            case 401:
-               exception = new AuthorizationException(exception.getMessage(), exception);
-               break;
-            case 404:
-               if (!command.getCurrentRequest().getMethod().equals("DELETE")) {
-                  String path = command.getCurrentRequest().getEndpoint().getPath();
-                  Matcher matcher = RESOURCE_PATTERN.matcher(path);
-                  String message;
-                  if (matcher.find()) {
-                     message = String.format("%s %s not found", matcher.group(1), matcher.group(2));
-                  } else {
-                     message = path;
-                  }
-                  exception = new ResourceNotFoundException(message);
-               }
-               break;
-            case 409:
-               exception = new IllegalStateException(content);
-               break;
-            default:
-               exception = new HttpResponseException(command, response, content);
-               break;
-         }
-      } finally {
-         releasePayload(response);
-         command.setException(exception);
-      }
-   }
-
-   String parseErrorFromContentOrNull(HttpCommand command, HttpResponse response) {
-      if (response.getPayload() != null) {
-         try {
-            return Strings2.toStringAndClose(response.getPayload().openStream());
-         } catch (IOException e) {
-            logger.warn(e, "exception reading error from response", response);
-         }
-      }
-      return null;
-   }
-}

http://git-wip-us.apache.org/repos/asf/jclouds/blob/162226b8/apis/cloudservers/src/main/java/org/jclouds/cloudservers/options/CreateServerOptions.java
----------------------------------------------------------------------
diff --git a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/options/CreateServerOptions.java b/apis/cloudservers/src/main/java/org/jclouds/cloudservers/options/CreateServerOptions.java
deleted file mode 100644
index c6e0cc2..0000000
--- a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/options/CreateServerOptions.java
+++ /dev/null
@@ -1,234 +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.
- */
-package org.jclouds.cloudservers.options;
-
-import static com.google.common.base.Preconditions.checkArgument;
-import static com.google.common.base.Preconditions.checkNotNull;
-import static com.google.common.base.Preconditions.checkState;
-import static com.google.common.io.BaseEncoding.base64;
-
-import java.util.List;
-import java.util.Map;
-import java.util.Map.Entry;
-
-import javax.inject.Inject;
-
-import org.jclouds.cloudservers.domain.Addresses;
-import org.jclouds.http.HttpRequest;
-import org.jclouds.rest.MapBinder;
-import org.jclouds.rest.binders.BindToJsonPayload;
-
-import com.google.common.collect.ImmutableMap;
-import com.google.common.collect.ImmutableSet;
-import com.google.common.collect.Lists;
-import com.google.common.collect.Maps;
-
-public class CreateServerOptions implements MapBinder {
-   @Inject
-   private BindToJsonPayload jsonBinder;
-
-   static class File {
-      private final String path;
-      private final String contents;
-
-      public File(String path, byte[] contents) {
-         this.path = checkNotNull(path, "path");
-         this.contents = base64().encode(checkNotNull(contents, "contents"));
-         checkArgument(path.getBytes().length < 255, String.format(
-                  "maximum length of path is 255 bytes.  Path specified %s is %d bytes", path, path.getBytes().length));
-         checkArgument(contents.length < 10 * 1024, String.format(
-                  "maximum size of the file is 10KB.  Contents specified is %d bytes", contents.length));
-      }
-
-      public String getContents() {
-         return contents;
-      }
-
-      public String getPath() {
-         return path;
-      }
-
-   }
-
-   @SuppressWarnings("unused")
-   private static class ServerRequest {
-      final String name;
-      final int imageId;
-      final int flavorId;
-      Map<String, String> metadata;
-      List<File> personality;
-      Integer sharedIpGroupId;
-      Addresses addresses;
-
-      private ServerRequest(String name, int imageId, int flavorId) {
-         this.name = name;
-         this.imageId = imageId;
-         this.flavorId = flavorId;
-      }
-
-   }
-
-   private Map<String, String> metadata = Maps.newHashMap();
-   private List<File> files = Lists.newArrayList();
-   private Integer sharedIpGroupId;
-   private String publicIp;
-
-   @Override
-   public <R extends HttpRequest> R bindToRequest(R request, Map<String, Object> postParams) {
-      ServerRequest server = new ServerRequest(checkNotNull(postParams.get("name"), "name parameter not present").toString(),
-               Integer.parseInt(checkNotNull(postParams.get("imageId"), "imageId parameter not present").toString()),
-               Integer.parseInt(checkNotNull(postParams.get("flavorId"), "flavorId parameter not present").toString()));
-      if (!metadata.isEmpty())
-         server.metadata = metadata;
-      if (!files.isEmpty())
-         server.personality = files;
-      if (sharedIpGroupId != null)
-         server.sharedIpGroupId = this.sharedIpGroupId;
-      if (publicIp != null) {
-         server.addresses = Addresses.builder().publicAddresses(ImmutableSet.of(publicIp)).build();
-      }
-      return bindToRequest(request, ImmutableMap.of("server", server));
-   }
-
-   /**
-    * You may further customize a cloud server by injecting data into the file system of the cloud
-    * server itself. This is useful, for example, for inserting ssh keys, setting configuration
-    * files, or storing data that you want to retrieve from within the instance itself. It is
-    * intended to provide a minimal amount of launch-time personalization. If significant
-    * customization is required, a custom image should be created. The max size of the file path
-    * data is 255 bytes while the max size of the file contents is 10KB. Note that the file contents
-    * should be encoded as a Base64 string and the 10KB limit refers to the number of bytes in the
-    * decoded data not the number of characters in the encoded data. The maximum number of file
-    * path/content pairs that can be supplied is 5. Any existing files that match the specified file
-    * will be renamed to include the extension bak followed by a time stamp. For example, the file
-    * /etc/passwd will be backed up as /etc/passwd.bak.1246036261.5785. All files will have root and
-    * the root group as owner and group owner, respectively and will allow user and group read
-    * access only (-r--r-----).
-    */
-   public CreateServerOptions withFile(String path, byte[] contents) {
-      checkState(files.size() < 5, "maximum number of files allowed is 5");
-      files.add(new File(path, contents));
-      return this;
-   }
-
-   /**
-    * A shared IP group is a collection of servers that can share IPs with other members of the
-    * group. Any server in a group can share one or more public IPs with any other server in the
-    * group. With the exception of the first server in a shared IP group, servers must be launched
-    * into shared IP groups. A server may only be a member of one shared IP group.
-    *
-    * <p/>
-    * Servers in the same shared IP group can share public IPs for various high availability and
-    * load balancing configurations. To launch an HA server, include the optional sharedIpGroupId
-    * element and the server will be launched into that shared IP group.
-    * <p />
-    *
-    * Note: sharedIpGroupId is an optional parameter and for optimal performance, should ONLY be
-    * specified when intending to share IPs between servers.
-    *
-    * @see #withSharedIp(String)
-    */
-   public CreateServerOptions withSharedIpGroup(int id) {
-      checkArgument(id > 0, "id must be positive or zero.  was: " + id);
-      this.sharedIpGroupId = id;
-      return this;
-   }
-
-   /**
-    * Custom cloud server metadata can also be supplied at launch time. This metadata is stored in
-    * the API system where it is retrievable by querying the API for server status. The maximum size
-    * of the metadata key and value is each 255 bytes and the maximum number of key-value pairs that
-    * can be supplied per server is 5.
-    */
-   public CreateServerOptions withMetadata(Map<String, String> metadata) {
-      checkNotNull(metadata, "metadata");
-      checkArgument(metadata.size() <= 5, "you cannot have more then 5 metadata values.  You specified: "
-               + metadata.size());
-      for (Entry<String, String> entry : metadata.entrySet()) {
-         checkArgument(entry.getKey().getBytes().length < 255, String.format(
-                  "maximum length of metadata key is 255 bytes.  Key specified %s is %d bytes", entry.getKey(), entry
-                           .getKey().getBytes().length));
-         checkArgument(entry.getKey().getBytes().length < 255, String.format(
-                  "maximum length of metadata value is 255 bytes.  Value specified for %s (%s) is %d bytes", entry
-                           .getKey(), entry.getValue(), entry.getValue().getBytes().length));
-      }
-      this.metadata = metadata;
-      return this;
-   }
-
-   /**
-    * Public IP addresses can be shared across multiple servers for use in various high availability
-    * scenarios. When an IP address is shared to another server, the cloud network restrictions are
-    * modified to allow each server to listen to and respond on that IP address (you may optionally
-    * specify that the target server network configuration be modified). Shared IP addresses can be
-    * used with many standard heartbeat facilities (e.g. keepalived) that monitor for failure and
-    * manage IP failover.
-    *
-    * <p/>
-    * If you intend to use a shared IP on the server being created and have no need for a separate
-    * public IP address, you may launch the server into a shared IP group and specify an IP address
-    * from that shared IP group to be used as its public IP. You can accomplish this by specifying
-    * the public shared IP address in your request. This is optional and is only valid if
-    * sharedIpGroupId is also supplied.
-    */
-   public CreateServerOptions withSharedIp(String publicIp) {
-      checkState(sharedIpGroupId != null, "sharedIp is invalid unless a shared ip group is specified.");
-      this.publicIp = checkNotNull(publicIp, "ip");
-      return this;
-   }
-
-   public static class Builder {
-
-      /**
-       * @see CreateServerOptions#withFile(String,byte[])
-       */
-      public static CreateServerOptions withFile(String path, byte[] contents) {
-         CreateServerOptions options = new CreateServerOptions();
-         return options.withFile(path, contents);
-      }
-
-      /**
-       * @see CreateServerOptions#withSharedIpGroup(int)
-       */
-      public static CreateServerOptions withSharedIpGroup(int id) {
-         CreateServerOptions options = new CreateServerOptions();
-         return options.withSharedIpGroup(id);
-      }
-
-      /**
-       * @see CreateServerOptions#withMetadata(Map<String, String>)
-       */
-      public static CreateServerOptions withMetadata(Map<String, String> metadata) {
-         CreateServerOptions options = new CreateServerOptions();
-         return options.withMetadata(metadata);
-      }
-
-      /**
-       * @see CreateServerOptions#withSharedIp(String)
-       */
-      public static CreateServerOptions withSharedIp(String publicIp) {
-         CreateServerOptions options = new CreateServerOptions();
-         return options.withSharedIp(publicIp);
-      }
-
-   }
-
-   @Override
-   public <R extends HttpRequest> R bindToRequest(R request, Object input) {
-      return jsonBinder.bindToRequest(request, input);
-   }
-}

http://git-wip-us.apache.org/repos/asf/jclouds/blob/162226b8/apis/cloudservers/src/main/java/org/jclouds/cloudservers/options/CreateSharedIpGroupOptions.java
----------------------------------------------------------------------
diff --git a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/options/CreateSharedIpGroupOptions.java b/apis/cloudservers/src/main/java/org/jclouds/cloudservers/options/CreateSharedIpGroupOptions.java
deleted file mode 100644
index 56f1b72..0000000
--- a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/options/CreateSharedIpGroupOptions.java
+++ /dev/null
@@ -1,84 +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.
- */
-package org.jclouds.cloudservers.options;
-
-import static com.google.common.base.Preconditions.checkArgument;
-import static com.google.common.base.Preconditions.checkNotNull;
-
-import java.util.Map;
-
-import javax.inject.Inject;
-
-import org.jclouds.http.HttpRequest;
-import org.jclouds.javax.annotation.Nullable;
-import org.jclouds.rest.MapBinder;
-import org.jclouds.rest.binders.BindToJsonPayload;
-
-import com.google.common.collect.ImmutableMap;
-
-public class CreateSharedIpGroupOptions implements MapBinder {
-   @Inject
-   private BindToJsonPayload jsonBinder;
-
-   Integer serverId;
-
-   @SuppressWarnings("unused")
-   private static class SharedIpGroupRequest {
-      final String name;
-      Integer server;
-
-      private SharedIpGroupRequest(String name, @Nullable Integer serverId) {
-         this.name = name;
-         this.server = serverId;
-      }
-
-   }
-
-   @Override
-   public <R extends HttpRequest> R bindToRequest(R request, Map<String, Object> postParams) {
-      SharedIpGroupRequest createRequest = new SharedIpGroupRequest(checkNotNull(postParams.get("name")).toString(), serverId);
-      return jsonBinder.bindToRequest(request, ImmutableMap.of("sharedIpGroup", createRequest));
-   }
-
-   @Override
-   public <R extends HttpRequest> R bindToRequest(R request, Object toBind) {
-      throw new IllegalStateException("CreateSharedIpGroup is a POST operation");
-   }
-
-   /**
-    * 
-    * @param id
-    *           of the server to include with this request.
-    */
-   public CreateSharedIpGroupOptions withServer(int id) {
-      checkArgument(id > 0, "server id must be a positive number");
-      this.serverId = id;
-      return this;
-   }
-
-   public static class Builder {
-
-      /**
-       * @see CreateSharedIpGroupOptions#withServer(int)
-       */
-      public static CreateSharedIpGroupOptions withServer(int id) {
-         CreateSharedIpGroupOptions options = new CreateSharedIpGroupOptions();
-         return options.withServer(id);
-      }
-   }
-
-}

http://git-wip-us.apache.org/repos/asf/jclouds/blob/162226b8/apis/cloudservers/src/main/java/org/jclouds/cloudservers/options/ListOptions.java
----------------------------------------------------------------------
diff --git a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/options/ListOptions.java b/apis/cloudservers/src/main/java/org/jclouds/cloudservers/options/ListOptions.java
deleted file mode 100644
index d4f5144..0000000
--- a/apis/cloudservers/src/main/java/org/jclouds/cloudservers/options/ListOptions.java
+++ /dev/null
@@ -1,106 +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.
- */
-package org.jclouds.cloudservers.options;
-
-import java.util.Date;
-
-import org.jclouds.openstack.options.BaseListOptions;
-
-/**
- * Options used to control the amount of detail in the request.
- * 
- * @see BaseListOptions
- * @see <a href="http://docs.rackspacecloud.com/servers/api/cs-devguide-latest.pdf" />
- */
-public class ListOptions extends BaseListOptions {
-
-   public static final ListOptions NONE = new ListOptions();
-
-   /**
-    * unless used, only the name and id will be returned per row.
-    * 
-    * @return
-    */
-   public ListOptions withDetails() {
-      this.pathSuffix = "/detail";
-      return this;
-   }
-
-   /**
-    * {@inheritDoc}
-    */
-   @Override
-   public ListOptions changesSince(Date ifModifiedSince) {
-      super.changesSince(ifModifiedSince);
-      return this;
-   }
-
-   /**
-    * {@inheritDoc}
-    */
-   @Override
-   public ListOptions maxResults(int limit) {
-      super.maxResults(limit);
-      return this;
-
-   }
-
-   /**
-    * {@inheritDoc}
-    */
-   @Override
-   public ListOptions startAt(long offset) {
-      super.startAt(offset);
-      return this;
-   }
-
-   public static class Builder {
-
-      /**
-       * @see ListOptions#withDetails()
-       */
-      public static ListOptions withDetails() {
-         ListOptions options = new ListOptions();
-         return options.withDetails();
-      }
-
-      /**
-       * @see BaseListOptions#startAt(long)
-       */
-      public static ListOptions startAt(long prefix) {
-         ListOptions options = new ListOptions();
-         return options.startAt(prefix);
-      }
-
-      /**
-       * @see BaseListOptions#maxResults(long)
-       */
-      public static ListOptions maxResults(int maxKeys) {
-         ListOptions options = new ListOptions();
-         return options.maxResults(maxKeys);
-      }
-
-      /**
-       * @see BaseListOptions#changesSince(Date)
-       */
-      public static ListOptions changesSince(Date since) {
-         ListOptions options = new ListOptions();
-         return options.changesSince(since);
-      }
-
-   }
-}