/* Options: Date: 2025-05-04 20:29:43 Version: 8.71 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://team.evovoice.io //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: PatchUser.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,java.io.InputStream,net.servicestack.client.* */ import java.math.*; import java.util.*; import java.io.InputStream; import net.servicestack.client.*; public class dtos { /** * Update the specified login */ @Route(Path="/users/{userId}", Verbs="PATCH") @Api(Description="Update the specified login") public static class PatchUser implements IReturn, IPatch { /** * The account IDs that this user has access to */ @ApiMember(Description="The account IDs that this user has access to") public ArrayList accountIds = null; /** * The ID of the user */ @ApiMember(Description="The ID of the user") public String userId = null; /** * The user's first name */ @ApiMember(Description="The user's first name") public String firstName = null; /** * The user's last name */ @ApiMember(Description="The user's last name") public String lastName = null; /** * The new password for the user (leave null to not change) */ @ApiMember(Description="The new password for the user (leave null to not change)") public String newPassword = null; /** * The roles to associate with the login. Can only specify if system admin */ @ApiMember(Description="The roles to associate with the login. Can only specify if system admin") public ArrayList roles = null; public ArrayList getAccountIds() { return accountIds; } public PatchUser setAccountIds(ArrayList value) { this.accountIds = value; return this; } public String getUserId() { return userId; } public PatchUser setUserId(String value) { this.userId = value; return this; } public String getFirstName() { return firstName; } public PatchUser setFirstName(String value) { this.firstName = value; return this; } public String getLastName() { return lastName; } public PatchUser setLastName(String value) { this.lastName = value; return this; } public String getNewPassword() { return newPassword; } public PatchUser setNewPassword(String value) { this.newPassword = value; return this; } public ArrayList getRoles() { return roles; } public PatchUser setRoles(ArrayList value) { this.roles = value; return this; } private static Object responseType = UserInfo.class; public Object getResponseType() { return responseType; } } public static class UserInfo { public String id = null; public Boolean isAuthenticated = null; public String firstName = null; public String lastName = null; public String name = null; public String avatarUrl = null; public String emailAddress = null; public ArrayList roles = null; public ArrayList accountIds = null; public ArrayList accountNames = null; public ArrayList dashboardPermissions = null; public String getId() { return id; } public UserInfo setId(String value) { this.id = value; return this; } public Boolean getIsAuthenticated() { return isAuthenticated; } public UserInfo setIsAuthenticated(Boolean value) { this.isAuthenticated = value; return this; } public String getFirstName() { return firstName; } public UserInfo setFirstName(String value) { this.firstName = value; return this; } public String getLastName() { return lastName; } public UserInfo setLastName(String value) { this.lastName = value; return this; } public String getName() { return name; } public UserInfo setName(String value) { this.name = value; return this; } public String getAvatarUrl() { return avatarUrl; } public UserInfo setAvatarUrl(String value) { this.avatarUrl = value; return this; } public String getEmailAddress() { return emailAddress; } public UserInfo setEmailAddress(String value) { this.emailAddress = value; return this; } public ArrayList getRoles() { return roles; } public UserInfo setRoles(ArrayList value) { this.roles = value; return this; } public ArrayList getAccountIds() { return accountIds; } public UserInfo setAccountIds(ArrayList value) { this.accountIds = value; return this; } public ArrayList getAccountNames() { return accountNames; } public UserInfo setAccountNames(ArrayList value) { this.accountNames = value; return this; } public ArrayList getDashboardPermissions() { return dashboardPermissions; } public UserInfo setDashboardPermissions(ArrayList value) { this.dashboardPermissions = value; return this; } } public static enum DashboardPermissions { ViewFiles, ViewNotifications, ViewSessions, ViewEndpoints, ViewReports, ViewCustomers, ViewFlows; } }