com.spotify.github.v3.orgs.requests.TeamCreate Maven / Gradle / Ivy
The newest version!
/*-
* -\-\-
* github-api
* --
* Copyright (C) 2016 - 2020 Spotify AB
* --
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
* -/-/-
*/
package com.spotify.github.v3.orgs.requests;
import com.fasterxml.jackson.annotation.JsonInclude;
import com.fasterxml.jackson.annotation.JsonProperty;
import com.fasterxml.jackson.databind.annotation.JsonDeserialize;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.spotify.github.GithubStyle;
import java.util.List;
import java.util.Optional;
import org.immutables.value.Value;
/** Request to create a team within a given organisation */
@Value.Immutable
@GithubStyle
@JsonSerialize(as = ImmutableTeamCreate.class)
@JsonDeserialize(as = ImmutableTeamCreate.class)
@JsonInclude(JsonInclude.Include.NON_EMPTY)
public interface TeamCreate {
/** The name of the team. */
String name();
/** The description of the team. */
Optional description();
/**
* 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
*/
Optional privacy();
/**
* 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
*/
@JsonProperty("notification_setting")
Optional notificationSetting();
/** List GitHub IDs for organization members who will become team maintainers. */
Optional> maintainers();
/**
* The full name (e.g., "organization-name/repository-name") of repositories to add the team to.
*/
@JsonProperty("repo_names")
Optional> repoNames();
/** The ID of a team to set as the parent team. */
@JsonProperty("parent_team_id")
Optional parentTeamId();
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy