Skip to content

Commit

Permalink
New module: azure_rm_notificationhub (ansible-collections#496)
Browse files Browse the repository at this point in the history
* notification hub changes

* integration changes

* new changes

* remaining changes

* remaining changes

* address changes

* address changes

* minor change

* address comments

* fixing update account_enabled bug in azure_rm_aduser.py (ansible-collections#524)

* fixing ad related auth issue when using service pricinpal. (ansible-collections#525)

* change class name of azure_rm_aduser (ansible-collections#526)

* class are worngly named. fixed.

* fixing sanity errors.

* address changes

* address changes

* address changes

* address changes

* address changes

* address changes

* address changes

* address changes

* address changes

* address changes

* address changes

* address changes

* address changes

* update version

Co-authored-by: Praveen Ghuge <[email protected]>
Co-authored-by: haiyuan_zhang <[email protected]>
Co-authored-by: Praveen Ghuge <[email protected]>
  • Loading branch information
4 people authored and Fred-sun committed Aug 11, 2021
1 parent e9b970e commit 466496d
Show file tree
Hide file tree
Showing 8 changed files with 792 additions and 0 deletions.
13 changes: 13 additions & 0 deletions plugins/module_utils/azure_rm_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,7 @@ def default_api_version(self):
'MariaDBManagementClient': '2019-03-01',
'ManagementLockClient': '2016-09-01',
'DataLakeStoreAccountManagementClient': '2016-11-01',
'NotificationHubsManagementClient': '2016-03-01',
'EventHubManagementClient': '2018-05-04'
},
'2019-03-01-hybrid': {
Expand Down Expand Up @@ -279,6 +280,7 @@ def default_api_version(self):
from azure.mgmt.search import SearchManagementClient
from azure.mgmt.datalake.store import DataLakeStoreAccountManagementClient
import azure.mgmt.datalake.store.models as DataLakeStoreAccountModel
from azure.mgmt.notificationhubs import NotificationHubsManagementClient
from azure.mgmt.eventhub import EventHubManagementClient

except ImportError as exc:
Expand Down Expand Up @@ -448,6 +450,7 @@ def __init__(self, derived_arg_spec, bypass_checks=False, no_log=False,
self._recovery_services_backup_client = None
self._search_client = None
self._datalake_store_client = None
self._notification_hub_client = None
self._event_hub_client = None

self.check_mode = self.module.check_mode
Expand Down Expand Up @@ -1335,6 +1338,16 @@ def datalake_store_client(self):
def datalake_store_models(self):
return DataLakeStoreAccountModel

@property
def notification_hub_client(self):
self.log('Getting notification hub client')
if not self._notification_hub_client:
self._notification_hub_client = self.get_mgmt_svc_client(
NotificationHubsManagementClient,
base_url=self._cloud_environment.endpoints.resource_manager,
api_version='2016-03-01')
return self._notification_hub_client

@property
def event_hub_client(self):
self.log('Getting event hub client')
Expand Down
Loading

0 comments on commit 466496d

Please sign in to comment.