The minimum allowed OS version. If not set, any version of this OS
satisfies the constraint. Format: "major.minor.patch".
Examples: "10.5.301", "9.2.1".
Only allows requests from devices with a verified Chrome OS.
Verifications includes requirements that the device is enterprise-managed,
conformant to domain policies, and the caller has permission to call
the API targeted by the request.
[[["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."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eOsConstraint\u003c/code\u003e class within the Google Identity Access Context Manager v1 API, detailing its properties, inheritance, and implementation of various interfaces.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOsConstraint\u003c/code\u003e class is used to define restrictions on the operating system type and version of devices making requests, including specifying a minimum OS version.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the documentation is 2.5.0, with versions ranging back to 1.2.0, all of which offer documentation for the \u003ccode\u003eOsConstraint\u003c/code\u003e class.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eOsConstraint\u003c/code\u003e class includes properties such as \u003ccode\u003eMinimumVersion\u003c/code\u003e, \u003ccode\u003eOsType\u003c/code\u003e, and \u003ccode\u003eRequireVerifiedChromeOs\u003c/code\u003e, which allow for setting the allowed OS version, OS type, and if it should be a verified Chrome OS.\u003c/p\u003e\n"]]],[],null,["# Identity Access Context Manager v1 API - Class OsConstraint (2.5.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.5.0 (latest)](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.OsConstraint)\n- [2.4.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/2.4.0/Google.Identity.AccessContextManager.V1.OsConstraint)\n- [2.3.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/2.3.0/Google.Identity.AccessContextManager.V1.OsConstraint)\n- [2.2.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/2.2.0/Google.Identity.AccessContextManager.V1.OsConstraint)\n- [2.1.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/2.1.0/Google.Identity.AccessContextManager.V1.OsConstraint)\n- [2.0.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/2.0.0/Google.Identity.AccessContextManager.V1.OsConstraint)\n- [1.5.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/1.5.0/Google.Identity.AccessContextManager.V1.OsConstraint)\n- [1.4.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/1.4.0/Google.Identity.AccessContextManager.V1.OsConstraint)\n- [1.3.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/1.3.0/Google.Identity.AccessContextManager.V1.OsConstraint)\n- [1.2.0](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/1.2.0/Google.Identity.AccessContextManager.V1.OsConstraint) \n\n public sealed class OsConstraint : IMessage\u003cOsConstraint\u003e, IEquatable\u003cOsConstraint\u003e, IDeepCloneable\u003cOsConstraint\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Identity Access Context Manager v1 API class OsConstraint.\n\nA restriction on the OS type and version of devices making requests. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e OsConstraint \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[OsConstraint](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.OsConstraint), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[OsConstraint](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.OsConstraint), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[OsConstraint](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1.OsConstraint), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Identity.AccessContextManager.V1](/dotnet/docs/reference/Google.Identity.AccessContextManager.V1/latest/Google.Identity.AccessContextManager.V1)\n\nAssembly\n--------\n\nGoogle.Identity.AccessContextManager.V1.dll\n\nConstructors\n------------\n\n### OsConstraint()\n\n public OsConstraint()\n\n### OsConstraint(OsConstraint)\n\n public OsConstraint(OsConstraint other)\n\nProperties\n----------\n\n### MinimumVersion\n\n public string MinimumVersion { get; set; }\n\nThe minimum allowed OS version. If not set, any version of this OS\nsatisfies the constraint. Format: `\"major.minor.patch\"`.\nExamples: `\"10.5.301\"`, `\"9.2.1\"`.\n\n### OsType\n\n public OsType OsType { get; set; }\n\nRequired. The allowed OS type.\n\n### RequireVerifiedChromeOs\n\n public bool RequireVerifiedChromeOs { get; set; }\n\nOnly allows requests from devices with a verified Chrome OS.\nVerifications includes requirements that the device is enterprise-managed,\nconformant to domain policies, and the caller has permission to call\nthe API targeted by the request."]]