Package org.azd.build.builds
Class BuildsRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.build.builds.BuildsRequestBuilder
Provides the functionality to manage Builds 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
ConstructorDescriptionBuildsRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionchanges()
Provides functionality to Build changes Api.delete
(int buildId) Deletes a build hronously.deleteAsync
(int buildId) Deletes a build asynchronously.get
(int buildId) Gets a buildGets a buildgetAsync
(int buildId) Gets a buildGets a buildgetRetentionLeases
(int buildId) Gets all retention leases that apply to a specific build.getRetentionLeasesAsync
(int buildId) Gets all retention leases that apply to a specific build.list()
Gets a list of builds.list
(Consumer<BuildsRequestBuilder.RequestConfiguration> requestConfiguration) Gets a list of builds.Gets a list of builds.listAsync
(Consumer<BuildsRequestBuilder.RequestConfiguration> requestConfiguration) Gets a list of builds.logs()
Provides functionality to manage Build logs Api.queue
(int definitionId) Queues a buildQueues a buildqueueAsync
(int definitionId) Queues a buildqueueAsync
(Build build) Queues a buildUpdates a build.Updates multiple builds.updateAsync
(int buildId, boolean retry, Build build) Updates a build.updateAsync
(Builds builds) Updates multiple builds.Provides functionality to manage Build work items Api.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
BuildsRequestBuilder
Instantiates a new RequestBuilder instance and sets the default values.- Parameters:
organizationUrl
- Represents organization location request url.accessTokenCredential
- Access token credential object.
-
-
Method Details
-
changes
Provides functionality to Build changes Api.- Returns:
- BuildChangesRequestBuilder
BuildChangesRequestBuilder
-
logs
Provides functionality to manage Build logs Api.- Returns:
- BuildLogsRequestBuilder
BuildLogsRequestBuilder
-
workItems
Provides functionality to manage Build work items Api.- Returns:
- BuildWorkItemsRequestBuilder
BuildWorkItemsRequestBuilder
-
deleteAsync
Deletes a build asynchronously.- Parameters:
buildId
- pass the build id to delete- Throws:
AzDException
- Default Api Exception handler.
-
getAsync
Gets a build- Parameters:
buildId
- pass the build id- Returns:
- Future build object
Build
- Throws:
AzDException
- Default Api Exception handler.
-
getAsync
Gets a build- Parameters:
buildId
- pass the build idpropertyFilters
- Property filters.- Returns:
- Future build object
Build
- Throws:
AzDException
- Default Api Exception handler.
-
getRetentionLeasesAsync
Gets all retention leases that apply to a specific build.- Parameters:
buildId
- pass the build id- Returns:
- Future Retention leases object
RetentionLeases
- Throws:
AzDException
- Default Api Exception handler.
-
listAsync
Gets a list of builds.- Returns:
- Future Builds object
Builds
- Throws:
AzDException
- Default Api Exception handler.
-
listAsync
public CompletableFuture<Builds> listAsync(Consumer<BuildsRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Gets a list of builds.- Returns:
- Future Builds object
Builds
- Throws:
AzDException
- Default Api Exception handler.
-
queueAsync
Queues a build- Parameters:
definitionId
- pass the pipeline id to queue the build- Returns:
- a build object
Build
- Throws:
AzDException
- Default Api Exception handler.
-
queueAsync
Queues a build- Parameters:
build
- Build object to queue the build.- Returns:
- a build object
Build
- Throws:
AzDException
- Default Api Exception handler.
-
updateAsync
public CompletableFuture<Build> updateAsync(int buildId, boolean retry, Build build) throws AzDException Updates a build.- Parameters:
buildId
- The ID of the build.retry
- Nonebuild
- pass the Build object to update.Build
- Returns:
- Build Object
Build
- Throws:
AzDException
- Default Api Exception handler.
-
updateAsync
Updates multiple builds.- Parameters:
builds
- List of build to update.Builds
- Returns:
- Build Object
Builds
- Throws:
AzDException
- Default Api Exception handler.
-
delete
Deletes a build hronously.- Parameters:
buildId
- pass the build id to delete- Throws:
AzDException
- Default Api Exception handler.
-
get
Gets a build- Parameters:
buildId
- pass the build id- Returns:
- Future build object
Build
- Throws:
AzDException
- Default Api Exception handler.
-
get
Gets a build- Parameters:
buildId
- pass the build idpropertyFilters
- Property filters.- Returns:
- Future build object
Build
- Throws:
AzDException
- Default Api Exception handler.
-
getRetentionLeases
Gets all retention leases that apply to a specific build.- Parameters:
buildId
- pass the build id- Returns:
- Future Retention leases object
RetentionLeases
- Throws:
AzDException
- Default Api Exception handler.
-
list
Gets a list of builds.- Returns:
- Future Builds object
Builds
- Throws:
AzDException
- Default Api Exception handler.
-
list
public Builds list(Consumer<BuildsRequestBuilder.RequestConfiguration> requestConfiguration) throws AzDException Gets a list of builds.- Returns:
- Future Builds object
Builds
- Throws:
AzDException
- Default Api Exception handler.
-
queue
Queues a build- Parameters:
definitionId
- pass the pipeline id to queue the build- Returns:
- a build object
Build
- Throws:
AzDException
- Default Api Exception handler.
-
queue
Queues a build- Parameters:
build
- Build object to queue the build.- Returns:
- a build object
Build
- Throws:
AzDException
- Default Api Exception handler.
-
update
Updates a build.- Parameters:
buildId
- The ID of the build.retry
- Nonebuild
- pass the Build object to update.Build
- Returns:
- Build Object
Build
- Throws:
AzDException
- Default Api Exception handler.
-
update
Updates multiple builds.- Parameters:
builds
- List of build to update.Builds
- Returns:
- Build Object
Builds
- Throws:
AzDException
- Default Api Exception handler.
-