[−][src]Struct google_cloudresourcemanager1::Constraint
A Constraint
describes a way in which a resource's configuration can be
restricted. For example, it controls which cloud services can be activated
across an organization, or whether a Compute Engine instance can have
serial port connections established. Constraints
can be configured by the
organization's policy administrator to fit the needs of the organzation by
setting Policies for Constraints
at different locations in the
organization's resource hierarchy. Policies are inherited down the resource
hierarchy from higher levels, but can also be overridden. For details about
the inheritance rules please read about
Policies.
Constraints
have a default behavior determined by the constraint_default
field, which is the enforcement behavior that is used in the absence of a
Policy
being defined or inherited for the resource in question.
This type is not used in any activity, and only used as part of another schema.
Fields
constraint_default: Option<String>
The evaluation behavior of this constraint in the absence of 'Policy'.
version: Option<i32>
Version of the Constraint
. Default version is 0;
display_name: Option<String>
The human readable name.
Mutable.
description: Option<String>
Detailed description of what this Constraint
controls as well as how and
where it is enforced.
Mutable.
boolean_constraint: Option<BooleanConstraint>
Defines this constraint as being a BooleanConstraint.
list_constraint: Option<ListConstraint>
Defines this constraint as being a ListConstraint.
name: Option<String>
Immutable value, required to globally be unique. For example,
constraints/serviceuser.services
Trait Implementations
impl Clone for Constraint
[src]
fn clone(&self) -> Constraint
[src]
fn clone_from(&mut self, source: &Self)
1.0.0[src]
impl Debug for Constraint
[src]
impl Default for Constraint
[src]
fn default() -> Constraint
[src]
impl<'de> Deserialize<'de> for Constraint
[src]
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
[src]
__D: Deserializer<'de>,
impl Part for Constraint
[src]
impl Serialize for Constraint
[src]
Auto Trait Implementations
impl RefUnwindSafe for Constraint
impl Send for Constraint
impl Sync for Constraint
impl Unpin for Constraint
impl UnwindSafe for Constraint
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> DeserializeOwned for T where
T: for<'de> Deserialize<'de>,
[src]
T: for<'de> Deserialize<'de>,
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> ToOwned for T where
T: Clone,
[src]
T: Clone,
type Owned = T
The resulting type after obtaining ownership.
fn to_owned(&self) -> T
[src]
fn clone_into(&self, target: &mut T)
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T> Typeable for T where
T: Any,
T: Any,