Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-azure-eventgrid for 
openSUSE:Factory checked in at 2023-10-15 19:28:15
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-azure-eventgrid (Old)
 and      /work/SRC/openSUSE:Factory/.python-azure-eventgrid.new.20540 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-azure-eventgrid"

Sun Oct 15 19:28:15 2023 rev:22 rq:1117876 version:4.15.0

Changes:
--------
--- 
/work/SRC/openSUSE:Factory/python-azure-eventgrid/python-azure-eventgrid.changes
    2023-09-20 13:35:39.212539868 +0200
+++ 
/work/SRC/openSUSE:Factory/.python-azure-eventgrid.new.20540/python-azure-eventgrid.changes
 2023-10-15 19:30:20.094937564 +0200
@@ -1,0 +2,8 @@
+Fri Oct 13 07:40:52 UTC 2023 - John Paul Adrian Glaubitz 
<[email protected]>
+
+- New upstream release
+  + Version 4.15.0
+  + For detailed information about changes see the
+    CHANGELOG.md file provided with this package
+
+-------------------------------------------------------------------

Old:
----
  azure-eventgrid-4.14.0.tar.gz

New:
----
  azure-eventgrid-4.15.0.tar.gz

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-azure-eventgrid.spec ++++++
--- /var/tmp/diff_new_pack.ULgn1N/_old  2023-10-15 19:30:20.570954711 +0200
+++ /var/tmp/diff_new_pack.ULgn1N/_new  2023-10-15 19:30:20.570954711 +0200
@@ -21,7 +21,7 @@
 %define skip_python2 1
 %endif
 Name:           python-azure-eventgrid
-Version:        4.14.0
+Version:        4.15.0
 Release:        0
 Summary:        Microsoft Azure Event Grid Client Library
 License:        MIT

++++++ azure-eventgrid-4.14.0.tar.gz -> azure-eventgrid-4.15.0.tar.gz ++++++
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-eventgrid-4.14.0/CHANGELOG.md 
new/azure-eventgrid-4.15.0/CHANGELOG.md
--- old/azure-eventgrid-4.14.0/CHANGELOG.md     2023-09-13 19:30:03.000000000 
+0200
+++ new/azure-eventgrid-4.15.0/CHANGELOG.md     2023-10-12 23:03:55.000000000 
+0200
@@ -1,5 +1,11 @@
 # Release History
 
+## 4.15.0 (2023-10-12)
+
+### Features Added
+
+- Added new enum values to `SystemEventNames` related to Azure Communication 
Services and Azure Resource Notifications.
+
 ## 4.14.0 (2023-09-13)
 
 ### Features Added
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-eventgrid-4.14.0/PKG-INFO 
new/azure-eventgrid-4.15.0/PKG-INFO
--- old/azure-eventgrid-4.14.0/PKG-INFO 2023-09-13 19:30:59.182006800 +0200
+++ new/azure-eventgrid-4.15.0/PKG-INFO 2023-10-12 23:04:42.634195600 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: azure-eventgrid
-Version: 4.14.0
+Version: 4.15.0
 Summary: Microsoft Azure Event Grid Client Library for Python
 Home-page: https://github.com/Azure/azure-sdk-for-python
 Author: Microsoft Corporation
@@ -83,9 +83,9 @@
 from azure.identity import DefaultAzureCredential
 from azure.eventgrid import EventGridPublisherClient, EventGridEvent
 
-credential = DefaultAzureCredential()
+default_az_credential = DefaultAzureCredential()
 endpoint = os.environ["EVENTGRID_TOPIC_ENDPOINT"]
-client = EventGridPublisherClient(endpoint, credential)
+client = EventGridPublisherClient(endpoint, default_az_credential)
 ```
 
 <!-- END SNIPPET -->
@@ -111,8 +111,8 @@
 topic_key = os.environ["EVENTGRID_TOPIC_KEY"]
 endpoint = os.environ["EVENTGRID_TOPIC_ENDPOINT"]
 
-credential = AzureKeyCredential(topic_key)
-client = EventGridPublisherClient(endpoint, credential)
+credential_key = AzureKeyCredential(topic_key)
+client = EventGridPublisherClient(endpoint, credential_key)
 ```
 
 <!-- END SNIPPET -->
