public Observable<Page<DeploymentExtendedInner>> listByResourceGroupAsync(final String resourceGroupName) {
        return listByResourceGroupWithServiceResponseAsync(resourceGroupName)
            .map(new Func1<ServiceResponse<Page<DeploymentExtendedInner>>, Page<DeploymentExtendedInner>>() {
                @Override
                public Page<DeploymentExtendedInner> call(ServiceResponse<Page<DeploymentExtendedInner>> response) {
                    return response.body();
                }
            });
    }
public Observable < Page < DeploymentExtendedInner > > listByResourceGroupAsync ( final String resourceGroupName ) { return listByResourceGroupWithServiceResponseAsync ( resourceGroupName ) . map ( new Func1 < ServiceResponse < Page < DeploymentExtendedInner > > , Page < DeploymentExtendedInner > > ( ) { @ Override public Page < DeploymentExtendedInner > call ( ServiceResponse < Page < DeploymentExtendedInner > > response ) { return response . body ( ) ; } } ) ; }
Get all the deployments for a resource group.

@param resourceGroupName The name of the resource group with the deployments to get. The name is case insensitive.
@throws IllegalArgumentException thrown if parameters fail the validation
@return the observable to the PagedList&lt;DeploymentExtendedInner&gt; object