Skip to content

[AutoPR azure-keyvault-certificates]-generated-from-SDK Generation - Python-6045716#45842

Open
azure-sdk wants to merge 8 commits intomainfrom
sdkauto/azure-keyvault-certificates-6045716
Open

[AutoPR azure-keyvault-certificates]-generated-from-SDK Generation - Python-6045716#45842
azure-sdk wants to merge 8 commits intomainfrom
sdkauto/azure-keyvault-certificates-6045716

Conversation

@azure-sdk
Copy link
Collaborator

Configurations: 'specification/keyvault/data-plane/Certificates/tspconfig.yaml', API Version: 2025-07-01, SDK Release Type: stable, and CommitSHA: '06d1c57f16f9da0b2672c34e2066aa0a35b6e62c' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6045716 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.

…nfig.yaml', API Version: 2025-07-01, SDK Release Type: stable, and CommitSHA: '06d1c57f16f9da0b2672c34e2066aa0a35b6e62c' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6045716 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release.
singhalrohit4u and others added 2 commits March 23, 2026 09:42
…ce_identifiers fields

- 19 unit tests for model construction, serialization, deserialization, and round-trip
- 3 recorded integration tests against live Key Vault (IP addresses, URIs, all fields)
- Update assets.json with new recording tag
@rohitsinghal4u rohitsinghal4u marked this pull request as ready for review March 23, 2026 16:46
@rohitsinghal4u rohitsinghal4u requested a review from a team as a code owner March 23, 2026 16:46
Copilot AI review requested due to automatic review settings March 23, 2026 16:46
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

This PR appears to regenerate azure-keyvault-certificates from the Key Vault Certificates TypeSpec (API version 2025-07-01) and updates the package’s generated client/models plus adds SAN coverage tests.

Changes:

  • Regenerated _generated client/models for the new API version, including new SAN fields (ip_addresses, uniform_resource_identifiers).
  • Added new unit + recorded integration tests validating SAN model and service round-tripping.
  • Updated packaging/metadata files (TypeSpec source pointers, assets tag, packaging config, version bump + changelog entry).

Reviewed changes

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

Show a summary per file
File Description
sdk/keyvault/azure-keyvault-certificates/pyproject.toml PEP 621 metadata + dynamic version/readme + packaging settings (currently inconsistent with code layout).
sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/init.py Reduced to namespace stub, removing public exports (breaking).
sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/** Regenerated client/models/utils for API version 2025-07-01 (incl. SAN updates).
sdk/keyvault/azure-keyvault-certificates/tests/test_san_models.py New unit tests for SAN model serialization/deserialization.
sdk/keyvault/azure-keyvault-certificates/tests/test_san_live.py New recorded integration tests validating SAN fields round-trip.
sdk/keyvault/azure-keyvault-certificates/CHANGELOG.md Version bump to 4.11.0 with placeholder text rather than actual change notes.
sdk/keyvault/azure-keyvault-certificates/setup.py Added setuptools packaging script (potentially conflicting with existing pyproject settings).
sdk/keyvault/azure-keyvault-certificates/tsp-location.yaml Updated TypeSpec source directory/commit pointers.
sdk/keyvault/azure-keyvault-certificates/MANIFEST.in Adjusted py.typed include path and init inclusion.

Comment on lines +47 to +49
[tool.setuptools.dynamic.version]
attr = "azure.keyvault.certificates._version.VERSION"

Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

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

[tool.setuptools.dynamic.version] points to azure.keyvault.certificates._version.VERSION, but this module/file is no longer present in the package after this change set. This will break packaging/build at version resolution time. Update the attr to the actual version module (e.g., _generated._version) or restore the expected _version.py in azure.keyvault.certificates so the dynamic version path remains valid.

Copilot uses AI. Check for mistakes.
Comment on lines 65 to +68
[tool.setuptools.package-data]
pytyped = ["py.typed"]
pytyped = [
"py.typed",
]
Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

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

The pytyped = ["py.typed"] package-data configuration assumes a py.typed marker in the discovered packages. In this PR the marker file moved under azure/keyvault/certificates/_generated/py.typed, so type information may no longer be shipped for the public package unless package-data is updated accordingly (or the marker is restored at azure/keyvault/certificates/py.typed).

Copilot uses AI. Check for mistakes.

from ._version import VERSION
__version__ = VERSION
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
Copy link

Copilot AI Mar 23, 2026

Choose a reason for hiding this comment

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

azure.keyvault.certificates is reduced to a namespace-package stub and no longer exposes the public surface area (e.g., CertificateClient, models, enums, __version__). For a stable azure-keyvault-certificates release this is a breaking change for all existing imports. Restore the public exports (and underlying implementations) or bump major version and update docs/migration accordingly.

Suggested change
__path__ = __import__("pkgutil").extend_path(__path__, __name__) # type: ignore
from ._client import CertificateClient
from ._models import * # type: ignore[assignment, misc] # pylint: disable=wildcard-import
from ._enums import * # type: ignore[assignment, misc] # pylint: disable=wildcard-import
from ._version import VERSION as __version__
# Export the public surface area of this package.
# We start with the main client and version, then include all non-private
# names imported from models and enums.
__all__ = ["CertificateClient", "__version__"]
for _name, _value in list(globals().items()):
if _name.startswith("_"):
continue
if _name in __all__:
continue
# Only export names that are not modules; models and enums are expected
# to be classes, functions, or simple values.
import types as _types
if isinstance(_value, _types.ModuleType):
continue
__all__.append(_name)
del _name
del _value
del _types

Copilot uses AI. Check for mistakes.
rohitsinghal4u and others added 4 commits March 23, 2026 11:46
…nored_headers in conftest.py

- Restore 20 handwritten files deleted by the TSP emitter (known emitter regression):
  _client.py, _enums.py, _models.py, _polling.py, _sdk_moniker.py, _version.py,
  py.typed, aio/__init__.py, aio/_client.py, aio/_polling_async.py,
  _shared/ directory (8 files), sdk_packaging.toml
- Restore __init__.py, azure/__init__.py, azure/keyvault/__init__.py
  (overwritten by emitter with namespace-package stub)
- Restore MANIFEST.in (py.typed path was incorrectly changed to _generated/)
- Add Accept to ignored_headers in conftest.py to handle Accept header
  changes in recordings after generation update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

Status: Untriaged

Development

Successfully merging this pull request may close these issues.

4 participants