Skip to content

Commit 2100678

Browse files
[AutoRelease] t2-servicebus-2025-04-22-13305(can only be merged by SDK owner) (Azure#40640)
* code and test * update-testcase --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent 1310d7e commit 2100678

File tree

399 files changed

+2220
-121612
lines changed

Some content is hidden

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

399 files changed

+2220
-121612
lines changed

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

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

3+
## 9.0.0 (2025-04-22)
4+
5+
### Breaking Changes
6+
7+
- Removed operation group EventHubsOperations
8+
- Removed operation group PremiumMessagingRegionsOperations
9+
- Removed operation group RegionsOperations
10+
311
## 8.2.1 (2024-11-05)
412

513
### Other Changes

sdk/servicebus/azure-mgmt-servicebus/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 Service Bus 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/servicebus/azure-mgmt-servicebus/_meta.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
{
2-
"commit": "690a7656d65a03b134fa44fc7bb8013dc18a15b5",
2+
"commit": "d2457f3dae10d48a6a74d867b335d96b229b2b03",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.19.0",
6+
"@autorest/python@6.33.0",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/servicebus/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 --use=@autorest/python@6.19.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/servicebus/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 --use=@autorest/python@6.33.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/servicebus/resource-manager/readme.md",
1111
"package-2022-10-preview": "2023-04-13 07:43:12 +0530 9bc5a13776661d0bc699efadece14870e2846d7f Microsoft.ServiceBus/preview/2022-10-01-preview/migrationconfigs.json",
1212
"package-2022-01-preview": "2023-04-13 07:43:12 +0530 9bc5a13776661d0bc699efadece14870e2846d7f Microsoft.ServiceBus/preview/2022-01-01-preview/migrationconfigs.json",

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

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@
77
# --------------------------------------------------------------------------
88

99
from ._service_bus_management_client import ServiceBusManagementClient
10-
11-
__all__ = ["ServiceBusManagementClient"]
10+
__all__ = ['ServiceBusManagementClient']
1211

1312
try:
1413
from ._patch import patch_sdk # type: ignore
15-
1614
patch_sdk()
1715
except ImportError:
1816
pass

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

Lines changed: 22 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
# pylint: disable=unused-import,ungrouped-imports
2020
from azure.core.credentials import TokenCredential
2121

22-
2322
class ServiceBusManagementClientConfiguration:
2423
"""Configuration for ServiceBusManagementClient.
2524
@@ -32,30 +31,36 @@ class ServiceBusManagementClientConfiguration:
3231
:type subscription_id: str
3332
"""
3433

35-
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any):
34+
def __init__(
35+
self,
36+
credential: "TokenCredential",
37+
subscription_id: str,
38+
**kwargs: Any
39+
):
3640
if credential is None:
3741
raise ValueError("Parameter 'credential' must not be None.")
3842
if subscription_id is None:
3943
raise ValueError("Parameter 'subscription_id' must not be None.")
4044

4145
self.credential = credential
4246
self.subscription_id = subscription_id
43-
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
44-
kwargs.setdefault("sdk_moniker", "azure-mgmt-servicebus/{}".format(VERSION))
47+
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
48+
kwargs.setdefault('sdk_moniker', 'azure-mgmt-servicebus/{}'.format(VERSION))
4549
self.polling_interval = kwargs.get("polling_interval", 30)
4650
self._configure(**kwargs)
4751

48-
def _configure(self, **kwargs: Any):
49-
self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
50-
self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
51-
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
52-
self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
53-
self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs)
54-
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
55-
self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
56-
self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs)
57-
self.authentication_policy = kwargs.get("authentication_policy")
52+
def _configure(
53+
self,
54+
**kwargs: Any
55+
):
56+
self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs)
57+
self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
58+
self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs)
59+
self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs)
60+
self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs)
61+
self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs)
62+
self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs)
63+
self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs)
64+
self.authentication_policy = kwargs.get('authentication_policy')
5865
if self.credential and not self.authentication_policy:
59-
self.authentication_policy = ARMChallengeAuthenticationPolicy(
60-
self.credential, *self.credential_scopes, **kwargs
61-
)
66+
self.authentication_policy = ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)

0 commit comments

Comments
 (0)