Package org.azd.enums

Enum Class BuildAuthorizationScope

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

public enum BuildAuthorizationScope extends Enum<BuildAuthorizationScope>
Represents a build definition.
  • Enum Constant Details

    • PROJECT

      public static final BuildAuthorizationScope PROJECT
      The identity used should have build service account permissions scoped to the project in which the build definition resides. This is useful for isolation of build jobs to a particular team project to avoid any unintentional escalation of privilege attacks during a build.
    • PROJECTCOLLECTION

      public static final BuildAuthorizationScope PROJECTCOLLECTION
      The identity used should have build service account permissions scoped to the project collection. This is useful when resources for a single build are spread across multiple projects.
  • Method Details

    • values

      public static BuildAuthorizationScope[] 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 BuildAuthorizationScope 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