pub struct GetAccessLevelRequest {
pub name: String,
pub access_level_format: i32,
}
Expand description
A request to get a particular AccessLevel
.
Fields§
§name: String
Required. Resource name for the [Access Level] [google.identity.accesscontextmanager.v1.AccessLevel].
Format:
accessPolicies/{policy_id}/accessLevels/{access_level_id}
access_level_format: i32
Whether to return BasicLevels
in the Cloud Common Expression
Language rather than as BasicLevels
. Defaults to AS_DEFINED, where
[Access Levels] [google.identity.accesscontextmanager.v1.AccessLevel]
are returned as BasicLevels
or CustomLevels
based on how they were
created. If set to CEL, all [Access Levels]
[google.identity.accesscontextmanager.v1.AccessLevel] are returned as
CustomLevels
. In the CEL case, BasicLevels
are translated to equivalent
CustomLevels
.
Implementations§
source§impl GetAccessLevelRequest
impl GetAccessLevelRequest
sourcepub fn access_level_format(&self) -> LevelFormat
pub fn access_level_format(&self) -> LevelFormat
Returns the enum value of access_level_format
, or the default if the field is set to an invalid enum value.
sourcepub fn set_access_level_format(&mut self, value: LevelFormat)
pub fn set_access_level_format(&mut self, value: LevelFormat)
Sets access_level_format
to the provided enum value.
Trait Implementations§
source§impl Clone for GetAccessLevelRequest
impl Clone for GetAccessLevelRequest
source§fn clone(&self) -> GetAccessLevelRequest
fn clone(&self) -> GetAccessLevelRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for GetAccessLevelRequest
impl Debug for GetAccessLevelRequest
source§impl Default for GetAccessLevelRequest
impl Default for GetAccessLevelRequest
source§impl Message for GetAccessLevelRequest
impl Message for GetAccessLevelRequest
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 GetAccessLevelRequest
impl PartialEq for GetAccessLevelRequest
source§fn eq(&self, other: &GetAccessLevelRequest) -> bool
fn eq(&self, other: &GetAccessLevelRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for GetAccessLevelRequest
Auto Trait Implementations§
impl Freeze for GetAccessLevelRequest
impl RefUnwindSafe for GetAccessLevelRequest
impl Send for GetAccessLevelRequest
impl Sync for GetAccessLevelRequest
impl Unpin for GetAccessLevelRequest
impl UnwindSafe for GetAccessLevelRequest
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