Skip to content

Commit 0309e07

Browse files
authored
Generated from d71a2ccd53f1e0e1d7bdfd8971390fbd650c7f6d (#6028)
Ouuups, fix broken Readme
1 parent e8a50b2 commit 0309e07

File tree

203 files changed

+34308
-3
lines changed

Some content is hidden

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

203 files changed

+34308
-3
lines changed

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

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

+526
Large diffs are not rendered by default.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
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+
from .v2015_04_01.models import *
8+
from .v2016_03_01.models import *
9+
from .v2016_09_01.models import *
10+
from .v2017_04_01.models import *
11+
from .v2017_05_01_preview.models import *
12+
from .v2017_12_01_preview.models import *
13+
from .v2018_01_01.models import *
14+
from .v2018_03_01.models import *
15+
from .v2018_04_16.models import *
16+
from .v2018_06_01_preview.models import *
17+
from .v2018_09_01.models import *
18+
from .v2018_11_27_preview.models import *
19+
from .v2019_03_01.models import *
20+
from .v2019_06_01.models import *
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
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+
12+
from ._configuration import MonitorManagementClientConfiguration
13+
from ._monitor_management_client import MonitorManagementClient
14+
__all__ = ['MonitorManagementClient', 'MonitorManagementClientConfiguration']
15+
16+
from .version import VERSION
17+
18+
__version__ = VERSION
19+
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
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,69 @@
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+
12+
from msrest.service_client import SDKClient
13+
from msrest import Serializer, Deserializer
14+
15+
from ._configuration import MonitorManagementClientConfiguration
16+
from .operations import ActivityLogsOperations
17+
from .operations import AutoscaleSettingsOperations
18+
from .operations import EventCategoriesOperations
19+
from .operations import Operations
20+
from .operations import TenantActivityLogsOperations
21+
from . import models
22+
23+
24+
class MonitorManagementClient(SDKClient):
25+
"""Monitor Management Client
26+
27+
:ivar config: Configuration for client.
28+
:vartype config: MonitorManagementClientConfiguration
29+
30+
:ivar activity_logs: ActivityLogs operations
31+
:vartype activity_logs: azure.mgmt.monitor.v2015_04_01.operations.ActivityLogsOperations
32+
:ivar autoscale_settings: AutoscaleSettings operations
33+
:vartype autoscale_settings: azure.mgmt.monitor.v2015_04_01.operations.AutoscaleSettingsOperations
34+
:ivar event_categories: EventCategories operations
35+
:vartype event_categories: azure.mgmt.monitor.v2015_04_01.operations.EventCategoriesOperations
36+
:ivar operations: Operations operations
37+
:vartype operations: azure.mgmt.monitor.v2015_04_01.operations.Operations
38+
:ivar tenant_activity_logs: TenantActivityLogs operations
39+
:vartype tenant_activity_logs: azure.mgmt.monitor.v2015_04_01.operations.TenantActivityLogsOperations
40+
41+
:param credentials: Credentials needed for the client to connect to Azure.
42+
:type credentials: :mod:`A msrestazure Credentials
43+
object<msrestazure.azure_active_directory>`
44+
:param subscription_id: The Azure subscription Id.
45+
:type subscription_id: str
46+
:param str base_url: Service URL
47+
"""
48+
49+
def __init__(
50+
self, credentials, subscription_id, base_url=None):
51+
52+
self.config = MonitorManagementClientConfiguration(credentials, subscription_id, base_url)
53+
super(MonitorManagementClient, self).__init__(self.config.credentials, self.config)
54+
55+
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)}
56+
self.api_version = '2015-04-01'
57+
self._serialize = Serializer(client_models)
58+
self._deserialize = Deserializer(client_models)
59+
60+
self.activity_logs = ActivityLogsOperations(
61+
self._client, self.config, self._serialize, self._deserialize)
62+
self.autoscale_settings = AutoscaleSettingsOperations(
63+
self._client, self.config, self._serialize, self._deserialize)
64+
self.event_categories = EventCategoriesOperations(
65+
self._client, self.config, self._serialize, self._deserialize)
66+
self.operations = Operations(
67+
self._client, self.config, self._serialize, self._deserialize)
68+
self.tenant_activity_logs = TenantActivityLogsOperations(
69+
self._client, self.config, self._serialize, self._deserialize)
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
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+
12+
try:
13+
from ._models_py3 import AutoscaleNotification
14+
from ._models_py3 import AutoscaleProfile
15+
from ._models_py3 import AutoscaleSettingResource
16+
from ._models_py3 import AutoscaleSettingResourcePatch
17+
from ._models_py3 import EmailNotification
18+
from ._models_py3 import ErrorResponse, ErrorResponseException
19+
from ._models_py3 import EventData
20+
from ._models_py3 import HttpRequestInfo
21+
from ._models_py3 import LocalizableString
22+
from ._models_py3 import MetricTrigger
23+
from ._models_py3 import Operation
24+
from ._models_py3 import OperationDisplay
25+
from ._models_py3 import OperationListResult
26+
from ._models_py3 import Recurrence
27+
from ._models_py3 import RecurrentSchedule
28+
from ._models_py3 import Resource
29+
from ._models_py3 import ScaleAction
30+
from ._models_py3 import ScaleCapacity
31+
from ._models_py3 import ScaleRule
32+
from ._models_py3 import SenderAuthorization
33+
from ._models_py3 import TimeWindow
34+
from ._models_py3 import WebhookNotification
35+
except (SyntaxError, ImportError):
36+
from ._models import AutoscaleNotification
37+
from ._models import AutoscaleProfile
38+
from ._models import AutoscaleSettingResource
39+
from ._models import AutoscaleSettingResourcePatch
40+
from ._models import EmailNotification
41+
from ._models import ErrorResponse, ErrorResponseException
42+
from ._models import EventData
43+
from ._models import HttpRequestInfo
44+
from ._models import LocalizableString
45+
from ._models import MetricTrigger
46+
from ._models import Operation
47+
from ._models import OperationDisplay
48+
from ._models import OperationListResult
49+
from ._models import Recurrence
50+
from ._models import RecurrentSchedule
51+
from ._models import Resource
52+
from ._models import ScaleAction
53+
from ._models import ScaleCapacity
54+
from ._models import ScaleRule
55+
from ._models import SenderAuthorization
56+
from ._models import TimeWindow
57+
from ._models import WebhookNotification
58+
from ._paged_models import AutoscaleSettingResourcePaged
59+
from ._paged_models import EventDataPaged
60+
from ._paged_models import LocalizableStringPaged
61+
from ._monitor_management_client_enums import (
62+
EventLevel,
63+
MetricStatisticType,
64+
TimeAggregationType,
65+
ComparisonOperationType,
66+
ScaleDirection,
67+
ScaleType,
68+
RecurrenceFrequency,
69+
)
70+
71+
__all__ = [
72+
'AutoscaleNotification',
73+
'AutoscaleProfile',
74+
'AutoscaleSettingResource',
75+
'AutoscaleSettingResourcePatch',
76+
'EmailNotification',
77+
'ErrorResponse', 'ErrorResponseException',
78+
'EventData',
79+
'HttpRequestInfo',
80+
'LocalizableString',
81+
'MetricTrigger',
82+
'Operation',
83+
'OperationDisplay',
84+
'OperationListResult',
85+
'Recurrence',
86+
'RecurrentSchedule',
87+
'Resource',
88+
'ScaleAction',
89+
'ScaleCapacity',
90+
'ScaleRule',
91+
'SenderAuthorization',
92+
'TimeWindow',
93+
'WebhookNotification',
94+
'EventDataPaged',
95+
'AutoscaleSettingResourcePaged',
96+
'LocalizableStringPaged',
97+
'EventLevel',
98+
'MetricStatisticType',
99+
'TimeAggregationType',
100+
'ComparisonOperationType',
101+
'ScaleDirection',
102+
'ScaleType',
103+
'RecurrenceFrequency',
104+
]

0 commit comments

Comments
 (0)