Skip to content

Commit 0bdb68d

Browse files
author
Yalin Li
authored
Fix Sphinx on azure-storage-queue (#35129)
1 parent 46607a9 commit 0bdb68d

File tree

5 files changed

+30
-28
lines changed

5 files changed

+30
-28
lines changed

sdk/storage/azure-storage-queue/azure/storage/queue/_queue_client.py

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class QueueClient(StorageAccountHostsMixin, StorageEncryptionMixin):
4141
4242
For more optional configuration, please click
4343
`here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
44-
#optional-configuration>`_.
44+
#optional-configuration>`__.
4545
4646
:param str account_url:
4747
The URL to the storage account. In order to create a client given the full URI to the queue,
@@ -206,7 +206,7 @@ def create_queue(
206206
https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations.
207207
This value is not tracked or validated on the client. To configure client-side network timesouts
208208
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
209-
#other-client--per-operation-configuration>`_.
209+
#other-client--per-operation-configuration>`__.
210210
:return: None or the result of cls(response)
211211
:rtype: None
212212
:raises: StorageErrorException
@@ -250,7 +250,7 @@ def delete_queue(self, **kwargs: Any) -> None:
250250
https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations.
251251
This value is not tracked or validated on the client. To configure client-side network timesouts
252252
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
253-
#other-client--per-operation-configuration>`_.
253+
#other-client--per-operation-configuration>`__.
254254
:rtype: None
255255
256256
.. admonition:: Example:
@@ -317,7 +317,7 @@ def set_queue_metadata(
317317
https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations.
318318
This value is not tracked or validated on the client. To configure client-side network timesouts
319319
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
320-
#other-client--per-operation-configuration>`_.
320+
#other-client--per-operation-configuration>`__.
321321
:return: A dictionary of response headers.
322322
:rtype: Dict[str, Any]
323323
@@ -352,7 +352,7 @@ def get_queue_access_policy(self, **kwargs: Any) -> Dict[str, AccessPolicy]:
352352
https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations.
353353
This value is not tracked or validated on the client. To configure client-side network timesouts
354354
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
355-
#other-client--per-operation-configuration>`_.
355+
#other-client--per-operation-configuration>`__.
356356
:return: A dictionary of access policies associated with the queue.
357357
:rtype: Dict[str, ~azure.storage.queue.AccessPolicy]
358358
"""
@@ -395,7 +395,7 @@ def set_queue_access_policy(
395395
https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations.
396396
This value is not tracked or validated on the client. To configure client-side network timesouts
397397
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
398-
#other-client--per-operation-configuration>`_.
398+
#other-client--per-operation-configuration>`__.
399399
400400
.. admonition:: Example:
401401
@@ -466,7 +466,7 @@ def send_message(
466466
https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations.
467467
This value is not tracked or validated on the client. To configure client-side network timesouts
468468
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
469-
#other-client--per-operation-configuration>`_.
469+
#other-client--per-operation-configuration>`__.
470470
:return:
471471
A :class:`~azure.storage.queue.QueueMessage` object.
472472
This object is also populated with the content although it is not
@@ -558,7 +558,7 @@ def receive_message(
558558
https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations.
559559
This value is not tracked or validated on the client. To configure client-side network timesouts
560560
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
561-
#other-client--per-operation-configuration>`_.
561+
#other-client--per-operation-configuration>`__.
562562
:return:
563563
Returns a message from the Queue or None if the Queue is empty.
564564
:rtype: ~azure.storage.queue.QueueMessage or None
@@ -627,6 +627,7 @@ def receive_messages(
627627
a single message is retrieved from the queue with this operation.
628628
`by_page()` can be used to provide a page iterator on the AsyncItemPaged if messages_per_page is set.
629629
`next()` can be used to get the next page.
630+
630631
.. admonition:: Example:
631632
632633
.. literalinclude:: ../samples/queue_samples_message.py
@@ -650,7 +651,7 @@ def receive_messages(
650651
https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations.
651652
This value is not tracked or validated on the client. To configure client-side network timesouts
652653
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
653-
#other-client--per-operation-configuration>`_.
654+
#other-client--per-operation-configuration>`__.
654655
:return:
655656
Returns a message iterator of dict-like Message objects.
656657
:rtype: ~azure.core.paging.ItemPaged[~azure.storage.queue.QueueMessage]
@@ -737,7 +738,7 @@ def update_message(
737738
https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations.
738739
This value is not tracked or validated on the client. To configure client-side network timesouts
739740
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
740-
#other-client--per-operation-configuration>`_.
741+
#other-client--per-operation-configuration>`__.
741742
:return:
742743
A :class:`~azure.storage.queue.QueueMessage` object. For convenience,
743744
this object is also populated with the content, although it is not returned by the service.
@@ -849,7 +850,7 @@ def peek_messages(
849850
https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations.
850851
This value is not tracked or validated on the client. To configure client-side network timesouts
851852
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
852-
#other-client--per-operation-configuration>`_.
853+
#other-client--per-operation-configuration>`__.
853854
:return:
854855
A list of :class:`~azure.storage.queue.QueueMessage` objects. Note that
855856
next_visible_on and pop_receipt will not be populated as peek does
@@ -903,7 +904,7 @@ def clear_messages(self, **kwargs: Any) -> None:
903904
https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations.
904905
This value is not tracked or validated on the client. To configure client-side network timesouts
905906
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
906-
#other-client--per-operation-configuration>`_.
907+
#other-client--per-operation-configuration>`__.
907908
908909
.. admonition:: Example:
909910
@@ -949,7 +950,7 @@ def delete_message(
949950
https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations.
950951
This value is not tracked or validated on the client. To configure client-side network timesouts
951952
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
952-
#other-client--per-operation-configuration>`_.
953+
#other-client--per-operation-configuration>`__.
953954
954955
.. admonition:: Example:
955956

sdk/storage/azure-storage-queue/azure/storage/queue/_queue_service_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ class QueueServiceClient(StorageAccountHostsMixin, StorageEncryptionMixin):
4747
4848
For more optional configuration, please click
4949
`here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
50-
#optional-configuration>`_.
50+
#optional-configuration>`__.
5151
5252
:param str account_url:
5353
The URL to the queue service endpoint. Any other entities included
@@ -291,7 +291,7 @@ def list_queues(
291291
https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations.
292292
This value is not tracked or validated on the client. To configure client-side network timesouts
293293
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
294-
#other-client--per-operation-configuration>`_. This function may make multiple
294+
#other-client--per-operation-configuration>`__. This function may make multiple
295295
calls to the service in which case the timeout value specified will be
296296
applied to each individual call.
297297
:returns: An iterable (auto-paging) of QueueProperties.

sdk/storage/azure-storage-queue/azure/storage/queue/aio/_queue_client_async.py

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -221,7 +221,7 @@ async def create_queue(
221221
https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations.
222222
This value is not tracked or validated on the client. To configure client-side network timesouts
223223
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
224-
#other-client--per-operation-configuration>`_.
224+
#other-client--per-operation-configuration>`__.
225225
:return: None or the result of cls(response)
226226
:rtype: None
227227
:raises: StorageErrorException
@@ -262,7 +262,7 @@ async def delete_queue(self, **kwargs: Any) -> None:
262262
https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations.
263263
This value is not tracked or validated on the client. To configure client-side network timesouts
264264
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
265-
#other-client--per-operation-configuration>`_.
265+
#other-client--per-operation-configuration>`__.
266266
:rtype: None
267267
268268
.. admonition:: Example:
@@ -327,7 +327,7 @@ async def set_queue_metadata(
327327
https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations.
328328
This value is not tracked or validated on the client. To configure client-side network timesouts
329329
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
330-
#other-client--per-operation-configuration>`_.
330+
#other-client--per-operation-configuration>`__.
331331
:return: A dictionary of response headers.
332332
:rtype: Dict[str, Any]
333333
@@ -360,7 +360,7 @@ async def get_queue_access_policy(self, **kwargs: Any) -> Dict[str, AccessPolicy
360360
https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations.
361361
This value is not tracked or validated on the client. To configure client-side network timesouts
362362
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
363-
#other-client--per-operation-configuration>`_.
363+
#other-client--per-operation-configuration>`__.
364364
:return: A dictionary of access policies associated with the queue.
365365
:rtype: dict(str, ~azure.storage.queue.AccessPolicy)
366366
"""
@@ -402,7 +402,7 @@ async def set_queue_access_policy(
402402
https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations.
403403
This value is not tracked or validated on the client. To configure client-side network timesouts
404404
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
405-
#other-client--per-operation-configuration>`_.
405+
#other-client--per-operation-configuration>`__.
406406
407407
.. admonition:: Example:
408408
@@ -471,7 +471,7 @@ async def send_message(
471471
https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations.
472472
This value is not tracked or validated on the client. To configure client-side network timesouts
473473
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
474-
#other-client--per-operation-configuration>`_.
474+
#other-client--per-operation-configuration>`__.
475475
:return:
476476
A :class:`~azure.storage.queue.QueueMessage` object.
477477
This object is also populated with the content although it is not
@@ -564,7 +564,7 @@ async def receive_message(
564564
https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations.
565565
This value is not tracked or validated on the client. To configure client-side network timesouts
566566
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
567-
#other-client--per-operation-configuration>`_.
567+
#other-client--per-operation-configuration>`__.
568568
:return:
569569
Returns a message from the Queue or None if the Queue is empty.
570570
:rtype: ~azure.storage.queue.QueueMessage or None
@@ -647,7 +647,7 @@ def receive_messages(
647647
https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations.
648648
This value is not tracked or validated on the client. To configure client-side network timesouts
649649
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
650-
#other-client--per-operation-configuration>`_.
650+
#other-client--per-operation-configuration>`__.
651651
:return:
652652
Returns a message iterator of dict-like Message objects.
653653
:rtype: ~azure.core.async_paging.AsyncItemPaged[~azure.storage.queue.QueueMessage]
@@ -734,7 +734,7 @@ async def update_message(
734734
https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations.
735735
This value is not tracked or validated on the client. To configure client-side network timesouts
736736
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
737-
#other-client--per-operation-configuration>`_.
737+
#other-client--per-operation-configuration>`__.
738738
:return:
739739
A :class:`~azure.storage.queue.QueueMessage` object. For convenience,
740740
this object is also populated with the content, although it is not returned by the service.
@@ -849,7 +849,7 @@ async def peek_messages(
849849
https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations.
850850
This value is not tracked or validated on the client. To configure client-side network timesouts
851851
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
852-
#other-client--per-operation-configuration>`_.
852+
#other-client--per-operation-configuration>`__.
853853
:return:
854854
A list of :class:`~azure.storage.queue.QueueMessage` objects. Note that
855855
next_visible_on and pop_receipt will not be populated as peek does
@@ -901,7 +901,7 @@ async def clear_messages(self, **kwargs: Any) -> None:
901901
https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations.
902902
This value is not tracked or validated on the client. To configure client-side network timesouts
903903
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
904-
#other-client--per-operation-configuration>`_.
904+
#other-client--per-operation-configuration>`__.
905905
906906
.. admonition:: Example:
907907
@@ -947,7 +947,7 @@ async def delete_message(
947947
https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations.
948948
This value is not tracked or validated on the client. To configure client-side network timesouts
949949
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
950-
#other-client--per-operation-configuration>`_.
950+
#other-client--per-operation-configuration>`__.
951951
952952
.. admonition:: Example:
953953

sdk/storage/azure-storage-queue/azure/storage/queue/aio/_queue_service_client_async.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ def list_queues(
287287
https://learn.microsoft.com/en-us/rest/api/storageservices/setting-timeouts-for-queue-service-operations.
288288
This value is not tracked or validated on the client. To configure client-side network timesouts
289289
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
290-
#other-client--per-operation-configuration>`_. This function may make multiple
290+
#other-client--per-operation-configuration>`__. This function may make multiple
291291
calls to the service in which case the timeout value specified will be
292292
applied to each individual call.
293293
:returns: An iterable (auto-paging) of QueueProperties.

sdk/storage/azure-storage-queue/pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@ mypy = true
33
pyright = false
44
type_check_samples = true
55
verifytypes = true
6+
strict_sphinx = true

0 commit comments

Comments
 (0)