Skip to content

Commit a30e698

Browse files
author
SDKAuto
committed
CodeGen from PR 33210 in Azure/azure-rest-api-specs
Merge 3bff8b0a854d57cfd52b47368f58deeee851027e into c56bcb994cdb222ae05e428096f0804d3c68f78c
1 parent c393dc0 commit a30e698

38 files changed

+655
-543
lines changed

sdk/trustedsigning/azure-mgmt-trustedsigning/CHANGELOG.md

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,30 @@
11
# Release History
22

3+
## 1.0.0b2 (2025-03-25)
4+
5+
### Features Added
6+
7+
- Model `Certificate` added property `enhanced_key_usage`
8+
- Added model `AccountSkuPatch`
9+
- Method `Certificate.__init__` has a new overload `def __init__(self: None, serial_number: Optional[str], enhanced_key_usage: Optional[str], subject_name: Optional[str], thumbprint: Optional[str], created_date: Optional[str], expiry_date: Optional[str], status: Optional[Union[str, _models.CertificateStatus]], revocation: Optional[_models.Revocation])`
10+
- Method `CertificateProfileProperties.__init__` has a new overload `def __init__(self: None, profile_type: Union[str, _models.ProfileType], identity_validation_id: str, include_street_address: Optional[bool], include_city: Optional[bool], include_state: Optional[bool], include_country: Optional[bool], include_postal_code: Optional[bool])`
11+
- Method `CodeSigningAccountPatchProperties.__init__` has a new overload `def __init__(self: None, sku: Optional[_models.AccountSkuPatch])`
12+
- Method `Operation.__init__` has a new overload `def __init__(self: None, display: Optional[_models.OperationDisplay])`
13+
- Method `AccountSkuPatch.__init__` has a new overload `def __init__(self: None, name: Optional[Union[str, _models.SkuName]])`
14+
- Method `AccountSkuPatch.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`
15+
16+
### Breaking Changes
17+
18+
- Model `CertificateProfileProperties` deleted or renamed its instance variable `common_name`
19+
- Model `CertificateProfileProperties` deleted or renamed its instance variable `organization`
20+
- Model `CertificateProfileProperties` deleted or renamed its instance variable `organization_unit`
21+
- Model `CertificateProfileProperties` deleted or renamed its instance variable `street_address`
22+
- Model `CertificateProfileProperties` deleted or renamed its instance variable `city`
23+
- Model `CertificateProfileProperties` deleted or renamed its instance variable `state`
24+
- Model `CertificateProfileProperties` deleted or renamed its instance variable `country`
25+
- Model `CertificateProfileProperties` deleted or renamed its instance variable `postal_code`
26+
- Model `CertificateProfileProperties` deleted or renamed its instance variable `enhanced_key_usage`
27+
328
## 1.0.0b1 (2024-09-27)
429

