Package org.azd.git.repositories
Class RecycleBinRepositoriesRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.git.repositories.RecycleBinRepositoriesRequestBuilder
Recycle bin repositories request builder to manage Git recycle bin repositories 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
ConstructorDescriptionRecycleBinRepositoriesRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionDestroy (hard delete) a soft-deleted Git repository.deleteAsync
(String repositoryId) Destroy (hard delete) a soft-deleted Git repository.list()
Retrieve soft-deleted git repositories from the recycle bin.Retrieve soft-deleted git repositories from the recycle bin.Recover a soft-deleted Git repository.restoreAsync
(String repositoryId, boolean deleted) Recover a soft-deleted Git repository.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
RecycleBinRepositoriesRequestBuilder
public RecycleBinRepositoriesRequestBuilder(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
-
deleteAsync
Destroy (hard delete) a soft-deleted Git repository.- Parameters:
repositoryId
- pass the repository id- Throws:
AzDException
- Default Api Exception handler.
-
listAsync
Retrieve soft-deleted git repositories from the recycle bin.- Returns:
- array of git deleted recycle bin repositories
- Throws:
AzDException
- Default Api Exception handler.
-
restoreAsync
public CompletableFuture<GitRepository> restoreAsync(String repositoryId, boolean deleted) throws AzDException Recover a soft-deleted Git repository. Recently deleted repositories go into a soft-delete state for a period of time before they are hard deleted and become unrecoverable.- Parameters:
repositoryId
- pass the repository iddeleted
- Setting to false will undo earlier deletion and restore the repository.- Returns:
- object of git repository
GitRepository
- Throws:
AzDException
- Default Api Exception handler.
-
delete
Destroy (hard delete) a soft-deleted Git repository.- Parameters:
repositoryId
- pass the repository id- Throws:
AzDException
- Default Api Exception handler.
-
list
Retrieve soft-deleted git repositories from the recycle bin.- Returns:
- array of git deleted recycle bin repositories
- Throws:
AzDException
- Default Api Exception handler.
-
restore
Recover a soft-deleted Git repository. Recently deleted repositories go into a soft-delete state for a period of time before they are hard deleted and become unrecoverable.- Parameters:
repositoryId
- pass the repository iddeleted
- Setting to false will undo earlier deletion and restore the repository.- Returns:
- object of git repository
GitRepository
- Throws:
AzDException
- Default Api Exception handler.
-