using System.Diagnostics; using System.Globalization; namespace Octokit { /// /// Describes a new deployment key to create. /// /// /// API: https://developer.github.com/v3/repos/keys/ /// [DebuggerDisplay("{DebuggerDisplay,nq}")] public class NewDeployKey { /// /// Gets or sets a name for the deployment key. /// /// /// The title. /// public string Title { get; set; } /// /// Gets or sets the contents of the deployment key. /// /// /// The key. /// public string Key { get; set; } /// /// Gets or sets a value indicating whether the key will only be able to read repository contents. Otherwise, /// the key will be able to read and write. /// /// /// true if [read only]; otherwise, false. /// public bool ReadOnly { get; set; } internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, "Key: {0}, Title: {1}", Key, Title); } } } }