Class UniversalPackageFromRecycleBinRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.artifactspackagetypes.universal.UniversalPackageFromRecycleBinRequestBuilder
-
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
ConstructorDescriptionUniversalPackageFromRecycleBinRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) -
Method Summary
Modifier and TypeMethodDescriptiondelete
(Consumer<UniversalRequestBuilder.UPackPathParameters> pathParameters) Delete a package version from the recycle bin.deleteAsync
(Consumer<UniversalRequestBuilder.UPackPathParameters> pathParameters) Delete a package version from the recycle bin.get
(Consumer<UniversalRequestBuilder.UPackPathParameters> pathParameters) Show information about a package version.getAsync
(Consumer<UniversalRequestBuilder.UPackPathParameters> pathParameters) Show information about a package version.restore
(UPackRecycleBinPackageVersionDetails recycleBinPackageVersionDetails, Consumer<UniversalRequestBuilder.UPackPathParameters> pathParameters) Restore a package version from the recycle bin to its associated feed.restoreAsync
(UPackRecycleBinPackageVersionDetails recycleBinPackageVersionDetails, Consumer<UniversalRequestBuilder.UPackPathParameters> pathParameters) Restore a package version from the recycle bin to its associated feed.update
(String feedId, UPackPackagesBatchRequest batchRequest) Delete or restore several package versions from the recycle bin.updateAsync
(String feedId, UPackPackagesBatchRequest batchRequest) Delete or restore several package versions from the recycle bin.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
UniversalPackageFromRecycleBinRequestBuilder
public UniversalPackageFromRecycleBinRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential)
-
-
Method Details
-
deleteAsync
public CompletableFuture<Void> deleteAsync(Consumer<UniversalRequestBuilder.UPackPathParameters> pathParameters) throws AzDException Delete a package version from the recycle bin.- Parameters:
pathParameters
- Represents the path parameters to delete artifact.- Throws:
AzDException
- Default Api Exception handler.
-
getAsync
public CompletableFuture<UPackPackageVersionDeletionState> getAsync(Consumer<UniversalRequestBuilder.UPackPathParameters> pathParameters) throws AzDException Show information about a package version.- Parameters:
pathParameters
- Represents the path parameters to get artifact.- Throws:
AzDException
- Default Api Exception handler.
-
restoreAsync
public CompletableFuture<Void> restoreAsync(UPackRecycleBinPackageVersionDetails recycleBinPackageVersionDetails, Consumer<UniversalRequestBuilder.UPackPathParameters> pathParameters) throws AzDException Restore a package version from the recycle bin to its associated feed.- Parameters:
recycleBinPackageVersionDetails
- Set the deleted property as false to restore the package.pathParameters
- Represents the path parameters to restore artifact.- Throws:
AzDException
- Default Api Exception handler.
-
updateAsync
public CompletableFuture<Void> updateAsync(String feedId, UPackPackagesBatchRequest 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<UniversalRequestBuilder.UPackPathParameters> pathParameters) throws AzDException Delete a package version from the recycle bin.- Parameters:
pathParameters
- Represents the path parameters to delete artifact.- Throws:
AzDException
- Default Api Exception handler.
-
get
public UPackPackageVersionDeletionState get(Consumer<UniversalRequestBuilder.UPackPathParameters> pathParameters) throws AzDException Show information about a package version.- Parameters:
pathParameters
- Represents the path parameters to get artifact.- Throws:
AzDException
- Default Api Exception handler.
-
restore
public Void restore(UPackRecycleBinPackageVersionDetails recycleBinPackageVersionDetails, Consumer<UniversalRequestBuilder.UPackPathParameters> pathParameters) throws AzDException Restore a package version from the recycle bin to its associated feed.- Parameters:
recycleBinPackageVersionDetails
- Set the deleted property as false to restore the package.pathParameters
- Represents the path parameters to restore 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.
-