Skip to content

Regenerate Sql and AzureBlob with the corrected Purview parameter name - #227

Merged
daviburg merged 1 commit into
mainfrom
fix/regen-sql-azureblob-purview-summary
Jul 31, 2026
Merged

Regenerate Sql and AzureBlob with the corrected Purview parameter name#227
daviburg merged 1 commit into
mainfrom
fix/regen-sql-azureblob-purview-summary

Conversation

@daviburg

@daviburg daviburg commented Jul 31, 2026

Copy link
Copy Markdown
Member

Description

Regenerates Sql and AzureBlob from AzureUX-BPM PR 16639935, which corrects the Purview parameter identifier on the public API surface.

The shared Purview query parameter declares "name": "purviewAccountName" correctly but carries "x-ms-summary": "Purview Acccount Name" ΓÇö triple c. The generator derives the C# parameter identifier from x-ms-summary rather than from name, so the typo became part of the shipped API while the wire query key was always correct. The generator already had this correction but gated it behind documentdb; the misspelling lives in a $ref-shared global parameter, so every other importer kept emitting it.

This is an identifier-only change. No request behaviour changes. Callers passing the parameter positionally are unaffected; callers using a named argument must rename it.

Changes

Client Purview occurrences corrected Changed lines
SqlExtensions.cs 12 24
AzureBlobExtensions.cs 20 40

All 64 changed lines are the Purview correction ΓÇö zero unrelated drift. CHANGELOG.md records the rename under Breaking Changes.

Rebased onto main after #226 merged. An earlier revision of this PR carried an additional 169 lines in AzureBlobExtensions.cs; that was #226's regeneration drift, which is now on main, so the diff here has collapsed to the fix itself. Verified that no generator commit landed between #226's generator base (729bc0651c) and this PR's (e7c75d413f), so nothing else could be folded in.

Both clients are regenerated together deliberately: correcting only Sql would leave AzureBlob inconsistent for the same shared parameter.

Testing

  • Unit tests added/updated

  • All existing tests pass (dotnet test)

  • Manual testing (describe below if applicable)

  • dotnet build: 0 errors, 0 warnings.

  • 935 tests pass, 0 failures.

  • Generated from the BPM branch at commit 900f4c28e0 with --directClient --connectors=sql,azureblob,documentdb against the pinned 1596-entry ARM cache. documentdb was generated alongside to confirm it is unaffected ΓÇö it was already covered by the old gate and regenerates byte-identical.

  • Zero residual Acccount occurrences across all generated clients, not just the two changed here.

No unit tests added: this PR contains only generated output. The generator behaviour is covered by two new tests in the paired BPM PR, one of which was explicitly verified non-vacuous by restoring the connector gate and watching it fail.

Checklist

  • Code follows the project's coding conventions
  • No modifications to files under src/**/Generated/ (see CONTRIBUTING.md)
  • Documentation updated (if behavior changed)
  • CHANGELOG.md updated (if user-facing change)
  • release_notes.md updated (if shipping a new version, clear previous version notes)
  • Version updated in eng/build/Version.props (if shipping a new version)

The Generated/ checkbox is intentionally left unchecked: this is a generator-driven regeneration, the sanctioned way those files change. No file was hand-edited.

AzureUX-BPM PR 16639935 merged to master as 1599eedd77, so this is unblocked.

Authored with Dobby agent.

Copilot AI review requested due to automatic review settings July 31, 2026 03:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Regenerates the SQL Server and Azure Blob connector clients to correct the public C# parameter identifier for the Purview query parameter (fixing the historical purviewAcccountName typo to purviewAccountName) while preserving the wire query key (purviewAccountName).

Changes:

  • Regenerated SqlExtensions.cs to rename the affected optional parameter and its XML doc entries.
  • Regenerated AzureBlobExtensions.cs to apply the same parameter rename across affected operations (plus additional regeneration drift as noted in the PR description).
  • Documented the breaking identifier rename in CHANGELOG.md.

Reviewed changes

Copilot reviewed 1 out of 3 changed files in this pull request and generated no comments.

File Description
src/Azure.Connectors.Sdk/Generated/SqlExtensions.cs Regenerated output correcting purviewAcccountNamepurviewAccountName in method signatures, docs, and query-param construction.
src/Azure.Connectors.Sdk/Generated/AzureBlobExtensions.cs Regenerated output correcting purviewAcccountNamepurviewAccountName across Azure Blob operations (with additional generator drift).
CHANGELOG.md Adds a Breaking Changes entry describing the parameter identifier correction and impact on named-argument callers.

@daviburg daviburg self-assigned this Jul 31, 2026
The shared Purview query parameter carries a triple-c typo in its x-ms-summary
(`Purview Acccount Name`) while its `name` field is spelled correctly. The
generator derives the C# identifier from the summary, so `purviewAcccountName`
reached the public API surface; the wire query key was always correct.

AzureUX-BPM PR 16639935 hoists the existing correction out of its documentdb-only
gate so it applies to every connector. This regenerates the two affected clients:
12 occurrences in SqlExtensions, 20 in AzureBlobExtensions.

Identifier-only change - no request behaviour changes.

Rebased onto main after #226 merged. Every one of the 64 changed lines is the
Purview correction; the drift AzureBlobExtensions previously carried here is now
on main. Zero residual `Acccount` occurrences across all generated clients.

Build: 0 errors, 0 warnings. Tests: 935 passed, 0 failed.

Co-authored-by: Dobby <dobby@microsoft.com>
Copilot AI review requested due to automatic review settings July 31, 2026 17:07
@daviburg
daviburg force-pushed the fix/regen-sql-azureblob-purview-summary branch from 1f614ea to ec10d9e Compare July 31, 2026 17:07

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 1 out of 3 changed files in this pull request and generated no new comments.

@daviburg
daviburg marked this pull request as ready for review July 31, 2026 17:09
@daviburg
daviburg requested a review from a team as a code owner July 31, 2026 17:09
@daviburg
daviburg enabled auto-merge (squash) July 31, 2026 17:09
@daviburg
daviburg merged commit 6f75cd4 into main Jul 31, 2026
14 checks passed
@daviburg
daviburg deleted the fix/regen-sql-azureblob-purview-summary branch July 31, 2026 19:39
daviburg added a commit that referenced this pull request Jul 31, 2026
…gned

Version affixes are stripped from identifiers but survived in the documentation
derived from the swagger summary and description, so `SqlExtensions` emitted
`public class GetTablesResponse` documented as `Response for Get tables (V2)`.

AzureUX-BPM PR 16648499 aligns the prose with the identifier actually emitted.
These three clients are the demonstrating set for that fix, chosen to exercise
all three behaviours rather than to be exhaustive:

- Sql      28 -> 2. The motivating example.
- Mq       17 -> 0. Uses lowercase `(v2)`, matched case-insensitively.
- AzureAD   5 -> 1. Four affixes dropped where the identifier was simplified; the
  one that remains documents `GetMemberGroupsResponseV2`, which kept its affix,
  so its summary must keep it too or it becomes indistinguishable from its sibling.

Documentation-comment only: all 94 changed lines are doc comments, with no
identifier, signature or wire change.

Sql was held back while the Purview identifier correction was in flight as #227.
That merged, so Sql now regenerates clean and is included.

The remaining affected clients settle in the planned full sweep.

Build: 0 errors, 0 warnings. Tests: 935 passed, 0 failed.

Co-authored-by: Dobby <dobby@microsoft.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants