Skip to content

Commit a8140a9

Browse files
author
SDKAuto
committed
CodeGen from PR 32372 in Azure/azure-rest-api-specs
Merge 0d22a7be2da1240f0d62918d79fbdf5eb88e145d into db8e7d36f32fe94549f581bbeae1aa2857f4ca2a
1 parent ba7691f commit a8140a9

File tree

356 files changed

+12174
-10823
lines changed

Some content is hidden

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

356 files changed

+12174
-10823
lines changed
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "edbae6fb086224abd5b744edc7b833fec0909617",
2+
"commit": "d19a4cd2a8b16a612e12f1a3e628f841fc50022a",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.9.7",
4+
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.13.7",
6+
"@autorest/python@6.27.4",
77
"@autorest/[email protected]"
88
],
9-
"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",
9+
"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/s/azure-sdk-for-python/sdk --use=@autorest/python@6.27.4 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/eventgrid/resource-manager/readme.md"
1111
}

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

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,28 @@
55
# Code generated by Microsoft (R) AutoRest Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
8+
# pylint: disable=wrong-import-position
89

9-
from ._event_grid_management_client import EventGridManagementClient
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._event_grid_management_client import EventGridManagementClient # type: ignore
1016
from ._version import VERSION
1117

1218
__version__ = VERSION
1319

1420
try:
1521
from ._patch import __all__ as _patch_all
16-
from ._patch import * # pylint: disable=unused-wildcard-import
22+
from ._patch import *
1723
except ImportError:
1824
_patch_all = []
1925
from ._patch import patch_sdk as _patch_sdk
2026

2127
__all__ = [
2228
"EventGridManagementClient",
2329
]
24-
__all__.extend([p for p in _patch_all if p not in __all__])
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2531

2632
_patch_sdk()

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

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
from ._version import VERSION
1515

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

2019

21-
class EventGridManagementClientConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
20+
class EventGridManagementClientConfiguration: # pylint: disable=too-many-instance-attributes
2221
"""Configuration for EventGridManagementClient.
2322
2423
Note that all parameters used to create this instance are saved as instance
@@ -29,13 +28,13 @@ class EventGridManagementClientConfiguration: # pylint: disable=too-many-instan
2928
:param subscription_id: Subscription credentials that uniquely identify a Microsoft Azure
3029
subscription. The subscription ID forms part of the URI for every service call. Required.
3130
:type subscription_id: str
32-
:keyword api_version: Api Version. Default value is "2024-06-01-preview". Note that overriding
31+
:keyword api_version: Api Version. Default value is "2025-05-15-preview". Note that overriding
3332
this default value may result in unsupported behavior.
3433
:paramtype api_version: str
3534
"""
3635

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

4039
if credential is None:
4140
raise ValueError("Parameter 'credential' must not be None.")

sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/_event_grid_management_client.py

Lines changed: 19 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88

99
from copy import deepcopy
1010
from typing import Any, TYPE_CHECKING
11+
from typing_extensions import Self
1112

1213
from azure.core.pipeline import policies
1314
from azure.core.rest import HttpRequest, HttpResponse
@@ -31,10 +32,8 @@
3132
NamespaceTopicEventSubscriptionsOperations,
3233
NamespaceTopicsOperations,
3334
NamespacesOperations,
34-
NetworkSecurityPerimeterConfigurationsOperations,
3535
Operations,
3636
PartnerConfigurationsOperations,
37-
PartnerDestinationsOperations,
3837
PartnerNamespacesOperations,
3938
PartnerRegistrationsOperations,
4039
PartnerTopicEventSubscriptionsOperations,
@@ -52,11 +51,10 @@
5251
)
5352

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

5856

