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 bf8032389281d6aecaf887e55dabdaa282478a28 into 1b9c5dafba0f4b5185279197f82b350a46fe43ba
  • Loading branch information
SDKAuto committed Sep 30, 2024
1 parent e7724da commit c0c31b3
Show file tree
Hide file tree
Showing 56 changed files with 831 additions and 6,858 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": "d18e88e710429e52ef09a24b7709e6b55bad6a41",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"typespec_src": "specification/eventgrid/Azure.Messaging.EventGrid",
"@azure-tools/typespec-python": "0.33.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 c0c31b3

Please sign in to comment.