Class UniversalRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.artifactspackagetypes.universal.UniversalRequestBuilder
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
Represents the Path values for Maven Api.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
ConstructorDescriptionUniversalRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) -
Method Summary
Modifier and TypeMethodDescriptiondelete
(Consumer<UniversalRequestBuilder.UPackPathParameters> pathParameters) Delete a package version from a feed's recycle bin.deleteAsync
(Consumer<UniversalRequestBuilder.UPackPathParameters> pathParameters) Delete a package version from a feed's recycle bin.get
(Consumer<UniversalRequestBuilder.UPackPathParameters> pathParameters) Show information about a package version.get
(Consumer<UniversalRequestBuilder.UPackPathParameters> pathParameters, Predicate<ArtifactsPackageTypesRequestBuilder.DeletedPackagePredicate> showDeleted) Show information about a package version.getAsync
(Consumer<UniversalRequestBuilder.UPackPathParameters> pathParameters) Show information about a package version.getAsync
(Consumer<UniversalRequestBuilder.UPackPathParameters> pathParameters, Predicate<ArtifactsPackageTypesRequestBuilder.DeletedPackagePredicate> showDeleted) Show information about a package version.Provides functionality to manage Package version from recycle bin Api.update
(String feedId, UPackPackagesBatchRequest batchRequest) Update several packages from a single feed in a single request.update
(Consumer<UniversalRequestBuilder.UPackPathParameters> pathParameters, PackageVersionDetails packageVersionDetails) Update information for a package version.updateAsync
(String feedId, UPackPackagesBatchRequest batchRequest) Update several packages from a single feed in a single request.updateAsync
(Consumer<UniversalRequestBuilder.UPackPathParameters> pathParameters, PackageVersionDetails packageVersionDetails) Update information for a package version.Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
UniversalRequestBuilder
-
-
Method Details
-
recycleBin
Provides functionality to manage Package version from recycle bin Api.- Returns:
- UniversalPackageFromRecycleBinRequestBuilder
UniversalPackageFromRecycleBinRequestBuilder
-
deleteAsync
public CompletableFuture<Void> deleteAsync(Consumer<UniversalRequestBuilder.UPackPathParameters> pathParameters) throws AzDException Delete a package version from a feed's recycle bin.- Parameters:
pathParameters
- Represents the path parameters to delete artifact.- Throws:
AzDException
- Default Api Exception handler.
-
getAsync
public CompletableFuture<Package> 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.
-
getAsync
public CompletableFuture<Package> getAsync(Consumer<UniversalRequestBuilder.UPackPathParameters> pathParameters, Predicate<ArtifactsPackageTypesRequestBuilder.DeletedPackagePredicate> showDeleted) throws AzDException Show information about a package version.- Parameters:
pathParameters
- Represents the path parameters to get artifact.showDeleted
- Specify to include the deleted packages.- Throws:
AzDException
- Default Api Exception handler.
-
updateAsync
public CompletableFuture<Void> updateAsync(Consumer<UniversalRequestBuilder.UPackPathParameters> pathParameters, PackageVersionDetails packageVersionDetails) throws AzDException Update information for a package version.- Parameters:
pathParameters
- Represents the path parameters to update artifact.packageVersionDetails
- package version details to update.- Throws:
AzDException
- Default Api Exception handler.
-
updateAsync
public CompletableFuture<Void> updateAsync(String feedId, UPackPackagesBatchRequest batchRequest) throws AzDException Update several packages from a single feed in a single request. The updates to the packages do not happen atomically.- Parameters:
feedId
- Name of ID of the feed.batchRequest
- UPack batch request with package details to update.- Throws:
AzDException
- Default Api Exception handler.
-
delete
public Void delete(Consumer<UniversalRequestBuilder.UPackPathParameters> pathParameters) throws AzDException Delete a package version from a feed's recycle bin.- Parameters:
pathParameters
- Represents the path parameters to delete artifact.- Throws:
AzDException
- Default Api Exception handler.
-
get
public Package 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.
-
get
public Package get(Consumer<UniversalRequestBuilder.UPackPathParameters> pathParameters, Predicate<ArtifactsPackageTypesRequestBuilder.DeletedPackagePredicate> showDeleted) throws AzDException Show information about a package version.- Parameters:
pathParameters
- Represents the path parameters to get artifact.showDeleted
- Specify to include the deleted packages.- Throws:
AzDException
- Default Api Exception handler.
-
update
public Void update(Consumer<UniversalRequestBuilder.UPackPathParameters> pathParameters, PackageVersionDetails packageVersionDetails) throws AzDException Update information for a package version.- Parameters:
pathParameters
- Represents the path parameters to update artifact.packageVersionDetails
- package version details to update.- Throws:
AzDException
- Default Api Exception handler.
-
update
Update several packages from a single feed in a single request. The updates to the packages do not happen atomically.- Parameters:
feedId
- Name of ID of the feed.batchRequest
- UPack batch request with package details to update.- Throws:
AzDException
- Default Api Exception handler.
-