Class GovernanceMetadataSanitizationResult
Represents the provider-neutral result of governance metadata sanitation and budget validation.
public sealed class GovernanceMetadataSanitizationResult
- Inheritance
-
GovernanceMetadataSanitizationResult
- Inherited Members
Properties
Action
Gets the strongest action produced by classification, sanitation, and budget validation.
public GovernanceMetadataSanitizationAction Action { get; }
Property Value
BudgetValidation
Gets the budget validation result evaluated after classifier redaction and dropping are complete.
public GovernanceMetadataBudgetValidationResult BudgetValidation { get; }
Property Value
CanProceed
Gets a value indicating whether the sanitized metadata may continue to downstream processing.
public bool CanProceed { get; }
Property Value
IsDenied
Gets a value indicating whether sanitation denied the metadata collection.
public bool IsDenied { get; }
Property Value
Reasons
Gets stable machine-readable reasons produced by classifiers or budget validation.
public IReadOnlyList<OperationReason> Reasons { get; }
Property Value
SanitizedMetadata
Gets metadata that may be passed forward when CanProceed is true.
public IReadOnlyDictionary<string, string> SanitizedMetadata { get; }
Property Value
Remarks
This collection is empty when sanitation is denied so callers cannot accidentally persist or emit a denied payload.
Methods
Create(GovernanceMetadataSanitizationAction, IReadOnlyDictionary<string, string>, IReadOnlyList<OperationReason>, GovernanceMetadataBudgetValidationResult)
Creates a governance metadata sanitation result.
public static GovernanceMetadataSanitizationResult Create(GovernanceMetadataSanitizationAction action, IReadOnlyDictionary<string, string> sanitizedMetadata, IReadOnlyList<OperationReason> reasons, GovernanceMetadataBudgetValidationResult budgetValidation)
Parameters
actionGovernanceMetadataSanitizationActionThe strongest sanitation action.
sanitizedMetadataIReadOnlyDictionary<string, string>The safe metadata available for downstream processing.
reasonsIReadOnlyList<OperationReason>The classifier and budget reasons.
budgetValidationGovernanceMetadataBudgetValidationResultThe post-sanitation budget validation result.
Returns
- GovernanceMetadataSanitizationResult
A governance metadata sanitation result.
ThrowIfDenied(string?)
Throws an ArgumentException when sanitation denied the metadata collection.
public void ThrowIfDenied(string? parameterName = null)
Parameters
parameterNamestringThe optional caller parameter name associated with the metadata.