Skip to content

Commit 1a10312

Browse files
author
SDKAuto
committed
CodeGen from PR 16309 in Azure/azure-rest-api-specs
PR to make swagger changes for new event grid public SDK release (Azure#16309) * create baseline commit * Add all the changes for new public SDK release * fix the version * fixing prettier check issues * address pr comments * fix arm version in readme * Add extra line * fix lintdiff issue * Adding suppression and fixing sdk readme * fix issues with go sdk path
1 parent b6dcefe commit 1a10312

Some content is hidden

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

45 files changed

+642
-9649
lines changed
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": "27ed581a173d9231412110e327ffce9fb1dfa1cf",
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 & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -21,19 +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
36-
from .operations import ExtensionTopicsOperations
3731
from .operations import TopicTypesOperations
3832
from . import models
3933

@@ -45,32 +39,20 @@ class EventGridManagementClient(object):
4539
:vartype domains: azure.mgmt.eventgrid.operations.DomainsOperations
4640
:ivar domain_topics: DomainTopicsOperations operations
4741
:vartype domain_topics: azure.mgmt.eventgrid.operations.DomainTopicsOperations
48-
:ivar event_channels: EventChannelsOperations operations
49-
:vartype event_channels: azure.mgmt.eventgrid.operations.EventChannelsOperations
5042
:ivar event_subscriptions: EventSubscriptionsOperations operations
5143
:vartype event_subscriptions: azure.mgmt.eventgrid.operations.EventSubscriptionsOperations
5244
:ivar system_topic_event_subscriptions: SystemTopicEventSubscriptionsOperations operations
5345
: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
5646
:ivar operations: Operations operations
5747
: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
48+
:ivar topics: TopicsOperations operations
49+
:vartype topics: azure.mgmt.eventgrid.operations.TopicsOperations
6450
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
6551
:vartype private_endpoint_connections: azure.mgmt.eventgrid.operations.PrivateEndpointConnectionsOperations
6652
:ivar private_link_resources: PrivateLinkResourcesOperations operations
6753
:vartype private_link_resources: azure.mgmt.eventgrid.operations.PrivateLinkResourcesOperations
6854
:ivar system_topics: SystemTopicsOperations operations
6955
:vartype system_topics: azure.mgmt.eventgrid.operations.SystemTopicsOperations
70-
:ivar topics: TopicsOperations operations
71-
:vartype topics: azure.mgmt.eventgrid.operations.TopicsOperations
72-
:ivar extension_topics: ExtensionTopicsOperations operations
73-
:vartype extension_topics: azure.mgmt.eventgrid.operations.ExtensionTopicsOperations
7456
:ivar topic_types: TopicTypesOperations operations
7557
:vartype topic_types: azure.mgmt.eventgrid.operations.TopicTypesOperations
7658
:param credential: Credential needed for the client to connect to Azure.
@@ -103,32 +85,20 @@ def __init__(
10385
self._client, self._config, self._serialize, self._deserialize)
10486
self.domain_topics = DomainTopicsOperations(
10587
self._client, self._config, self._serialize, self._deserialize)
106-
self.event_channels = EventChannelsOperations(
107-
self._client, self._config, self._serialize, self._deserialize)
10888
self.event_subscriptions = EventSubscriptionsOperations(
10989
self._client, self._config, self._serialize, self._deserialize)
11090
self.system_topic_event_subscriptions = SystemTopicEventSubscriptionsOperations(
11191
self._client, self._config, self._serialize, self._deserialize)
112-
self.partner_topic_event_subscriptions = PartnerTopicEventSubscriptionsOperations(
113-
self._client, self._config, self._serialize, self._deserialize)
11492
self.operations = Operations(
11593
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(
94+
self.topics = TopicsOperations(
12195
self._client, self._config, self._serialize, self._deserialize)
12296
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
12397
self._client, self._config, self._serialize, self._deserialize)
12498
self.private_link_resources = PrivateLinkResourcesOperations(
12599
self._client, self._config, self._serialize, self._deserialize)
126100
self.system_topics = SystemTopicsOperations(
127101
self._client, self._config, self._serialize, self._deserialize)
128-
self.topics = TopicsOperations(
129-
self._client, self._config, self._serialize, self._deserialize)
130-
self.extension_topics = ExtensionTopicsOperations(
131-
self._client, self._config, self._serialize, self._deserialize)
132102
self.topic_types = TopicTypesOperations(
133103
self._client, self._config, self._serialize, self._deserialize)
134104

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

Lines changed: 3 additions & 9 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,19 +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",
115-
"extension_topics": "ExtensionTopicsOperations",
116110
"topic_types": "TopicTypesOperations"
117111
}
118112
}

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 = "2.2.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 & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +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
34-
from .operations import ExtensionTopicsOperations
3529
from .operations import TopicTypesOperations
3630
from .. import models
3731

