Skip to content

Commit 564e4c0

Browse files
STG77 GA APIView comments (Azure#19181)
* STG77 GA APIView comments * ci * changelog
1 parent e1aa341 commit 564e4c0

File tree

11 files changed

+23
-14
lines changed

11 files changed

+23
-14
lines changed

sdk/storage/azure-storage-file-datalake/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release History
22

3+
## 12.4.0 (2021-06-09)
4+
**New features**
5+
- Added support `set_service_properties()`,`get_service_properties()` on `DataLakeServiceClient`
6+
- Added support for `list_deleted_paths()` on `FileSystemClient`
7+
38
## 12.4.0b1 (2021-05-12)
49
**New features**
510
- Added support `set_service_properties()`,`get_service_properties()` on `DataLakeServiceClient`

sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_file_system_client.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -895,7 +895,7 @@ def list_deleted_paths(self, **kwargs):
895895
896896
:keyword str path_prefix:
897897
Filters the results to return only paths under the specified path.
898-
:keyword int max_results:
898+
:keyword int results_per_page:
899899
An optional value that specifies the maximum number of items to return per page.
900900
If omitted or greater than 5,000, the response will include up to 5,000 items per page.
901901
:keyword int timeout:
@@ -905,8 +905,8 @@ def list_deleted_paths(self, **kwargs):
905905
~azure.core.paging.ItemPaged[~azure.storage.filedatalake.DeletedPathProperties]
906906
"""
907907
path_prefix = kwargs.pop('path_prefix', None)
908-
results_per_page = kwargs.pop('max_results', None)
909908
timeout = kwargs.pop('timeout', None)
909+
results_per_page = kwargs.pop('results_per_page', None)
910910
command = functools.partial(
911911
self._datalake_client_for_blob_operation.file_system.list_blob_hierarchy_segment,
912912
showonly=ListBlobsIncludeItem.deleted,

sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# license information.
55
# --------------------------------------------------------------------------
66

7-
VERSION = "12.4.0b1"
7+
VERSION = "12.4.0"

sdk/storage/azure-storage-file-datalake/azure/storage/filedatalake/aio/_file_system_client_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -845,7 +845,7 @@ def list_deleted_paths(self, **kwargs):
845845
846846
:keyword str path_prefix:
847847
Filters the results to return only paths under the specified path.
848-
:keyword int max_results:
848+
:keyword int results_per_page:
849849
An optional value that specifies the maximum number of items to return per page.
850850
If omitted or greater than 5,000, the response will include up to 5,000 items per page.
851851
:keyword int timeout:
@@ -855,8 +855,8 @@ def list_deleted_paths(self, **kwargs):
855855
~azure.core.paging.AsyncItemPaged[~azure.storage.filedatalake.DeletedPathProperties]
856856
"""
857857
path_prefix = kwargs.pop('path_prefix', None)
858-
results_per_page = kwargs.pop('max_results', None)
859858
timeout = kwargs.pop('timeout', None)
859+
results_per_page = kwargs.pop('results_per_page', None)
860860
command = functools.partial(
861861
self._datalake_client_for_blob_operation.file_system.list_blob_hierarchy_segment,
862862
showonly=ListBlobsIncludeItem.deleted,

sdk/storage/azure-storage-file-datalake/setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
author_email='ascl@microsoft.com',
7474
url='https://github.com/Azure/azure-sdk-for-python',
7575
classifiers=[
76-
"Development Status :: 4 - Beta",
76+
"Development Status :: 5 - Production/Stable",
7777
'Programming Language :: Python',
7878
'Programming Language :: Python :: 2',
7979
'Programming Language :: Python :: 2.7',

sdk/storage/azure-storage-file-datalake/tests/test_file_system.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -447,10 +447,10 @@ def test_get_deleted_paths(self, datalake_storage_account_name, datalake_storage
447447
self.assertEqual(dir3_paths[0].name, 'dir3/file_in_dir3')
448448
self.assertEqual(dir3_paths[1].name, 'dir3/subdir/file_in_subdir')
449449

450-
paths_generator1 = file_system.list_deleted_paths(max_results=2).by_page()
450+
paths_generator1 = file_system.list_deleted_paths(results_per_page=2).by_page()
451451
paths1 = list(next(paths_generator1))
452452

453-
paths_generator2 = file_system.list_deleted_paths(max_results=4).by_page(
453+
paths_generator2 = file_system.list_deleted_paths(results_per_page=4).by_page(
454454
continuation_token=paths_generator1.continuation_token)
455455
paths2 = list(next(paths_generator2))
456456

sdk/storage/azure-storage-file-datalake/tests/test_file_system_async.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,12 +611,12 @@ async def test_get_deleted_paths(self, datalake_storage_account_name, datalake_s
611611
self.assertEqual(dir3_paths[0].name, 'dir3/file_in_dir3')
612612
self.assertEqual(dir3_paths[1].name, 'dir3/subdir/file_in_subdir')
613613

614-
paths_generator1 = file_system.list_deleted_paths(max_results=2).by_page()
614+
paths_generator1 = file_system.list_deleted_paths(results_per_page=2).by_page()
615615
paths1 = []
616616
async for path in await paths_generator1.__anext__():
617617
paths1.append(path)
618618

619-
paths_generator2 = file_system.list_deleted_paths(max_results=4) \
619+
paths_generator2 = file_system.list_deleted_paths(results_per_page=4) \
620620
.by_page(continuation_token=paths_generator1.continuation_token)
621621
paths2 = []
622622
async for path in await paths_generator2.__anext__():

sdk/storage/azure-storage-file-share/CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Release History
22

3+
## 12.5.0 (2021-06-09)
4+
**New features**
5+
- Added support for lease operation on a share, eg. acquire_lease
6+
37
## 12.5.0b1 (2021-05-12)
48
**New features**
59
- Added support for lease operation on a share, eg. acquire_lease

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -278,12 +278,12 @@ def acquire_lease(self, **kwargs):
278278
279279
.. versionadded:: 12.5.0
280280
281-
:kwarg int lease_duration:
281+
:keyword int lease_duration:
282282
Specifies the duration of the lease, in seconds, or negative one
283283
(-1) for a lease that never expires. A non-infinite lease can be
284284
between 15 and 60 seconds. A lease duration cannot be changed
285285
using renew or change. Default is -1 (infinite lease).
286-
:kwarg str lease_id:
286+
:keyword str lease_id:
287287
Proposed lease ID, in a GUID string format. The Share Service
288288
returns 400 (Invalid request) if the proposed lease ID is not
289289
in the correct format.

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,4 +4,4 @@
44
# license information.
55
# --------------------------------------------------------------------------
66

7-
VERSION = "12.5.0b1"
7+
VERSION = "12.5.0"

0 commit comments

Comments
 (0)