Skip to content

Commit 15986fb

Browse files
author
SDKAuto
committed
CodeGen from PR 34324 in Azure/azure-rest-api-specs
Merge 2e8f925516048a901587c68abc3e66477e371151 into c64457b3dcc103d93c378ca1ec58fbf683a7f163
1 parent 1063688 commit 15986fb

File tree

162 files changed

+3022
-2781
lines changed

Some content is hidden

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

162 files changed

+3022
-2781
lines changed

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

+55
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,60 @@
11
# Release History
22

3+
## 1.1.0b5 (2025-05-13)
4+
5+
### Features Added
6+
7+
- Model `ConnectedPartnerResourceProperties` added property `type`
8+
- Model `DeploymentInfoResponse` added property `project_type`
9+
- Model `DeploymentInfoResponse` added property `configuration_type`
10+
- Model `ElasticMonitorResource` added property `kind`
11+
- Model `MonitorProperties` added property `hosting_type`
12+
- Model `MonitorProperties` added property `project_details`
13+
- Model `MonitoredSubscriptionProperties` added property `system_data`
14+
- Model `OpenAIIntegrationRPModel` added property `system_data`
15+
- Added model `AzureResourceManagerArmResponseElasticMonitorResource`
16+
- Added enum `ConfigurationType`
17+
- Added enum `HostingType`
18+
- Added model `ProjectDetails`
19+
- Added enum `ProjectType`
20+
- Added model `ProxyResource`
21+
- Added model `Resource`
22+
- Added model `TrackedResource`
23+
- Method `MonitoredSubscriptionsOperations.begin_createor_update` has a new overload `def begin_createor_update(self: None, resource_group_name: str, monitor_name: str, configuration_name: str, body: MonitoredSubscriptionProperties, content_type: str)`
24+
- Method `MonitoredSubscriptionsOperations.begin_createor_update` has a new overload `def begin_createor_update(self: None, resource_group_name: str, monitor_name: str, configuration_name: str, body: IO[bytes], content_type: str)`
25+
- Method `MonitoredSubscriptionsOperations.begin_update` has a new overload `def begin_update(self: None, resource_group_name: str, monitor_name: str, configuration_name: str, body: MonitoredSubscriptionProperties, content_type: str)`
26+
- Method `MonitoredSubscriptionsOperations.begin_update` has a new overload `def begin_update(self: None, resource_group_name: str, monitor_name: str, configuration_name: str, body: IO[bytes], content_type: str)`
27+
- Method `MonitorsOperations.begin_create` has a new overload `def begin_create(self: None, resource_group_name: str, monitor_name: str, body: ElasticMonitorResource, content_type: str)`
28+
- Method `MonitorsOperations.begin_create` has a new overload `def begin_create(self: None, resource_group_name: str, monitor_name: str, body: IO[bytes], content_type: str)`
29+
- Method `MonitorsOperations.begin_update` has a new overload `def begin_update(self: None, resource_group_name: str, monitor_name: str, body: ElasticMonitorResourceUpdateParameters, content_type: str)`
30+
- Method `MonitorsOperations.begin_update` has a new overload `def begin_update(self: None, resource_group_name: str, monitor_name: str, body: IO[bytes], content_type: str)`
31+
- Method `OpenAIOperations.create_or_update` has a new overload `def create_or_update(self: None, resource_group_name: str, monitor_name: str, integration_name: str, body: OpenAIIntegrationRPModel, content_type: str)`
32+
- Method `OpenAIOperations.create_or_update` has a new overload `def create_or_update(self: None, resource_group_name: str, monitor_name: str, integration_name: str, body: IO[bytes], content_type: str)`
33+
- Method `OrganizationsOperations.get_api_key` has a new overload `def get_api_key(self: None, body: UserEmailId, content_type: str)`
34+
- Method `OrganizationsOperations.get_api_key` has a new overload `def get_api_key(self: None, body: IO[bytes], content_type: str)`
35+
- Method `TagRulesOperations.create_or_update` has a new overload `def create_or_update(self: None, resource_group_name: str, monitor_name: str, rule_set_name: str, body: MonitoringTagRules, content_type: str)`
36+
- Method `TagRulesOperations.create_or_update` has a new overload `def create_or_update(self: None, resource_group_name: str, monitor_name: str, rule_set_name: str, body: IO[bytes], content_type: str)`
37+
38+
### Breaking Changes
39+
40+
- Method `ConnectedPartnerResourcesListResponse.__init__` removed default value `None` from its parameter `value`
41+
- Method `ElasticMonitorResourceListResponse.__init__` removed default value `None` from its parameter `value`
42+
- Method `ElasticVersionsListResponse.__init__` removed default value `None` from its parameter `value`
43+
- Method `MonitoredResourceListResponse.__init__` removed default value `None` from its parameter `value`
44+
- Method `MonitoredSubscription.__init__` removed default value `None` from its parameter `subscription_id`
45+
- Method `MonitoredSubscriptionPropertiesList.__init__` removed default value `None` from its parameter `value`
46+
- Method `MonitoringTagRulesListResponse.__init__` removed default value `None` from its parameter `value`
47+
- Method `OpenAIIntegrationRPModelListResponse.__init__` removed default value `None` from its parameter `value`
48+
- Method `OperationListResult.__init__` removed default value `None` from its parameter `value`
49+
- Method `VMHostListResponse.__init__` removed default value `None` from its parameter `value`
50+
- Method `MonitoredSubscriptionsOperations.begin_createor_update` removed default value `None` from its parameter `body`
51+
- Method `MonitoredSubscriptionsOperations.begin_update` removed default value `None` from its parameter `body`
52+
- Method `MonitorsOperations.begin_create` removed default value `None` from its parameter `body`
53+
- Method `MonitorsOperations.begin_update` removed default value `None` from its parameter `body`
54+
- Method `OpenAIOperations.create_or_update` removed default value `None` from its parameter `body`
55+
- Method `OrganizationsOperations.get_api_key` removed default value `None` from its parameter `body`
56+
- Method `TagRulesOperations.create_or_update` removed default value `None` from its parameter `body`
57+
358
## 1.1.0b4 (2024-10-23)
459

