Skip to content

Commit 229f0e9

Browse files
AutorestCIrajivnandivada
authored andcommitted
[AutoPR] monitor/resource-manager (Azure#5914)
* [AutoPR monitor/resource-manager] Nithin/action group webhooks with azure active directory integration (Azure#5684) * Generated from c607d81c74b5560e3cb3b4ce9556612d55dcb30d 1)fixed the api version 2)updated with emoty array when no recievers are in the response * Packaging update of azure-mgmt-monitor * Generated from 1dca2b0f09bde16c8a8e1ed7a86c84a2837c0cdf fixing the read me with references to 2019-06-01 version * Generated from d71a2ccd53f1e0e1d7bdfd8971390fbd650c7f6d (Azure#6028) Ouuups, fix broken Readme * Remove deprecated files * v2019_03_01_hybrid profile update with monitor * Version 0.7.0 * Clean deprecated files * ChangeLog
1 parent c4fb5cc commit 229f0e9

File tree

435 files changed

+29618
-12565
lines changed

Some content is hidden

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

435 files changed

+29618
-12565
lines changed

sdk/core/azure-common/HISTORY.rst

+5
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@
33
Release History
44
===============
55

6+
1.1.23 (2019-06-24)
7+
+++++++++++++++++++
8+
9+
- Add Monitor into Profile v2019_03_01_hybrid (requires azure-mgmt-monitor >= 0.7.0)
10+
611
1.1.22 (2019-06-06)
712
+++++++++++++++++++
813

sdk/core/azure-common/azure/profiles/__init__.py

+8
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,14 @@ class KnownProfiles(Enum):
166166
"azure.mgmt.keyvault.KeyVaultManagementClient":{
167167
None: "2016-10-01"
168168
},
169+
"azure.mgmt.monitor.MonitorManagementClient": {
170+
'metric_definitions': '2018-01-01',
171+
'metrics': '2018-01-01',
172+
'diagnostic_settings': '2017-05-01-preview',
173+
'diagnostic_settings_category': '2017-05-01-preview',
174+
'event_categories': '2015-04-01',
175+
'operations': '2015-04-01',
176+
},
169177
"azure.mgmt.network.NetworkManagementClient": {
170178
None: "2017-10-01"
171179
},

sdk/monitor/azure-mgmt-monitor/HISTORY.rst

+40
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,46 @@
33
Release History
44
===============
55

6+
0.7.0 (2019-06-24)
7+
++++++++++++++++++
8+
9+
This package now support profiles as parameter for sovereign cloud support
10+
11+
**Features**
12+
13+
- Model MultiMetricCriteria has a new parameter metric_namespace
14+
- Model MultiMetricCriteria has a new parameter dimensions
15+
- Added operation group ServiceDiagnosticSettingsOperations
16+
- Added operation group GuestDiagnosticsSettingsOperations
17+
- Added operation group BaselinesOperations
18+
- Added operation group GuestDiagnosticsSettingsAssociationOperations
19+
- Added operation group BaselineOperations
20+
21+
**Breaking changes**
22+
23+
- Operation MetricBaselineOperations.get has a new signature
24+
- Model MultiMetricCriteria has a new required parameter name
25+
- Model MultiMetricCriteria has a new required parameter time_aggregation
26+
- Model MultiMetricCriteria has a new required parameter metric_name
27+
- Model ArmRoleReceiver has a new required parameter use_common_alert_schema
28+
- Model LogicAppReceiver has a new required parameter use_common_alert_schema
29+
- Model AzureFunctionReceiver has a new required parameter use_common_alert_schema
30+
- Model EmailReceiver has a new required parameter use_common_alert_schema
31+
- Model AutomationRunbookReceiver has a new required parameter use_common_alert_schema
32+
- Model WebhookReceiver has a new signature
33+
34+
**General Breaking changes**
35+
36+
This version uses a next-generation code generator that *might* introduce breaking changes for some imports.
37+
In summary, some modules were incorrectly visible/importable and have been renamed. This fixed several issues caused by usage of classes that were not supposed to be used in the first place.
38+
39+
- MonitorManagementClient cannot be imported from `azure.mgmt.monitor.monitor_management_client` anymore (import from `azure.mgmt.monitor` works like before)
40+
- MonitorManagementClientConfiguration import has been moved from `azure.mgmt.monitor.monitor_management_client` to `azure.mgmt.monitor`
41+
- A model `MyClass` from a "models" sub-module cannot be imported anymore using `azure.mgmt.monitor.models.my_class` (import from `azure.mgmt.monitor.models` works like before)
42+
- An operation class `MyClassOperations` from an `operations` sub-module cannot be imported anymore using `azure.mgmt.monitor.operations.my_class_operations` (import from `azure.mgmt.monitor.operations` works like before)
43+
44+
Last but not least, HTTP connection pooling is now enabled by default. You should always use a client as a context manager, or call close(), or use no more than one client per process.
45+
646
0.6.0 (2018-03-06)
747
++++++++++++++++++
848

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

+4-3
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,11 @@
99
# regenerated.
1010
# --------------------------------------------------------------------------
1111

12-
from .monitor_management_client import MonitorManagementClient
13-
from .version import VERSION
12+
from ._configuration import MonitorManagementClientConfiguration
13+
from ._monitor_management_client import MonitorManagementClient
14+
__all__ = ['MonitorManagementClient', 'MonitorManagementClientConfiguration']
1415

15-
__all__ = ['MonitorManagementClient']
16+
from .version import VERSION
1617

1718
__version__ = VERSION
1819

Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
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
5+
# license information.
6+
#
7+
# Code generated by Microsoft (R) AutoRest Code Generator.
8+
# Changes may cause incorrect behavior and will be lost if the code is
9+
# regenerated.
10+
# --------------------------------------------------------------------------
11+
from msrestazure import AzureConfiguration
12+
13+
from .version import VERSION
14+
15+
16+
class MonitorManagementClientConfiguration(AzureConfiguration):
17+
"""Configuration for MonitorManagementClient
18+
Note that all parameters used to create this instance are saved as instance
19+
attributes.
20+
21+
:param credentials: Credentials needed for the client to connect to Azure.
22+
:type credentials: :mod:`A msrestazure Credentials
23+
object<msrestazure.azure_active_directory>`
24+
:param subscription_id: The Azure subscription Id.
25+
:type subscription_id: str
26+
:param str base_url: Service URL
27+
"""
28+
29+
def __init__(
30+
self, credentials, subscription_id, base_url=None):
31+
32+
if credentials is None:
33+
raise ValueError("Parameter 'credentials' must not be None.")
34+
if subscription_id is None:
35+
raise ValueError("Parameter 'subscription_id' must not be None.")
36+
if not base_url:
37+
base_url = 'https://management.azure.com'
38+
39+
super(MonitorManagementClientConfiguration, self).__init__(base_url)
40+
41+
# Starting Autorest.Python 4.0.64, make connection pool activated by default
42+
self.keep_alive = True
43+
44+
self.add_user_agent('azure-mgmt-monitor/{}'.format(VERSION))
45+
self.add_user_agent('Azure-SDK-For-Python')
46+
47+
self.credentials = credentials
48+
self.subscription_id = subscription_id

0 commit comments

Comments
 (0)