Skip to content

Commit 0e93c6a

Browse files
azclibotBigCat20196msyyc
authored
[AutoRelease] t2-eventgrid-2022-03-28-97024(Do not merge) (Azure#23692)
* code and test * Update CHANGELOG.md Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: Jiefeng Chen <[email protected]> Co-authored-by: Yuchao Yan <[email protected]>
1 parent 9db8a2e commit 0e93c6a

File tree

56 files changed

+21275
-5523
lines changed

Some content is hidden

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

56 files changed

+21275
-5523
lines changed

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

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

3+
## 10.2.0b1 (2022-04-07)
4+
5+
**Features**
6+
7+
- Added operation group ChannelsOperations
8+
- Added operation group DomainEventSubscriptionsOperations
9+
- Added operation group DomainTopicEventSubscriptionsOperations
10+
- Added operation group EventChannelsOperations
11+
- Added operation group PartnerConfigurationsOperations
12+
- Added operation group PartnerDestinationsOperations
13+
- Added operation group PartnerNamespacesOperations
14+
- Added operation group PartnerRegistrationsOperations
15+
- Added operation group PartnerTopicEventSubscriptionsOperations
16+
- Added operation group PartnerTopicsOperations
17+
- Added operation group TopicEventSubscriptionsOperations
18+
- Added operation group VerifiedPartnersOperations
19+
- Model Domain has a new parameter data_residency_boundary
20+
- Model Domain has a new parameter sku
21+
- Model DomainUpdateParameters has a new parameter data_residency_boundary
22+
- Model DomainUpdateParameters has a new parameter sku
23+
- Model Operation has a new parameter is_data_action
24+
- Model Topic has a new parameter data_residency_boundary
25+
- Model Topic has a new parameter extended_location
26+
- Model Topic has a new parameter kind
27+
- Model Topic has a new parameter sku
28+
- Model TopicUpdateParameters has a new parameter data_residency_boundary
29+
- Model TopicUpdateParameters has a new parameter sku
30+
331
## 10.1.0 (2021-12-13)
432

533
**Features**

sdk/eventgrid/azure-mgmt-eventgrid/_meta.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"@autorest/[email protected]",
55
"@autorest/[email protected]"
66
],
7-
"commit": "f3477bd0a7b6101f9c0af243cc0106c7a8e24c71",
7+
"commit": "dfb02eb8ee4f04974fc46e9708615bff03329907",
88
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
9-
"autorest_command": "autorest specification/eventgrid/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-python/sdk --track2 --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
9+
"autorest_command": "autorest specification/eventgrid/resource-manager/readme.md --multiapi --python --python-mode=update --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --python3-only --track2 --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.7.2",
1010
"readme": "specification/eventgrid/resource-manager/readme.md"
1111
}

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

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
from typing import TYPE_CHECKING
9+
from typing import Any, TYPE_CHECKING
1010

1111
from azure.core.configuration import Configuration
1212
from azure.core.pipeline import policies
@@ -16,8 +16,6 @@
1616

1717
if TYPE_CHECKING:
1818
# pylint: disable=unused-import,ungrouped-imports
19-
from typing import Any
20-
2119
from azure.core.credentials import TokenCredential
2220

2321

@@ -35,11 +33,10 @@ class EventGridManagementClientConfiguration(Configuration):
3533

