Skip to content

Commit 7328607

Browse files
azure-sdkChenxiJiang333msyycCopilot
authored
[AutoPR azure-mgmt-monitor]-generated-from-SDK Generation - Python-6416034 (#47315)
* Configurations: 'specification/monitor/resource-manager/Microsoft.Insights/Insights/tspconfig.yaml', SDK Release Type: beta, and CommitSHA: 'ecd420c9534d0dab69be38027c1723031504b081' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6388507 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * update * Update CHANGELOG.md * Update CHANGELOG.md * Delete sdk/monitor/azure-mgmt-monitor/tests/disable_test_cli_mgmt_monitor_async.py * Delete sdk/monitor/azure-mgmt-monitor/tests/disable_test_cli_mgmt_monitor.py * Update CHANGELOG.md * Update CHANGELOG.md * Configurations: 'specification/monitor/resource-manager/Microsoft.Insights/Insights/tspconfig.yaml', SDK Release Type: beta, and CommitSHA: '0f2f792a890e24e4f01440f3718e87f866c6f970' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6411143 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Optimize changelog for azure-mgmt-monitor Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Configurations: 'specification/monitor/resource-manager/Microsoft.Insights/Insights/tspconfig.yaml', SDK Release Type: beta, and CommitSHA: '150c2cf9f07b50b03eef9668e422fc16546bce96' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6411633 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Optimize changelog for azure-mgmt-monitor Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Configurations: 'specification/monitor/resource-manager/Microsoft.Insights/Insights/tspconfig.yaml', SDK Release Type: beta, and CommitSHA: '84ee97f0cd82f3432f0ff0185e4deeb58624aac6' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6416034 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Optimize changelog for azure-mgmt-monitor Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> * Update CHANGELOG.md for azure-mgmt-monitor --------- Co-authored-by: ChenxiJiang333 <119990644+ChenxiJiang333@users.noreply.github.com> Co-authored-by: Chenxi Jiang (WICRESOFT NORTH AMERICA LTD) <v-chenjiang@microsoft.com> Co-authored-by: Yuchao Yan <yuchaoyan@microsoft.com> Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent c20afb5 commit 7328607

332 files changed

Lines changed: 46639 additions & 50764 deletions

File tree

Some content is hidden

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

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

Lines changed: 175 additions & 0 deletions
Large diffs are not rendered by default.

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

Lines changed: 3 additions & 3 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.9+.
4+
This package has been tested with Python 3.10+.
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.9+ is required to use this package.
15+
- Python 3.10+ 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 configuration of the following environment variables.
27+
By default, [Microsoft Entra](https://learn.microsoft.com/entra/fundamentals/what-is-entra) 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.
Lines changed: 19 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,22 @@
11
{
2-
"commit": "1653285537c3f05521c480112d2a36645878c274",
2+
"apiVersions": {
3+
"ActionGroupsApi": "2024-10-01-preview",
4+
"ActivityLogAlertsApi": "2023-01-01-preview",
5+
"ActivityLogsApi": "2015-04-01",
6+
"AlertRulesIncidentsApi": "2016-03-01",
7+
"AutoScaleApi": "2022-10-01",
8+
"DataCollectionApi": "2024-03-11",
9+
"LogProfilesApi": "2016-03-01",
10+
"MetricAlertApi": "2024-03-01-preview",
11+
"MetricBaselinesApi": "2019-03-01",
12+
"MetricsApi": "2024-02-01",
13+
"NetworkSecurityPerimeterApi": "2021-10-01",
14+
"PrivateLinkScopesApi": "2023-06-01-preview",
15+
"ScheduledQueryRuleApi": "2025-01-01-preview",
16+
"ServiceDiagnosticsSettingsApi": "2016-09-01"
17+
},
18+
"commit": "84ee97f0cd82f3432f0ff0185e4deeb58624aac6",
319
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
4-
"autorest": "3.10.2",
5-
"use": [
6-
"@autorest/python@6.42.0",
7-
"@autorest/modelerfour@4.27.0"
8-
],
9-
"autorest_command": "autorest specification/monitor/resource-manager/readme.md --generate-sample=True --generate-test=True --include-x-ms-examples-original-file=True --package-mode=azure-mgmt --python --python-sdks-folder=/mnt/vss/_work/1/azure-sdk-for-python/sdk --tag=package-python-sdk-for-cli-only --use=@autorest/python@6.42.0 --use=@autorest/modelerfour@4.27.0 --version=3.10.2 --version-tolerant=False",
10-
"readme": "specification/monitor/resource-manager/readme.md"
20+
"typespec_src": "specification/monitor/resource-manager/Microsoft.Insights/Insights",
21+
"emitterVersion": "0.63.0"
1122
}

sdk/monitor/azure-mgmt-monitor/apiview-properties.json

Lines changed: 533 additions & 605 deletions
Large diffs are not rendered by default.

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
44
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# Code generated by Microsoft (R) AutoRest Code Generator.
5+
# Code generated by Microsoft (R) Python Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88
# pylint: disable=wrong-import-position
@@ -12,7 +12,7 @@
1212
if TYPE_CHECKING:
1313
from ._patch import * # pylint: disable=unused-wildcard-import
1414

15-
from ._monitor_management_client import MonitorManagementClient # type: ignore
15+
from ._client import MonitorManagementClient # type: ignore
1616
from ._version import VERSION
1717

1818
__version__ = VERSION

sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/_monitor_management_client.py renamed to sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/_client.py

Lines changed: 93 additions & 134 deletions
Large diffs are not rendered by default.

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

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# --------------------------------------------------------------------------
33
# Copyright (c) Microsoft Corporation. All rights reserved.
44
# Licensed under the MIT License. See License.txt in the project root for license information.
5-
# Code generated by Microsoft (R) AutoRest Code Generator.
5+
# Code generated by Microsoft (R) Python Code Generator.
66
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
77
# --------------------------------------------------------------------------
88

@@ -24,10 +24,12 @@ class MonitorManagementClientConfiguration: # pylint: disable=too-many-instance
2424
Note that all parameters used to create this instance are saved as instance
2525
attributes.
2626
27-
:param credential: Credential needed for the client to connect to Azure. Required.
27+
:param credential: Credential used to authenticate requests to the service. Required.
2828
:type credential: ~azure.core.credentials.TokenCredential
29-
:param subscription_id: The ID of the target subscription. Required.
29+
:param subscription_id: The ID of the target subscription. The value must be an UUID. Required.
3030
:type subscription_id: str
31+
:param base_url: Service host. Default value is "https://management.azure.com".
32+
:type base_url: str
3133
:param cloud_setting: The cloud setting for which to get the ARM endpoint. Default value is
3234
None.
3335
:type cloud_setting: ~azure.core.AzureClouds
@@ -37,6 +39,7 @@ def __init__(
3739
self,
3840
credential: "TokenCredential",
3941
subscription_id: str,
42+
base_url: str = "https://management.azure.com",
4043
cloud_setting: Optional["AzureClouds"] = None,
4144
**kwargs: Any
4245
) -> None:
@@ -47,6 +50,7 @@ def __init__(
4750

4851
self.credential = credential
4952
self.subscription_id = subscription_id
53+
self.base_url = base_url
5054
self.cloud_setting = cloud_setting
5155
self.credential_scopes = kwargs.pop("credential_scopes", ["https://management.azure.com/.default"])
5256
kwargs.setdefault("sdk_moniker", "mgmt-monitor/{}".format(VERSION))

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

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
1-
# ------------------------------------
2-
# Copyright (c) Microsoft Corporation.
3-
# Licensed under the MIT License.
4-
# ------------------------------------
1+
# coding=utf-8
2+
# --------------------------------------------------------------------------
3+
# Copyright (c) Microsoft Corporation. All rights reserved.
4+
# Licensed under the MIT License. See License.txt in the project root for license information.
5+
# --------------------------------------------------------------------------
56
"""Customize generated code here.
67
78
Follow our quickstart for examples: https://aka.ms/azsdk/python/dpcodegen/python/customize
89
"""
9-
from typing import List
1010

11-
__all__: List[str] = [] # Add all objects you want publicly available to users at this package level
11+
12+
__all__: list[str] = [] # Add all objects you want publicly available to users at this package level
1213

1314

1415
def patch_sdk():
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# --------------------------------------------------------------------------
22
# Copyright (c) Microsoft Corporation. All rights reserved.
33
# Licensed under the MIT License. See License.txt in the project root for license information.
4-
# Code generated by Microsoft (R) AutoRest Code Generator.
4+
# Code generated by Microsoft (R) Python Code Generator.
55
# Changes may cause incorrect behavior and will be lost if the code is regenerated.
66
# --------------------------------------------------------------------------

0 commit comments

Comments
 (0)