Skip to content

[AutoRelease] t2-eventhub-2025-07-04-66007(can only be merged by SDK owner) #41905

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
36 changes: 36 additions & 0 deletions sdk/eventhub/azure-mgmt-eventhub/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,41 @@
# Release History

## 12.0.0b1 (2025-07-20)

### Features Added

- Model `NetworkSecurityPerimeterConfiguration` added property `tags`

### Breaking Changes

- Model `Cluster` deleted or renamed its instance variable `provisioning_state`
- Model `Destination` deleted or renamed its instance variable `identity`
- Model `EHNamespace` deleted or renamed its instance variable `geo_data_replication`
- Model `Eventhub` deleted or renamed its instance variable `retention_description`
- Model `Eventhub` deleted or renamed its instance variable `message_timestamp_description`
- Model `Eventhub` deleted or renamed its instance variable `identifier`
- Model `Eventhub` deleted or renamed its instance variable `user_metadata`
- Model `NetworkSecurityPerimeterConfiguration` deleted or renamed its instance variable `is_backing_resource`
- Model `NetworkSecurityPerimeterConfiguration` deleted or renamed its instance variable `applicable_features`
- Model `NetworkSecurityPerimeterConfiguration` deleted or renamed its instance variable `parent_association_name`
- Model `NetworkSecurityPerimeterConfiguration` deleted or renamed its instance variable `source_resource_id`
- Deleted or renamed enum value `SchemaType.JSON`
- Deleted or renamed enum value `SchemaType.PROTO_BUF`
- Deleted or renamed model `CaptureIdentity`
- Deleted or renamed model `CaptureIdentityType`
- Deleted or renamed model `CleanupPolicyRetentionDescription`
- Deleted or renamed model `ErrorDetailAutoGenerated`
- Deleted or renamed model `ErrorResponseAutoGenerated`
- Deleted or renamed model `FailOver`
- Deleted or renamed model `GeoDRRoleType`
- Deleted or renamed model `GeoDataReplicationProperties`
- Deleted or renamed model `MessageTimestampDescription`
- Deleted or renamed model `NamespaceReplicaLocation`
- Deleted or renamed model `ProvisioningState`
- Deleted or renamed model `RetentionDescription`
- Deleted or renamed model `TimestampType`
- Deleted or renamed method `NamespacesOperations.begin_failover`

## 11.2.0 (2025-01-20)

### Features Added
Expand Down
1 change: 0 additions & 1 deletion sdk/eventhub/azure-mgmt-eventhub/MANIFEST.in
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
include _meta.json
recursive-include tests *.py *.json
recursive-include samples *.py *.md
include *.md
Expand Down
6 changes: 3 additions & 3 deletions sdk/eventhub/azure-mgmt-eventhub/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Microsoft Azure SDK for Python

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

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

### Prerequisites

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

### Install the package
Expand All @@ -24,7 +24,7 @@ pip install azure-identity

### Authentication

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

- `AZURE_CLIENT_ID` for Azure client ID.
- `AZURE_TENANT_ID` for Azure tenant ID.
Expand Down
20 changes: 0 additions & 20 deletions sdk/eventhub/azure-mgmt-eventhub/_meta.json

This file was deleted.

11 changes: 11 additions & 0 deletions sdk/eventhub/azure-mgmt-eventhub/_metadata.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"commit": "32e4f06b56b26aaeca87d766f6e3f8929864862d",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.35.0",
"@autorest/modelerfour@4.27.0"
],
"autorest_command": "autorest specification/eventhub/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 --tag=package-2022-01-preview --use=@autorest/python@6.35.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
"readme": "specification/eventhub/resource-manager/readme.md"
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,28 @@
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------
# pylint: disable=wrong-import-position

from ._event_hub_management_client import EventHubManagementClient
__all__ = ['EventHubManagementClient']
from typing import TYPE_CHECKING

try:
from ._patch import patch_sdk # type: ignore
patch_sdk()
except ImportError:
pass
if TYPE_CHECKING:
from ._patch import * # pylint: disable=unused-wildcard-import

from ._event_hub_management_client import EventHubManagementClient # type: ignore
from ._version import VERSION

__version__ = VERSION

try:
from ._patch import __all__ as _patch_all
from ._patch import *
except ImportError:
_patch_all = []
from ._patch import patch_sdk as _patch_sdk

__all__ = [
"EventHubManagementClient",
]
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore

