/// <summary> /// Removes a user from the allowed list of users to access this LUIS /// application. Users are removed using their email address. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='azureRegion'> /// Supported Azure regions for Cognitive Services endpoints. Possible values /// include: 'westus', 'westeurope', 'southeastasia', 'eastus2', /// 'westcentralus', 'westus2', 'eastus', 'southcentralus', 'northeurope', /// 'eastasia', 'australiaeast', 'brazilsouth', 'virginia' /// </param> /// <param name='azureCloud'> /// Supported Azure Clouds for Cognitive Services endpoints. Possible values /// include: 'com', 'us' /// </param> /// <param name='appId'> /// The application ID. /// </param> /// <param name='userToDelete'> /// A model containing the user's email address. /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task <OperationStatus> DeleteAsync(this IPermissions operations, AzureRegions azureRegion, AzureClouds azureCloud, System.Guid appId, UserCollaborator userToDelete, CancellationToken cancellationToken = default(CancellationToken)) { using (var _result = await operations.DeleteWithHttpMessagesAsync(azureRegion, azureCloud, appId, userToDelete, null, cancellationToken).ConfigureAwait(false)) { return(_result.Body); } }