Skip to content

Commit 679a1fe

Browse files
azure-sdknnoboarohitsinghal4uCopilot
authored
[AutoPR azure-keyvault-certificates]-generated-from-SDK Generation - Python-6315044 (#46957)
* Configurations: 'specification/keyvault/data-plane/Certificates/tspconfig.yaml', API Version: 2026-03-01-preview, SDK Release Type: beta, and CommitSHA: '44729a46b902922d8f50a383573f9c6641ce8e74' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6315044 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Restore handwritten files, add PlatformManaged tests and changelog * Clean up tests * Plumb PlatformManaged through CertificatePolicy and bump default API version to 2026-03-01-preview - Re-export the generated PlatformManaged model from the public package surface. - Add a platform_managed keyword and property on the handwritten CertificatePolicy wrapper and wire it through _to_certificate_policy_bundle and _from_certificate_policy_bundle so the value round-trips with the service. - Skip the SAN-or-subject precondition in begin_create_certificate (sync and async) when policy.platform_managed is set: a PlatformManaged policy carries its own subject and SAN information in metadata, mirroring the Java and .NET SDKs. - Bump DEFAULT_VERSION to 2026-03-01-preview, where PlatformManaged is available. - Update CHANGELOG and add wrapper unit tests plus a sync recorded E2E test for the new property. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Update test recordings for 2026-03-01-preview API version Recordings re-captured against the new default API version and uploaded under the new asset tag python/keyvault/azure-keyvault-certificates_e9794f1e9b. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Set CHANGELOG release date to 2026-06-04 Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --------- Co-authored-by: Nicholas Noboa <nnoboa@microsoft.com> Co-authored-by: nnoboa <90611593+nnoboa@users.noreply.github.com> Co-authored-by: ROHIT SINGHAL <rohitsinghal4u@gmail.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 1cb7bd8 commit 679a1fe

36 files changed

Lines changed: 544 additions & 3484 deletions

sdk/keyvault/azure-keyvault-certificates/CHANGELOG.md

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,11 @@
11
# Release History
22

3-
## 4.11.2 (Unreleased)
3+
## 4.12.0b1 (2026-06-04)
44

55
### Features Added
66

7-
### Breaking Changes
8-
9-
### Bugs Fixed
10-
11-
### Other Changes
7+
- Added an experimental `PlatformManaged` property on `CertificatePolicy` for Azure Key Vault internal usage. Any calls using this property will fail and it is not recommended to be used at this point.
8+
- The default service version is now `2026-03-01-preview`
129

1310
## 4.11.1 (2026-04-29)
1411

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
2-
"apiVersion": "2025-07-01",
2+
"apiVersion": "2026-03-01-preview",
33
"apiVersions": {
4-
"KeyVault": "2025-07-01"
4+
"KeyVault": "2026-03-01-preview"
55
},
6-
"commit": "80cf521033f9499c3c86305d11c7de6451e796e5",
6+
"commit": "44729a46b902922d8f50a383573f9c6641ce8e74",
77
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
88
"typespec_src": "specification/keyvault/data-plane/Certificates",
9-
"emitterVersion": "0.61.2"
9+
"emitterVersion": "0.62.1"
1010
}

sdk/keyvault/azure-keyvault-certificates/apiview-properties.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@
3131
"azure.keyvault.certificates._generated.models.KeyVaultErrorError": "KeyVaultError.error.anonymous",
3232
"azure.keyvault.certificates._generated.models.LifetimeAction": "KeyVault.LifetimeAction",
3333
"azure.keyvault.certificates._generated.models.OrganizationDetails": "KeyVault.OrganizationDetails",
34+
"azure.keyvault.certificates._generated.models.PlatformManaged": "KeyVault.PlatformManaged",
3435
"azure.keyvault.certificates._generated.models.SecretProperties": "KeyVault.SecretProperties",
3536
"azure.keyvault.certificates._generated.models.SubjectAlternativeNames": "KeyVault.SubjectAlternativeNames",
3637
"azure.keyvault.certificates._generated.models.Trigger": "KeyVault.Trigger",
@@ -94,5 +95,6 @@
9495
"azure.keyvault.certificates._generated.aio.KeyVaultClient.purge_deleted_certificate": "KeyVault.purgeDeletedCertificate",
9596
"azure.keyvault.certificates._generated.KeyVaultClient.recover_deleted_certificate": "KeyVault.recoverDeletedCertificate",
9697
"azure.keyvault.certificates._generated.aio.KeyVaultClient.recover_deleted_certificate": "KeyVault.recoverDeletedCertificate"
97-
}
98+
},
99+
"CrossLanguageVersion": "62e5a7e522bd"
98100
}

