Skip to content

Commit 3c73f58

Browse files
Azure CLI BotSDKAutomsyycBigCat20196
authored
[AutoRelease] t2-eventgrid-2021-10-21-28743 (#21361)
* CodeGen from PR 16469 in Azure/azure-rest-api-specs Adding missing identity properties and ExtensionTopics operation (#16469) * Adding missing identity properties and ExtensionTopics operation * fixing prettier check issues * Add identity to topic * Add system data to Extension topic response * fix lintdiff issue * version,CHANGELOG * test * update test * Update test Co-authored-by: SDKAuto <[email protected]> Co-authored-by: PythonSdkPipelines <PythonSdkPipelines> Co-authored-by: msyyc <[email protected]> Co-authored-by: BigCat20196 <[email protected]>
1 parent 51b1c44 commit 3c73f58

File tree

48 files changed

+584
-8981
lines changed

Some content is hidden

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

48 files changed

+584
-8981
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.0.0 (2021-10-21)
4+
5+
**Features**
6+
7+
- Model Domain has a new parameter disable_local_auth
8+
- Model Domain has a new parameter auto_delete_topic_with_last_subscription
9+
- Model Domain has a new parameter auto_create_topic_with_first_subscription
10+
- Model Topic has a new parameter disable_local_auth
11+
- Model DomainUpdateParameters has a new parameter disable_local_auth
12+
- Model DomainUpdateParameters has a new parameter auto_delete_topic_with_last_subscription
13+
- Model DomainUpdateParameters has a new parameter auto_create_topic_with_first_subscription
14+
- Model ExtensionTopic has a new parameter system_data
15+
- Model TopicUpdateParameters has a new parameter disable_local_auth
16+
17+
**Breaking changes**
18+
19+
- Model Domain no longer has parameter sku
20+
- Model Topic no longer has parameter sku
21+
- Model Topic no longer has parameter extended_location
22+
- Model Topic no longer has parameter kind
23+
- Model DomainUpdateParameters no longer has parameter sku
24+
- Model TopicUpdateParameters no longer has parameter sku
25+
- Removed operation group EventChannelsOperations
26+
- Removed operation group PartnerRegistrationsOperations
27+
- Removed operation group PartnerTopicEventSubscriptionsOperations
28+
- Removed operation group PartnerNamespacesOperations
29+
- Removed operation group PartnerTopicsOperations
30+
331
## 9.0.0 (2021-05-24)
432

533
**Features**
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"autorest": "3.4.2",
2+
"autorest": "3.4.5",
33
"use": [
4-
"@autorest/[email protected].0",
5-
"@autorest/[email protected].1"
4+
"@autorest/[email protected].4",
5+
"@autorest/[email protected].2"
66
],
7-
"commit": "b554b6d3497ef8a9eff147f94a5d47ba4eeb7a34",
7+
"commit": "2f9b3758c1308560dd4ca2bebe112e9da9ac227f",
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].0 --use=@autorest/[email protected].1 --version=3.4.2",
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].4 --use=@autorest/[email protected].2 --version=3.4.5",
1010
"readme": "specification/eventgrid/resource-manager/readme.md"
1111
}

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

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

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

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

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -21,18 +21,13 @@
2121
from ._configuration import EventGridManagementClientConfiguration
2222
from .operations import DomainsOperations
2323
from .operations import DomainTopicsOperations
24-
from .operations import EventChannelsOperations
2524
from .operations import EventSubscriptionsOperations
2625
from .operations import SystemTopicEventSubscriptionsOperations
27-
from .operations import PartnerTopicEventSubscriptionsOperations
2826
from .operations import Operations
29-
from .operations import PartnerNamespacesOperations
30-
from .operations import PartnerRegistrationsOperations
31-
from .operations import PartnerTopicsOperations
27+
from .operations import TopicsOperations
3228
from .operations import PrivateEndpointConnectionsOperations
3329
from .operations import PrivateLinkResourcesOperations
3430
from .operations import SystemTopicsOperations
35-
from .operations import TopicsOperations
3631
from .operations import ExtensionTopicsOperations
3732
from .operations import TopicTypesOperations
3833
from . import models
@@ -45,30 +40,20 @@ class EventGridManagementClient(object):
4540
:vartype domains: azure.mgmt.eventgrid.operations.DomainsOperations
4641
:ivar domain_topics: DomainTopicsOperations operations
4742
:vartype domain_topics: azure.mgmt.eventgrid.operations.DomainTopicsOperations
48-
:ivar event_channels: EventChannelsOperations operations
49-
:vartype event_channels: azure.mgmt.eventgrid.operations.EventChannelsOperations
5043
:ivar event_subscriptions: EventSubscriptionsOperations operations
5144
:vartype event_subscriptions: azure.mgmt.eventgrid.operations.EventSubscriptionsOperations
5245
:ivar system_topic_event_subscriptions: SystemTopicEventSubscriptionsOperations operations
5346
:vartype system_topic_event_subscriptions: azure.mgmt.eventgrid.operations.SystemTopicEventSubscriptionsOperations
54-
:ivar partner_topic_event_subscriptions: PartnerTopicEventSubscriptionsOperations operations
55-
:vartype partner_topic_event_subscriptions: azure.mgmt.eventgrid.operations.PartnerTopicEventSubscriptionsOperations
5647
:ivar operations: Operations operations
5748
:vartype operations: azure.mgmt.eventgrid.operations.Operations
58-
:ivar partner_namespaces: PartnerNamespacesOperations operations
59-
:vartype partner_namespaces: azure.mgmt.eventgrid.operations.PartnerNamespacesOperations
60-
:ivar partner_registrations: PartnerRegistrationsOperations operations
61-
:vartype partner_registrations: azure.mgmt.eventgrid.operations.PartnerRegistrationsOperations
62-
:ivar partner_topics: PartnerTopicsOperations operations
63-
:vartype partner_topics: azure.mgmt.eventgrid.operations.PartnerTopicsOperations
49+
:ivar topics: TopicsOperations operations
50+
:vartype topics: azure.mgmt.eventgrid.operations.TopicsOperations
6451
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
6552
:vartype private_endpoint_connections: azure.mgmt.eventgrid.operations.PrivateEndpointConnectionsOperations
6653
:ivar private_link_resources: PrivateLinkResourcesOperations operations
6754
:vartype private_link_resources: azure.mgmt.eventgrid.operations.PrivateLinkResourcesOperations
6855
:ivar system_topics: SystemTopicsOperations operations
6956
:vartype system_topics: azure.mgmt.eventgrid.operations.SystemTopicsOperations
70-
:ivar topics: TopicsOperations operations
71-
:vartype topics: azure.mgmt.eventgrid.operations.TopicsOperations
7257
:ivar extension_topics: ExtensionTopicsOperations operations
7358
:vartype extension_topics: azure.mgmt.eventgrid.operations.ExtensionTopicsOperations
7459
:ivar topic_types: TopicTypesOperations operations
@@ -103,30 +88,20 @@ def __init__(
10388
self._client, self._config, self._serialize, self._deserialize)
10489
self.domain_topics = DomainTopicsOperations(
10590
self._client, self._config, self._serialize, self._deserialize)
106-
self.event_channels = EventChannelsOperations(
107-
self._client, self._config, self._serialize, self._deserialize)
10891
self.event_subscriptions = EventSubscriptionsOperations(
10992
self._client, self._config, self._serialize, self._deserialize)
11093
self.system_topic_event_subscriptions = SystemTopicEventSubscriptionsOperations(
11194
self._client, self._config, self._serialize, self._deserialize)
112-
self.partner_topic_event_subscriptions = PartnerTopicEventSubscriptionsOperations(
113-
self._client, self._config, self._serialize, self._deserialize)
11495
self.operations = Operations(
11596
self._client, self._config, self._serialize, self._deserialize)
116-
self.partner_namespaces = PartnerNamespacesOperations(
117-
self._client, self._config, self._serialize, self._deserialize)
118-
self.partner_registrations = PartnerRegistrationsOperations(
119-
self._client, self._config, self._serialize, self._deserialize)
120-
self.partner_topics = PartnerTopicsOperations(
97+
self.topics = TopicsOperations(
12198
self._client, self._config, self._serialize, self._deserialize)
12299
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
123100
self._client, self._config, self._serialize, self._deserialize)
124101
self.private_link_resources = PrivateLinkResourcesOperations(
125102
self._client, self._config, self._serialize, self._deserialize)
126103
self.system_topics = SystemTopicsOperations(
127104
self._client, self._config, self._serialize, self._deserialize)
128-
self.topics = TopicsOperations(
129-
self._client, self._config, self._serialize, self._deserialize)
130105
self.extension_topics = ExtensionTopicsOperations(
131106
self._client, self._config, self._serialize, self._deserialize)
132107
self.topic_types = TopicTypesOperations(

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

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"chosen_version": "2020-10-15-preview",
3-
"total_api_version_list": ["2020-10-15-preview"],
2+
"chosen_version": "2021-12-01",
3+
"total_api_version_list": ["2021-12-01"],
44
"client": {
55
"name": "EventGridManagementClient",
66
"filename": "_event_grid_management_client",
@@ -100,18 +100,13 @@
100100
"operation_groups": {
101101
"domains": "DomainsOperations",
102102
"domain_topics": "DomainTopicsOperations",
103-
"event_channels": "EventChannelsOperations",
104103
"event_subscriptions": "EventSubscriptionsOperations",
105104
"system_topic_event_subscriptions": "SystemTopicEventSubscriptionsOperations",
106-
"partner_topic_event_subscriptions": "PartnerTopicEventSubscriptionsOperations",
107105
"operations": "Operations",
108-
"partner_namespaces": "PartnerNamespacesOperations",
109-
"partner_registrations": "PartnerRegistrationsOperations",
110-
"partner_topics": "PartnerTopicsOperations",
106+
"topics": "TopicsOperations",
111107
"private_endpoint_connections": "PrivateEndpointConnectionsOperations",
112108
"private_link_resources": "PrivateLinkResourcesOperations",
113109
"system_topics": "SystemTopicsOperations",
114-
"topics": "TopicsOperations",
115110
"extension_topics": "ExtensionTopicsOperations",
116111
"topic_types": "TopicTypesOperations"
117112
}

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 = "9.0.0"
9+
VERSION = "10.0.0"

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 = "2020-10-15-preview"
48+
self.api_version = "2021-12-01"
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)

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

Lines changed: 4 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -19,18 +19,13 @@
1919
from ._configuration import EventGridManagementClientConfiguration
2020
from .operations import DomainsOperations
2121
from .operations import DomainTopicsOperations
22-
from .operations import EventChannelsOperations
2322
from .operations import EventSubscriptionsOperations
2423
from .operations import SystemTopicEventSubscriptionsOperations
25-
from .operations import PartnerTopicEventSubscriptionsOperations
2624
from .operations import Operations
27-
from .operations import PartnerNamespacesOperations
28-
from .operations import PartnerRegistrationsOperations
29-
from .operations import PartnerTopicsOperations
25+
from .operations import TopicsOperations
3026
from .operations import PrivateEndpointConnectionsOperations
3127
from .operations import PrivateLinkResourcesOperations
3228
from .operations import SystemTopicsOperations
33-
from .operations import TopicsOperations
3429
from .operations import ExtensionTopicsOperations
3530
from .operations import TopicTypesOperations
3631
from .. import models
@@ -43,30 +38,20 @@ class EventGridManagementClient(object):
4338
:vartype domains: azure.mgmt.eventgrid.aio.operations.DomainsOperations
4439
:ivar domain_topics: DomainTopicsOperations operations
4540
:vartype domain_topics: azure.mgmt.eventgrid.aio.operations.DomainTopicsOperations
46-
:ivar event_channels: EventChannelsOperations operations
47-
:vartype event_channels: azure.mgmt.eventgrid.aio.operations.EventChannelsOperations
4841
:ivar event_subscriptions: EventSubscriptionsOperations operations
4942
:vartype event_subscriptions: azure.mgmt.eventgrid.aio.operations.EventSubscriptionsOperations
5043
:ivar system_topic_event_subscriptions: SystemTopicEventSubscriptionsOperations operations
5144
:vartype system_topic_event_subscriptions: azure.mgmt.eventgrid.aio.operations.SystemTopicEventSubscriptionsOperations
52-
:ivar partner_topic_event_subscriptions: PartnerTopicEventSubscriptionsOperations operations
53-
:vartype partner_topic_event_subscriptions: azure.mgmt.eventgrid.aio.operations.PartnerTopicEventSubscriptionsOperations
5445
:ivar operations: Operations operations
5546
:vartype operations: azure.mgmt.eventgrid.aio.operations.Operations
56-
:ivar partner_namespaces: PartnerNamespacesOperations operations
57-
:vartype partner_namespaces: azure.mgmt.eventgrid.aio.operations.PartnerNamespacesOperations
58-
:ivar partner_registrations: PartnerRegistrationsOperations operations
59-
:vartype partner_registrations: azure.mgmt.eventgrid.aio.operations.PartnerRegistrationsOperations
60-
:ivar partner_topics: PartnerTopicsOperations operations
61-
:vartype partner_topics: azure.mgmt.eventgrid.aio.operations.PartnerTopicsOperations
47+
:ivar topics: TopicsOperations operations
48+
:vartype topics: azure.mgmt.eventgrid.aio.operations.TopicsOperations
6249
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
6350
:vartype private_endpoint_connections: azure.mgmt.eventgrid.aio.operations.PrivateEndpointConnectionsOperations
6451
:ivar private_link_resources: PrivateLinkResourcesOperations operations
6552
:vartype private_link_resources: azure.mgmt.eventgrid.aio.operations.PrivateLinkResourcesOperations
6653
:ivar system_topics: SystemTopicsOperations operations
6754
:vartype system_topics: azure.mgmt.eventgrid.aio.operations.SystemTopicsOperations
68-
:ivar topics: TopicsOperations operations
69-
:vartype topics: azure.mgmt.eventgrid.aio.operations.TopicsOperations
7055
:ivar extension_topics: ExtensionTopicsOperations operations
7156
:vartype extension_topics: azure.mgmt.eventgrid.aio.operations.ExtensionTopicsOperations
7257
:ivar topic_types: TopicTypesOperations operations
@@ -100,30 +85,20 @@ def __init__(
10085
self._client, self._config, self._serialize, self._deserialize)
10186
self.domain_topics = DomainTopicsOperations(
10287
self._client, self._config, self._serialize, self._deserialize)
103-
self.event_channels = EventChannelsOperations(
104-
self._client, self._config, self._serialize, self._deserialize)
10588
self.event_subscriptions = EventSubscriptionsOperations(
10689
self._client, self._config, self._serialize, self._deserialize)
10790
self.system_topic_event_subscriptions = SystemTopicEventSubscriptionsOperations(
10891
self._client, self._config, self._serialize, self._deserialize)
109-
self.partner_topic_event_subscriptions = PartnerTopicEventSubscriptionsOperations(
110-
self._client, self._config, self._serialize, self._deserialize)
11192
self.operations = Operations(
11293
self._client, self._config, self._serialize, self._deserialize)
113-
self.partner_namespaces = PartnerNamespacesOperations(
114-
self._client, self._config, self._serialize, self._deserialize)
115-
self.partner_registrations = PartnerRegistrationsOperations(
116-
self._client, self._config, self._serialize, self._deserialize)
117-
self.partner_topics = PartnerTopicsOperations(
94+
self.topics = TopicsOperations(
11895
self._client, self._config, self._serialize, self._deserialize)
11996
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
12097
self._client, self._config, self._serialize, self._deserialize)
12198
self.private_link_resources = PrivateLinkResourcesOperations(
12299
self._client, self._config, self._serialize, self._deserialize)
123100
self.system_topics = SystemTopicsOperations(
124101
self._client, self._config, self._serialize, self._deserialize)
125-
self.topics = TopicsOperations(
126-
self._client, self._config, self._serialize, self._deserialize)
127102
self.extension_topics = ExtensionTopicsOperations(
128103
self._client, self._config, self._serialize, self._deserialize)
129104
self.topic_types = TopicTypesOperations(

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

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,26 @@
88

99
from ._domains_operations import DomainsOperations
1010
from ._domain_topics_operations import DomainTopicsOperations
11-
from ._event_channels_operations import EventChannelsOperations
1211
from ._event_subscriptions_operations import EventSubscriptionsOperations
1312
from ._system_topic_event_subscriptions_operations import SystemTopicEventSubscriptionsOperations
14-
from ._partner_topic_event_subscriptions_operations import PartnerTopicEventSubscriptionsOperations
1513
from ._operations import Operations
16-
from ._partner_namespaces_operations import PartnerNamespacesOperations
17-
from ._partner_registrations_operations import PartnerRegistrationsOperations
18-
from ._partner_topics_operations import PartnerTopicsOperations
14+
from ._topics_operations import TopicsOperations
1915
from ._private_endpoint_connections_operations import PrivateEndpointConnectionsOperations
2016
from ._private_link_resources_operations import PrivateLinkResourcesOperations
2117
from ._system_topics_operations import SystemTopicsOperations
22-
from ._topics_operations import TopicsOperations
2318
from ._extension_topics_operations import ExtensionTopicsOperations
2419
from ._topic_types_operations import TopicTypesOperations
2520

2621
__all__ = [
2722
'DomainsOperations',
2823
'DomainTopicsOperations',
29-
'EventChannelsOperations',
3024
'EventSubscriptionsOperations',
3125
'SystemTopicEventSubscriptionsOperations',
32-
'PartnerTopicEventSubscriptionsOperations',
3326
'Operations',
34-
'PartnerNamespacesOperations',
35-
'PartnerRegistrationsOperations',
36-
'PartnerTopicsOperations',
27+
'TopicsOperations',
3728
'PrivateEndpointConnectionsOperations',
3829
'PrivateLinkResourcesOperations',
3930
'SystemTopicsOperations',
40-
'TopicsOperations',
4131
'ExtensionTopicsOperations',
4232
'TopicTypesOperations',
4333
]

sdk/eventgrid/azure-mgmt-eventgrid/azure/mgmt/eventgrid/aio/operations/_domain_topics_operations.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ async def get(
7070
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
7171
}
7272
error_map.update(kwargs.pop('error_map', {}))
73-
api_version = "2020-10-15-preview"
73+
api_version = "2021-12-01"
7474
accept = "application/json"
7575

7676
# Construct URL
@@ -119,7 +119,7 @@ async def _create_or_update_initial(
119119
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
120120
}
121121
error_map.update(kwargs.pop('error_map', {}))
122-
api_version = "2020-10-15-preview"
122+
api_version = "2021-12-01"
123123
accept = "application/json"
124124

125125
# Construct URL
@@ -242,7 +242,7 @@ async def _delete_initial(
242242
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
243243
}
244244
error_map.update(kwargs.pop('error_map', {}))
245-
api_version = "2020-10-15-preview"
245+
api_version = "2021-12-01"
246246

247247
# Construct URL
248248
url = self._delete_initial.metadata['url'] # type: ignore
@@ -382,7 +382,7 @@ def list_by_domain(
382382
401: ClientAuthenticationError, 404: ResourceNotFoundError, 409: ResourceExistsError
383383
}
384384
error_map.update(kwargs.pop('error_map', {}))
385-
api_version = "2020-10-15-preview"
385+
api_version = "2021-12-01"
386386
accept = "application/json"
387387

388388
def prepare_request(next_link=None):

0 commit comments

Comments
 (0)