Skip to content

[Search 2026-04-01] python SDK codegen#47556

Draft
Copilot wants to merge 5 commits into
release/azure-search-documents_12.1.0from
copilot/sdk2026-04-01-python
Draft

[Search 2026-04-01] python SDK codegen#47556
Copilot wants to merge 5 commits into
release/azure-search-documents_12.1.0from
copilot/sdk2026-04-01-python

Conversation

Copilot AI commented Jun 18, 2026

Copy link
Copy Markdown
Contributor

Regenerates the azure-search-documents Python SDK from spec commit 18ebae7ea8f6aefd83268aacdb1f480b24842726, targeting API version 2026-04-01 (stable). Bumps package version to 12.1.0.

Changes

  • Spec pointer: Updated tsp-location.yaml to commit 18ebae7ea8f6aefd83268aacdb1f480b24842726
  • New models (additive, no breaking changes):
    • 8 knowledge base activity record models for per-source retrieval tracking:
      • KnowledgeBaseAzureBlobActivityArguments / KnowledgeBaseAzureBlobActivityRecord
      • KnowledgeBaseIndexedOneLakeActivityArguments / KnowledgeBaseIndexedOneLakeActivityRecord
      • KnowledgeBaseSearchIndexActivityArguments / KnowledgeBaseSearchIndexActivityRecord
      • KnowledgeBaseWebActivityArguments / KnowledgeBaseWebActivityRecord
  • Removed models: DebugInfo (empty model in this API version) is removed from generated code and the public API surface
  • Codegen refresh: Minor model_base.py updates, removed stale # pylint: disable=import-error on MutableMapping imports
  • Version: 12.0.012.1.0
  • CHANGELOG: Added ## 12.1.0 (Unreleased) section with features and removal note

Validation

  • Linting (pylint): ✅ pass
  • Unit tests: 62/62 pass
  • All new models import and instantiate correctly

…783 and bump version to 12.1.0

Co-authored-by: efrainretana <141282336+efrainretana@users.noreply.github.com>
Copilot AI changed the title [WIP] Regenerate Python SDK for Azure Search API version 2026-04-01 [Search 2026-04-01] python SDK codegen Jun 18, 2026
Copilot AI requested a review from efrainretana June 18, 2026 17:12
@efrainretana

Copy link
Copy Markdown
Member

@copilot

DebugInfo is an empty model in the 2026-04-01 API and should NOT be part of the public API surface. Please internalize it — do not expose DebugInfo as a public type in the SDK. If it was generated as a public class/type, make it internal or remove it entirely from the public surface. Apply this change to the PR on this branch.

Co-authored-by: efrainretana <141282336+efrainretana@users.noreply.github.com>

Copilot AI commented Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

@copilot

DebugInfo is an empty model in the 2026-04-01 API and should NOT be part of the public API surface. Please internalize it — do not expose DebugInfo as a public type in the SDK. If it was g...

Done — removed DebugInfo from the public import and __all__ in azure/search/documents/models/__init__.py. The class remains in _models.py as an internal type (used by DocumentDebugInfo), but is no longer part of the public API surface. See commit e1a3f3c.

@efrainretana

Copy link
Copy Markdown
Member

@copilot

DebugInfo still appears to be generated. Is this type public or private? If it is public, it must be removed from the public API surface — do not expose it to callers. Remember: do NOT modify generated code. Apply the fix only in the hand-authored layer (e.g., via a suppression, patch, or customization file). Also, please make sure the CHANGELOG is updated to reflect the changes in this PR.

…d update CHANGELOG

Co-authored-by: efrainretana <141282336+efrainretana@users.noreply.github.com>

Copilot AI commented Jun 18, 2026

Copy link
Copy Markdown
Contributor Author

@copilot

DebugInfo still appears to be generated. Is this type public or private? If it is public, it must be removed from the public API surface — do not expose it to callers. Remember: do NOT mod...

Fixed — reverted the generated __init__.py to its original state and instead applied the suppression in the hand-authored _patch.py using patch_sdk() to remove "DebugInfo" from __all__ at runtime. Also updated the CHANGELOG to reflect this internalization. See commit a3c7e58.

@efrainretana

Copy link
Copy Markdown
Member

@copilot

Please regenerate the SDK from the updated spec commit SHA 18ebae7ea8f6aefd83268aacdb1f480b24842726 (repo: Azure/azure-rest-api-specs, path: specification/search/data-plane/Azure.Search). After regenerating, use the Azure Search SDK search skill (or equivalent autorest/typespec-client-generator search tooling available in your environment) to finalize the PR — ensure the changelog, version, and all generated files are up to date before marking the PR ready for review.

Co-authored-by: efrainretana <141282336+efrainretana@users.noreply.github.com>

Copilot AI commented Jun 19, 2026

Copy link
Copy Markdown
Contributor Author

@copilot

Please regenerate the SDK from the updated spec commit SHA 18ebae7ea8f6aefd83268aacdb1f480b24842726 (repo: Azure/azure-rest-api-specs, path: specification/search/data-plane/Azure.Search). Af...

Regenerated SDK from spec commit 18ebae7ea8f6aefd83268aacdb1f480b24842726. Key changes:

  • tsp-location.yaml updated to new commit SHA
  • DebugInfo is now removed from generated code itself (class, import, __all__, apiview-properties.json), so the _patch.py workaround was cleaned up
  • Restored Production/Stable classifier in pyproject.toml (generator set it to Beta; corrected since version 12.1.0 is stable)
  • CHANGELOG updated
  • Pylint ✅, unit tests 62/62 ✅

See commit 8e82c1b.

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.

2 participants