Interface TeamCreate
-
- All Known Implementing Classes:
ImmutableTeamCreate
@Immutable public interface TeamCreate
Request to create a team within a given organisation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Optional<String>
description()
The description of the team.Optional<List<String>>
maintainers()
List GitHub IDs for organization members who will become team maintainers.String
name()
The name of the team.Optional<String>
notificationSetting()
The notification setting the team has chosen.Optional<Integer>
parentTeamId()
The ID of a team to set as the parent team.Optional<String>
privacy()
The level of privacy this team should have.Optional<List<String>>
repoNames()
The full name (e.g., "organization-name/repository-name") of repositories to add the team to.
-
-
-
Method Detail
-
name
String name()
The name of the team.
-
privacy
Optional<String> privacy()
The level of privacy this team should have. For a non-nested team: secret - only visible to organization owners and members of this team. closed - visible to all members of this organization. Default: secret For a parent or child team: closed - visible to all members of this organization. Default for child team: closed Can be one of: secret, closed
-
notificationSetting
Optional<String> notificationSetting()
The notification setting the team has chosen. The options are:notifications_enabled - team members receive notifications when the team is @mentioned.
notifications_disabled - no one receives notifications.
Default: notifications_enabled
Can be one of: notifications_enabled, notifications_disabled
-
maintainers
Optional<List<String>> maintainers()
List GitHub IDs for organization members who will become team maintainers.
-
repoNames
Optional<List<String>> repoNames()
The full name (e.g., "organization-name/repository-name") of repositories to add the team to.
-
-