mirror of
https://github.com/zoriya/octokit.net.git
synced 2026-06-03 03:01:31 +00:00
add new request
This commit is contained in:
@@ -0,0 +1,31 @@
|
||||
using Octokit.Internal;
|
||||
using System.Diagnostics;
|
||||
using System.Globalization;
|
||||
|
||||
namespace Octokit
|
||||
{
|
||||
[DebuggerDisplay("{DebuggerDisplay,nq}")]
|
||||
public class RepositoryPermissionRequest
|
||||
{
|
||||
/// <summary>
|
||||
/// Used to add or update a team repository.
|
||||
/// </summary>
|
||||
public RepositoryPermissionRequest(Permission permission)
|
||||
{
|
||||
Permission = permission;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// The permission to grant the team on this repository.
|
||||
/// </summary>
|
||||
public Permission Permission { get; private set; }
|
||||
|
||||
internal string DebuggerDisplay
|
||||
{
|
||||
get
|
||||
{
|
||||
return string.Format(CultureInfo.InvariantCulture, "Permission: {0}", Permission);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user