Skip to content

Commit 3f01c16

Browse files
author
SDKAuto
committed
CodeGen from PR 33889 in Azure/azure-rest-api-specs
Merge 3c5997d5334bd1f416b87c5b3882ee4426a332a2 into 8ab23bfef36dbedfe554f215d0771a4ef7d56d11
1 parent 8b9851a commit 3f01c16

File tree

357 files changed

+8724
-2659
lines changed

Some content is hidden

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

357 files changed

+8724
-2659
lines changed

sdk/eventgrid/azure-mgmt-eventgrid/CHANGELOG.md

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,80 @@
11
# Release History
22

3+
## 10.5.0b1 (2025-04-23)
4+
5+
### Features Added
6+
7+
- Client `EventGridManagementClient` added operation group `partner_destinations`
8+
- Client `EventGridManagementClient` added operation group `network_security_perimeter_configurations`
9+
- Model `Channel` added property `partner_destination_info`
10+
- Enum `ChannelProvisioningState` added member `IDLE_DUE_TO_MIRRORED_PARTNER_DESTINATION_DELETION`
11+
- Enum `ChannelType` added member `PARTNER_DESTINATION`
12+
- Model `ChannelUpdateParameters` added property `partner_destination_info`
13+
- Model `Domain` added property `sku`
14+
- Model `DomainUpdateParameters` added property `sku`
15+
- Enum `EndpointType` added member `PARTNER_DESTINATION`
16+
- Model `EventSubscriptionIdentity` added property `federated_identity_credential_info`
17+
- Enum `PublicNetworkAccess` added member `SECURED_BY_PERIMETER`
18+
- Model `Subscription` added property `tags`
19+
- Model `SubscriptionUpdateParameters` added property `tags`
20+
- Model `Topic` added property `sku`
21+
- Model `Topic` added property `kind`
22+
- Model `Topic` added property `extended_location`
23+
- Model `TopicSpacesConfiguration` added property `client_authentication`
24+
- Model `TopicUpdateParameters` added property `sku`
25+
- Model `UpdateTopicSpacesConfigurationInfo` added property `client_authentication`
26+
- Model `VerifiedPartner` added property `partner_destination_details`
27+
- Added enum `AlternativeAuthenticationNameSource`
28+
- Added model `AzureADPartnerClientAuthentication`
29+
- Added model `ClientAuthenticationSettings`
30+
- Added model `CustomJwtAuthenticationManagedIdentity`
31+
- Added enum `CustomJwtAuthenticationManagedIdentityType`
32+
- Added model `CustomJwtAuthenticationSettings`
33+
- Added model `CustomWebhookAuthenticationManagedIdentity`
34+
- Added enum `CustomWebhookAuthenticationManagedIdentityType`
35+
- Added model `EncodedIssuerCertificateInfo`
36+
- Added model `ExtendedLocation`
37+
- Added model `FederatedIdentityCredentialInfo`
38+
- Added model `IssuerCertificateInfo`
39+
- Added enum `NetworkSecurityPerimeterAssociationAccessMode`
40+
- Added enum `NetworkSecurityPerimeterConfigProvisioningState`
41+
- Added model `NetworkSecurityPerimeterConfiguration`
42+
- Added enum `NetworkSecurityPerimeterConfigurationIssueSeverity`
43+
- Added enum `NetworkSecurityPerimeterConfigurationIssueType`
44+
- Added model `NetworkSecurityPerimeterConfigurationIssues`
45+
- Added model `NetworkSecurityPerimeterConfigurationList`
46+
- Added model `NetworkSecurityPerimeterConfigurationProfile`
47+
- Added model `NetworkSecurityPerimeterInfo`
48+
- Added model `NetworkSecurityPerimeterProfileAccessRule`
49+
- Added enum `NetworkSecurityPerimeterProfileAccessRuleDirection`
50+
- Added enum `NetworkSecurityPerimeterResourceType`
51+
- Added model `NetworkSecurityPerimeterSubscription`
52+
- Added model `PartnerClientAuthentication`
53+
- Added enum `PartnerClientAuthenticationType`
54+
- Added model `PartnerDestination`
55+
- Added enum `PartnerDestinationActivationState`
56+
- Added model `PartnerDestinationInfo`
57+
- Added enum `PartnerDestinationProvisioningState`
58+
- Added model `PartnerDestinationUpdateParameters`
59+
- Added model `PartnerDestinationsListResult`
60+
- Added enum `PartnerEndpointType`
61+
- Added model `PartnerEventSubscriptionDestination`
62+
- Added model `PartnerUpdateDestinationInfo`
63+
- Added model `ResourceAssociation`
64+
- Added enum `ResourceKind`
65+
- Added model `ResourceMoveChangeHistory`
66+
- Added model `ResourceSku`
67+
- Added enum `Sku`
68+
- Added model `WebhookAuthenticationSettings`
69+
- Added model `WebhookPartnerDestinationInfo`
70+
- Added model `WebhookUpdatePartnerDestinationInfo`
71+
- Added model `NetworkSecurityPerimeterConfigurationsOperations`
72+
- Added model `PartnerDestinationsOperations`
73+
- Method `PartnerDestinationsOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, partner_destination_name: str, partner_destination: PartnerDestination, content_type: str)`
74+
- Method `PartnerDestinationsOperations.begin_create_or_update` has a new overload `def begin_create_or_update(self: None, resource_group_name: str, partner_destination_name: str, partner_destination: IO[bytes], content_type: str)`
75+
- Method `PartnerDestinationsOperations.begin_update` has a new overload `def begin_update(self: None, resource_group_name: str, partner_destination_name: str, partner_destination_update_parameters: PartnerDestinationUpdateParameters, content_type: str)`
76+
- Method `PartnerDestinationsOperations.begin_update` has a new overload `def begin_update(self: None, resource_group_name: str, partner_destination_name: str, partner_destination_update_parameters: IO[bytes], content_type: str)`
77+
378
## 10.4.0 (2025-03-24)
479