560
### Features Added

sdk/elastic/azure-mgmt-elastic/README.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Microsoft Azure SDK for Python
22

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

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

1313
### Prerequisites
1414

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

1818
### Install the package
@@ -24,7 +24,7 @@ pip install azure-identity
2424

2525
### Authentication
2626

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

2929
- `AZURE_CLIENT_ID` for Azure client ID.
3030
- `AZURE_TENANT_ID` for Azure tenant ID.
+3-3
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "6c709e5a3325eaa862649acee2252ce1c8166042",
2+
"commit": "5c92dda155f958f8acd565f5ececf28dd940b560",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
44
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.19.0",
6+
"@autorest/python@6.34.1",
77
"@autorest/[email protected]"
88
],
9-
"autorest_command": "autorest specification/elastic/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --python --python-sdks-folder=/home/vsts/work/1/azure-sdk-for-python/sdk --use=@autorest/python@6.19.0 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/elastic/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/s/azure-sdk-for-python/sdk --use=@autorest/python@6.34.1 --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/elastic/resource-manager/readme.md"
1111
}

sdk/elastic/azure-mgmt-elastic/azure/mgmt/elastic/__init__.py

+9-3
Original file line numberDiff line numberDiff line change
@@ -5,22 +5,28 @@
55
# Code generated by Microsoft (R) AutoRest Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
8+
# pylint: disable=wrong-import-position
89

9-
from ._microsoft_elastic import MicrosoftElastic
10+
from typing import TYPE_CHECKING
11+
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
14+
15+
from ._microsoft_elastic import MicrosoftElastic # type: ignore
1016
from ._version import VERSION
1117

1218
__version__ = VERSION
1319

1420
try:
1521
from ._patch import __all__ as _patch_all
16-
from ._patch import * # pylint: disable=unused-wildcard-import
22+
from ._patch import *
1723
except ImportError:
1824
_patch_all = []
1925
from ._patch import patch_sdk as _patch_sdk
2026

2127
__all__ = [
2228
"MicrosoftElastic",
2329
]
24-
__all__.extend([p for p in _patch_all if p not in __all__])
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
2531

2632
_patch_sdk()

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

+3-4
Original file line numberDiff line numberDiff line change
@@ -14,11 +14,10 @@
1414
from ._version import VERSION
1515

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

2019

21-
class MicrosoftElasticConfiguration: # pylint: disable=too-many-instance-attributes,name-too-long
20+
class MicrosoftElasticConfiguration: # pylint: disable=too-many-instance-attributes
2221
"""Configuration for MicrosoftElastic.
2322
2423
Note that all parameters used to create this instance are saved as instance
@@ -28,13 +27,13 @@ class MicrosoftElasticConfiguration: # pylint: disable=too-many-instance-attrib
2827
:type credential: ~azure.core.credentials.TokenCredential
2928
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3029
:type subscription_id: str
31-
:keyword api_version: Api Version. Default value is "2024-06-15-preview". Note that overriding
30+
:keyword api_version: Api Version. Default value is "2025-01-15-preview". Note that overriding
3231
this default value may result in unsupported behavior.
3332
:paramtype api_version: str
3433
"""
3534

3635
def __init__(self, credential: "TokenCredential", subscription_id: str, **kwargs: Any) -> None:
37-
api_version: str = kwargs.pop("api_version", "2024-06-15-preview")
36+
api_version: str = kwargs.pop("api_version", "2025-01-15-preview")
3837

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

0 commit comments

Comments
 (0)