[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Binary Authorization V1 Client - Class EnforcementMode (1.0.5)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.5 (latest)](/php/docs/reference/cloud-binary-authorization/latest/V1.AdmissionRule.EnforcementMode)\n- [1.0.4](/php/docs/reference/cloud-binary-authorization/1.0.4/V1.AdmissionRule.EnforcementMode)\n- [0.8.7](/php/docs/reference/cloud-binary-authorization/0.8.7/V1.AdmissionRule.EnforcementMode)\n- [0.7.0](/php/docs/reference/cloud-binary-authorization/0.7.0/V1.AdmissionRule.EnforcementMode)\n- [0.6.1](/php/docs/reference/cloud-binary-authorization/0.6.1/V1.AdmissionRule.EnforcementMode)\n- [0.5.13](/php/docs/reference/cloud-binary-authorization/0.5.13/V1.AdmissionRule.EnforcementMode) \nReference documentation and code samples for the Google Cloud Binary Authorization V1 Client class EnforcementMode.\n\nDefines the possible actions when a pod creation is denied by an admission\nrule.\n\nProtobuf type `google.cloud.binaryauthorization.v1.AdmissionRule.EnforcementMode`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ BinaryAuthorization \\\\ V1 \\\\ AdmissionRule\n\nMethods\n-------\n\n### static::name\n\n### static::value\n\nConstants\n---------\n\n### ENFORCEMENT_MODE_UNSPECIFIED\n\n Value: 0\n\nDo not use.\n\nGenerated from protobuf enum `ENFORCEMENT_MODE_UNSPECIFIED = 0;`\n\n### ENFORCED_BLOCK_AND_AUDIT_LOG\n\n Value: 1\n\nEnforce the admission rule by blocking the pod creation.\n\nGenerated from protobuf enum `ENFORCED_BLOCK_AND_AUDIT_LOG = 1;`\n\n### DRYRUN_AUDIT_LOG_ONLY\n\n Value: 2\n\nDryrun mode: Audit logging only. This will allow the pod creation as if\nthe admission request had specified break-glass.\n\nGenerated from protobuf enum `DRYRUN_AUDIT_LOG_ONLY = 2;`"]]