Struct google_api_proto::google::cloud::accessapproval::v1::ApprovalRequest
source · pub struct ApprovalRequest {
pub name: String,
pub requested_resource_name: String,
pub requested_resource_properties: Option<ResourceProperties>,
pub requested_reason: Option<AccessReason>,
pub requested_locations: Option<AccessLocations>,
pub request_time: Option<Timestamp>,
pub requested_expiration: Option<Timestamp>,
pub decision: Option<Decision>,
}
Expand description
A request for the customer to approve access to a resource.
Fields§
§name: String
The resource name of the request. Format is “{projects|folders|organizations}/{id}/approvalRequests/{approval_request}”.
requested_resource_name: String
The resource for which approval is being requested. The format of the resource name is defined at https://cloud.google.com/apis/design/resource_names. The resource name here may either be a “full” resource name (e.g. “//library.googleapis.com/shelves/shelf1/books/book2”) or a “relative” resource name (e.g. “shelves/shelf1/books/book2”) as described in the resource name specification.
requested_resource_properties: Option<ResourceProperties>
Properties related to the resource represented by requested_resource_name.
requested_reason: Option<AccessReason>
The justification for which approval is being requested.
requested_locations: Option<AccessLocations>
The locations for which approval is being requested.
request_time: Option<Timestamp>
The time at which approval was requested.
requested_expiration: Option<Timestamp>
The requested expiration for the approval. If the request is approved, access will be granted from the time of approval until the expiration time.
decision: Option<Decision>
The current decision on the approval request.
Trait Implementations§
source§impl Clone for ApprovalRequest
impl Clone for ApprovalRequest
source§fn clone(&self) -> ApprovalRequest
fn clone(&self) -> ApprovalRequest
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ApprovalRequest
impl Debug for ApprovalRequest
source§impl Default for ApprovalRequest
impl Default for ApprovalRequest
source§impl Message for ApprovalRequest
impl Message for ApprovalRequest
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 ApprovalRequest
impl PartialEq for ApprovalRequest
source§fn eq(&self, other: &ApprovalRequest) -> bool
fn eq(&self, other: &ApprovalRequest) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for ApprovalRequest
Auto Trait Implementations§
impl !Freeze for ApprovalRequest
impl RefUnwindSafe for ApprovalRequest
impl Send for ApprovalRequest
impl Sync for ApprovalRequest
impl Unpin for ApprovalRequest
impl UnwindSafe for ApprovalRequest
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