@@ -521,6 +521,12 @@
 
 # Release History
 
+## 4.15.0 (2023-10-12)
+
+### Features Added
+
+- Added new enum values to `SystemEventNames` related to Azure Communication 
Services and Azure Resource Notifications.
+
 ## 4.14.0 (2023-09-13)
 
 ### Features Added
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-eventgrid-4.14.0/README.md 
new/azure-eventgrid-4.15.0/README.md
--- old/azure-eventgrid-4.14.0/README.md        2023-09-13 19:30:03.000000000 
+0200
+++ new/azure-eventgrid-4.15.0/README.md        2023-10-12 23:03:55.000000000 
+0200
@@ -60,9 +60,9 @@
 from azure.identity import DefaultAzureCredential
 from azure.eventgrid import EventGridPublisherClient, EventGridEvent
 
-credential = DefaultAzureCredential()
+default_az_credential = DefaultAzureCredential()
 endpoint = os.environ["EVENTGRID_TOPIC_ENDPOINT"]
-client = EventGridPublisherClient(endpoint, credential)
+client = EventGridPublisherClient(endpoint, default_az_credential)
 ```
 
 <!-- END SNIPPET -->
@@ -88,8 +88,8 @@
 topic_key = os.environ["EVENTGRID_TOPIC_KEY"]
 endpoint = os.environ["EVENTGRID_TOPIC_ENDPOINT"]
 
-credential = AzureKeyCredential(topic_key)
-client = EventGridPublisherClient(endpoint, credential)
+credential_key = AzureKeyCredential(topic_key)
+client = EventGridPublisherClient(endpoint, credential_key)
 ```
 
 <!-- END SNIPPET -->
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-eventgrid-4.14.0/azure/eventgrid/_event_mappings.py 
new/azure-eventgrid-4.15.0/azure/eventgrid/_event_mappings.py
--- old/azure-eventgrid-4.14.0/azure/eventgrid/_event_mappings.py       
2023-09-13 19:30:03.000000000 +0200
+++ new/azure-eventgrid-4.15.0/azure/eventgrid/_event_mappings.py       
2023-10-12 23:03:55.000000000 +0200
@@ -96,6 +96,48 @@
 
     AcsRecordingFileStatusUpdatedEventName = 
'Microsoft.Communication.RecordingFileStatusUpdated'
 
+    AcsRouterJobCancelledEventName = 
'Microsoft.Communication.RouterJobCancelled'
+
+    AcsRouterJobClassificationFailedEventName = 
'Microsoft.Communication.RouterJobClassificationFailed'
+
+    AcsRouterJobClassifiedEventName = 
'Microsoft.Communication.RouterJobClassified'
+
+    AcsRouterJobClosedEventName = 'Microsoft.Communication.RouterJobClosed'
+
+    AcsRouterJobCompletedEventName = 
'Microsoft.Communication.RouterJobCompleted'
+
+    AcsRouterJobDeletedEventName = 'Microsoft.Communication.RouterJobDeleted'
+
+    AcsRouterJobExceptionTriggeredEventName = 
'Microsoft.Communication.RouterJobExceptionTriggered'
+
+    AcsRouterJobQueuedEventName = 'Microsoft.Communication.RouterJobQueued'
+
+    AcsRouterJobReceivedEventName = 'Microsoft.Communication.RouterJobReceived'
+
+    AcsRouterJobSchedulingFailedEventName = 
'Microsoft.Communication.RouterJobSchedulingFailed'
+
+    AcsRouterJobUnassignedEventName = 
'Microsoft.Communication.RouterJobUnassigned'
+
+    AcsRouterJobWaitingForActivationEventName = 
'Microsoft.Communication.RouterJobWaitingForActivation'
+
+    AcsRouterJobWorkerSelectorsExpiredEventName = 
'Microsoft.Communication.RouterJobWorkerSelectorsExpired'
+
+    AcsRouterWorkerDeletedEventName = 
'Microsoft.Communication.RouterWorkerDeleted'
+
+    AcsRouterWorkerDeregisteredEventName = 
'Microsoft.Communication.RouterWorkerDeregistered'
+
+    AcsRouterWorkerOfferAcceptedEventName = 
'Microsoft.Communication.RouterWorkerOfferAccepted'
+
+    AcsRouterWorkerOfferDeclinedEventName = 
'Microsoft.Communication.RouterWorkerOfferDeclined'
+
+    AcsRouterWorkerOfferExpiredEventName = 
'Microsoft.Communication.RouterWorkerOfferExpired'
+
+    AcsRouterWorkerOfferIssuedEventName = 
'Microsoft.Communication.RouterWorkerOfferIssued'
+
+    AcsRouterWorkerOfferRevokedEventName = 
'Microsoft.Communication.RouterWorkerOfferRevoked'
+
+    AcsRouterWorkerRegisteredEventName = 
'Microsoft.Communication.RouterWorkerRegistered'
+
     AcsSmsDeliveryReportReceivedEventName = 