59-
class EventGridManagementClient: # pylint: disable=client-accepts-api-version-keyword,too-many-instance-attributes
57+
class EventGridManagementClient: # pylint: disable=too-many-instance-attributes
6058
"""Azure EventGrid Management Client.
6159
6260
:ivar ca_certificates: CaCertificatesOperations operations
@@ -71,24 +69,24 @@ class EventGridManagementClient: # pylint: disable=client-accepts-api-version-k
7169
:vartype domains: azure.mgmt.eventgrid.operations.DomainsOperations
7270
:ivar domain_topics: DomainTopicsOperations operations
7371
:vartype domain_topics: azure.mgmt.eventgrid.operations.DomainTopicsOperations
74-
:ivar domain_topic_event_subscriptions: DomainTopicEventSubscriptionsOperations operations
75-
:vartype domain_topic_event_subscriptions:
76-
azure.mgmt.eventgrid.operations.DomainTopicEventSubscriptionsOperations
7772
:ivar topic_event_subscriptions: TopicEventSubscriptionsOperations operations
7873
:vartype topic_event_subscriptions:
7974
azure.mgmt.eventgrid.operations.TopicEventSubscriptionsOperations
8075
:ivar domain_event_subscriptions: DomainEventSubscriptionsOperations operations
8176
:vartype domain_event_subscriptions:
8277
azure.mgmt.eventgrid.operations.DomainEventSubscriptionsOperations
78+
:ivar namespace_topic_event_subscriptions: NamespaceTopicEventSubscriptionsOperations
79+
operations
80+
:vartype namespace_topic_event_subscriptions:
81+
azure.mgmt.eventgrid.operations.NamespaceTopicEventSubscriptionsOperations
8382
:ivar event_subscriptions: EventSubscriptionsOperations operations
8483
:vartype event_subscriptions: azure.mgmt.eventgrid.operations.EventSubscriptionsOperations
84+
:ivar domain_topic_event_subscriptions: DomainTopicEventSubscriptionsOperations operations
85+
:vartype domain_topic_event_subscriptions:
86+
azure.mgmt.eventgrid.operations.DomainTopicEventSubscriptionsOperations
8587
:ivar system_topic_event_subscriptions: SystemTopicEventSubscriptionsOperations operations
8688
:vartype system_topic_event_subscriptions:
8789
azure.mgmt.eventgrid.operations.SystemTopicEventSubscriptionsOperations
88-
:ivar namespace_topic_event_subscriptions: NamespaceTopicEventSubscriptionsOperations
89-
operations
90-
:vartype namespace_topic_event_subscriptions:
91-
azure.mgmt.eventgrid.operations.NamespaceTopicEventSubscriptionsOperations
9290
:ivar partner_topic_event_subscriptions: PartnerTopicEventSubscriptionsOperations operations
9391
:vartype partner_topic_event_subscriptions:
9492
azure.mgmt.eventgrid.operations.PartnerTopicEventSubscriptionsOperations
@@ -98,21 +96,17 @@ class EventGridManagementClient: # pylint: disable=client-accepts-api-version-k
9896
:vartype namespace_topics: azure.mgmt.eventgrid.operations.NamespaceTopicsOperations
9997
:ivar operations: Operations operations
10098
:vartype operations: azure.mgmt.eventgrid.operations.Operations
99+
:ivar topics: TopicsOperations operations
100+
:vartype topics: azure.mgmt.eventgrid.operations.TopicsOperations
101101
:ivar partner_configurations: PartnerConfigurationsOperations operations
102102
:vartype partner_configurations:
103103
azure.mgmt.eventgrid.operations.PartnerConfigurationsOperations
104-
:ivar partner_destinations: PartnerDestinationsOperations operations
105-
:vartype partner_destinations: azure.mgmt.eventgrid.operations.PartnerDestinationsOperations
106104
:ivar partner_namespaces: PartnerNamespacesOperations operations
107105
:vartype partner_namespaces: azure.mgmt.eventgrid.operations.PartnerNamespacesOperations
108106
:ivar partner_registrations: PartnerRegistrationsOperations operations
109107
:vartype partner_registrations: azure.mgmt.eventgrid.operations.PartnerRegistrationsOperations
110108
:ivar partner_topics: PartnerTopicsOperations operations
111109
:vartype partner_topics: azure.mgmt.eventgrid.operations.PartnerTopicsOperations
112-
:ivar network_security_perimeter_configurations:
113-
NetworkSecurityPerimeterConfigurationsOperations operations
114-
:vartype network_security_perimeter_configurations:
115-
azure.mgmt.eventgrid.operations.NetworkSecurityPerimeterConfigurationsOperations
116110
:ivar permission_bindings: PermissionBindingsOperations operations
117111
:vartype permission_bindings: azure.mgmt.eventgrid.operations.PermissionBindingsOperations
118112
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
@@ -122,8 +116,6 @@ class EventGridManagementClient: # pylint: disable=client-accepts-api-version-k
122116
:vartype private_link_resources: azure.mgmt.eventgrid.operations.PrivateLinkResourcesOperations
123117
:ivar system_topics: SystemTopicsOperations operations
124118
:vartype system_topics: azure.mgmt.eventgrid.operations.SystemTopicsOperations
125-
:ivar topics: TopicsOperations operations
126-
:vartype topics: azure.mgmt.eventgrid.operations.TopicsOperations
127119
:ivar extension_topics: ExtensionTopicsOperations operations
128120
:vartype extension_topics: azure.mgmt.eventgrid.operations.ExtensionTopicsOperations
129121
:ivar topic_spaces: TopicSpacesOperations operations
@@ -139,7 +131,7 @@ class EventGridManagementClient: # pylint: disable=client-accepts-api-version-k
139131
:type subscription_id: str
140132
:param base_url: Service URL. Default value is "https://management.azure.com".
141133
:type base_url: str
142-
:keyword api_version: Api Version. Default value is "2024-06-01-preview". Note that overriding
134+
:keyword api_version: Api Version. Default value is "2025-05-15-preview". Note that overriding
143135
this default value may result in unsupported behavior.
144136
:paramtype api_version: str
145137
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
@@ -186,22 +178,22 @@ def __init__(
186178
self.clients = ClientsOperations(self._client, self._config, self._serialize, self._deserialize)
187179
self.domains = DomainsOperations(self._client, self._config, self._serialize, self._deserialize)
188180
self.domain_topics = DomainTopicsOperations(self._client, self._config, self._serialize, self._deserialize)
189-
self.domain_topic_event_subscriptions = DomainTopicEventSubscriptionsOperations(
190-
self._client, self._config, self._serialize, self._deserialize
191-
)
192181
self.topic_event_subscriptions = TopicEventSubscriptionsOperations(
193182
self._client, self._config, self._serialize, self._deserialize
194183
)
195184
self.domain_event_subscriptions = DomainEventSubscriptionsOperations(
196185
self._client, self._config, self._serialize, self._deserialize
197186
)
187+
self.namespace_topic_event_subscriptions = NamespaceTopicEventSubscriptionsOperations(
188+
self._client, self._config, self._serialize, self._deserialize
189+
)
198190
self.event_subscriptions = EventSubscriptionsOperations(
199191
self._client, self._config, self._serialize, self._deserialize
200192
)
201-
self.system_topic_event_subscriptions = SystemTopicEventSubscriptionsOperations(
193+
self.domain_topic_event_subscriptions = DomainTopicEventSubscriptionsOperations(
202194
self._client, self._config, self._serialize, self._deserialize
203195
)
204-
self.namespace_topic_event_subscriptions = NamespaceTopicEventSubscriptionsOperations(
196+
self.system_topic_event_subscriptions = SystemTopicEventSubscriptionsOperations(
205197
self._client, self._config, self._serialize, self._deserialize
206198
)
207199
self.partner_topic_event_subscriptions = PartnerTopicEventSubscriptionsOperations(
@@ -212,22 +204,17 @@ def __init__(
212204
self._client, self._config, self._serialize, self._deserialize
213205
)
214206
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
207+
self.topics = TopicsOperations(self._client, self._config, self._serialize, self._deserialize)
215208
self.partner_configurations = PartnerConfigurationsOperations(
216209
self._client, self._config, self._serialize, self._deserialize
217210
)
218-
self.partner_destinations = PartnerDestinationsOperations(
219-
self._client, self._config, self._serialize, self._deserialize
220-
)
221211
self.partner_namespaces = PartnerNamespacesOperations(
222212
self._client, self._config, self._serialize, self._deserialize
223213
)
224214
self.partner_registrations = PartnerRegistrationsOperations(
225215
self._client, self._config, self._serialize, self._deserialize
226216
)
227217
self.partner_topics = PartnerTopicsOperations(self._client, self._config, self._serialize, self._deserialize)
228-
self.network_security_perimeter_configurations = NetworkSecurityPerimeterConfigurationsOperations(
229-
self._client, self._config, self._serialize, self._deserialize
230-
)
231218
self.permission_bindings = PermissionBindingsOperations(
232219
self._client, self._config, self._serialize, self._deserialize
233220
)
@@ -238,7 +225,6 @@ def __init__(
238225
self._client, self._config, self._serialize, self._deserialize
239226
)
240227
self.system_topics = SystemTopicsOperations(self._client, self._config, self._serialize, self._deserialize)
241-
self.topics = TopicsOperations(self._client, self._config, self._serialize, self._deserialize)
242228
self.extension_topics = ExtensionTopicsOperations(
243229
self._client, self._config, self._serialize, self._deserialize
244230
)
@@ -273,7 +259,7 @@ def _send_request(self, request: HttpRequest, *, stream: bool = False, **kwargs:
273259
def close(self) -> None:
274260
self._client.close()
275261

276-
def __enter__(self) -> "EventGridManagementClient":
262+
def __enter__(self) -> Self:
277263
self._client.__enter__()
278264
return self
279265

sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/_patch.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
#
2626
# --------------------------------------------------------------------------
2727

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

0 commit comments

Comments
 (0)