/// <summary> /// Updates an existing Zapappi Application /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='subscriptionId'> /// The subscription id the application is attached too /// </param> /// <param name='appId'> /// The application id /// </param> /// <param name='description'> /// The application description /// </param> /// <param name='enabled'> /// Is the application enabled (call it be used to termiante calls) /// </param> /// <param name='scriptBody'> /// The script used to process the call /// </param> /// <param name='scriptUrl'> /// The Url of your script (if set, ScriptBody won't be used) /// </param> /// <param name='id'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <object> UpdateApplicationAsync(this IApplications operations, string subscriptionId, string appId, string description, bool enabled, string scriptBody, string scriptUrl, string id, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.UpdateApplicationWithHttpMessagesAsync(subscriptionId, appId, description, enabled, scriptBody, scriptUrl, id, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }