/// <summary> /// Partially updates a single app /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='appName'> /// The name of the application /// </param> /// <param name='ownerName'> /// The name of the owner /// </param> /// <param name='app'> /// The partial data for the app /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <AppResponse> UpdateAsync(this IApps operations, string appName, string ownerName, AppPatchRequest app = default(AppPatchRequest), CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateWithHttpMessagesAsync(appName, ownerName, app, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }
/// <summary> /// Partially updates a single app /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='appName'> /// The name of the application /// </param> /// <param name='ownerName'> /// The name of the owner /// </param> /// <param name='app'> /// The partial data for the app /// </param> public static AppResponse Update(this IApps operations, string appName, string ownerName, AppPatchRequest app = default(AppPatchRequest)) { return(operations.UpdateAsync(appName, ownerName, app).GetAwaiter().GetResult()); }