Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[AutoPr] monitor/resource-manager #1931

Merged
merged 12 commits into from
Mar 19, 2018
Merged
Show file tree
Hide file tree
Changes from 10 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
226 changes: 161 additions & 65 deletions azure-mgmt-monitor/azure/mgmt/monitor/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,71 +9,156 @@
# regenerated.
# --------------------------------------------------------------------------

from .resource import Resource
from .scale_capacity import ScaleCapacity
from .metric_trigger import MetricTrigger
from .scale_action import ScaleAction
from .scale_rule import ScaleRule
from .time_window import TimeWindow
from .recurrent_schedule import RecurrentSchedule
from .recurrence import Recurrence
from .autoscale_profile import AutoscaleProfile
from .email_notification import EmailNotification
from .webhook_notification import WebhookNotification
from .autoscale_notification import AutoscaleNotification
from .autoscale_setting_resource import AutoscaleSettingResource
from .autoscale_setting_resource_patch import AutoscaleSettingResourcePatch
from .error_response import ErrorResponse, ErrorResponseException
from .operation_display import OperationDisplay
from .operation import Operation
from .operation_list_result import OperationListResult
from .incident import Incident
from .rule_data_source import RuleDataSource
from .rule_condition import RuleCondition
from .rule_metric_data_source import RuleMetricDataSource
from .rule_management_event_claims_data_source import RuleManagementEventClaimsDataSource
from .rule_management_event_data_source import RuleManagementEventDataSource
from .threshold_rule_condition import ThresholdRuleCondition
from .location_threshold_rule_condition import LocationThresholdRuleCondition
from .management_event_aggregation_condition import ManagementEventAggregationCondition
from .management_event_rule_condition import ManagementEventRuleCondition
from .rule_action import RuleAction
from .rule_email_action import RuleEmailAction
from .rule_webhook_action import RuleWebhookAction
from .alert_rule_resource import AlertRuleResource
from .alert_rule_resource_patch import AlertRuleResourcePatch
from .retention_policy import RetentionPolicy
from .log_profile_resource import LogProfileResource
from .log_profile_resource_patch import LogProfileResourcePatch
from .proxy_only_resource import ProxyOnlyResource
from .metric_settings import MetricSettings
from .log_settings import LogSettings
from .diagnostic_settings_resource import DiagnosticSettingsResource
from .diagnostic_settings_resource_collection import DiagnosticSettingsResourceCollection
from .diagnostic_settings_category_resource import DiagnosticSettingsCategoryResource
from .diagnostic_settings_category_resource_collection import DiagnosticSettingsCategoryResourceCollection
from .email_receiver import EmailReceiver
from .sms_receiver import SmsReceiver
from .webhook_receiver import WebhookReceiver
from .action_group_resource import ActionGroupResource
from .enable_request import EnableRequest
from .activity_log_alert_leaf_condition import ActivityLogAlertLeafCondition
from .activity_log_alert_all_of_condition import ActivityLogAlertAllOfCondition
from .activity_log_alert_action_group import ActivityLogAlertActionGroup
from .activity_log_alert_action_list import ActivityLogAlertActionList
from .activity_log_alert_resource import ActivityLogAlertResource
from .activity_log_alert_patch_body import ActivityLogAlertPatchBody
from .localizable_string import LocalizableString
from .sender_authorization import SenderAuthorization
from .http_request_info import HttpRequestInfo
from .event_data import EventData
from .metric_availability import MetricAvailability
from .metric_definition import MetricDefinition
from .metric_value import MetricValue
from .metadata_value import MetadataValue
from .time_series_element import TimeSeriesElement
from .metric import Metric
from .response import Response
try:
from .resource_py3 import Resource
from .scale_capacity_py3 import ScaleCapacity
from .metric_trigger_py3 import MetricTrigger
from .scale_action_py3 import ScaleAction
from .scale_rule_py3 import ScaleRule
from .time_window_py3 import TimeWindow
from .recurrent_schedule_py3 import RecurrentSchedule
from .recurrence_py3 import Recurrence
from .autoscale_profile_py3 import AutoscaleProfile
from .email_notification_py3 import EmailNotification
from .webhook_notification_py3 import WebhookNotification
from .autoscale_notification_py3 import AutoscaleNotification
from .autoscale_setting_resource_py3 import AutoscaleSettingResource
from .autoscale_setting_resource_patch_py3 import AutoscaleSettingResourcePatch
from .error_response_py3 import ErrorResponse, ErrorResponseException
from .operation_display_py3 import OperationDisplay
from .operation_py3 import Operation
from .operation_list_result_py3 import OperationListResult
from .incident_py3 import Incident
from .rule_data_source_py3 import RuleDataSource
from .rule_condition_py3 import RuleCondition
from .rule_metric_data_source_py3 import RuleMetricDataSource
from .rule_management_event_claims_data_source_py3 import RuleManagementEventClaimsDataSource
from .rule_management_event_data_source_py3 import RuleManagementEventDataSource
from .threshold_rule_condition_py3 import ThresholdRuleCondition
from .location_threshold_rule_condition_py3 import LocationThresholdRuleCondition
from .management_event_aggregation_condition_py3 import ManagementEventAggregationCondition
from .management_event_rule_condition_py3 import ManagementEventRuleCondition
from .rule_action_py3 import RuleAction
from .rule_email_action_py3 import RuleEmailAction
from .rule_webhook_action_py3 import RuleWebhookAction
from .alert_rule_resource_py3 import AlertRuleResource
from .alert_rule_resource_patch_py3 import AlertRuleResourcePatch
from .retention_policy_py3 import RetentionPolicy
from .log_profile_resource_py3 import LogProfileResource
from .log_profile_resource_patch_py3 import LogProfileResourcePatch
from .proxy_only_resource_py3 import ProxyOnlyResource
from .metric_settings_py3 import MetricSettings
from .log_settings_py3 import LogSettings
from .diagnostic_settings_resource_py3 import DiagnosticSettingsResource
from .diagnostic_settings_resource_collection_py3 import DiagnosticSettingsResourceCollection
from .diagnostic_settings_category_resource_py3 import DiagnosticSettingsCategoryResource
from .diagnostic_settings_category_resource_collection_py3 import DiagnosticSettingsCategoryResourceCollection
from .email_receiver_py3 import EmailReceiver
from .sms_receiver_py3 import SmsReceiver
from .webhook_receiver_py3 import WebhookReceiver
from .itsm_receiver_py3 import ItsmReceiver
from .azure_app_push_receiver_py3 import AzureAppPushReceiver
from .automation_runbook_receiver_py3 import AutomationRunbookReceiver
from .action_group_resource_py3 import ActionGroupResource
from .enable_request_py3 import EnableRequest
from .action_group_patch_body_py3 import ActionGroupPatchBody
from .activity_log_alert_leaf_condition_py3 import ActivityLogAlertLeafCondition
from .activity_log_alert_all_of_condition_py3 import ActivityLogAlertAllOfCondition
from .activity_log_alert_action_group_py3 import ActivityLogAlertActionGroup
from .activity_log_alert_action_list_py3 import ActivityLogAlertActionList
from .activity_log_alert_resource_py3 import ActivityLogAlertResource
from .activity_log_alert_patch_body_py3 import ActivityLogAlertPatchBody
from .localizable_string_py3 import LocalizableString
from .sender_authorization_py3 import SenderAuthorization
from .http_request_info_py3 import HttpRequestInfo
from .event_data_py3 import EventData
from .metric_availability_py3 import MetricAvailability
from .metric_definition_py3 import MetricDefinition
from .metric_value_py3 import MetricValue
from .metadata_value_py3 import MetadataValue
from .time_series_element_py3 import TimeSeriesElement
from .metric_py3 import Metric
from .response_py3 import Response
from .baseline_metadata_value_py3 import BaselineMetadataValue
from .baseline_py3 import Baseline
from .baseline_response_py3 import BaselineResponse
from .time_series_information_py3 import TimeSeriesInformation
from .calculate_baseline_response_py3 import CalculateBaselineResponse
except (SyntaxError, ImportError):
from .resource import Resource
from .scale_capacity import ScaleCapacity
from .metric_trigger import MetricTrigger
from .scale_action import ScaleAction
from .scale_rule import ScaleRule
from .time_window import TimeWindow
from .recurrent_schedule import RecurrentSchedule
from .recurrence import Recurrence
from .autoscale_profile import AutoscaleProfile
from .email_notification import EmailNotification
from .webhook_notification import WebhookNotification
from .autoscale_notification import AutoscaleNotification
from .autoscale_setting_resource import AutoscaleSettingResource
from .autoscale_setting_resource_patch import AutoscaleSettingResourcePatch
from .error_response import ErrorResponse, ErrorResponseException
from .operation_display import OperationDisplay
from .operation import Operation
from .operation_list_result import OperationListResult
from .incident import Incident
from .rule_data_source import RuleDataSource
from .rule_condition import RuleCondition
from .rule_metric_data_source import RuleMetricDataSource
from .rule_management_event_claims_data_source import RuleManagementEventClaimsDataSource
from .rule_management_event_data_source import RuleManagementEventDataSource
from .threshold_rule_condition import ThresholdRuleCondition
from .location_threshold_rule_condition import LocationThresholdRuleCondition
from .management_event_aggregation_condition import ManagementEventAggregationCondition
from .management_event_rule_condition import ManagementEventRuleCondition
from .rule_action import RuleAction
from .rule_email_action import RuleEmailAction
from .rule_webhook_action import RuleWebhookAction
from .alert_rule_resource import AlertRuleResource
from .alert_rule_resource_patch import AlertRuleResourcePatch
from .retention_policy import RetentionPolicy
from .log_profile_resource import LogProfileResource
from .log_profile_resource_patch import LogProfileResourcePatch
from .proxy_only_resource import ProxyOnlyResource
from .metric_settings import MetricSettings
from .log_settings import LogSettings
from .diagnostic_settings_resource import DiagnosticSettingsResource
from .diagnostic_settings_resource_collection import DiagnosticSettingsResourceCollection
from .diagnostic_settings_category_resource import DiagnosticSettingsCategoryResource
from .diagnostic_settings_category_resource_collection import DiagnosticSettingsCategoryResourceCollection
from .email_receiver import EmailReceiver
from .sms_receiver import SmsReceiver
from .webhook_receiver import WebhookReceiver
from .itsm_receiver import ItsmReceiver
from .azure_app_push_receiver import AzureAppPushReceiver
from .automation_runbook_receiver import AutomationRunbookReceiver
from .action_group_resource import ActionGroupResource
from .enable_request import EnableRequest
from .action_group_patch_body import ActionGroupPatchBody
from .activity_log_alert_leaf_condition import ActivityLogAlertLeafCondition
from .activity_log_alert_all_of_condition import ActivityLogAlertAllOfCondition
from .activity_log_alert_action_group import ActivityLogAlertActionGroup
from .activity_log_alert_action_list import ActivityLogAlertActionList
from .activity_log_alert_resource import ActivityLogAlertResource
from .activity_log_alert_patch_body import ActivityLogAlertPatchBody
from .localizable_string import LocalizableString
from .sender_authorization import SenderAuthorization
from .http_request_info import HttpRequestInfo
from .event_data import EventData
from .metric_availability import MetricAvailability
from .metric_definition import MetricDefinition
from .metric_value import MetricValue
from .metadata_value import MetadataValue
from .time_series_element import TimeSeriesElement
from .metric import Metric
from .response import Response
from .baseline_metadata_value import BaselineMetadataValue
from .baseline import Baseline
from .baseline_response import BaselineResponse
from .time_series_information import TimeSeriesInformation
from .calculate_baseline_response import CalculateBaselineResponse
from .autoscale_setting_resource_paged import AutoscaleSettingResourcePaged
from .incident_paged import IncidentPaged
from .alert_rule_resource_paged import AlertRuleResourcePaged
Expand All @@ -97,6 +182,7 @@
EventLevel,
Unit,
AggregationType,
Sensitivity,
ResultType,
)

