Skip to content

Commit cec17fc

Browse files
authored
[1.3.0] Replace azure-storage-file-share api version 2022-11-02 with 2024-08-04 (#63)
* replace fileshare version 2022-11-02 with 2024-08-04 * update version and readme
1 parent 3b955ec commit cec17fc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

66 files changed

+2743
-2796
lines changed

README.rst

+4
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ Handles multi-API versions of Azure Storage Data Plane originally from https://g
1717

1818
Change Log
1919
----------
20+
1.3.0
21+
++++++
22+
* fileshare: Support v2024-08-04(12.17.0) and remove v2022-11-02
23+
2024
1.2.0
2125
++++++
2226
* blob: Support v2022-11-02(12.16.0) and remove v2021-06-08

azure/multiapi/storagev2/fileshare/v2022_11_02/_shared/base_client_async.py

-189
This file was deleted.

azure/multiapi/storagev2/fileshare/v2022_11_02/__init__.py renamed to azure/multiapi/storagev2/fileshare/v2024_08_04/__init__.py

+11-9
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
LocationMode,
1818
ResourceTypes,
1919
AccountSasPermissions,
20-
StorageErrorCode)
20+
StorageErrorCode,
21+
Services,
22+
)
2123
from ._models import (
2224
ShareProperties,
2325
DirectoryProperties,
@@ -34,7 +36,8 @@
3436
FileSasPermissions,
3537
ShareSasPermissions,
3638
ContentSettings,
37-
NTFSAttributes)
39+
NTFSAttributes,
40+
)
3841
from ._generated.models import (
3942
ShareAccessTier,
4043
ShareRootSquash
@@ -75,17 +78,16 @@
7578
'ShareRootSquash',
7679
'generate_account_sas',
7780
'generate_share_sas',
78-
'generate_file_sas'
81+
'generate_file_sas',
82+
'Services'
7983
]
8084

8185

86+
# This function is added to deal with HandleItem which is a generated model that
87+
# was mistakenly added to the module exports. It has been removed import and __all__
88+
# to prevent it from showing in intellisense/docs but we handle it here to prevent
89+
# breaking any existing code which may have imported it.
8290
def __getattr__(name):
83-
"""
84-
This function is added to deal with HandleItem which is a generated model that
85-
was mistakenly added to the module exports. It has been removed import and __all__
86-
to prevent it from showing in intellisense/docs but we handle it here to prevent
87-
breaking any existing code which may have imported it.
88-
"""
8991
if name == 'HandleItem':
9092
from ._generated.models import HandleItem
9193
warnings.warn(

azure/multiapi/storagev2/fileshare/v2022_11_02/_deserialize.py renamed to azure/multiapi/storagev2/fileshare/v2024_08_04/_deserialize.py

+3-11
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,7 @@
22
# Copyright (c) Microsoft Corporation. All rights reserved.
33
# Licensed under the MIT License. See License.txt in the project root for
44
# license information.
5-
# --------------------------------------------------------------------------
6-
# pylint: disable=no-self-use
5+
# --------------------------------------------------------------------------_
76
from typing import ( # pylint: disable=unused-import
87
Tuple, Dict, List,
98
TYPE_CHECKING
@@ -52,19 +51,12 @@ def deserialize_file_stream(response, obj, headers):
5251
return response.http_response.location_mode, obj
5352

5453

54+
# Extracts out file permission
5555
def deserialize_permission(response, obj, headers): # pylint: disable=unused-argument
56-
'''
57-
Extracts out file permission
58-
'''
59-
6056
return obj.permission
6157

62-
58+
# Extracts out file permission key
6359
def deserialize_permission_key(response, obj, headers): # pylint: disable=unused-argument
64-
'''
65-
Extracts out file permission key
66-
'''
67-
6860
if response is None or headers is None:
6961
return None
7062
return headers.get('x-ms-file-permission-key', None)

0 commit comments

Comments
 (0)