Package org.azd.core.teams
Class TeamsRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.core.teams.TeamsRequestBuilder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the query parameters.static classRequest configuration object for the query parameters.Nested classes/interfaces inherited from class org.azd.abstractions.BaseRequestBuilder
BaseRequestBuilder.ProjectExcludeParameter -
Field Summary
Fields inherited from class org.azd.abstractions.BaseRequestBuilder
accessTokenCredential, apiVersion, area, locationId, organizationUrl, serializer -
Constructor Summary
ConstructorsConstructorDescriptionTeamsRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionCreate a team in a team project.createAsync(String projectId, String teamName) Create a team in a team project.Delete a team.deleteAsync(String projectId, String teamId) Delete a team.Get a list of teams.Get a specific team.Get a specific team.get(String projectId, Consumer<TeamsRequestBuilder.RequestConfiguration> requestConfiguration) Get a list of teams.Get a list of teams.Get a specific team.Get a specific team.getAsync(String projectId, Consumer<TeamsRequestBuilder.RequestConfiguration> requestConfiguration) Get a list of teams.list()Get a list of all teams.list(Consumer<TeamsRequestBuilder.RequestConfiguration> requestConfiguration) Get a list of all teams.Get a list of all teams.listAsync(Consumer<TeamsRequestBuilder.RequestConfiguration> requestConfiguration) Get a list of all teams.members()Provides functionality to manage Teams members Api.update(String projectId, String teamId, WebApiTeam team) Update a team's name and/or description.updateAsync(String projectId, String teamId, WebApiTeam team) Update a team's name and/or description.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
TeamsRequestBuilder
Instantiates a new RequestBuilder instance and sets the default values.- Parameters:
organizationUrl- Represents organization location request url.accessTokenCredential- Access token credential object.
-
-
Method Details
-
members
Provides functionality to manage Teams members Api.- Returns:
- TeamsMembersRequestBuilder
TeamsMembersRequestBuilder
-
createAsync
public CompletableFuture<WebApiTeam> createAsync(String projectId, String teamName) throws AzDException Create a team in a team project.- Parameters:
projectId- project name or GUIDteamName- pass the team name- Returns:
- returns web api object
- Throws:
AzDException- Default Api Exception handler.
-
deleteAsync
Delete a team.- Parameters:
projectId- pass the project name or idteamId- pass the team name- Throws:
AzDException- Default Api Exception handler.
-
getAsync
Get a specific team.- Parameters:
projectId- pass the project name or idteamId- pass the team name- Returns:
- team object
- Throws:
AzDException- Default Api Exception handler.
-
getAsync
public CompletableFuture<WebApiTeam> getAsync(String projectId, String teamId, boolean expandIdentity) throws AzDException Get a specific team.- Parameters:
projectId- pass the project name or idteamId- pass the team nameexpandIdentity- if true gets the identity object- Returns:
- team object
- Throws:
AzDException- Default Api Exception handler.
-
listAsync
Get a list of all teams.- Returns:
- array of team
WebApiTeams. - Throws:
AzDException- Default Api Exception handler.
-
listAsync
public CompletableFuture<WebApiTeams> listAsync(Consumer<TeamsRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Get a list of all teams.- Returns:
- array of team
WebApiTeams. - Throws:
AzDException- Default Api Exception handler.
-
getAsync
Get a list of teams.- Parameters:
projectId- Project name.- Returns:
- array of team
WebApiTeams. - Throws:
AzDException- Default Api Exception handler.
-
getAsync
public CompletableFuture<WebApiTeams> getAsync(String projectId, Consumer<TeamsRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Get a list of teams.- Parameters:
projectId- Project name.requestConfiguration- Consumer of request configuration. This represents the query parameter for the request.- Returns:
- array of team
WebApiTeams. - Throws:
AzDException- Default Api Exception handler.
-
updateAsync
public CompletableFuture<WebApiTeam> updateAsync(String projectId, String teamId, WebApiTeam team) throws AzDException Update a team's name and/or description.- Parameters:
projectId- Project name.teamId- The name or ID (GUID) of the team.team- WebApiTeam object to updateWebApiTeam.- Returns:
- array of team
WebApiTeams. - Throws:
AzDException- Default Api Exception handler.
-
create
Create a team in a team project.- Parameters:
projectId- project name or GUIDteamName- pass the team name- Returns:
- returns web api object
- Throws:
AzDException- Default Api Exception handler.
-
delete
Delete a team.- Parameters:
projectId- pass the project name or idteamId- pass the team name- Throws:
AzDException- Default Api Exception handler.
-
get
Get a specific team.- Parameters:
projectId- pass the project name or idteamId- pass the team name- Returns:
- team object
- Throws:
AzDException- Default Api Exception handler.
-
get
Get a specific team.- Parameters:
projectId- pass the project name or idteamId- pass the team nameexpandIdentity- if true gets the identity object- Returns:
- team object
- Throws:
AzDException- Default Api Exception handler.
-
list
Get a list of all teams.- Returns:
- array of team
WebApiTeams. - Throws:
AzDException- Default Api Exception handler.
-
list
public WebApiTeams list(Consumer<TeamsRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Get a list of all teams.- Returns:
- array of team
WebApiTeams. - Throws:
AzDException- Default Api Exception handler.
-
get
Get a list of teams.- Parameters:
projectId- Project name.- Returns:
- array of team
WebApiTeams. - Throws:
AzDException- Default Api Exception handler.
-
get
public WebApiTeams get(String projectId, Consumer<TeamsRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Get a list of teams.- Parameters:
projectId- Project name.requestConfiguration- Consumer of request configuration. This represents the query parameter for the request.- Returns:
- array of team
WebApiTeams. - Throws:
AzDException- Default Api Exception handler.
-
update
Update a team's name and/or description.- Parameters:
projectId- Project name.teamId- The name or ID (GUID) of the team.team- WebApiTeam object to updateWebApiTeam.- Returns:
- array of team
WebApiTeams. - Throws:
AzDException- Default Api Exception handler.
-