Skip to content

Commit

Permalink
[AutoRelease] t2-eventgrid-2022-03-28-97024(Do not merge) (Azure#23692)
Browse files Browse the repository at this point in the history
* 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]>
  • Loading branch information
3 people authored Apr 7, 2022
1 parent 9db8a2e commit 0e93c6a
Show file tree
Hide file tree
Showing 56 changed files with 21,275 additions and 5,523 deletions.
28 changes: 28 additions & 0 deletions sdk/eventgrid/azure-mgmt-eventgrid/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,33 @@
# Release History

## 10.2.0b1 (2022-04-07)

**Features**

- Added operation group ChannelsOperations
- Added operation group DomainEventSubscriptionsOperations
- Added operation group DomainTopicEventSubscriptionsOperations
- Added operation group EventChannelsOperations
- Added operation group PartnerConfigurationsOperations
- Added operation group PartnerDestinationsOperations
- Added operation group PartnerNamespacesOperations
- Added operation group PartnerRegistrationsOperations
- Added operation group PartnerTopicEventSubscriptionsOperations
- Added operation group PartnerTopicsOperations
- Added operation group TopicEventSubscriptionsOperations
- Added operation group VerifiedPartnersOperations
- Model Domain has a new parameter data_residency_boundary
- Model Domain has a new parameter sku
- Model DomainUpdateParameters has a new parameter data_residency_boundary
- Model DomainUpdateParameters has a new parameter sku
- Model Operation has a new parameter is_data_action
- Model Topic has a new parameter data_residency_boundary
- Model Topic has a new parameter extended_location
- Model Topic has a new parameter kind
- Model Topic has a new parameter sku
- Model TopicUpdateParameters has a new parameter data_residency_boundary
- Model TopicUpdateParameters has a new parameter sku

## 10.1.0 (2021-12-13)

**Features**
Expand Down
4 changes: 2 additions & 2 deletions sdk/eventgrid/azure-mgmt-eventgrid/_meta.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
"@autorest/[email protected]",
"@autorest/[email protected]"
],
"commit": "f3477bd0a7b6101f9c0af243cc0106c7a8e24c71",
"commit": "dfb02eb8ee4f04974fc46e9708615bff03329907",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"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",
"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",
"readme": "specification/eventgrid/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from typing import TYPE_CHECKING
from typing import Any, TYPE_CHECKING

from azure.core.configuration import Configuration
from azure.core.pipeline import policies
Expand All @@ -16,8 +16,6 @@

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from typing import Any

from azure.core.credentials import TokenCredential


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

def __init__(
self,
credential, # type: "TokenCredential"
subscription_id, # type: str
**kwargs # type: Any
):
# type: (...) -> None
credential: "TokenCredential",
subscription_id: str,
**kwargs: Any
) -> None:
super(EventGridManagementClientConfiguration, self).__init__(**kwargs)
if credential is None:
raise ValueError("Parameter 'credential' must not be None.")
Expand All @@ -48,7 +45,7 @@ def __init__(

self.credential = credential
self.subscription_id = subscription_id
self.api_version = "2021-12-01"
self.api_version = "2021-10-15-preview"
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'mgmt-eventgrid/{}'.format(VERSION))
self._configure(**kwargs)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,49 +7,76 @@
# --------------------------------------------------------------------------

from copy import deepcopy
from typing import TYPE_CHECKING
from typing import Any, Optional, TYPE_CHECKING

from azure.core.rest import HttpRequest, HttpResponse
from azure.mgmt.core import ARMPipelineClient
from msrest import Deserializer, Serializer

from . import models
from ._configuration import EventGridManagementClientConfiguration
from .operations import DomainTopicsOperations, DomainsOperations, EventSubscriptionsOperations, ExtensionTopicsOperations, Operations, PrivateEndpointConnectionsOperations, PrivateLinkResourcesOperations, SystemTopicEventSubscriptionsOperations, SystemTopicsOperations, TopicTypesOperations, TopicsOperations
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

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from typing import Any, Optional

from azure.core.credentials import TokenCredential
from azure.core.rest import HttpRequest, HttpResponse

