ContentPolicy(mapping=None, *, ignore_unknown_fields=False, **kwargs)A policy to apply to content based on its inspection findings.
Attributes |
|
|---|---|
| Name | Description |
name |
str
Output only. Resource name of the policy. |
create_time |
google.protobuf.timestamp_pb2.Timestamp
Output only. The creation timestamp of a contentPolicy; output-only field. |
update_time |
google.protobuf.timestamp_pb2.Timestamp
Output only. The last update timestamp of a contentPolicy; output-only field. |
display_name |
str
Optional. Display name (max 63 chars) |
inspect_config |
google.cloud.dlp_v2.types.InspectConfig
Optional. InspectConfig to use to produce findings. |
rules |
MutableSequence[google.cloud.dlp_v2.types.ContentPolicy.PolicyRule]
Required. Policies to apply, based on the findings returned by inspection. The first rule to match applies. |
unsupported_file_type |
google.cloud.dlp_v2.types.ContentPolicy.PolicyAction
Optional. Action to take if the content is an unsupported file type. |
input_too_large |
google.cloud.dlp_v2.types.ContentPolicy.PolicyAction
Optional. Action to take if the content is a supported file type but is too large to be scanned. |
failed_to_scan_supported_file_type |
google.cloud.dlp_v2.types.ContentPolicy.PolicyAction
Optional. Action to take if the content is a supported file type and size but fails to be scanned, for example because the file is encrypted or corrupted. |
default_action |
google.cloud.dlp_v2.types.ContentPolicy.PolicyAction
Action to take if the content is scanned and no rules match. Defaults to returning an ALLOW verdict if not set. |
logging_configs |
MutableSequence[google.cloud.dlp_v2.types.ContentPolicy.LoggingConfig]
Optional. Log the actions taken by the content policy to external systems. |
errors |
MutableSequence[google.cloud.dlp_v2.types.Error]
Output only. A stream of errors encountered when the policy was applied. Output only field. Will return the last 100 errors. Whenever the policy is modified this list will be cleared. |
Classes
LoggingConfig
LoggingConfig(mapping=None, *, ignore_unknown_fields=False, **kwargs)A single logging configuration.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
PolicyAction
PolicyAction(mapping=None, *, ignore_unknown_fields=False, **kwargs)A possible action to take when applying a content policy.
.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields
PolicyRule
PolicyRule(mapping=None, *, ignore_unknown_fields=False, **kwargs)A single policy rule. The first rule to match from the list above controls the result.