Enum AdmissionRule.EvaluationMode
java.lang.Object
java.lang.Enum<AdmissionRule.EvaluationMode>
com.google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<AdmissionRule.EvaluationMode>
- Enclosing class:
- AdmissionRule
public static enum AdmissionRule.EvaluationMode
extends Enum<AdmissionRule.EvaluationMode>
implements com.google.protobuf.ProtocolMessageEnum
Protobuf enum
google.cloud.binaryauthorization.v1beta1.AdmissionRule.EvaluationMode-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis rule allows all all pod creations.This rule denies all pod creations.Do not use.This rule allows a pod creation if all the attestors listed in `require_attestations_by` have valid attestations for all of the images in the pod spec. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThis rule allows all all pod creations.static final intThis rule denies all pod creations.static final intDo not use.static final intThis rule allows a pod creation if all the attestors listed in `require_attestations_by` have valid attestations for all of the images in the pod spec. -
Method Summary
Modifier and TypeMethodDescriptionstatic AdmissionRule.EvaluationModeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<AdmissionRule.EvaluationMode>static AdmissionRule.EvaluationModevalueOf(int value) Deprecated.static AdmissionRule.EvaluationModevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static AdmissionRule.EvaluationModeReturns the enum constant of this type with the specified name.static AdmissionRule.EvaluationMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
EVALUATION_MODE_UNSPECIFIED
Do not use.
EVALUATION_MODE_UNSPECIFIED = 0; -
ALWAYS_ALLOW
This rule allows all all pod creations.
ALWAYS_ALLOW = 1; -
REQUIRE_ATTESTATION
This rule allows a pod creation if all the attestors listed in `require_attestations_by` have valid attestations for all of the images in the pod spec.
REQUIRE_ATTESTATION = 2; -
ALWAYS_DENY
This rule denies all pod creations.
ALWAYS_DENY = 3; -
UNRECOGNIZED
-
-
Field Details
-
EVALUATION_MODE_UNSPECIFIED_VALUE
public static final int EVALUATION_MODE_UNSPECIFIED_VALUEDo not use.
EVALUATION_MODE_UNSPECIFIED = 0;- See Also:
-
ALWAYS_ALLOW_VALUE
public static final int ALWAYS_ALLOW_VALUEThis rule allows all all pod creations.
ALWAYS_ALLOW = 1;- See Also:
-
REQUIRE_ATTESTATION_VALUE
public static final int REQUIRE_ATTESTATION_VALUEThis rule allows a pod creation if all the attestors listed in `require_attestations_by` have valid attestations for all of the images in the pod spec.
REQUIRE_ATTESTATION = 2;- See Also:
-
ALWAYS_DENY_VALUE
public static final int ALWAYS_DENY_VALUEThis rule denies all pod creations.
ALWAYS_DENY = 3;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<AdmissionRule.EvaluationMode> internalGetValueMap() -
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
public static AdmissionRule.EvaluationMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-