Skip to content

Commit 887a2ea

Browse files
author
SDKAuto
committed
CodeGen from PR 33867 in Azure/azure-rest-api-specs
Merge ab9157b51cac68f741cfaaeec078ec8e4f6bfd59 into e489de297e262f087de27000a48dd69417e345a4
1 parent 9fe57d9 commit 887a2ea

File tree

225 files changed

+11372
-4461
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

225 files changed

+11372
-4461
lines changed

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

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

3+
## 14.0.0 (2025-05-12)
4+
5+
### Features Added
6+
7+
- Model `AFDDomainHttpsParameters` added property `cipher_suite_set_type`
8+
- Model `AFDDomainHttpsParameters` added property `customized_cipher_suite_set`
9+
- Enum `AfdMinimumTlsVersion` added member `TLS13`
10+
- Enum `MatchProcessingBehavior` added member `CONTINUE`
11+
- Added model `AFDDomainHttpsCustomizedCipherSuiteSet`
12+
- Added enum `AfdCipherSuiteSetType`
13+
- Added enum `AfdCustomizedCipherSuiteForTls12`
14+
- Added enum `AfdCustomizedCipherSuiteForTls13`
15+
- Added model `CdnMigrationToAfdParameters`
16+
- Added model `CertificateSourceParameters`
17+
- Added enum `CertificateSourceParametersType`
18+
- Added model `DeliveryRuleActionParameters`
19+
- Added enum `DeliveryRuleActionParametersType`
20+
- Added model `DeliveryRuleConditionParameters`
21+
- Added enum `DeliveryRuleConditionParametersType`
22+
- Added model `ErrorResponseAutoGenerated`
23+
- Added enum `IsDeviceMatchValue`
24+
- Added enum `KeyVaultSigningKeyParametersType`
25+
- Added model `MigrationEndpointMapping`
26+
- Added enum `RequestMethodMatchValue`
27+
- Added enum `RequestSchemeMatchValue`
28+
- Model `ProfilesOperations` added method `begin_cdn_can_migrate_to_afd`
29+
- Model `ProfilesOperations` added method `begin_cdn_migrate_to_afd`
30+
- Model `ProfilesOperations` added method `begin_migration_abort`
31+
- Method `ProfilesOperations.begin_cdn_migrate_to_afd` has a new overload `def begin_cdn_migrate_to_afd(self: None, resource_group_name: str, profile_name: str, migration_parameters: CdnMigrationToAfdParameters, content_type: str)`
32+
- Method `ProfilesOperations.begin_cdn_migrate_to_afd` has a new overload `def begin_cdn_migrate_to_afd(self: None, resource_group_name: str, profile_name: str, migration_parameters: IO[bytes], content_type: str)`
33+
34+
### Breaking Changes
35+
36+
- Deleted or renamed enum value `MatchProcessingBehavior.CONTINUE_ENUM`
37+
- Method `UrlSigningKeyParameters.__init__` removed default value `None` from its parameter `secret_version`
38+
- Deleted or renamed model `CacheExpirationActionParametersTypeName`
39+
- Deleted or renamed model `CacheKeyQueryStringActionParametersTypeName`
40+
- Deleted or renamed model `CdnCertificateSourceParametersTypeName`
41+
- Deleted or renamed model `ClientPortMatchConditionParametersTypeName`
42+
- Deleted or renamed model `CookiesMatchConditionParametersTypeName`
43+
- Deleted or renamed model `HeaderActionParametersTypeName`
44+
- Deleted or renamed model `HostNameMatchConditionParametersTypeName`
45+
- Deleted or renamed model `HttpVersionMatchConditionParametersTypeName`
46+
- Deleted or renamed model `IsDeviceMatchConditionParametersMatchValuesItem`
47+
- Deleted or renamed model `IsDeviceMatchConditionParametersTypeName`
48+
- Deleted or renamed model `KeyVaultCertificateSourceParametersTypeName`
49+
- Deleted or renamed model `KeyVaultSigningKeyParametersTypeName`
50+
- Deleted or renamed model `OriginGroupOverrideActionParametersTypeName`
51+
- Deleted or renamed model `PostArgsMatchConditionParametersTypeName`
52+
- Deleted or renamed model `QueryStringMatchConditionParametersTypeName`
53+
- Deleted or renamed model `RemoteAddressMatchConditionParametersTypeName`
54+
- Deleted or renamed model `RequestBodyMatchConditionParametersTypeName`
55+
- Deleted or renamed model `RequestHeaderMatchConditionParametersTypeName`
56+
- Deleted or renamed model `RequestMethodMatchConditionParametersMatchValuesItem`
57+
- Deleted or renamed model `RequestMethodMatchConditionParametersTypeName`
58+
- Deleted or renamed model `RequestSchemeMatchConditionParametersMatchValuesItem`
59+
- Deleted or renamed model `RequestSchemeMatchConditionParametersTypeName`
60+
- Deleted or renamed model `RequestUriMatchConditionParametersTypeName`
61+
- Deleted or renamed model `RouteConfigurationOverrideActionParametersTypeName`
62+
- Deleted or renamed model `ServerPortMatchConditionParametersTypeName`
63+
- Deleted or renamed model `SocketAddrMatchConditionParametersTypeName`
64+
- Deleted or renamed model `SslProtocolMatchConditionParametersTypeName`
65+
- Deleted or renamed model `UrlFileExtensionMatchConditionParametersTypeName`
66+
- Deleted or renamed model `UrlFileNameMatchConditionParametersTypeName`
67+
- Deleted or renamed model `UrlPathMatchConditionParametersTypeName`
68+
- Deleted or renamed model `UrlRedirectActionParametersTypeName`
69+
- Deleted or renamed model `UrlRewriteActionParametersTypeName`
70+
- Deleted or renamed model `UrlSigningActionParametersTypeName`
71+
372
## 13.1.1 (2024-06-12)
473

