Skip to content

Commit

Permalink
CodeGen from PR 30305 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge 220fa7d43443580e7f93fdc9e52e1da2925b9846 into b67274cc1916170502f17ffabac0b46c4620918e
  • Loading branch information
SDKAuto committed Aug 23, 2024
1 parent a27efae commit ccd320d
Show file tree
Hide file tree
Showing 53 changed files with 136 additions and 6,672 deletions.
6 changes: 6 additions & 0 deletions sdk/eventgrid/azure-eventgrid/_meta.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"commit": "07c13fec48284bff0806b6cffdf93c040ee0c178",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"typespec_src": "specification/eventgrid/Azure.Messaging.EventGrid",
"@azure-tools/typespec-python": "0.29.0"
}
4 changes: 2 additions & 2 deletions sdk/eventgrid/azure-eventgrid/azure/eventgrid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from ._patch import EventGridPublisherClient
from ._patch import EventGridConsumerClient
from ._client import EventGridPublisherClient
from ._client import EventGridConsumerClient
from ._version import VERSION

__version__ = VERSION
Expand Down
5 changes: 3 additions & 2 deletions sdk/eventgrid/azure-eventgrid/azure/eventgrid/_client.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@

from copy import deepcopy
from typing import Any, TYPE_CHECKING, Union
from typing_extensions import Self

from azure.core import PipelineClient
from azure.core.credentials import AzureKeyCredential
Expand Down Expand Up @@ -95,7 +96,7 @@ def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
def close(self) -> None:
self._client.close()

def __enter__(self) -> "EventGridPublisherClient":
def __enter__(self) -> Self:
self._client.__enter__()
return self

Expand Down Expand Up @@ -175,7 +176,7 @@ def send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
def close(self) -> None:
self._client.close()

def __enter__(self) -> "EventGridConsumerClient":
def __enter__(self) -> Self:
self._client.__enter__()
return self

Expand Down
19 changes: 0 additions & 19 deletions sdk/eventgrid/azure-eventgrid/azure/eventgrid/_legacy/__init__.py

This file was deleted.

This file was deleted.

Loading

0 comments on commit ccd320d

Please sign in to comment.