Class BuildLogsRequestBuilder

java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.build.builds.BuildLogsRequestBuilder

public class BuildLogsRequestBuilder extends BaseRequestBuilder
Provides the functionality to manage Build Logs Api.
  • Constructor Details

    • BuildLogsRequestBuilder

      public BuildLogsRequestBuilder(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<String> getAsync(int buildId, int logId) throws AzDException
      Gets an individual log file for a build.
      Parameters:
      buildId - ID of the build.
      logId - ID of the log file.
      Returns:
      Future string object or plain text.
      Throws:
      AzDException - Default Api exception handler.
    • getAsync

      public CompletableFuture<String> getAsync(int buildId, int logId, Consumer<BuildLogsRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException
      Gets an individual log file for a build as plain text.
      Parameters:
      buildId - ID of the build.
      logId - ID of the log file.
      requestConfiguration - Consumer of query parameters.
      Returns:
      String object or plain text.
      Throws:
      AzDException - Default Api exception handler.
    • getAsZipAsync

      public CompletableFuture<InputStream> getAsZipAsync(int buildId, int logId) throws AzDException
      Gets an individual log file for a build as a zip file.
      Parameters:
      buildId - ID of the build.
      logId - ID of the log file.
      Returns:
      Input stream of logs.
      Throws:
      AzDException - Default Api exception handler.
    • getAsync

      public CompletableFuture<BuildLogs> getAsync(int buildId) throws AzDException
      Gets the logs for a build.
      Parameters:
      buildId - ID of the build.
      Returns:
      BuildLogs future object BuildLogs
      Throws:
      AzDException - Default Api exception handler.
    • getAsZipAsync

      public CompletableFuture<InputStream> getAsZipAsync(int buildId) throws AzDException
      Gets the logs for a build as zip content.
      Parameters:
      buildId - ID of the build.
      Returns:
      CompletableFuture of Input stream of logs.
      Throws:
      AzDException - Default Api exception handler.
    • get

      public String get(int buildId, int logId) throws AzDException
      Gets an individual log file for a build.
      Parameters:
      buildId - ID of the build.
      logId - ID of the log file.
      Returns:
      String object or plain text.
      Throws:
      AzDException - Default Api exception handler.
    • get

      public String get(int buildId, int logId, Consumer<BuildLogsRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException
      Gets an individual log file for a build as plain text.
      Parameters:
      buildId - ID of the build.
      logId - ID of the log file.
      requestConfiguration - Consumer of query parameters.
      Returns:
      String object or plain text.
      Throws:
      AzDException - Default Api exception handler.
    • getAsZip

      public InputStream getAsZip(int buildId, int logId) throws AzDException
      Gets an individual log file for a build as a zip file.
      Parameters:
      buildId - ID of the build.
      logId - ID of the log file.
      Returns:
      Input stream of logs.
      Throws:
      AzDException - Default Api exception handler.
    • get

      public BuildLogs get(int buildId) throws AzDException
      Gets the logs for a build.
      Parameters:
      buildId - ID of the build.
      Returns:
      BuildLogs future object BuildLogs
      Throws:
      AzDException - Default Api exception handler.
    • getAsZip

      public InputStream getAsZip(int buildId) throws AzDException
      Gets the logs for a build as zip content.
      Parameters:
      buildId - ID of the build.
      Returns:
      Input stream of logs.
      Throws:
      AzDException - Default Api exception handler.