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 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 provides reference documentation for the \u003ccode\u003eConstraint.Types.BooleanConstraint\u003c/code\u003e class within the Organization Policy v2 API.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eBooleanConstraint\u003c/code\u003e is a type of constraint that can be either enforced or not enforced, affecting behaviors like whether serial port connections are allowed on a VM instance.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eBooleanConstraint\u003c/code\u003e class is part of the \u003ccode\u003eGoogle.Cloud.OrgPolicy.V2\u003c/code\u003e namespace and is found in the \u003ccode\u003eGoogle.Cloud.OrgPolicy.V2.dll\u003c/code\u003e assembly, with version 2.5.0 being presented in the document.\u003c/p\u003e\n"],["\u003cp\u003eThe document covers a range of versions of the \u003ccode\u003eBooleanConstraint\u003c/code\u003e class, from 1.0.0 to 2.7.0 (latest), with links to each version's documentation.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eBooleanConstraint\u003c/code\u003e implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, showcasing its functionality within the API.\u003c/p\u003e\n"]]],[],null,[]]