/// <summary>
 /// Get all the deployments for a resource group.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group with the deployments to get. The name is
 /// case insensitive.
 /// </param>
 /// <param name='odataQuery'>
 /// OData parameters to apply to the operation.
 /// </param>
 /// <param name='cancellationToken'>
 /// The cancellation token.
 /// </param>
 public static async Task <IPage <DeploymentExtendedInner> > ListByResourceGroupAsync(this IDeploymentsOperations operations, string resourceGroupName, ODataQuery <DeploymentExtendedFilterInner> odataQuery = default(ODataQuery <DeploymentExtendedFilterInner>), CancellationToken cancellationToken = default(CancellationToken))
 {
     using (var _result = await operations.ListByResourceGroupWithHttpMessagesAsync(resourceGroupName, odataQuery, null, cancellationToken).ConfigureAwait(false))
     {
         return(_result.Body);
     }
 }