class EventGridManagementClient(object):
class EventGridManagementClient:
"""Azure EventGrid Management Client.
:ivar channels: ChannelsOperations operations
:vartype channels: azure.mgmt.eventgrid.operations.ChannelsOperations
:ivar domains: DomainsOperations operations
:vartype domains: azure.mgmt.eventgrid.operations.DomainsOperations
:ivar domain_topics: DomainTopicsOperations operations
:vartype domain_topics: azure.mgmt.eventgrid.operations.DomainTopicsOperations
:ivar event_channels: EventChannelsOperations operations
:vartype event_channels: azure.mgmt.eventgrid.operations.EventChannelsOperations
:ivar event_subscriptions: EventSubscriptionsOperations operations
:vartype event_subscriptions: azure.mgmt.eventgrid.operations.EventSubscriptionsOperations
:ivar domain_topic_event_subscriptions: DomainTopicEventSubscriptionsOperations operations
:vartype domain_topic_event_subscriptions:
azure.mgmt.eventgrid.operations.DomainTopicEventSubscriptionsOperations
:ivar topic_event_subscriptions: TopicEventSubscriptionsOperations operations
:vartype topic_event_subscriptions:
azure.mgmt.eventgrid.operations.TopicEventSubscriptionsOperations
:ivar domain_event_subscriptions: DomainEventSubscriptionsOperations operations
:vartype domain_event_subscriptions:
azure.mgmt.eventgrid.operations.DomainEventSubscriptionsOperations
:ivar system_topic_event_subscriptions: SystemTopicEventSubscriptionsOperations operations
:vartype system_topic_event_subscriptions:
azure.mgmt.eventgrid.operations.SystemTopicEventSubscriptionsOperations
:ivar partner_topic_event_subscriptions: PartnerTopicEventSubscriptionsOperations operations
:vartype partner_topic_event_subscriptions:
azure.mgmt.eventgrid.operations.PartnerTopicEventSubscriptionsOperations
:ivar operations: Operations operations
:vartype operations: azure.mgmt.eventgrid.operations.Operations
:ivar topics: TopicsOperations operations
:vartype topics: azure.mgmt.eventgrid.operations.TopicsOperations
:ivar partner_configurations: PartnerConfigurationsOperations operations
:vartype partner_configurations:
azure.mgmt.eventgrid.operations.PartnerConfigurationsOperations
:ivar partner_destinations: PartnerDestinationsOperations operations
:vartype partner_destinations: azure.mgmt.eventgrid.operations.PartnerDestinationsOperations
:ivar partner_namespaces: PartnerNamespacesOperations operations
:vartype partner_namespaces: azure.mgmt.eventgrid.operations.PartnerNamespacesOperations
:ivar partner_registrations: PartnerRegistrationsOperations operations
:vartype partner_registrations: azure.mgmt.eventgrid.operations.PartnerRegistrationsOperations
:ivar partner_topics: PartnerTopicsOperations operations
:vartype partner_topics: azure.mgmt.eventgrid.operations.PartnerTopicsOperations
:ivar private_endpoint_connections: PrivateEndpointConnectionsOperations operations
:vartype private_endpoint_connections:
azure.mgmt.eventgrid.operations.PrivateEndpointConnectionsOperations
:ivar private_link_resources: PrivateLinkResourcesOperations operations
:vartype private_link_resources: azure.mgmt.eventgrid.operations.PrivateLinkResourcesOperations
:ivar system_topics: SystemTopicsOperations operations
:vartype system_topics: azure.mgmt.eventgrid.operations.SystemTopicsOperations
:ivar topics: TopicsOperations operations
:vartype topics: azure.mgmt.eventgrid.operations.TopicsOperations
:ivar extension_topics: ExtensionTopicsOperations operations
:vartype extension_topics: azure.mgmt.eventgrid.operations.ExtensionTopicsOperations
:ivar topic_types: TopicTypesOperations operations
:vartype topic_types: azure.mgmt.eventgrid.operations.TopicTypesOperations
:ivar verified_partners: VerifiedPartnersOperations operations
:vartype verified_partners: azure.mgmt.eventgrid.operations.VerifiedPartnersOperations
:param credential: Credential needed for the client to connect to Azure.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: Subscription credentials that uniquely identify a Microsoft Azure
Expand All @@ -63,38 +90,48 @@ class EventGridManagementClient(object):

def __init__(
self,
credential, # type: "TokenCredential"
subscription_id, # type: str
base_url="https://management.azure.com", # type: str
**kwargs # type: Any
):
# type: (...) -> None
credential: "TokenCredential",
subscription_id: str,
base_url: str = "https://management.azure.com",
**kwargs: Any
) -> None:
self._config = EventGridManagementClientConfiguration(credential=credential, subscription_id=subscription_id, **kwargs)
self._client = ARMPipelineClient(base_url=base_url, config=self._config, **kwargs)

client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
self._serialize = Serializer(client_models)
self._deserialize = Deserializer(client_models)
self._serialize.client_side_validation = False
self.channels = ChannelsOperations(self._client, self._config, self._serialize, self._deserialize)
self.domains = DomainsOperations(self._client, self._config, self._serialize, self._deserialize)
self.domain_topics = DomainTopicsOperations(self._client, self._config, self._serialize, self._deserialize)
self.event_channels = EventChannelsOperations(self._client, self._config, self._serialize, self._deserialize)
self.event_subscriptions = EventSubscriptionsOperations(self._client, self._config, self._serialize, self._deserialize)
self.domain_topic_event_subscriptions = DomainTopicEventSubscriptionsOperations(self._client, self._config, self._serialize, self._deserialize)
self.topic_event_subscriptions = TopicEventSubscriptionsOperations(self._client, self._config, self._serialize, self._deserialize)
self.domain_event_subscriptions = DomainEventSubscriptionsOperations(self._client, self._config, self._serialize, self._deserialize)
self.system_topic_event_subscriptions = SystemTopicEventSubscriptionsOperations(self._client, self._config, self._serialize, self._deserialize)
self.partner_topic_event_subscriptions = PartnerTopicEventSubscriptionsOperations(self._client, self._config, self._serialize, self._deserialize)
self.operations = Operations(self._client, self._config, self._serialize, self._deserialize)
self.topics = TopicsOperations(self._client, self._config, self._serialize, self._deserialize)
self.partner_configurations = PartnerConfigurationsOperations(self._client, self._config, self._serialize, self._deserialize)
self.partner_destinations = PartnerDestinationsOperations(self._client, self._config, self._serialize, self._deserialize)
self.partner_namespaces = PartnerNamespacesOperations(self._client, self._config, self._serialize, self._deserialize)
self.partner_registrations = PartnerRegistrationsOperations(self._client, self._config, self._serialize, self._deserialize)
self.partner_topics = PartnerTopicsOperations(self._client, self._config, self._serialize, self._deserialize)
self.private_endpoint_connections = PrivateEndpointConnectionsOperations(self._client, self._config, self._serialize, self._deserialize)
self.private_link_resources = PrivateLinkResourcesOperations(self._client, self._config, self._serialize, self._deserialize)
self.system_topics = SystemTopicsOperations(self._client, self._config, self._serialize, self._deserialize)
self.topics = TopicsOperations(self._client, self._config, self._serialize, self._deserialize)
self.extension_topics = ExtensionTopicsOperations(self._client, self._config, self._serialize, self._deserialize)
self.topic_types = TopicTypesOperations(self._client, self._config, self._serialize, self._deserialize)
self.verified_partners = VerifiedPartnersOperations(self._client, self._config, self._serialize, self._deserialize)


def _send_request(
self,
request, # type: HttpRequest
**kwargs # type: Any
):
# type: (...) -> HttpResponse
**kwargs: Any
) -> HttpResponse:
"""Runs the network request through the client's chained policies.
>>> from azure.core.rest import HttpRequest
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"chosen_version": "2021-12-01",
"total_api_version_list": ["2021-12-01"],
"chosen_version": "2021-10-15-preview",
"total_api_version_list": ["2021-10-15-preview"],
"client": {
"name": "EventGridManagementClient",
"filename": "_event_grid_management_client",
Expand Down Expand Up @@ -97,16 +97,28 @@
"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\"]}}}"
},
"operation_groups": {
"channels": "ChannelsOperations",
"domains": "DomainsOperations",
"domain_topics": "DomainTopicsOperations",
"event_channels": "EventChannelsOperations",
"event_subscriptions": "EventSubscriptionsOperations",
"domain_topic_event_subscriptions": "DomainTopicEventSubscriptionsOperations",
"topic_event_subscriptions": "TopicEventSubscriptionsOperations",
"domain_event_subscriptions": "DomainEventSubscriptionsOperations",
"system_topic_event_subscriptions": "SystemTopicEventSubscriptionsOperations",
"partner_topic_event_subscriptions": "PartnerTopicEventSubscriptionsOperations",
"operations": "Operations",
"topics": "TopicsOperations",
"partner_configurations": "PartnerConfigurationsOperations",
"partner_destinations": "PartnerDestinationsOperations",
"partner_namespaces": "PartnerNamespacesOperations",
"partner_registrations": "PartnerRegistrationsOperations",
"partner_topics": "PartnerTopicsOperations",
"private_endpoint_connections": "PrivateEndpointConnectionsOperations",
"private_link_resources": "PrivateLinkResourcesOperations",
"system_topics": "SystemTopicsOperations",
"topics": "TopicsOperations",
"extension_topics": "ExtensionTopicsOperations",
"topic_types": "TopicTypesOperations"
"topic_types": "TopicTypesOperations",
"verified_partners": "VerifiedPartnersOperations"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

VERSION = "10.1.0"
VERSION = "10.2.0b1"
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ def __init__(

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

0 comments on commit 0e93c6a

Please sign in to comment.