Package org.azd.enums

Enum Class PackagesBatchOperation

java.lang.Object
java.lang.Enum<PackagesBatchOperation>
org.azd.enums.PackagesBatchOperation
All Implemented Interfaces:
Serializable, Comparable<PackagesBatchOperation>, Constable

public enum PackagesBatchOperation extends Enum<PackagesBatchOperation>
Type of operation that needs to be performed on packages.
  • Enum Constant Details

    • PROMOTE

      public static final PackagesBatchOperation PROMOTE
      Promote package versions to a release view. If constructing a MavenPackagesBatchRequest object with this type.
    • DELETE

      public static final PackagesBatchOperation DELETE
      Delete package versions. Not supported in the Recycle Bin.
    • PERMANENTDELETE

      public static final PackagesBatchOperation PERMANENTDELETE
      Permanently delete package versions. Only supported in the Recycle Bin.
    • RESTORETOFEED

      public static final PackagesBatchOperation RESTORETOFEED
      Restore unpublished package versions to the feed. Only supported in the Recycle Bin.
  • Method Details

    • values

      public static PackagesBatchOperation[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static PackagesBatchOperation valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null