Skip to content

Commit 7539fc3

Browse files
authored
[ServiceBus] update release date (Azure#23893)
1 parent b44e2be commit 7539fc3

File tree

6 files changed

+19
-14
lines changed

6 files changed

+19
-14
lines changed

sdk/servicebus/azure-servicebus/CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Release History
22

3-
## 7.6.1 (2022-04-06)
3+
## 7.6.1 (2022-04-08)
44

55
### Other Changes
66

sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ def from_connection_string(
170170
*,
171171
retry_total: int = 3,
172172
retry_backoff_factor: float = 0.8,
173-
retry_backoff_max: int = 120,
173+
retry_backoff_max: float = 120,
174174
retry_mode: str = "exponential",
175175
**kwargs: Any
176176
) -> "ServiceBusClient":

sdk/servicebus/azure-servicebus/azure/servicebus/_servicebus_session.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,8 @@
3030

3131

3232
class BaseSession(object):
33-
def __init__(self, session_id: str, receiver: Union["ServiceBusReceiver", "ServiceBusReceiverAsync"]) -> None:
33+
def __init__(self, session_id, receiver):
34+
# type: (str, Union[ServiceBusReceiver, ServiceBusReceiverAsync]) -> None
3435
self._session_id = session_id
3536
self._receiver = receiver
3637
self._encoding = "UTF-8"

sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_client_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ def from_connection_string(
139139
*,
140140
retry_total: int = 3,
141141
retry_backoff_factor: float = 0.8,
142-
retry_backoff_max: int = 120,
142+
retry_backoff_max: float = 120,
143143
retry_mode: str = 'exponential',
144144
**kwargs: Any
145145
) -> "ServiceBusClient":

sdk/servicebus/azure-servicebus/azure/servicebus/aio/management/_management_client_async.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
ServiceBusManagementClient as ServiceBusManagementClientImpl,
6161
)
6262
from ...management import _constants as constants
63-
from ...management._api_version import DEFAULT_VERSION
63+
from ...management._api_version import DEFAULT_VERSION, ApiVersion
6464
from ._shared_key_policy_async import AsyncServiceBusSharedKeyCredentialPolicy
6565
from ...management._models import (
6666
AuthorizationRule,
@@ -100,17 +100,18 @@ class ServiceBusAdministrationClient: # pylint:disable=too-many-public-methods
100100
:param str fully_qualified_namespace: The fully qualified host name for the Service Bus namespace.
101101
:param credential: To authenticate to manage the entities of the ServiceBus namespace.
102102
:type credential: AsyncTokenCredential
103-
:keyword str api_version: The Service Bus API version to use for requests. Default value is the most
103+
:keyword api_version: The Service Bus API version to use for requests. Default value is the most
104104
recent service version that is compatible with the current SDK. Setting to an older version may result
105105
in reduced feature compatibility.
106+
:paramtype api_version: str or ApiVersion
106107
"""
107108

108109
def __init__(
109110
self,
110111
fully_qualified_namespace: str,
111112
credential: "AsyncTokenCredential",
112113
*,
113-
api_version: str = DEFAULT_VERSION,
114+
api_version: Union[str, ApiVersion] = DEFAULT_VERSION,
114115
**kwargs: Any
115116
) -> None:
116117

@@ -239,15 +240,16 @@ async def _populate_header_within_kwargs(uri, header):
239240

240241
@classmethod
241242
def from_connection_string(
242-
cls, conn_str: str, *, api_version: str = DEFAULT_VERSION, **kwargs: Any
243+
cls, conn_str: str, *, api_version: Union[str, ApiVersion] = DEFAULT_VERSION, **kwargs: Any
243244
) -> "ServiceBusAdministrationClient":
244245
"""Create a client from connection string.
245246
246247
:param str conn_str: The connection string of the Service Bus Namespace.
247248
:rtype: ~azure.servicebus.management.aio.ServiceBusAdministrationClient
248-
:keyword str api_version: The Service Bus API version to use for requests. Default value is the most
249+
:keyword api_version: The Service Bus API version to use for requests. Default value is the most
249250
recent service version that is compatible with the current SDK. Setting to an older version may result
250251
in reduced feature compatibility.
252+
:paramtype api_version: str or ApiVersion
251253
"""
252254
(
253255
endpoint,

sdk/servicebus/azure-servicebus/azure/servicebus/management/_management_client.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@
7272
ServiceBusManagementClient as ServiceBusManagementClientImpl,
7373
)
7474
from . import _constants as constants
75-
from ._api_version import DEFAULT_VERSION
75+
from ._api_version import DEFAULT_VERSION, ApiVersion
7676
from ._models import (
7777
AuthorizationRule,
7878
QueueRuntimeProperties,
@@ -100,17 +100,18 @@ class ServiceBusAdministrationClient: # pylint:disable=too-many-public-methods
100100
:param str fully_qualified_namespace: The fully qualified host name for the Service Bus namespace.
101101
:param credential: To authenticate to manage the entities of the ServiceBus namespace.
102102
:type credential: TokenCredential
103-
:keyword str api_version: The Service Bus API version to use for requests. Default value is the most
103+
:keyword api_version: The Service Bus API version to use for requests. Default value is the most
104104
recent service version that is compatible with the current SDK. Setting to an older version may result
105105
in reduced feature compatibility.
106+
:paramtype api_version: str or ApiVersion
106107
"""
107108

108109
def __init__(
109110
self,
110111
fully_qualified_namespace: str,
111112
credential: "TokenCredential",
112113
*,
113-
api_version: str = DEFAULT_VERSION,
114+
api_version: Union[str, ApiVersion] = DEFAULT_VERSION,
114115
**kwargs: Any
115116
) -> None:
116117
self.fully_qualified_namespace = fully_qualified_namespace
@@ -240,14 +241,15 @@ def _populate_header_within_kwargs(uri, header):
240241

241242
@classmethod
242243
def from_connection_string(
243-
cls, conn_str: str, *, api_version: str = DEFAULT_VERSION, **kwargs: Any
244+
cls, conn_str: str, *, api_version: Union[str, ApiVersion] = DEFAULT_VERSION, **kwargs: Any
244245
) -> "ServiceBusAdministrationClient":
245246
"""Create a client from connection string.
246247
247248
:param str conn_str: The connection string of the Service Bus Namespace.
248-
:keyword str api_version: The Service Bus API version to use for requests. Default value is the most
249+
:keyword api_version: The Service Bus API version to use for requests. Default value is the most
249250
recent service version that is compatible with the current SDK. Setting to an older version may result
250251
in reduced feature compatibility.
252+
:paramtype api_version: str or ApiVersion
251253
:rtype: ~azure.servicebus.management.ServiceBusAdministrationClient
252254
"""
253255
(

0 commit comments

Comments
 (0)