580
### Features Added

sdk/eventgrid/azure-mgmt-eventgrid/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Microsoft Azure SDK for Python
22

33
This is the Microsoft Azure Event Grid Management Client Library.
4-
This package has been tested with Python 3.8+.
4+
This package has been tested with Python 3.9+.
55
For a more complete view of Azure libraries, see the [azure sdk python release](https://aka.ms/azsdk/python/all).
66

77
## _Disclaimer_
@@ -12,7 +12,7 @@ _Azure SDK Python packages support for Python 2.7 has ended 01 January 2022. For
1212

1313
### Prerequisites
1414

15-
- Python 3.8+ is required to use this package.
15+
- Python 3.9+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package
@@ -24,7 +24,7 @@ pip install azure-identity
2424

2525
### Authentication
2626

27-
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configure of following environment variables.
27+
By default, [Azure Active Directory](https://aka.ms/awps/aad) token authentication depends on correct configuration of the following environment variables.
2828

2929
- `AZURE_CLIENT_ID` for Azure client ID.
3030
- `AZURE_TENANT_ID` for Azure tenant ID.
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "77c6bdce6b76fabe323269a69bdb4a7824f7b44b",
2+
"commit": "2d51625d3a37973c306d160d7d604d51f5dd7590",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.27.4",
6+
"@autorest/python@6.33.0",
77
"@autorest/[email protected]"
88
],
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/azure-sdk-for-python/sdk --use=@autorest/python@6.27.4 --use=@autorest/[email protected] --version=3.10.2 --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.33.0 --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/_configuration.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,13 +28,13 @@ class EventGridManagementClientConfiguration: # pylint: disable=too-many-instan
2828
:param subscription_id: Subscription credentials that uniquely identify a Microsoft Azure
2929
subscription. The subscription ID forms part of the URI for every service call. Required.
3030
:type subscription_id: str
31-
:keyword api_version: Api Version. Default value is "2025-02-15". Note that overriding this
32-
default value may result in unsupported behavior.
31+
:keyword api_version: Api Version. Default value is "2025-04-15-preview". Note that overriding
32+
this default value may result in unsupported behavior.
3333
:paramtype api_version: str
3434
"""
3535

3636
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
37-
api_version: str = kwargs.pop("api_version", "2025-02-15")
37+
api_version: str = kwargs.pop("api_version", "2025-04-15-preview")
3838

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

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

Lines changed: 44 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,15 @@
77
# --------------------------------------------------------------------------
88

99
from copy import deepcopy
10-
from typing import Any, TYPE_CHECKING
10+
from typing import Any, Optional, TYPE_CHECKING, cast
1111
from typing_extensions import Self
1212

1313
from azure.core.pipeline import policies
1414
from azure.core.rest import HttpRequest, HttpResponse
15+
from azure.core.settings import settings
1516
from azure.mgmt.core import ARMPipelineClient
1617
from azure.mgmt.core.policies import ARMAutoResourceProviderRegistrationPolicy
18+
from azure.mgmt.core.tools import get_arm_endpoints
1719

1820
from . import models as _models
1921
from ._configuration import EventGridManagementClientConfiguration
@@ -32,8 +34,10 @@
3234
NamespaceTopicEventSubscriptionsOperations,
3335
NamespaceTopicsOperations,
3436
NamespacesOperations,
37+
NetworkSecurityPerimeterConfigurationsOperations,
3538
Operations,
3639
PartnerConfigurationsOperations,
40+
PartnerDestinationsOperations,
3741
PartnerNamespacesOperations,
3842
PartnerRegistrationsOperations,
3943
PartnerTopicEventSubscriptionsOperations,
@@ -69,24 +73,24 @@ class EventGridManagementClient: # pylint: disable=too-many-instance-attributes
6973
:vartype domains: azure.mgmt.eventgrid.operations.DomainsOperations
7074
:ivar domain_topics: DomainTopicsOperations operations
7175
:vartype domain_topics: azure.mgmt.eventgrid.operations.DomainTopicsOperations
76+
:ivar domain_topic_event_subscriptions: DomainTopicEventSubscriptionsOperations operations
77+
:vartype domain_topic_event_subscriptions:
78+
azure.mgmt.eventgrid.operations.DomainTopicEventSubscriptionsOperations
7279
:ivar topic_event_subscriptions: TopicEventSubscriptionsOperations operations
7380
:vartype topic_event_subscriptions:
7481
azure.mgmt.eventgrid.operations.TopicEventSubscriptionsOperations
7582
:ivar domain_event_subscriptions: DomainEventSubscriptionsOperations operations
7683
:vartype domain_event_subscriptions:
7784
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
8285
:ivar event_subscriptions: EventSubscriptionsOperations operations
8386
: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
8787
:ivar system_topic_event_subscriptions: SystemTopicEventSubscriptionsOperations operations
8888
:vartype system_topic_event_subscriptions:
8989
azure.mgmt.eventgrid.operations.SystemTopicEventSubscriptionsOperations
90+
:ivar namespace_topic_event_subscriptions: NamespaceTopicEventSubscriptionsOperations
91+
operations
92+
:vartype namespace_topic_event_subscriptions:
93+
azure.mgmt.eventgrid.operations.NamespaceTopicEventSubscriptionsOperations
9094
:ivar partner_topic_event_subscriptions: PartnerTopicEventSubscriptionsOperations operations
9195
:vartype partner_topic_event_subscriptions:
9296
azure.mgmt.eventgrid.operations.PartnerTopicEventSubscriptionsOperations
@@ -96,17 +100,21 @@ class EventGridManagementClient: # pylint: disable=too-many-instance-attributes
96100
:vartype namespace_topics: azure.mgmt.eventgrid.operations.NamespaceTopicsOperations
97101
:ivar operations: Operations operations
98102
:vartype operations: azure.mgmt.eventgrid.operations.Operations
99-
:ivar topics: TopicsOperations operations
100-
:vartype topics: azure.mgmt.eventgrid.operations.TopicsOperations
101103
:ivar partner_configurations: PartnerConfigurationsOperations operations
102104
:vartype partner_configurations:
103105
azure.mgmt.eventgrid.operations.PartnerConfigurationsOperations
106+
:ivar partner_destinations: PartnerDestinationsOperations operations
107+
:vartype partner_destinations: azure.mgmt.eventgrid.operations.PartnerDestinationsOperations
104108
:ivar partner_namespaces: PartnerNamespacesOperations operations
105109
:vartype partner_namespaces: azure.mgmt.eventgrid.operations.PartnerNamespacesOperations
106110
:ivar partner_registrations: PartnerRegistrationsOperations operations
107111
:vartype partner_registrations: azure.mgmt.eventgrid.operations.PartnerRegistrationsOperations
108112
:ivar partner_topics: PartnerTopicsOperations operations
109113
:vartype partner_topics: azure.mgmt.eventgrid.operations.PartnerTopicsOperations
114+
:ivar network_security_perimeter_configurations:
115+
NetworkSecurityPerimeterConfigurationsOperations operations
116+
:vartype network_security_perimeter_configurations:
117+
azure.mgmt.eventgrid.operations.NetworkSecurityPerimeterConfigurationsOperations
110118
:ivar permission_bindings: PermissionBindingsOperations operations
111119
:vartype permission_bindings: azure.mgmt.eventgrid.operations.PermissionBindingsOperations
112120
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
@@ -116,6 +124,8 @@ class EventGridManagementClient: # pylint: disable=too-many-instance-attributes
116124
:vartype private_link_resources: azure.mgmt.eventgrid.operations.PrivateLinkResourcesOperations
117125
:ivar system_topics: SystemTopicsOperations operations
118126
:vartype system_topics: azure.mgmt.eventgrid.operations.SystemTopicsOperations
127+
:ivar topics: TopicsOperations operations
128+
:vartype topics: azure.mgmt.eventgrid.operations.TopicsOperations
119129
:ivar extension_topics: ExtensionTopicsOperations operations
120130
:vartype extension_topics: azure.mgmt.eventgrid.operations.ExtensionTopicsOperations
121131
:ivar topic_spaces: TopicSpacesOperations operations
@@ -129,25 +139,27 @@ class EventGridManagementClient: # pylint: disable=too-many-instance-attributes
129139
:param subscription_id: Subscription credentials that uniquely identify a Microsoft Azure
130140
subscription. The subscription ID forms part of the URI for every service call. Required.
131141
:type subscription_id: str
132-
:param base_url: Service URL. Default value is "https://management.azure.com".
142+
:param base_url: Service URL. Default value is None.
133143
:type base_url: str
134-
:keyword api_version: Api Version. Default value is "2025-02-15". Note that overriding this
135-
default value may result in unsupported behavior.
144+
:keyword api_version: Api Version. Default value is "2025-04-15-preview". Note that overriding
145+
this default value may result in unsupported behavior.
136146
:paramtype api_version: str
137147
:keyword int polling_interval: Default waiting time between two polls for LRO operations if no
138148
Retry-After header is present.
139149
"""
140150

141151
def __init__(
142-
self,
143-
credential: "TokenCredential",
144-
subscription_id: str,
145-
base_url: str = "https://management.azure.com",
146-
**kwargs: Any
152+
self, credential: "TokenCredential", subscription_id: str, base_url: Optional[str] = None, **kwargs: Any
147153
) -> None:
154+
_cloud = kwargs.pop("cloud_setting", None) or settings.current.azure_cloud # type: ignore
155+
_endpoints = get_arm_endpoints(_cloud)
156+
if not base_url:
157+
base_url = _endpoints["resource_manager"]
158+
credential_scopes = kwargs.pop("credential_scopes", _endpoints["credential_scopes"])
148159
self._config = EventGridManagementClientConfiguration(
149-
credential=credential, subscription_id=subscription_id, **kwargs
160+
credential=credential, subscription_id=subscription_id, credential_scopes=credential_scopes, **kwargs
150161
)
162+
151163
_policies = kwargs.pop("policies", None)
152164
if _policies is None:
153165
_policies = [
@@ -166,7 +178,7 @@ def __init__(
166178
policies.SensitiveHeaderCleanupPolicy(**kwargs) if self._config.redirect_policy else None,
167179
self._config.http_logging_policy,
168180
]
169-
self._client: ARMPipelineClient = ARMPipelineClient(base_url=base_url, policies=_policies, **kwargs)
181+
self._client: ARMPipelineClient = ARMPipelineClient(base_url=cast(str, base_url), policies=_policies, **kwargs)
170182

171183
client_models = {k: v for k, v in _models.__dict__.items() if isinstance(v, type)}
172184
self._serialize = Serializer(client_models)
@@ -178,22 +190,22 @@ def __init__(
178190
self.clients = ClientsOperations(self._client, self._config, self._serialize, self._deserialize)
179191
self.domains = DomainsOperations(self._client, self._config, self._serialize, self._deserialize)
180192
self.domain_topics = DomainTopicsOperations(self._client, self._config, self._serialize, self._deserialize)
181-
self.topic_event_subscriptions = TopicEventSubscriptionsOperations(
193+
self.domain_topic_event_subscriptions = DomainTopicEventSubscriptionsOperations(
182194
self._client, self._config, self._serialize, self._deserialize
183195
)
184-
self.domain_event_subscriptions = DomainEventSubscriptionsOperations(
196+
self.topic_event_subscriptions = TopicEventSubscriptionsOperations(
185197
self._client, self._config, self._serialize, self._deserialize
186198
)
187-
self.namespace_topic_event_subscriptions = NamespaceTopicEventSubscriptionsOperations(
199+
self.domain_event_subscriptions = DomainEventSubscriptionsOperations(
188200
self._client, self._config, self._serialize, self._deserialize
189201
)
190202
self.event_subscriptions = EventSubscriptionsOperations(
191203
self._client, self._config, self._serialize, self._deserialize
192204
)
193-
self.domain_topic_event_subscriptions = DomainTopicEventSubscriptionsOperations(
205+
self.system_topic_event_subscriptions = SystemTopicEventSubscriptionsOperations(
194206
self._client, self._config, self._serialize, self._deserialize
195207
)
196-
self.system_topic_event_subscriptions = SystemTopicEventSubscriptionsOperations(
208+
self.namespace_topic_event_subscriptions = NamespaceTopicEventSubscriptionsOperations(
197209
self._client, self._config, self._serialize, self._deserialize
198210
)
199211
self.partner_topic_event_subscriptions = PartnerTopicEventSubscriptionsOperations(
@@ -204,17 +216,22 @@ def __init__(
204216
self._client, self._config, self._serialize, self._deserialize
205217
)
206218
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
207-
self.topics = TopicsOperations(self._client, self._config, self._serialize, self._deserialize)
208219
self.partner_configurations = PartnerConfigurationsOperations(
209220
self._client, self._config, self._serialize, self._deserialize
210221
)
222+
self.partner_destinations = PartnerDestinationsOperations(
223+
self._client, self._config, self._serialize, self._deserialize
224+
)
211225
self.partner_namespaces = PartnerNamespacesOperations(
212226
self._client, self._config, self._serialize, self._deserialize
213227
)
214228
self.partner_registrations = PartnerRegistrationsOperations(
215229
self._client, self._config, self._serialize, self._deserialize
216230
)
217231
self.partner_topics = PartnerTopicsOperations(self._client, self._config, self._serialize, self._deserialize)
232+
self.network_security_perimeter_configurations = NetworkSecurityPerimeterConfigurationsOperations(
233+
self._client, self._config, self._serialize, self._deserialize
234+
)
218235
self.permission_bindings = PermissionBindingsOperations(
219236
self._client, self._config, self._serialize, self._deserialize
220237
)
@@ -225,6 +242,7 @@ def __init__(
225242
self._client, self._config, self._serialize, self._deserialize
226243
)
227244
self.system_topics = SystemTopicsOperations(self._client, self._config, self._serialize, self._deserialize)
245+
self.topics = TopicsOperations(self._client, self._config, self._serialize, self._deserialize)
228246
self.extension_topics = ExtensionTopicsOperations(
229247
self._client, self._config, self._serialize, self._deserialize
230248
)

0 commit comments

Comments
 (0)