You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

UsersSearchRestRequest.java 3.0KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * SonarQube
  3. * Copyright (C) 2009-2023 SonarSource SA
  4. * mailto:info AT sonarsource DOT com
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU Lesser General Public
  8. * License as published by the Free Software Foundation; either
  9. * version 3 of the License, or (at your option) any later version.
  10. *
  11. * This program is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  14. * Lesser General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Lesser General Public License
  17. * along with this program; if not, write to the Free Software Foundation,
  18. * Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  19. */
  20. package org.sonar.server.v2.api.user.request;
  21. import io.swagger.v3.oas.annotations.Parameter;
  22. import io.swagger.v3.oas.annotations.media.Schema;
  23. import javax.annotation.Nullable;
  24. public record UsersSearchRestRequest(
  25. @Parameter(
  26. description = "Return active/inactive users",
  27. schema = @Schema(defaultValue = "true", implementation = Boolean.class))
  28. Boolean active,
  29. @Nullable
  30. @Parameter(description = "Return managed or non-managed users. Only available for managed instances, throws for non-managed instances")
  31. Boolean managed,
  32. @Nullable
  33. @Parameter(description = "Filter on login, name and email.\n"
  34. + "This parameter can either perform an exact match, or a partial match (contains), it is case insensitive.")
  35. String q,
  36. @Nullable
  37. @Parameter(description = "Filter the users based on the last connection date field. Only users who interacted with this instance at or after the date will be returned. "
  38. + "The format must be ISO 8601 datetime format (YYYY-MM-DDThh:mm:ss±hhmm)",
  39. example = "2020-01-01T00:00:00+0100")
  40. String sonarQubeLastConnectionDateFrom,
  41. @Nullable
  42. @Parameter(description = "Filter the users based on the last connection date field. Only users that never connected or who interacted with this instance at "
  43. + "or before the date will be returned. The format must be ISO 8601 datetime format (YYYY-MM-DDThh:mm:ss±hhmm)",
  44. example = "2020-01-01T00:00:00+0100")
  45. String sonarQubeLastConnectionDateTo,
  46. @Nullable
  47. @Parameter(description = "Filter the users based on the sonar lint last connection date field Only users who interacted with this instance using SonarLint at or after "
  48. + "the date will be returned. The format must be ISO 8601 datetime format (YYYY-MM-DDThh:mm:ss±hhmm)",
  49. example = "2020-01-01T00:00:00+0100")
  50. String sonarLintLastConnectionDateFrom,
  51. @Nullable
  52. @Parameter(description = "Filter the users based on the sonar lint last connection date field. Only users that never connected or who interacted with this instance "
  53. + "using SonarLint at or before the date will be returned. The format must be ISO 8601 datetime format (YYYY-MM-DDThh:mm:ss±hhmm)",
  54. example = "2020-01-01T00:00:00+0100")
  55. String sonarLintLastConnectionDateTo
  56. ) {
  57. }