Beispiel #1
0
 /// <summary>
 /// Lists all of the applications available in the specified account.
 /// </summary>
 /// <remarks>
 /// This operation returns only applications and versions that are available
 /// for use on compute nodes; that is, that can be used in an application
 /// package reference. For administrator information about applications and
 /// versions that are not yet available to compute nodes, use the Azure portal
 /// or the Azure Resource Manager API.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='applicationListOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static IPage <ApplicationSummary> List(this IApplicationOperations operations, ApplicationListOptions applicationListOptions = default(ApplicationListOptions))
 {
     return(operations.ListAsync(applicationListOptions).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Lists all of the applications in the specified account.
 /// </summary>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// The name of the resource group that contains the Batch account.
 /// </param>
 /// <param name='accountName'>
 /// The name of the Batch account.
 /// </param>
 /// <param name='maxresults'>
 /// The maximum number of items to return in the response.
 /// </param>
 public static IPage <Application> List(this IApplicationOperations operations, string resourceGroupName, string accountName, int?maxresults = default(int?))
 {
     return(operations.ListAsync(resourceGroupName, accountName, maxresults).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Get applications by filters.  (see
 /// http://msdn.microsoft.com/en-us/library/azure/hh974476.aspx for
 /// more information)
 /// </summary>
 /// <param name='operations'>
 /// Reference to the Microsoft.Azure.Graph.RBAC.IApplicationOperations.
 /// </param>
 /// <param name='parameters'>
 /// Required. Application filter parameters
 /// </param>
 /// <returns>
 /// Server response for List application information API call
 /// </returns>
 public static Task <ApplicationListResult> ListAsync(this IApplicationOperations operations, ApplicationFilterParameters parameters)
 {
     return(operations.ListAsync(parameters, CancellationToken.None));
 }
 /// <summary>
 /// Lists all of the applications in the specified account.
 /// </summary>
 /// <param name='operations'>
 /// Reference to the
 /// Microsoft.Azure.Management.Batch.IApplicationOperations.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Required. The name of the resource group that contains the Batch
 /// account.
 /// </param>
 /// <param name='accountName'>
 /// Required. The name of the Batch account.
 /// </param>
 /// <param name='parameters'>
 /// Required. The parameters for the request.
 /// </param>
 /// <returns>
 /// Response to an ApplicationOperations.ListApplications request.
 /// </returns>
 public static Task <ListApplicationsResponse> ListAsync(this IApplicationOperations operations, string resourceGroupName, string accountName, ListApplicationsParameters parameters)
 {
     return(operations.ListAsync(resourceGroupName, accountName, parameters, CancellationToken.None));
 }