# Access Context Manager V1 API - Class Google::Identity::AccessContextManager::V1::OsConstraint (v0.15.0)

0.15.0 (latest) 0.14.1 0.13.1 0.12.0 0.11.0 0.10.1 0.9.0 0.8.2 0.7.2 0.6.0 0.5.2 0.4.0 0.3.0 0.2.0 0.1.2 Reference documentation and code samples for the Access Context Manager V1 API class Google::Identity::AccessContextManager::V1::OsConstraint.

A restriction on the OS type and version of devices making requests.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #minimum_version

    def minimum_version() -> ::String

**Returns**

- (::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"`.

### #minimum_version=

    def minimum_version=(value) -> ::String

**Parameter**

- **value** (::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"`.
**Returns**

- (::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"`.

### #os_type

    def os_type() -> ::Google::Identity::AccessContextManager::Type::OsType

**Returns**

- ([::Google::Identity::AccessContextManager::Type::OsType](https://docs.cloud.google.com/ruby/docs/reference/google-identity-access_context_manager-v1/latest/Google-Identity-AccessContextManager-Type-OsType)) --- Required. The allowed OS type.

### #os_type=

    def os_type=(value) -> ::Google::Identity::AccessContextManager::Type::OsType

**Parameter**

- **value** ([::Google::Identity::AccessContextManager::Type::OsType](https://docs.cloud.google.com/ruby/docs/reference/google-identity-access_context_manager-v1/latest/Google-Identity-AccessContextManager-Type-OsType)) --- Required. The allowed OS type.
**Returns**

- ([::Google::Identity::AccessContextManager::Type::OsType](https://docs.cloud.google.com/ruby/docs/reference/google-identity-access_context_manager-v1/latest/Google-Identity-AccessContextManager-Type-OsType)) --- Required. The allowed OS type.

### #require_verified_chrome_os

    def require_verified_chrome_os() -> ::Boolean

**Returns**

- (::Boolean) --- 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.

### #require_verified_chrome_os=

    def require_verified_chrome_os=(value) -> ::Boolean

**Parameter**

- **value** (::Boolean) --- 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**

- (::Boolean) --- 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.