Reference documentation and code samples for the Access Context Manager V1 Client class OsConstraint.
A restriction on the OS type and version of devices making requests.
Generated from protobuf messagegoogle.identity.accesscontextmanager.v1.OsConstraint
Namespace
Google \ Identity \ AccessContextManager \ V1
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ os_type
int
Required. The allowed OS type.
↳ minimum_version
string
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".
↳ require_verified_chrome_os
bool
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.
getOsType
Required. The allowed OS type.
Returns
Type
Description
int
setOsType
Required. The allowed OS type.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getMinimumVersion
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".
Returns
Type
Description
string
setMinimumVersion
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".
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getRequireVerifiedChromeOs
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.
Returns
Type
Description
bool
setRequireVerifiedChromeOs
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."],[],[],null,["# Access Context Manager V1 Client - Class OsConstraint (1.0.4)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.4 (latest)](/php/docs/reference/access-context-manager/latest/V1.OsConstraint)\n- [1.0.3](/php/docs/reference/access-context-manager/1.0.3/V1.OsConstraint)\n- [0.5.5](/php/docs/reference/access-context-manager/0.5.5/V1.OsConstraint)\n- [0.4.5](/php/docs/reference/access-context-manager/0.4.5/V1.OsConstraint)\n- [0.3.5](/php/docs/reference/access-context-manager/0.3.5/V1.OsConstraint) \nReference documentation and code samples for the Access Context Manager V1 Client class OsConstraint.\n\nA restriction on the OS type and version of devices making requests.\n\nGenerated from protobuf message `google.identity.accesscontextmanager.v1.OsConstraint`\n\nNamespace\n---------\n\nGoogle \\\\ Identity \\\\ AccessContextManager \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getOsType\n\nRequired. The allowed OS type.\n\n### setOsType\n\nRequired. The allowed OS type.\n\n### getMinimumVersion\n\nThe minimum allowed OS version. If not set, any version of this OS\nsatisfies the constraint. Format: `\"major.minor.patch\"`.\n\nExamples: `\"10.5.301\"`, `\"9.2.1\"`.\n\n### setMinimumVersion\n\nThe minimum allowed OS version. If not set, any version of this OS\nsatisfies the constraint. Format: `\"major.minor.patch\"`.\n\nExamples: `\"10.5.301\"`, `\"9.2.1\"`.\n\n### getRequireVerifiedChromeOs\n\nOnly allows requests from devices with a verified Chrome OS.\n\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.\n\n### setRequireVerifiedChromeOs\n\nOnly allows requests from devices with a verified Chrome OS.\n\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."]]