Expand Down Expand Up @@ -147,8 +233,12 @@
'EmailReceiver',
'SmsReceiver',
'WebhookReceiver',
'ItsmReceiver',
'AzureAppPushReceiver',
'AutomationRunbookReceiver',
'ActionGroupResource',
'EnableRequest',
'ActionGroupPatchBody',
'ActivityLogAlertLeafCondition',
'ActivityLogAlertAllOfCondition',
'ActivityLogAlertActionGroup',
Expand All @@ -166,6 +256,11 @@
'TimeSeriesElement',
'Metric',
'Response',
'BaselineMetadataValue',
'Baseline',
'BaselineResponse',
'TimeSeriesInformation',
'CalculateBaselineResponse',
'AutoscaleSettingResourcePaged',
'IncidentPaged',
'AlertRuleResourcePaged',
Expand All @@ -188,5 +283,6 @@
'EventLevel',
'Unit',
'AggregationType',
'Sensitivity',
'ResultType',
]
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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.serialization import Model


class ActionGroupPatchBody(Model):
"""An action group object for the body of patch operations.

:param tags: Resource tags
:type tags: dict[str, str]
:param enabled: Indicates whether this action group is enabled. If an
action group is not enabled, then none of its actions will be activated.
Default value: True .
:type enabled: bool
"""

_attribute_map = {
'tags': {'key': 'tags', 'type': '{str}'},
'enabled': {'key': 'properties.enabled', 'type': 'bool'},
}

def __init__(self, **kwargs):
super(ActionGroupPatchBody, self).__init__(**kwargs)
self.tags = kwargs.get('tags', None)
self.enabled = kwargs.get('enabled', True)
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# 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.serialization import Model


class ActionGroupPatchBody(Model):
"""An action group object for the body of patch operations.

:param tags: Resource tags
:type tags: dict[str, str]
:param enabled: Indicates whether this action group is enabled. If an
action group is not enabled, then none of its actions will be activated.
Default value: True .
:type enabled: bool
"""

_attribute_map = {
'tags': {'key': 'tags', 'type': '{str}'},
'enabled': {'key': 'properties.enabled', 'type': 'bool'},
}

def __init__(self, *, tags=None, enabled: bool=True, **kwargs) -> None:
super(ActionGroupPatchBody, self).__init__(**kwargs)
self.tags = tags
self.enabled = enabled
Loading