Class ArtifactsPackageTypesHelpersRequestBuilder

java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.artifactspackagetypes.ArtifactsPackageTypesRequestBuilder
org.azd.helpers.artifactspackagetypes.ArtifactsPackageTypesHelpersRequestBuilder

public class ArtifactsPackageTypesHelpersRequestBuilder extends ArtifactsPackageTypesRequestBuilder
Helper request builder that combines multiple Apis to create logical helper methods for ease of use.
  • 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.