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-newcodeperiods.proto 1.6KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950
  1. // SonarQube, open source software quality management tool.
  2. // Copyright (C) 2008-2019 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 = "proto3";
  19. package sonarqube.ws.batch;
  20. option java_package = "org.sonarqube.ws";
  21. option java_outer_classname = "NewCodePeriods";
  22. option optimize_for = SPEED;
  23. // WS api/new_code_periods/show
  24. message ShowWSResponse {
  25. string projectKey = 1;
  26. string branchKey = 2;
  27. NewCodePeriodType type = 3;
  28. string value = 4;
  29. bool inherited = 5;
  30. string effectiveValue = 6;
  31. string previousNonCompliantValue = 7;
  32. int64 updatedAt = 8;
  33. }
  34. // WS api/new_code_periods/list
  35. message ListWSResponse {
  36. repeated ShowWSResponse newCodePeriods = 1;
  37. }
  38. enum NewCodePeriodType {
  39. UNKNOWN = 0;
  40. PREVIOUS_VERSION = 1;
  41. NUMBER_OF_DAYS = 2;
  42. SPECIFIC_ANALYSIS = 3;
  43. REFERENCE_BRANCH = 4;
  44. }