public sealed class BooleanConstraint : IMessage<Constraint.Types.BooleanConstraint>, IEquatable<Constraint.Types.BooleanConstraint>, IDeepCloneable<Constraint.Types.BooleanConstraint>, IBufferMessage, IMessage
A Constraint that is either enforced or not.
For example a constraint constraints/compute.disableSerialPortAccess.
If it is enforced on a VM instance, serial port connections will not be
opened to that instance.
[[["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."],[[["\u003cp\u003eThis document outlines the \u003ccode\u003eBooleanConstraint\u003c/code\u003e class, which is part of the Google Cloud Org Policy V2 and is used to define constraints that can be either enforced or not enforced.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of this resource is 2.7.0, and previous versions are also documented, ranging from 1.0.0 up to 2.6.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eBooleanConstraint\u003c/code\u003e 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, allowing it to interact with the Protobuf system and inherit the properties of other relevant classes.\u003c/p\u003e\n"],["\u003cp\u003eThis class inherits from the base \u003ccode\u003eObject\u003c/code\u003e class and includes methods such as \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eGetType\u003c/code\u003e, \u003ccode\u003eMemberwiseClone\u003c/code\u003e, and \u003ccode\u003eToString\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe class has 2 constructors available, one default and one that accepts another \u003ccode\u003eBooleanConstraint\u003c/code\u003e object as a parameter.\u003c/p\u003e\n"]]],[],null,[]]