1111@ Schema (description = "Describes a request to search for task logs in s3" )
1212public class SingularityS3SearchRequest {
1313 private final Map <String , List <String >> requestsAndDeploys ;
14- private final List <String > fileNamePrefixWhitelist ;
14+ private final List <String > fileNamePrefixAllowlist ;
1515 private final List <String > taskIds ;
1616 private final Optional <Long > start ;
1717 private final Optional <Long > end ;
@@ -33,6 +33,7 @@ public SingularityS3SearchRequest(
3333 this (
3434 requestsAndDeploys ,
3535 null ,
36+ null ,
3637 taskIds ,
3738 start ,
3839 end ,
@@ -46,7 +47,10 @@ public SingularityS3SearchRequest(
4647 @ JsonCreator
4748 public SingularityS3SearchRequest (
4849 @ JsonProperty ("requestsAndDeploys" ) Map <String , List <String >> requestsAndDeploys ,
49- @ JsonProperty ("fileNamePrefixWhitelist" ) List <String > fileNamePrefixWhitelist ,
50+ @ JsonProperty (
51+ "fileNamePrefixWhitelist"
52+ ) List <String > fileNamePrefixAllowlistDeprecated ,
53+ @ JsonProperty ("fileNamePrefixAllowlist" ) List <String > fileNamePrefixAllowlist ,
5054 @ JsonProperty ("taskIds" ) List <String > taskIds ,
5155 @ JsonProperty ("start" ) Optional <Long > start ,
5256 @ JsonProperty ("end" ) Optional <Long > end ,
@@ -59,8 +63,14 @@ public SingularityS3SearchRequest(
5963 requestsAndDeploys != null
6064 ? requestsAndDeploys
6165 : Collections .<String , List <String >>emptyMap ();
62- this .fileNamePrefixWhitelist =
63- fileNamePrefixWhitelist != null ? fileNamePrefixWhitelist : Collections .emptyList ();
66+ this .fileNamePrefixAllowlist =
67+ fileNamePrefixAllowlistDeprecated != null
68+ ? fileNamePrefixAllowlistDeprecated
69+ : (
70+ fileNamePrefixAllowlist != null
71+ ? fileNamePrefixAllowlist
72+ : Collections .emptyList ()
73+ );
6474 this .taskIds = taskIds != null ? taskIds : Collections .<String >emptyList ();
6575 this .start = start ;
6676 this .end = end ;
@@ -78,9 +88,9 @@ public Map<String, List<String>> getRequestsAndDeploys() {
7888 return requestsAndDeploys ;
7989 }
8090
81- @ Schema (description = "A whitelist of file name prefixes which should be returned" )
82- public List <String > getFileNamePrefixWhitelist () {
83- return fileNamePrefixWhitelist ;
91+ @ Schema (description = "An allowlist of file name prefixes which should be returned" )
92+ public List <String > getFileNamePrefixAllowlist () {
93+ return fileNamePrefixAllowlist ;
8494 }
8595
8696 @ Schema (description = "A list of task IDs to search for" )
0 commit comments