/// <summary> /// Create a new action group or update an existing one. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='actionGroupName'> /// The name of the action group. /// </param> /// <param name='actionGroup'> /// The action group to create or use for the update. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <ActionGroupResourceInner> CreateOrUpdateAsync(this IActionGroupsOperations operations, string resourceGroupName, string actionGroupName, ActionGroupResourceInner actionGroup, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.CreateOrUpdateWithHttpMessagesAsync(resourceGroupName, actionGroupName, actionGroup, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }