Skip to content

Commit ce59053

Browse files
author
SDKAuto
committed
CodeGen from PR 34260 in Azure/azure-rest-api-specs
Merge e1585c40b8c4397f4fee559a74fd55f8829f85dc into 31869e6038974dbd20dd5028feaec2c402835cad
1 parent ebf29c4 commit ce59053

File tree

1,245 files changed

+6887
-6318
lines changed

Some content is hidden

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

1,245 files changed

+6887
-6318
lines changed

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

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

3+
## 5.1.0b1 (2025-04-26)
4+
5+
### Features Added
6+
7+
- Model `ApiManagementServiceBaseProperties` added property `release_channel`
8+
- Model `ApiManagementServiceProperties` added property `release_channel`
9+
- Model `ApiManagementServiceResource` added property `release_channel`
10+
- Model `ApiManagementServiceUpdateParameters` added property `release_channel`
11+
- Model `ApiManagementServiceUpdateProperties` added property `release_channel`
12+
- Model `DiagnosticContract` added property `large_language_model`
13+
- Model `IdentityProviderContract` added property `certificate_id`
14+
- Model `IdentityProviderContractProperties` added property `certificate_id`
15+
- Model `IdentityProviderCreateContract` added property `certificate_id`
16+
- Model `IdentityProviderCreateContractProperties` added property `certificate_id`
17+
- Model `IdentityProviderUpdateParameters` added property `certificate_id`
18+
- Model `IdentityProviderUpdateProperties` added property `certificate_id`
19+
- Added model `LLMDiagnosticSettings`
20+
- Added model `LLMMessageDiagnosticSettings`
21+
- Added enum `LlmDiagnosticSettings`
22+
- Added enum `LlmMessageLogTypes`
23+
- Added enum `ReleaseChannel`
24+
325
## 5.0.0 (2025-04-21)
426

527
### Features Added

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

Lines changed: 2 additions & 2 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 API 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
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "7c1e8a2c1e18ac0dd65b88f00447992ed86fcc0f",
2+
"commit": "e064d260102375791e44f161149b80f717d0db13",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.27.4",
6+
"@autorest/python@6.34.1",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/apimanagement/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/azure-sdk-for-python/sdk --tag=package-2024-05 --use=@autorest/python@6.27.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/apimanagement/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/apimanagement/resource-manager/readme.md"
1111
}

sdk/apimanagement/azure-mgmt-apimanagement/azure/mgmt/apimanagement/_api_management_client.py

Lines changed: 16 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -7,17 +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
1111
from typing_extensions import Self
1212

1313
from azure.core.pipeline import policies
1414
from azure.core.rest import HttpRequest, HttpResponse
15+
from azure.core.settings import settings
1516
from azure.mgmt.core import ARMPipelineClient
1617
from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy
18+
from azure.mgmt.core.tools import get_arm_endpoints
1719

1820
from . import models as _models
1921
from ._configuration import ApiManagementClientConfiguration
20-
from ._serialization import Deserializer, Serializer
22+
from ._utils.serialization import Deserializer, Serializer
2123
from .operations import (
2224
AllPoliciesOperations,
2325
ApiDiagnosticOperations,
@@ -490,25 +492,27 @@ class ApiManagementClient(ApiManagementClientOperationsMixin): # pylint: disabl
490492
:type credential: ~azure.core.credentials.TokenCredential
491493
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
492494
:type subscription_id: str
493-
:param base_url: Service URL. Default value is "https://management.azure.com".
495+
:param base_url: Service URL. Default value is None.
494496
:type base_url: str
495-
:keyword api_version: Api Version. Default value is "2024-05-01". Note that overriding this
496-
default value may result in unsupported behavior.
497+
:keyword api_version: Api Version. Default value is "2024-06-01-preview". Note that overriding
498+
this default value may result in unsupported behavior.
497499
:paramtype api_version: str
498500
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
499501
Retry-After header is present.
500502
"""
501503

502504
def __init__(
503-
self,
504-
credential: "TokenCredential",
505-
subscription_id: str,
506-
base_url: str = "https://management.azure.com",
507-
**kwargs: Any
505+
self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
508506
) -> None:
507+
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
508+
_endpoints = get_arm_endpoints(_cloud)
509+
if not base_url:
510+
base_url = _endpoints["resource_manager"]
511+
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
509512
self._config = ApiManagementClientConfiguration(
510-
credential=credential, subscription_id=subscription_id, **kwargs
513+
credential=credential, subscription_id=subscription_id, credential_scopes=credential_scopes, **kwargs
511514
)
515+
512516
_policies = kwargs.pop("policies", None)
513517
if _policies is None:
514518
_policies = [
@@ -527,7 +531,7 @@ def __init__(
527531
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
528532
self._config.http_logging_policy,
529533
]
530-
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
534+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, base_url), policies=_policies, **kwargs)
531535

532536
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
533537
self._serialize = Serializer(client_models)

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,13 @@ class ApiManagementClientConfiguration: # pylint: disable=too-many-instance-att
2727
:type credential: ~azure.core.credentials.TokenCredential
2828
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
2929
:type subscription_id: str
30-
:keyword api_version: Api Version. Default value is "2024-05-01". Note that overriding this
31-
default value may result in unsupported behavior.
30+
:keyword api_version: Api Version. Default value is "2024-06-01-preview". Note that overriding
31+
this default value may result in unsupported behavior.
3232
:paramtype api_version: str
3333
"""
3434

3535
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
36-
api_version: str = kwargs.pop("api_version", "2024-05-01")
36+
api_version: str = kwargs.pop("api_version", "2024-06-01-preview")
3737

3838
if credential is None:
3939
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)