pub struct GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition {
pub action_type: Option<String>,
pub condition: Option<String>,
pub method_types: Option<Vec<String>>,
pub parameters: Option<HashMap<String, GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter>>,
pub resource_types: Option<Vec<String>>,
}Expand description
Custom constraint definition. Defines this as a managed constraint.
This type is not used in any activity, and only used as part of another schema.
Fields§
§action_type: Option<String>Allow or deny type.
condition: Option<String>Org policy condition/expression. For example: resource.instanceName.matches("(production|test)_(.+_)?[\d]+") or, resource.management.auto_upgrade == true The max length of the condition is 1000 characters.
method_types: Option<Vec<String>>All the operations being applied for this constraint.
parameters: Option<HashMap<String, GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinitionParameter>>Stores the structure of Parameters used by the constraint condition. The key of map represents the name of the parameter.
resource_types: Option<Vec<String>>The resource instance type on which this policy applies. Format will be of the form : / Example: * compute.googleapis.com/Instance.
Trait Implementations§
Source§impl Clone for GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
impl Clone for GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
Source§fn clone(&self) -> GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
fn clone(&self) -> GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
Returns a duplicate 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 GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
impl Default for GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
Source§fn default() -> GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
fn default() -> GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
impl<'de> Deserialize<'de> for GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
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 GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
Auto Trait Implementations§
impl Freeze for GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
impl RefUnwindSafe for GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
impl Send for GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
impl Sync for GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
impl Unpin for GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
impl UnwindSafe for GoogleCloudOrgpolicyV2ConstraintCustomConstraintDefinition
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