/// <summary> /// Update existing application. (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> /// <param name='parameters'> /// Required. Parameters to create an application. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task <AzureOperationResponse> UpdateAsync(this IApplicationOperations operations, string applicationObjectId, ApplicationCreateParameters parameters) { return(operations.UpdateAsync(applicationObjectId, parameters, CancellationToken.None)); }
/// <summary> /// Updates settings for the specified application. /// </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='applicationName'> /// The name of the application. This must be unique within the account. /// </param> /// <param name='parameters'> /// The parameters for the request. /// </param> public static Application Update(this IApplicationOperations operations, string resourceGroupName, string accountName, string applicationName, Application parameters) { return(operations.UpdateAsync(resourceGroupName, accountName, applicationName, parameters).GetAwaiter().GetResult()); }