diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SSHKeyPairAsyncClient.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SSHKeyPairAsyncClient.java index 85475ba757..8a1a499a48 100644 --- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SSHKeyPairAsyncClient.java +++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SSHKeyPairAsyncClient.java @@ -25,7 +25,7 @@ import javax.ws.rs.GET; import javax.ws.rs.QueryParam; import javax.ws.rs.core.MediaType; -import org.jclouds.cloudstack.domain.SSHKeyPair; +import org.jclouds.cloudstack.domain.SshKeyPair; import org.jclouds.cloudstack.filters.QuerySigner; import org.jclouds.cloudstack.options.ListSSHKeyPairsOptions; import org.jclouds.rest.annotations.ExceptionParser; @@ -52,13 +52,13 @@ public interface SSHKeyPairAsyncClient { @SelectJson("keypair") @Consumes(MediaType.APPLICATION_JSON) @ExceptionParser(ReturnEmptySetOnNotFoundOr404.class) - ListenableFuture> listSSHKeyPairs(ListSSHKeyPairsOptions... options); + ListenableFuture> listSSHKeyPairs(ListSSHKeyPairsOptions... options); @GET @QueryParams(keys = "command", values = "createSSHKeyPair") @SelectJson("keypair") @Consumes(MediaType.APPLICATION_JSON) - ListenableFuture createSSHKeyPair(@QueryParam("name") String name); + ListenableFuture createSSHKeyPair(@QueryParam("name") String name); @GET @QueryParams(keys = "command", values = "listSSHKeyPairs") @@ -66,6 +66,6 @@ public interface SSHKeyPairAsyncClient { @OnlyElement() @Consumes(MediaType.APPLICATION_JSON) @ExceptionParser(ReturnNullOnNotFoundOr404.class) - ListenableFuture getSSHKeyPair(@QueryParam("name") String name); + ListenableFuture getSSHKeyPair(@QueryParam("name") String name); } diff --git a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SSHKeyPairClient.java b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SSHKeyPairClient.java index b54ead1b5c..f3debaccee 100644 --- a/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SSHKeyPairClient.java +++ b/sandbox-apis/cloudstack/src/main/java/org/jclouds/cloudstack/features/SSHKeyPairClient.java @@ -22,7 +22,7 @@ package org.jclouds.cloudstack.features; import java.util.Set; import java.util.concurrent.TimeUnit; -import org.jclouds.cloudstack.domain.SSHKeyPair; +import org.jclouds.cloudstack.domain.SshKeyPair; import org.jclouds.cloudstack.options.ListSSHKeyPairsOptions; import org.jclouds.concurrent.Timeout; @@ -38,9 +38,9 @@ import org.jclouds.concurrent.Timeout; @Timeout(duration = 60, timeUnit = TimeUnit.SECONDS) public interface SSHKeyPairClient { - Set listSSHKeyPairs(ListSSHKeyPairsOptions... options); + Set listSSHKeyPairs(ListSSHKeyPairsOptions... options); - SSHKeyPair createSSHKeyPair(String name); + SshKeyPair createSSHKeyPair(String name); - SSHKeyPair getSSHKeyPair(String name); + SshKeyPair getSSHKeyPair(String name); } \ No newline at end of file diff --git a/sandbox-apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/SSHKeyPairClientLiveTest.java b/sandbox-apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/SSHKeyPairClientLiveTest.java index 4faa649fdb..2bc58c21bf 100644 --- a/sandbox-apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/SSHKeyPairClientLiveTest.java +++ b/sandbox-apis/cloudstack/src/test/java/org/jclouds/cloudstack/features/SSHKeyPairClientLiveTest.java @@ -22,7 +22,7 @@ import static org.testng.Assert.assertEquals; import java.util.Set; -import org.jclouds.cloudstack.domain.SSHKeyPair; +import org.jclouds.cloudstack.domain.SshKeyPair; import org.testng.annotations.Test; /** @@ -34,18 +34,18 @@ import org.testng.annotations.Test; public class SSHKeyPairClientLiveTest extends BaseCloudStackClientLiveTest { public void testListSSHKeyPairs() { - final Set sshKeyPairs = client.getSSHKeyPairClient().listSSHKeyPairs(); - for (SSHKeyPair sshKeyPair : sshKeyPairs) { + final Set sshKeyPairs = client.getSSHKeyPairClient().listSSHKeyPairs(); + for (SshKeyPair sshKeyPair : sshKeyPairs) { checkSSHKeyPair(sshKeyPair); } } public void testCreateSSHKeyPair() { - final SSHKeyPair sshKeyPair = client.getSSHKeyPairClient().createSSHKeyPair("jclouds-keypair"); + final SshKeyPair sshKeyPair = client.getSSHKeyPairClient().createSSHKeyPair("jclouds-keypair"); System.out.println(sshKeyPair); } - protected void checkSSHKeyPair(SSHKeyPair pair) { + protected void checkSSHKeyPair(SshKeyPair pair) { assert pair.getName() != null : pair; assertEquals(pair.toString(), client.getSSHKeyPairClient().getSSHKeyPair(pair.getName()).toString()); } diff --git a/sandbox-apis/cloudstack/src/test/java/org/jclouds/cloudstack/parse/ListSSHKeyPairsResponseTest.java b/sandbox-apis/cloudstack/src/test/java/org/jclouds/cloudstack/parse/ListSSHKeyPairsResponseTest.java index 55fac47128..72ede73f0d 100644 --- a/sandbox-apis/cloudstack/src/test/java/org/jclouds/cloudstack/parse/ListSSHKeyPairsResponseTest.java +++ b/sandbox-apis/cloudstack/src/test/java/org/jclouds/cloudstack/parse/ListSSHKeyPairsResponseTest.java @@ -21,7 +21,7 @@ package org.jclouds.cloudstack.parse; import java.util.Set; import org.jclouds.cloudstack.config.CloudStackParserModule; -import org.jclouds.cloudstack.domain.SSHKeyPair; +import org.jclouds.cloudstack.domain.SshKeyPair; import org.jclouds.json.BaseSetParserTest; import org.jclouds.json.config.GsonModule; import org.jclouds.rest.annotations.SelectJson; @@ -35,7 +35,7 @@ import com.google.inject.Injector; * @author Adrian Cole */ @Test(groups = "unit") -public class ListSSHKeyPairsResponseTest extends BaseSetParserTest { +public class ListSSHKeyPairsResponseTest extends BaseSetParserTest { @Override protected Injector injector() { @@ -58,8 +58,8 @@ public class ListSSHKeyPairsResponseTest extends BaseSetParserTest { @Override @SelectJson("keypair") - public Set expected() { - return ImmutableSet. of(SSHKeyPair.builder().name("jclouds-keypair") + public Set expected() { + return ImmutableSet. of(SshKeyPair.builder().name("jclouds-keypair") .fingerprint("43:6a:bd:46:e0:3d:3a:8d:ab:69:25:bb:b9:ca:9d:17").build()); }