Skip to content

Commit

Permalink
[1.3.0] Replace azure-storage-file-share api version 2022-11-02 with …
Browse files Browse the repository at this point in the history
…2024-08-04 (#63)

* replace fileshare version 2022-11-02 with 2024-08-04

* update version and readme
  • Loading branch information
calvinhzy committed Aug 8, 2024
1 parent 3b955ec commit cec17fc
Show file tree
Hide file tree
Showing 66 changed files with 2,743 additions and 2,796 deletions.
4 changes: 4 additions & 0 deletions README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ Handles multi-API versions of Azure Storage Data Plane originally from https://g

Change Log
----------
1.3.0
++++++
* fileshare: Support v2024-08-04(12.17.0) and remove v2022-11-02

1.2.0
++++++
* blob: Support v2022-11-02(12.16.0) and remove v2021-06-08
Expand Down

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,9 @@
LocationMode,
ResourceTypes,
AccountSasPermissions,
StorageErrorCode)
StorageErrorCode,
Services,
)
from ._models import (
ShareProperties,
DirectoryProperties,
Expand All @@ -34,7 +36,8 @@
FileSasPermissions,
ShareSasPermissions,
ContentSettings,
NTFSAttributes)
NTFSAttributes,
)
from ._generated.models import (
ShareAccessTier,
ShareRootSquash
Expand Down Expand Up @@ -75,17 +78,16 @@
'ShareRootSquash',
'generate_account_sas',
'generate_share_sas',
'generate_file_sas'
'generate_file_sas',
'Services'
]


# This function is added to deal with HandleItem which is a generated model that
# was mistakenly added to the module exports. It has been removed import and __all__
# to prevent it from showing in intellisense/docs but we handle it here to prevent
# breaking any existing code which may have imported it.
def __getattr__(name):
"""
This function is added to deal with HandleItem which is a generated model that
was mistakenly added to the module exports. It has been removed import and __all__
to prevent it from showing in intellisense/docs but we handle it here to prevent
breaking any existing code which may have imported it.
"""
if name == 'HandleItem':
from ._generated.models import HandleItem
warnings.warn(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,7 @@
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
# --------------------------------------------------------------------------
# pylint: disable=no-self-use
# --------------------------------------------------------------------------_
from typing import ( # pylint: disable=unused-import
Tuple, Dict, List,
TYPE_CHECKING
Expand Down Expand Up @@ -52,19 +51,12 @@ def deserialize_file_stream(response, obj, headers):
return response.http_response.location_mode, obj


# Extracts out file permission
def deserialize_permission(response, obj, headers): # pylint: disable=unused-argument
'''
Extracts out file permission
'''

return obj.permission


# Extracts out file permission key
def deserialize_permission_key(response, obj, headers): # pylint: disable=unused-argument
'''
Extracts out file permission key
'''

if response is None or headers is None:
return None
return headers.get('x-ms-file-permission-key', None)
Expand Down
Loading

0 comments on commit cec17fc

Please sign in to comment.