Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions sdk/trustedsigning/azure-mgmt-trustedsigning/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,30 @@
# Release History

## 1.0.0b2 (2025-04-08)

### Features Added

- Model `Certificate` added property `enhanced_key_usage`
- Added model `AccountSkuPatch`
- 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])`
- 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])`
- Method `CodeSigningAccountPatchProperties.__init__` has a new overload `def __init__(self: None, sku: Optional[_models.AccountSkuPatch])`
- Method `Operation.__init__` has a new overload `def __init__(self: None, display: Optional[_models.OperationDisplay])`
- Method `AccountSkuPatch.__init__` has a new overload `def __init__(self: None, name: Optional[Union[str, _models.SkuName]])`
- Method `AccountSkuPatch.__init__` has a new overload `def __init__(self: None, mapping: Mapping[str, Any])`

### Breaking Changes

- Model `CertificateProfileProperties` deleted or renamed its instance variable `common_name`
- Model `CertificateProfileProperties` deleted or renamed its instance variable `organization`
- Model `CertificateProfileProperties` deleted or renamed its instance variable `organization_unit`
- Model `CertificateProfileProperties` deleted or renamed its instance variable `street_address`
- Model `CertificateProfileProperties` deleted or renamed its instance variable `city`
- Model `CertificateProfileProperties` deleted or renamed its instance variable `state`
- Model `CertificateProfileProperties` deleted or renamed its instance variable `country`
- Model `CertificateProfileProperties` deleted or renamed its instance variable `postal_code`
- Model `CertificateProfileProperties` deleted or renamed its instance variable `enhanced_key_usage`

## 1.0.0b1 (2024-09-27)

### Other Changes
Expand Down
2 changes: 1 addition & 1 deletion sdk/trustedsigning/azure-mgmt-trustedsigning/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ pip install azure-identity

### Authentication

