Package org.azd.work.iterations
Class IterationsRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.work.iterations.IterationsRequestBuilder
Provides functionality to work with Work iterations Api.
-
Nested Class Summary
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
ConstructorDescriptionIterationsRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionDelete a team's iteration by iterationIddeleteAsync
(String id, String team) Delete a team's iteration by iterationIdGet team's iteration by iterationIdGet team's iteration by iterationIdgetWorkItems
(String iterationId, String team) Get work items for iterationgetWorkItemsAsync
(String iterationId, String team) Get work items for iterationGet a team's iterations using timeframe filterlist
(String team, IterationsTimeFrame timeFrame) Get a team's iterations using timeframe filterGet a team's iterations using timeframe filterlistAsync
(String team, IterationsTimeFrame timeFrame) Get a team's iterations using timeframe filterpost
(String team, TeamSettingsIteration teamSettingsIteration) Add an iteration to the teampostAsync
(String team, TeamSettingsIteration teamSettingsIteration) Add an iteration to the teamMethods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
IterationsRequestBuilder
public IterationsRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values.- Parameters:
organizationUrl
- Represents organization location request url.accessTokenCredential
- Access token credential object.
-
-
Method Details
-
deleteAsync
Delete a team's iteration by iterationId- Parameters:
id
- ID of the iterationteam
- Team ID or team name- Throws:
AzDException
- Default Api Exception handler.
-
getAsync
public CompletableFuture<TeamSettingsIteration> getAsync(String id, String team) throws AzDException Get team's iteration by iterationId- Parameters:
id
- Team ID or team nameteam
- ID of the iteration- Returns:
- TeamSettingsIteration object
TeamSettingsIteration
- Throws:
AzDException
- Default Api Exception handler.
-
getWorkItemsAsync
public CompletableFuture<IterationWorkItems> getWorkItemsAsync(String iterationId, String team) throws AzDException Get work items for iteration- Parameters:
iterationId
- ID of the iterationteam
- Team ID or team name- Returns:
- Collection of iteration work items
IterationWorkItems
- Throws:
AzDException
- Default Api Exception handler.
-
listAsync
Get a team's iterations using timeframe filter- Parameters:
team
- Team ID or team name- Returns:
- Collection of TeamSettingsIteration object
TeamSettingsIterations
- Throws:
AzDException
- Default Api Exception handler.
-
listAsync
public CompletableFuture<TeamSettingsIterations> listAsync(String team, IterationsTimeFrame timeFrame) throws AzDException Get a team's iterations using timeframe filter- Parameters:
team
- Team ID or team nametimeFrame
- A filter for which iterations are returned based on relative time. Only 'Current' is supported currently.IterationsTimeFrame
- Returns:
- Collection of TeamSettingsIteration object
TeamSettingsIterations
- Throws:
AzDException
- Default Api Exception handler.
-
postAsync
public CompletableFuture<TeamSettingsIteration> postAsync(String team, TeamSettingsIteration teamSettingsIteration) throws AzDException Add an iteration to the team- Parameters:
team
- Team ID or team nameteamSettingsIteration
- Team settings iteration object to add iteration to the team.- Returns:
- TeamSettingsIteration object
TeamSettingsIteration
- Throws:
AzDException
- Default Api Exception handler.
-
delete
Delete a team's iteration by iterationId- Parameters:
id
- ID of the iterationteam
- Team ID or team name- Throws:
AzDException
- Default Api Exception handler.
-
get
Get team's iteration by iterationId- Parameters:
id
- Team ID or team nameteam
- ID of the iteration- Returns:
- TeamSettingsIteration object
TeamSettingsIteration
- Throws:
AzDException
- Default Api Exception handler.
-
getWorkItems
Get work items for iteration- Parameters:
iterationId
- ID of the iterationteam
- Team ID or team name- Returns:
- Collection of iteration work items
IterationWorkItems
- Throws:
AzDException
- Default Api Exception handler.
-
list
Get a team's iterations using timeframe filter- Parameters:
team
- Team ID or team name- Returns:
- Collection of TeamSettingsIteration object
TeamSettingsIterations
- Throws:
AzDException
- Default Api Exception handler.
-
list
Get a team's iterations using timeframe filter- Parameters:
team
- Team ID or team nametimeFrame
- A filter for which iterations are returned based on relative time. Only 'Current' is supported currently.IterationsTimeFrame
- Returns:
- Collection of TeamSettingsIteration object
TeamSettingsIterations
- Throws:
AzDException
- Default Api Exception handler.
-
post
public TeamSettingsIteration post(String team, TeamSettingsIteration teamSettingsIteration) throws AzDException Add an iteration to the team- Parameters:
team
- Team ID or team nameteamSettingsIteration
- Team settings iteration object to add iteration to the team.- Returns:
- TeamSettingsIteration object
TeamSettingsIteration
- Throws:
AzDException
- Default Api Exception handler.
-