1.9.1 (latest) 1.9.0 1.8.0 1.7.0 1.6.1 1.5.0 1.4.1 1.3.1 1.2.0 1.1.0 1.0.2 0.32.0 0.31.0 0.30.0 0.29.3 0.28.1 0.27.0 0.26.1 0.25.0 0.24.0 0.23.0 0.22.0 0.21.1 0.20.1 0.19.0 0.18.0 0.17.3 Reference documentation and code samples for the Cloud Asset 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-cloud-asset-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-cloud-asset-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-cloud-asset-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.