@@ -50,7 +50,7 @@ class ShareDirectoryClient(StorageAccountHostsMixin):
50
50
51
51
For more optional configuration, please click
52
52
`here <https://github.com/Azure/azure-sdk-for-python/tree/main/sdk/storage/azure-storage-file-share
53
- #optional-configuration>`_ .
53
+ #optional-configuration>`__ .
54
54
55
55
:param str account_url:
56
56
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):
345
345
Change time for the directory. If not specified, change time will be set to the current date/time.
346
346
347
347
.. versionadded:: 12.8.0
348
+
348
349
This parameter was introduced in API version '2021-06-08'.
349
350
350
351
:paramtype file_change_time: str or ~datetime.datetime
@@ -356,7 +357,7 @@ def create_directory(self, **kwargs):
356
357
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
357
358
This value is not tracked or validated on the client. To configure client-side network timesouts
358
359
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>`__ .
360
361
:returns: Directory-updated property dict (Etag and last modified).
361
362
:rtype: dict[str, Any]
362
363
@@ -408,7 +409,7 @@ def delete_directory(self, **kwargs):
408
409
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
409
410
This value is not tracked or validated on the client. To configure client-side network timesouts
410
411
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>`__ .
412
413
:rtype: None
413
414
414
415
.. admonition:: Example:
@@ -428,9 +429,9 @@ def delete_directory(self, **kwargs):
428
429
429
430
@distributed_trace
430
431
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
+ ):
434
435
# type: (...) -> ShareDirectoryClient
435
436
"""
436
437
Rename the source directory.
@@ -442,7 +443,7 @@ def rename_directory(
442
443
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
443
444
This value is not tracked or validated on the client. To configure client-side network timesouts
444
445
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>`__ .
446
447
:keyword bool overwrite:
447
448
A boolean value for if the destination file already exists, whether this request will
448
449
overwrite the file or not. If true, the rename will succeed and will overwrite the
@@ -464,17 +465,18 @@ def rename_directory(
464
465
Note: Only one of the file-permission or file-permission-key should be specified.
465
466
:keyword file_attributes:
466
467
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
468
469
:keyword file_creation_time:
469
470
Creation time for the directory.
470
- :paramtype file_creation_time:~datetime.datetime or str
471
+ :paramtype file_creation_time: ~datetime.datetime or str
471
472
:keyword file_last_write_time:
472
473
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
474
475
:keyword file_change_time:
475
476
Change time for the directory. If not specified, change time will be set to the current date/time.
476
477
477
478
.. versionadded:: 12.8.0
479
+
478
480
This parameter was introduced in API version '2021-06-08'.
479
481
480
482
:paramtype file_change_time: str or ~datetime.datetime
@@ -542,20 +544,22 @@ def list_directories_and_files(self, name_starts_with=None, **kwargs):
542
544
Possible str values are "timestamps", "Etag", "Attributes", "PermissionKey".
543
545
544
546
.. versionadded:: 12.6.0
547
+
545
548
This keyword argument was introduced in API version '2020-10-02'.
546
549
547
550
:keyword bool include_extended_info:
548
551
If this is set to true, file id will be returned in listed results.
549
552
550
553
.. versionadded:: 12.6.0
554
+
551
555
This keyword argument was introduced in API version '2020-10-02'.
552
556
553
557
:keyword int timeout:
554
558
Sets the server-side timeout for the operation in seconds. For more details see
555
559
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
556
560
This value is not tracked or validated on the client. To configure client-side network timesouts
557
561
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>`__ .
559
563
:returns: An auto-paging iterable of dict-like DirectoryProperties and FileProperties
560
564
:rtype: ~azure.core.paging.ItemPaged[DirectoryProperties and FileProperties]
561
565
@@ -592,7 +596,7 @@ def list_handles(self, recursive=False, **kwargs):
592
596
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
593
597
This value is not tracked or validated on the client. To configure client-side network timesouts
594
598
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>`__ .
596
600
:returns: An auto-paging iterable of Handle
597
601
:rtype: ~azure.core.paging.ItemPaged[~azure.storage.fileshare.Handle]
598
602
"""
@@ -621,7 +625,7 @@ def close_handle(self, handle, **kwargs):
621
625
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
622
626
This value is not tracked or validated on the client. To configure client-side network timesouts
623
627
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>`__ .
625
629
:returns:
626
630
The number of handles closed (this may be 0 if the specified handle was not found)
627
631
and the number of handles failed to close in a dict.
@@ -664,7 +668,7 @@ def close_all_handles(self, recursive=False, **kwargs):
664
668
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
665
669
This value is not tracked or validated on the client. To configure client-side network timesouts
666
670
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>`__ .
668
672
:returns: The number of handles closed (this may be 0 if the specified handle was not found)
669
673
and the number of handles failed to close in a dict.
670
674
:rtype: dict[str, int]
@@ -712,7 +716,7 @@ def get_directory_properties(self, **kwargs):
712
716
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
713
717
This value is not tracked or validated on the client. To configure client-side network timesouts
714
718
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>`__ .
716
720
:returns: DirectoryProperties
717
721
:rtype: ~azure.storage.fileshare.DirectoryProperties
718
722
"""
@@ -743,7 +747,7 @@ def set_directory_metadata(self, metadata, **kwargs):
743
747
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
744
748
This value is not tracked or validated on the client. To configure client-side network timesouts
745
749
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>`__ .
747
751
:returns: Directory-updated property dict (Etag and last modified).
748
752
:rtype: dict[str, Any]
749
753
"""
@@ -770,7 +774,7 @@ def exists(self, **kwargs):
770
774
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
771
775
This value is not tracked or validated on the client. To configure client-side network timesouts
772
776
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>`__ .
774
778
:returns: True if the directory exists, False otherwise.
775
779
:rtype: bool
776
780
"""
@@ -820,6 +824,7 @@ def set_http_headers(self, file_attributes="none", # type: Union[str, NTFSAttri
820
824
Change time for the directory. If not specified, change time will be set to the current date/time.
821
825
822
826
.. versionadded:: 12.8.0
827
+
823
828
This parameter was introduced in API version '2021-06-08'.
824
829
825
830
:paramtype file_change_time: str or ~datetime.datetime
@@ -828,7 +833,7 @@ def set_http_headers(self, file_attributes="none", # type: Union[str, NTFSAttri
828
833
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
829
834
This value is not tracked or validated on the client. To configure client-side network timesouts
830
835
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>`__ .
832
837
:returns: File-updated property dict (Etag and last modified).
833
838
:rtype: dict[str, Any]
834
839
"""
@@ -867,7 +872,7 @@ def create_subdirectory(
867
872
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
868
873
This value is not tracked or validated on the client. To configure client-side network timesouts
869
874
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>`__ .
871
876
:returns: ShareDirectoryClient
872
877
:rtype: ~azure.storage.fileshare.ShareDirectoryClient
873
878
@@ -901,7 +906,7 @@ def delete_subdirectory(
901
906
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
902
907
This value is not tracked or validated on the client. To configure client-side network timesouts
903
908
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>`__ .
905
910
:rtype: None
906
911
907
912
.. admonition:: Example:
@@ -959,7 +964,7 @@ def upload_file(
959
964
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
960
965
This value is not tracked or validated on the client. To configure client-side network timesouts
961
966
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>`__ .
963
968
:keyword str encoding:
964
969
Defaults to UTF-8.
965
970
:returns: ShareFileClient
@@ -997,7 +1002,7 @@ def delete_file(
997
1002
https://learn.microsoft.com/rest/api/storageservices/setting-timeouts-for-file-service-operations.
998
1003
This value is not tracked or validated on the client. To configure client-side network timesouts
999
1004
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>`__ .
1001
1006
:rtype: None
1002
1007
1003
1008
.. admonition:: Example:
0 commit comments