Skip to content

Commit

Permalink
[AutoPR] hdinsight/resource-manager (#4224)
Browse files Browse the repository at this point in the history
* Generated from 24d9e20f3fcc723e634b5fe214677fd884bff9cf (#4218)

[HDInsight] - Support MSI for ADLS gen2

* ChangeLog
  • Loading branch information
AutorestCI authored and lmazuel committed Jan 28, 2019
1 parent 41b27ad commit 0372a07
Show file tree
Hide file tree
Showing 4 changed files with 31 additions and 2 deletions.
7 changes: 7 additions & 0 deletions azure-mgmt-hdinsight/HISTORY.rst
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@
Release History
===============

0.2.1 (2019-01-28)
++++++++++++++++++

**Features**

- Add MSI support

0.2.0 (2018-12-11)
++++++++++++++++++

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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):
Expand All @@ -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)
Original file line number Diff line number Diff line change
Expand Up @@ -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 = {
Expand All @@ -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
2 changes: 1 addition & 1 deletion azure-mgmt-hdinsight/azure/mgmt/hdinsight/version.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,5 @@
# regenerated.
# --------------------------------------------------------------------------

VERSION = "0.2.0"
VERSION = "0.2.1"

0 comments on commit 0372a07

Please sign in to comment.