574
### Bugs Fixed

sdk/cdn/azure-mgmt-cdn/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure CDN Management Client Library.
4-
This package has been tested with Python 3.8+.
4+
This package has been tested with Python 3.9+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77
## _Disclaimer_
@@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For
1212

1313
### Prerequisites
1414

15-
- Python 3.8+ is required to use this package.
15+
- Python 3.9+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package
@@ -24,7 +24,7 @@ pip install azure-identity
2424

2525
### Authentication
2626

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

2929
- `AZURE_CLIENT_ID` for Azure client ID.
3030
- `AZURE_TENANT_ID` for Azure tenant ID.

sdk/cdn/azure-mgmt-cdn/_meta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "de1f3772629b6f4d3ac01548a5f6d719bfb97c9e",
2+
"commit": "1485122b325dcb50ea795367c16f055a9129386c",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.13.19",
6+
"@autorest/python@6.34.1",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/cdn/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.13.19 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/cdn/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/s/azure-sdk-for-python/sdk --use=@autorest/python@6.34.1 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/cdn/resource-manager/readme.md"
1111
}

sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/__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) AutoRest 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 ._cdn_management_client import CdnManagementClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._cdn_management_client import CdnManagementClient # 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
"CdnManagementClient",
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/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_cdn_management_client.py

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,19 @@
77
# --------------------------------------------------------------------------
88

99
from copy import deepcopy
10-
from typing import Any, TYPE_CHECKING
10+
from typing import Any, Optional, TYPE_CHECKING, cast
11+
from typing_extensions import Self
1112

1213
from azure.core.pipeline import policies
1314
from azure.core.rest import HttpRequest, HttpResponse
15+
from azure.core.settings import settings
1416
from azure.mgmt.core import ARMPipelineClient
1517
from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy
18+
from azure.mgmt.core.tools import get_arm_endpoints
1619

1720
from . import models as _models
1821
from ._configuration import CdnManagementClientConfiguration
19-
from ._serialization import Deserializer, Serializer
22+
from ._utils.serialization import Deserializer, Serializer
2023
from .operations import (
2124
AFDCustomDomainsOperations,
2225
AFDEndpointsOperations,
@@ -43,13 +46,10 @@
4346
)
4447

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

