Package org.azd.enums
Enum Class BuildAuthorizationScope
- All Implemented Interfaces:
Serializable
,Comparable<BuildAuthorizationScope>
,Constable
Represents a build definition.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionThe identity used should have build service account permissions scoped to the project in which the build definition resides.The identity used should have build service account permissions scoped to the project collection. -
Method Summary
Modifier and TypeMethodDescriptionstatic BuildAuthorizationScope
Returns the enum constant of this class with the specified name.static BuildAuthorizationScope[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
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
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
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
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 nameNullPointerException
- if the argument is null
-