2
2
// Elasticsearch B.V licenses this file to you under the Apache 2.0 License.
3
3
// See the LICENSE file in the project root for more information
4
4
5
+ using System . Collections . Generic ;
5
6
using System . Runtime . Serialization ;
7
+ using Elasticsearch . Net ;
6
8
7
9
namespace Nest
8
10
{
@@ -19,5 +21,46 @@ public class GetUserAccessTokenResponse : ResponseBase
19
21
20
22
[ DataMember ( Name = "type" ) ]
21
23
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 ; }
22
65
}
23
66
}
0 commit comments