1717
1818from ._configuration import EventGridConsumerClientConfiguration , EventGridPublisherClientConfiguration
1919from ._operations import EventGridConsumerClientOperationsMixin , EventGridPublisherClientOperationsMixin
20- from ._serialization import Deserializer , Serializer
20+ from ._utils . serialization import Deserializer , Serializer
2121
2222if TYPE_CHECKING :
2323 from azure .core .credentials import TokenCredential
@@ -29,8 +29,8 @@ class EventGridPublisherClient(EventGridPublisherClientOperationsMixin):
2929 :param endpoint: The host name of the namespace, e.g.
3030 namespaceName1.westus-1.eventgrid.azure.net. Required.
3131 :type endpoint: str
32- :param credential: Credential used to authenticate requests to the service. Is either a
33- AzureKeyCredential type or a TokenCredential type. Required.
32+ :param credential: Credential used to authenticate requests to the service. Is either a key
33+ credential type or a token credential type. Required.
3434 :type credential: ~azure.core.credentials.AzureKeyCredential or
3535 ~azure.core.credentials.TokenCredential
3636 :keyword api_version: The API version to use for this operation. Default value is "2024-06-01".
@@ -41,6 +41,7 @@ class EventGridPublisherClient(EventGridPublisherClientOperationsMixin):
4141 def __init__ (self , endpoint : str , credential : Union [AzureKeyCredential , "TokenCredential" ], ** kwargs : Any ) -> None :
4242 _endpoint = "{endpoint}"
4343 self ._config = EventGridPublisherClientConfiguration (endpoint = endpoint , credential = credential , ** kwargs )
44+
4445 _policies = kwargs .pop ("policies" , None )
4546 if _policies is None :
4647 _policies = [
@@ -107,8 +108,8 @@ class EventGridConsumerClient(EventGridConsumerClientOperationsMixin):
107108 :param endpoint: The host name of the namespace, e.g.
108109 namespaceName1.westus-1.eventgrid.azure.net. Required.
109110 :type endpoint: str
110- :param credential: Credential used to authenticate requests to the service. Is either a
111- AzureKeyCredential type or a TokenCredential type. Required.
111+ :param credential: Credential used to authenticate requests to the service. Is either a key
112+ credential type or a token credential type. Required.
112113 :type credential: ~azure.core.credentials.AzureKeyCredential or
113114 ~azure.core.credentials.TokenCredential
114115 :keyword api_version: The API version to use for this operation. Default value is "2024-06-01".
@@ -119,6 +120,7 @@ class EventGridConsumerClient(EventGridConsumerClientOperationsMixin):
119120 def __init__ (self , endpoint : str , credential : Union [AzureKeyCredential , "TokenCredential" ], ** kwargs : Any ) -> None :
120121 _endpoint = "{endpoint}"
121122 self ._config = EventGridConsumerClientConfiguration (endpoint = endpoint , credential = credential , ** kwargs )
123+
122124 _policies = kwargs .pop ("policies" , None )
123125 if _policies is None :
124126 _policies = [
0 commit comments