/// <summary> /// List the deployments for a website. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.WebSitesExtensions.IDeploymentOperations. /// </param> /// <param name='parameters'> /// Additional parameters. /// </param> /// <returns> /// The list of deployments operation response. /// </returns> public static DeploymentListResponse List(this IDeploymentOperations operations, DeploymentListParameters parameters) { try { return(operations.ListAsync(parameters).Result); } catch (AggregateException ex) { if (ex.InnerExceptions.Count > 1) { throw; } else { throw ex.InnerException; } } }
/// <summary> /// Get a list of deployments. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.Resources.IDeploymentOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group to filter by. The name is /// case insensitive. /// </param> /// <param name='parameters'> /// Optional. Query parameters. If null is passed returns all /// deployments. /// </param> /// <returns> /// List of deployments. /// </returns> public static Task <DeploymentListResult> ListAsync(this IDeploymentOperations operations, string resourceGroupName, DeploymentListParameters parameters) { return(operations.ListAsync(resourceGroupName, parameters, CancellationToken.None)); }
/// <summary> /// List the deployments for a website. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.WindowsAzure.WebSitesExtensions.IDeploymentOperations. /// </param> /// <param name='parameters'> /// Additional parameters. /// </param> /// <returns> /// The list of deployments operation response. /// </returns> public static Task <DeploymentListResponse> ListAsync(this IDeploymentOperations operations, DeploymentListParameters parameters) { return(operations.ListAsync(parameters, CancellationToken.None)); }
/// <summary> /// Gets all deployments operations for a deployment. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. The name is case insensitive. /// </param> /// <param name='deploymentName'> /// The name of the deployment with the operation to get. /// </param> /// <param name='top'> /// The number of results to return. /// </param> public static IPage <DeploymentOperation> List(this IDeploymentOperations operations, string resourceGroupName, string deploymentName, int?top = default(int?)) { return(operations.ListAsync(resourceGroupName, deploymentName, top).GetAwaiter().GetResult()); }