Struct google_api_proto::google::cloud::privilegedaccessmanager::v1::Grant
source · pub struct Grant {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub requester: String,
pub requested_duration: Option<Duration>,
pub justification: Option<Justification>,
pub state: i32,
pub timeline: Option<Timeline>,
pub privileged_access: Option<PrivilegedAccess>,
pub audit_trail: Option<AuditTrail>,
pub additional_email_recipients: Vec<String>,
pub externally_modified: bool,
}
Expand description
This is to ensure that the Grants
and ProducerGrants
proto are byte
compatible.
A grant represents a request from a user for obtaining the access specified
in an entitlement they are eligible for.
Fields§
§name: String
Identifier. Name of this grant. Possible formats:
organizations/{organization-number}/locations/{region}/entitlements/{entitlement-id}/grants/{grant-id}
folders/{folder-number}/locations/{region}/entitlements/{entitlement-id}/grants/{grant-id}
projects/{project-id|project-number}/locations/{region}/entitlements/{entitlement-id}/grants/{grant-id}
The last segment of this name ({grant-id}
) is autogenerated.
create_time: Option<Timestamp>
Output only. Create time stamp.
update_time: Option<Timestamp>
Output only. Update time stamp.
requester: String
Output only. Username of the user who created this grant.
requested_duration: Option<Duration>
Required. The amount of time access is needed for. This value should be
less than the max_request_duration
value of the entitlement.
justification: Option<Justification>
Optional. Justification of why this access is needed.
state: i32
Output only. Current state of this grant.
timeline: Option<Timeline>
Output only. Timeline of this grant.
privileged_access: Option<PrivilegedAccess>
Output only. The access that would be granted by this grant.
audit_trail: Option<AuditTrail>
Output only. Audit trail of access provided by this grant. If unspecified then access was never granted.
additional_email_recipients: Vec<String>
Optional. Additional email addresses to notify for all the actions performed on the grant.
externally_modified: bool
Output only. Flag set by the PAM system to indicate that policy bindings made by this grant have been modified from outside PAM.
After it is set, this flag remains set forever irrespective of the grant
state. A true
value here indicates that PAM no longer has any certainty
on the access a user has because of this grant.
Implementations§
Trait Implementations§
source§impl Message for Grant
impl Message for Grant
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 Grant
impl PartialEq for Grant
impl StructuralPartialEq for Grant
Auto Trait Implementations§
impl Freeze for Grant
impl RefUnwindSafe for Grant
impl Send for Grant
impl Sync for Grant
impl Unpin for Grant
impl UnwindSafe for Grant
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