[AutoPR Azure.AI.ContentSafety]-generated-from-SDK Generation - .NET-6652879 - #61589
[AutoPR Azure.AI.ContentSafety]-generated-from-SDK Generation - .NET-6652879#61589azure-sdk-automation[bot] wants to merge 5 commits into
Conversation
…fig.yaml', API Version: 2026-07-01-preview, SDK Release Type: beta, and CommitSHA: '829ccecea7e9c1609881104b9a8d0f8cb65ce644' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6640797 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
|
Azure Pipelines: Successfully started running 1 pipeline(s). 10 pipeline(s) were filtered out due to trigger conditions. There may be pipelines that require an authorized user to comment /azp run to run. |
There was a problem hiding this comment.
Pull request overview
Note
Copilot could not run the full agentic suite for this review because it was automatically requested on a bot-authored pull request. Request a review from Copilot under Reviewers to retry with the full agentic suite. Improved support for bot-authored pull requests is coming soon.
This PR updates the Azure.AI.ContentSafety SDK to the 2026-07-01-preview API version and introduces a new ContentProvenanceClient plus generated models for asynchronous Content Provenance Detection operations.
Changes:
- Adds
ContentProvenanceClient(DI/builder/config binding support) and new provenance-related models/serializers. - Updates default service version and metadata to
2026-07-01-preview. - Extends generated configuration schema and model factory to include provenance types.
Reviewed changes
Copilot reviewed 5 out of 28 changed files in this pull request and generated 7 comments.
Show a summary per file
| File | Description |
|---|---|
| sdk/contentsafety/Azure.AI.ContentSafety/tsp-location.yaml | Updates TypeSpec source location and emitter package path. |
| sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/schema/ConfigurationSchema.json | Adds configuration schema entry for ContentProvenanceClient. |
| sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/ProvenanceOperationKind.cs | Adds string-backed enum for provenance operation kinds. |
| sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/ProvenanceDetectOperation.cs | Adds model for LRO status/result envelope. |
| sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/ProvenanceDetectOperation.Serialization.cs | Adds JSON model/persistable support for LRO envelope. |
| sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/ProvenanceContent.cs | Adds input model describing provenance source content. |
| sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/ProvenanceContent.Serialization.cs | Adds JSON model/persistable support for provenance content. |
| sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/OperationState.cs | Adds string-backed enum for operation states. |
| sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/DetectedProvenanceType.cs | Adds string-backed enum for provenance signal types. |
| sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/DetectedProvenance.cs | Adds model for detected provenance signals. |
| sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/DetectedProvenance.Serialization.cs | Adds JSON model/persistable support for detected provenance signals. |
| sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/DetectProvenanceResult.cs | Adds result model for provenance detection operations. |
| sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/DetectProvenanceResult.Serialization.cs | Adds JSON model/persistable support and LRO result extraction helper. |
| sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/DetectProvenanceOptions.cs | Adds input options model for provenance detection. |
| sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/DetectProvenanceOptions.Serialization.cs | Adds JSON model/persistable support and RequestContent conversion. |
| sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/DetectOutcome.cs | Adds string-backed enum for detection outcomes. |
| sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/Models/AzureAIContentSafetyContext.cs | Registers new models for ModelReaderWriter. |
| sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/ContentSafetyModelFactory.cs | Adds factory methods for new provenance models (mocking support). |
| sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/ContentSafetyClientOptions.cs | Adds preview service version and makes it the default. |
| sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/ContentSafetyClientBuilderExtensions.cs | Adds AddContentProvenanceClient builder registration overloads. |
| sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/ContentProvenanceClientSettings.cs | Adds configuration-binding settings type for provenance client. |
| sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/ContentProvenanceClientHostExtensions.cs | Adds host-builder extensions for DI registration via configuration. |
| sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/ContentProvenanceClient.cs | Adds provenance client and LRO convenience methods. |
| sdk/contentsafety/Azure.AI.ContentSafety/src/Generated/ContentProvenanceClient.RestClient.cs | Adds REST request builders for provenance detect + operation status. |
| sdk/contentsafety/Azure.AI.ContentSafety/metadata.json | Updates metadata API version to 2026-07-01-preview. |
| sdk/contentsafety/Azure.AI.ContentSafety/api/Azure.AI.ContentSafety.netstandard2.0.cs | Updates public API surface for preview version and provenance client/models. |
| sdk/contentsafety/Azure.AI.ContentSafety/api/Azure.AI.ContentSafety.net8.0.cs | Updates public API surface for preview version and provenance client/models. |
| sdk/contentsafety/Azure.AI.ContentSafety/api/Azure.AI.ContentSafety.net10.0.cs | Updates public API surface for preview version and provenance client/models. |
|
Hi Jesse Squire (@jsquire) - could you take a look when you have a moment? This is the Content Safety data-plane SDK for the new 2026-07-01-preview API version, which adds Content Provenance detection. All checks are green (26 passing, 0 failing) and the generated code is unmodified. Release plan 2242. Thanks! |
…fig.yaml', SDK Release Type: beta, and CommitSHA: '926fc28f53c318fe3cf68eb8be1ea38e658c0879' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6652879 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
Covers both outcomes: signed media (C2PA + watermark) asserting ProvenanceDetected with a populated Results collection, and unsigned media asserting NoProvenanceDetected. Provenance had no test coverage. The media are blob SAS URIs, so the recorded variables carry placeholder values and body regex sanitizers replace each URI wholesale; the recordings contain no SAS.
Configurations: 'specification/cognitiveservices/ContentSafety/tspconfig.yaml', SDK Release Type: beta, and CommitSHA: '926fc28f53c318fe3cf68eb8be1ea38e658c0879' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6652879 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. Release plan link: https://azsdk-releaseplan-dashboard-hveph5aqhhcfhtgu.westus-01.azurewebsites.net/?releaseplan=2242 Submitted by: Connor.Wood@microsoft.com