_patch_sdk()
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
# coding=utf-8
# --------------------------------------------------------------------------
# Copyright (c) Microsoft Corporation. All rights reserved.
# Licensed under the MIT License. See License.txt in the project root for
# license information.
#
# Licensed under the MIT License. See License.txt in the project root for license information.
# Code generated by Microsoft (R) AutoRest Code Generator.
# Changes may cause incorrect behavior and will be lost if the code is
# regenerated.
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
# --------------------------------------------------------------------------

from typing import Any, TYPE_CHECKING

from azure.core.pipeline import policies
Expand All @@ -16,51 +14,52 @@
from ._version import VERSION

if TYPE_CHECKING:
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials import TokenCredential

class EventHubManagementClientConfiguration:

class EventHubManagementClientConfiguration: # pylint: disable=too-many-instance-attributes
"""Configuration for EventHubManagementClient.

Note that all parameters used to create this instance are saved as instance
attributes.

:param credential: Credential needed for the client to connect to Azure. Required.
:type credential: ~azure.core.credentials.TokenCredential
:param subscription_id: Subscription credentials that uniquely identify a Microsoft Azure subscription. The subscription ID forms part of the URI for every service call. Required.
:param subscription_id: Subscription credentials that uniquely identify a Microsoft Azure
subscription. The subscription ID forms part of the URI for every service call. Required.
:type subscription_id: str
:keyword api_version: Api Version. Default value is "2022-01-01-preview". Note that overriding
this default value may result in unsupported behavior.
:paramtype api_version: str
"""

def __init__(
self,
credential: "TokenCredential",
subscription_id: str,
**kwargs: Any
):
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
api_version: str = kwargs.pop("api_version", "2022-01-01-preview")

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

self.credential = credential
self.subscription_id = subscription_id
self.credential_scopes = kwargs.pop('credential_scopes', ['https://management.azure.com/.default'])
kwargs.setdefault('sdk_moniker', 'azure-mgmt-eventhub/{}'.format(VERSION))
self.api_version = api_version
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
kwargs.setdefault("sdk_moniker", "mgmt-eventhub/{}".format(VERSION))
self.polling_interval = kwargs.get("polling_interval", 30)
self._configure(**kwargs)

def _configure(
self,
**kwargs: Any
):
self.user_agent_policy = kwargs.get('user_agent_policy') or policies.UserAgentPolicy(**kwargs)
self.headers_policy = kwargs.get('headers_policy') or policies.HeadersPolicy(**kwargs)
self.proxy_policy = kwargs.get('proxy_policy') or policies.ProxyPolicy(**kwargs)
self.logging_policy = kwargs.get('logging_policy') or policies.NetworkTraceLoggingPolicy(**kwargs)
self.http_logging_policy = kwargs.get('http_logging_policy') or ARMHttpLoggingPolicy(**kwargs)
self.retry_policy = kwargs.get('retry_policy') or policies.RetryPolicy(**kwargs)
self.custom_hook_policy = kwargs.get('custom_hook_policy') or policies.CustomHookPolicy(**kwargs)
self.redirect_policy = kwargs.get('redirect_policy') or policies.RedirectPolicy(**kwargs)
self.authentication_policy = kwargs.get('authentication_policy')
def _configure(self, **kwargs: Any) -> None:
self.user_agent_policy = kwargs.get("user_agent_policy") or policies.UserAgentPolicy(**kwargs)
self.headers_policy = kwargs.get("headers_policy") or policies.HeadersPolicy(**kwargs)
self.proxy_policy = kwargs.get("proxy_policy") or policies.ProxyPolicy(**kwargs)
self.logging_policy = kwargs.get("logging_policy") or policies.NetworkTraceLoggingPolicy(**kwargs)
self.http_logging_policy = kwargs.get("http_logging_policy") or ARMHttpLoggingPolicy(**kwargs)
self.custom_hook_policy = kwargs.get("custom_hook_policy") or policies.CustomHookPolicy(**kwargs)
self.redirect_policy = kwargs.get("redirect_policy") or policies.RedirectPolicy(**kwargs)
self.retry_policy = kwargs.get("retry_policy") or policies.RetryPolicy(**kwargs)
self.authentication_policy = kwargs.get("authentication_policy")
if self.credential and not self.authentication_policy:
self.authentication_policy = ARMChallengeAuthenticationPolicy(self.credential, *self.credential_scopes, **kwargs)
self.authentication_policy = ARMChallengeAuthenticationPolicy(
self.credential, *self.credential_scopes, **kwargs
)
Loading