#[non_exhaustive]pub enum AccessReason {
Show 13 variants
ReasonUnspecified,
CustomerInitiatedSupport,
GoogleInitiatedService,
ThirdPartyDataRequest,
GoogleInitiatedReview,
CustomerInitiatedAccess,
GoogleInitiatedSystemOperation,
ReasonNotExpected,
ModifiedCustomerInitiatedAccess,
ModifiedGoogleInitiatedSystemOperation,
GoogleResponseToProductionAlert,
CustomerAuthorizedWorkflowServicing,
UnknownValue(UnknownValue),
}Expand description
Describes the reason for a data access. Please refer to https://cloud.google.com/assured-workloads/key-access-justifications/docs/justification-codes for the detailed semantic meaning of justification reason codes.
§Working with unknown values
This enum is defined as #[non_exhaustive] because Google Cloud may add
additional enum variants at any time. Adding new variants is not considered
a breaking change. Applications should write their code in anticipation of:
- New values appearing in future releases of the client library, and
- New values received dynamically, without application changes.
Please consult the Working with enums section in the user guide for some guidelines.
Variants (Non-exhaustive)§
This enum is marked as non-exhaustive
ReasonUnspecified
Unspecified access reason.
CustomerInitiatedSupport
Customer-initiated support.
GoogleInitiatedService
Google-initiated access for system management and troubleshooting.
ThirdPartyDataRequest
Google-initiated access in response to a legal request or legal process.
GoogleInitiatedReview
Google-initiated access for security, fraud, abuse, or compliance purposes.
CustomerInitiatedAccess
Customer uses their account to perform any access to their own data which their IAM policy authorizes.
GoogleInitiatedSystemOperation
Google systems access customer data to help optimize the structure of the data or quality for future uses by the customer.
ReasonNotExpected
No reason is expected for this key request.
ModifiedCustomerInitiatedAccess
Deprecated: This code is no longer generated by Google Cloud. The GOOGLE_RESPONSE_TO_PRODUCTION_ALERT justification codes available in both Key Access Justifications and Access Transparency logs provide customer-visible signals of emergency access in more precise contexts.
Customer uses their account to perform any access to their own data which their IAM policy authorizes, and one of the following is true:
- A Google administrator has reset the root-access account associated with the user’s organization within the past 7 days.
- A Google-initiated emergency access operation has interacted with a resource in the same project or folder as the currently accessed resource within the past 7 days.
ModifiedGoogleInitiatedSystemOperation
Deprecated: This code is no longer generated by Google Cloud. The GOOGLE_RESPONSE_TO_PRODUCTION_ALERT justification codes available in both Key Access Justifications and Access Transparency logs provide customer-visible signals of emergency access in more precise contexts.
Google systems access customer data to help optimize the structure of the data or quality for future uses by the customer, and one of the following is true:
- A Google administrator has reset the root-access account associated with the user’s organization within the past 7 days.
- A Google-initiated emergency access operation has interacted with a resource in the same project or folder as the currently accessed resource within the past 7 days.
GoogleResponseToProductionAlert
Google-initiated access to maintain system reliability.
CustomerAuthorizedWorkflowServicing
One of the following operations is being executed while simultaneously encountering an internal technical issue which prevented a more precise justification code from being generated:
- Your account has been used to perform any access to your own data which your IAM policy authorizes.
- An automated Google system operates on encrypted customer data which your IAM policy authorizes.
- Customer-initiated Google support access.
- Google-initiated support access to protect system reliability.
UnknownValue(UnknownValue)
If set, the enum was initialized with an unknown value.
Applications can examine the value using AccessReason::value or AccessReason::name.
Implementations§
Trait Implementations§
Source§impl Clone for AccessReason
impl Clone for AccessReason
Source§fn clone(&self) -> AccessReason
fn clone(&self) -> AccessReason
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for AccessReason
impl Debug for AccessReason
Source§impl Default for AccessReason
impl Default for AccessReason
Source§impl<'de> Deserialize<'de> for AccessReason
impl<'de> Deserialize<'de> for AccessReason
Source§fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
fn deserialize<D>(deserializer: D) -> Result<Self, D::Error>where
D: Deserializer<'de>,
Source§impl Display for AccessReason
impl Display for AccessReason
Source§impl From<&str> for AccessReason
impl From<&str> for AccessReason
Source§impl From<i32> for AccessReason
impl From<i32> for AccessReason
Source§impl PartialEq for AccessReason
impl PartialEq for AccessReason
Source§impl Serialize for AccessReason
impl Serialize for AccessReason
impl StructuralPartialEq for AccessReason
Auto Trait Implementations§
impl Freeze for AccessReason
impl RefUnwindSafe for AccessReason
impl Send for AccessReason
impl Sync for AccessReason
impl Unpin for AccessReason
impl UnwindSafe for AccessReason
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> PolicyExt for Twhere
T: ?Sized,
impl<T> PolicyExt for Twhere
T: ?Sized,
Source§impl<T> ToStringFallible for Twhere
T: Display,
impl<T> ToStringFallible for Twhere
T: Display,
Source§fn try_to_string(&self) -> Result<String, TryReserveError>
fn try_to_string(&self) -> Result<String, TryReserveError>
ToString::to_string, but without panic on OOM.