]> source.dussan.org Git - sonarqube.git/commitdiff
SONAR-22862 Refactor Github and Gitlab permission mappings controllers
authorNolwenn Cadic <98824442+Nolwenn-cadic-sonarsource@users.noreply.github.com>
Thu, 29 Aug 2024 07:48:54 +0000 (09:48 +0200)
committersonartech <sonartech@sonarsource.com>
Thu, 29 Aug 2024 20:02:47 +0000 (20:02 +0000)
sonar-ws/src/main/java/org/sonarqube/ws/client/github/provisioning/permissions/AddGithubPermissionMappingRequest.java

index 41706ed1a467673db6d1100405670574af70c513..f9fa98e7b0047f14eca0ef783484214f034509d9 100644 (file)
  */
 package org.sonarqube.ws.client.github.provisioning.permissions;
 
-public class AddGithubPermissionMappingRequest {
-  private final String githubRole;
-  private final SonarqubePermissions permissions;
-
-  public AddGithubPermissionMappingRequest(String githubRole, SonarqubePermissions permissions) {
-    this.githubRole = githubRole;
-    this.permissions = permissions;
-  }
+public record AddGithubPermissionMappingRequest(String role, SonarqubePermissions permissions) {
 
 }