Class ArtifactsPackageTypesHelpersRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.artifactspackagetypes.ArtifactsPackageTypesRequestBuilder
org.azd.helpers.artifactspackagetypes.ArtifactsPackageTypesHelpersRequestBuilder
Helper request builder that combines multiple Apis to create logical helper methods for ease of use.
-
Nested Class Summary
Nested classes/interfaces inherited from class org.azd.artifactspackagetypes.ArtifactsPackageTypesRequestBuilder
ArtifactsPackageTypesRequestBuilder.DeletedPackagePredicate
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
ConstructorDescriptionArtifactsPackageTypesHelpersRequestBuilder
(String organizationUrl, AccessTokenCredential accessTokenCredential) Instantiates a new RequestBuilder instance and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionuploadPackage
(String feedId, String groupId, String artifactId, String version, String fileName, InputStream content) Fulfills Maven package file upload requests by either returning the URL of the requested package file or, in the case of Azure DevOps Server (OnPrem),Methods inherited from class org.azd.artifactspackagetypes.ArtifactsPackageTypesRequestBuilder
maven, maven, universal, universal
Methods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
ArtifactsPackageTypesHelpersRequestBuilder
public ArtifactsPackageTypesHelpersRequestBuilder(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
-
uploadPackage
public Void uploadPackage(String feedId, String groupId, String artifactId, String version, String fileName, InputStream content) throws AzDException Fulfills Maven package file upload requests by either returning the URL of the requested package file or, in the case of Azure DevOps Server (OnPrem),- Parameters:
feedId
- Name or ID of the feed. Example: "mavenfeed".groupId
- Group ID of the package. Example: "com.example".artifactId
- Artifact ID of the package. Example: "app".version
- Version of the package. Example: "1.0.0".fileName
- File name to upload. Must include artifactId Example: "app-1.0.0.jar".content
- InputStream for the package file.- Throws:
AzDException
- Default Api Exception handler.
-