'Microsoft.Communication.SMSDeliveryReportReceived'
 
     AcsSmsReceivedEventName = 'Microsoft.Communication.SMSReceived'
@@ -332,6 +374,10 @@
 
     ResourceDeleteSuccessName = 'Microsoft.Resources.ResourceDeleteSuccess'
 
+    ResourceNotificationsHealthResourcesAnnotatedEventName = 
'Microsoft.ResourceNotifications.HealthResources.ResourceAnnotated'
+
+    ResourceNotificationsHealthResourcesAvailabilityStatusChangedEventName = 
'Microsoft.ResourceNotifications.HealthResources.AvailabilityStatusChanged'
+
     ResourceWriteCancelName = 'Microsoft.Resources.ResourceWriteCancel'
 
     ResourceWriteFailureName = 'Microsoft.Resources.ResourceWriteFailure'
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-eventgrid-4.14.0/azure/eventgrid/_helpers.py 
new/azure-eventgrid-4.15.0/azure/eventgrid/_helpers.py
--- old/azure-eventgrid-4.14.0/azure/eventgrid/_helpers.py      2023-09-13 
19:30:03.000000000 +0200
+++ new/azure-eventgrid-4.15.0/azure/eventgrid/_helpers.py      2023-10-12 
23:03:55.000000000 +0200
@@ -2,7 +2,7 @@
 # Copyright (c) Microsoft Corporation. All rights reserved.
 # Licensed under the MIT License. See License.txt in the project root for 
license information.
 # 
--------------------------------------------------------------------------------------------
-from typing import TYPE_CHECKING, Any
+from typing import TYPE_CHECKING, Any, Dict
 import json
 import hashlib
 import hmac
@@ -165,13 +165,13 @@
 
 def _build_request(endpoint, content_type, events, *, channel_name=None):
     serialize = Serializer()
-    header_parameters = {}  # type: Dict[str, Any]
+    header_parameters: Dict[str, Any] = {}
     header_parameters['Content-Type'] = serialize.header("content_type", 
content_type, 'str')
 
     if channel_name:
         header_parameters['aeg-channel-name'] = channel_name
 
-    query_parameters = {}  # type: Dict[str, Any]
+    query_parameters: Dict[str, Any] = {}
     query_parameters['api-version'] = serialize.query("api_version", 
"2018-01-01", 'str')
 
     body = serialize.body(events, '[object]')
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-eventgrid-4.14.0/azure/eventgrid/_publisher_client.py 
new/azure-eventgrid-4.15.0/azure/eventgrid/_publisher_client.py
--- old/azure-eventgrid-4.14.0/azure/eventgrid/_publisher_client.py     
2023-09-13 19:30:03.000000000 +0200
+++ new/azure-eventgrid-4.15.0/azure/eventgrid/_publisher_client.py     
2023-10-12 23:03:55.000000000 +0200
@@ -54,13 +54,17 @@
         TokenCredential,
     )
 
+    from cloudevents.http.event import CloudEvent as CNCFCloudEvent
+
 SendType = Union[
     CloudEvent,
     EventGridEvent,
     Dict,
+    "CNCFCloudEvent",
     List[CloudEvent],
     List[EventGridEvent],
     List[Dict],
+    List["CNCFCloudEvent"],
 ]
 
 ListEventType = Union[List[CloudEvent], List[EventGridEvent], List[Dict]]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' old/azure-eventgrid-4.14.0/azure/eventgrid/_version.py 
