mirror of https://github.com/apache/jclouds.git
Updated formatting and added license headers.
This commit is contained in:
parent
1151cbc241
commit
79113a373b
|
@ -1,7 +1,29 @@
|
||||||
|
/**
|
||||||
|
* Licensed to jclouds, Inc. (jclouds) under one or more
|
||||||
|
* contributor license agreements. See the NOTICE file
|
||||||
|
* distributed with this work for additional information
|
||||||
|
* regarding copyright ownership. jclouds 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.cloudstack.domain;
|
package org.jclouds.cloudstack.domain;
|
||||||
|
|
||||||
import com.google.gson.annotations.SerializedName;
|
import com.google.gson.annotations.SerializedName;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Vijay Kiran
|
||||||
|
*/
|
||||||
public class SSHKeyPair implements Comparable<SSHKeyPair> {
|
public class SSHKeyPair implements Comparable<SSHKeyPair> {
|
||||||
|
|
||||||
public static Builder builder() {
|
public static Builder builder() {
|
||||||
|
|
|
@ -40,6 +40,9 @@ import com.google.common.util.concurrent.ListenableFuture;
|
||||||
|
|
||||||
@RequestFilters(QuerySigner.class)
|
@RequestFilters(QuerySigner.class)
|
||||||
@QueryParams(keys = "response", values = "json")
|
@QueryParams(keys = "response", values = "json")
|
||||||
|
/**
|
||||||
|
* @author Vijay Kiran
|
||||||
|
*/
|
||||||
public interface SSHKeyPairAsyncClient {
|
public interface SSHKeyPairAsyncClient {
|
||||||
/**
|
/**
|
||||||
* @see org.jclouds.cloudstack.features.SSHKeyPairClient#listSSHKeyPairs
|
* @see org.jclouds.cloudstack.features.SSHKeyPairClient#listSSHKeyPairs
|
||||||
|
|
|
@ -1,3 +1,22 @@
|
||||||
|
/**
|
||||||
|
* Licensed to jclouds, Inc. (jclouds) under one or more
|
||||||
|
* contributor license agreements. See the NOTICE file
|
||||||
|
* distributed with this work for additional information
|
||||||
|
* regarding copyright ownership. jclouds 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.cloudstack.features;
|
package org.jclouds.cloudstack.features;
|
||||||
|
|
||||||
import java.util.Set;
|
import java.util.Set;
|
||||||
|
@ -11,7 +30,7 @@ import org.jclouds.concurrent.Timeout;
|
||||||
* Provides synchronous access to CloudStack SSHKeyPair features.
|
* Provides synchronous access to CloudStack SSHKeyPair features.
|
||||||
* <p/>
|
* <p/>
|
||||||
*
|
*
|
||||||
* @author Adrian Cole
|
* @author Vijay Kiran
|
||||||
* @see <a href=
|
* @see <a href=
|
||||||
* "http://download.cloud.com/releases/2.2.0/api_2.2.8/user/listSSHKeyPairs.html"
|
* "http://download.cloud.com/releases/2.2.0/api_2.2.8/user/listSSHKeyPairs.html"
|
||||||
* />
|
* />
|
||||||
|
|
|
@ -22,6 +22,9 @@ import org.jclouds.http.options.BaseHttpRequestOptions;
|
||||||
|
|
||||||
import com.google.common.collect.ImmutableSet;
|
import com.google.common.collect.ImmutableSet;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Vijay Kiran
|
||||||
|
*/
|
||||||
public class ListSSHKeyPairsOptions extends BaseHttpRequestOptions {
|
public class ListSSHKeyPairsOptions extends BaseHttpRequestOptions {
|
||||||
|
|
||||||
public static final ListSSHKeyPairsOptions NONE = new ListSSHKeyPairsOptions();
|
public static final ListSSHKeyPairsOptions NONE = new ListSSHKeyPairsOptions();
|
||||||
|
|
|
@ -36,10 +36,8 @@ import com.google.inject.TypeLiteral;
|
||||||
/**
|
/**
|
||||||
* Tests behavior of {@code SSHKeyPairAsyncClient}
|
* Tests behavior of {@code SSHKeyPairAsyncClient}
|
||||||
*
|
*
|
||||||
* @author Adrian Cole
|
* @author Vijay Kiran
|
||||||
*/
|
*/
|
||||||
// NOTE:without testName, this will not call @Before* and fail w/NPE during
|
|
||||||
// surefire
|
|
||||||
@Test(groups = "unit", testName = "SSHKeyPairAsyncClientTest")
|
@Test(groups = "unit", testName = "SSHKeyPairAsyncClientTest")
|
||||||
public class SSHKeyPairAsyncClientTest extends BaseCloudStackAsyncClientTest<SSHKeyPairAsyncClient> {
|
public class SSHKeyPairAsyncClientTest extends BaseCloudStackAsyncClientTest<SSHKeyPairAsyncClient> {
|
||||||
|
|
||||||
|
|
|
@ -28,7 +28,7 @@ import org.testng.annotations.Test;
|
||||||
/**
|
/**
|
||||||
* Tests behavior of {@code SSHKeyPairClient}
|
* Tests behavior of {@code SSHKeyPairClient}
|
||||||
*
|
*
|
||||||
* @author Adrian Cole
|
* @author Vijay Kiran
|
||||||
*/
|
*/
|
||||||
@Test(groups = "live", singleThreaded = true, testName = "SSHKeyPairClientLiveTest")
|
@Test(groups = "live", singleThreaded = true, testName = "SSHKeyPairClientLiveTest")
|
||||||
public class SSHKeyPairClientLiveTest extends BaseCloudStackClientLiveTest {
|
public class SSHKeyPairClientLiveTest extends BaseCloudStackClientLiveTest {
|
||||||
|
|
Loading…
Reference in New Issue