using System.Collections.ObjectModel; using System.Diagnostics; using System.Globalization; namespace Octokit { /// /// Used to create a team. /// /// /// /// In order to create a team, the authenticated user must be a member of :org. /// /// API: https://developer.github.com/v3/orgs/teams/#create-team /// [DebuggerDisplay("{DebuggerDisplay,nq}")] public class NewTeam { /// /// Initializes a new instance of the class. /// /// The name. public NewTeam(string name) { Name = name; RepoNames = new Collection(); Permission = Permission.Pull; } /// /// The name of the team (required). /// public string Name { get; private set; } /// /// Gets or sets the description of the team /// /// /// The description. /// public string Description { get; set; } /// /// permission associated to this team /// public Permission Permission { get; set; } /// /// array of repo_names this team has permissions to /// public Collection RepoNames { get; private set; } internal string DebuggerDisplay { get { return string.Format(CultureInfo.InvariantCulture, "Name: {0} Permission: {1}", Name, Permission); } } } }