new/azure-eventgrid-4.15.0/azure/eventgrid/_version.py
--- old/azure-eventgrid-4.14.0/azure/eventgrid/_version.py      2023-09-13 
19:30:03.000000000 +0200
+++ new/azure-eventgrid-4.15.0/azure/eventgrid/_version.py      2023-10-12 
23:03:55.000000000 +0200
@@ -9,4 +9,4 @@
 # regenerated.
 # --------------------------------------------------------------------------
 
-VERSION = "4.14.0"
+VERSION = "4.15.0"
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-eventgrid-4.14.0/azure/eventgrid/aio/_publisher_client_async.py 
new/azure-eventgrid-4.15.0/azure/eventgrid/aio/_publisher_client_async.py
--- old/azure-eventgrid-4.14.0/azure/eventgrid/aio/_publisher_client_async.py   
2023-09-13 19:30:03.000000000 +0200
+++ new/azure-eventgrid-4.15.0/azure/eventgrid/aio/_publisher_client_async.py   
2023-10-12 23:03:55.000000000 +0200
@@ -48,8 +48,17 @@
 if TYPE_CHECKING:
     from azure.core.credentials_async import AsyncTokenCredential
 
+    from cloudevents.http.event import CloudEvent as CNCFCloudEvent
+
 SendType = Union[
-    CloudEvent, EventGridEvent, Dict, List[CloudEvent], List[EventGridEvent], 
List[Dict]
+    CloudEvent,
+    EventGridEvent,
+    Dict,
+    "CNCFCloudEvent",
+    List[CloudEvent],
+    List[EventGridEvent],
+    List[Dict],
+    List["CNCFCloudEvent"],
 ]
 
 ListEventType = Union[List[CloudEvent], List[EventGridEvent], List[Dict]]
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-eventgrid-4.14.0/azure_eventgrid.egg-info/PKG-INFO 
new/azure-eventgrid-4.15.0/azure_eventgrid.egg-info/PKG-INFO
--- old/azure-eventgrid-4.14.0/azure_eventgrid.egg-info/PKG-INFO        
2023-09-13 19:30:59.000000000 +0200
+++ new/azure-eventgrid-4.15.0/azure_eventgrid.egg-info/PKG-INFO        
2023-10-12 23:04:42.000000000 +0200
@@ -1,6 +1,6 @@
 Metadata-Version: 2.1
 Name: azure-eventgrid
-Version: 4.14.0
+Version: 4.15.0
 Summary: Microsoft Azure Event Grid Client Library for Python
 Home-page: https://github.com/Azure/azure-sdk-for-python
 Author: Microsoft Corporation
@@ -83,9 +83,9 @@
 from azure.identity import DefaultAzureCredential
 from azure.eventgrid import EventGridPublisherClient, EventGridEvent
 
-credential = DefaultAzureCredential()
+default_az_credential = DefaultAzureCredential()
 endpoint = os.environ["EVENTGRID_TOPIC_ENDPOINT"]
-client = EventGridPublisherClient(endpoint, credential)
+client = EventGridPublisherClient(endpoint, default_az_credential)
 ```
 
 <!-- END SNIPPET -->
@@ -111,8 +111,8 @@
 topic_key = os.environ["EVENTGRID_TOPIC_KEY"]
 endpoint = os.environ["EVENTGRID_TOPIC_ENDPOINT"]
 
-credential = AzureKeyCredential(topic_key)
-client = EventGridPublisherClient(endpoint, credential)
+credential_key = AzureKeyCredential(topic_key)
+client = EventGridPublisherClient(endpoint, credential_key)
 ```
 
 <!-- END SNIPPET -->
@@ -521,6 +521,12 @@
 
 # Release History
 
+## 4.15.0 (2023-10-12)
+
+### Features Added
+
+- Added new enum values to `SystemEventNames` related to Azure Communication 
Services and Azure Resource Notifications.
+
 ## 4.14.0 (2023-09-13)
 
 ### Features Added
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-eventgrid-4.14.0/samples/async_samples/sample_authentication_async.py 
new/azure-eventgrid-4.15.0/samples/async_samples/sample_authentication_async.py
--- 
old/azure-eventgrid-4.14.0/samples/async_samples/sample_authentication_async.py 
    2023-09-13 19:30:03.000000000 +0200
