Struct google_api_proto::google::cloud::privilegedaccessmanager::v1::Entitlement
source · pub struct Entitlement {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub eligible_users: Vec<AccessControlEntry>,
pub approval_workflow: Option<ApprovalWorkflow>,
pub privileged_access: Option<PrivilegedAccess>,
pub max_request_duration: Option<Duration>,
pub state: i32,
pub requester_justification_config: Option<RequesterJustificationConfig>,
pub additional_notification_targets: Option<AdditionalNotificationTargets>,
pub etag: String,
}
Expand description
An entitlement defines the eligibility of a set of users to obtain predefined access for some time possibly after going through an approval workflow.
Fields§
§name: String
Identifier. Name of the entitlement. Possible formats:
organizations/{organization-number}/locations/{region}/entitlements/{entitlement-id}
folders/{folder-number}/locations/{region}/entitlements/{entitlement-id}
projects/{project-id|project-number}/locations/{region}/entitlements/{entitlement-id}
create_time: Option<Timestamp>
Output only. Create time stamp.
update_time: Option<Timestamp>
Output only. Update time stamp.
eligible_users: Vec<AccessControlEntry>
Optional. Who can create grants using this entitlement. This list should contain at most one entry.
approval_workflow: Option<ApprovalWorkflow>
Optional. The approvals needed before access are granted to a requester. No approvals are needed if this field is null.
privileged_access: Option<PrivilegedAccess>
The access granted to a requester on successful approval.
max_request_duration: Option<Duration>
Required. The maximum amount of time that access is granted for a request. A requester can ask for a duration less than this, but never more.
state: i32
Output only. Current state of this entitlement.
requester_justification_config: Option<RequesterJustificationConfig>
Required. The manner in which the requester should provide a justification for requesting access.
additional_notification_targets: Option<AdditionalNotificationTargets>
Optional. Additional email addresses to be notified based on actions taken.
etag: String
An etag
is used for optimistic concurrency control as a way to prevent
simultaneous updates to the same entitlement. An etag
is returned in the
response to GetEntitlement
and the caller should put the etag
in the
request to UpdateEntitlement
so that their change is applied on
the same version. If this field is omitted or if there is a mismatch while
updating an entitlement, then the server rejects the request.
Implementations§
Trait Implementations§
source§impl Clone for Entitlement
impl Clone for Entitlement
source§fn clone(&self) -> Entitlement
fn clone(&self) -> Entitlement
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for Entitlement
impl Debug for Entitlement
source§impl Default for Entitlement
impl Default for Entitlement
source§impl Message for Entitlement
impl Message for Entitlement
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 Entitlement
impl PartialEq for Entitlement
source§fn eq(&self, other: &Entitlement) -> bool
fn eq(&self, other: &Entitlement) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for Entitlement
Auto Trait Implementations§
impl Freeze for Entitlement
impl RefUnwindSafe for Entitlement
impl Send for Entitlement
impl Sync for Entitlement
impl Unpin for Entitlement
impl UnwindSafe for Entitlement
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