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.

TemplateGroupsRequest.java 2.7KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. /*
  2. * SonarQube
  3. * Copyright (C) 2009-2021 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.sonarqube.ws.client.permissions;
  21. import javax.annotation.Generated;
  22. /**
  23. * This is part of the internal API.
  24. * This is a POST request.
  25. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/permissions/template_groups">Further information about this action online (including a response example)</a>
  26. * @since 5.2
  27. */
  28. @Generated("sonar-ws-generator")
  29. public class TemplateGroupsRequest {
  30. private String p;
  31. private String permission;
  32. private String ps;
  33. private String q;
  34. private String templateId;
  35. private String templateName;
  36. /**
  37. * Example value: "42"
  38. */
  39. public TemplateGroupsRequest setP(String p) {
  40. this.p = p;
  41. return this;
  42. }
  43. public String getP() {
  44. return p;
  45. }
  46. /**
  47. * Possible values:
  48. * <ul>
  49. * <li>"admin"</li>
  50. * <li>"codeviewer"</li>
  51. * <li>"issueadmin"</li>
  52. * <li>"scan"</li>
  53. * <li>"user"</li>
  54. * </ul>
  55. */
  56. public TemplateGroupsRequest setPermission(String permission) {
  57. this.permission = permission;
  58. return this;
  59. }
  60. public String getPermission() {
  61. return permission;
  62. }
  63. /**
  64. * Example value: "20"
  65. */
  66. public TemplateGroupsRequest setPs(String ps) {
  67. this.ps = ps;
  68. return this;
  69. }
  70. public String getPs() {
  71. return ps;
  72. }
  73. /**
  74. * Example value: "eri"
  75. */
  76. public TemplateGroupsRequest setQ(String q) {
  77. this.q = q;
  78. return this;
  79. }
  80. public String getQ() {
  81. return q;
  82. }
  83. /**
  84. * Example value: "AU-Tpxb--iU5OvuD2FLy"
  85. */
  86. public TemplateGroupsRequest setTemplateId(String templateId) {
  87. this.templateId = templateId;
  88. return this;
  89. }
  90. public String getTemplateId() {
  91. return templateId;
  92. }
  93. /**
  94. * Example value: "Default Permission Template for Projects"
  95. */
  96. public TemplateGroupsRequest setTemplateName(String templateName) {
  97. this.templateName = templateName;
  98. return this;
  99. }
  100. public String getTemplateName() {
  101. return templateName;
  102. }
  103. }