+++ 
new/azure-eventgrid-4.15.0/samples/async_samples/sample_authentication_async.py 
    2023-10-12 23:03:55.000000000 +0200
@@ -23,8 +23,8 @@
 topic_key = os.environ["EVENTGRID_TOPIC_KEY"]
 endpoint = os.environ["EVENTGRID_TOPIC_ENDPOINT"]
 
-credential = AzureKeyCredential(topic_key)
-client = EventGridPublisherClient(endpoint, credential)
+credential_key = AzureKeyCredential(topic_key)
+client = EventGridPublisherClient(endpoint, credential_key)
 # [END client_auth_with_key_cred_async]
 
 # [START client_auth_with_sas_cred_async]
@@ -35,8 +35,8 @@
 signature = os.environ["EVENTGRID_SAS"]
 endpoint = os.environ["EVENTGRID_TOPIC_ENDPOINT"]
 
-credential = AzureSasCredential(signature)
-client = EventGridPublisherClient(endpoint, credential)
+credential_sas = AzureSasCredential(signature)
+client = EventGridPublisherClient(endpoint, credential_sas)
 # [END client_auth_with_sas_cred_async]
 
 # [START client_auth_with_token_cred_async]
@@ -51,7 +51,7 @@
     data_version="2.0"
 )
 
-credential = DefaultAzureCredential()
+default_az_credential = DefaultAzureCredential()
 endpoint = os.environ["EVENTGRID_TOPIC_ENDPOINT"]
-client = EventGridPublisherClient(endpoint, credential)
+client = EventGridPublisherClient(endpoint, default_az_credential)
 # [END client_auth_with_token_cred_async]
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-eventgrid-4.14.0/samples/consume_samples/consume_cloud_events_from_eventhub.py
 
new/azure-eventgrid-4.15.0/samples/consume_samples/consume_cloud_events_from_eventhub.py
--- 
old/azure-eventgrid-4.14.0/samples/consume_samples/consume_cloud_events_from_eventhub.py
    2023-09-13 19:30:03.000000000 +0200
+++ 
new/azure-eventgrid-4.15.0/samples/consume_samples/consume_cloud_events_from_eventhub.py
    2023-10-12 23:03:55.000000000 +0200
@@ -25,7 +25,7 @@
 CONNECTION_STR = os.environ["EVENT_HUB_CONN_STR"]
 EVENTHUB_NAME = os.environ["EVENT_HUB_NAME"]
 def on_event(partition_context, event):
