/// <summary> /// Activate or deactivate a user /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Users or Users.Write. /// /// Required permissions: Users.Edit. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='key'> /// </param> /// <param name='body'> /// </param> /// <param name='cancellationToken'> /// The cancellation token. /// </param> public static async Task SetActiveByIdAsync(this IUsers operations, long key, UsersSetActiveParameters body = default(UsersSetActiveParameters), CancellationToken cancellationToken = default(CancellationToken)) { (await operations.SetActiveByIdWithHttpMessagesAsync(key, body, null, cancellationToken).ConfigureAwait(false)).Dispose(); }
/// <summary> /// Activate or deactivate a user /// </summary> /// <remarks> /// Client Credentials Flow required permissions: Users or Users.Write. /// /// Required permissions: Users.Edit. /// </remarks> /// <param name='operations'> /// The operations group for this extension method. /// </param> /// <param name='key'> /// </param> /// <param name='body'> /// </param> public static void SetActiveById(this IUsers operations, long key, UsersSetActiveParameters body = default(UsersSetActiveParameters)) { operations.SetActiveByIdAsync(key, body).GetAwaiter().GetResult(); }