By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
Expand Down
4 changes: 2 additions & 2 deletions sdk/trustedsigning/azure-mgmt-trustedsigning/_meta.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"commit": "e6fde2ac19d0202f0e72217a3e0f9edb63dba273",
"commit": "5b8b9e16f73291ccad4972febd28ca32ff908cd1",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"typespec_src": "specification/codesigning/CodeSigning.Management",
"@azure-tools/typespec-python": "0.33.0"
"@azure-tools/typespec-python": "0.42.2"
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
{
"CrossLanguagePackageId": "Microsoft.CodeSigning",
"CrossLanguageDefinitionId": {
"azure.mgmt.trustedsigning.models.AccountSku": "Microsoft.CodeSigning.AccountSku",
"azure.mgmt.trustedsigning.models.AccountSkuPatch": "Microsoft.CodeSigning.AccountSkuPatch",
"azure.mgmt.trustedsigning.models.Certificate": "Microsoft.CodeSigning.Certificate",
"azure.mgmt.trustedsigning.models.Resource": "Azure.ResourceManager.CommonTypes.Resource",
"azure.mgmt.trustedsigning.models.ProxyResource": "Azure.ResourceManager.CommonTypes.ProxyResource",
"azure.mgmt.trustedsigning.models.CertificateProfile": "Microsoft.CodeSigning.CertificateProfile",
"azure.mgmt.trustedsigning.models.CertificateProfileProperties": "Microsoft.CodeSigning.CertificateProfileProperties",
"azure.mgmt.trustedsigning.models.CheckNameAvailability": "Microsoft.CodeSigning.CheckNameAvailability",
"azure.mgmt.trustedsigning.models.CheckNameAvailabilityResult": "Microsoft.CodeSigning.CheckNameAvailabilityResult",
"azure.mgmt.trustedsigning.models.TrackedResource": "Azure.ResourceManager.CommonTypes.TrackedResource",
"azure.mgmt.trustedsigning.models.CodeSigningAccount": "Microsoft.CodeSigning.CodeSigningAccount",
"azure.mgmt.trustedsigning.models.CodeSigningAccountPatch": "Microsoft.CodeSigning.CodeSigningAccountPatch",
"azure.mgmt.trustedsigning.models.CodeSigningAccountPatchProperties": "Microsoft.CodeSigning.CodeSigningAccountPatchProperties",
"azure.mgmt.trustedsigning.models.CodeSigningAccountProperties": "Microsoft.CodeSigning.CodeSigningAccountProperties",
"azure.mgmt.trustedsigning.models.ErrorAdditionalInfo": "Azure.ResourceManager.CommonTypes.ErrorAdditionalInfo",
"azure.mgmt.trustedsigning.models.ErrorDetail": "Azure.ResourceManager.CommonTypes.ErrorDetail",
"azure.mgmt.trustedsigning.models.ErrorResponse": "Azure.ResourceManager.CommonTypes.ErrorResponse",
"azure.mgmt.trustedsigning.models.Operation": "Azure.ResourceManager.CommonTypes.Operation",
"azure.mgmt.trustedsigning.models.OperationDisplay": "Azure.ResourceManager.CommonTypes.OperationDisplay",
"azure.mgmt.trustedsigning.models.Revocation": "Microsoft.CodeSigning.Revocation",
"azure.mgmt.trustedsigning.models.RevokeCertificate": "Microsoft.CodeSigning.RevokeCertificate",
"azure.mgmt.trustedsigning.models.SystemData": "Azure.ResourceManager.CommonTypes.SystemData",
"azure.mgmt.trustedsigning.models.Origin": "Azure.ResourceManager.CommonTypes.Origin",
"azure.mgmt.trustedsigning.models.ActionType": "Azure.ResourceManager.CommonTypes.ActionType",
"azure.mgmt.trustedsigning.models.CreatedByType": "Azure.ResourceManager.CommonTypes.createdByType",
"azure.mgmt.trustedsigning.models.SkuName": "Microsoft.CodeSigning.SkuName",
"azure.mgmt.trustedsigning.models.ProvisioningState": "Microsoft.CodeSigning.ProvisioningState",
"azure.mgmt.trustedsigning.models.NameUnavailabilityReason": "Microsoft.CodeSigning.NameUnavailabilityReason",
"azure.mgmt.trustedsigning.models.ProfileType": "Microsoft.CodeSigning.ProfileType",
"azure.mgmt.trustedsigning.models.CertificateProfileStatus": "Microsoft.CodeSigning.CertificateProfileStatus",
"azure.mgmt.trustedsigning.models.CertificateStatus": "Microsoft.CodeSigning.CertificateStatus",
"azure.mgmt.trustedsigning.models.RevocationStatus": "Microsoft.CodeSigning.RevocationStatus",
"azure.mgmt.trustedsigning.TrustedSigningMgmtClient.operations.list": "Azure.ResourceManager.Operations.list",
"azure.mgmt.trustedsigning.TrustedSigningMgmtClient.code_signing_accounts.get": "Microsoft.CodeSigning.CodeSigningAccounts.get",
"azure.mgmt.trustedsigning.TrustedSigningMgmtClient.code_signing_accounts.begin_create": "Microsoft.CodeSigning.CodeSigningAccounts.create",
"azure.mgmt.trustedsigning.TrustedSigningMgmtClient.code_signing_accounts.begin_update": "Microsoft.CodeSigning.CodeSigningAccounts.update",
"azure.mgmt.trustedsigning.TrustedSigningMgmtClient.code_signing_accounts.begin_delete": "Microsoft.CodeSigning.CodeSigningAccounts.delete",
"azure.mgmt.trustedsigning.TrustedSigningMgmtClient.code_signing_accounts.list_by_resource_group": "Microsoft.CodeSigning.CodeSigningAccounts.listByResourceGroup",
"azure.mgmt.trustedsigning.TrustedSigningMgmtClient.code_signing_accounts.list_by_subscription": "Microsoft.CodeSigning.CodeSigningAccounts.listBySubscription",
"azure.mgmt.trustedsigning.TrustedSigningMgmtClient.code_signing_accounts.check_name_availability": "Microsoft.CodeSigning.CodeSigningAccounts.checkNameAvailability",
"azure.mgmt.trustedsigning.TrustedSigningMgmtClient.certificate_profiles.get": "Microsoft.CodeSigning.CertificateProfiles.get",
"azure.mgmt.trustedsigning.TrustedSigningMgmtClient.certificate_profiles.begin_create": "Microsoft.CodeSigning.CertificateProfiles.create",
"azure.mgmt.trustedsigning.TrustedSigningMgmtClient.certificate_profiles.begin_delete": "Microsoft.CodeSigning.CertificateProfiles.delete",
"azure.mgmt.trustedsigning.TrustedSigningMgmtClient.certificate_profiles.list_by_code_signing_account": "Microsoft.CodeSigning.CertificateProfiles.listByCodeSigningAccount",
"azure.mgmt.trustedsigning.TrustedSigningMgmtClient.certificate_profiles.revoke_certificate": "Microsoft.CodeSigning.CertificateProfiles.revokeCertificate"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,28 @@
# Code generated by Microsoft (R) Python Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wrong-import-position

from ._client import TrustedSigningMgmtClient
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._client import TrustedSigningMgmtClient # type: ignore
from ._version import VERSION

__version__ = VERSION

try:
from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
from ._patch import *
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"TrustedSigningMgmtClient",
]
__all__.extend([p for p in _patch_all if p not in __all__])
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore

_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,10 @@
from .operations import CertificateProfilesOperations, CodeSigningAccountsOperations, Operations

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


class TrustedSigningMgmtClient: # pylint: disable=client-accepts-api-version-keyword
class TrustedSigningMgmtClient:
"""Code Signing resource provider api.

:ivar operations: Operations operations
Expand All @@ -42,7 +41,7 @@ class TrustedSigningMgmtClient: # pylint: disable=client-accepts-api-version-ke
:param base_url: Service host. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: The API version to use for this operation. Default value is
"2024-02-05-preview". Note that overriding this default value may result in unsupported
"2024-09-30-preview". Note that overriding this default value may result in unsupported
behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
from ._version import VERSION

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


class TrustedSigningMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
class TrustedSigningMgmtClientConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for TrustedSigningMgmtClient.

Note that all parameters used to create this instance are saved as instance
Expand All @@ -31,7 +30,7 @@ class TrustedSigningMgmtClientConfiguration: # pylint: disable=too-many-instanc
:param base_url: Service host. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: The API version to use for this operation. Default value is
"2024-02-05-preview". Note that overriding this default value may result in unsupported
"2024-09-30-preview". Note that overriding this default value may result in unsupported
behavior.
:paramtype api_version: str
"""
Expand All @@ -43,7 +42,7 @@ def __init__(
base_url: str = "https://management.azure.com",
**kwargs: Any
) -> None:
api_version: str = kwargs.pop("api_version", "2024-02-05-preview")
api_version: str = kwargs.pop("api_version", "2024-09-30-preview")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
Loading