openstack: replacing SerializedName with Named

This commit is contained in:
Adam Lowe 2012-07-03 14:53:59 +01:00
parent 7ed9ebda47
commit 3f5993a2d8
2 changed files with 2 additions and 4 deletions

View File

@ -30,6 +30,7 @@ import java.util.Map.Entry;
import java.util.Set; import java.util.Set;
import javax.inject.Inject; import javax.inject.Inject;
import javax.inject.Named;
import org.jclouds.encryption.internal.Base64; import org.jclouds.encryption.internal.Base64;
import org.jclouds.http.HttpRequest; import org.jclouds.http.HttpRequest;
@ -46,7 +47,6 @@ import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet; import com.google.common.collect.ImmutableSet;
import com.google.common.collect.Lists; import com.google.common.collect.Lists;
import com.google.common.collect.Sets; import com.google.common.collect.Sets;
import com.google.gson.annotations.SerializedName;
/** /**
* *
@ -152,7 +152,6 @@ public class CreateServerOptions implements MapBinder {
return string().toString(); return string().toString();
} }
@SuppressWarnings("unused")
private class ServerRequest { private class ServerRequest {
final String name; final String name;
final String imageRef; final String imageRef;
@ -161,7 +160,7 @@ public class CreateServerOptions implements MapBinder {
Map<String, String> metadata; Map<String, String> metadata;
List<File> personality; List<File> personality;
String key_name; String key_name;
@SerializedName(value = "security_groups") @Named("security_groups")
Set<NamedThingy> securityGroupNames; Set<NamedThingy> securityGroupNames;
String user_data; String user_data;

View File

@ -31,7 +31,6 @@ import javax.inject.Named;
import org.jclouds.javax.annotation.Nullable; import org.jclouds.javax.annotation.Nullable;
import com.google.common.base.Objects; import com.google.common.base.Objects;
import com.google.gson.annotations.SerializedName;
/** /**
* For convenience, resources contain links to themselves. This allows a client to easily obtain a * For convenience, resources contain links to themselves. This allows a client to easily obtain a