FAM-690 added disk accound type
Project: http://git-wip-us.apache.org/repos/asf/libcloud/repo Commit: http://git-wip-us.apache.org/repos/asf/libcloud/commit/f4fa3640 Tree: http://git-wip-us.apache.org/repos/asf/libcloud/tree/f4fa3640 Diff: http://git-wip-us.apache.org/repos/asf/libcloud/diff/f4fa3640 Branch: refs/heads/trunk Commit: f4fa3640e061793887dd3341b356a6e108078345 Parents: a3fd017 Author: mermoldy <s.ba...@scalr.com> Authored: Fri Mar 17 12:28:14 2017 +0200 Committer: Anthony Shaw <anthonys...@apache.org> Committed: Fri Aug 11 14:59:31 2017 +1000 ---------------------------------------------------------------------- libcloud/compute/drivers/azure_arm.py | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/libcloud/blob/f4fa3640/libcloud/compute/drivers/azure_arm.py ---------------------------------------------------------------------- diff --git a/libcloud/compute/drivers/azure_arm.py b/libcloud/compute/drivers/azure_arm.py index 07fc28e..a24368c 100644 --- a/libcloud/compute/drivers/azure_arm.py +++ b/libcloud/compute/drivers/azure_arm.py @@ -775,7 +775,8 @@ class AzureNodeDriver(NodeDriver): return True def create_volume(self, size, name, location=None, snapshot=None, - ex_resource_group=None, ex_tags=None): + ex_resource_group=None, ex_account_type=None, + ex_tags=None): """ Create a new volume. @@ -795,6 +796,10 @@ class AzureNodeDriver(NodeDriver): create the volume. (required) :type ex_resource_group: ``str`` + :param ex_account_type: The Storage Account type, + ``Standard_LRS``(HDD disks) or ``Premium_LRS``(SSD disks). + :type ex_account_type: str + :param ex_tags: Optional tags to associate with this resource. :type ex_tags: ``dict`` @@ -831,6 +836,8 @@ class AzureNodeDriver(NodeDriver): 'diskSizeGB': size } } + if ex_account_type is not None: + data['properties']['accountType'] = ex_account_type response = self.connection.request( action,