Skip to content

Commit 5e8c08d

Browse files
author
SDKAuto
committed
CodeGen from PR 34270 in Azure/azure-rest-api-specs
Merge 447c4193246efcde66d0d0feaa59da2c756c794f into a19648565889eaae019e531c15f3045d1244c7ce
1 parent 6c30600 commit 5e8c08d

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

63 files changed

+501
-6393
lines changed

sdk/eventgrid/azure-eventgrid/MANIFEST.in

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@ include LICENSE
33
include azure/eventgrid/py.typed
44
recursive-include tests *.py
55
recursive-include samples *.py *.md
6-
include azure/__init__.py
6+
include azure/__init__.py
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
{
2+
"commit": "5ab69662eff4ee3c2bc93c2a4959470ab9867c99",
3+
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4+
"typespec_src": "specification/eventgrid/Azure.Messaging.EventGrid",
5+
"@azure-tools/typespec-python": "0.44.2"
6+
}
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"CrossLanguagePackageId": "Microsoft.EventGrid",
3+
"CrossLanguageDefinitionId": {
4+
"azure.eventgrid.models.AcknowledgeResult": "Microsoft.EventGrid.AcknowledgeResult",
5+
"azure.eventgrid.models.FailedLockToken": "Microsoft.EventGrid.FailedLockToken",
6+
"azure.eventgrid.models.RejectResult": "Microsoft.EventGrid.RejectResult",
7+
"azure.eventgrid.models.ReleaseResult": "Microsoft.EventGrid.ReleaseResult",
8+
"azure.eventgrid.models.RenewLocksResult": "Microsoft.EventGrid.RenewCloudEventLocksResult",
9+
"azure.eventgrid.models.ReleaseDelay": "Microsoft.EventGrid.ReleaseDelay"
10+
}
11+
}

sdk/eventgrid/azure-eventgrid/azure/eventgrid/_client.py

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717

1818
from ._configuration import EventGridConsumerClientConfiguration, EventGridPublisherClientConfiguration
1919
from ._operations import EventGridConsumerClientOperationsMixin, EventGridPublisherClientOperationsMixin
20-
from ._serialization import Deserializer, Serializer
20+
from ._utils.serialization import Deserializer, Serializer
2121

2222
if 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 = [

sdk/eventgrid/azure-eventgrid/azure/eventgrid/_configuration.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ class EventGridPublisherClientConfiguration: # pylint: disable=too-many-instanc
2626
:param endpoint: The host name of the namespace, e.g.
2727
namespaceName1.westus-1.eventgrid.azure.net. Required.
2828
:type endpoint: str
29-
:param credential: Credential used to authenticate requests to the service. Is either a
30-
AzureKeyCredential type or a TokenCredential type. Required.
29+
:param credential: Credential used to authenticate requests to the service. Is either a key
30+
credential type or a token credential type. Required.
3131
:type credential: ~azure.core.credentials.AzureKeyCredential or
3232
~azure.core.credentials.TokenCredential
3333
:keyword api_version: The API version to use for this operation. Default value is "2024-06-01".
@@ -83,8 +83,8 @@ class EventGridConsumerClientConfiguration: # pylint: disable=too-many-instance
8383
:param endpoint: The host name of the namespace, e.g.
8484
namespaceName1.westus-1.eventgrid.azure.net. Required.
8585
:type endpoint: str
86-
:param credential: Credential used to authenticate requests to the service. Is either a
87-
AzureKeyCredential type or a TokenCredential type. Required.
86+
:param credential: Credential used to authenticate requests to the service. Is either a key
87+
credential type or a token credential type. Required.
8888
:type credential: ~azure.core.credentials.AzureKeyCredential or
8989
~azure.core.credentials.TokenCredential
9090
:keyword api_version: The API version to use for this operation. Default value is "2024-06-01".

sdk/eventgrid/azure-eventgrid/azure/eventgrid/_legacy/__init__.py

Lines changed: 0 additions & 19 deletions
This file was deleted.

sdk/eventgrid/azure-eventgrid/azure/eventgrid/_legacy/_constants.py

Lines changed: 0 additions & 10 deletions
This file was deleted.

0 commit comments

Comments
 (0)