Package org.azd.release.definitions
Class DefinitionsRevisionRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.release.definitions.DefinitionsRevisionRequestBuilder
Provides functionality to work with Release Definitions history 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
ConstructorDescriptionDefinitionsRevisionRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionget
(int definitionId, int revision) Get release definition for a given definitionId and revisiongetAsync
(int definitionId, int revision) Get release definition for a given definitionId and revisiongetHistory
(int definitionId) Get revision history for a release definitiongetHistoryAsync
(int definitionId) Get revision history for a release definitionMethods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
DefinitionsRevisionRequestBuilder
public DefinitionsRevisionRequestBuilder(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
Get release definition for a given definitionId and revision- Parameters:
definitionId
- Id of the definition.revision
- Id of the revision.- Returns:
- Stream of definition revision
- Throws:
AzDException
- Default Api Exception handler.
-
getHistoryAsync
public CompletableFuture<ReleaseDefinitionRevisions> getHistoryAsync(int definitionId) throws AzDException Get revision history for a release definition- Parameters:
definitionId
- Id of the release definition/pipeline.- Returns:
- ReleaseDefinitionRevisions
ReleaseDefinitionRevisions
- Throws:
AzDException
- Default Api Exception handler.
-
get
Get release definition for a given definitionId and revision- Parameters:
definitionId
- Id of the definition.revision
- Id of the revision.- Returns:
- Stream of definition revision
- Throws:
AzDException
- Default Api Exception handler.
-
getHistory
Get revision history for a release definition- Parameters:
definitionId
- Id of the release definition/pipeline.- Returns:
- ReleaseDefinitionRevisions
ReleaseDefinitionRevisions
- Throws:
AzDException
- Default Api Exception handler.
-