From 5b774025bfd0d056c3ba3376070e994fd46f69db Mon Sep 17 00:00:00 2001 From: l0lawrence Date: Fri, 3 Jun 2022 08:05:55 -0700 Subject: [PATCH 1/2] missing docstring --- .../servicebus/aio/_servicebus_client_async.py | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_client_async.py b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_client_async.py index 8f70f6cb4920..998c674c5ac4 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_client_async.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_client_async.py @@ -69,7 +69,15 @@ class ServiceBusClient(object): # pylint: disable=client-accepts-api-version-key :keyword retry_mode: The delay behavior between retry attempts. Supported values are "fixed" or "exponential", where default is "exponential". :paramtype retry_mode: str - + :keyword str custom_endpoint_address: The custom endpoint address to use for establishing a connection to + the Service Bus service, allowing network requests to be routed through any application gateways or + other paths needed for the host environment. Default is None. + The format would be like "sb://:". + If port is not specified in the custom_endpoint_address, by default port 443 will be used. + :keyword str connection_verify: Path to the custom CA_BUNDLE file of the SSL certificate which is used to + authenticate the identity of the connection endpoint. + Default is None in which case `certifi.where()` will be used. + .. admonition:: Example: .. literalinclude:: ../samples/async_samples/sample_code_servicebus_async.py @@ -168,6 +176,14 @@ def from_connection_string( :keyword retry_mode: The delay behavior between retry attempts. Supported values are 'fixed' or 'exponential', where default is 'exponential'. :paramtype retry_mode: str + :keyword str custom_endpoint_address: The custom endpoint address to use for establishing a connection to + the Service Bus service, allowing network requests to be routed through any application gateways or + other paths needed for the host environment. Default is None. + The format would be like "sb://:". + If port is not specified in the custom_endpoint_address, by default port 443 will be used. + :keyword str connection_verify: Path to the custom CA_BUNDLE file of the SSL certificate which is used to + authenticate the identity of the connection endpoint. + Default is None in which case `certifi.where()` will be used. :rtype: ~azure.servicebus.aio.ServiceBusClient .. admonition:: Example: From e9dc26d9758ab927dfc1ac15b7ed8c29d29e0b9a Mon Sep 17 00:00:00 2001 From: l0lawrence Date: Fri, 3 Jun 2022 09:22:50 -0700 Subject: [PATCH 2/2] trailing whitespace --- .../azure/servicebus/aio/_servicebus_client_async.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_client_async.py b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_client_async.py index 998c674c5ac4..fd93e41c6503 100644 --- a/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_client_async.py +++ b/sdk/servicebus/azure-servicebus/azure/servicebus/aio/_servicebus_client_async.py @@ -77,7 +77,7 @@ class ServiceBusClient(object): # pylint: disable=client-accepts-api-version-key :keyword str connection_verify: Path to the custom CA_BUNDLE file of the SSL certificate which is used to authenticate the identity of the connection endpoint. Default is None in which case `certifi.where()` will be used. - + .. admonition:: Example: .. literalinclude:: ../samples/async_samples/sample_code_servicebus_async.py