Skip to content

Commit

Permalink
CodeGen from PR 30727 in Azure/azure-rest-api-specs
Browse files Browse the repository at this point in the history
Merge d07bc85da33e8a040e9c895640d138855abfa003 into 6e9a98ba9692ce2090945bcf5d63bd11f77fc9ff
  • Loading branch information
SDKAuto committed Sep 27, 2024
1 parent 8fb9287 commit 03044e6
Show file tree
Hide file tree
Showing 486 changed files with 18,335 additions and 22,924 deletions.
7 changes: 2 additions & 5 deletions sdk/monitor/azure-mgmt-monitor/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 Monitor Client Library.
This package has been tested with Python 3.7+.
This package has been tested with Python 3.8+.
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.7+ is required to use this package.
- Python 3.8+ is required to use this package.
- [Azure subscription](https://azure.microsoft.com/free/)

### Install the package
Expand Down Expand Up @@ -59,6 +59,3 @@ Code samples for this package can be found at:
If you encounter any bugs or have suggestions, please file an issue in the
[Issues](https://github.com/Azure/azure-sdk-for-python/issues)
section of the project.


![Impressions](https://azure-sdk-impressions.azurewebsites.net/api/impressions/azure-sdk-for-python%2Fazure-mgmt-monitor%2FREADME.png)
47 changes: 41 additions & 6 deletions sdk/monitor/azure-mgmt-monitor/_meta.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,46 @@
{
"commit": "817e7cea0b7e3194868825cbef6d4e62a7895951",
"commit": "02e2f0354db81f1dad272ef6f21f3891275a1c31",
"repository_url": "https://github.com/Azure/azure-rest-api-specs",
"autorest": "3.9.2",
"autorest": "3.10.2",
"use": [
"@autorest/python@6.4.8",
"@autorest/modelerfour@4.24.3"
"@autorest/python@6.19.0",
"@autorest/modelerfour@4.27.0"
],
"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/[email protected] --use=@autorest/[email protected] --version=3.9.2 --version-tolerant=False",
"readme": "specification/monitor/resource-manager/readme.md"
"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/s/azure-sdk-for-python/sdk --use=@autorest/[email protected] --use=@autorest/[email protected] --version=3.10.2 --version-tolerant=False",
"readme": "specification/monitor/resource-manager/readme.md",
"package-2023-03-01-preview-only": "2023-02-21 18:21:55 -0800 8d74557bb1605c72732470b8b98988643d18f484 Microsoft.Insights/preview/2023-03-01-preview/tenantActionGroups_API.json",
"package-2023-01-only": "2023-02-12 19:35:50 -0800 47d1d82108a0db0395ed4eca106622becee7fbb4 Microsoft.Insights/stable/2023-01-01/actionGroups_API.json",
"package-2022-08-01-preview-only": "2024-09-22 18:23:55 +0300 abb0052f400b0215d4fbbf479e5bbc54714199e0 Microsoft.Insights/preview/2022-08-01-preview/scheduledQueryRule_API.json",
"package-2022-10-01-only": "2022-07-20 21:22:56 -0700 9ae616c4a5447e9cae43752b68f089bff2e46398 Microsoft.Insights/stable/2022-10-01/autoscale_API.json",
"package-2022-06-01-only": "2024-01-08 09:55:47 +0800 c6edf934e732b38f187221beef915d8ce5a9a891 Microsoft.Insights/stable/2022-06-01/dataCollectionRules_API.json",
"package-2022-04-01-only": "2023-01-04 17:27:52 -0800 76f3342a830bbf03cccc9c9a1ee76b8e9b4a2228 Microsoft.Insights/stable/2022-04-01/actionGroups_API.json",
"package-2022-02-01-preview-only": "2022-03-08 23:15:36 -0800 3f2e5188fd86b998b1f1d7705ea88df4ddbef348 Microsoft.Insights/preview/2021-09-01-preview/dataCollectionRules_API.json",
"package-2021-09-01-only": "2023-01-04 17:27:52 -0800 76f3342a830bbf03cccc9c9a1ee76b8e9b4a2228 Microsoft.Insights/stable/2021-09-01/actionGroups_API.json",
"package-2021-07-01-preview-only": "2021-09-02 04:42:01 +0300 332c1c6220f63130bfcc52314963f355dc08b0fd Microsoft.Insights/preview/2021-07-01-preview/privateLinkScopes_API.json",
"package-2021-06-03-preview-only": "2023-08-22 18:39:05 -0700 36cf4f3319098a65b580d65f9ed3425f57f857de Microsoft.Monitor/preview/2021-06-03-preview/monitoringAccounts_API.json",
"package-2021-05-only": "2021-09-22 22:19:21 -0700 9f05615fcc876d4d3d6ee9840bae756e250c62bd Microsoft.Insights/stable/2021-05-01/operations_API.json",
"package-2021-05-01-preview-only": "2022-07-20 21:22:56 -0700 9ae616c4a5447e9cae43752b68f089bff2e46398 Microsoft.Insights/preview/2021-05-01-preview/autoscale_API.json",
"package-2021-04-only": "2024-01-08 09:55:47 +0800 c6edf934e732b38f187221beef915d8ce5a9a891 Microsoft.Insights/stable/2021-04-01/dataCollectionRules_API.json",
"package-2020-10-only": "2024-03-08 02:54:41 +0200 d1ce4666f0b9f92dc155880db0e3499b4ab87266 Microsoft.Insights/stable/2020-10-01/activityLogAlerts_API.json",
"package-2020-05-preview-only": "2024-09-22 18:23:55 +0300 abb0052f400b0215d4fbbf479e5bbc54714199e0 Microsoft.Insights/preview/2020-05-01-preview/scheduledQueryRule_API.json",
"package-2020-01-01-preview-only": "2021-01-08 20:57:51 +0800 d266093bc8092ba63b3097004f8de1ac76ef1f5c Microsoft.Insights/preview/2020-01-01-preview/managementGroupDiagnosticSettings_API.json",
"package-2019-11-01-preview-only": "2021-03-09 02:28:31 +0100 cf1c6c677e287577df0a91ff95b80e43291db42e Microsoft.Insights/preview/2019-11-01-preview/dataCollectionRules_API.json",
"package-2019-10-17-preview-only": "2022-03-20 22:23:41 -0700 e94b0da0c7f80e2986af90c1dd7e9c8f4c336c61 Microsoft.Insights/preview/2019-10-17-preview/privateLinkScopes_API.json",
"package-2019-06-01-only": "2022-07-25 22:09:48 -0700 37966a6de2451407408adc2da5ab25631f0dd9b9 Microsoft.Insights/stable/2019-06-01/actionGroups_API.json",
"package-2019-03-01-only": "2022-07-25 22:09:48 -0700 37966a6de2451407408adc2da5ab25631f0dd9b9 Microsoft.Insights/stable/2019-03-01/actionGroups_API.json",
"package-2018-11-27-preview-only": "2022-03-20 22:23:41 -0700 e94b0da0c7f80e2986af90c1dd7e9c8f4c336c61 Microsoft.Insights/preview/2018-11-27-preview/vmInsightsOnboarding_API.json",
"package-2018-09-01-python-only": "2021-12-16 16:56:44 +0800 b0f48ad950e29525d407607c336b549bcfb15333 Microsoft.Insights/stable/2018-09-01/actionGroups_API.json",
"package-2018-06-01-preview-only": "2021-12-16 16:56:44 +0800 b0f48ad950e29525d407607c336b549bcfb15333 Microsoft.Insights/preview/2018-06-01-preview/guestDiagnosticSettings_API.json",
"package-2018-04-16-only": "2022-03-20 22:23:41 -0700 e94b0da0c7f80e2986af90c1dd7e9c8f4c336c61 Microsoft.Insights/stable/2018-04-16/scheduledQueryRule_API.json",
"package-2018-03-01-only": "2022-03-20 22:23:41 -0700 e94b0da0c7f80e2986af90c1dd7e9c8f4c336c61 Microsoft.Insights/stable/2018-03-01/metricAlert_API.json",
"package-2018-01-01-only": "2023-12-07 16:41:55 -0800 0373f0edc4414fd402603fac51d0df93f1f70507 Microsoft.Insights/stable/2018-01-01/metrics_API.json",
"package-2017-12-01-preview-only": "2021-06-08 12:17:51 -0700 e134a5f2e59827fc73b21c12e397dead18548877 Microsoft.Insights/preview/2017-12-01-preview/metricNamespaces_API.json",
"package-2017-05-01-preview-only": "2022-03-20 22:23:41 -0700 e94b0da0c7f80e2986af90c1dd7e9c8f4c336c61 Microsoft.Insights/preview/2017-05-01-preview/diagnosticsSettings_API.json",
"package-2017-04-01-only": "2021-12-16 16:56:44 +0800 b0f48ad950e29525d407607c336b549bcfb15333 Microsoft.Insights/stable/2017-04-01/activityLogAlerts_API.json",
"package-2017-03-01-preview-only": "2021-12-16 16:56:44 +0800 b0f48ad950e29525d407607c336b549bcfb15333 Microsoft.Insights/preview/2017-03-01-preview/activityLogAlerts_API.json",
"package-2016-09-01-only": "2021-05-05 20:16:20 -0700 837c399e0949255686dcbe854ca6475e600ed671 Microsoft.Insights/stable/2016-09-01/metrics_API.json",
"package-2016-03-01-only": "2022-03-20 22:23:41 -0700 e94b0da0c7f80e2986af90c1dd7e9c8f4c336c61 Microsoft.Insights/stable/2016-03-01/alertRules_API.json",
"package-2015-07-01-python-only": "2021-08-23 18:38:37 -0700 0efd11ad640cce266563ed3e533557d45ab74bc8 Microsoft.Insights/stable/2015-07-01/operations_API.json",
"package-2015-04-01-python-only": "2022-07-20 21:22:56 -0700 9ae616c4a5447e9cae43752b68f089bff2e46398 Microsoft.Insights/stable/2015-04-01/autoscale_API.json",
"package-2014-04-01-only": "2022-07-20 21:22:56 -0700 9ae616c4a5447e9cae43752b68f089bff2e46398 Microsoft.Insights/stable/2014-04-01/autoscale_API.json"
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
# --------------------------------------------------------------------------
from typing import Any, TYPE_CHECKING

from azure.core.configuration import Configuration
from azure.core.pipeline import policies
from azure.mgmt.core.policies import ARMChallengeAuthenticationPolicy, ARMHttpLoggingPolicy

Expand All @@ -20,7 +19,7 @@
# pylint: disable=unused-import,ungrouped-imports
from azure.core.credentials import TokenCredential

class MonitorManagementClientConfiguration(Configuration):
class MonitorManagementClientConfiguration:
"""Configuration for MonitorManagementClient.
Note that all parameters used to create this instance are saved as instance
Expand All @@ -42,12 +41,12 @@ def __init__(
raise ValueError("Parameter 'credential' must not be None.")
if subscription_id is None:
raise ValueError("Parameter 'subscription_id' must not be None.")
super(MonitorManagementClientConfiguration, self).__init__(**kwargs)

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-monitor/{}'.format(VERSION))
self.polling_interval = kwargs.get("polling_interval", 30)
self._configure(**kwargs)

def _configure(
Expand Down
Loading

0 comments on commit 03044e6

Please sign in to comment.