1313import com .fasterxml .jackson .annotation .JsonProperty ;
1414import com .fasterxml .jackson .annotation .JsonPropertyOrder ;
1515import java .time .OffsetDateTime ;
16+ import java .util .ArrayList ;
1617import java .util .HashMap ;
18+ import java .util .List ;
1719import java .util .Map ;
1820import java .util .Objects ;
1921
2527 PermissionAttributes .JSON_PROPERTY_DISPLAY_TYPE ,
2628 PermissionAttributes .JSON_PROPERTY_GROUP_NAME ,
2729 PermissionAttributes .JSON_PROPERTY_NAME ,
30+ PermissionAttributes .JSON_PROPERTY_NAME_ALIASES ,
2831 PermissionAttributes .JSON_PROPERTY_RESTRICTED
2932})
3033@ jakarta .annotation .Generated (
@@ -49,6 +52,9 @@ public class PermissionAttributes {
4952 public static final String JSON_PROPERTY_NAME = "name" ;
5053 private String name ;
5154
55+ public static final String JSON_PROPERTY_NAME_ALIASES = "name_aliases" ;
56+ private List <String > nameAliases = null ;
57+
5258 public static final String JSON_PROPERTY_RESTRICTED = "restricted" ;
5359 private Boolean restricted ;
5460
@@ -178,6 +184,35 @@ public void setName(String name) {
178184 this .name = name ;
179185 }
180186
187+ public PermissionAttributes nameAliases (List <String > nameAliases ) {
188+ this .nameAliases = nameAliases ;
189+ return this ;
190+ }
191+
192+ public PermissionAttributes addNameAliasesItem (String nameAliasesItem ) {
193+ if (this .nameAliases == null ) {
194+ this .nameAliases = new ArrayList <>();
195+ }
196+ this .nameAliases .add (nameAliasesItem );
197+ return this ;
198+ }
199+
200+ /**
201+ * List of alias names for the permission.
202+ *
203+ * @return nameAliases
204+ */
205+ @ jakarta .annotation .Nullable
206+ @ JsonProperty (JSON_PROPERTY_NAME_ALIASES )
207+ @ JsonInclude (value = JsonInclude .Include .USE_DEFAULTS )
208+ public List <String > getNameAliases () {
209+ return nameAliases ;
210+ }
211+
212+ public void setNameAliases (List <String > nameAliases ) {
213+ this .nameAliases = nameAliases ;
214+ }
215+
181216 public PermissionAttributes restricted (Boolean restricted ) {
182217 this .restricted = restricted ;
183218 return this ;
@@ -261,6 +296,7 @@ public boolean equals(Object o) {
261296 && Objects .equals (this .displayType , permissionAttributes .displayType )
262297 && Objects .equals (this .groupName , permissionAttributes .groupName )
263298 && Objects .equals (this .name , permissionAttributes .name )
299+ && Objects .equals (this .nameAliases , permissionAttributes .nameAliases )
264300 && Objects .equals (this .restricted , permissionAttributes .restricted )
265301 && Objects .equals (this .additionalProperties , permissionAttributes .additionalProperties );
266302 }
@@ -274,6 +310,7 @@ public int hashCode() {
274310 displayType ,
275311 groupName ,
276312 name ,
313+ nameAliases ,
277314 restricted ,
278315 additionalProperties );
279316 }
@@ -288,6 +325,7 @@ public String toString() {
288325 sb .append (" displayType: " ).append (toIndentedString (displayType )).append ("\n " );
289326 sb .append (" groupName: " ).append (toIndentedString (groupName )).append ("\n " );
290327 sb .append (" name: " ).append (toIndentedString (name )).append ("\n " );
328+ sb .append (" nameAliases: " ).append (toIndentedString (nameAliases )).append ("\n " );
291329 sb .append (" restricted: " ).append (toIndentedString (restricted )).append ("\n " );
292330 sb .append (" additionalProperties: " )
293331 .append (toIndentedString (additionalProperties ))
0 commit comments