Skip to content

Commit edccdfa

Browse files
author
Yalin Li
authored
Fix Sphinx on azure-storage-file-share (#35905)
1 parent 9f52890 commit edccdfa

12 files changed

+242
-199
lines changed

sdk/storage/azure-storage-file-share/azure/storage/fileshare/_directory_client.py

Lines changed: 27 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ class ShareDirectoryClient(StorageAccountHostsMixin):
5050
5151
For more optional configuration, please click
5252
`here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share
53-
#optional-configuration>`_.
53+
#optional-configuration>`__.
5454
5555
:param str account_url:
5656
The URI to the storage account. In order to create a client given the full URI to the directory,
@@ -345,6 +345,7 @@ def create_directory(self, **kwargs):
345345
Change time for the directory. If not specified, change time will be set to the current date/time.
346346
347347
.. versionadded:: 12.8.0
348+
348349
This parameter was introduced in API version '2021-06-08'.
349350
350351
:paramtype file_change_time: str or ~datetime.datetime
@@ -356,7 +357,7 @@ def create_directory(self, **kwargs):
356357
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
357358
This value is not tracked or validated on the client. To configure client-side network timesouts
358359
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share
359-
#other-client--per-operation-configuration>`_.
360+
#other-client--per-operation-configuration>`__.
360361
:returns: Directory-updated property dict (Etag and last modified).
361362
:rtype: dict[str, Any]
362363
@@ -408,7 +409,7 @@ def delete_directory(self, **kwargs):
408409
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
409410
This value is not tracked or validated on the client. To configure client-side network timesouts
410411
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share
411-
#other-client--per-operation-configuration>`_.
412+
#other-client--per-operation-configuration>`__.
412413
:rtype: None
413414
414415
.. admonition:: Example:
@@ -428,9 +429,9 @@ def delete_directory(self, **kwargs):
428429

429430
@distributed_trace
430431
def rename_directory(
431-
self, new_name, # type: str
432-
**kwargs # type: Any
433-
):
432+
self, new_name, # type: str
433+
**kwargs # type: Any
434+
):
434435
# type: (...) -> ShareDirectoryClient
435436
"""
436437
Rename the source directory.
@@ -442,7 +443,7 @@ def rename_directory(
442443
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
443444
This value is not tracked or validated on the client. To configure client-side network timesouts
444445
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share
445-
#other-client--per-operation-configuration>`_.
446+
#other-client--per-operation-configuration>`__.
446447
:keyword bool overwrite:
447448
A boolean value for if the destination file already exists, whether this request will
448449
overwrite the file or not. If true, the rename will succeed and will overwrite the
@@ -464,17 +465,18 @@ def rename_directory(
464465
Note: Only one of the file-permission or file-permission-key should be specified.
465466
:keyword file_attributes:
466467
The file system attributes for the directory.
467-
:paramtype file_attributes:~azure.storage.fileshare.NTFSAttributes or str
468+
:paramtype file_attributes: ~azure.storage.fileshare.NTFSAttributes or str
468469
:keyword file_creation_time:
469470
Creation time for the directory.
470-
:paramtype file_creation_time:~datetime.datetime or str
471+
:paramtype file_creation_time: ~datetime.datetime or str
471472
:keyword file_last_write_time:
472473
Last write time for the file.
473-
:paramtype file_last_write_time:~datetime.datetime or str
474+
:paramtype file_last_write_time: ~datetime.datetime or str
474475
:keyword file_change_time:
475476
Change time for the directory. If not specified, change time will be set to the current date/time.
476477
477478
.. versionadded:: 12.8.0
479+
478480
This parameter was introduced in API version '2021-06-08'.
479481
480482
:paramtype file_change_time: str or ~datetime.datetime
@@ -542,20 +544,22 @@ def list_directories_and_files(self, name_starts_with=None, **kwargs):
542544
Possible str values are "timestamps", "Etag", "Attributes", "PermissionKey".
543545
544546
.. versionadded:: 12.6.0
547+
545548
This keyword argument was introduced in API version '2020-10-02'.
546549
547550
:keyword bool include_extended_info:
548551
If this is set to true, file id will be returned in listed results.
549552
550553
.. versionadded:: 12.6.0
554+
551555
This keyword argument was introduced in API version '2020-10-02'.
552556
553557
:keyword int timeout:
554558
Sets the server-side timeout for the operation in seconds. For more details see
555559
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
556560
This value is not tracked or validated on the client. To configure client-side network timesouts
557561
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share
558-
#other-client--per-operation-configuration>`_.
562+
#other-client--per-operation-configuration>`__.
559563
:returns: An auto-paging iterable of dict-like DirectoryProperties and FileProperties
560564
:rtype: ~azure.core.paging.ItemPaged[DirectoryProperties and FileProperties]
561565
@@ -592,7 +596,7 @@ def list_handles(self, recursive=False, **kwargs):
592596
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
593597
This value is not tracked or validated on the client. To configure client-side network timesouts
594598
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share
595-
#other-client--per-operation-configuration>`_.
599+
#other-client--per-operation-configuration>`__.
596600
:returns: An auto-paging iterable of Handle
597601
:rtype: ~azure.core.paging.ItemPaged[~azure.storage.fileshare.Handle]
598602
"""
@@ -621,7 +625,7 @@ def close_handle(self, handle, **kwargs):
621625
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
622626
This value is not tracked or validated on the client. To configure client-side network timesouts
623627
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share
624-
#other-client--per-operation-configuration>`_.
628+
#other-client--per-operation-configuration>`__.
625629
:returns:
626630
The number of handles closed (this may be 0 if the specified handle was not found)
627631
and the number of handles failed to close in a dict.
@@ -664,7 +668,7 @@ def close_all_handles(self, recursive=False, **kwargs):
664668
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
665669
This value is not tracked or validated on the client. To configure client-side network timesouts
666670
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share
667-
#other-client--per-operation-configuration>`_.
671+
#other-client--per-operation-configuration>`__.
668672
:returns: The number of handles closed (this may be 0 if the specified handle was not found)
669673
and the number of handles failed to close in a dict.
670674
:rtype: dict[str, int]
@@ -712,7 +716,7 @@ def get_directory_properties(self, **kwargs):
712716
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
713717
This value is not tracked or validated on the client. To configure client-side network timesouts
714718
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share
715-
#other-client--per-operation-configuration>`_.
719+
#other-client--per-operation-configuration>`__.
716720
:returns: DirectoryProperties
717721
:rtype: ~azure.storage.fileshare.DirectoryProperties
718722
"""
@@ -743,7 +747,7 @@ def set_directory_metadata(self, metadata, **kwargs):
743747
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
744748
This value is not tracked or validated on the client. To configure client-side network timesouts
745749
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share
746-
#other-client--per-operation-configuration>`_.
750+
#other-client--per-operation-configuration>`__.
747751
:returns: Directory-updated property dict (Etag and last modified).
748752
:rtype: dict[str, Any]
749753
"""
@@ -770,7 +774,7 @@ def exists(self, **kwargs):
770774
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
771775
This value is not tracked or validated on the client. To configure client-side network timesouts
772776
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share
773-
#other-client--per-operation-configuration>`_.
777+
#other-client--per-operation-configuration>`__.
774778
:returns: True if the directory exists, False otherwise.
775779
:rtype: bool
776780
"""
@@ -820,6 +824,7 @@ def set_http_headers(self, file_attributes="none", # type: Union[str, NTFSAttri
820824
Change time for the directory. If not specified, change time will be set to the current date/time.
821825
822826
.. versionadded:: 12.8.0
827+
823828
This parameter was introduced in API version '2021-06-08'.
824829
825830
:paramtype file_change_time: str or ~datetime.datetime
@@ -828,7 +833,7 @@ def set_http_headers(self, file_attributes="none", # type: Union[str, NTFSAttri
828833
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
829834
This value is not tracked or validated on the client. To configure client-side network timesouts
830835
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share
831-
#other-client--per-operation-configuration>`_.
836+
#other-client--per-operation-configuration>`__.
832837
:returns: File-updated property dict (Etag and last modified).
833838
:rtype: dict[str, Any]
834839
"""
@@ -867,7 +872,7 @@ def create_subdirectory(
867872
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
868873
This value is not tracked or validated on the client. To configure client-side network timesouts
869874
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share
870-
#other-client--per-operation-configuration>`_.
875+
#other-client--per-operation-configuration>`__.
871876
:returns: ShareDirectoryClient
872877
:rtype: ~azure.storage.fileshare.ShareDirectoryClient
873878
@@ -901,7 +906,7 @@ def delete_subdirectory(
901906
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
902907
This value is not tracked or validated on the client. To configure client-side network timesouts
903908
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share
904-
#other-client--per-operation-configuration>`_.
909+
#other-client--per-operation-configuration>`__.
905910
:rtype: None
906911
907912
.. admonition:: Example:
@@ -959,7 +964,7 @@ def upload_file(
959964
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
960965
This value is not tracked or validated on the client. To configure client-side network timesouts
961966
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share
962-
#other-client--per-operation-configuration>`_.
967+
#other-client--per-operation-configuration>`__.
963968
:keyword str encoding:
964969
Defaults to UTF-8.
965970
:returns: ShareFileClient
@@ -997,7 +1002,7 @@ def delete_file(
9971002
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
9981003
This value is not tracked or validated on the client. To configure client-side network timesouts
9991004
see `here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share
1000-
#other-client--per-operation-configuration>`_.
1005+
#other-client--per-operation-configuration>`__.
10011006
:rtype: None
10021007
10031008
.. admonition:: Example:

0 commit comments

Comments
 (0)