Package org.kohsuke.github
Class GHTeamBuilder
java.lang.Object
org.kohsuke.github.GHTeamBuilder
Creates a team.
https://developer.github.com/v3/teams/#create-team
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final org.kohsuke.github.RequesterThe builder. -
Constructor Summary
ConstructorsConstructorDescriptionGHTeamBuilder(GitHub root, String orgName, String name) Instantiates a new GH team builder. -
Method Summary
Modifier and TypeMethodDescriptioncreate()Creates a team with all the parameters.description(String description) Description for this team.getRoot()Deprecated.maintainers(String... maintainers) Maintainers for this team.parentTeamId(long parentTeamId) Parent team id for this team.privacy(GHTeam.Privacy privacy) Description for this team.repositories(String... repoNames) Repository names to add this team to.
-
Field Details
-
builder
protected final org.kohsuke.github.Requester builderThe builder.
-
-
Constructor Details
-
GHTeamBuilder
Instantiates a new GH team builder.- Parameters:
root- the rootorgName- the org namename- the name
-
-
Method Details
-
description
Description for this team.- Parameters:
description- description of team- Returns:
- a builder to continue with building
-
maintainers
Maintainers for this team.- Parameters:
maintainers- maintainers of team- Returns:
- a builder to continue with building
-
repositories
Repository names to add this team to.- Parameters:
repoNames- repoNames to add team to- Returns:
- a builder to continue with building
-
privacy
Description for this team.- Parameters:
privacy- privacy of team- Returns:
- a builder to continue with building
-
parentTeamId
Parent team id for this team.- Parameters:
parentTeamId- parentTeamId of team- Returns:
- a builder to continue with building
-
create
Creates a team with all the parameters.- Returns:
- the gh team
- Throws:
IOException- if team cannot be created
-
getRoot
Deprecated.For access to theGitHubinstance, use a local copy instead of pulling it out of objects.Get the rootGitHubinstance for this object.- Returns:
- the root
GitHubinstance
-
GitHubinstance, use a local copy instead of pulling it out of objects.