using System.Diagnostics;
using System.Diagnostics.CodeAnalysis;
using System.Globalization;
namespace Octokit
{
///
/// Represents updatable fields on a repository. Values that are null will not be sent in the request.
/// Use string.empty if you want to clear a value.
///
[DebuggerDisplay("{DebuggerDisplay,nq}")]
public class RepositoryUpdate
{
///
/// Required. Gets or sets the repository name.
///
public string Name { get; set; }
///
/// Optional. Gets or sets the repository description. The default is null (do not update)
///
public string Description { get; set; }
///
/// Optional. Gets or sets the repository homepage url. The default is null (do not update).
///
public string Homepage { get; set; }
///
/// Gets or sets whether to make the repository private. The default is null (do not update).
///
public bool? Private { get; set; }
///
/// Gets or sets whether to enable issues for the repository. The default is null (do not update).
///
public bool? HasIssues { get; set; }
///
/// Optional. Gets or sets whether to enable the wiki for the repository. The default is null (do not update).
///
public bool? HasWiki { get; set; }
///
/// Optional. Gets or sets whether to enable downloads for the repository. The default is null (do not update).
///
public bool? HasDownloads { get; set; }
///
/// Optional. Gets or sets the default branch. The default is null (do not update).
///
public string DefaultBranch { get; set; }
[SuppressMessage("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")]
internal string DebuggerDisplay
{
get { return string.Format(CultureInfo.CurrentCulture, "RepositoryUpdate: Name: {0}", Name); }
}
}
}