pub struct GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues {
pub allowed_values: Option<Vec<String>>,
pub denied_values: Option<Vec<String>>,
}Expand description
A message that holds specific allowed and denied values. This message can define specific values and subtrees of the Resource Manager resource hierarchy (Organizations, Folders, Projects) that are allowed or denied. This is achieved by using the under: and optional is: prefixes. The under: prefix is used to denote resource subtree values. The is: prefix is used to denote specific values, and is required only if the value contains a “:”. Values prefixed with “is:” are treated the same as values with no prefix. Ancestry subtrees must be in one of the following formats: - projects/ (for example, projects/tokyo-rain-123) - folders/ (for example, folders/1234) - organizations/ (for example, organizations/1234) The supports_under field of the associated Constraint defines whether ancestry prefixes can be used.
This type is not used in any activity, and only used as part of another schema.
Fields§
§allowed_values: Option<Vec<String>>List of values allowed at this resource.
denied_values: Option<Vec<String>>List of values denied at this resource.
Trait Implementations§
Source§impl Clone for GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
impl Clone for GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
Source§fn clone(&self) -> GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
fn clone(&self) -> GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Default for GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
impl Default for GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
Source§fn default() -> GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
fn default() -> GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
Source§impl<'de> Deserialize<'de> for GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
impl<'de> Deserialize<'de> for GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
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>,
impl Part for GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
Auto Trait Implementations§
impl Freeze for GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
impl RefUnwindSafe for GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
impl Send for GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
impl Sync for GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
impl Unpin for GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
impl UnwindSafe for GoogleCloudOrgpolicyV2PolicySpecPolicyRuleStringValues
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> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more