Skip to content

Commit 3f1ad07

Browse files
Resolved queue references (Azure#40714)
1 parent 858389b commit 3f1ad07

File tree

4 files changed

+39
-39
lines changed

4 files changed

+39
-39
lines changed

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

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -73,12 +73,12 @@ class QueueClient(StorageAccountHostsMixin, StorageEncryptionMixin):
7373
:keyword str secondary_hostname:
7474
The hostname of the secondary endpoint.
7575
:keyword message_encode_policy: The encoding policy to use on outgoing messages.
76-
Default is not to encode messages. Other options include :class:`TextBase64EncodePolicy`,
77-
:class:`BinaryBase64EncodePolicy` or `None`.
76+
Default is not to encode messages. Other options include ~azure.storage.queue.TextBase64EncodePolicy,
77+
~azure.storage.queue.BinaryBase64EncodePolicy or `None`.
7878
:paramtype message_encode_policy: BinaryBase64EncodePolicy or TextBase64EncodePolicy or None
7979
:keyword message_decode_policy: The decoding policy to use on incoming messages.
80-
Default value is not to decode messages. Other options include :class:`TextBase64DecodePolicy`,
81-
:class:`BinaryBase64DecodePolicy` or `None`.
80+
Default value is not to decode messages. Other options include ~azure.storage.queue.TextBase64DecodePolicy,
81+
~azure.storage.queue.BinaryBase64DecodePolicy or `None`.
8282
:paramtype message_decode_policy: BinaryBase64DecodePolicy or TextBase64DecodePolicy or None
8383
:keyword str audience: The audience to use when requesting tokens for Azure Active Directory
8484
authentication. Only has an effect when credential is of type TokenCredential. The value could be
@@ -167,12 +167,12 @@ def from_queue_url(
167167
:keyword str secondary_hostname:
168168
The hostname of the secondary endpoint.
169169
:keyword message_encode_policy: The encoding policy to use on outgoing messages.
170-
Default is not to encode messages. Other options include :class:`TextBase64EncodePolicy`,
171-
:class:`BinaryBase64EncodePolicy` or `None`.
170+
Default is not to encode messages. Other options include ~azure.storage.queue.TextBase64EncodePolicy,
171+
~azure.storage.queue.BinaryBase64EncodePolicy or `None`.
172172
:paramtype message_encode_policy: BinaryBase64EncodePolicy or TextBase64EncodePolicy or None
173173
:keyword message_decode_policy: The decoding policy to use on incoming messages.
174-
Default value is not to decode messages. Other options include :class:`TextBase64DecodePolicy`,
175-
:class:`BinaryBase64DecodePolicy` or `None`.
174+
Default value is not to decode messages. Other options include ~azure.storage.queue.TextBase64DecodePolicy,
175+
~azure.storage.queue.BinaryBase64DecodePolicy or `None`.
176176
:paramtype message_decode_policy: BinaryBase64DecodePolicy or TextBase64DecodePolicy or None
177177
:keyword str audience: The audience to use when requesting tokens for Azure Active Directory
178178
authentication. Only has an effect when credential is of type TokenCredential. The value could be
@@ -232,12 +232,12 @@ def from_connection_string(
232232
:keyword str secondary_hostname:
233233
The hostname of the secondary endpoint.
234234
:keyword message_encode_policy: The encoding policy to use on outgoing messages.
235-
Default is not to encode messages. Other options include :class:`TextBase64EncodePolicy`,
236-
:class:`BinaryBase64EncodePolicy` or `None`.
235+
Default is not to encode messages. Other options include ~azure.storage.queue.TextBase64EncodePolicy,
236+
~azure.storage.queue.BinaryBase64EncodePolicy or `None`.
237237
:paramtype message_encode_policy: BinaryBase64EncodePolicy or TextBase64EncodePolicy or None
238238
:keyword message_decode_policy: The decoding policy to use on incoming messages.
239-
Default value is not to decode messages. Other options include :class:`TextBase64DecodePolicy`,
240-
:class:`BinaryBase64DecodePolicy` or `None`.
239+
Default value is not to decode messages. Other options include ~azure.storage.queue.TextBase64DecodePolicy,
240+
~azure.storage.queue.BinaryBase64DecodePolicy or `None`.
241241
:paramtype message_decode_policy: BinaryBase64DecodePolicy or TextBase64DecodePolicy or None
242242
:keyword str audience: The audience to use when requesting tokens for Azure Active Directory
243243
authentication. Only has an effect when credential is of type TokenCredential. The value could be
@@ -325,7 +325,7 @@ def delete_queue(self, *, timeout: Optional[int] = None, **kwargs: Any) -> None:
325325
326326
Note that deleting a queue is likely to take at least 40 seconds to complete.
327327
If an operation is attempted against the queue while it was being deleted,
328-
an :class:`HttpResponseError` will be thrown.
328+
an ~azure.core.exceptions.HttpResponseError will be thrown.
329329
330330
:keyword int timeout:
331331
Sets the server-side timeout for the operation in seconds. For more details see
@@ -467,7 +467,7 @@ def set_queue_access_policy(
467467
When you establish a stored access policy on a queue, it may take up to
468468
30 seconds to take effect. During this interval, a shared access signature
469469
that is associated with the stored access policy will throw an
470-
:class:`HttpResponseError` until the access policy becomes active.
470+
~azure.core.exceptions.HttpResponseError until the access policy becomes active.
471471
472472
:param signed_identifiers:
473473
SignedIdentifier access policies to associate with the queue.
@@ -550,7 +550,7 @@ def send_message(
550550
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
551551
#other-client--per-operation-configuration>`__.
552552
:return:
553-
A :class:`~azure.storage.queue.QueueMessage` object.
553+
A ~azure.storage.queue.QueueMessage object.
554554
This object is also populated with the content, although it is not
555555
returned from the service.
556556
:rtype: ~azure.storage.queue.QueueMessage
@@ -831,7 +831,7 @@ def update_message(
831831
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
832832
#other-client--per-operation-configuration>`__.
833833
:return:
834-
A :class:`~azure.storage.queue.QueueMessage` object. For convenience,
834+
A ~azure.storage.queue.QueueMessage object. For convenience,
835835
this object is also populated with the content, although it is not returned by the service.
836836
:rtype: ~azure.storage.queue.QueueMessage
837837
@@ -948,10 +948,10 @@ def peek_messages(
948948
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
949949
#other-client--per-operation-configuration>`__.
950950
:return:
951-
A list of :class:`~azure.storage.queue.QueueMessage` objects. Note that
951+
A list of ~azure.storage.queue.QueueMessage objects. Note that
952952
next_visible_on and pop_receipt will not be populated as peek does
953953
not pop the message and can only retrieve already visible messages.
954-
:rtype: list[~azure.storage.queue.QueueMessage]
954+
:rtype: List[~azure.storage.queue.QueueMessage]
955955
956956
.. admonition:: Example:
957957

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
@@ -406,7 +406,7 @@ def delete_queue(
406406
407407
Note that deleting a queue is likely to take at least 40 seconds to complete.
408408
If an operation is attempted against the queue while it was being deleted,
409-
an :class:`HttpResponseError` will be thrown.
409+
an ~azure.core.exceptions.HttpResponseError will be thrown.
410410
411411
:param queue:
412412
The queue to delete. This can either be the name of the queue,
@@ -438,7 +438,7 @@ def get_queue_client(self, queue: Union["QueueProperties", str], **kwargs: Any)
438438
The queue. This can either be the name of the queue,
439439
or an instance of QueueProperties.
440440
:type queue: str or ~azure.storage.queue.QueueProperties
441-
:returns: A :class:`~azure.storage.queue.QueueClient` object.
441+
:returns: A ~azure.storage.queue.QueueClient object.
442442
:rtype: ~azure.storage.queue.QueueClient
443443
444444
.. admonition:: Example:

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

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -79,12 +79,12 @@ class QueueClient( # type: ignore [misc]
7979
:keyword str secondary_hostname:
8080
The hostname of the secondary endpoint.
8181
:keyword message_encode_policy: The encoding policy to use on outgoing messages.
82-
Default is not to encode messages. Other options include :class:`TextBase64EncodePolicy`,
83-
:class:`BinaryBase64EncodePolicy` or `None`.
82+
Default is not to encode messages. Other options include ~azure.storage.queue.TextBase64EncodePolicy,
83+
~azure.storage.queue.BinaryBase64EncodePolicy or `None`.
8484
:paramtype message_encode_policy: BinaryBase64EncodePolicy or TextBase64EncodePolicy or None
8585
:keyword message_decode_policy: The decoding policy to use on incoming messages.
86-
Default value is not to decode messages. Other options include :class:`TextBase64DecodePolicy`,
87-
:class:`BinaryBase64DecodePolicy` or `None`.
86+
Default value is not to decode messages. Other options include ~azure.storage.queue.TextBase64DecodePolicy,
87+
~azure.storage.queue.BinaryBase64DecodePolicy or `None`.
8888
:paramtype message_decode_policy: BinaryBase64DecodePolicy or TextBase64DecodePolicy or None
8989
:keyword str audience: The audience to use when requesting tokens for Azure Active Directory
9090
authentication. Only has an effect when credential is of type TokenCredential. The value could be
@@ -190,12 +190,12 @@ def from_queue_url(
190190
:keyword str secondary_hostname:
191191
The hostname of the secondary endpoint.
192192
:keyword message_encode_policy: The encoding policy to use on outgoing messages.
193-
Default is not to encode messages. Other options include :class:`TextBase64EncodePolicy`,
194-
:class:`BinaryBase64EncodePolicy` or `None`.
193+
Default is not to encode messages. Other options include ~azure.storage.queue.TextBase64EncodePolicy,
194+
~azure.storage.queue.BinaryBase64EncodePolicy or `None`.
195195
:paramtype message_encode_policy: BinaryBase64EncodePolicy or TextBase64EncodePolicy or None
196196
:keyword message_decode_policy: The decoding policy to use on incoming messages.
197-
Default value is not to decode messages. Other options include :class:`TextBase64DecodePolicy`,
198-
:class:`BinaryBase64DecodePolicy` or `None`.
197+
Default value is not to decode messages. Other options include ~azure.storage.queue.TextBase64DecodePolicy,
198+
~azure.storage.queue.BinaryBase64DecodePolicy or `None`.
199199
:paramtype message_decode_policy: BinaryBase64DecodePolicy or TextBase64DecodePolicy or None
200200
:keyword str audience: The audience to use when requesting tokens for Azure Active Directory
201201
authentication. Only has an effect when credential is of type TokenCredential. The value could be
@@ -255,12 +255,12 @@ def from_connection_string(
255255
:keyword str secondary_hostname:
256256
The hostname of the secondary endpoint.
257257
:keyword message_encode_policy: The encoding policy to use on outgoing messages.
258-
Default is not to encode messages. Other options include :class:`TextBase64EncodePolicy`,
259-
:class:`BinaryBase64EncodePolicy` or `None`.
258+
Default is not to encode messages. Other options include ~azure.storage.queue.TextBase64EncodePolicy,
259+
~azure.storage.queue.BinaryBase64EncodePolicy or `None`.
260260
:paramtype message_encode_policy: BinaryBase64EncodePolicy or TextBase64EncodePolicy or None
261261
:keyword message_decode_policy: The decoding policy to use on incoming messages.
262-
Default value is not to decode messages. Other options include :class:`TextBase64DecodePolicy`,
263-
:class:`BinaryBase64DecodePolicy` or `None`.
262+
Default value is not to decode messages. Other options include ~azure.storage.queue.TextBase64DecodePolicy,
263+
~azure.storage.queue.BinaryBase64DecodePolicy or `None`.
264264
:paramtype message_decode_policy: BinaryBase64DecodePolicy or TextBase64DecodePolicy or None
265265
:keyword str audience: The audience to use when requesting tokens for Azure Active Directory
266266
authentication. Only has an effect when credential is of type TokenCredential. The value could be
@@ -348,7 +348,7 @@ async def delete_queue(self, *, timeout: Optional[int] = None, **kwargs: Any) ->
348348
349349
Note that deleting a queue is likely to take at least 40 seconds to complete.
350350
If an operation is attempted against the queue while it was being deleted,
351-
an :class:`HttpResponseError` will be thrown.
351+
an ~azure.core.exceptions.HttpResponseError will be thrown.
352352
353353
:keyword int timeout:
354354
Sets the server-side timeout for the operation in seconds. For more details see
@@ -490,7 +490,7 @@ async def set_queue_access_policy(
490490
When you establish a stored access policy on a queue, it may take up to
491491
30 seconds to take effect. During this interval, a shared access signature
492492
that is associated with the stored access policy will throw an
493-
:class:`HttpResponseError` until the access policy becomes active.
493+
~azure.core.exceptions.HttpResponseError until the access policy becomes active.
494494
495495
:param signed_identifiers:
496496
SignedIdentifier access policies to associate with the queue.
@@ -573,7 +573,7 @@ async def send_message(
573573
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
574574
#other-client--per-operation-configuration>`__.
575575
:return:
576-
A :class:`~azure.storage.queue.QueueMessage` object.
576+
A ~azure.storage.queue.QueueMessage object.
577577
This object is also populated with the content, although it is not
578578
returned from the service.
579579
:rtype: ~azure.storage.queue.QueueMessage
@@ -844,7 +844,7 @@ async def update_message(
844844
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
845845
#other-client--per-operation-configuration>`__.
846846
:return:
847-
A :class:`~azure.storage.queue.QueueMessage` object. For convenience,
847+
A ~azure.storage.queue.QueueMessage object. For convenience,
848848
this object is also populated with the content, although it is not returned by the service.
849849
:rtype: ~azure.storage.queue.QueueMessage
850850
@@ -961,7 +961,7 @@ async def peek_messages(
961961
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-queue
962962
#other-client--per-operation-configuration>`__.
963963
:return:
964-
A list of :class:`~azure.storage.queue.QueueMessage` objects. Note that
964+
A list of ~azure.storage.queue.QueueMessage objects. Note that
965965
next_visible_on and pop_receipt will not be populated as peek does
966966
not pop the message and can only retrieve already visible messages.
967967
:rtype: list[~azure.storage.queue.QueueMessage]

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -405,7 +405,7 @@ async def delete_queue(
405405
406406
Note that deleting a queue is likely to take at least 40 seconds to complete.
407407
If an operation is attempted against the queue while it was being deleted,
408-
an :class:`HttpResponseError` will be thrown.
408+
an ~azure.core.exceptions.HttpResponseError will be thrown.
409409
410410
:param queue:
411411
The queue to delete. This can either be the name of the queue,
@@ -437,7 +437,7 @@ def get_queue_client(self, queue: Union["QueueProperties", str], **kwargs: Any)
437437
The queue. This can either be the name of the queue,
438438
or an instance of QueueProperties.
439439
:type queue: str or ~azure.storage.queue.QueueProperties
440-
:returns: A :class:`~azure.storage.queue.aio.QueueClient` object.
440+
:returns: A ~azure.storage.queue.aio.QueueClient object.
441441
:rtype: ~azure.storage.queue.aio.QueueClient
442442
443443
.. admonition:: Example:

0 commit comments

Comments
 (0)