Nelze vybrat více než 25 témat Téma musí začínat písmenem nebo číslem, může obsahovat pomlčky („-“) a může být dlouhé až 35 znaků.

BulkApplyTemplateRequest.java 3.6KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152
  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 java.util.List;
  22. import javax.annotation.Generated;
  23. /**
  24. * This is part of the internal API.
  25. * This is a POST request.
  26. * @see <a href="https://next.sonarqube.com/sonarqube/web_api/api/permissions/bulk_apply_template">Further information about this action online (including a response example)</a>
  27. * @since 5.5
  28. */
  29. @Generated("sonar-ws-generator")
  30. public class BulkApplyTemplateRequest {
  31. private String analyzedBefore;
  32. private String onProvisionedOnly;
  33. private List<String> projects;
  34. private String q;
  35. private List<String> qualifiers;
  36. private String templateId;
  37. private String templateName;
  38. private String visibility;
  39. /**
  40. * Example value: "2017-10-19 or 2017-10-19T13:00:00+0200"
  41. */
  42. public BulkApplyTemplateRequest setAnalyzedBefore(String analyzedBefore) {
  43. this.analyzedBefore = analyzedBefore;
  44. return this;
  45. }
  46. public String getAnalyzedBefore() {
  47. return analyzedBefore;
  48. }
  49. /**
  50. * Possible values:
  51. * <ul>
  52. * <li>"true"</li>
  53. * <li>"false"</li>
  54. * <li>"yes"</li>
  55. * <li>"no"</li>
  56. * </ul>
  57. */
  58. public BulkApplyTemplateRequest setOnProvisionedOnly(String onProvisionedOnly) {
  59. this.onProvisionedOnly = onProvisionedOnly;
  60. return this;
  61. }
  62. public String getOnProvisionedOnly() {
  63. return onProvisionedOnly;
  64. }
  65. /**
  66. * Example value: "my_project,another_project"
  67. */
  68. public BulkApplyTemplateRequest setProjects(List<String> projects) {
  69. this.projects = projects;
  70. return this;
  71. }
  72. public List<String> getProjects() {
  73. return projects;
  74. }
  75. /**
  76. * Example value: "apac"
  77. */
  78. public BulkApplyTemplateRequest setQ(String q) {
  79. this.q = q;
  80. return this;
  81. }
  82. public String getQ() {
  83. return q;
  84. }
  85. /**
  86. * Possible values:
  87. * <ul>
  88. * <li>"TRK"</li>
  89. * </ul>
  90. */
  91. public BulkApplyTemplateRequest setQualifiers(List<String> qualifiers) {
  92. this.qualifiers = qualifiers;
  93. return this;
  94. }
  95. public List<String> getQualifiers() {
  96. return qualifiers;
  97. }
  98. /**
  99. * Example value: "AU-Tpxb--iU5OvuD2FLy"
  100. */
  101. public BulkApplyTemplateRequest setTemplateId(String templateId) {
  102. this.templateId = templateId;
  103. return this;
  104. }
  105. public String getTemplateId() {
  106. return templateId;
  107. }
  108. /**
  109. * Example value: "Default Permission Template for Projects"
  110. */
  111. public BulkApplyTemplateRequest setTemplateName(String templateName) {
  112. this.templateName = templateName;
  113. return this;
  114. }
  115. public String getTemplateName() {
  116. return templateName;
  117. }
  118. /**
  119. * This is part of the internal API.
  120. * Possible values:
  121. * <ul>
  122. * <li>"private"</li>
  123. * <li>"public"</li>
  124. * </ul>
  125. */
  126. public BulkApplyTemplateRequest setVisibility(String visibility) {
  127. this.visibility = visibility;
  128. return this;
  129. }
  130. public String getVisibility() {
  131. return visibility;
  132. }
  133. }