/// <summary>
 /// Get an application by object Id.  (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='applicationObjectId'>
 /// Required. Application object id
 /// </param>
 /// <returns>
 /// Server response for Get application information API call
 /// </returns>
 public static Task <ApplicationGetResult> GetAsync(this IApplicationOperations operations, string applicationObjectId)
 {
     return(operations.GetAsync(applicationObjectId, CancellationToken.None));
 }
예제 #2
0
 /// <summary>
 /// Gets information about the specified application.
 /// </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='applicationId'>
 /// The ID of the application.
 /// </param>
 /// <param name='applicationGetOptions'>
 /// Additional parameters for the operation
 /// </param>
 public static ApplicationSummary Get(this IApplicationOperations operations, string applicationId, ApplicationGetOptions applicationGetOptions = default(ApplicationGetOptions))
 {
     return(operations.GetAsync(applicationId, applicationGetOptions).GetAwaiter().GetResult());
 }
 /// <summary>
 /// Gets the application resource with the given name.
 /// </summary>
 /// <remarks>
 /// Gets the information about the application resource with the given name.
 /// The information include the description and other properties of the
 /// application.
 /// </remarks>
 /// <param name='operations'>
 /// The operations group for this extension method.
 /// </param>
 /// <param name='resourceGroupName'>
 /// Azure resource group name
 /// </param>
 /// <param name='applicationResourceName'>
 /// The identity of the application.
 /// </param>
 public static ApplicationResourceDescription Get(this IApplicationOperations operations, string resourceGroupName, string applicationResourceName)
 {
     return(operations.GetAsync(resourceGroupName, applicationResourceName).GetAwaiter().GetResult());
 }