Access Context Manager V1 API - Class Google::Identity::AccessContextManager::V1::DevicePolicy (v0.7.2)

Reference documentation and code samples for the Access Context Manager V1 API class Google::Identity::AccessContextManager::V1::DevicePolicy.

DevicePolicy specifies device specific restrictions necessary to acquire a given access level. A DevicePolicy specifies requirements for requests from devices to be granted access levels, it does not do any enforcement on the device. DevicePolicy acts as an AND over all specified fields, and each repeated field is an OR over its elements. Any unset fields are ignored. For example, if the proto is { os_type : DESKTOP_WINDOWS, os_type : DESKTOP_LINUX, encryption_status: ENCRYPTED}, then the DevicePolicy will be true for requests originating from encrypted Linux desktops and encrypted Windows desktops.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#allowed_device_management_levels

def allowed_device_management_levels() -> ::Array<::Google::Identity::AccessContextManager::Type::DeviceManagementLevel>
Returns

#allowed_device_management_levels=

def allowed_device_management_levels=(value) -> ::Array<::Google::Identity::AccessContextManager::Type::DeviceManagementLevel>
Parameter
Returns

#allowed_encryption_statuses

def allowed_encryption_statuses() -> ::Array<::Google::Identity::AccessContextManager::Type::DeviceEncryptionStatus>
Returns

#allowed_encryption_statuses=

def allowed_encryption_statuses=(value) -> ::Array<::Google::Identity::AccessContextManager::Type::DeviceEncryptionStatus>
Parameter
Returns

#os_constraints

def os_constraints() -> ::Array<::Google::Identity::AccessContextManager::V1::OsConstraint>
Returns

#os_constraints=

def os_constraints=(value) -> ::Array<::Google::Identity::AccessContextManager::V1::OsConstraint>
Parameter
Returns

#require_admin_approval

def require_admin_approval() -> ::Boolean
Returns
  • (::Boolean) — Whether the device needs to be approved by the customer admin.

#require_admin_approval=

def require_admin_approval=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Whether the device needs to be approved by the customer admin.
Returns
  • (::Boolean) — Whether the device needs to be approved by the customer admin.

#require_corp_owned

def require_corp_owned() -> ::Boolean
Returns
  • (::Boolean) — Whether the device needs to be corp owned.

#require_corp_owned=

def require_corp_owned=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Whether the device needs to be corp owned.
Returns
  • (::Boolean) — Whether the device needs to be corp owned.

#require_screenlock

def require_screenlock() -> ::Boolean
Returns
  • (::Boolean) — Whether or not screenlock is required for the DevicePolicy to be true. Defaults to false.

#require_screenlock=

def require_screenlock=(value) -> ::Boolean
Parameter
  • value (::Boolean) — Whether or not screenlock is required for the DevicePolicy to be true. Defaults to false.
Returns
  • (::Boolean) — Whether or not screenlock is required for the DevicePolicy to be true. Defaults to false.