Skip to content

Commit 97cd7fb

Browse files
azure-sdkChenxiJiang333msyyc
authored
[AutoRelease] t2-servicebus-2024-11-04-58886(can only be merged by SDK owner) (#38293)
* code and test * update-testcase * update version --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: ChenxiJiang333 <[email protected]> Co-authored-by: msyyc <[email protected]>
1 parent c846afc commit 97cd7fb

File tree

342 files changed

+24837
-27320
lines changed

Some content is hidden

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

342 files changed

+24837
-27320
lines changed

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

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

3+
## 8.2.1 (2024-11-05)
4+
5+
### Other Changes
6+
7+
- Update dependencies
8+
39
## 8.2.0 (2023-02-15)
410

511
### Features Added

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

Lines changed: 2 additions & 5 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.7+.
4+
This package has been tested with Python 3.8+.
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.7+ is required to use this package.
15+
- Python 3.8+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package
@@ -59,6 +59,3 @@ Code samples for this package can be found at:
5959
If you encounter any bugs or have suggestions, please file an issue in the
6060
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
6161
section of the project.
62-
63-
64-
![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-servicebus%2FREADME.png)
Lines changed: 14 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,19 @@
11
{
2-
"commit": "19f98c9f526f8db961f172276dd6d6882a86ed86",
2+
"commit": "690a7656d65a03b134fa44fc7bb8013dc18a15b5",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.9.2",
4+
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.4.0",
7-
"@autorest/modelerfour@4.24.3"
6+
"@autorest/python@6.19.0",
7+
"@autorest/modelerfour@4.27.0"
88
],
9-
"autorest_command": "autorest specification/servicebus/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/[email protected] --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
10-
"readme": "specification/servicebus/resource-manager/readme.md"
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/[email protected] --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
10+
"readme": "specification/servicebus/resource-manager/readme.md",
11+
"package-2022-10-preview": "2023-04-13 07:43:12 +0530 9bc5a13776661d0bc699efadece14870e2846d7f Microsoft.ServiceBus/preview/2022-10-01-preview/migrationconfigs.json",
12+
"package-2022-01-preview": "2023-04-13 07:43:12 +0530 9bc5a13776661d0bc699efadece14870e2846d7f Microsoft.ServiceBus/preview/2022-01-01-preview/migrationconfigs.json",
13+
"package-2021-11": "2022-06-05 19:46:58 -0700 2d6cb29af754f48a08f94cb6113bb1f01a4e0eb9 Microsoft.ServiceBus/stable/2021-11-01/namespace-preview.json",
14+
"package-2021-06-preview": "2021-08-31 00:27:06 -0700 09fe30cc6703f65e479f54115b5d714f78de6c19 Microsoft.ServiceBus/preview/2021-06-01-preview/topics.json",
15+
"package-2021-01-preview": "2021-05-25 00:36:37 -0700 216931dc4ec175664bbe8222f9ea5ea3def69106 Microsoft.ServiceBus/preview/2021-01-01-preview/namespace-preview.json",
16+
"package-2018-01-preview": "2021-05-25 00:36:37 -0700 216931dc4ec175664bbe8222f9ea5ea3def69106 Microsoft.ServiceBus/preview/2018-01-01-preview/namespace-preview.json",
17+
"package-2017-04": "2021-03-25 10:47:57 +0800 e4c056151df3c59bbb2221e23f623fdb625313c5 Microsoft.ServiceBus/stable/2017-04-01/Rules.json",
18+
"package-2015-08": "2019-06-12 19:26:02 -0400 8024b7e11a19c823d835ae05ec00769eaa10b057 Microsoft.ServiceBus/stable/2015-08-01/servicebus.json"
1119
}

sdk/servicebus/azure-mgmt-servicebus/assets.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

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

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

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

1213
try:
1314
from ._patch import patch_sdk # type: ignore
15+
1416
patch_sdk()
1517
except ImportError:
1618
pass

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

Lines changed: 19 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
# --------------------------------------------------------------------------
1111
from typing import Any, TYPE_CHECKING
1212

13-
from azure.core.configuration import Configuration
1413
from azure.core.pipeline import policies
1514
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy
1615

@@ -20,7 +19,8 @@
2019
# pylint: disable=unused-import,ungrouped-imports
2120
from azure.core.credentials import TokenCredential
2221

23-
class ServiceBusManagementClientConfiguration(Configuration):
22+
23+
class ServiceBusManagementClientConfiguration:
2424
"""Configuration for ServiceBusManagementClient.
2525
2626
Note that all parameters used to create this instance are saved as instance
@@ -32,36 +32,30 @@ class ServiceBusManagementClientConfiguration(Configuration):
3232
:type subscription_id: str
3333
"""
3434

35-
def __init__(
36-
self,
37-
credential: "TokenCredential",
38-
subscription_id: str,
39-
**kwargs: Any
40-
):
35+
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any):
4136
if credential is None:
4237
raise ValueError("Parameter 'credential' must not be None.")
4338
if subscription_id is None:
4439
raise ValueError("Parameter 'subscription_id' must not be None.")
45-
super(ServiceBusManagementClientConfiguration, self).__init__(**kwargs)
4640

4741
self.credential = credential
4842
self.subscription_id = subscription_id
49-
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
50-
kwargs.setdefault('sdk_moniker', 'azure-mgmt-servicebus/{}'.format(VERSION))
43+
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
44+
kwargs.setdefault("sdk_moniker", "azure-mgmt-servicebus/{}".format(VERSION))
45+
self.polling_interval = kwargs.get("polling_interval", 30)
5146
self._configure(**kwargs)
5247

53-
def _configure(
54-
self,
55-
**kwargs: Any
56-
):
57-
self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs)
58-
self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
59-
self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs)
60-
self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs)
61-
self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs)
62-
self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs)
63-
self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs)
64-
self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs)
65-
self.authentication_policy = kwargs.get('authentication_policy')
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")
6658
if self.credential and not self.authentication_policy:
67-
self.authentication_policy = ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)
59+
self.authentication_policy = ARMChallengeAuthenticationPolicy(
60+
self.credential, *self.credential_scopes, **kwargs
61+
)

0 commit comments

Comments
 (0)