Class WorkItemRevisionsRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.workitemtracking.revisions.WorkItemRevisionsRequestBuilder
Provides functionality to work with Work item revisions Api.
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents the query parameters.static class
Request 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
ConstructorDescriptionWorkItemRevisionsRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionget
(int id, int revisionNumber) Returns a fully hydrated work item for the requested revisionget
(int id, int revisionNumber, WorkItemExpand expand) Returns a fully hydrated work item for the requested revisiongetAsync
(int id, int revisionNumber) Returns a fully hydrated work item for the requested revisiongetAsync
(int id, int revisionNumber, WorkItemExpand expand) Returns a fully hydrated work item for the requested revisionlist
(int id) Returns the list of fully hydrated work item revisions, paged.list
(int id, Consumer<WorkItemRevisionsRequestBuilder.RequestConfiguration> requestConfiguration) Returns the list of fully hydrated work item revisions, paged.listAsync
(int id) Returns the list of fully hydrated work item revisions, paged.listAsync
(int id, Consumer<WorkItemRevisionsRequestBuilder.RequestConfiguration> requestConfiguration) Returns the list of fully hydrated work item revisions, paged.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
WorkItemRevisionsRequestBuilder
public WorkItemRevisionsRequestBuilder(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
-
getAsync
Returns a fully hydrated work item for the requested revision- Parameters:
id
- ID of the work item.revisionNumber
- Revision number of work item to retrieve.- Returns:
- WorkItem object
WorkItem
- Throws:
AzDException
- Default Api exception handler.
-
getAsync
public CompletableFuture<WorkItem> getAsync(int id, int revisionNumber, WorkItemExpand expand) throws AzDException Returns a fully hydrated work item for the requested revision- Parameters:
id
- ID of the work item.revisionNumber
- Revision number of work item to retrieve.expand
- Expands the work item fields.- Returns:
- WorkItem object
WorkItem
- Throws:
AzDException
- Default Api exception handler.
-
listAsync
Returns the list of fully hydrated work item revisions, paged.- Parameters:
id
- ID of the work item.- Returns:
- Collection of work item
WorkItemList
- Throws:
AzDException
- Default Api exception handler.
-
listAsync
public CompletableFuture<WorkItemList> listAsync(int id, Consumer<WorkItemRevisionsRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Returns the list of fully hydrated work item revisions, paged.- Parameters:
id
- ID of the work item.requestConfiguration
- Represents the query parameters.- Returns:
- Collection of work item
WorkItemList
- Throws:
AzDException
- Default Api exception handler.
-
get
Returns a fully hydrated work item for the requested revision- Parameters:
id
- ID of the work item.revisionNumber
- Revision number of work item to retrieve.- Returns:
- WorkItem object
WorkItem
- Throws:
AzDException
- Default Api exception handler.
-
get
Returns a fully hydrated work item for the requested revision- Parameters:
id
- ID of the work item.revisionNumber
- Revision number of work item to retrieve.expand
- Expands the work item fields.- Returns:
- WorkItem object
WorkItem
- Throws:
AzDException
- Default Api exception handler.
-
list
Returns the list of fully hydrated work item revisions, paged.- Parameters:
id
- ID of the work item.- Returns:
- Collection of work item
WorkItemList
- Throws:
AzDException
- Default Api exception handler.
-
list
public WorkItemList list(int id, Consumer<WorkItemRevisionsRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Returns the list of fully hydrated work item revisions, paged.- Parameters:
id
- ID of the work item.requestConfiguration
- Represents the query parameters.- Returns:
- Collection of work item
WorkItemList
- Throws:
AzDException
- Default Api exception handler.
-