Skip to content

Commit

Permalink
Generated from 189d112e0d578ff72b4e4531174f8d3c80c0b2f3 (Azure#2176)
Browse files Browse the repository at this point in the history
[Monitor] Fixing incorrect specification of top parameter for Metrics API (Azure#2655)
  • Loading branch information
AutorestCI authored and lmazuel committed Mar 19, 2018
1 parent 8d5d4cd commit b6af5b9
Show file tree
Hide file tree
Showing 151 changed files with 4,760 additions and 694 deletions.
224 changes: 150 additions & 74 deletions azure-mgmt-monitor/azure/mgmt/monitor/models/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,80 +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 .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
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 Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ActionGroupPatchBody(Model):
'enabled': {'key': 'properties.enabled', 'type': 'bool'},
}

def __init__(self, tags=None, enabled=True):
super(ActionGroupPatchBody, self).__init__()
self.tags = tags
self.enabled = enabled
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
Original file line number Diff line number Diff line change
Expand Up @@ -18,21 +18,23 @@ class ActionGroupResource(Resource):
Variables are only populated by the server, and will be ignored when
sending a request.
All required parameters must be populated in order to send to Azure.
:ivar id: Azure resource Id
:vartype id: str
:ivar name: Azure resource name
:vartype name: str
:ivar type: Azure resource type
:vartype type: str
:param location: Resource location
:param location: Required. Resource location
:type location: str
:param tags: Resource tags
:type tags: dict[str, str]
:param group_short_name: The short name of the action group. This will be
used in SMS messages.
:param group_short_name: Required. The short name of the action group.
This will be used in SMS messages.
:type group_short_name: str
:param enabled: Indicates whether this action group is enabled. If an
action group is not enabled, then none of its receivers will receive
:param enabled: Required. Indicates whether this action group is enabled.
If an action group is not enabled, then none of its receivers will receive
communications. Default value: True .
:type enabled: bool
:param email_receivers: The list of email receivers that are part of this
Expand Down Expand Up @@ -82,13 +84,13 @@ class ActionGroupResource(Resource):
'automation_runbook_receivers': {'key': 'properties.automationRunbookReceivers', 'type': '[AutomationRunbookReceiver]'},
}

def __init__(self, location, group_short_name, tags=None, enabled=True, email_receivers=None, sms_receivers=None, webhook_receivers=None, itsm_receivers=None, azure_app_push_receivers=None, automation_runbook_receivers=None):
super(ActionGroupResource, self).__init__(location=location, tags=tags)
self.group_short_name = group_short_name
self.enabled = enabled
self.email_receivers = email_receivers
self.sms_receivers = sms_receivers
self.webhook_receivers = webhook_receivers
self.itsm_receivers = itsm_receivers
self.azure_app_push_receivers = azure_app_push_receivers
self.automation_runbook_receivers = automation_runbook_receivers
def __init__(self, **kwargs):
super(ActionGroupResource, self).__init__(**kwargs)
self.group_short_name = kwargs.get('group_short_name', None)
self.enabled = kwargs.get('enabled', True)
self.email_receivers = kwargs.get('email_receivers', None)
self.sms_receivers = kwargs.get('sms_receivers', None)
self.webhook_receivers = kwargs.get('webhook_receivers', None)
self.itsm_receivers = kwargs.get('itsm_receivers', None)
self.azure_app_push_receivers = kwargs.get('azure_app_push_receivers', None)
self.automation_runbook_receivers = kwargs.get('automation_runbook_receivers', None)
Loading

0 comments on commit b6af5b9

Please sign in to comment.