Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add new module azure_rm_datalakestore #352

Merged
merged 26 commits into from
Mar 22, 2021
Merged
Show file tree
Hide file tree
Changes from 25 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
1bd531a
First functional create datalake store module
Nov 13, 2020
8d214ba
Added absent action and added Api profile to latest in order to avoid…
Nov 13, 2020
aa64ae6
Added more info from datalake to results.state and improved some piec…
Nov 13, 2020
037c66b
Added tags and new tier capability. Update method added
Nov 13, 2020
162df4b
Added encryption state and config to variables
Nov 13, 2020
54efde1
Added firewall to parameters
Nov 13, 2020
7e5d8ba
Added virtual network rules to parameters
Nov 14, 2020
ec65091
Fixed problems with encryption_config -> key_vault_meta_info parameter
Nov 14, 2020
3288592
Added info module
Nov 14, 2020
ca7ac87
Added documentation to info module
Nov 14, 2020
6cb1365
Restore poller, added compare lists for update and fix some issues wi…
Nov 16, 2020
be4a2c0
Added test
Nov 16, 2020
f2a0ffc
Completed documentation
Nov 22, 2020
772dc7c
Added ignore sanity tests and added to pr-pipelines
Dec 5, 2020
0df9eb6
Resolved pylint messages
Dec 5, 2020
f2ecf07
Fixes sanity warnings
Dec 5, 2020
c465afd
Fixed sanity errors
Dec 21, 2020
bdf529a
Change author to list
Dec 22, 2020
cbe4368
Fixed name of returned param and set task name correctly
Feb 13, 2021
ddef517
Fix errors in merge
Mar 14, 2021
9239199
Fix merge error
Mar 14, 2021
13c1e4c
Merge branch 'dev' into feature/new_module_datalakestore
Mar 16, 2021
023d6e7
Added missing blank line
Mar 16, 2021
1f56a4b
Modified comments on PR
Mar 20, 2021
f0ff530
Merge branch 'dev' into feature/new_module_datalakestore
Mar 20, 2021
3fc11ee
Merge branch 'dev' into feature/new_module_datalakestore
haiyuazhang Mar 22, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 18 additions & 1 deletion plugins/module_utils/azure_rm_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,8 @@ def default_api_version(self):
'PostgreSQLManagementClient': '2017-12-01',
'MySQLManagementClient': '2017-12-01',
'MariaDBManagementClient': '2019-03-01',
'ManagementLockClient': '2016-09-01'
'ManagementLockClient': '2016-09-01',
'DataLakeStoreAccountManagementClient': '2016-11-01'
},
'2019-03-01-hybrid': {
'StorageManagementClient': '2017-10-01',
Expand Down Expand Up @@ -270,6 +271,8 @@ def default_api_version(self):
from azure.mgmt.resource.locks import ManagementLockClient
from azure.mgmt.recoveryservicesbackup import RecoveryServicesBackupClient
import azure.mgmt.recoveryservicesbackup.models as RecoveryServicesBackupModels
from azure.mgmt.datalake.store import DataLakeStoreAccountManagementClient
import azure.mgmt.datalake.store.models as DataLakeStoreAccountModel

except ImportError as exc:
Authentication = object
Expand Down Expand Up @@ -432,6 +435,7 @@ def __init__(self, derived_arg_spec, bypass_checks=False, no_log=False,
self._IoThub_client = None
self._lock_client = None
self._recovery_services_backup_client = None
self._datalake_store_client = None

self.check_mode = self.module.check_mode
self.api_profile = self.module.params.get('api_profile')
Expand Down Expand Up @@ -1296,6 +1300,19 @@ def recovery_services_backup_client(self):
def recovery_services_backup_models(self):
return RecoveryServicesBackupModels

@property
def datalake_store_client(self):
self.log('Getting datalake store client...')
if not self._datalake_store_client:
self._datalake_store_client = self.get_mgmt_svc_client(DataLakeStoreAccountManagementClient,
next-davidduquehernandez marked this conversation as resolved.
Show resolved Hide resolved
base_url=self._cloud_environment.endpoints.resource_manager,
api_version='2016-11-01')
return self._datalake_store_client

@property
def datalake_store_models(self):
return DataLakeStoreAccountModel

next-davidduquehernandez marked this conversation as resolved.
Show resolved Hide resolved

class AzureSASAuthentication(Authentication):
"""Simple SAS Authentication.
Expand Down
Loading