Files
octokit.net/Octokit/Models/Request/Enterprise/NewLdapMapping.cs
Itai Bar-Haim 4e804f61a6 Prefer using nameof(x) over literal "x" (#1781)
* updated XML docs and added some missing bits.

* prefer nameof(x) over literal "x"
2018-03-07 20:43:10 +10:00

39 lines
1.2 KiB
C#

using System.Diagnostics;
using System.Globalization;
using Octokit.Internal;
namespace Octokit
{
/// <summary>
/// Describes a new organization to create via the <see cref="IEnterpriseOrganizationClient.Create(NewOrganization)" /> method.
/// </summary>
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class NewLdapMapping
{
/// <summary>
/// Initializes a new instance of the <see cref="NewLdapMapping"/> class.
/// </summary>
/// <param name="ldapDistinguishedName">The LDAP Distinguished Name</param>
public NewLdapMapping(string ldapDistinguishedName)
{
Ensure.ArgumentNotNullOrEmptyString(ldapDistinguishedName, nameof(ldapDistinguishedName));
LdapDistinguishedName = ldapDistinguishedName;
}
/// <summary>
/// The LDAP Distinguished Name (required)
/// </summary>
[Parameter(Key = "ldap_dn")]
public string LdapDistinguishedName { get; private set; }
internal string DebuggerDisplay
{
get
{
return string.Format(CultureInfo.InvariantCulture, "LdapDistinguishedName: {0}", LdapDistinguishedName);
}
}
}
}