Struct google_api_proto::google::identity::accesscontextmanager::v1::DevicePolicy
source · pub struct DevicePolicy {
pub require_screenlock: bool,
pub allowed_encryption_statuses: Vec<i32>,
pub os_constraints: Vec<OsConstraint>,
pub allowed_device_management_levels: Vec<i32>,
pub require_admin_approval: bool,
pub require_corp_owned: bool,
}
Expand description
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.
Fields§
§require_screenlock: bool
Whether or not screenlock is required for the DevicePolicy to be true.
Defaults to false
.
allowed_encryption_statuses: Vec<i32>
Allowed encryptions statuses, an empty list allows all statuses.
os_constraints: Vec<OsConstraint>
Allowed OS versions, an empty list allows all types and all versions.
allowed_device_management_levels: Vec<i32>
Allowed device management levels, an empty list allows all management levels.
require_admin_approval: bool
Whether the device needs to be approved by the customer admin.
require_corp_owned: bool
Whether the device needs to be corp owned.
Implementations§
source§impl DevicePolicy
impl DevicePolicy
sourcepub fn allowed_encryption_statuses(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<DeviceEncryptionStatus>>
pub fn allowed_encryption_statuses( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<DeviceEncryptionStatus>>
Returns an iterator which yields the valid enum values contained in allowed_encryption_statuses
.
sourcepub fn push_allowed_encryption_statuses(
&mut self,
value: DeviceEncryptionStatus,
)
pub fn push_allowed_encryption_statuses( &mut self, value: DeviceEncryptionStatus, )
Appends the provided enum value to allowed_encryption_statuses
.
sourcepub fn allowed_device_management_levels(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<DeviceManagementLevel>>
pub fn allowed_device_management_levels( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<DeviceManagementLevel>>
Returns an iterator which yields the valid enum values contained in allowed_device_management_levels
.
sourcepub fn push_allowed_device_management_levels(
&mut self,
value: DeviceManagementLevel,
)
pub fn push_allowed_device_management_levels( &mut self, value: DeviceManagementLevel, )
Appends the provided enum value to allowed_device_management_levels
.
Trait Implementations§
source§impl Clone for DevicePolicy
impl Clone for DevicePolicy
source§fn clone(&self) -> DevicePolicy
fn clone(&self) -> DevicePolicy
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DevicePolicy
impl Debug for DevicePolicy
source§impl Default for DevicePolicy
impl Default for DevicePolicy
source§impl Message for DevicePolicy
impl Message for DevicePolicy
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for DevicePolicy
impl PartialEq for DevicePolicy
source§fn eq(&self, other: &DevicePolicy) -> bool
fn eq(&self, other: &DevicePolicy) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for DevicePolicy
Auto Trait Implementations§
impl Freeze for DevicePolicy
impl RefUnwindSafe for DevicePolicy
impl Send for DevicePolicy
impl Sync for DevicePolicy
impl Unpin for DevicePolicy
impl UnwindSafe for DevicePolicy
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request