Class GovernanceMetadataClassificationResult
Represents the provider-neutral classification result for one governance metadata entry.
public sealed class GovernanceMetadataClassificationResult
- Inheritance
-
GovernanceMetadataClassificationResult
- Inherited Members
Fields
DefaultRedactedValue
Gets the default replacement value used by Redact(string, string, string).
public const string DefaultRedactedValue = "[REDACTED]"
Field Value
Properties
Action
Gets the action requested by the classifier.
public GovernanceMetadataSanitizationAction Action { get; }
Property Value
Reason
Gets the stable machine-readable reason associated with a non-allow action.
public OperationReason? Reason { get; }
Property Value
ReplacementValue
public string? ReplacementValue { get; }
Property Value
Methods
Allow()
Creates an allow result.
public static GovernanceMetadataClassificationResult Allow()
Returns
- GovernanceMetadataClassificationResult
An allow classification result.
Deny(string, string)
Creates a deny result that prevents the metadata collection from continuing.
public static GovernanceMetadataClassificationResult Deny(string reasonCode, string reasonMessage)
Parameters
reasonCodestringThe stable machine-readable denial code.
reasonMessagestringThe curated denial message.
Returns
- GovernanceMetadataClassificationResult
A denial classification result.
Drop(string, string)
Creates a drop result that removes the metadata entry.
public static GovernanceMetadataClassificationResult Drop(string reasonCode, string reasonMessage)
Parameters
reasonCodestringThe stable machine-readable drop code.
reasonMessagestringThe curated drop message.
Returns
- GovernanceMetadataClassificationResult
A drop classification result.
Redact(string, string, string)
Creates a redaction result with a safe replacement value.
public static GovernanceMetadataClassificationResult Redact(string reasonCode, string reasonMessage, string replacementValue = "[REDACTED]")
Parameters
reasonCodestringThe stable machine-readable redaction code.
reasonMessagestringThe curated redaction message.
replacementValuestringThe safe value that replaces the classified value.
Returns
- GovernanceMetadataClassificationResult
A redaction classification result.
Warn(string, string)
Creates a warning result that permits the original value to continue.
public static GovernanceMetadataClassificationResult Warn(string reasonCode, string reasonMessage)
Parameters
reasonCodestringThe stable machine-readable warning code.
reasonMessagestringThe curated warning message.
Returns
- GovernanceMetadataClassificationResult
A warning classification result.