-    dict_event = CloudEvent.from_json(event)
+    dict_event: CloudEvent = CloudEvent.from_json(event)
     print("data: {}\n".format(dict_event.data))
 
 consumer_client = EventHubConsumerClient.from_connection_string(
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-eventgrid-4.14.0/samples/consume_samples/consume_cloud_events_from_storage_queue.py
 
new/azure-eventgrid-4.15.0/samples/consume_samples/consume_cloud_events_from_storage_queue.py
--- 
old/azure-eventgrid-4.14.0/samples/consume_samples/consume_cloud_events_from_storage_queue.py
       2023-09-13 19:30:03.000000000 +0200
+++ 
new/azure-eventgrid-4.15.0/samples/consume_samples/consume_cloud_events_from_storage_queue.py
       2023-10-12 23:03:55.000000000 +0200
@@ -13,7 +13,7 @@
     1) STORAGE_QUEUE_CONN_STR: The connection string to the Storage account
     3) STORAGE_QUEUE_NAME: The name of the storage queue.
 """
-
+from typing import List
 from azure.core.messaging import CloudEvent
 from azure.storage.queue import QueueServiceClient, BinaryBase64DecodePolicy
 import os
@@ -30,7 +30,7 @@
         ).peek_messages(max_messages=32)
 
     ## deserialize payload into a list of typed Events
-    events = [CloudEvent.from_json(msg) for msg in payload]
+    events: List[CloudEvent] = [CloudEvent.from_json(msg) for msg in payload]
 
     for event in events:
         print(type(event)) ## CloudEvent
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-eventgrid-4.14.0/samples/publish_samples/publish_cloud_events_to_custom_topic_sample.py
 
new/azure-eventgrid-4.15.0/samples/publish_samples/publish_cloud_events_to_custom_topic_sample.py
--- 
old/azure-eventgrid-4.14.0/samples/publish_samples/publish_cloud_events_to_custom_topic_sample.py
   2023-09-13 19:30:03.000000000 +0200
+++ 
new/azure-eventgrid-4.15.0/samples/publish_samples/publish_cloud_events_to_custom_topic_sample.py
   2023-10-12 23:03:55.000000000 +0200
@@ -23,7 +23,7 @@
 from azure.core.messaging import CloudEvent
 from azure.eventgrid import EventGridPublisherClient
 
-key = os.environ.get("EVENTGRID_CLOUD_EVENT_TOPIC_KEY")
+key = os.environ["EVENTGRID_CLOUD_EVENT_TOPIC_KEY"]
 endpoint = os.environ["EVENTGRID_CLOUD_EVENT_TOPIC_ENDPOINT"]
 
 # authenticate client
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-eventgrid-4.14.0/samples/sync_samples/sample_authentication.py 
new/azure-eventgrid-4.15.0/samples/sync_samples/sample_authentication.py
--- old/azure-eventgrid-4.14.0/samples/sync_samples/sample_authentication.py    
2023-09-13 19:30:03.000000000 +0200
+++ new/azure-eventgrid-4.15.0/samples/sync_samples/sample_authentication.py    
2023-10-12 23:03:55.000000000 +0200
@@ -23,8 +23,8 @@
 topic_key = os.environ["EVENTGRID_TOPIC_KEY"]
 endpoint = os.environ["EVENTGRID_TOPIC_ENDPOINT"]
 
-credential = AzureKeyCredential(topic_key)
-client = EventGridPublisherClient(endpoint, credential)
+credential_key = AzureKeyCredential(topic_key)
+client = EventGridPublisherClient(endpoint, credential_key)
 # [END client_auth_with_key_cred]
 
 # [START client_auth_with_sas_cred]
@@ -35,15 +35,15 @@
 signature = os.environ["EVENTGRID_SAS"]
 endpoint = os.environ["EVENTGRID_TOPIC_ENDPOINT"]
 
-credential = AzureSasCredential(signature)
-client = EventGridPublisherClient(endpoint, credential)
+credential_sas = AzureSasCredential(signature)
+client = EventGridPublisherClient(endpoint, credential_sas)
 # [END client_auth_with_sas_cred]
 
 # [START client_auth_with_token_cred]
 from azure.identity import DefaultAzureCredential
 from azure.eventgrid import EventGridPublisherClient, EventGridEvent
 
-credential = DefaultAzureCredential()
+default_az_credential = DefaultAzureCredential()
 endpoint = os.environ["EVENTGRID_TOPIC_ENDPOINT"]
-client = EventGridPublisherClient(endpoint, credential)
+client = EventGridPublisherClient(endpoint, default_az_credential)
 # [END client_auth_with_token_cred]
\ No newline at end of file
diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' 
'--exclude=.svnignore' 
old/azure-eventgrid-4.14.0/samples/sync_samples/sample_consume_custom_payload.py
 
new/azure-eventgrid-4.15.0/samples/sync_samples/sample_consume_custom_payload.py
--- 
old/azure-eventgrid-4.14.0/samples/sync_samples/sample_consume_custom_payload.py
    2023-09-13 19:30:03.000000000 +0200
+++ 
new/azure-eventgrid-4.15.0/samples/sync_samples/sample_consume_custom_payload.py
    2023-10-12 23:03:55.000000000 +0200
@@ -6,12 +6,12 @@
 """
 FILE: sample_consume_custom_payload.py
 DESCRIPTION:
-    These samples demonstrate consuming a raw json with a list of jsons and
+    These samples demonstrate consuming a raw json with a list of json and
     deserializing them into typed objects of CloudEvents.
 USAGE:
     python sample_consume_custom_payload.py
 """
-
+from typing import List
 from azure.core.messaging import CloudEvent
 import json
 
@@ -27,7 +27,7 @@
     "specversion":"1.0"
 }]"""
 
-deserialized_dict_events = [CloudEvent(**msg) for msg in 
json.loads(cloud_custom_dict)]
+deserialized_dict_events: List[CloudEvent] = [CloudEvent(**msg) for msg in 
json.loads(cloud_custom_dict)]
 
 for event in deserialized_dict_events:
     print(event.data)

Reply via email to