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.

ws-user_tokens.proto 1.8KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. // SonarQube, open source software quality management tool.
  2. // Copyright (C) 2008-2016 SonarSource
  3. // mailto:contact AT sonarsource DOT com
  4. //
  5. // SonarQube is free software; you can redistribute it and/or
  6. // modify it under the terms of the GNU Lesser General Public
  7. // License as published by the Free Software Foundation; either
  8. // version 3 of the License, or (at your option) any later version.
  9. //
  10. // SonarQube is distributed in the hope that it will be useful,
  11. // but WITHOUT ANY WARRANTY; without even the implied warranty of
  12. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  13. // Lesser General Public License for more details.
  14. //
  15. // You should have received a copy of the GNU Lesser General Public License
  16. // along with this program; if not, write to the Free Software Foundation,
  17. // Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
  18. syntax = "proto2";
  19. package sonarqube.ws.usertoken;
  20. option java_package = "org.sonarqube.ws";
  21. option java_outer_classname = "UserTokens";
  22. option optimize_for = SPEED;
  23. // WS api/user_tokens/generate
  24. message GenerateWsResponse {
  25. optional string login = 1;
  26. optional string name = 2;
  27. optional string token = 3;
  28. optional string createdAt = 4;
  29. optional string type = 5;
  30. optional string projectKey = 6;
  31. optional string expirationDate = 7;
  32. }
  33. // WS api/user_tokens/search
  34. message SearchWsResponse {
  35. optional string login = 1;
  36. repeated UserToken userTokens = 2;
  37. message UserToken {
  38. optional string name = 1;
  39. optional string createdAt = 2;
  40. optional string lastConnectionDate = 3;
  41. optional string type = 4;
  42. optional Project project = 5;
  43. optional string expirationDate = 6;
  44. optional bool isExpired = 7;
  45. message Project {
  46. optional string key = 1;
  47. optional string name = 2;
  48. }
  49. }
  50. }