sdk/keyvault/azure-keyvault-certificates/assets.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
"AssetsRepo": "Azure/azure-sdk-assets",
33
"AssetsRepoPrefixPath": "python",
44
"TagPrefix": "python/keyvault/azure-keyvault-certificates",
5-
"Tag": "python/keyvault/azure-keyvault-certificates_a5c5c34814"
5+
"Tag": "python/keyvault/azure-keyvault-certificates_e9794f1e9b"
66
}

sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
KeyVaultCertificate,
2626
KeyVaultCertificateIdentifier
2727
)
28+
from ._generated.models import PlatformManaged
2829
from ._shared.client_base import ApiVersion
2930

3031
__all__ = [
@@ -47,6 +48,7 @@
4748
"KeyUsageType",
4849
"LifetimeAction",
4950
"CertificateContentType",
51+
"PlatformManaged",
5052
"WellKnownIssuerNames",
5153
"CertificateIssuer",
5254
"IssuerProperties"

sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_client.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,7 @@ def begin_create_certificate(
107107
or policy.san_ip_addresses
108108
or policy.san_uris
109109
or policy.subject
110+
or policy.platform_managed
110111
):
111112
raise ValueError(NO_SAN_OR_SUBJECT)
112113

sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/_client.py

Lines changed: 10 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@
77
# --------------------------------------------------------------------------
88

99
from copy import deepcopy
10+
import sys
1011
from typing import Any, TYPE_CHECKING
11-
from typing_extensions import Self
1212

1313
from azure.core import PipelineClient
1414
from azure.core.pipeline import policies
@@ -18,6 +18,11 @@
1818
from ._operations import _KeyVaultClientOperationsMixin
1919
from ._utils.serialization import Deserializer, Serializer
2020

21+
if sys.version_info >= (3, 11):
22+
from typing import Self
23+
else:
24+
from typing_extensions import Self # type: ignore
25+
2126
if TYPE_CHECKING:
2227
from azure.core.credentials import TokenCredential
2328

@@ -30,9 +35,10 @@ class KeyVaultClient(_KeyVaultClientOperationsMixin):
3035
:type vault_base_url: str
3136
:param credential: Credential used to authenticate requests to the service. Required.
3237
:type credential: ~azure.core.credentials.TokenCredential
33-
:keyword api_version: The API version to use for this operation. Known values are "2025-07-01".
34-
Default value is "2025-07-01". Note that overriding this default value may result in
35-
unsupported behavior.
38+
:keyword api_version: The API version to use for this operation. Known values are
39+
"2026-03-01-preview" and None. Default value is None. If not set, the operation's default API
40+
version will be used. Note that overriding this default value may result in unsupported
41+
behavior.
3642
:paramtype api_version: str
3743
"""
3844

sdk/keyvault/azure-keyvault-certificates/azure/keyvault/certificates/_generated/_configuration.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,15 @@ class KeyVaultClientConfiguration: # pylint: disable=too-many-instance-attribut
2626
:type vault_base_url: str
2727
:param credential: Credential used to authenticate requests to the service. Required.
2828
:type credential: ~azure.core.credentials.TokenCredential
29-
:keyword api_version: The API version to use for this operation. Known values are "2025-07-01".
30-
Default value is "2025-07-01". Note that overriding this default value may result in
31-
unsupported behavior.
29+
:keyword api_version: The API version to use for this operation. Known values are
30+
"2026-03-01-preview" and None. Default value is None. If not set, the operation's default API
31+
version will be used. Note that overriding this default value may result in unsupported
32+
behavior.
3233
:paramtype api_version: str
3334
"""
3435

3536
def __init__(self, vault_base_url: str, credential: "TokenCredential", **kwargs: Any) -> None:
36-
api_version: str = kwargs.pop("api_version", "2025-07-01")
37+
api_version: str = kwargs.pop("api_version", "2026-03-01-preview")
3738

3839
if vault_base_url is None:
3940
raise ValueError("Parameter 'vault_base_url' must not be None.")

0 commit comments

Comments
 (0)