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"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["The `Constraint.Types.BooleanConstraint` class in the Organization Policy v2 API represents a constraint that can be either enforced or not enforced."],["This class is part of the `Google.Cloud.OrgPolicy.V2` namespace and is found within the `Google.Cloud.OrgPolicy.V2.dll` assembly."],["The latest version of this class is `2.7.0`, with documentation available alongside past versions going as far back as `1.0.0`."],["The class implements several interfaces, including `IMessage`, `IEquatable`, `IDeepCloneable`, and `IBufferMessage`, and inherits from the `object` class."],["There is two contructor options to create a new `BooleanConstraint`, one being empty and the other one accepting a `Constraint.Types.BooleanConstraint`."]]],[]]