/// <summary> /// Deletes the user on a databox edge/gateway device. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='deviceName'> /// The device name. /// </param> /// <param name='name'> /// The user name. /// </param> /// <param name='resourceGroupName'> /// The resource group name. /// </param> public static void Delete(this IUsersOperations operations, string deviceName, string name, string resourceGroupName) { operations.DeleteAsync(deviceName, name, resourceGroupName).GetAwaiter().GetResult(); }
/// <summary> /// Delete a user. /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='upnOrObjectId'> /// The object ID or principal name of the user to delete. /// </param> public static void Delete(this IUsersOperations operations, string upnOrObjectId) { operations.DeleteAsync(upnOrObjectId).GetAwaiter().GetResult(); }
/// <summary> /// Delete user. This operation can take a while to complete /// </summary> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='resourceGroupName'> /// The name of the resource group. /// </param> /// <param name='labAccountName'> /// The name of the lab Account. /// </param> /// <param name='labName'> /// The name of the lab. /// </param> /// <param name='userName'> /// The name of the user. /// </param> public static void Delete(this IUsersOperations operations, string resourceGroupName, string labAccountName, string labName, string userName) { operations.DeleteAsync(resourceGroupName, labAccountName, labName, userName).GetAwaiter().GetResult(); }
/// <summary> /// Deletes specific user. /// </summary> /// <param name='operations'> /// Reference to the /// Microsoft.Azure.Management.ApiManagement.IUsersOperations. /// </param> /// <param name='resourceGroupName'> /// Required. The name of the resource group. /// </param> /// <param name='serviceName'> /// Required. The name of the Api Management service. /// </param> /// <param name='uid'> /// Required. Identifier of the user. /// </param> /// <param name='etag'> /// Required. ETag. /// </param> /// <param name='deleteSubscriptions'> /// Required. Whether to delete user's subscription or not. /// </param> /// <returns> /// A standard service response including an HTTP status code and /// request ID. /// </returns> public static Task <AzureOperationResponse> DeleteAsync(this IUsersOperations operations, string resourceGroupName, string serviceName, string uid, string etag, bool deleteSubscriptions) { return(operations.DeleteAsync(resourceGroupName, serviceName, uid, etag, deleteSubscriptions, CancellationToken.None)); }