forked from Azure/azure-sdk-for-python
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generated from cc28f75ab2ba0ba66287204b34457d1f060c1461
- Loading branch information
SDK Automation
committed
Oct 29, 2020
1 parent
b57bc01
commit 459156a
Showing
14 changed files
with
1,963 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
19 changes: 19 additions & 0 deletions
19
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2020_05_01_preview/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from ._configuration import MonitorClientConfiguration | ||
from ._monitor_client import MonitorClient | ||
__all__ = ['MonitorClient', 'MonitorClientConfiguration'] | ||
|
||
from .version import VERSION | ||
|
||
__version__ = VERSION | ||
|
48 changes: 48 additions & 0 deletions
48
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2020_05_01_preview/_configuration.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
from msrestazure import AzureConfiguration | ||
|
||
from .version import VERSION | ||
|
||
|
||
class MonitorClientConfiguration(AzureConfiguration): | ||
"""Configuration for MonitorClient | ||
Note that all parameters used to create this instance are saved as instance | ||
attributes. | ||
:param credentials: Credentials needed for the client to connect to Azure. | ||
:type credentials: :mod:`A msrestazure Credentials | ||
object<msrestazure.azure_active_directory>` | ||
:param subscription_id: The Azure subscription Id. | ||
:type subscription_id: str | ||
:param str base_url: Service URL | ||
""" | ||
|
||
def __init__( | ||
self, credentials, subscription_id, base_url=None): | ||
|
||
if credentials is None: | ||
raise ValueError("Parameter 'credentials' must not be None.") | ||
if subscription_id is None: | ||
raise ValueError("Parameter 'subscription_id' must not be None.") | ||
if not base_url: | ||
base_url = 'https://management.azure.com' | ||
|
||
super(MonitorClientConfiguration, self).__init__(base_url) | ||
|
||
# Starting Autorest.Python 4.0.64, make connection pool activated by default | ||
self.keep_alive = True | ||
|
||
self.add_user_agent('azure-mgmt-monitor/{}'.format(VERSION)) | ||
self.add_user_agent('Azure-SDK-For-Python') | ||
|
||
self.credentials = credentials | ||
self.subscription_id = subscription_id |
49 changes: 49 additions & 0 deletions
49
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2020_05_01_preview/_monitor_client.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
from msrest.service_client import SDKClient | ||
from msrest import Serializer, Deserializer | ||
|
||
from ._configuration import MonitorClientConfiguration | ||
from .operations import ScheduledQueryRulesOperations | ||
from . import models | ||
|
||
|
||
class MonitorClient(SDKClient): | ||
"""Monitor Management Client | ||
:ivar config: Configuration for client. | ||
:vartype config: MonitorClientConfiguration | ||
:ivar scheduled_query_rules: ScheduledQueryRules operations | ||
:vartype scheduled_query_rules: azure.mgmt.monitor.v2020_05_01_preview.operations.ScheduledQueryRulesOperations | ||
:param credentials: Credentials needed for the client to connect to Azure. | ||
:type credentials: :mod:`A msrestazure Credentials | ||
object<msrestazure.azure_active_directory>` | ||
:param subscription_id: The Azure subscription Id. | ||
:type subscription_id: str | ||
:param str base_url: Service URL | ||
""" | ||
|
||
def __init__( | ||
self, credentials, subscription_id, base_url=None): | ||
|
||
self.config = MonitorClientConfiguration(credentials, subscription_id, base_url) | ||
super(MonitorClient, self).__init__(self.config.credentials, self.config) | ||
|
||
client_models = {k: v for k, v in models.__dict__.items() if isinstance(v, type)} | ||
self.api_version = '2020-05-01-preview' | ||
self._serialize = Serializer(client_models) | ||
self._deserialize = Deserializer(client_models) | ||
|
||
self.scheduled_query_rules = ScheduledQueryRulesOperations( | ||
self._client, self.config, self._serialize, self._deserialize) |
68 changes: 68 additions & 0 deletions
68
sdk/monitor/azure-mgmt-monitor/azure/mgmt/monitor/v2020_05_01_preview/models/__init__.py
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
# coding=utf-8 | ||
# -------------------------------------------------------------------------- | ||
# Copyright (c) Microsoft Corporation. All rights reserved. | ||
# Licensed under the MIT License. See License.txt in the project root for | ||
# license information. | ||
# | ||
# Code generated by Microsoft (R) AutoRest Code Generator. | ||
# Changes may cause incorrect behavior and will be lost if the code is | ||
# regenerated. | ||
# -------------------------------------------------------------------------- | ||
|
||
try: | ||
from ._models_py3 import Action | ||
from ._models_py3 import AzureEntityResource | ||
from ._models_py3 import Condition | ||
from ._models_py3 import ConditionFailingPeriods | ||
from ._models_py3 import Dimension | ||
from ._models_py3 import ErrorAdditionalInfo | ||
from ._models_py3 import ErrorContract, ErrorContractException | ||
from ._models_py3 import ErrorResponse | ||
from ._models_py3 import ProxyResource | ||
from ._models_py3 import Resource | ||
from ._models_py3 import ScheduledQueryRuleCriteria | ||
from ._models_py3 import ScheduledQueryRuleResource | ||
from ._models_py3 import ScheduledQueryRuleResourcePatch | ||
from ._models_py3 import TrackedResource | ||
except (SyntaxError, ImportError): | ||
from ._models import Action | ||
from ._models import AzureEntityResource | ||
from ._models import Condition | ||
from ._models import ConditionFailingPeriods | ||
from ._models import Dimension | ||
from ._models import ErrorAdditionalInfo | ||
from ._models import ErrorContract, ErrorContractException | ||
from ._models import ErrorResponse | ||
from ._models import ProxyResource | ||
from ._models import Resource | ||
from ._models import ScheduledQueryRuleCriteria | ||
from ._models import ScheduledQueryRuleResource | ||
from ._models import ScheduledQueryRuleResourcePatch | ||
from ._models import TrackedResource | ||
from ._paged_models import ScheduledQueryRuleResourcePaged | ||
from ._monitor_client_enums import ( | ||
TimeAggregation, | ||
DimensionOperator, | ||
ConditionOperator, | ||
) | ||
|
||
__all__ = [ | ||
'Action', | ||
'AzureEntityResource', | ||
'Condition', | ||
'ConditionFailingPeriods', | ||
'Dimension', | ||
'ErrorAdditionalInfo', | ||
'ErrorContract', 'ErrorContractException', | ||
'ErrorResponse', | ||
'ProxyResource', | ||
'Resource', | ||
'ScheduledQueryRuleCriteria', | ||
'ScheduledQueryRuleResource', | ||
'ScheduledQueryRuleResourcePatch', | ||
'TrackedResource', | ||
'ScheduledQueryRuleResourcePaged', | ||
'TimeAggregation', | ||
'DimensionOperator', | ||
'ConditionOperator', | ||
] |
Oops, something went wrong.