Skip to content

Commit

Permalink
ADLSGen2: remove filesystem APIs and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
zezha-msft committed Aug 16, 2019
1 parent 612ac23 commit 8bfa7b4
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 29 deletions.
28 changes: 0 additions & 28 deletions azure-storage-blob/azure/storage/blob/baseblobservice.py
Original file line number Diff line number Diff line change
Expand Up @@ -3944,31 +3944,3 @@ def _swap_blob_endpoints(host_locations):
# Note that only the primary endpoint is supported for the DFS endpoint
return {LocationMode.PRIMARY: host_locations[LocationMode.PRIMARY].replace(_BLOB_SERVICE_PUBLIC_CLOUD_HOST,
_DFS_SERVICE_PUBLIC_CLOUD_HOST, 1)}

# TODO remove after service update, needed for testing against HN-enabled account for the moment
def _create_file_system(self, filesystem_name, timeout=None):
_validate_not_none('filesystem_name', filesystem_name)
request = HTTPRequest()
request.host_locations = self._swap_blob_endpoints(self._get_host_locations())
request.method = 'PUT'
request.path = _get_path(filesystem_name)
request.query = {
'resource': 'filesystem',
'timeout': _int_to_str(timeout),
}
self._perform_request(request)
return True

# TODO remove after service update, needed for testing against HN-enabled account for the moment
def _delete_file_system(self, filesystem_name, timeout=None):
_validate_not_none('filesystem_name', filesystem_name)
request = HTTPRequest()
request.host_locations = self._swap_blob_endpoints(self._get_host_locations())
request.method = 'DELETE'
request.path = _get_path(filesystem_name)
request.query = {
'resource': 'filesystem',
'timeout': _int_to_str(timeout),
}
self._perform_request(request)
return True
2 changes: 1 addition & 1 deletion azure-storage-blob/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@

setup(
name='azure-storage-blob',
version='2.1.0',
version='2.2.0b1',
description='Microsoft Azure Storage Blob Client Library for Python',
long_description=open('README.rst', 'r').read(),
license='MIT License',
Expand Down

0 comments on commit 8bfa7b4

Please sign in to comment.