Class DefinitionsRevisionRequestBuilder

java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.release.definitions.DefinitionsRevisionRequestBuilder

public class DefinitionsRevisionRequestBuilder extends BaseRequestBuilder
Provides functionality to work with Release Definitions history Api.
  • 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

      public CompletableFuture<InputStream> getAsync(int definitionId, int revision) throws AzDException
      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

      public InputStream get(int definitionId, int revision) throws AzDException
      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

      public ReleaseDefinitionRevisions getHistory(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.