-
Notifications
You must be signed in to change notification settings - Fork 97
Expand file tree
/
Copy pathUserCredential.cs
More file actions
50 lines (46 loc) · 2 KB
/
Copy pathUserCredential.cs
File metadata and controls
50 lines (46 loc) · 2 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
namespace net.openstack.Core.Domain
{
using net.openstack.Core.Providers;
using Newtonsoft.Json;
/// <summary>
/// Represents a set of credentials for a user.
/// </summary>
/// <seealso cref="IIdentityProvider.ListUserCredentials"/>
/// <seealso href="http://docs.openstack.org/api/openstack-identity-service/2.0/content/GET_listCredentials_v2.0_users__userId__OS-KSADM_credentials_.html">List Credentials (OpenStack Identity Service API v2.0 Reference)</seealso>
/// <threadsafety static="true" instance="false"/>
[JsonObject(MemberSerialization.OptIn)]
public class UserCredential : ExtensibleJsonObject
{
/// <summary>
/// Gets the "name" property for the credentials.
/// <note type="warning">The value of this property is not defined. Do not use.</note>
/// </summary>
[JsonProperty("name")]
public string Name { get; private set; }
/// <summary>
/// Gets the "username" property for the credentials.
/// <note type="warning">The value of this property is not defined. Do not use.</note>
/// </summary>
[JsonProperty("username")]
public string Username { get; private set; }
/// <summary>
/// Gets the "apiKey" property for the credentials.
/// <note type="warning">The value of this property is not defined. Do not use.</note>
/// </summary>
[JsonProperty("apiKey")]
public string APIKey { get; private set; }
/// <summary>
/// Initializes a new instance of the <see cref="UserCredential"/> class
/// with the specified name, username, and API key.
/// </summary>
/// <param name="name">The name.</param>
/// <param name="username">The username.</param>
/// <param name="apiKey">The API key.</param>
public UserCredential(string name, string username, string apiKey)
{
Name = name;
Username = username;
APIKey = apiKey;
}
}
}