530
### Other Changes
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"commit": "e6fde2ac19d0202f0e72217a3e0f9edb63dba273",
2+
"commit": "1b8e78dcafac92149b99af0c586d1777c859ddb8",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"typespec_src": "specification/codesigning/CodeSigning.Management",
5-
"@azure-tools/typespec-python": "0.33.0"
5+
"@azure-tools/typespec-python": "0.40.0"
66
}
Lines changed: 50 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,50 @@
1+
{
2+
"CrossLanguagePackageId": "Microsoft.CodeSigning",
3+
"CrossLanguageDefinitionId": {
4+
"azure.mgmt.trustedsigning.models.AccountSku": "Microsoft.CodeSigning.AccountSku",
5+
"azure.mgmt.trustedsigning.models.AccountSkuPatch": "Microsoft.CodeSigning.AccountSkuPatch",
6+
"azure.mgmt.trustedsigning.models.Certificate": "Microsoft.CodeSigning.Certificate",
7+
"azure.mgmt.trustedsigning.models.Resource": "Azure.ResourceManager.CommonTypes.Resource",
8+
"azure.mgmt.trustedsigning.models.ProxyResource": "Azure.ResourceManager.CommonTypes.ProxyResource",
9+
"azure.mgmt.trustedsigning.models.CertificateProfile": "Microsoft.CodeSigning.CertificateProfile",
10+
"azure.mgmt.trustedsigning.models.CertificateProfileProperties": "Microsoft.CodeSigning.CertificateProfileProperties",
11+
"azure.mgmt.trustedsigning.models.CheckNameAvailability": "Microsoft.CodeSigning.CheckNameAvailability",
12+
"azure.mgmt.trustedsigning.models.CheckNameAvailabilityResult": "Microsoft.CodeSigning.CheckNameAvailabilityResult",
13+
"azure.mgmt.trustedsigning.models.TrackedResource": "Azure.ResourceManager.CommonTypes.TrackedResource",
14+
"azure.mgmt.trustedsigning.models.CodeSigningAccount": "Microsoft.CodeSigning.CodeSigningAccount",
15+
"azure.mgmt.trustedsigning.models.CodeSigningAccountPatch": "Microsoft.CodeSigning.CodeSigningAccountPatch",
16+
"azure.mgmt.trustedsigning.models.CodeSigningAccountPatchProperties": "Microsoft.CodeSigning.CodeSigningAccountPatchProperties",
17+
"azure.mgmt.trustedsigning.models.CodeSigningAccountProperties": "Microsoft.CodeSigning.CodeSigningAccountProperties",
18+
"azure.mgmt.trustedsigning.models.ErrorAdditionalInfo": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo",
19+
"azure.mgmt.trustedsigning.models.ErrorDetail": "Azure.ResourceManager.CommonTypes.ErrorDetail",
20+
"azure.mgmt.trustedsigning.models.ErrorResponse": "Azure.ResourceManager.CommonTypes.ErrorResponse",
21+
"azure.mgmt.trustedsigning.models.Operation": "Azure.ResourceManager.CommonTypes.Operation",
22+
"azure.mgmt.trustedsigning.models.OperationDisplay": "Azure.ResourceManager.CommonTypes.OperationDisplay",
23+
"azure.mgmt.trustedsigning.models.Revocation": "Microsoft.CodeSigning.Revocation",
24+
"azure.mgmt.trustedsigning.models.RevokeCertificate": "Microsoft.CodeSigning.RevokeCertificate",
25+
"azure.mgmt.trustedsigning.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData",
26+
"azure.mgmt.trustedsigning.models.Origin": "Azure.ResourceManager.CommonTypes.Origin",
27+
"azure.mgmt.trustedsigning.models.ActionType": "Azure.ResourceManager.CommonTypes.ActionType",
28+
"azure.mgmt.trustedsigning.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType",
29+
"azure.mgmt.trustedsigning.models.SkuName": "Microsoft.CodeSigning.SkuName",
30+
"azure.mgmt.trustedsigning.models.ProvisioningState": "Microsoft.CodeSigning.ProvisioningState",
31+
"azure.mgmt.trustedsigning.models.NameUnavailabilityReason": "Microsoft.CodeSigning.NameUnavailabilityReason",
32+
"azure.mgmt.trustedsigning.models.ProfileType": "Microsoft.CodeSigning.ProfileType",
33+
"azure.mgmt.trustedsigning.models.CertificateProfileStatus": "Microsoft.CodeSigning.CertificateProfileStatus",
34+
"azure.mgmt.trustedsigning.models.CertificateStatus": "Microsoft.CodeSigning.CertificateStatus",
35+
"azure.mgmt.trustedsigning.models.RevocationStatus": "Microsoft.CodeSigning.RevocationStatus",
36+
"azure.mgmt.trustedsigning.TrustedSigningMgmtClient.operations.list": "Azure.ResourceManager.Operations.list",
37+
"azure.mgmt.trustedsigning.TrustedSigningMgmtClient.code_signing_accounts.get": "Microsoft.CodeSigning.CodeSigningAccounts.get",
38+
"azure.mgmt.trustedsigning.TrustedSigningMgmtClient.code_signing_accounts.begin_create": "Microsoft.CodeSigning.CodeSigningAccounts.create",
39+
"azure.mgmt.trustedsigning.TrustedSigningMgmtClient.code_signing_accounts.begin_update": "Microsoft.CodeSigning.CodeSigningAccounts.update",
40+
"azure.mgmt.trustedsigning.TrustedSigningMgmtClient.code_signing_accounts.begin_delete": "Microsoft.CodeSigning.CodeSigningAccounts.delete",
41+
"azure.mgmt.trustedsigning.TrustedSigningMgmtClient.code_signing_accounts.list_by_resource_group": "Microsoft.CodeSigning.CodeSigningAccounts.listByResourceGroup",
42+
"azure.mgmt.trustedsigning.TrustedSigningMgmtClient.code_signing_accounts.list_by_subscription": "Microsoft.CodeSigning.CodeSigningAccounts.listBySubscription",
43+
"azure.mgmt.trustedsigning.TrustedSigningMgmtClient.code_signing_accounts.check_name_availability": "Microsoft.CodeSigning.CodeSigningAccounts.checkNameAvailability",
44+
"azure.mgmt.trustedsigning.TrustedSigningMgmtClient.certificate_profiles.get": "Microsoft.CodeSigning.CertificateProfiles.get",
45+
"azure.mgmt.trustedsigning.TrustedSigningMgmtClient.certificate_profiles.begin_create": "Microsoft.CodeSigning.CertificateProfiles.create",
46+
"azure.mgmt.trustedsigning.TrustedSigningMgmtClient.certificate_profiles.begin_delete": "Microsoft.CodeSigning.CertificateProfiles.delete",
47+
"azure.mgmt.trustedsigning.TrustedSigningMgmtClient.certificate_profiles.list_by_code_signing_account": "Microsoft.CodeSigning.CertificateProfiles.listByCodeSigningAccount",
48+
"azure.mgmt.trustedsigning.TrustedSigningMgmtClient.certificate_profiles.revoke_certificate": "Microsoft.CodeSigning.CertificateProfiles.revokeCertificate"
49+
}
50+
}