3634
def __init__(
3735
self,
38-
credential, # type: "TokenCredential"
39-
subscription_id, # type: str
40-
**kwargs # type: Any
41-
):
42-
# type: (...) -> None
36+
credential: "TokenCredential",
37+
subscription_id: str,
38+
**kwargs: Any
39+
) -> None:
4340
super(EventGridManagementClientConfiguration, self).__init__(**kwargs)
4441
if credential is None:
4542
raise ValueError("Parameter 'credential' must not be None.")
@@ -48,7 +45,7 @@ def __init__(
4845

4946
self.credential = credential
5047
self.subscription_id = subscription_id
51-
self.api_version = "2021-12-01"
48+
self.api_version = "2021-10-15-preview"
5249
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5350
kwargs.setdefault('sdk_moniker', 'mgmt-eventgrid/{}'.format(VERSION))
5451
self._configure(**kwargs)

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

Lines changed: 55 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,49 +7,76 @@
77
# --------------------------------------------------------------------------
88

99
from copy import deepcopy
10-
from typing import TYPE_CHECKING
10+
from typing import Any, Optional, TYPE_CHECKING
1111

12+
from azure.core.rest import HttpRequest, HttpResponse
1213
from azure.mgmt.core import ARMPipelineClient
1314
from msrest import Deserializer, Serializer
1415

1516
from . import models
1617
from ._configuration import EventGridManagementClientConfiguration
17-
from .operations import DomainTopicsOperations, DomainsOperations, EventSubscriptionsOperations, ExtensionTopicsOperations, Operations, PrivateEndpointConnectionsOperations, PrivateLinkResourcesOperations, SystemTopicEventSubscriptionsOperations, SystemTopicsOperations, TopicTypesOperations, TopicsOperations
18+
from .operations import ChannelsOperations, DomainEventSubscriptionsOperations, DomainTopicEventSubscriptionsOperations, DomainTopicsOperations, DomainsOperations, EventChannelsOperations, EventSubscriptionsOperations, ExtensionTopicsOperations, Operations, PartnerConfigurationsOperations, PartnerDestinationsOperations, PartnerNamespacesOperations, PartnerRegistrationsOperations, PartnerTopicEventSubscriptionsOperations, PartnerTopicsOperations, PrivateEndpointConnectionsOperations, PrivateLinkResourcesOperations, SystemTopicEventSubscriptionsOperations, SystemTopicsOperations, TopicEventSubscriptionsOperations, TopicTypesOperations, TopicsOperations, VerifiedPartnersOperations
1819

1920
if TYPE_CHECKING:
2021
# pylint: disable=unused-import,ungrouped-imports
21-
from typing import Any, Optional
22-
2322
from azure.core.credentials import TokenCredential
24-
from azure.core.rest import HttpRequest, HttpResponse
2523

26-
class EventGridManagementClient(object):
24+
class EventGridManagementClient:
2725
"""Azure EventGrid Management Client.
2826
27+
:ivar channels: ChannelsOperations operations
28+
:vartype channels: azure.mgmt.eventgrid.operations.ChannelsOperations
2929
:ivar domains: DomainsOperations operations
3030
:vartype domains: azure.mgmt.eventgrid.operations.DomainsOperations
3131
:ivar domain_topics: DomainTopicsOperations operations
3232
:vartype domain_topics: azure.mgmt.eventgrid.operations.DomainTopicsOperations
33+
:ivar event_channels: EventChannelsOperations operations
34+
:vartype event_channels: azure.mgmt.eventgrid.operations.EventChannelsOperations
3335
:ivar event_subscriptions: EventSubscriptionsOperations operations
3436
:vartype event_subscriptions: azure.mgmt.eventgrid.operations.EventSubscriptionsOperations
37+
:ivar domain_topic_event_subscriptions: DomainTopicEventSubscriptionsOperations operations
38+
:vartype domain_topic_event_subscriptions:
39+
azure.mgmt.eventgrid.operations.DomainTopicEventSubscriptionsOperations
40+
:ivar topic_event_subscriptions: TopicEventSubscriptionsOperations operations
41+
:vartype topic_event_subscriptions:
42+
azure.mgmt.eventgrid.operations.TopicEventSubscriptionsOperations
43+
:ivar domain_event_subscriptions: DomainEventSubscriptionsOperations operations
44+
:vartype domain_event_subscriptions:
45+
azure.mgmt.eventgrid.operations.DomainEventSubscriptionsOperations
3546
:ivar system_topic_event_subscriptions: SystemTopicEventSubscriptionsOperations operations
3647
:vartype system_topic_event_subscriptions:
3748
azure.mgmt.eventgrid.operations.SystemTopicEventSubscriptionsOperations
49+
:ivar partner_topic_event_subscriptions: PartnerTopicEventSubscriptionsOperations operations
50+
:vartype partner_topic_event_subscriptions:
51+
azure.mgmt.eventgrid.operations.PartnerTopicEventSubscriptionsOperations
3852
:ivar operations: Operations operations
3953
:vartype operations: azure.mgmt.eventgrid.operations.Operations
40-
:ivar topics: TopicsOperations operations
41-
:vartype topics: azure.mgmt.eventgrid.operations.TopicsOperations
54+
:ivar partner_configurations: PartnerConfigurationsOperations operations
55+
:vartype partner_configurations:
56+
azure.mgmt.eventgrid.operations.PartnerConfigurationsOperations
57+
:ivar partner_destinations: PartnerDestinationsOperations operations
58+
:vartype partner_destinations: azure.mgmt.eventgrid.operations.PartnerDestinationsOperations
59+
:ivar partner_namespaces: PartnerNamespacesOperations operations
60+
:vartype partner_namespaces: azure.mgmt.eventgrid.operations.PartnerNamespacesOperations
61+
:ivar partner_registrations: PartnerRegistrationsOperations operations
62+
:vartype partner_registrations: azure.mgmt.eventgrid.operations.PartnerRegistrationsOperations
63+
:ivar partner_topics: PartnerTopicsOperations operations
64+
:vartype partner_topics: azure.mgmt.eventgrid.operations.PartnerTopicsOperations
4265
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
4366
:vartype private_endpoint_connections:
4467
azure.mgmt.eventgrid.operations.PrivateEndpointConnectionsOperations
4568
:ivar private_link_resources: PrivateLinkResourcesOperations operations
4669
:vartype private_link_resources: azure.mgmt.eventgrid.operations.PrivateLinkResourcesOperations
4770
:ivar system_topics: SystemTopicsOperations operations
4871
:vartype system_topics: azure.mgmt.eventgrid.operations.SystemTopicsOperations
72+
:ivar topics: TopicsOperations operations
73+
:vartype topics: azure.mgmt.eventgrid.operations.TopicsOperations
4974
:ivar extension_topics: ExtensionTopicsOperations operations
5075
:vartype extension_topics: azure.mgmt.eventgrid.operations.ExtensionTopicsOperations
5176
:ivar topic_types: TopicTypesOperations operations
5277
:vartype topic_types: azure.mgmt.eventgrid.operations.TopicTypesOperations
78+
:ivar verified_partners: VerifiedPartnersOperations operations
79+
:vartype verified_partners: azure.mgmt.eventgrid.operations.VerifiedPartnersOperations
5380
:param credential: Credential needed for the client to connect to Azure.
5481
:type credential: ~azure.core.credentials.TokenCredential
5582
:param subscription_id: Subscription credentials that uniquely identify a Microsoft Azure
@@ -63,38 +90,48 @@ class EventGridManagementClient(object):
6390

6491
def __init__(
6592
self,
66-
credential, # type: "TokenCredential"
67-
subscription_id, # type: str
68-
base_url="https://management.azure.com", # type: str
69-
**kwargs # type: Any
70-
):
71-
# type: (...) -> None
93+
credential: "TokenCredential",
94+
subscription_id: str,
95+
base_url: str = "https://management.azure.com",
96+
**kwargs: Any
97+
) -> None:
7298
self._config = EventGridManagementClientConfiguration(credential=credential, subscription_id=subscription_id, **kwargs)
7399
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)
74100

75101
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
76102
self._serialize = Serializer(client_models)
77103
self._deserialize = Deserializer(client_models)
78104
self._serialize.client_side_validation = False
105+
self.channels = ChannelsOperations(self._client, self._config, self._serialize, self._deserialize)
79106
self.domains = DomainsOperations(self._client, self._config, self._serialize, self._deserialize)
80107
self.domain_topics = DomainTopicsOperations(self._client, self._config, self._serialize, self._deserialize)
108+
self.event_channels = EventChannelsOperations(self._client, self._config, self._serialize, self._deserialize)
81109
self.event_subscriptions = EventSubscriptionsOperations(self._client, self._config, self._serialize, self._deserialize)
110+
self.domain_topic_event_subscriptions = DomainTopicEventSubscriptionsOperations(self._client, self._config, self._serialize, self._deserialize)
111+
self.topic_event_subscriptions = TopicEventSubscriptionsOperations(self._client, self._config, self._serialize, self._deserialize)
112+
self.domain_event_subscriptions = DomainEventSubscriptionsOperations(self._client, self._config, self._serialize, self._deserialize)
82113
self.system_topic_event_subscriptions = SystemTopicEventSubscriptionsOperations(self._client, self._config, self._serialize, self._deserialize)
114+
self.partner_topic_event_subscriptions = PartnerTopicEventSubscriptionsOperations(self._client, self._config, self._serialize, self._deserialize)
83115
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
84-
self.topics = TopicsOperations(self._client, self._config, self._serialize, self._deserialize)
116+
self.partner_configurations = PartnerConfigurationsOperations(self._client, self._config, self._serialize, self._deserialize)
117+
self.partner_destinations = PartnerDestinationsOperations(self._client, self._config, self._serialize, self._deserialize)
118+
self.partner_namespaces = PartnerNamespacesOperations(self._client, self._config, self._serialize, self._deserialize)
119+
self.partner_registrations = PartnerRegistrationsOperations(self._client, self._config, self._serialize, self._deserialize)
120+
self.partner_topics = PartnerTopicsOperations(self._client, self._config, self._serialize, self._deserialize)
85121
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(self._client, self._config, self._serialize, self._deserialize)
86122
self.private_link_resources = PrivateLinkResourcesOperations(self._client, self._config, self._serialize, self._deserialize)
87123
self.system_topics = SystemTopicsOperations(self._client, self._config, self._serialize, self._deserialize)
124+
self.topics = TopicsOperations(self._client, self._config, self._serialize, self._deserialize)
88125
self.extension_topics = ExtensionTopicsOperations(self._client, self._config, self._serialize, self._deserialize)
89126
self.topic_types = TopicTypesOperations(self._client, self._config, self._serialize, self._deserialize)
127+
self.verified_partners = VerifiedPartnersOperations(self._client, self._config, self._serialize, self._deserialize)
90128

91129

92130
def _send_request(
93131
self,
94132
request, # type: HttpRequest
95-
**kwargs # type: Any
96-
):
97-
# type: (...) -> HttpResponse
133+
**kwargs: Any
134+
) -> HttpResponse:
98135
"""Runs the network request through the client's chained policies.
99136
100137
>>> from azure.core.rest import HttpRequest

sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/_metadata.json

Lines changed: 16 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"chosen_version": "2021-12-01",
3-
"total_api_version_list": ["2021-12-01"],
2+
"chosen_version": "2021-10-15-preview",
3+
"total_api_version_list": ["2021-10-15-preview"],
44
"client": {
55
"name": "EventGridManagementClient",
66
"filename": "_event_grid_management_client",
@@ -97,16 +97,28 @@
9797
"async_imports": "{\"regular\": {\"azurecore\": {\"azure.core.configuration\": [\"Configuration\"], \"azure.core.pipeline\": [\"policies\"], \"azure.mgmt.core.policies\": [\"ARMHttpLoggingPolicy\", \"AsyncARMChallengeAuthenticationPolicy\"]}, \"local\": {\".._version\": [\"VERSION\"]}}, \"conditional\": {\"stdlib\": {\"typing\": [\"Any\"]}}, \"typing\": {\"azurecore\": {\"azure.core.credentials_async\": [\"AsyncTokenCredential\"]}}}"
9898
},
9999
"operation_groups": {
100+
"channels": "ChannelsOperations",
100101
"domains": "DomainsOperations",
101102
"domain_topics": "DomainTopicsOperations",
103+
"event_channels": "EventChannelsOperations",
102104
"event_subscriptions": "EventSubscriptionsOperations",
105+
"domain_topic_event_subscriptions": "DomainTopicEventSubscriptionsOperations",
106+
"topic_event_subscriptions": "TopicEventSubscriptionsOperations",
107+
"domain_event_subscriptions": "DomainEventSubscriptionsOperations",
103108
"system_topic_event_subscriptions": "SystemTopicEventSubscriptionsOperations",
109+
"partner_topic_event_subscriptions": "PartnerTopicEventSubscriptionsOperations",
104110
"operations": "Operations",
105-
"topics": "TopicsOperations",
111+
"partner_configurations": "PartnerConfigurationsOperations",
112+
"partner_destinations": "PartnerDestinationsOperations",
113+
"partner_namespaces": "PartnerNamespacesOperations",
114+
"partner_registrations": "PartnerRegistrationsOperations",
115+
"partner_topics": "PartnerTopicsOperations",
106116
"private_endpoint_connections": "PrivateEndpointConnectionsOperations",
107117
"private_link_resources": "PrivateLinkResourcesOperations",
108118
"system_topics": "SystemTopicsOperations",
119+
"topics": "TopicsOperations",
109120
"extension_topics": "ExtensionTopicsOperations",
110-
"topic_types": "TopicTypesOperations"
121+
"topic_types": "TopicTypesOperations",
122+
"verified_partners": "VerifiedPartnersOperations"
111123
}
112124
}

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

9-
VERSION = "10.1.0"
9+
VERSION = "10.2.0b1"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ def __init__(
4545

4646
self.credential = credential
4747
self.subscription_id = subscription_id
48-
self.api_version = "2021-12-01"
48+
self.api_version = "2021-10-15-preview"
4949
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
5050
kwargs.setdefault('sdk_moniker', 'mgmt-eventgrid/{}'.format(VERSION))
5151
self._configure(**kwargs)

0 commit comments

Comments
 (0)