-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathUser.cs
More file actions
94 lines (87 loc) · 3.68 KB
/
Copy pathUser.cs
File metadata and controls
94 lines (87 loc) · 3.68 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
namespace net.openstack.Core.Domain
{
using net.openstack.Core.Providers;
using Newtonsoft.Json;
/// <summary>
/// Represents a user account.
/// </summary>
/// <seealso cref="IIdentityProvider.ListUsers"/>
/// <threadsafety static="true" instance="false"/>
[JsonObject(MemberSerialization.OptIn)]
public class User : ExtensibleJsonObject
{
#pragma warning disable 649 // Field 'fieldName' is never assigned to, and will always have its default value {value}
/// <summary>
/// This is the backing field for the <see cref="DomainId"/> property.
/// </summary>
[JsonProperty("RAX-AUTH:domainId", DefaultValueHandling = DefaultValueHandling.Ignore)]
private ProjectId _domainId;
#pragma warning restore 649
/// <summary>
/// Gets or sets the default region of the user.
/// <note type="warning">The value of this property is not defined. Do not use.</note>
/// </summary>
/// <remarks>
/// Changes to this property are not automatically saved on the server. To apply the
/// changes, call <see cref="IIdentityProvider.UpdateUser"/> after setting this property.
///
/// <note>
/// This property is a Rackspace-specific extension to the OpenStack Identity Service.
/// </note>
/// </remarks>
[JsonProperty("RAX-AUTH:defaultRegion")]
public string DefaultRegion { get; set; }
/// <summary>
/// Gets the domain ID of the user.
/// </summary>
/// <remarks>
/// <note>
/// This property is a Rackspace-specific extension to the OpenStack Identity Service.
/// </note>
/// </remarks>
/// <preliminary/>
public ProjectId DomainId
{
get
{
return _domainId;
}
}
/// <summary>
/// Gets the unique identifier for the user.
/// <note type="warning">The value of this property is not defined. Do not use.</note>
/// </summary>
[JsonProperty("id", DefaultValueHandling = DefaultValueHandling.Include)]
public string Id { get; private set; }
/// <summary>
/// Gets or sets the "username" property of the user.
/// <note type="warning">The value of this property is not defined. Do not use.</note>
/// </summary>
/// <remarks>
/// Changes to this property are not automatically saved on the server. To apply the
/// changes, call <see cref="IIdentityProvider.UpdateUser"/> after setting this property.
/// </remarks>
[JsonProperty("username")]
public string Username { get; set; }
/// <summary>
/// Gets or sets the "email" property of the user.
/// <note type="warning">The value of this property is not defined. Do not use.</note>
/// </summary>
/// <remarks>
/// Changes to this property are not automatically saved on the server. To apply the
/// changes, call <see cref="IIdentityProvider.UpdateUser"/> after setting this property.
/// </remarks>
[JsonProperty("email")]
public string Email { get; set; }
/// <summary>
/// Gets or sets the "enabled" property of the user.
/// <note type="warning">The value of this property is not defined. Do not use.</note>
/// </summary>
/// <remarks>
/// Changes to this property are not automatically saved on the server. To apply the
/// changes, call <see cref="IIdentityProvider.UpdateUser"/> after setting this property.
/// </remarks>
[JsonProperty("enabled")]
public bool Enabled { get; set; }
}
}