diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/HISTORY.rst b/sdk/eventgrid/azure-mgmt-eventgrid/HISTORY.rst index 763f650f89c4..e54bb36eb88c 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/HISTORY.rst +++ b/sdk/eventgrid/azure-mgmt-eventgrid/HISTORY.rst @@ -3,6 +3,13 @@ Release History =============== +3.0.0rc2 (2019-11-11) ++++++++++++++++++++++ + +**Features** + +- Model WebHookEventSubscriptionDestination has a new parameter azure_active_directory_tenant_id + 3.0.0rc1 (2019-10-24) +++++++++++++++++++++ diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_models.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_models.py index 7d1ce7f6e9e1..b5f5182e765f 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_models.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_models.py @@ -1600,9 +1600,13 @@ class WebHookEventSubscriptionDestination(EventSubscriptionDestination): :param preferred_batch_size_in_kilobytes: Preferred batch size in Kilobytes. :type preferred_batch_size_in_kilobytes: int - :param azure_active_directory_application_id_or_uri: The AAD application - ID or URI to get the access token that will be included as the bearer - token in delivery requests. + :param azure_active_directory_tenant_id: The Azure Active Directory Tenant + ID to get the access token that will be included as the bearer token in + delivery requests. + :type azure_active_directory_tenant_id: str + :param azure_active_directory_application_id_or_uri: The Azure Active + Directory Application ID or URI to get the access token that will be + included as the bearer token in delivery requests. :type azure_active_directory_application_id_or_uri: str """ @@ -1617,6 +1621,7 @@ class WebHookEventSubscriptionDestination(EventSubscriptionDestination): 'endpoint_base_url': {'key': 'properties.endpointBaseUrl', 'type': 'str'}, 'max_events_per_batch': {'key': 'properties.maxEventsPerBatch', 'type': 'int'}, 'preferred_batch_size_in_kilobytes': {'key': 'properties.preferredBatchSizeInKilobytes', 'type': 'int'}, + 'azure_active_directory_tenant_id': {'key': 'properties.azureActiveDirectoryTenantId', 'type': 'str'}, 'azure_active_directory_application_id_or_uri': {'key': 'properties.azureActiveDirectoryApplicationIdOrUri', 'type': 'str'}, } @@ -1626,5 +1631,6 @@ def __init__(self, **kwargs): self.endpoint_base_url = None self.max_events_per_batch = kwargs.get('max_events_per_batch', None) self.preferred_batch_size_in_kilobytes = kwargs.get('preferred_batch_size_in_kilobytes', None) + self.azure_active_directory_tenant_id = kwargs.get('azure_active_directory_tenant_id', None) self.azure_active_directory_application_id_or_uri = kwargs.get('azure_active_directory_application_id_or_uri', None) self.endpoint_type = 'WebHook' diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_models_py3.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_models_py3.py index 9e078f5c2dd6..4b5b2d2cb210 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_models_py3.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/models/_models_py3.py @@ -1600,9 +1600,13 @@ class WebHookEventSubscriptionDestination(EventSubscriptionDestination): :param preferred_batch_size_in_kilobytes: Preferred batch size in Kilobytes. :type preferred_batch_size_in_kilobytes: int - :param azure_active_directory_application_id_or_uri: The AAD application - ID or URI to get the access token that will be included as the bearer - token in delivery requests. + :param azure_active_directory_tenant_id: The Azure Active Directory Tenant + ID to get the access token that will be included as the bearer token in + delivery requests. + :type azure_active_directory_tenant_id: str + :param azure_active_directory_application_id_or_uri: The Azure Active + Directory Application ID or URI to get the access token that will be + included as the bearer token in delivery requests. :type azure_active_directory_application_id_or_uri: str """ @@ -1617,14 +1621,16 @@ class WebHookEventSubscriptionDestination(EventSubscriptionDestination): 'endpoint_base_url': {'key': 'properties.endpointBaseUrl', 'type': 'str'}, 'max_events_per_batch': {'key': 'properties.maxEventsPerBatch', 'type': 'int'}, 'preferred_batch_size_in_kilobytes': {'key': 'properties.preferredBatchSizeInKilobytes', 'type': 'int'}, + 'azure_active_directory_tenant_id': {'key': 'properties.azureActiveDirectoryTenantId', 'type': 'str'}, 'azure_active_directory_application_id_or_uri': {'key': 'properties.azureActiveDirectoryApplicationIdOrUri', 'type': 'str'}, } - def __init__(self, *, endpoint_url: str=None, max_events_per_batch: int=None, preferred_batch_size_in_kilobytes: int=None, azure_active_directory_application_id_or_uri: str=None, **kwargs) -> None: + def __init__(self, *, endpoint_url: str=None, max_events_per_batch: int=None, preferred_batch_size_in_kilobytes: int=None, azure_active_directory_tenant_id: str=None, azure_active_directory_application_id_or_uri: str=None, **kwargs) -> None: super(WebHookEventSubscriptionDestination, self).__init__(**kwargs) self.endpoint_url = endpoint_url self.endpoint_base_url = None self.max_events_per_batch = max_events_per_batch self.preferred_batch_size_in_kilobytes = preferred_batch_size_in_kilobytes + self.azure_active_directory_tenant_id = azure_active_directory_tenant_id self.azure_active_directory_application_id_or_uri = azure_active_directory_application_id_or_uri self.endpoint_type = 'WebHook' diff --git a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/version.py b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/version.py index 55097d5cae62..3a65e38d32c2 100644 --- a/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/version.py +++ b/sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/version.py @@ -9,5 +9,4 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "3.0.0rc1" - +VERSION = "3.0.0rc2"