pub struct GoogleCloudAssetV1CustomConstraint {
pub action_type: Option<String>,
pub condition: Option<String>,
pub description: Option<String>,
pub display_name: Option<String>,
pub method_types: Option<Vec<String>>,
pub name: Option<String>,
pub resource_types: Option<Vec<String>>,
}Expand description
The definition of a custom 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>Organization Policy condition/expression. For example: resource.instanceName.matches("(production|test)_(.+_)?[\d]+")' or, resource.management.auto_upgrade == true
description: Option<String>Detailed information about this custom policy constraint.
display_name: Option<String>One line display name for the UI.
method_types: Option<Vec<String>>All the operations being applied for this constraint.
name: Option<String>Name of the constraint. This is unique within the organization. Format of the name should be * organizations/{organization_id}/customConstraints/{custom_constraint_id} Example : “organizations/123/customConstraints/custom.createOnlyE2TypeVms”
resource_types: Option<Vec<String>>The Resource Instance type on which this policy applies to. Format will be of the form : “/” Example: * compute.googleapis.com/Instance.
Trait Implementations§
Source§impl Clone for GoogleCloudAssetV1CustomConstraint
impl Clone for GoogleCloudAssetV1CustomConstraint
Source§fn clone(&self) -> GoogleCloudAssetV1CustomConstraint
fn clone(&self) -> GoogleCloudAssetV1CustomConstraint
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more