' Options: 'Date: 2024-06-10 01:17:56 'Version: 6.40 'Tip: To override a DTO option, remove "''" prefix before updating 'BaseUrl: https://evovoice.io ' '''GlobalNamespace: '''MakePartial: True '''MakeVirtual: True '''MakeDataContractsExtensible: False '''AddReturnMarker: True '''AddDescriptionAsComments: True '''AddDataContractAttributes: False '''AddIndexesToDataMembers: False '''AddGeneratedCodeAttributes: False '''AddResponseStatus: False '''AddImplicitVersion: '''InitializeCollections: True '''ExportValueTypes: False 'IncludeTypes: PatchUser.* '''ExcludeTypes: '''AddNamespaces: '''AddDefaultXmlNamespace: http://schemas.servicestack.net/types Imports System Imports System.Collections Imports System.Collections.Generic Imports System.Runtime.Serialization Imports ServiceStack Imports ServiceStack.DataAnnotations Imports System.IO Imports Voice.Api.Authentication Namespace Global Namespace Voice.Api.Authentication Public Enum DashboardPermissions ViewFiles ViewNotifications ViewSessions ViewEndpoints ViewReports ViewCustomers ViewFlows End Enum ''' '''Update the specified login ''' Public Partial Class PatchUser Implements IReturn(Of UserInfo) Implements IPatch Public Sub New() AccountIds = New List(Of String) Roles = New List(Of String) End Sub ''' '''The account IDs that this user has access to ''' Public Overridable Property AccountIds As List(Of String) ''' '''The ID of the user ''' Public Overridable Property UserId As String ''' '''The user's first name ''' Public Overridable Property FirstName As String ''' '''The user's last name ''' Public Overridable Property LastName As String ''' '''The new password for the user (leave null to not change) ''' Public Overridable Property NewPassword As String ''' '''The roles to associate with the login. Can only specify if system admin ''' Public Overridable Property Roles As List(Of String) End Class Public Partial Class UserInfo Public Sub New() Roles = New List(Of String) AccountIds = New List(Of String) AccountNames = New List(Of String) DashboardPermissions = New List(Of DashboardPermissions) End Sub Public Overridable Property Id As String Public Overridable Property IsAuthenticated As Boolean Public Overridable Property FirstName As String Public Overridable Property LastName As String Public Overridable Property Name As String Public Overridable Property AvatarUrl As String Public Overridable Property EmailAddress As String Public Overridable Property Roles As List(Of String) Public Overridable Property AccountIds As List(Of String) Public Overridable Property AccountNames As List(Of String) Public Overridable Property DashboardPermissions As List(Of DashboardPermissions) End Class End Namespace End Namespace