4951

50-
class CdnManagementClient(
51-
CdnManagementClientOperationsMixin
52-
): # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
52+
class CdnManagementClient(CdnManagementClientOperationsMixin): # pylint: disable=too-many-instance-attributes
5353
"""Cdn Management Client.
5454
5555
:ivar afd_profiles: AFDProfilesOperations operations
@@ -98,25 +98,27 @@ class CdnManagementClient(
9898
:type credential: ~azure.core.credentials.TokenCredential
9999
:param subscription_id: Azure Subscription ID. Required.
100100
:type subscription_id: str
101-
:param base_url: Service URL. Default value is "https://management.azure.com".
101+
:param base_url: Service URL. Default value is None.
102102
:type base_url: str
103-
:keyword api_version: Api Version. Default value is "2024-02-01". Note that overriding this
103+
:keyword api_version: Api Version. Default value is "2025-04-15". Note that overriding this
104104
default value may result in unsupported behavior.
105105
:paramtype api_version: str
106106
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
107107
Retry-After header is present.
108108
"""
109109

110110
def __init__(
111-
self,
112-
credential: "TokenCredential",
113-
subscription_id: str,
114-
base_url: str = "https://management.azure.com",
115-
**kwargs: Any
111+
self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
116112
) -> None:
113+
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
114+
_endpoints = get_arm_endpoints(_cloud)
115+
if not base_url:
116+
base_url = _endpoints["resource_manager"]
117+
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
117118
self._config = CdnManagementClientConfiguration(
118-
credential=credential, subscription_id=subscription_id, **kwargs
119+
credential=credential, subscription_id=subscription_id, credential_scopes=credential_scopes, **kwargs
119120
)
121+
120122
_policies = kwargs.pop("policies", None)
121123
if _policies is None:
122124
_policies = [
@@ -135,7 +137,7 @@ def __init__(
135137
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
136138
self._config.http_logging_policy,
137139
]
138-
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
140+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, base_url), policies=_policies, **kwargs)
139141

140142
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
141143
self._serialize = Serializer(client_models)
@@ -196,7 +198,7 @@ def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
196198
def close(self) -> None:
197199
self._client.close()
198200

199-
def __enter__(self) -> "CdnManagementClient":
201+
def __enter__(self) -> Self:
200202
self._client.__enter__()
201203
return self
202204

sdk/cdn/azure-mgmt-cdn/azure/mgmt/cdn/_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 CdnManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
20+
class CdnManagementClientConfiguration: # pylint: disable=too-many-instance-attributes
2221
"""Configuration for CdnManagementClient.
2322
2423
Note that all parameters used to create this instance are saved as instance
@@ -28,13 +27,13 @@ class CdnManagementClientConfiguration: # pylint: disable=too-many-instance-att
2827
:type credential: ~azure.core.credentials.TokenCredential
2928
:param subscription_id: Azure Subscription ID. Required.
3029
:type subscription_id: str
31-
:keyword api_version: Api Version. Default value is "2024-02-01". Note that overriding this
30+
:keyword api_version: Api Version. Default value is "2025-04-15". Note that overriding this
3231
default value may result in unsupported behavior.
3332
:paramtype api_version: str
3433
"""
3534

3635
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
37-
api_version: str = kwargs.pop("api_version", "2024-02-01")
36+
api_version: str = kwargs.pop("api_version", "2025-04-15")
3837

3938
if credential is None:
4039
raise ValueError("Parameter 'credential' must not be None.")
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# --------------------------------------------------------------------------
2+
# Copyright (c) Microsoft Corporation. All rights reserved.
3+
# Licensed under the MIT License. See License.txt in the project root for license information.
4+
# Code generated by Microsoft (R) AutoRest Code Generator.
5+
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
6+
# --------------------------------------------------------------------------

0 commit comments

Comments
 (0)