-
Notifications
You must be signed in to change notification settings - Fork 3.2k
Addresses warnings surfaced during p5 doc and API-view generation. #13069
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
KieranBrantnerMagee
merged 11 commits into
Azure:master
from
KieranBrantnerMagee:kibrantn/servicebus/track2-address-doc-gen-warnings
Aug 26, 2020
Merged
Changes from all commits
Commits
Show all changes
11 commits
Select commit
Hold shift + click to select a range
0f02273
Addresses warnings surfaced during p5 doc and API-view generation. R…
KieranBrantnerMagee 563e71d
Fix backticks that were breaking link formatting in markdown in README.
KieranBrantnerMagee de3a9b0
Address mypy issues.
KieranBrantnerMagee 7640f90
pylint fixes
KieranBrantnerMagee e3b585d
Apply suggestions from code review
KieranBrantnerMagee 8c2911e
Address pr comments:
KieranBrantnerMagee 92012c6
Fix line length pylint issue
KieranBrantnerMagee 9a19984
Adjust test to use new ReceivedMessage initialization
KieranBrantnerMagee 409d25c
Ensure new param in mgmt_handlers is appended to not disrupt existing…
KieranBrantnerMagee 42ed190
_build_message was being used in aio code as well, so adjusted to sim…
KieranBrantnerMagee 07dc918
Remove spurious import
KieranBrantnerMagee File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -158,9 +158,9 @@ with ServiceBusClient.from_connection_string(connstr) as client: | |
|
|
||
| ### Receive messages from a queue | ||
|
|
||
| To receive from a queue, you can either perform an ad-hoc receive via "receiver.receive_messages()" or receive persistently through the receiver itself. | ||
| To receive from a queue, you can either perform an ad-hoc receive via `receiver.receive_messages()` or receive persistently through the receiver itself. | ||
|
|
||
| #### Receive messages from a queue through iterating over ServiceBusReceiver | ||
| #### [Receive messages from a queue through iterating over ServiceBusReceiver][streaming_receive_reference] | ||
|
|
||
| ```Python | ||
| from azure.servicebus import ServiceBusClient | ||
|
|
@@ -173,7 +173,7 @@ with ServiceBusClient.from_connection_string(connstr) as client: | |
| # max_wait_time specifies how long the receiver should wait with no incoming messages before stopping receipt. | ||
| # Default is None; to receive forever. | ||
| with client.get_queue_receiver(queue_name, max_wait_time=30) as receiver: | ||
| for msg in receiver: # ServiceBusReceiver instance is a generator | ||
| for msg in receiver: # ServiceBusReceiver instance is a generator. This is equivilent to get_streaming_message_iter(). | ||
| print(str(msg)) | ||
| # If it is desired to halt receiving early, one can break out of the loop here safely. | ||
| ``` | ||
|
|
@@ -183,7 +183,7 @@ with ServiceBusClient.from_connection_string(connstr) as client: | |
| > See [AutoLockRenewer](#autolockrenew) for a helper to perform this in the background automatically. | ||
| > Lock duration is set in Azure on the queue or topic itself. | ||
|
|
||
| #### [Receive messages from a queue through `ServiceBusReceiver.receive_messages()`][receive_reference] | ||
| #### [Receive messages from a queue through ServiceBusReceiver.receive_messages()][receive_reference] | ||
|
|
||
| > **NOTE:** `ServiceBusReceiver.receive_messages()` receives a single or constrained list of messages through an ad-hoc method call, as opposed to receiving perpetually from the generator. It always returns a list. | ||
|
|
||
|
|
@@ -446,14 +446,14 @@ contact [[email protected]](mailto:[email protected]) with any additio | |
| [service_bus_overview]: https://docs.microsoft.com/azure/service-bus-messaging/service-bus-messaging-overview | ||
| [queue_status_codes]: https://docs.microsoft.com/rest/api/servicebus/create-queue#response-codes | ||
| [service_bus_docs]: https://docs.microsoft.com/azure/service-bus/ | ||
| [service_bus_mgmt_docs]: https://docs.microsoft.com/en-us/python/api/overview/azure/servicebus/management?view=azure-python | ||
| [queue_concept]: https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-messaging-overview#queues | ||
| [topic_concept]: https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-messaging-overview#topics | ||
| [subscription_concept]: https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-queues-topics-subscriptions#topics-and-subscriptions | ||
| [azure_namespace_creation]: https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-create-namespace-portal | ||
| [service_bus_mgmt_docs]: https://docs.microsoft.com/python/api/overview/azure/servicebus/management?view=azure-python | ||
| [queue_concept]: https://docs.microsoft.com/azure/service-bus-messaging/service-bus-messaging-overview#queues | ||
| [topic_concept]: https://docs.microsoft.com/azure/service-bus-messaging/service-bus-messaging-overview#topics | ||
| [subscription_concept]: https://docs.microsoft.com/azure/service-bus-messaging/service-bus-queues-topics-subscriptions#topics-and-subscriptions | ||
| [azure_namespace_creation]: https://docs.microsoft.com/azure/service-bus-messaging/service-bus-create-namespace-portal | ||
| [servicebus_management_repository]: https://github.com/Azure/azure-sdk-for-python/tree/master/sdk/servicebus/azure-mgmt-servicebus | ||
| [get_servicebus_conn_str]: https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-create-namespace-portal#get-the-connection-string | ||
| [servicebus_aad_authentication]: https://docs.microsoft.com/en-us/azure/service-bus-messaging/service-bus-authentication-and-authorization | ||
| [get_servicebus_conn_str]: https://docs.microsoft.com/azure/service-bus-messaging/service-bus-create-namespace-portal#get-the-connection-string | ||
| [servicebus_aad_authentication]: https://docs.microsoft.com/azure/service-bus-messaging/service-bus-authentication-and-authorization | ||
| [token_credential_interface]: ../../core/azure-core/azure/core/credentials.py | ||
| [pypi_azure_identity]: https://pypi.org/project/azure-identity/ | ||
| [message_reference]: https://azuresdkdocs.blob.core.windows.net/$web/python/azure-servicebus/latest/azure.servicebus.html#azure.servicebus.Message | ||
|
|
@@ -462,6 +462,7 @@ contact [[email protected]](mailto:[email protected]) with any additio | |
| [client_reference]: https://azuresdkdocs.blob.core.windows.net/$web/python/azure-servicebus/latest/azure.servicebus.html#azure.servicebus.ServiceBusClient | ||
| [send_reference]: https://azuresdkdocs.blob.core.windows.net/$web/python/azure-servicebus/latest/azure.servicebus.html?highlight=send_messages#azure.servicebus.ServiceBusSender.send_messages | ||
| [receive_reference]: https://azuresdkdocs.blob.core.windows.net/$web/python/azure-servicebus/latest/azure.servicebus.html?highlight=receive#azure.servicebus.ServiceBusReceiver.receive_messages | ||
| [streaming_receive_reference]: https://azuresdkdocs.blob.core.windows.net/$web/python/azure-servicebus/latest/azure.servicebus.html?highlight=get_streaming_message_iter#azure.servicebus.ServiceBusReceiver.get_streaming_message_iter | ||
| [session_receive_reference]: https://azuresdkdocs.blob.core.windows.net/$web/python/azure-servicebus/latest/azure.servicebus.html?highlight=receive#azure.servicebus.ServiceBusSessionReceiver.receive_messages | ||
| [session_send_reference]: https://azuresdkdocs.blob.core.windows.net/$web/python/azure-servicebus/latest/azure.servicebus.html?highlight=session_id#azure.servicebus.Message.session_id | ||
| [complete_reference]: https://azuresdkdocs.blob.core.windows.net/$web/python/azure-servicebus/latest/azure.servicebus.html?highlight=complete#azure.servicebus.ReceivedMessage.complete | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.