Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoRelease] t2-eventgrid-2025-02-19-56413(can only be merged by SDK owner) #39786

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
246 changes: 246 additions & 0 deletions sdk/eventgrid/azure-mgmt-eventgrid/CHANGELOG.md

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions sdk/eventgrid/azure-mgmt-eventgrid/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"commit": "edbae6fb086224abd5b744edc7b833fec0909617",
"commit": "77c6bdce6b76fabe323269a69bdb4a7824f7b44b",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.7",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.13.7",
"@autorest/python@6.27.4",
"@autorest/[email protected]"
],
"autorest_command": "autorest specification/eventgrid/resource-manager/readme.md --generate-sample=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.13.7 --use=@autorest/[email protected] --version=3.9.7 --version-tolerant=False",
"autorest_command": "autorest specification/eventgrid/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.27.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"readme": "specification/eventgrid/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,22 +5,28 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wrong-import-position

from ._event_grid_management_client import EventGridManagementClient
from typing import TYPE_CHECKING

if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._event_grid_management_client import EventGridManagementClient # type: ignore
from ._version import VERSION

__version__ = VERSION

try:
from ._patch import __all__ as _patch_all
from ._patch import * # pylint: disable=unused-wildcard-import
from ._patch import *
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"EventGridManagementClient",
]
__all__.extend([p for p in _patch_all if p not in __all__])
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore

_patch_sdk()
Original file line number Diff line number Diff line change
Expand Up @@ -14,11 +14,10 @@
from ._version import VERSION

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials import TokenCredential


class EventGridManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
class EventGridManagementClientConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for EventGridManagementClient.

Note that all parameters used to create this instance are saved as instance
Expand All @@ -29,13 +28,13 @@ class EventGridManagementClientConfiguration: # pylint: disable=too-many-instan
:param subscription_id: Subscription credentials that uniquely identify a Microsoft Azure
subscription. The subscription ID forms part of the URI for every service call. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2024-06-01-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2025-02-15". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
api_version: str = kwargs.pop("api_version", "2024-06-01-preview")
api_version: str = kwargs.pop("api_version", "2025-02-15")

if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand Down
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
from typing_extensions import Self

from azure.core.pipeline import policies
from azure.core.rest import HttpRequest, HttpResponse
Expand All @@ -31,10 +32,8 @@
NamespaceTopicEventSubscriptionsOperations,
NamespaceTopicsOperations,
NamespacesOperations,
NetworkSecurityPerimeterConfigurationsOperations,
Operations,
PartnerConfigurationsOperations,
PartnerDestinationsOperations,
PartnerNamespacesOperations,
PartnerRegistrationsOperations,
PartnerTopicEventSubscriptionsOperations,
Expand All @@ -52,11 +51,10 @@
)

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials import TokenCredential


class EventGridManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
class EventGridManagementClient: # pylint: disable=too-many-instance-attributes
"""Azure EventGrid Management Client.

:ivar ca_certificates: CaCertificatesOperations operations
Expand All @@ -71,24 +69,24 @@ class EventGridManagementClient: # pylint: disable=client-accepts-api-version-k
:vartype domains: azure.mgmt.eventgrid.operations.DomainsOperations
:ivar domain_topics: DomainTopicsOperations operations
:vartype domain_topics: azure.mgmt.eventgrid.operations.DomainTopicsOperations
:ivar domain_topic_event_subscriptions: DomainTopicEventSubscriptionsOperations operations
:vartype domain_topic_event_subscriptions:
azure.mgmt.eventgrid.operations.DomainTopicEventSubscriptionsOperations
:ivar topic_event_subscriptions: TopicEventSubscriptionsOperations operations
:vartype topic_event_subscriptions:
azure.mgmt.eventgrid.operations.TopicEventSubscriptionsOperations
:ivar domain_event_subscriptions: DomainEventSubscriptionsOperations operations
:vartype domain_event_subscriptions:
azure.mgmt.eventgrid.operations.DomainEventSubscriptionsOperations
:ivar namespace_topic_event_subscriptions: NamespaceTopicEventSubscriptionsOperations
operations
:vartype namespace_topic_event_subscriptions:
azure.mgmt.eventgrid.operations.NamespaceTopicEventSubscriptionsOperations
:ivar event_subscriptions: EventSubscriptionsOperations operations
:vartype event_subscriptions: azure.mgmt.eventgrid.operations.EventSubscriptionsOperations
:ivar domain_topic_event_subscriptions: DomainTopicEventSubscriptionsOperations operations
:vartype domain_topic_event_subscriptions:
azure.mgmt.eventgrid.operations.DomainTopicEventSubscriptionsOperations
:ivar system_topic_event_subscriptions: SystemTopicEventSubscriptionsOperations operations
:vartype system_topic_event_subscriptions:
azure.mgmt.eventgrid.operations.SystemTopicEventSubscriptionsOperations
:ivar namespace_topic_event_subscriptions: NamespaceTopicEventSubscriptionsOperations
operations
:vartype namespace_topic_event_subscriptions:
azure.mgmt.eventgrid.operations.NamespaceTopicEventSubscriptionsOperations
:ivar partner_topic_event_subscriptions: PartnerTopicEventSubscriptionsOperations operations
:vartype partner_topic_event_subscriptions:
azure.mgmt.eventgrid.operations.PartnerTopicEventSubscriptionsOperations
Expand All @@ -98,21 +96,17 @@ class EventGridManagementClient: # pylint: disable=client-accepts-api-version-k
:vartype namespace_topics: azure.mgmt.eventgrid.operations.NamespaceTopicsOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.eventgrid.operations.Operations
:ivar topics: TopicsOperations operations
:vartype topics: azure.mgmt.eventgrid.operations.TopicsOperations
:ivar partner_configurations: PartnerConfigurationsOperations operations
:vartype partner_configurations:
azure.mgmt.eventgrid.operations.PartnerConfigurationsOperations
:ivar partner_destinations: PartnerDestinationsOperations operations
:vartype partner_destinations: azure.mgmt.eventgrid.operations.PartnerDestinationsOperations
:ivar partner_namespaces: PartnerNamespacesOperations operations
:vartype partner_namespaces: azure.mgmt.eventgrid.operations.PartnerNamespacesOperations
:ivar partner_registrations: PartnerRegistrationsOperations operations
:vartype partner_registrations: azure.mgmt.eventgrid.operations.PartnerRegistrationsOperations
:ivar partner_topics: PartnerTopicsOperations operations
:vartype partner_topics: azure.mgmt.eventgrid.operations.PartnerTopicsOperations
:ivar network_security_perimeter_configurations:
NetworkSecurityPerimeterConfigurationsOperations operations
:vartype network_security_perimeter_configurations:
azure.mgmt.eventgrid.operations.NetworkSecurityPerimeterConfigurationsOperations
:ivar permission_bindings: PermissionBindingsOperations operations
:vartype permission_bindings: azure.mgmt.eventgrid.operations.PermissionBindingsOperations
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
Expand All @@ -122,8 +116,6 @@ class EventGridManagementClient: # pylint: disable=client-accepts-api-version-k
:vartype private_link_resources: azure.mgmt.eventgrid.operations.PrivateLinkResourcesOperations
:ivar system_topics: SystemTopicsOperations operations
:vartype system_topics: azure.mgmt.eventgrid.operations.SystemTopicsOperations
:ivar topics: TopicsOperations operations
:vartype topics: azure.mgmt.eventgrid.operations.TopicsOperations
:ivar extension_topics: ExtensionTopicsOperations operations
:vartype extension_topics: azure.mgmt.eventgrid.operations.ExtensionTopicsOperations
:ivar topic_spaces: TopicSpacesOperations operations
Expand All @@ -139,8 +131,8 @@ class EventGridManagementClient: # pylint: disable=client-accepts-api-version-k
:type subscription_id: str
:param base_url: Service URL. Default value is "https://management.azure.com".
:type base_url: str
:keyword api_version: Api Version. Default value is "2024-06-01-preview". Note that overriding
this default value may result in unsupported behavior.
:keyword api_version: Api Version. Default value is "2025-02-15". Note that overriding this
default value may result in unsupported behavior.
:paramtype api_version: str
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
Retry-After header is present.
Expand Down Expand Up @@ -186,22 +178,22 @@ def __init__(
self.clients = ClientsOperations(self._client, self._config, self._serialize, self._deserialize)
self.domains = DomainsOperations(self._client, self._config, self._serialize, self._deserialize)
self.domain_topics = DomainTopicsOperations(self._client, self._config, self._serialize, self._deserialize)
self.domain_topic_event_subscriptions = DomainTopicEventSubscriptionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.topic_event_subscriptions = TopicEventSubscriptionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.domain_event_subscriptions = DomainEventSubscriptionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.namespace_topic_event_subscriptions = NamespaceTopicEventSubscriptionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.event_subscriptions = EventSubscriptionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.system_topic_event_subscriptions = SystemTopicEventSubscriptionsOperations(
self.domain_topic_event_subscriptions = DomainTopicEventSubscriptionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.namespace_topic_event_subscriptions = NamespaceTopicEventSubscriptionsOperations(
self.system_topic_event_subscriptions = SystemTopicEventSubscriptionsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.partner_topic_event_subscriptions = PartnerTopicEventSubscriptionsOperations(
Expand All @@ -212,22 +204,17 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize
)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.topics = TopicsOperations(self._client, self._config, self._serialize, self._deserialize)
self.partner_configurations = PartnerConfigurationsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.partner_destinations = PartnerDestinationsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.partner_namespaces = PartnerNamespacesOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.partner_registrations = PartnerRegistrationsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.partner_topics = PartnerTopicsOperations(self._client, self._config, self._serialize, self._deserialize)
self.network_security_perimeter_configurations = NetworkSecurityPerimeterConfigurationsOperations(
self._client, self._config, self._serialize, self._deserialize
)
self.permission_bindings = PermissionBindingsOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand All @@ -238,7 +225,6 @@ def __init__(
self._client, self._config, self._serialize, self._deserialize
)
self.system_topics = SystemTopicsOperations(self._client, self._config, self._serialize, self._deserialize)
self.topics = TopicsOperations(self._client, self._config, self._serialize, self._deserialize)
self.extension_topics = ExtensionTopicsOperations(
self._client, self._config, self._serialize, self._deserialize
)
Expand Down Expand Up @@ -273,7 +259,7 @@ def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
def close(self) -> None:
self._client.close()

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

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
#
# --------------------------------------------------------------------------


# This file is used for handwritten extensions to the generated code. Example:
# https://github.com/Azure/azure-sdk-for-python/blob/main/doc/dev/customize_code/how-to-patch-sdk-code.md
def patch_sdk():
Expand Down
Loading
Loading