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

New module: azure_rm_eventhub #519

Merged
merged 44 commits into from
May 28, 2021
Merged
Show file tree
Hide file tree
Changes from 42 commits
Commits
Show all changes
44 commits
Select commit Hold shift + click to select a range
315cd12
Eventhub CRUD operations
smalpani13 Apr 29, 2021
0930eea
Merge branch 'dev' into event_hub
saurabh3796 Apr 29, 2021
3901601
Update azure_rm_common.py
saurabh3796 May 14, 2021
6b7c1a5
Update azure_rm_eventhub.py
saurabh3796 May 14, 2021
9761d1b
Update azure_rm_eventhub_info.py
saurabh3796 May 14, 2021
cb8be48
Update ignore-2.10.txt
saurabh3796 May 14, 2021
2c6677d
Update ignore-2.11.txt
saurabh3796 May 14, 2021
c9ee4fa
Update ignore-2.12.txt
saurabh3796 May 14, 2021
0f5173c
Update ignore-2.9.txt
saurabh3796 May 14, 2021
48bb0fd
Update main.yml
saurabh3796 May 14, 2021
2fc1696
Merge branch 'dev' into event_hub
saurabh3796 May 14, 2021
2aae357
Merge branch 'dev' into event_hub
saurabh3796 May 20, 2021
b61d23a
Merge branch 'dev' into event_hub
saurabh3796 May 24, 2021
120b6c6
Update azure_rm_eventhub.py
saurabh3796 May 25, 2021
421de69
Update azure_rm_eventhub_info.py
saurabh3796 May 25, 2021
1e532da
Update azure_rm_eventhub_info.py
saurabh3796 May 25, 2021
442b119
Update azure_rm_eventhub.py
saurabh3796 May 25, 2021
791995f
Update main.yml
saurabh3796 May 25, 2021
18b3413
Update main.yml
saurabh3796 May 25, 2021
09a97ec
Update azure_rm_eventhub.py
saurabh3796 May 26, 2021
1efe890
Update azure_rm_eventhub_info.py
saurabh3796 May 26, 2021
884c6a1
Update ignore-2.9.txt
saurabh3796 May 26, 2021
d90fab6
Update ignore-2.12.txt
saurabh3796 May 26, 2021
33038bf
Update ignore-2.11.txt
saurabh3796 May 26, 2021
e41f68f
Update ignore-2.10.txt
saurabh3796 May 26, 2021
ed0167d
Update azure_rm_eventhub.py
saurabh3796 May 26, 2021
6a22fb2
Update azure_rm_eventhub.py
saurabh3796 May 26, 2021
76efd3e
Update azure_rm_eventhub_info.py
saurabh3796 May 26, 2021
4fdd0aa
Update azure_rm_eventhub_info.py
saurabh3796 May 26, 2021
9175439
Update azure_rm_eventhub.py
saurabh3796 May 26, 2021
8644c7e
Update azure_rm_eventhub_info.py
saurabh3796 May 26, 2021
49cb2dd
Update azure_rm_eventhub.py
saurabh3796 May 26, 2021
12ea225
Update azure_rm_eventhub.py
saurabh3796 May 26, 2021
d9106bc
Update main.yml
saurabh3796 May 27, 2021
2bc5306
Update azure_rm_eventhub.py
saurabh3796 May 27, 2021
5599ae5
Update main.yml
saurabh3796 May 27, 2021
e46cb6a
Update azure_rm_eventhub.py
saurabh3796 May 27, 2021
29875fb
Update azure_rm_eventhub.py
saurabh3796 May 27, 2021
043c88c
Update azure_rm_eventhub.py
saurabh3796 May 27, 2021
08dba22
Update main.yml
saurabh3796 May 27, 2021
e622f1b
Update main.yml
saurabh3796 May 27, 2021
a46b7e1
Update azure_rm_eventhub.py
saurabh3796 May 27, 2021
a9893d9
Update azure_rm_eventhub.py
saurabh3796 May 27, 2021
33d2b3c
Merge branch 'dev' into event_hub
haiyuazhang May 28, 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
20 changes: 19 additions & 1 deletion plugins/module_utils/azure_rm_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,8 @@ def default_api_version(self):
'MySQLManagementClient': '2017-12-01',
'MariaDBManagementClient': '2019-03-01',
'ManagementLockClient': '2016-09-01',
'DataLakeStoreAccountManagementClient': '2016-11-01'
'DataLakeStoreAccountManagementClient': '2016-11-01',
'EventHubManagementClient': '2018-05-04'
},
'2019-03-01-hybrid': {
'StorageManagementClient': '2017-10-01',
Expand All @@ -122,6 +123,7 @@ def default_api_version(self):
'ManagementLockClient': '2016-09-01',
'PolicyClient': '2016-12-01',
'ResourceManagementClient': '2018-05-01',
'EventHubManagementClient': '2018-05-04',
'SubscriptionClient': '2016-06-01',
'DnsManagementClient': '2016-04-01',
'KeyVaultManagementClient': '2016-10-01',
Expand Down Expand Up @@ -277,6 +279,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.eventhub import EventHubManagementClient

except ImportError as exc:
Authentication = object
Expand Down Expand Up @@ -364,6 +367,10 @@ def normalize_location_name(name):
'package_name': 'trafficmanager',
'expected_version': '0.50.0'
},
'EventHubManagementClient': {
'package_name': 'azure-mgmt-eventhub',
'expected_version': '2.0.0'
},
} if HAS_AZURE else {}


Expand Down Expand Up @@ -441,6 +448,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._event_hub_client = None

self.check_mode = self.module.check_mode
self.api_profile = self.module.params.get('api_profile')
Expand Down Expand Up @@ -1327,6 +1335,16 @@ def datalake_store_client(self):
def datalake_store_models(self):
return DataLakeStoreAccountModel

@property
def event_hub_client(self):
self.log('Getting event hub client')
if not self._event_hub_client:
self._event_hub_client = self.get_mgmt_svc_client(
EventHubManagementClient,
base_url=self._cloud_environment.endpoints.resource_manager,
api_version='2018-05-04')
return self._event_hub_client

saurabh3796 marked this conversation as resolved.
Show resolved Hide resolved

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