@@ -43,32 +37,20 @@ class EventGridManagementClient(object):
4337
:vartype domains: azure.mgmt.eventgrid.aio.operations.DomainsOperations
4438
:ivar domain_topics: DomainTopicsOperations operations
4539
: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
4840
:ivar event_subscriptions: EventSubscriptionsOperations operations
4941
:vartype event_subscriptions: azure.mgmt.eventgrid.aio.operations.EventSubscriptionsOperations
5042
:ivar system_topic_event_subscriptions: SystemTopicEventSubscriptionsOperations operations
5143
: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
5444
:ivar operations: Operations operations
5545
: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
46+
:ivar topics: TopicsOperations operations
47+
:vartype topics: azure.mgmt.eventgrid.aio.operations.TopicsOperations
6248
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
6349
:vartype private_endpoint_connections: azure.mgmt.eventgrid.aio.operations.PrivateEndpointConnectionsOperations
6450
:ivar private_link_resources: PrivateLinkResourcesOperations operations
6551
:vartype private_link_resources: azure.mgmt.eventgrid.aio.operations.PrivateLinkResourcesOperations
6652
:ivar system_topics: SystemTopicsOperations operations
6753
:vartype system_topics: azure.mgmt.eventgrid.aio.operations.SystemTopicsOperations
68-
:ivar topics: TopicsOperations operations
69-
:vartype topics: azure.mgmt.eventgrid.aio.operations.TopicsOperations
70-
:ivar extension_topics: ExtensionTopicsOperations operations
71-
:vartype extension_topics: azure.mgmt.eventgrid.aio.operations.ExtensionTopicsOperations
7254
:ivar topic_types: TopicTypesOperations operations
7355
:vartype topic_types: azure.mgmt.eventgrid.aio.operations.TopicTypesOperations
7456
:param credential: Credential needed for the client to connect to Azure.
@@ -100,32 +82,20 @@ def __init__(
10082
self._client, self._config, self._serialize, self._deserialize)
10183
self.domain_topics = DomainTopicsOperations(
10284
self._client, self._config, self._serialize, self._deserialize)
103-
self.event_channels = EventChannelsOperations(
104-
self._client, self._config, self._serialize, self._deserialize)
10585
self.event_subscriptions = EventSubscriptionsOperations(
10686
self._client, self._config, self._serialize, self._deserialize)
10787
self.system_topic_event_subscriptions = SystemTopicEventSubscriptionsOperations(
10888
self._client, self._config, self._serialize, self._deserialize)
109-
self.partner_topic_event_subscriptions = PartnerTopicEventSubscriptionsOperations(
110-
self._client, self._config, self._serialize, self._deserialize)
11189
self.operations = Operations(
11290
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(
91+
self.topics = TopicsOperations(
11892
self._client, self._config, self._serialize, self._deserialize)
11993
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(
12094
self._client, self._config, self._serialize, self._deserialize)
12195
self.private_link_resources = PrivateLinkResourcesOperations(
12296
self._client, self._config, self._serialize, self._deserialize)
12397
self.system_topics = SystemTopicsOperations(
12498
self._client, self._config, self._serialize, self._deserialize)
125-
self.topics = TopicsOperations(
126-
self._client, self._config, self._serialize, self._deserialize)
127-
self.extension_topics = ExtensionTopicsOperations(
128-
self._client, self._config, self._serialize, self._deserialize)
12999
self.topic_types = TopicTypesOperations(
130100
self._client, self._config, self._serialize, self._deserialize)
131101

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

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,36 +8,24 @@
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
23-
from ._extension_topics_operations import ExtensionTopicsOperations
2418
from ._topic_types_operations import TopicTypesOperations
2519

2620
__all__ = [
2721
'DomainsOperations',
2822
'DomainTopicsOperations',
29-
'EventChannelsOperations',
3023
'EventSubscriptionsOperations',
3124
'SystemTopicEventSubscriptionsOperations',
32-
'PartnerTopicEventSubscriptionsOperations',
3325
'Operations',
34-
'PartnerNamespacesOperations',
35-
'PartnerRegistrationsOperations',
36-
'PartnerTopicsOperations',
26+
'TopicsOperations',
3727
'PrivateEndpointConnectionsOperations',
3828
'PrivateLinkResourcesOperations',
3929
'SystemTopicsOperations',
40-
'TopicsOperations',
41-
'ExtensionTopicsOperations',
4230
'TopicTypesOperations',
4331
]

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)