Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerate and fix some tests #634

Merged
merged 3 commits into from
Mar 30, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,13 @@
package com.microsoft.azure.management.compute;

import com.microsoft.azure.CloudException;
import com.microsoft.azure.ListOperationCallback;
import com.microsoft.azure.management.compute.models.AvailabilitySet;
import com.microsoft.azure.management.compute.models.PageImpl;
import com.microsoft.azure.management.compute.models.VirtualMachineSize;
import com.microsoft.azure.PagedList;
import com.microsoft.rest.ServiceCall;
import com.microsoft.rest.ServiceCallback;
import com.microsoft.rest.ServiceResponse;
import java.io.IOException;
import java.util.List;

/**
* An instance of this class provides access to all the operations defined
Expand Down Expand Up @@ -102,7 +100,7 @@ public interface AvailabilitySetsOperations {
* @throws IllegalArgumentException exception thrown from invalid parameters
* @return the List<AvailabilitySet> object wrapped in {@link ServiceResponse} if successful.
*/
ServiceResponse<PagedList<AvailabilitySet>> list(final String resourceGroupName) throws CloudException, IOException, IllegalArgumentException;
ServiceResponse<List<AvailabilitySet>> list(String resourceGroupName) throws CloudException, IOException, IllegalArgumentException;

/**
* The operation to list the availability sets.
Expand All @@ -112,10 +110,10 @@ public interface AvailabilitySetsOperations {
* @throws IllegalArgumentException thrown if callback is null
* @return the {@link ServiceCall} object
*/
ServiceCall listAsync(final String resourceGroupName, final ListOperationCallback<AvailabilitySet> serviceCallback) throws IllegalArgumentException;
ServiceCall listAsync(String resourceGroupName, final ServiceCallback<List<AvailabilitySet>> serviceCallback) throws IllegalArgumentException;

/**
* Lists virtual-machine-sizes available to be used for an availability set.
* Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set.
*
* @param resourceGroupName The name of the resource group.
* @param availabilitySetName The name of the availability set.
Expand All @@ -124,61 +122,17 @@ public interface AvailabilitySetsOperations {
* @throws IllegalArgumentException exception thrown from invalid parameters
* @return the List&lt;VirtualMachineSize&gt; object wrapped in {@link ServiceResponse} if successful.
*/
ServiceResponse<PagedList<VirtualMachineSize>> listAvailableSizes(final String resourceGroupName, final String availabilitySetName) throws CloudException, IOException, IllegalArgumentException;
ServiceResponse<List<VirtualMachineSize>> listAvailableSizes(String resourceGroupName, String availabilitySetName) throws CloudException, IOException, IllegalArgumentException;

/**
* Lists virtual-machine-sizes available to be used for an availability set.
* Lists all available virtual machine sizes that can be used to create a new virtual machine in an existing availability set.
*
* @param resourceGroupName The name of the resource group.
* @param availabilitySetName The name of the availability set.
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if callback is null
* @return the {@link ServiceCall} object
*/
ServiceCall listAvailableSizesAsync(final String resourceGroupName, final String availabilitySetName, final ListOperationCallback<VirtualMachineSize> serviceCallback) throws IllegalArgumentException;

/**
* The operation to list the availability sets.
*
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @throws CloudException exception thrown from REST call
* @throws IOException exception thrown from serialization/deserialization
* @throws IllegalArgumentException exception thrown from invalid parameters
* @return the List&lt;AvailabilitySet&gt; object wrapped in {@link ServiceResponse} if successful.
*/
ServiceResponse<PageImpl<AvailabilitySet>> listNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException;

/**
* The operation to list the availability sets.
*
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param serviceCall the ServiceCall object tracking the Retrofit calls
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if callback is null
* @return the {@link ServiceCall} object
*/
ServiceCall listNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback<AvailabilitySet> serviceCallback) throws IllegalArgumentException;

/**
* Lists virtual-machine-sizes available to be used for an availability set.
*
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @throws CloudException exception thrown from REST call
* @throws IOException exception thrown from serialization/deserialization
* @throws IllegalArgumentException exception thrown from invalid parameters
* @return the List&lt;VirtualMachineSize&gt; object wrapped in {@link ServiceResponse} if successful.
*/
ServiceResponse<PageImpl<VirtualMachineSize>> listAvailableSizesNext(final String nextPageLink) throws CloudException, IOException, IllegalArgumentException;

/**
* Lists virtual-machine-sizes available to be used for an availability set.
*
* @param nextPageLink The NextLink from the previous successful call to List operation.
* @param serviceCall the ServiceCall object tracking the Retrofit calls
* @param serviceCallback the async ServiceCallback to handle successful and failed responses.
* @throws IllegalArgumentException thrown if callback is null
* @return the {@link ServiceCall} object
*/
ServiceCall listAvailableSizesNextAsync(final String nextPageLink, final ServiceCall serviceCall, final ListOperationCallback<VirtualMachineSize> serviceCallback) throws IllegalArgumentException;
ServiceCall listAvailableSizesAsync(String resourceGroupName, String availabilitySetName, final ServiceCallback<List<VirtualMachineSize>> serviceCallback) throws IllegalArgumentException;

}
Loading