Skip to content

Commit 2b6e638

Browse files
azure-sdkmsyycChenxiJiang333
authored
[AutoRelease] t2-monitor-2025-02-06-99514(can only be merged by SDK owner) (Azure#39601)
* code and test * add enum for cli * update testcases * Update changelog date and add live test marker * Remove guest diagnostics settings tests * Update deprecation comments with reference link * Remove deprecated enums and update `__all__` --------- Co-authored-by: azure-sdk <PythonSdkPipelines> Co-authored-by: Yuchao Yan <[email protected]> Co-authored-by: ChenxiJiang333 <[email protected]> Co-authored-by: ChenxiJiang333 <[email protected]>
1 parent af6889f commit 2b6e638

File tree

1,117 files changed

+45686
-161405
lines changed

Some content is hidden

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

1,117 files changed

+45686
-161405
lines changed

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

Lines changed: 240 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,245 @@
11
# Release History
22

3+
## 7.0.0b1 (2025-02-08)
4+
5+
### Features Added
6+
7+
- Client `MonitorManagementClient` added operation group `action_groups`
8+
- Client `MonitorManagementClient` added operation group `activity_log_alerts`
9+
- Client `MonitorManagementClient` added operation group `activity_logs`
10+
- Client `MonitorManagementClient` added operation group `tenant_activity_logs`
11+
- Client `MonitorManagementClient` added operation group `alert_rule_incidents`
12+
- Client `MonitorManagementClient` added operation group `autoscale_settings`
13+
- Client `MonitorManagementClient` added operation group `predictive_metric`
14+
- Client `MonitorManagementClient` added operation group `baselines`
15+
- Client `MonitorManagementClient` added operation group `diagnostic_settings`
16+
- Client `MonitorManagementClient` added operation group `diagnostic_settings_category`
17+
- Client `MonitorManagementClient` added operation group `event_categories`
18+
- Client `MonitorManagementClient` added operation group `guest_diagnostics_settings`
19+
- Client `MonitorManagementClient` added operation group `guest_diagnostics_settings_association`
20+
- Client `MonitorManagementClient` added operation group `log_profiles`
21+
- Client `MonitorManagementClient` added operation group `metric_alerts`
22+
- Client `MonitorManagementClient` added operation group `metric_alerts_status`
23+
- Client `MonitorManagementClient` added operation group `metric_definitions`
24+
- Client `MonitorManagementClient` added operation group `metric_namespaces`
25+
- Client `MonitorManagementClient` added operation group `metrics`
26+
- Client `MonitorManagementClient` added operation group `operations`
27+
- Client `MonitorManagementClient` added operation group `scheduled_query_rules`
28+
- Client `MonitorManagementClient` added operation group `service_diagnostic_settings`
29+
- Client `MonitorManagementClient` added operation group `vm_insights`
30+
- Client `MonitorManagementClient` added operation group `private_link_scopes`
31+
- Client `MonitorManagementClient` added operation group `private_link_scope_operation_status`
32+
- Client `MonitorManagementClient` added operation group `private_link_resources`
33+
- Client `MonitorManagementClient` added operation group `private_endpoint_connections`
34+
- Client `MonitorManagementClient` added operation group `private_link_scoped_resources`
35+
- Client `MonitorManagementClient` added operation group `subscription_diagnostic_settings`
36+
- Added model `Action`
37+
- Added model `ActionDetail`
38+
- Added model `ActionGroupList`
39+
- Added model `ActionGroupResource`
40+
- Added model `ActivityLogAlertActionGroup`
41+
- Added model `ActivityLogAlertActionList`
42+
- Added model `ActivityLogAlertAllOfCondition`
43+
- Added model `ActivityLogAlertLeafCondition`
44+
- Added model `ActivityLogAlertList`
45+
- Added model `ActivityLogAlertPatchBody`
46+
- Added model `ActivityLogAlertResource`
47+
- Added enum `AggregationType`
48+
- Added enum `AggregationTypeEnum`
49+
- Added enum `AlertSeverity`
50+
- Added model `AlertingAction`
51+
- Added model `ArmRoleReceiver`
52+
- Added model `AutomationRunbookReceiver`
53+
- Added model `AutoscaleErrorResponse`
54+
- Added model `AutoscaleErrorResponseError`
55+
- Added model `AutoscaleNotification`
56+
- Added model `AutoscaleProfile`
57+
- Added model `AutoscaleSettingResource`
58+
- Added model `AutoscaleSettingResourceCollection`
59+
- Added model `AutoscaleSettingResourcePatch`
60+
- Added model `AzNsActionGroup`
61+
- Added model `AzureFunctionReceiver`
62+
- Added model `AzureMonitorPrivateLinkScope`
63+
- Added model `AzureMonitorPrivateLinkScopeListResult`
64+
- Added model `BaselineMetadata`
65+
- Added enum `BaselineSensitivity`
66+
- Added enum `CategoryType`
67+
- Added enum `ComparisonOperationType`
68+
- Added enum `ConditionalOperator`
69+
- Added model `Context`
70+
- Added enum `CreatedByType`
71+
- Added model `Criteria`
72+
- Added enum `CriterionType`
73+
- Added model `DataContainer`
74+
- Added model `DataSource`
75+
- Added model `DataSourceConfiguration`
76+
- Added enum `DataSourceKind`
77+
- Added enum `DataStatus`
78+
- Added model `DiagnosticSettingsCategoryResource`
79+
- Added model `DiagnosticSettingsCategoryResourceCollection`
80+
- Added model `DiagnosticSettingsResource`
81+
- Added model `DiagnosticSettingsResourceCollection`
82+
- Added model `Dimension`
83+
- Added model `DynamicMetricCriteria`
84+
- Added model `DynamicThresholdFailingPeriods`
85+
- Added enum `DynamicThresholdOperator`
86+
- Added enum `DynamicThresholdSensitivity`
87+
- Added model `EmailNotification`
88+
- Added model `EnableRequest`
89+
- Added enum `Enabled`
90+
- Added model `Error`
91+
- Added model `ErrorAdditionalInfo`
92+
- Added model `ErrorContract`
93+
- Added model `ErrorDetail`
94+
- Added model `ErrorDetailAdditionalInfoItem`
95+
- Added model `ErrorResponseAutoGenerated`
96+
- Added model `ErrorResponseAutoGenerated2`
97+
- Added model `ErrorResponseCommon`
98+
- Added model `ErrorResponseError`
99+
- Added model `ErrorResponseErrorAdditionalInfoItem`
100+
- Added model `EtwEventConfiguration`
101+
- Added model `EtwProviderConfiguration`
102+
- Added model `EventCategoryCollection`
103+
- Added model `EventData`
104+
- Added model `EventDataCollection`
105+
- Added model `EventHubReceiver`
106+
- Added enum `EventLevel`
107+
- Added model `EventLogConfiguration`
108+
- Added model `GuestDiagnosticSettingsAssociationList`
109+
- Added model `GuestDiagnosticSettingsAssociationResource`
110+
- Added model `GuestDiagnosticSettingsAssociationResourcePatch`
111+
- Added model `GuestDiagnosticSettingsList`
112+
- Added enum `GuestDiagnosticSettingsOsType`
113+
- Added model `GuestDiagnosticSettingsPatchResource`
114+
- Added model `GuestDiagnosticSettingsResource`
115+
- Added model `HttpRequestInfo`
116+
- Added model `Incident`
117+
- Added model `IncidentListResult`
118+
- Added model `ItsmReceiver`
119+
- Added model `LocalizableString`
120+
- Added model `LocalizableStringAutoGenerated`
121+
- Added model `LogMetricTrigger`
122+
- Added model `LogProfileCollection`
123+
- Added model `LogProfileResource`
124+
- Added model `LogProfileResourcePatch`
125+
- Added model `LogSearchRuleResource`
126+
- Added model `LogSearchRuleResourceCollection`
127+
- Added model `LogSearchRuleResourcePatch`
128+
- Added model `LogSettings`
129+
- Added model `LogSettingsAutoGenerated`
130+
- Added model `LogToMetricAction`
131+
- Added model `LogicAppReceiver`
132+
- Added model `MetadataValue`
133+
- Added model `Metric`
134+
- Added model `MetricAlertAction`
135+
- Added model `MetricAlertCriteria`
136+
- Added model `MetricAlertMultipleResourceMultipleMetricCriteria`
137+
- Added model `MetricAlertResource`
138+
- Added model `MetricAlertResourceCollection`
139+
- Added model `MetricAlertResourcePatch`
140+
- Added model `MetricAlertSingleResourceMultipleMetricCriteria`
141+
- Added model `MetricAlertStatus`
142+
- Added model `MetricAlertStatusCollection`
143+
- Added model `MetricAlertStatusProperties`
144+
- Added model `MetricAvailability`
145+
- Added model `MetricBaselinesResponse`
146+
- Added enum `MetricClass`
147+
- Added model `MetricCriteria`
148+
- Added model `MetricDefinition`
149+
- Added model `MetricDefinitionCollection`
150+
- Added model `MetricDimension`
151+
- Added model `MetricNamespace`
152+
- Added model `MetricNamespaceCollection`
153+
- Added model `MetricNamespaceName`
154+
- Added model `MetricSettings`
155+
- Added model `MetricSettingsAutoGenerated`
156+
- Added model `MetricSingleDimension`
157+
- Added enum `MetricStatisticType`
158+
- Added model `MetricTrigger`
159+
- Added enum `MetricTriggerType`
160+
- Added enum `MetricUnit`
161+
- Added model `MetricValue`
162+
- Added model `MultiMetricCriteria`
163+
- Added enum `NamespaceClassification`
164+
- Added model `NotificationRequestBody`
165+
- Added enum `Odatatype`
166+
- Added enum `OnboardingStatus`
167+
- Added model `Operation`
168+
- Added model `OperationDisplay`
169+
- Added model `OperationListResult`
170+
- Added model `OperationStatus`
171+
- Added enum `Operator`
172+
- Added model `PerformanceCounterConfiguration`
173+
- Added model `PredictiveAutoscalePolicy`
174+
- Added enum `PredictiveAutoscalePolicyScaleMode`
175+
- Added model `PredictiveResponse`
176+
- Added model `PredictiveValue`
177+
- Added model `PrivateEndpointConnection`
178+
- Added model `PrivateEndpointConnectionListResult`
179+
- Added model `PrivateEndpointProperty`
180+
- Added model `PrivateLinkResource`
181+
- Added model `PrivateLinkResourceListResult`
182+
- Added model `PrivateLinkScopesResource`
183+
- Added model `PrivateLinkServiceConnectionStateProperty`
184+
- Added enum `ProvisioningState`
185+
- Added model `ProxyOnlyResource`
186+
- Added model `ProxyResource`
187+
- Added enum `QueryType`
188+
- Added model `Recurrence`
189+
- Added enum `RecurrenceFrequency`
190+
- Added model `RecurrentSchedule`
191+
- Added model `Resource`
192+
- Added model `ResourceAutoGenerated`
193+
- Added model `ResourceAutoGenerated2`
194+
- Added model `ResourceAutoGenerated3`
195+
- Added model `Response`
196+
- Added model `ResponseWithError`
197+
- Added enum `ResultType`
198+
- Added model `RetentionPolicy`
199+
- Added model `ScaleAction`
200+
- Added model `ScaleCapacity`
201+
- Added enum `ScaleDirection`
202+
- Added model `ScaleRule`
203+
- Added model `ScaleRuleMetricDimension`
204+
- Added enum `ScaleRuleMetricDimensionOperationType`
205+
- Added enum `ScaleType`
206+
- Added model `Schedule`
207+
- Added model `ScopedResource`
208+
- Added model `ScopedResourceListResult`
209+
- Added model `SenderAuthorization`
210+
- Added model `ServiceDiagnosticSettingsResource`
211+
- Added model `ServiceDiagnosticSettingsResourcePatch`
212+
- Added model `SingleBaseline`
213+
- Added model `SingleMetricBaseline`
214+
- Added model `SinkConfiguration`
215+
- Added enum `SinkConfigurationKind`
216+
- Added model `Source`
217+
- Added model `SubscriptionDiagnosticSettingsResource`
218+
- Added model `SubscriptionDiagnosticSettingsResourceCollection`
219+
- Added model `SubscriptionLogSettings`
220+
- Added model `SubscriptionProxyOnlyResource`
221+
- Added model `SystemData`
222+
- Added model `TagsResource`
223+
- Added model `TestNotificationDetailsResponse`
224+
- Added enum `TimeAggregationType`
225+
- Added model `TimeSeriesBaseline`
226+
- Added model `TimeSeriesElement`
227+
- Added model `TimeWindow`
228+
- Added model `TriggerCondition`
229+
- Added model `VMInsightsOnboardingStatus`
230+
- Added model `WebhookNotification`
231+
- Added model `WebtestLocationAvailabilityCriteria`
232+
- Added model `WorkspaceInfo`
233+
234+
### Breaking Changes
235+
236+
- This package now only targets the latest Api-Version available on Azure and removes APIs of other Api-Version. After this change, the package can have much smaller size. If your application requires a specific and non-latest Api-Version, it's recommended to pin this package to the previous released version; If your application always only use latest Api-Version, please ignore this change.
237+
- Deleted or renamed client operation group `MonitorManagementClient.tenant_action_groups`
238+
- Parameter `subscription_id` of client `MonitorManagementClient` is now required
239+
- Deleted or renamed model `TenantActionGroupList`
240+
- Deleted or renamed model `TenantActionGroupResource`
241+
- Deleted or renamed model `TenantActionGroupsOperations`
242+
3243
## 6.0.2 (2023-08-22)
4244

5245
### Bugs Fixed

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

Lines changed: 2 additions & 5 deletions
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 Monitor Client Library.
4-
This package has been tested with Python 3.7+.
4+
This package has been tested with Python 3.8+.
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.7+ is required to use this package.
15+
- Python 3.8+ is required to use this package.
1616
- [Azure subscription](https://azure.microsoft.com/free/)
1717

1818
### Install the package
@@ -59,6 +59,3 @@ Code samples for this package can be found at:
5959
If you encounter any bugs or have suggestions, please file an issue in the
6060
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
6161
section of the project.
62-
63-
64-
Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
2-
"commit": "817e7cea0b7e3194868825cbef6d4e62a7895951",
2+
"commit": "a86a97dd03e0b9e692b5583e369feec3a579ef55",
33
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.9.2",
4+
"autorest": "3.10.2",
55
"use": [
6-
"@autorest/python@6.4.8",
7-
"@autorest/modelerfour@4.24.3"
6+
"@autorest/python@6.27.4",
7+
"@autorest/modelerfour@4.27.0"
88
],
9-
"autorest_command": "autorest specification/monitor/resource-manager/readme.md --generate-sample=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.4.8 --use=@autorest/modelerfour@4.24.3 --version=3.9.2 --version-tolerant=False",
9+
"autorest_command": "autorest specification/monitor/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-python-sdk-for-cli-only --use=@autorest/python@6.27.4 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
1010
"readme": "specification/monitor/resource-manager/readme.md"
1111
}

sdk/monitor/azure-mgmt-monitor/assets.json

Lines changed: 0 additions & 6 deletions
This file was deleted.

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

Lines changed: 19 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -5,16 +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 ._monitor_management_client import MonitorManagementClient
10-
__all__ = ['MonitorManagementClient']
10+
from typing import TYPE_CHECKING
1111

12-
try:
13-
from ._patch import patch_sdk # type: ignore
14-
patch_sdk()
15-
except ImportError:
16-
pass
12+
if TYPE_CHECKING:
13+
from ._patch import * # pylint: disable=unused-wildcard-import
1714

15+
from ._monitor_management_client import MonitorManagementClient # type: ignore
1816
from ._version import VERSION
1917

2018
__version__ = VERSION
19+
20+
try:
21+
from ._patch import __all__ as _patch_all
22+
from ._patch import *
23+
except ImportError:
24+
_patch_all = []
25+
from ._patch import patch_sdk as _patch_sdk
26+
27+
__all__ = [
28+
"MonitorManagementClient",
29+
]
30+
__all__.extend([p for p in _patch_all if p not in __all__]) # pyright: ignore
31+
32+
_patch_sdk()

0 commit comments

Comments
 (0)