Access Context Manager V1 Client - Class OsConstraint (1.0.1)

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 message google.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.

Parameter
Name Description
var bool
Returns
Type Description
$this