Package org.azd.build.builds
Class BuildLogsRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.build.builds.BuildLogsRequestBuilder
Provides the functionality to manage Build Logs Api.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the query parameters.static classRequest 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
ConstructorsConstructorDescriptionBuildLogsRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionget(int buildId) Gets the logs for a build.get(int buildId, int logId) Gets an individual log file for a build.get(int buildId, int logId, Consumer<BuildLogsRequestBuilder.RequestConfiguration> requestConfiguration) Gets an individual log file for a build as plain text.getAsync(int buildId) Gets the logs for a build.getAsync(int buildId, int logId) Gets an individual log file for a build.getAsync(int buildId, int logId, Consumer<BuildLogsRequestBuilder.RequestConfiguration> requestConfiguration) Gets an individual log file for a build as plain text.getAsZip(int buildId) Gets the logs for a build as zip content.getAsZip(int buildId, int logId) Gets an individual log file for a build as a zip file.getAsZipAsync(int buildId) Gets the logs for a build as zip content.getAsZipAsync(int buildId, int logId) Gets an individual log file for a build as a zip file.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
BuildLogsRequestBuilder
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
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
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
Gets the logs for a build.- Parameters:
buildId- ID of the build.- Returns:
- BuildLogs future object
BuildLogs - Throws:
AzDException- Default Api exception handler.
-
getAsZipAsync
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
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
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
Gets the logs for a build.- Parameters:
buildId- ID of the build.- Returns:
- BuildLogs future object
BuildLogs - Throws:
AzDException- Default Api exception handler.
-
getAsZip
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.
-