public static enum Resources.AdmissionRule.EnforcementMode extends Enum<Resources.AdmissionRule.EnforcementMode> implements com.google.protobuf.ProtocolMessageEnum
Defines the possible actions when a pod creation is denied by an admission rule.Protobuf enum
google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode| Enum Constant and Description |
|---|
DRYRUN_AUDIT_LOG_ONLY
Dryrun mode: Audit logging only.
|
ENFORCED_BLOCK_AND_AUDIT_LOG
Enforce the admission rule by blocking the pod creation.
|
ENFORCEMENT_MODE_UNSPECIFIED
Do not use.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
DRYRUN_AUDIT_LOG_ONLY_VALUE
Dryrun mode: Audit logging only.
|
static int |
ENFORCED_BLOCK_AND_AUDIT_LOG_VALUE
Enforce the admission rule by blocking the pod creation.
|
static int |
ENFORCEMENT_MODE_UNSPECIFIED_VALUE
Do not use.
|
| Modifier and Type | Method and Description |
|---|---|
static Resources.AdmissionRule.EnforcementMode |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<Resources.AdmissionRule.EnforcementMode> |
internalGetValueMap() |
static Resources.AdmissionRule.EnforcementMode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Resources.AdmissionRule.EnforcementMode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Resources.AdmissionRule.EnforcementMode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Resources.AdmissionRule.EnforcementMode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Resources.AdmissionRule.EnforcementMode ENFORCEMENT_MODE_UNSPECIFIED
Do not use.
ENFORCEMENT_MODE_UNSPECIFIED = 0;public static final Resources.AdmissionRule.EnforcementMode ENFORCED_BLOCK_AND_AUDIT_LOG
Enforce the admission rule by blocking the pod creation.
ENFORCED_BLOCK_AND_AUDIT_LOG = 1;public static final Resources.AdmissionRule.EnforcementMode DRYRUN_AUDIT_LOG_ONLY
Dryrun mode: Audit logging only. This will allow the pod creation as if the admission request had specified break-glass.
DRYRUN_AUDIT_LOG_ONLY = 2;public static final Resources.AdmissionRule.EnforcementMode UNRECOGNIZED
public static final int ENFORCEMENT_MODE_UNSPECIFIED_VALUE
Do not use.
ENFORCEMENT_MODE_UNSPECIFIED = 0;public static final int ENFORCED_BLOCK_AND_AUDIT_LOG_VALUE
Enforce the admission rule by blocking the pod creation.
ENFORCED_BLOCK_AND_AUDIT_LOG = 1;public static final int DRYRUN_AUDIT_LOG_ONLY_VALUE
Dryrun mode: Audit logging only. This will allow the pod creation as if the admission request had specified break-glass.
DRYRUN_AUDIT_LOG_ONLY = 2;public static Resources.AdmissionRule.EnforcementMode[] values()
for (Resources.AdmissionRule.EnforcementMode c : Resources.AdmissionRule.EnforcementMode.values()) System.out.println(c);
public static Resources.AdmissionRule.EnforcementMode valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static Resources.AdmissionRule.EnforcementMode valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Resources.AdmissionRule.EnforcementMode forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Resources.AdmissionRule.EnforcementMode> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Resources.AdmissionRule.EnforcementMode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.