Class PackageFromRecycleBinRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.artifactspackagetypes.maven.PackageFromRecycleBinRequestBuilder
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents path 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
ConstructorDescriptionPackageFromRecycleBinRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) -
Method Summary
Modifier and TypeMethodDescriptiondelete
(Consumer<PackageFromRecycleBinRequestBuilder.PackagePathParameters> pathParameters) Permanently delete a package from a feed's recycle bin.deleteAsync
(Consumer<PackageFromRecycleBinRequestBuilder.PackagePathParameters> pathParameters) Permanently delete a package from a feed's recycle bin.get
(Consumer<PackageFromRecycleBinRequestBuilder.PackagePathParameters> pathParameters) Get information about a package version in the recycle bin.getAsync
(Consumer<PackageFromRecycleBinRequestBuilder.PackagePathParameters> pathParameters) Get information about a package version in the recycle bin.restore
(MavenRecycleBinPackageVersionDetails recycleBinPackageVersionDetails, Consumer<PackageFromRecycleBinRequestBuilder.PackagePathParameters> pathParameters) Get information about a package version in the recycle bin.restoreAsync
(MavenRecycleBinPackageVersionDetails recycleBinPackageVersionDetails, Consumer<PackageFromRecycleBinRequestBuilder.PackagePathParameters> pathParameters) Get information about a package version in the recycle bin.update
(String feedId, MavenPackagesBatchRequest batchRequest) Delete or restore several package versions from the recycle bin.updateAsync
(String feedId, MavenPackagesBatchRequest batchRequest) Delete or restore several package versions from the recycle bin.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
PackageFromRecycleBinRequestBuilder
public PackageFromRecycleBinRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential)
-
-
Method Details
-
deleteAsync
public CompletableFuture<Void> deleteAsync(Consumer<PackageFromRecycleBinRequestBuilder.PackagePathParameters> pathParameters) throws AzDException Permanently delete a package from a feed's recycle bin.- Parameters:
pathParameters
- Pass the package path parameters to delete the artifact.- Throws:
AzDException
- Default Api Exception handler.
-
getAsync
public CompletableFuture<MavenPackageVersionDeletionState> getAsync(Consumer<PackageFromRecycleBinRequestBuilder.PackagePathParameters> pathParameters) throws AzDException Get information about a package version in the recycle bin.- Parameters:
pathParameters
- Pass the package path parameters to get the artifact.- Returns:
- MavenPackageVersionDeletionState
MavenPackageVersionDeletionState
- Throws:
AzDException
- Default Api Exception handler.
-
restoreAsync
public CompletableFuture<Void> restoreAsync(MavenRecycleBinPackageVersionDetails recycleBinPackageVersionDetails, Consumer<PackageFromRecycleBinRequestBuilder.PackagePathParameters> pathParameters) throws AzDException Get information about a package version in the recycle bin.- Parameters:
recycleBinPackageVersionDetails
- Set the deleted property as false to restore the package.pathParameters
- Pass the package path parameters to restore the artifact.- Throws:
AzDException
- Default Api Exception handler.
-
updateAsync
public CompletableFuture<Void> updateAsync(String feedId, MavenPackagesBatchRequest batchRequest) throws AzDException Delete or restore several package versions from the recycle bin.- Parameters:
feedId
- ID of the feed.batchRequest
- Maven batch request with package details to delete or restore the packages.- Throws:
AzDException
- Default Api Exception handler.
-
delete
public Void delete(Consumer<PackageFromRecycleBinRequestBuilder.PackagePathParameters> pathParameters) throws AzDException Permanently delete a package from a feed's recycle bin.- Parameters:
pathParameters
- Pass the package path parameters to delete the artifact.- Throws:
AzDException
- Default Api Exception handler.
-
get
public MavenPackageVersionDeletionState get(Consumer<PackageFromRecycleBinRequestBuilder.PackagePathParameters> pathParameters) throws AzDException Get information about a package version in the recycle bin.- Parameters:
pathParameters
- Pass the package path parameters to get the artifact.- Returns:
- MavenPackageVersionDeletionState
MavenPackageVersionDeletionState
- Throws:
AzDException
- Default Api Exception handler.
-
restore
public Void restore(MavenRecycleBinPackageVersionDetails recycleBinPackageVersionDetails, Consumer<PackageFromRecycleBinRequestBuilder.PackagePathParameters> pathParameters) throws AzDException Get information about a package version in the recycle bin.- Parameters:
recycleBinPackageVersionDetails
- Set the deleted property as false to restore the package.pathParameters
- Pass the package path parameters to get the artifact.- Throws:
AzDException
- Default Api Exception handler.
-
update
Delete or restore several package versions from the recycle bin.- Parameters:
feedId
- ID of the feed.batchRequest
- Maven batch request with package details to delete or restore the packages.- Throws:
AzDException
- Default Api Exception handler.
-