From 0372a07aa3e32d0c6a316355329276fa03f2ffd7 Mon Sep 17 00:00:00 2001 From: Azure SDK for Python bot Date: Mon, 28 Jan 2019 11:17:20 -0800 Subject: [PATCH] [AutoPR] hdinsight/resource-manager (#4224) * Generated from 24d9e20f3fcc723e634b5fe214677fd884bff9cf (#4218) [HDInsight] - Support MSI for ADLS gen2 * ChangeLog --- azure-mgmt-hdinsight/HISTORY.rst | 7 +++++++ .../azure/mgmt/hdinsight/models/storage_account.py | 11 +++++++++++ .../mgmt/hdinsight/models/storage_account_py3.py | 13 ++++++++++++- .../azure/mgmt/hdinsight/version.py | 2 +- 4 files changed, 31 insertions(+), 2 deletions(-) diff --git a/azure-mgmt-hdinsight/HISTORY.rst b/azure-mgmt-hdinsight/HISTORY.rst index fadd54d6fbc2..4f54437a9a7a 100644 --- a/azure-mgmt-hdinsight/HISTORY.rst +++ b/azure-mgmt-hdinsight/HISTORY.rst @@ -3,6 +3,13 @@ Release History =============== +0.2.1 (2019-01-28) +++++++++++++++++++ + +**Features** + +- Add MSI support + 0.2.0 (2018-12-11) ++++++++++++++++++ diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account.py index c65f5dc49529..64f8f109a799 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account.py @@ -28,6 +28,13 @@ class StorageAccount(Model): :type file_system: str :param key: The storage account access key. :type key: str + :param resource_id: The resource ID of storage account, only to be + specified for Azure Data Lake Storage Gen 2. + :type resource_id: str + :param msi_resource_id: The managed identity (MSI) that is allowed to + access the storage account, only to be specified for Azure Data Lake + Storage Gen 2. + :type msi_resource_id: str """ _attribute_map = { @@ -36,6 +43,8 @@ class StorageAccount(Model): 'container': {'key': 'container', 'type': 'str'}, 'file_system': {'key': 'fileSystem', 'type': 'str'}, 'key': {'key': 'key', 'type': 'str'}, + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'msi_resource_id': {'key': 'msiResourceId', 'type': 'str'}, } def __init__(self, **kwargs): @@ -45,3 +54,5 @@ def __init__(self, **kwargs): self.container = kwargs.get('container', None) self.file_system = kwargs.get('file_system', None) self.key = kwargs.get('key', None) + self.resource_id = kwargs.get('resource_id', None) + self.msi_resource_id = kwargs.get('msi_resource_id', None) diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account_py3.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account_py3.py index 41f9ea602657..7ab3ef535a69 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account_py3.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/models/storage_account_py3.py @@ -28,6 +28,13 @@ class StorageAccount(Model): :type file_system: str :param key: The storage account access key. :type key: str + :param resource_id: The resource ID of storage account, only to be + specified for Azure Data Lake Storage Gen 2. + :type resource_id: str + :param msi_resource_id: The managed identity (MSI) that is allowed to + access the storage account, only to be specified for Azure Data Lake + Storage Gen 2. + :type msi_resource_id: str """ _attribute_map = { @@ -36,12 +43,16 @@ class StorageAccount(Model): 'container': {'key': 'container', 'type': 'str'}, 'file_system': {'key': 'fileSystem', 'type': 'str'}, 'key': {'key': 'key', 'type': 'str'}, + 'resource_id': {'key': 'resourceId', 'type': 'str'}, + 'msi_resource_id': {'key': 'msiResourceId', 'type': 'str'}, } - def __init__(self, *, name: str=None, is_default: bool=None, container: str=None, file_system: str=None, key: str=None, **kwargs) -> None: + def __init__(self, *, name: str=None, is_default: bool=None, container: str=None, file_system: str=None, key: str=None, resource_id: str=None, msi_resource_id: str=None, **kwargs) -> None: super(StorageAccount, self).__init__(**kwargs) self.name = name self.is_default = is_default self.container = container self.file_system = file_system self.key = key + self.resource_id = resource_id + self.msi_resource_id = msi_resource_id diff --git a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/version.py b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/version.py index 9bd1dfac7ecb..3da0f49f071f 100644 --- a/azure-mgmt-hdinsight/azure/mgmt/hdinsight/version.py +++ b/azure-mgmt-hdinsight/azure/mgmt/hdinsight/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.2.0" +VERSION = "0.2.1"