libcloud-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From GitBox <...@apache.org>
Subject [GitHub] [libcloud] c-w opened a new pull request #1552: Add support for Azure Government to Azure Blobs storage driver
Date Sun, 07 Feb 2021 16:35:58 GMT

c-w opened a new pull request #1552:
URL: https://github.com/apache/libcloud/pull/1552


   ## Add support for Azure Government to Azure Blobs storage driver
   
   ### Description
   
   This pull request adds support to the Azure Blobs storage driver for deployments of Azure
Storage that use custom hostnames such as Azure Government, Azure China, and Azure Private
Link. To target these deployments, the driver can be initialized as follows:
   
   ```py
   from libcloud.storage.types import Provider
   from libcloud.storage.providers import get_driver
   
   cls = get_driver(Provider.AZURE_BLOBS)
   
   host = 'privatelink.blob.core.windows.net'  # for Azure Private Link
   host = 'blob.core.chinacloudapi.cn'  # for Azure China
   host = 'blob.core.usgovcloudapi.net'  # for Azure Government
   
   driver = cls(key='your storage account name',
                secret='your access key',
                host=host)
   ```
   
   The change maintains backwards compatibility with the previous approach of using a custom
host argument to target Azurite or IoT Edge Storage by explicitly checking for the Azure China,
Azure Government, and Azure Private Link well-known endpoint constants.
   
   Resolves https://github.com/apache/libcloud/issues/1551
   
   ### Status
   
   - done, ready for review
   
   ### Checklist
   
   - [ ] [Code linting](http://libcloud.readthedocs.org/en/latest/development.html#code-style-guide)
   - [x] Documentation **Updated docs**
   - [x] [Tests](http://libcloud.readthedocs.org/en/latest/testing.html) **[libcloud-tests
passed](https://clewolff.visualstudio.com/libcloud-tests/_build/results?buildId=1589&view=logs&s=ee3800fd-6e81-525f-e564-94108585217d)**
   - [x] [ICLA](http://libcloud.readthedocs.org/en/latest/development.html#contributing-bigger-changes)
**[committer](http://people.apache.org/phonebook.html?uid=clewolff)**
   


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



Mime
View raw message