pub struct GoogleCloudPolicysimulatorV1OrgPolicyViolation {
pub custom_constraint: Option<GoogleCloudOrgpolicyV2CustomConstraint>,
pub error: Option<GoogleRpcStatus>,
pub name: Option<String>,
pub resource: Option<GoogleCloudPolicysimulatorV1ResourceContext>,
}
Expand description
OrgPolicyViolation is a resource representing a single resource violating a single OrgPolicy constraint.
This type is not used in any activity, and only used as part of another schema.
Fields§
§custom_constraint: Option<GoogleCloudOrgpolicyV2CustomConstraint>
The custom constraint being violated.
error: Option<GoogleRpcStatus>
Any error encountered during the evaluation.
name: Option<String>
The name of the OrgPolicyViolation
. Example: organizations/my-example-org/locations/global/orgPolicyViolationsPreviews/506a5f7f/orgPolicyViolations/38ce`
resource: Option<GoogleCloudPolicysimulatorV1ResourceContext>
The resource violating the constraint.
Trait Implementations§
source§impl Clone for GoogleCloudPolicysimulatorV1OrgPolicyViolation
impl Clone for GoogleCloudPolicysimulatorV1OrgPolicyViolation
source§fn clone(&self) -> GoogleCloudPolicysimulatorV1OrgPolicyViolation
fn clone(&self) -> GoogleCloudPolicysimulatorV1OrgPolicyViolation
Returns a copy of the value. Read more
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moresource§impl Default for GoogleCloudPolicysimulatorV1OrgPolicyViolation
impl Default for GoogleCloudPolicysimulatorV1OrgPolicyViolation
source§fn default() -> GoogleCloudPolicysimulatorV1OrgPolicyViolation
fn default() -> GoogleCloudPolicysimulatorV1OrgPolicyViolation
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for GoogleCloudPolicysimulatorV1OrgPolicyViolation
impl<'de> Deserialize<'de> for GoogleCloudPolicysimulatorV1OrgPolicyViolation
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Part for GoogleCloudPolicysimulatorV1OrgPolicyViolation
Auto Trait Implementations§
impl RefUnwindSafe for GoogleCloudPolicysimulatorV1OrgPolicyViolation
impl Send for GoogleCloudPolicysimulatorV1OrgPolicyViolation
impl Sync for GoogleCloudPolicysimulatorV1OrgPolicyViolation
impl Unpin for GoogleCloudPolicysimulatorV1OrgPolicyViolation
impl UnwindSafe for GoogleCloudPolicysimulatorV1OrgPolicyViolation
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
Mutably borrows from an owned value. Read more