22// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
33// See the LICENSE file in the project root for more information
44
5+ using System . Collections . Generic ;
56using System . Runtime . Serialization ;
7+ using Elasticsearch . Net ;
68
79namespace Nest
810{
@@ -19,5 +21,46 @@ public class GetUserAccessTokenResponse : ResponseBase
1921
2022 [ DataMember ( Name = "type" ) ]
2123 public string Type { get ; set ; }
24+
25+ [ DataMember ( Name = "authentication" ) ]
26+ public Authentication Authentication { get ; set ; }
27+ }
28+
29+ public class Authentication
30+ {
31+ [ DataMember ( Name = "email" ) ]
32+ public string Email { get ; internal set ; }
33+
34+ [ DataMember ( Name = "full_name" ) ]
35+ public string FullName { get ; internal set ; }
36+
37+ [ DataMember ( Name = "metadata" ) ]
38+ public IReadOnlyDictionary < string , object > Metadata { get ; internal set ; }
39+ = EmptyReadOnly < string , object > . Dictionary ;
40+
41+ [ DataMember ( Name = "roles" ) ]
42+ public IReadOnlyCollection < string > Roles { get ; internal set ; }
43+ = EmptyReadOnly < string > . Collection ;
44+
45+ [ DataMember ( Name = "username" ) ]
46+ public string Username { get ; internal set ; }
47+
48+ [ DataMember ( Name = "authentication_realm" ) ]
49+ public AuthenticationRealmInfo AuthenticationRealm { get ; internal set ; }
50+
51+ [ DataMember ( Name = "lookup_realm" ) ]
52+ public AuthenticationRealmInfo LookupRealm { get ; internal set ; }
53+
54+ [ DataMember ( Name = "authentication_type" ) ]
55+ public string AuthenticationType { get ; internal set ; }
56+ }
57+
58+ public class AuthenticationRealmInfo
59+ {
60+ [ DataMember ( Name = "name" ) ]
61+ public string Name { get ; internal set ; }
62+
63+ [ DataMember ( Name = "type" ) ]
64+ public string Type { get ; internal set ; }
2265 }
2366}
0 commit comments