public sealed class Constraint.Types.BooleanConstraint : IMessage<Constraint.Types.BooleanConstraint>, IEquatable<Constraint.Types.BooleanConstraint>, IDeepCloneable<Constraint.Types.BooleanConstraint>, IBufferMessage, IMessage
Reference documentation and code samples for the Organization Policy v2 API class Constraint.Types.BooleanConstraint.
A constraint type is enforced or not enforced, which is configured in the
[PolicyRule][google.cloud.orgpolicy.v2.PolicySpec.PolicyRule].
If customConstraintDefinition is defined, this constraint is a managed
constraint.
[[["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-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003eConstraint.Types.BooleanConstraint\u003c/code\u003e class in the Organization Policy v2 API represents a constraint that can be either enforced or not enforced.\u003c/p\u003e\n"],["\u003cp\u003eThis class is part of the \u003ccode\u003eGoogle.Cloud.OrgPolicy.V2\u003c/code\u003e namespace and is found within the \u003ccode\u003eGoogle.Cloud.OrgPolicy.V2.dll\u003c/code\u003e assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this class is \u003ccode\u003e2.7.0\u003c/code\u003e, with documentation available alongside past versions going as far back as \u003ccode\u003e1.0.0\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the \u003ccode\u003eobject\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThere is two contructor options to create a new \u003ccode\u003eBooleanConstraint\u003c/code\u003e, one being empty and the other one accepting a \u003ccode\u003eConstraint.Types.BooleanConstraint\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]