Access Context Manager V1 Client - Class OsConstraint (0.3.5)

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

Methods

__construct

Constructor.

Parameters
NameDescription
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
TypeDescription
int

setOsType

Required. The allowed OS type.

Parameter
NameDescription
var int
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var string
Returns
TypeDescription
$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
TypeDescription
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
NameDescription
var bool
Returns
TypeDescription
$this