sdk/trustedsigning/azure-mgmt-trustedsigning/azure/mgmt/trustedsigning/__init__.py

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,28 @@
55
# Code generated by Microsoft (R) Python Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
8+
# pylint: disable=wrong-import-position
89

9-
from ._client import TrustedSigningMgmtClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._client import TrustedSigningMgmtClient # type: ignore
1016
from ._version import VERSION
1117

1218
__version__ = VERSION
1319

1420
try:
1521
from ._patch import __all__ as _patch_all
16-
from ._patch import * # pylint: disable=unused-wildcard-import
22+
from ._patch import *
1723
except ImportError:
1824
_patch_all = []
1925
from ._patch import patch_sdk as _patch_sdk
2026

2127
__all__ = [
2228
"TrustedSigningMgmtClient",
2329
]
24-
__all__.extend([p for p in _patch_all if p not in __all__])
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2531

2632
_patch_sdk()

sdk/trustedsigning/azure-mgmt-trustedsigning/azure/mgmt/trustedsigning/_client.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,10 @@
2020
from .operations import CertificateProfilesOperations, CodeSigningAccountsOperations, Operations
2121

2222
if TYPE_CHECKING:
23-
# pylint: disable=unused-import,ungrouped-imports
2423
from azure.core.credentials import TokenCredential
2524

2625

27-
class TrustedSigningMgmtClient: # pylint: disable=client-accepts-api-version-keyword
26+
class TrustedSigningMgmtClient:
2827
"""Code Signing resource provider api.
2928
3029
:ivar operations: Operations operations
@@ -42,7 +41,7 @@ class TrustedSigningMgmtClient: # pylint: disable=client-accepts-api-version-ke
4241
:param base_url: Service host. Default value is "https://management.azure.com".
4342
:type base_url: str
4443
:keyword api_version: The API version to use for this operation. Default value is
45-
"2024-02-05-preview". Note that overriding this default value may result in unsupported
44+
"2024-09-30-preview". Note that overriding this default value may result in unsupported
4645
behavior.
4746
:paramtype api_version: str
4847
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no

sdk/trustedsigning/azure-mgmt-trustedsigning/azure/mgmt/trustedsigning/_configuration.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
from ._version import VERSION
1515

1616
if TYPE_CHECKING:
17-
# pylint: disable=unused-import,ungrouped-imports
1817
from azure.core.credentials import TokenCredential
1918

2019

21-
class TrustedSigningMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
20+
class TrustedSigningMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes
2221
"""Configuration for TrustedSigningMgmtClient.
2322
2423
Note that all parameters used to create this instance are saved as instance
@@ -31,7 +30,7 @@ class TrustedSigningMgmtClientConfiguration: # pylint: disable=too-many-instanc
3130
:param base_url: Service host. Default value is "https://management.azure.com".
3231
:type base_url: str
3332
:keyword api_version: The API version to use for this operation. Default value is
34-
"2024-02-05-preview". Note that overriding this default value may result in unsupported
33+
"2024-09-30-preview". Note that overriding this default value may result in unsupported
3534
behavior.
3635
:paramtype api_version: str
3736
"""
@@ -43,7 +42,7 @@ def __init__(
4342
base_url: str = "https://management.azure.com",
4443
**kwargs: Any
4544
) -> None:
46-
api_version: str = kwargs.pop("api_version", "2024-02-05-preview")
45+
api_version: str = kwargs.pop("api_version", "2024-09-30-preview")
4746

4847
if credential is None:
4948
raise ValueError("Parameter 'credential' must not be None.")

0 commit comments

Comments
 (0)