diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/__init__.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/__init__.py index b4da43b8c4ce..8f9add947966 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/__init__.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/__init__.py @@ -55,8 +55,12 @@ 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 @@ -74,6 +78,11 @@ 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 @@ -97,6 +106,7 @@ EventLevel, Unit, AggregationType, + Sensitivity, ResultType, ) @@ -147,8 +157,12 @@ 'EmailReceiver', 'SmsReceiver', 'WebhookReceiver', + 'ItsmReceiver', + 'AzureAppPushReceiver', + 'AutomationRunbookReceiver', 'ActionGroupResource', 'EnableRequest', + 'ActionGroupPatchBody', 'ActivityLogAlertLeafCondition', 'ActivityLogAlertAllOfCondition', 'ActivityLogAlertActionGroup', @@ -166,6 +180,11 @@ 'TimeSeriesElement', 'Metric', 'Response', + 'BaselineMetadataValue', + 'Baseline', + 'BaselineResponse', + 'TimeSeriesInformation', + 'CalculateBaselineResponse', 'AutoscaleSettingResourcePaged', 'IncidentPaged', 'AlertRuleResourcePaged', @@ -188,5 +207,6 @@ 'EventLevel', 'Unit', 'AggregationType', + 'Sensitivity', 'ResultType', ] diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/action_group_patch_body.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/action_group_patch_body.py new file mode 100644 index 000000000000..a17c4984ec0c --- /dev/null +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/action_group_patch_body.py @@ -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=True): + super(ActionGroupPatchBody, self).__init__() + self.tags = tags + self.enabled = enabled diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/action_group_resource.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/action_group_resource.py index cdec9c1ab992..9d4b8d20865e 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/action_group_resource.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/action_group_resource.py @@ -44,6 +44,17 @@ class ActionGroupResource(Resource): :param webhook_receivers: The list of webhook receivers that are part of this action group. :type webhook_receivers: list[~azure.mgmt.monitor.models.WebhookReceiver] + :param itsm_receivers: The list of ITSM receivers that are part of this + action group. + :type itsm_receivers: list[~azure.mgmt.monitor.models.ItsmReceiver] + :param azure_app_push_receivers: The list of AzureAppPush receivers that + are part of this action group. + :type azure_app_push_receivers: + list[~azure.mgmt.monitor.models.AzureAppPushReceiver] + :param automation_runbook_receivers: The list of AutomationRunbook + receivers that are part of this action group. + :type automation_runbook_receivers: + list[~azure.mgmt.monitor.models.AutomationRunbookReceiver] """ _validation = { @@ -66,12 +77,18 @@ class ActionGroupResource(Resource): 'email_receivers': {'key': 'properties.emailReceivers', 'type': '[EmailReceiver]'}, 'sms_receivers': {'key': 'properties.smsReceivers', 'type': '[SmsReceiver]'}, 'webhook_receivers': {'key': 'properties.webhookReceivers', 'type': '[WebhookReceiver]'}, + 'itsm_receivers': {'key': 'properties.itsmReceivers', 'type': '[ItsmReceiver]'}, + 'azure_app_push_receivers': {'key': 'properties.azureAppPushReceivers', 'type': '[AzureAppPushReceiver]'}, + '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): + 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 diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/activity_log_alert_action_group.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/activity_log_alert_action_group.py index 2e9cc3ebbf60..fbd7cad9b61a 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/activity_log_alert_action_group.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/activity_log_alert_action_group.py @@ -33,5 +33,6 @@ class ActivityLogAlertActionGroup(Model): } def __init__(self, action_group_id, webhook_properties=None): + super(ActivityLogAlertActionGroup, self).__init__() self.action_group_id = action_group_id self.webhook_properties = webhook_properties diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/activity_log_alert_action_list.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/activity_log_alert_action_list.py index b14666a31e69..93e89bf58cff 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/activity_log_alert_action_list.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/activity_log_alert_action_list.py @@ -25,4 +25,5 @@ class ActivityLogAlertActionList(Model): } def __init__(self, action_groups=None): + super(ActivityLogAlertActionList, self).__init__() self.action_groups = action_groups diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/activity_log_alert_all_of_condition.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/activity_log_alert_all_of_condition.py index c994227b87ed..bdcd86017bfb 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/activity_log_alert_all_of_condition.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/activity_log_alert_all_of_condition.py @@ -30,4 +30,5 @@ class ActivityLogAlertAllOfCondition(Model): } def __init__(self, all_of): + super(ActivityLogAlertAllOfCondition, self).__init__() self.all_of = all_of diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/activity_log_alert_leaf_condition.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/activity_log_alert_leaf_condition.py index 44f5526aed1b..d31f514e88b7 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/activity_log_alert_leaf_condition.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/activity_log_alert_leaf_condition.py @@ -38,5 +38,6 @@ class ActivityLogAlertLeafCondition(Model): } def __init__(self, field, equals): + super(ActivityLogAlertLeafCondition, self).__init__() self.field = field self.equals = equals diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/activity_log_alert_patch_body.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/activity_log_alert_patch_body.py index ef6f13e2558a..37cb2aef8ac8 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/activity_log_alert_patch_body.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/activity_log_alert_patch_body.py @@ -29,5 +29,6 @@ class ActivityLogAlertPatchBody(Model): } def __init__(self, tags=None, enabled=True): + super(ActivityLogAlertPatchBody, self).__init__() self.tags = tags self.enabled = enabled diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/alert_rule_resource_patch.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/alert_rule_resource_patch.py index 8877ac7d2830..75d06c07d0c9 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/alert_rule_resource_patch.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/alert_rule_resource_patch.py @@ -56,6 +56,7 @@ class AlertRuleResourcePatch(Model): } def __init__(self, name, is_enabled, condition, tags=None, description=None, actions=None): + super(AlertRuleResourcePatch, self).__init__() self.tags = tags self.name = name self.description = description diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/automation_runbook_receiver.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/automation_runbook_receiver.py new file mode 100644 index 000000000000..f9061c65f2d8 --- /dev/null +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/automation_runbook_receiver.py @@ -0,0 +1,58 @@ +# 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 AutomationRunbookReceiver(Model): + """The Azure Automation Runbook notification receiver. + + :param automation_account_id: The Azure automation account Id which holds + this runbook and authenticate to Azure resource. + :type automation_account_id: str + :param runbook_name: The name for this runbook. + :type runbook_name: str + :param webhook_resource_id: The resource id for webhook linked to this + runbook. + :type webhook_resource_id: str + :param is_global_runbook: Indicates whether this instance is global + runbook. + :type is_global_runbook: bool + :param name: Indicates name of the webhook. + :type name: str + :param service_uri: The URI where webhooks should be sent. + :type service_uri: str + """ + + _validation = { + 'automation_account_id': {'required': True}, + 'runbook_name': {'required': True}, + 'webhook_resource_id': {'required': True}, + 'is_global_runbook': {'required': True}, + } + + _attribute_map = { + 'automation_account_id': {'key': 'automationAccountId', 'type': 'str'}, + 'runbook_name': {'key': 'runbookName', 'type': 'str'}, + 'webhook_resource_id': {'key': 'webhookResourceId', 'type': 'str'}, + 'is_global_runbook': {'key': 'isGlobalRunbook', 'type': 'bool'}, + 'name': {'key': 'name', 'type': 'str'}, + 'service_uri': {'key': 'serviceUri', 'type': 'str'}, + } + + def __init__(self, automation_account_id, runbook_name, webhook_resource_id, is_global_runbook, name=None, service_uri=None): + super(AutomationRunbookReceiver, self).__init__() + self.automation_account_id = automation_account_id + self.runbook_name = runbook_name + self.webhook_resource_id = webhook_resource_id + self.is_global_runbook = is_global_runbook + self.name = name + self.service_uri = service_uri diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/autoscale_notification.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/autoscale_notification.py index fbb63c0ceb3e..1e294501f4a5 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/autoscale_notification.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/autoscale_notification.py @@ -40,5 +40,6 @@ class AutoscaleNotification(Model): operation = "Scale" def __init__(self, email=None, webhooks=None): + super(AutoscaleNotification, self).__init__() self.email = email self.webhooks = webhooks diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/autoscale_profile.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/autoscale_profile.py index 912b2a2c6dd5..c36998aa1b21 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/autoscale_profile.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/autoscale_profile.py @@ -46,6 +46,7 @@ class AutoscaleProfile(Model): } def __init__(self, name, capacity, rules, fixed_date=None, recurrence=None): + super(AutoscaleProfile, self).__init__() self.name = name self.capacity = capacity self.rules = rules diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/autoscale_setting_resource_patch.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/autoscale_setting_resource_patch.py index e8e45c5b66d6..d2cad20ddd15 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/autoscale_setting_resource_patch.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/autoscale_setting_resource_patch.py @@ -49,6 +49,7 @@ class AutoscaleSettingResourcePatch(Model): } def __init__(self, profiles, tags=None, notifications=None, enabled=True, name=None, target_resource_uri=None): + super(AutoscaleSettingResourcePatch, self).__init__() self.tags = tags self.profiles = profiles self.notifications = notifications diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/azure_app_push_receiver.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/azure_app_push_receiver.py new file mode 100644 index 000000000000..6aa6de323552 --- /dev/null +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/azure_app_push_receiver.py @@ -0,0 +1,39 @@ +# 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 AzureAppPushReceiver(Model): + """The Azure mobile App push notification receiver. + + :param name: The name of the Azure mobile app push receiver. Names must be + unique across all receivers within an action group. + :type name: str + :param email_address: The email address registered for the Azure mobile + app. + :type email_address: str + """ + + _validation = { + 'name': {'required': True}, + 'email_address': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'email_address': {'key': 'emailAddress', 'type': 'str'}, + } + + def __init__(self, name, email_address): + super(AzureAppPushReceiver, self).__init__() + self.name = name + self.email_address = email_address diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/baseline.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/baseline.py new file mode 100644 index 000000000000..c4c788fedcad --- /dev/null +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/baseline.py @@ -0,0 +1,43 @@ +# 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 Baseline(Model): + """The baseline values for a single sensitivity value. + + :param sensitivity: the sensitivity of the baseline. Possible values + include: 'Low', 'Medium', 'High' + :type sensitivity: str or ~azure.mgmt.monitor.models.Sensitivity + :param low_thresholds: The low thresholds of the baseline. + :type low_thresholds: list[float] + :param high_thresholds: The high thresholds of the baseline. + :type high_thresholds: list[float] + """ + + _validation = { + 'sensitivity': {'required': True}, + 'low_thresholds': {'required': True}, + 'high_thresholds': {'required': True}, + } + + _attribute_map = { + 'sensitivity': {'key': 'sensitivity', 'type': 'Sensitivity'}, + 'low_thresholds': {'key': 'lowThresholds', 'type': '[float]'}, + 'high_thresholds': {'key': 'highThresholds', 'type': '[float]'}, + } + + def __init__(self, sensitivity, low_thresholds, high_thresholds): + super(Baseline, self).__init__() + self.sensitivity = sensitivity + self.low_thresholds = low_thresholds + self.high_thresholds = high_thresholds diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/baseline_metadata_value.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/baseline_metadata_value.py new file mode 100644 index 000000000000..d1e576f99407 --- /dev/null +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/baseline_metadata_value.py @@ -0,0 +1,32 @@ +# 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 BaselineMetadataValue(Model): + """Represents a baseline metadata value. + + :param name: the name of the metadata. + :type name: ~azure.mgmt.monitor.models.LocalizableString + :param value: the value of the metadata. + :type value: str + """ + + _attribute_map = { + 'name': {'key': 'name', 'type': 'LocalizableString'}, + 'value': {'key': 'value', 'type': 'str'}, + } + + def __init__(self, name=None, value=None): + super(BaselineMetadataValue, self).__init__() + self.name = name + self.value = value diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/baseline_response.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/baseline_response.py new file mode 100644 index 000000000000..2eb7f3d7e1ba --- /dev/null +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/baseline_response.py @@ -0,0 +1,76 @@ +# 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 BaselineResponse(Model): + """The response to a baseline query. + + Variables are only populated by the server, and will be ignored when + sending a request. + + :ivar id: the metric baseline Id. + :vartype id: str + :ivar type: the resource type of the baseline resource. + :vartype type: str + :ivar name: the name and the display name of the metric, i.e. it is + localizable string. + :vartype name: ~azure.mgmt.monitor.models.LocalizableString + :param timespan: The timespan for which the data was retrieved. Its value + consists of two datatimes concatenated, separated by '/'. This may be + adjusted in the future and returned back from what was originally + requested. + :type timespan: str + :param interval: The interval (window size) for which the metric data was + returned in. This may be adjusted in the future and returned back from + what was originally requested. This is not present if a metadata request + was made. + :type interval: timedelta + :param aggregation: The aggregation type of the metric. + :type aggregation: str + :param timestamps: the array of timestamps of the baselines. + :type timestamps: list[datetime] + :param baseline: the baseline values for each sensitivity. + :type baseline: list[~azure.mgmt.monitor.models.Baseline] + :param metadata: the baseline metadata values. + :type metadata: list[~azure.mgmt.monitor.models.BaselineMetadataValue] + """ + + _validation = { + 'id': {'readonly': True}, + 'type': {'readonly': True}, + 'name': {'readonly': True}, + } + + _attribute_map = { + 'id': {'key': 'id', 'type': 'str'}, + 'type': {'key': 'type', 'type': 'str'}, + 'name': {'key': 'name', 'type': 'LocalizableString'}, + 'timespan': {'key': 'properties.timespan', 'type': 'str'}, + 'interval': {'key': 'properties.interval', 'type': 'duration'}, + 'aggregation': {'key': 'properties.aggregation', 'type': 'str'}, + 'timestamps': {'key': 'properties.timestamps', 'type': '[iso-8601]'}, + 'baseline': {'key': 'properties.baseline', 'type': '[Baseline]'}, + 'metadata': {'key': 'properties.metadata', 'type': '[BaselineMetadataValue]'}, + } + + def __init__(self, timespan=None, interval=None, aggregation=None, timestamps=None, baseline=None, metadata=None): + super(BaselineResponse, self).__init__() + self.id = None + self.type = None + self.name = None + self.timespan = timespan + self.interval = interval + self.aggregation = aggregation + self.timestamps = timestamps + self.baseline = baseline + self.metadata = metadata diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/calculate_baseline_response.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/calculate_baseline_response.py new file mode 100644 index 000000000000..f5faef335596 --- /dev/null +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/calculate_baseline_response.py @@ -0,0 +1,41 @@ +# 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 CalculateBaselineResponse(Model): + """The response to a calcualte baseline call. + + :param type: the resource type of the baseline resource. + :type type: str + :param timestamps: the array of timestamps of the baselines. + :type timestamps: list[datetime] + :param baseline: the baseline values for each sensitivity. + :type baseline: list[~azure.mgmt.monitor.models.Baseline] + """ + + _validation = { + 'type': {'required': True}, + 'baseline': {'required': True}, + } + + _attribute_map = { + 'type': {'key': 'type', 'type': 'str'}, + 'timestamps': {'key': 'timestamps', 'type': '[iso-8601]'}, + 'baseline': {'key': 'baseline', 'type': '[Baseline]'}, + } + + def __init__(self, type, baseline, timestamps=None): + super(CalculateBaselineResponse, self).__init__() + self.type = type + self.timestamps = timestamps + self.baseline = baseline diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/diagnostic_settings_category_resource_collection.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/diagnostic_settings_category_resource_collection.py index 2a375065985b..a3a42e0f1085 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/diagnostic_settings_category_resource_collection.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/diagnostic_settings_category_resource_collection.py @@ -25,4 +25,5 @@ class DiagnosticSettingsCategoryResourceCollection(Model): } def __init__(self, value=None): + super(DiagnosticSettingsCategoryResourceCollection, self).__init__() self.value = value diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/diagnostic_settings_resource_collection.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/diagnostic_settings_resource_collection.py index 7f9fcf968deb..3aee18a1edf6 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/diagnostic_settings_resource_collection.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/diagnostic_settings_resource_collection.py @@ -24,4 +24,5 @@ class DiagnosticSettingsResourceCollection(Model): } def __init__(self, value=None): + super(DiagnosticSettingsResourceCollection, self).__init__() self.value = value diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/email_notification.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/email_notification.py index 5195a5f2e045..ef6f1c0b0656 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/email_notification.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/email_notification.py @@ -33,6 +33,7 @@ class EmailNotification(Model): } def __init__(self, send_to_subscription_administrator=None, send_to_subscription_co_administrators=None, custom_emails=None): + super(EmailNotification, self).__init__() self.send_to_subscription_administrator = send_to_subscription_administrator self.send_to_subscription_co_administrators = send_to_subscription_co_administrators self.custom_emails = custom_emails diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/email_receiver.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/email_receiver.py index 736c7e527e05..1b1b11c78495 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/email_receiver.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/email_receiver.py @@ -41,6 +41,7 @@ class EmailReceiver(Model): } def __init__(self, name, email_address): + super(EmailReceiver, self).__init__() self.name = name self.email_address = email_address self.status = None diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/enable_request.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/enable_request.py index 177668388d2e..5f481ee3f3d4 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/enable_request.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/enable_request.py @@ -28,4 +28,5 @@ class EnableRequest(Model): } def __init__(self, receiver_name): + super(EnableRequest, self).__init__() self.receiver_name = receiver_name diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/error_response.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/error_response.py index 2cc2d8d68514..1a399569811b 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/error_response.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/error_response.py @@ -28,6 +28,7 @@ class ErrorResponse(Model): } def __init__(self, code=None, message=None): + super(ErrorResponse, self).__init__() self.code = code self.message = message diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/event_data.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/event_data.py index c4ea4df1b37e..e0b9021b3d3e 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/event_data.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/event_data.py @@ -129,6 +129,7 @@ class EventData(Model): } def __init__(self, level, event_timestamp, submission_timestamp, authorization=None, claims=None, caller=None, description=None, id=None, event_data_id=None, correlation_id=None, event_name=None, category=None, http_request=None, resource_group_name=None, resource_provider_name=None, resource_id=None, resource_type=None, operation_id=None, operation_name=None, properties=None, status=None, sub_status=None, subscription_id=None, tenant_id=None): + super(EventData, self).__init__() self.authorization = authorization self.claims = claims self.caller = caller diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/http_request_info.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/http_request_info.py index 9ba218c62c28..d25e92a5190f 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/http_request_info.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/http_request_info.py @@ -33,6 +33,7 @@ class HttpRequestInfo(Model): } def __init__(self, client_request_id=None, client_ip_address=None, method=None, uri=None): + super(HttpRequestInfo, self).__init__() self.client_request_id = client_request_id self.client_ip_address = client_ip_address self.method = method diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/incident.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/incident.py index 42315adda3f5..be7eb38e45f0 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/incident.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/incident.py @@ -50,6 +50,7 @@ class Incident(Model): } def __init__(self): + super(Incident, self).__init__() self.name = None self.rule_name = None self.is_active = None diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/itsm_receiver.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/itsm_receiver.py new file mode 100644 index 000000000000..3d58ce856e98 --- /dev/null +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/itsm_receiver.py @@ -0,0 +1,56 @@ +# 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 ItsmReceiver(Model): + """An Itsm receiver. + + :param name: The name of the Itsm receiver. Names must be unique across + all receivers within an action group. + :type name: str + :param workspace_id: OMS LA instance identifier. + :type workspace_id: str + :param connection_id: Unique identification of ITSM connection among + multiple defined in above workspace. + :type connection_id: str + :param ticket_configuration: JSON blob for the configurations of the ITSM + action. CreateMultipleWorkItems option will be part of this blob as well. + :type ticket_configuration: str + :param region: Region in which workspace resides. Supported + values:'centralindia','japaneast','southeastasia','australiasoutheast','uksouth','westcentralus','canadacentral','eastus','westeurope' + :type region: str + """ + + _validation = { + 'name': {'required': True}, + 'workspace_id': {'required': True}, + 'connection_id': {'required': True}, + 'ticket_configuration': {'required': True}, + 'region': {'required': True}, + } + + _attribute_map = { + 'name': {'key': 'name', 'type': 'str'}, + 'workspace_id': {'key': 'workspaceId', 'type': 'str'}, + 'connection_id': {'key': 'connectionId', 'type': 'str'}, + 'ticket_configuration': {'key': 'ticketConfiguration', 'type': 'str'}, + 'region': {'key': 'region', 'type': 'str'}, + } + + def __init__(self, name, workspace_id, connection_id, ticket_configuration, region): + super(ItsmReceiver, self).__init__() + self.name = name + self.workspace_id = workspace_id + self.connection_id = connection_id + self.ticket_configuration = ticket_configuration + self.region = region diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/localizable_string.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/localizable_string.py index 5de6dea750c0..3e058e870290 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/localizable_string.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/localizable_string.py @@ -31,5 +31,6 @@ class LocalizableString(Model): } def __init__(self, value, localized_value=None): + super(LocalizableString, self).__init__() self.value = value self.localized_value = localized_value diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/log_profile_resource_patch.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/log_profile_resource_patch.py index ec9ff28c65ad..d5a5316148d6 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/log_profile_resource_patch.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/log_profile_resource_patch.py @@ -53,6 +53,7 @@ class LogProfileResourcePatch(Model): } def __init__(self, locations, categories, retention_policy, tags=None, storage_account_id=None, service_bus_rule_id=None): + super(LogProfileResourcePatch, self).__init__() self.tags = tags self.storage_account_id = storage_account_id self.service_bus_rule_id = service_bus_rule_id diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/log_settings.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/log_settings.py index 976c85def351..6e5b89a68254 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/log_settings.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/log_settings.py @@ -38,6 +38,7 @@ class LogSettings(Model): } def __init__(self, enabled, category=None, retention_policy=None): + super(LogSettings, self).__init__() self.category = category self.enabled = enabled self.retention_policy = retention_policy diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/management_event_aggregation_condition.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/management_event_aggregation_condition.py index ce3e48f92002..5e0e19292cac 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/management_event_aggregation_condition.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/management_event_aggregation_condition.py @@ -33,6 +33,7 @@ class ManagementEventAggregationCondition(Model): } def __init__(self, operator=None, threshold=None, window_size=None): + super(ManagementEventAggregationCondition, self).__init__() self.operator = operator self.threshold = threshold self.window_size = window_size diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/metadata_value.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/metadata_value.py index d8f5c8a849f3..21d0ba797749 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/metadata_value.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/metadata_value.py @@ -27,5 +27,6 @@ class MetadataValue(Model): } def __init__(self, name=None, value=None): + super(MetadataValue, self).__init__() self.name = name self.value = value diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/metric.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/metric.py index da3a2e224975..4ae5e08847bc 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/metric.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/metric.py @@ -48,6 +48,7 @@ class Metric(Model): } def __init__(self, id, type, name, unit, timeseries): + super(Metric, self).__init__() self.id = id self.type = type self.name = name diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_availability.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_availability.py index cf9b4bf2ef16..d46322343000 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_availability.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_availability.py @@ -30,5 +30,6 @@ class MetricAvailability(Model): } def __init__(self, time_grain=None, retention=None): + super(MetricAvailability, self).__init__() self.time_grain = time_grain self.retention = retention diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_definition.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_definition.py index d2d9adf8a399..95c436ba5818 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_definition.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_definition.py @@ -56,6 +56,7 @@ class MetricDefinition(Model): } def __init__(self, is_dimension_required=None, resource_id=None, name=None, unit=None, primary_aggregation_type=None, metric_availabilities=None, id=None, dimensions=None): + super(MetricDefinition, self).__init__() self.is_dimension_required = is_dimension_required self.resource_id = resource_id self.name = name diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_settings.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_settings.py index e605018df4b2..11de4a95fb41 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_settings.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_settings.py @@ -41,6 +41,7 @@ class MetricSettings(Model): } def __init__(self, enabled, time_grain=None, category=None, retention_policy=None): + super(MetricSettings, self).__init__() self.time_grain = time_grain self.category = category self.enabled = enabled diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_trigger.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_trigger.py index 7fd84ff68965..b374fb2a039a 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_trigger.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_trigger.py @@ -70,6 +70,7 @@ class MetricTrigger(Model): } def __init__(self, metric_name, metric_resource_uri, time_grain, statistic, time_window, time_aggregation, operator, threshold): + super(MetricTrigger, self).__init__() self.metric_name = metric_name self.metric_resource_uri = metric_resource_uri self.time_grain = time_grain diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_value.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_value.py index cb0886b50c40..5b5a550057ba 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_value.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/metric_value.py @@ -44,6 +44,7 @@ class MetricValue(Model): } def __init__(self, time_stamp, average=None, minimum=None, maximum=None, total=None, count=None): + super(MetricValue, self).__init__() self.time_stamp = time_stamp self.average = average self.minimum = minimum diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/monitor_management_client_enums.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/monitor_management_client_enums.py index bc378461b4ec..9475e9ad4e05 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/monitor_management_client_enums.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/monitor_management_client_enums.py @@ -127,6 +127,13 @@ class AggregationType(Enum): total = "Total" +class Sensitivity(Enum): + + low = "Low" + medium = "Medium" + high = "High" + + class ResultType(Enum): data = "Data" diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/operation.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/operation.py index 5d885493c824..dc5a77d93a18 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/operation.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/operation.py @@ -27,5 +27,6 @@ class Operation(Model): } def __init__(self, name=None, display=None): + super(Operation, self).__init__() self.name = name self.display = display diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/operation_display.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/operation_display.py index 561416693232..82830778f953 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/operation_display.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/operation_display.py @@ -31,6 +31,7 @@ class OperationDisplay(Model): } def __init__(self, provider=None, resource=None, operation=None): + super(OperationDisplay, self).__init__() self.provider = provider self.resource = resource self.operation = operation diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/operation_list_result.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/operation_list_result.py index 5bdb9217d290..28f86e07b03a 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/operation_list_result.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/operation_list_result.py @@ -30,5 +30,6 @@ class OperationListResult(Model): } def __init__(self, value=None, next_link=None): + super(OperationListResult, self).__init__() self.value = value self.next_link = next_link diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/proxy_only_resource.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/proxy_only_resource.py index 7926895e429e..3a9545a03ffe 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/proxy_only_resource.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/proxy_only_resource.py @@ -39,6 +39,7 @@ class ProxyOnlyResource(Model): } def __init__(self): + super(ProxyOnlyResource, self).__init__() self.id = None self.name = None self.type = None diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/recurrence.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/recurrence.py index 1eb1267a7627..5f918315655d 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/recurrence.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/recurrence.py @@ -36,5 +36,6 @@ class Recurrence(Model): } def __init__(self, frequency, schedule): + super(Recurrence, self).__init__() self.frequency = frequency self.schedule = schedule diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/recurrent_schedule.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/recurrent_schedule.py index 36e510cf47c3..c862eb520257 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/recurrent_schedule.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/recurrent_schedule.py @@ -81,6 +81,7 @@ class RecurrentSchedule(Model): } def __init__(self, time_zone, days, hours, minutes): + super(RecurrentSchedule, self).__init__() self.time_zone = time_zone self.days = days self.hours = hours diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/resource.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/resource.py index 434476a1d049..1552cf70c86d 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/resource.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/resource.py @@ -46,6 +46,7 @@ class Resource(Model): } def __init__(self, location, tags=None): + super(Resource, self).__init__() self.id = None self.name = None self.type = None diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/response.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/response.py index fad15051713b..36b9b4dfe381 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/response.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/response.py @@ -46,6 +46,7 @@ class Response(Model): } def __init__(self, timespan, value, cost=None, interval=None): + super(Response, self).__init__() self.cost = cost self.timespan = timespan self.interval = interval diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/retention_policy.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/retention_policy.py index 991af3078179..883bbd32f622 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/retention_policy.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/retention_policy.py @@ -34,5 +34,6 @@ class RetentionPolicy(Model): } def __init__(self, enabled, days): + super(RetentionPolicy, self).__init__() self.enabled = enabled self.days = days diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/rule_action.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/rule_action.py index 0362c2ea93cd..3eb36c4a18c6 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/rule_action.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/rule_action.py @@ -36,4 +36,5 @@ class RuleAction(Model): } def __init__(self): + super(RuleAction, self).__init__() self.odatatype = None diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/rule_condition.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/rule_condition.py index f1f58c723de3..ec5456c825d5 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/rule_condition.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/rule_condition.py @@ -40,5 +40,6 @@ class RuleCondition(Model): } def __init__(self, data_source=None): + super(RuleCondition, self).__init__() self.data_source = data_source self.odatatype = None diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/rule_data_source.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/rule_data_source.py index 9dbcb1e1a5b7..49352fbec023 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/rule_data_source.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/rule_data_source.py @@ -39,5 +39,6 @@ class RuleDataSource(Model): } def __init__(self, resource_uri=None): + super(RuleDataSource, self).__init__() self.resource_uri = resource_uri self.odatatype = None diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/rule_management_event_claims_data_source.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/rule_management_event_claims_data_source.py index c6912a191cbd..ebb474e18727 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/rule_management_event_claims_data_source.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/rule_management_event_claims_data_source.py @@ -24,4 +24,5 @@ class RuleManagementEventClaimsDataSource(Model): } def __init__(self, email_address=None): + super(RuleManagementEventClaimsDataSource, self).__init__() self.email_address = email_address diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/scale_action.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/scale_action.py index f3ff55ac2d0d..4e4ed1ffb2ec 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/scale_action.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/scale_action.py @@ -47,6 +47,7 @@ class ScaleAction(Model): } def __init__(self, direction, type, cooldown, value="1"): + super(ScaleAction, self).__init__() self.direction = direction self.type = type self.value = value diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/scale_capacity.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/scale_capacity.py index 035076efbba1..98db9fb3279f 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/scale_capacity.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/scale_capacity.py @@ -40,6 +40,7 @@ class ScaleCapacity(Model): } def __init__(self, minimum, maximum, default): + super(ScaleCapacity, self).__init__() self.minimum = minimum self.maximum = maximum self.default = default diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/scale_rule.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/scale_rule.py index c509b5b612d2..f210b77581ee 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/scale_rule.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/scale_rule.py @@ -32,5 +32,6 @@ class ScaleRule(Model): } def __init__(self, metric_trigger, scale_action): + super(ScaleRule, self).__init__() self.metric_trigger = metric_trigger self.scale_action = scale_action diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/sender_authorization.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/sender_authorization.py index c5f0319ba5eb..3a0c733e8ef7 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/sender_authorization.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/sender_authorization.py @@ -33,6 +33,7 @@ class SenderAuthorization(Model): } def __init__(self, action=None, role=None, scope=None): + super(SenderAuthorization, self).__init__() self.action = action self.role = role self.scope = scope diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/sms_receiver.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/sms_receiver.py index 089dc7824c43..3aef994a3e0b 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/sms_receiver.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/sms_receiver.py @@ -45,6 +45,7 @@ class SmsReceiver(Model): } def __init__(self, name, country_code, phone_number): + super(SmsReceiver, self).__init__() self.name = name self.country_code = country_code self.phone_number = phone_number diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/time_series_element.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/time_series_element.py index 0abbfab18a71..db441d8e5f54 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/time_series_element.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/time_series_element.py @@ -30,5 +30,6 @@ class TimeSeriesElement(Model): } def __init__(self, metadatavalues=None, data=None): + super(TimeSeriesElement, self).__init__() self.metadatavalues = metadatavalues self.data = data diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/time_series_information.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/time_series_information.py new file mode 100644 index 000000000000..3ccae5cc9aee --- /dev/null +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/time_series_information.py @@ -0,0 +1,42 @@ +# 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 TimeSeriesInformation(Model): + """The time series info needed for calculating the baseline. + + :param sensitivities: the list of sensitivities for calculating the + baseline. + :type sensitivities: list[str] + :param values: The metric values to calculate the baseline. + :type values: list[float] + :param timestamps: the array of timestamps of the baselines. + :type timestamps: list[datetime] + """ + + _validation = { + 'sensitivities': {'required': True}, + 'values': {'required': True}, + } + + _attribute_map = { + 'sensitivities': {'key': 'sensitivities', 'type': '[str]'}, + 'values': {'key': 'values', 'type': '[float]'}, + 'timestamps': {'key': 'timestamps', 'type': '[iso-8601]'}, + } + + def __init__(self, sensitivities, values, timestamps=None): + super(TimeSeriesInformation, self).__init__() + self.sensitivities = sensitivities + self.values = values + self.timestamps = timestamps diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/time_window.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/time_window.py index 77300df3ff84..b0bf8c35377c 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/time_window.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/time_window.py @@ -72,6 +72,7 @@ class TimeWindow(Model): } def __init__(self, start, end, time_zone=None): + super(TimeWindow, self).__init__() self.time_zone = time_zone self.start = start self.end = end diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/webhook_notification.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/webhook_notification.py index 3e1689a78e34..5c2a1bbadffa 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/webhook_notification.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/webhook_notification.py @@ -27,5 +27,6 @@ class WebhookNotification(Model): } def __init__(self, service_uri=None, properties=None): + super(WebhookNotification, self).__init__() self.service_uri = service_uri self.properties = properties diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/models/webhook_receiver.py b/azure-mgmt-monitor/azure/mgmt/monitor/models/webhook_receiver.py index af70696077b1..1febd8617e14 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/models/webhook_receiver.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/models/webhook_receiver.py @@ -33,5 +33,6 @@ class WebhookReceiver(Model): } def __init__(self, name, service_uri): + super(WebhookReceiver, self).__init__() self.name = name self.service_uri = service_uri diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/monitor_management_client.py b/azure-mgmt-monitor/azure/mgmt/monitor/monitor_management_client.py index 3811b14bb162..8ba664998175 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/monitor_management_client.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/monitor_management_client.py @@ -27,6 +27,7 @@ from .operations.tenant_activity_logs_operations import TenantActivityLogsOperations from .operations.metric_definitions_operations import MetricDefinitionsOperations from .operations.metrics_operations import MetricsOperations +from .operations.metric_baseline_operations import MetricBaselineOperations from . import models @@ -55,7 +56,7 @@ def __init__( super(MonitorManagementClientConfiguration, self).__init__(base_url) - self.add_user_agent('monitormanagementclient/{}'.format(VERSION)) + self.add_user_agent('azure-mgmt-monitor/{}'.format(VERSION)) self.add_user_agent('Azure-SDK-For-Python') self.credentials = credentials @@ -96,6 +97,8 @@ class MonitorManagementClient(object): :vartype metric_definitions: azure.mgmt.monitor.operations.MetricDefinitionsOperations :ivar metrics: Metrics operations :vartype metrics: azure.mgmt.monitor.operations.MetricsOperations + :ivar metric_baseline: MetricBaseline operations + :vartype metric_baseline: azure.mgmt.monitor.operations.MetricBaselineOperations :param credentials: Credentials needed for the client to connect to Azure. :type credentials: :mod:`A msrestazure Credentials @@ -143,3 +146,5 @@ def __init__( self._client, self.config, self._serialize, self._deserialize) self.metrics = MetricsOperations( self._client, self.config, self._serialize, self._deserialize) + self.metric_baseline = MetricBaselineOperations( + self._client, self.config, self._serialize, self._deserialize) diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/operations/__init__.py b/azure-mgmt-monitor/azure/mgmt/monitor/operations/__init__.py index 811736d2b984..071c73c9668e 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/operations/__init__.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/operations/__init__.py @@ -23,6 +23,7 @@ from .tenant_activity_logs_operations import TenantActivityLogsOperations from .metric_definitions_operations import MetricDefinitionsOperations from .metrics_operations import MetricsOperations +from .metric_baseline_operations import MetricBaselineOperations __all__ = [ 'AutoscaleSettingsOperations', @@ -39,4 +40,5 @@ 'TenantActivityLogsOperations', 'MetricDefinitionsOperations', 'MetricsOperations', + 'MetricBaselineOperations', ] diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/operations/action_groups_operations.py b/azure-mgmt-monitor/azure/mgmt/monitor/operations/action_groups_operations.py index 1fe6edf35bff..df70c1d93934 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/operations/action_groups_operations.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/operations/action_groups_operations.py @@ -25,6 +25,8 @@ class ActionGroupsOperations(object): :ivar api_version: Client Api Version. Constant value: "2017-04-01". """ + models = models + def __init__(self, client, config, serializer, deserializer): self._client = client @@ -84,7 +86,7 @@ def create_or_update( # Construct and send request request = self._client.put(url, query_parameters) response = self._client.send( - request, header_parameters, body_content, **operation_config) + request, header_parameters, body_content, stream=False, **operation_config) if response.status_code not in [200, 201]: raise models.ErrorResponseException(self._deserialize, response) @@ -146,7 +148,7 @@ def get( # Construct and send request request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) + response = self._client.send(request, header_parameters, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) @@ -205,7 +207,7 @@ def delete( # Construct and send request request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) + response = self._client.send(request, header_parameters, stream=False, **operation_config) if response.status_code not in [200, 204]: raise models.ErrorResponseException(self._deserialize, response) @@ -214,6 +216,79 @@ def delete( client_raw_response = ClientRawResponse(None, response) return client_raw_response + def update( + self, resource_group_name, action_group_name, tags=None, enabled=True, custom_headers=None, raw=False, **operation_config): + """Updates an existing action group's tags. To update other fields use the + CreateOrUpdate method. + + :param resource_group_name: The name of the resource group. + :type resource_group_name: str + :param action_group_name: The name of the action group. + :type action_group_name: str + :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. + :type enabled: bool + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: ActionGroupResource or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.monitor.models.ActionGroupResource or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + action_group_patch = models.ActionGroupPatchBody(tags=tags, enabled=enabled) + + # Construct URL + url = '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/microsoft.insights/actionGroups/{actionGroupName}' + path_format_arguments = { + 'subscriptionId': self._serialize.url("self.config.subscription_id", self.config.subscription_id, 'str'), + 'resourceGroupName': self._serialize.url("resource_group_name", resource_group_name, 'str'), + 'actionGroupName': self._serialize.url("action_group_name", action_group_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(action_group_patch, 'ActionGroupPatchBody') + + # Construct and send request + request = self._client.patch(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('ActionGroupResource', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + def list_by_subscription_id( self, custom_headers=None, raw=False, **operation_config): """Get a list of all action groups in a subscription. @@ -260,7 +335,7 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send( - request, header_parameters, **operation_config) + request, header_parameters, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) @@ -326,7 +401,7 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send( - request, header_parameters, **operation_config) + request, header_parameters, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) @@ -395,7 +470,7 @@ def enable_receiver( # Construct and send request request = self._client.post(url, query_parameters) response = self._client.send( - request, header_parameters, body_content, **operation_config) + request, header_parameters, body_content, stream=False, **operation_config) if response.status_code not in [200, 409]: raise models.ErrorResponseException(self._deserialize, response) diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/operations/activity_log_alerts_operations.py b/azure-mgmt-monitor/azure/mgmt/monitor/operations/activity_log_alerts_operations.py index f6bbfa262ea7..fce8f7bf7930 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/operations/activity_log_alerts_operations.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/operations/activity_log_alerts_operations.py @@ -25,6 +25,8 @@ class ActivityLogAlertsOperations(object): :ivar api_version: Client Api Version. Constant value: "2017-04-01". """ + models = models + def __init__(self, client, config, serializer, deserializer): self._client = client @@ -86,7 +88,7 @@ def create_or_update( # Construct and send request request = self._client.put(url, query_parameters) response = self._client.send( - request, header_parameters, body_content, **operation_config) + request, header_parameters, body_content, stream=False, **operation_config) if response.status_code not in [200, 201]: raise models.ErrorResponseException(self._deserialize, response) @@ -148,7 +150,7 @@ def get( # Construct and send request request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) + response = self._client.send(request, header_parameters, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) @@ -207,7 +209,7 @@ def delete( # Construct and send request request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) + response = self._client.send(request, header_parameters, stream=False, **operation_config) if response.status_code not in [200, 204]: raise models.ErrorResponseException(self._deserialize, response) @@ -273,7 +275,7 @@ def update( # Construct and send request request = self._client.patch(url, query_parameters) response = self._client.send( - request, header_parameters, body_content, **operation_config) + request, header_parameters, body_content, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) @@ -335,7 +337,7 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send( - request, header_parameters, **operation_config) + request, header_parameters, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) @@ -401,7 +403,7 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send( - request, header_parameters, **operation_config) + request, header_parameters, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/operations/activity_logs_operations.py b/azure-mgmt-monitor/azure/mgmt/monitor/operations/activity_logs_operations.py index c0c19381ea0a..b2b1de713994 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/operations/activity_logs_operations.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/operations/activity_logs_operations.py @@ -25,6 +25,8 @@ class ActivityLogsOperations(object): :ivar api_version: Client Api Version. Constant value: "2015-04-01". """ + models = models + def __init__(self, client, config, serializer, deserializer): self._client = client @@ -112,7 +114,7 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send( - request, header_parameters, **operation_config) + request, header_parameters, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/operations/alert_rule_incidents_operations.py b/azure-mgmt-monitor/azure/mgmt/monitor/operations/alert_rule_incidents_operations.py index 9ac7bfccbc35..798ae18eef90 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/operations/alert_rule_incidents_operations.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/operations/alert_rule_incidents_operations.py @@ -26,6 +26,8 @@ class AlertRuleIncidentsOperations(object): :ivar api_version: Client Api Version. Constant value: "2016-03-01". """ + models = models + def __init__(self, client, config, serializer, deserializer): self._client = client @@ -82,7 +84,7 @@ def get( # Construct and send request request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) + response = self._client.send(request, header_parameters, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) @@ -149,7 +151,7 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send( - request, header_parameters, **operation_config) + request, header_parameters, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/operations/alert_rules_operations.py b/azure-mgmt-monitor/azure/mgmt/monitor/operations/alert_rules_operations.py index 62d1cff27fb9..ba18f034e7f7 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/operations/alert_rules_operations.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/operations/alert_rules_operations.py @@ -26,6 +26,8 @@ class AlertRulesOperations(object): :ivar api_version: Client Api Version. Constant value: "2016-03-01". """ + models = models + def __init__(self, client, config, serializer, deserializer): self._client = client @@ -85,7 +87,7 @@ def create_or_update( # Construct and send request request = self._client.put(url, query_parameters) response = self._client.send( - request, header_parameters, body_content, **operation_config) + request, header_parameters, body_content, stream=False, **operation_config) if response.status_code not in [200, 201]: raise models.ErrorResponseException(self._deserialize, response) @@ -145,9 +147,9 @@ def delete( # Construct and send request request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) + response = self._client.send(request, header_parameters, stream=False, **operation_config) - if response.status_code not in [204, 200]: + if response.status_code not in [200, 204]: exp = CloudError(response) exp.request_id = response.headers.get('x-ms-request-id') raise exp @@ -199,7 +201,7 @@ def get( # Construct and send request request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) + response = self._client.send(request, header_parameters, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -269,7 +271,7 @@ def update( # Construct and send request request = self._client.patch(url, query_parameters) response = self._client.send( - request, header_parameters, body_content, **operation_config) + request, header_parameters, body_content, stream=False, **operation_config) if response.status_code not in [200, 201]: raise models.ErrorResponseException(self._deserialize, response) @@ -335,7 +337,7 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send( - request, header_parameters, **operation_config) + request, header_parameters, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/operations/autoscale_settings_operations.py b/azure-mgmt-monitor/azure/mgmt/monitor/operations/autoscale_settings_operations.py index d83bb10360e9..4eff59b6fde0 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/operations/autoscale_settings_operations.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/operations/autoscale_settings_operations.py @@ -25,6 +25,8 @@ class AutoscaleSettingsOperations(object): :ivar api_version: Client Api Version. Constant value: "2015-04-01". """ + models = models + def __init__(self, client, config, serializer, deserializer): self._client = client @@ -83,7 +85,7 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send( - request, header_parameters, **operation_config) + request, header_parameters, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) @@ -150,7 +152,7 @@ def create_or_update( # Construct and send request request = self._client.put(url, query_parameters) response = self._client.send( - request, header_parameters, body_content, **operation_config) + request, header_parameters, body_content, stream=False, **operation_config) if response.status_code not in [200, 201]: raise models.ErrorResponseException(self._deserialize, response) @@ -211,7 +213,7 @@ def delete( # Construct and send request request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) + response = self._client.send(request, header_parameters, stream=False, **operation_config) if response.status_code not in [200, 204]: raise models.ErrorResponseException(self._deserialize, response) @@ -264,7 +266,7 @@ def get( # Construct and send request request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) + response = self._client.send(request, header_parameters, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) @@ -333,7 +335,7 @@ def update( # Construct and send request request = self._client.patch(url, query_parameters) response = self._client.send( - request, header_parameters, body_content, **operation_config) + request, header_parameters, body_content, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/operations/diagnostic_settings_category_operations.py b/azure-mgmt-monitor/azure/mgmt/monitor/operations/diagnostic_settings_category_operations.py index 11411772740d..beca15b2ba0c 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/operations/diagnostic_settings_category_operations.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/operations/diagnostic_settings_category_operations.py @@ -25,6 +25,8 @@ class DiagnosticSettingsCategoryOperations(object): :ivar api_version: Client Api Version. Constant value: "2017-05-01-preview". """ + models = models + def __init__(self, client, config, serializer, deserializer): self._client = client @@ -78,7 +80,7 @@ def get( # Construct and send request request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) + response = self._client.send(request, header_parameters, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) @@ -136,7 +138,7 @@ def list( # Construct and send request request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) + response = self._client.send(request, header_parameters, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/operations/diagnostic_settings_operations.py b/azure-mgmt-monitor/azure/mgmt/monitor/operations/diagnostic_settings_operations.py index 7711f5c37319..c21275d54034 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/operations/diagnostic_settings_operations.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/operations/diagnostic_settings_operations.py @@ -25,6 +25,8 @@ class DiagnosticSettingsOperations(object): :ivar api_version: Client Api Version. Constant value: "2017-05-01-preview". """ + models = models + def __init__(self, client, config, serializer, deserializer): self._client = client @@ -77,7 +79,7 @@ def get( # Construct and send request request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) + response = self._client.send(request, header_parameters, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) @@ -143,7 +145,7 @@ def create_or_update( # Construct and send request request = self._client.put(url, query_parameters) response = self._client.send( - request, header_parameters, body_content, **operation_config) + request, header_parameters, body_content, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) @@ -201,7 +203,7 @@ def delete( # Construct and send request request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) + response = self._client.send(request, header_parameters, stream=False, **operation_config) if response.status_code not in [200, 204]: raise models.ErrorResponseException(self._deserialize, response) @@ -252,7 +254,7 @@ def list( # Construct and send request request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) + response = self._client.send(request, header_parameters, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/operations/event_categories_operations.py b/azure-mgmt-monitor/azure/mgmt/monitor/operations/event_categories_operations.py index 639171fe93c9..705e54c249fe 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/operations/event_categories_operations.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/operations/event_categories_operations.py @@ -25,6 +25,8 @@ class EventCategoriesOperations(object): :ivar api_version: Client Api Version. Constant value: "2015-04-01". """ + models = models + def __init__(self, client, config, serializer, deserializer): self._client = client @@ -78,7 +80,7 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send( - request, header_parameters, **operation_config) + request, header_parameters, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/operations/log_profiles_operations.py b/azure-mgmt-monitor/azure/mgmt/monitor/operations/log_profiles_operations.py index 4165c1c31298..cf1a07b5b4da 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/operations/log_profiles_operations.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/operations/log_profiles_operations.py @@ -26,6 +26,8 @@ class LogProfilesOperations(object): :ivar api_version: Client Api Version. Constant value: "2016-03-01". """ + models = models + def __init__(self, client, config, serializer, deserializer): self._client = client @@ -74,7 +76,7 @@ def delete( # Construct and send request request = self._client.delete(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) + response = self._client.send(request, header_parameters, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -126,7 +128,7 @@ def get( # Construct and send request request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) + response = self._client.send(request, header_parameters, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) @@ -188,7 +190,7 @@ def create_or_update( # Construct and send request request = self._client.put(url, query_parameters) response = self._client.send( - request, header_parameters, body_content, **operation_config) + request, header_parameters, body_content, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) @@ -255,7 +257,7 @@ def update( # Construct and send request request = self._client.patch(url, query_parameters) response = self._client.send( - request, header_parameters, body_content, **operation_config) + request, header_parameters, body_content, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) @@ -316,7 +318,7 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send( - request, header_parameters, **operation_config) + request, header_parameters, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/operations/metric_baseline_operations.py b/azure-mgmt-monitor/azure/mgmt/monitor/operations/metric_baseline_operations.py new file mode 100644 index 000000000000..27713fd02100 --- /dev/null +++ b/azure-mgmt-monitor/azure/mgmt/monitor/operations/metric_baseline_operations.py @@ -0,0 +1,194 @@ +# 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. +# -------------------------------------------------------------------------- + +import uuid +from msrest.pipeline import ClientRawResponse + +from .. import models + + +class MetricBaselineOperations(object): + """MetricBaselineOperations operations. + + :param client: Client for service requests. + :param config: Configuration of service client. + :param serializer: An object model serializer. + :param deserializer: An objec model deserializer. + :ivar api_version: Client Api Version. Constant value: "2017-11-01-preview". + """ + + models = models + + def __init__(self, client, config, serializer, deserializer): + + self._client = client + self._serialize = serializer + self._deserialize = deserializer + self.api_version = "2017-11-01-preview" + + self.config = config + + def get( + self, resource_uri, metric_name, timespan=None, interval=None, aggregation=None, sensitivities=None, result_type=None, custom_headers=None, raw=False, **operation_config): + """**Gets the baseline values for a specific metric**. + + :param resource_uri: The identifier of the resource. It has the + following structure: + subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. + For example: + subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1 + :type resource_uri: str + :param metric_name: The name of the metric to retrieve the baseline + for. + :type metric_name: str + :param timespan: The timespan of the query. It is a string with the + following format 'startDateTime_ISO/endDateTime_ISO'. + :type timespan: str + :param interval: The interval (i.e. timegrain) of the query. + :type interval: timedelta + :param aggregation: The aggregation type of the metric to retrieve the + baseline for. + :type aggregation: str + :param sensitivities: The list of sensitivities (comma separated) to + retrieve. + :type sensitivities: str + :param result_type: Allows retrieving only metadata of the baseline. + On data request all information is retrieved. Possible values include: + 'Data', 'Metadata' + :type result_type: str or ~azure.mgmt.monitor.models.ResultType + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: BaselineResponse or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.monitor.models.BaselineResponse or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + # Construct URL + url = '/{resourceUri}/providers/microsoft.insights/baseline/{metricName}' + path_format_arguments = { + 'resourceUri': self._serialize.url("resource_uri", resource_uri, 'str', skip_quote=True), + 'metricName': self._serialize.url("metric_name", metric_name, 'str') + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + if timespan is not None: + query_parameters['timespan'] = self._serialize.query("timespan", timespan, 'str') + if interval is not None: + query_parameters['interval'] = self._serialize.query("interval", interval, 'duration') + if aggregation is not None: + query_parameters['aggregation'] = self._serialize.query("aggregation", aggregation, 'str') + if sensitivities is not None: + query_parameters['sensitivities'] = self._serialize.query("sensitivities", sensitivities, 'str') + if result_type is not None: + query_parameters['resultType'] = self._serialize.query("result_type", result_type, 'ResultType') + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct and send request + request = self._client.get(url, query_parameters) + response = self._client.send(request, header_parameters, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('BaselineResponse', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized + + def calculate_baseline( + self, resource_uri, time_series_information, custom_headers=None, raw=False, **operation_config): + """**Lists the baseline values for a resource**. + + :param resource_uri: The identifier of the resource. It has the + following structure: + subscriptions/{subscriptionName}/resourceGroups/{resourceGroupName}/providers/{providerName}/{resourceName}. + For example: + subscriptions/b368ca2f-e298-46b7-b0ab-012281956afa/resourceGroups/vms/providers/Microsoft.Compute/virtualMachines/vm1 + :type resource_uri: str + :param time_series_information: Information that need to be specified + to calculate a baseline on a time series. + :type time_series_information: + ~azure.mgmt.monitor.models.TimeSeriesInformation + :param dict custom_headers: headers that will be added to the request + :param bool raw: returns the direct response alongside the + deserialized response + :param operation_config: :ref:`Operation configuration + overrides`. + :return: CalculateBaselineResponse or ClientRawResponse if raw=true + :rtype: ~azure.mgmt.monitor.models.CalculateBaselineResponse or + ~msrest.pipeline.ClientRawResponse + :raises: + :class:`ErrorResponseException` + """ + # Construct URL + url = '/{resourceUri}/providers/microsoft.insights/calculatebaseline' + path_format_arguments = { + 'resourceUri': self._serialize.url("resource_uri", resource_uri, 'str', skip_quote=True) + } + url = self._client.format_url(url, **path_format_arguments) + + # Construct parameters + query_parameters = {} + query_parameters['api-version'] = self._serialize.query("self.api_version", self.api_version, 'str') + + # Construct headers + header_parameters = {} + header_parameters['Content-Type'] = 'application/json; charset=utf-8' + if self.config.generate_client_request_id: + header_parameters['x-ms-client-request-id'] = str(uuid.uuid1()) + if custom_headers: + header_parameters.update(custom_headers) + if self.config.accept_language is not None: + header_parameters['accept-language'] = self._serialize.header("self.config.accept_language", self.config.accept_language, 'str') + + # Construct body + body_content = self._serialize.body(time_series_information, 'TimeSeriesInformation') + + # Construct and send request + request = self._client.post(url, query_parameters) + response = self._client.send( + request, header_parameters, body_content, stream=False, **operation_config) + + if response.status_code not in [200]: + raise models.ErrorResponseException(self._deserialize, response) + + deserialized = None + + if response.status_code == 200: + deserialized = self._deserialize('CalculateBaselineResponse', response) + + if raw: + client_raw_response = ClientRawResponse(deserialized, response) + return client_raw_response + + return deserialized diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/operations/metric_definitions_operations.py b/azure-mgmt-monitor/azure/mgmt/monitor/operations/metric_definitions_operations.py index 5134f74a80b0..d47e351f132b 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/operations/metric_definitions_operations.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/operations/metric_definitions_operations.py @@ -25,6 +25,8 @@ class MetricDefinitionsOperations(object): :ivar api_version: Client Api Version. Constant value: "2017-05-01-preview". """ + models = models + def __init__(self, client, config, serializer, deserializer): self._client = client @@ -82,7 +84,7 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send( - request, header_parameters, **operation_config) + request, header_parameters, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/operations/metrics_operations.py b/azure-mgmt-monitor/azure/mgmt/monitor/operations/metrics_operations.py index aca37e3d6153..472c7446cf14 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/operations/metrics_operations.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/operations/metrics_operations.py @@ -25,6 +25,8 @@ class MetricsOperations(object): :ivar api_version: Client Api Version. Constant value: "2017-05-01-preview". """ + models = models + def __init__(self, client, config, serializer, deserializer): self._client = client @@ -124,7 +126,7 @@ def list( # Construct and send request request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) + response = self._client.send(request, header_parameters, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/operations/operations.py b/azure-mgmt-monitor/azure/mgmt/monitor/operations/operations.py index 815fa409cb7e..134fc2447855 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/operations/operations.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/operations/operations.py @@ -26,6 +26,8 @@ class Operations(object): :ivar api_version: Client Api Version. Constant value: "2015-04-01". """ + models = models + def __init__(self, client, config, serializer, deserializer): self._client = client @@ -68,7 +70,7 @@ def list( # Construct and send request request = self._client.get(url, query_parameters) - response = self._client.send(request, header_parameters, **operation_config) + response = self._client.send(request, header_parameters, stream=False, **operation_config) if response.status_code not in [200]: exp = CloudError(response) diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/operations/tenant_activity_logs_operations.py b/azure-mgmt-monitor/azure/mgmt/monitor/operations/tenant_activity_logs_operations.py index 3c46f893356a..f597a94876ce 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/operations/tenant_activity_logs_operations.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/operations/tenant_activity_logs_operations.py @@ -25,6 +25,8 @@ class TenantActivityLogsOperations(object): :ivar api_version: Client Api Version. Constant value: "2015-04-01". """ + models = models + def __init__(self, client, config, serializer, deserializer): self._client = client @@ -114,7 +116,7 @@ def internal_paging(next_link=None, raw=False): # Construct and send request request = self._client.get(url, query_parameters) response = self._client.send( - request, header_parameters, **operation_config) + request, header_parameters, stream=False, **operation_config) if response.status_code not in [200]: raise models.ErrorResponseException(self._deserialize, response) diff --git a/azure-mgmt-monitor/azure/mgmt/monitor/version.py b/azure-mgmt-monitor/azure/mgmt/monitor/version.py index 85da2c00c1a6..53a203f32aaf 100644 --- a/azure-mgmt-monitor/azure/mgmt/monitor/version.py +++ b/azure-mgmt-monitor/azure/mgmt/monitor/version.py @@ -9,5 +9,5 @@ # regenerated. # -------------------------------------------------------------------------- -VERSION = "0.4.0" +VERSION = "" diff --git a/azure-mgmt-monitor/build.json b/azure-mgmt-monitor/build.json index c63116cab7c0..ae5045083091 100644 --- a/azure-mgmt-monitor/build.json +++ b/azure-mgmt-monitor/build.json @@ -4,127 +4,179 @@ "resolvedInfo": null, "packageMetadata": { "name": "@microsoft.azure/autorest-core", - "version": "2.0.4168", + "version": "2.0.4228", "engines": { "node": ">=7.10.0" }, "dependencies": {}, "optionalDependencies": {}, "devDependencies": { - "@microsoft.azure/async-io": "~1.0.22", - "@microsoft.azure/extension": "~1.2.12", "@types/commonmark": "^0.27.0", + "@types/js-yaml": "^3.10.0", "@types/jsonpath": "^0.1.29", - "@types/node": "^8.0.28", - "@types/pify": "0.0.28", + "@types/node": "^8.0.53", "@types/source-map": "^0.5.0", "@types/yargs": "^8.0.2", - "commonmark": "^0.27.0", - "file-url": "^2.0.2", - "get-uri": "^2.0.0", - "jsonpath": "^0.2.11", - "linq-es2015": "^2.4.25", - "mocha": "3.4.2", - "mocha-typescript": "1.1.5", - "pify": "^3.0.0", - "safe-eval": "^0.3.0", - "shx": "^0.2.2", - "source-map": "^0.5.6", - "source-map-support": "^0.4.15", - "strip-bom": "^3.0.0", - "typescript": "2.5.3", - "untildify": "^3.0.2", - "urijs": "^1.18.10", - "vscode-jsonrpc": "^3.3.1", - "yaml-ast-parser": "https://github.com/olydis/yaml-ast-parser/releases/download/0.0.34/yaml-ast-parser-0.0.34.tgz", - "yargs": "^8.0.2" + "@types/z-schema": "^3.16.31", + "dts-generator": "^2.1.0", + "mocha": "^4.0.1", + "mocha-typescript": "^1.1.7", + "shx": "0.2.2", + "static-link": "^0.2.3", + "vscode-jsonrpc": "^3.3.1" }, "bundleDependencies": false, "peerDependencies": {}, "deprecated": false, - "_resolved": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", - "_shasum": "33813111fc9bfa488bd600fbba48bc53cc9182c7", + "_resolved": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4228/node_modules/@microsoft.azure/autorest-core", + "_shasum": "b3897b8615417aa07cf9113d4bd18862b32f82f8", "_shrinkwrap": null, - "bin": null, - "_id": "@microsoft.azure/autorest-core@2.0.4168", - "_from": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", + "bin": { + "autorest-core": "./dist/app.js", + "autorest-language-service": "dist/language-service/language-service.js" + }, + "_id": "@microsoft.azure/autorest-core@2.0.4228", + "_from": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4228/node_modules/@microsoft.azure/autorest-core", "_requested": { "type": "directory", - "where": "D:\\VSProjects\\swagger-to-sdk", - "raw": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest-core@2.0.4168\\node_modules\\@microsoft.azure\\autorest-core", - "rawSpec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest-core@2.0.4168\\node_modules\\@microsoft.azure\\autorest-core", - "saveSpec": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core", - "fetchSpec": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest-core@2.0.4168/node_modules/@microsoft.azure/autorest-core" + "where": "/git-restapi", + "raw": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4228/node_modules/@microsoft.azure/autorest-core", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4228/node_modules/@microsoft.azure/autorest-core", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4228/node_modules/@microsoft.azure/autorest-core", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4228/node_modules/@microsoft.azure/autorest-core" }, - "_spec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest-core@2.0.4168\\node_modules\\@microsoft.azure\\autorest-core", - "_where": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest-core@2.0.4168\\node_modules\\@microsoft.azure\\autorest-core" + "_spec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4228/node_modules/@microsoft.azure/autorest-core", + "_where": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4228/node_modules/@microsoft.azure/autorest-core" }, "extensionManager": { - "installationPath": "C:\\Users\\lmazuel\\.autorest", - "dotnetPath": "C:\\Users\\lmazuel\\.dotnet" + "installationPath": "/root/.autorest", + "sharedLock": { + "name": "/root/.autorest", + "exclusiveLock": { + "name": "_root_.autorest.exclusive-lock", + "options": { + "port": 45234, + "host": "2130706813", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.exclusive-lock:45234" + }, + "busyLock": { + "name": "_root_.autorest.busy-lock", + "options": { + "port": 37199, + "host": "2130756895", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" + }, + "personalLock": { + "name": "_root_.autorest.6187.795759985377.personal-lock", + "options": { + "port": 46512, + "host": "2130770751", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.6187.795759985377.personal-lock:46512" + }, + "file": "/tmp/_root_.autorest.lock" + }, + "dotnetPath": "/root/.dotnet" }, - "installationPath": "C:\\Users\\lmazuel\\.autorest" + "installationPath": "/root/.autorest" }, { "resolvedInfo": null, "packageMetadata": { - "name": "@microsoft.azure/autorest.go", - "version": "2.0.24", - "dependencies": { - "dotnet-2.0.0": "^1.1.0" + "name": "@microsoft.azure/autorest-core", + "version": "2.0.4231", + "engines": { + "node": ">=7.10.0" }, + "dependencies": {}, "optionalDependencies": {}, "devDependencies": { - "@microsoft.azure/autorest.testserver": "^1.9.0", - "autorest": "^2.0.0", - "coffee-script": "^1.11.1", - "dotnet-sdk-2.0.0": "^1.1.1", - "gulp": "^3.9.1", - "gulp-filter": "^5.0.0", - "gulp-line-ending-corrector": "^1.0.1", - "iced-coffee-script": "^108.0.11", - "marked": "^0.3.6", - "marked-terminal": "^2.0.0", - "moment": "^2.17.1", - "run-sequence": "*", - "shx": "^0.2.2", - "through2-parallel": "^0.1.3", - "yargs": "^8.0.2", - "yarn": "^1.0.2" + "@types/commonmark": "^0.27.0", + "@types/js-yaml": "^3.10.0", + "@types/jsonpath": "^0.1.29", + "@types/node": "^8.0.53", + "@types/source-map": "0.5.0", + "@types/yargs": "^8.0.2", + "@types/z-schema": "^3.16.31", + "dts-generator": "^2.1.0", + "mocha": "^4.0.1", + "mocha-typescript": "^1.1.7", + "shx": "0.2.2", + "static-link": "^0.2.3", + "vscode-jsonrpc": "^3.3.1" }, "bundleDependencies": false, "peerDependencies": {}, "deprecated": false, - "_resolved": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.go@2.0.24/node_modules/@microsoft.azure/autorest.go", - "_shasum": "409a4a9a21708a7aea58fadb0b064ea487a90fea", + "_resolved": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4231/node_modules/@microsoft.azure/autorest-core", + "_shasum": "fa1b2b50cdd91bec9f04542420c3056eda202b87", "_shrinkwrap": null, - "bin": null, - "_id": "@microsoft.azure/autorest.go@2.0.24", - "_from": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.go@2.0.24/node_modules/@microsoft.azure/autorest.go", + "bin": { + "autorest-core": "./dist/app.js", + "autorest-language-service": "dist/language-service/language-service.js" + }, + "_id": "@microsoft.azure/autorest-core@2.0.4231", + "_from": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4231/node_modules/@microsoft.azure/autorest-core", "_requested": { "type": "directory", - "where": "D:\\VSProjects\\swagger-to-sdk", - "raw": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.go@2.0.24\\node_modules\\@microsoft.azure\\autorest.go", - "rawSpec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.go@2.0.24\\node_modules\\@microsoft.azure\\autorest.go", - "saveSpec": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.go@2.0.24/node_modules/@microsoft.azure/autorest.go", - "fetchSpec": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.go@2.0.24/node_modules/@microsoft.azure/autorest.go" + "where": "/git-restapi", + "raw": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4231/node_modules/@microsoft.azure/autorest-core", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4231/node_modules/@microsoft.azure/autorest-core", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest-core@2.0.4231/node_modules/@microsoft.azure/autorest-core", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4231/node_modules/@microsoft.azure/autorest-core" }, - "_spec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.go@2.0.24\\node_modules\\@microsoft.azure\\autorest.go", - "_where": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.go@2.0.24\\node_modules\\@microsoft.azure\\autorest.go" + "_spec": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4231/node_modules/@microsoft.azure/autorest-core", + "_where": "/root/.autorest/@microsoft.azure_autorest-core@2.0.4231/node_modules/@microsoft.azure/autorest-core" }, "extensionManager": { - "installationPath": "C:\\Users\\lmazuel\\.autorest", - "dotnetPath": "C:\\Users\\lmazuel\\.dotnet" + "installationPath": "/root/.autorest", + "sharedLock": { + "name": "/root/.autorest", + "exclusiveLock": { + "name": "_root_.autorest.exclusive-lock", + "options": { + "port": 45234, + "host": "2130706813", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.exclusive-lock:45234" + }, + "busyLock": { + "name": "_root_.autorest.busy-lock", + "options": { + "port": 37199, + "host": "2130756895", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" + }, + "personalLock": { + "name": "_root_.autorest.6187.795759985377.personal-lock", + "options": { + "port": 46512, + "host": "2130770751", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.6187.795759985377.personal-lock:46512" + }, + "file": "/tmp/_root_.autorest.lock" + }, + "dotnetPath": "/root/.dotnet" }, - "installationPath": "C:\\Users\\lmazuel\\.autorest" + "installationPath": "/root/.autorest" }, { "resolvedInfo": null, "packageMetadata": { "name": "@microsoft.azure/autorest.modeler", - "version": "2.0.18", + "version": "2.0.21", "dependencies": { - "dotnet-2.0.0": "^1.1.0" + "dotnet-2.0.0": "^1.3.2" }, "optionalDependencies": {}, "devDependencies": { @@ -146,39 +198,72 @@ "bundleDependencies": false, "peerDependencies": {}, "deprecated": false, - "_resolved": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.0.18/node_modules/@microsoft.azure/autorest.modeler", - "_shasum": "b8e853f83b99b2a37ad534cb8463da5de4b11418", + "_resolved": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "_shasum": "3ce7d3939124b31830be15e5de99b9b7768afb90", "_shrinkwrap": null, "bin": null, - "_id": "@microsoft.azure/autorest.modeler@2.0.18", - "_from": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.0.18/node_modules/@microsoft.azure/autorest.modeler", + "_id": "@microsoft.azure/autorest.modeler@2.0.21", + "_from": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", "_requested": { "type": "directory", - "where": "D:\\VSProjects\\swagger-to-sdk", - "raw": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.0.18\\node_modules\\@microsoft.azure\\autorest.modeler", - "rawSpec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.0.18\\node_modules\\@microsoft.azure\\autorest.modeler", - "saveSpec": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.0.18/node_modules/@microsoft.azure/autorest.modeler", - "fetchSpec": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.0.18/node_modules/@microsoft.azure/autorest.modeler" + "where": "/git-restapi", + "raw": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler" }, - "_spec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.0.18\\node_modules\\@microsoft.azure\\autorest.modeler", - "_where": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.0.18\\node_modules\\@microsoft.azure\\autorest.modeler" + "_spec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler", + "_where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.0.21/node_modules/@microsoft.azure/autorest.modeler" }, "extensionManager": { - "installationPath": "C:\\Users\\lmazuel\\.autorest", - "dotnetPath": "C:\\Users\\lmazuel\\.dotnet" + "installationPath": "/root/.autorest", + "sharedLock": { + "name": "/root/.autorest", + "exclusiveLock": { + "name": "_root_.autorest.exclusive-lock", + "options": { + "port": 45234, + "host": "2130706813", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.exclusive-lock:45234" + }, + "busyLock": { + "name": "_root_.autorest.busy-lock", + "options": { + "port": 37199, + "host": "2130756895", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" + }, + "personalLock": { + "name": "_root_.autorest.6187.795759985377.personal-lock", + "options": { + "port": 46512, + "host": "2130770751", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.6187.795759985377.personal-lock:46512" + }, + "file": "/tmp/_root_.autorest.lock" + }, + "dotnetPath": "/root/.dotnet" }, - "installationPath": "C:\\Users\\lmazuel\\.autorest" + "installationPath": "/root/.autorest" }, { "resolvedInfo": null, "packageMetadata": { "name": "@microsoft.azure/autorest.modeler", - "version": "2.1.22", + "version": "2.3.38", "dependencies": { "dotnet-2.0.0": "^1.4.4" }, "optionalDependencies": {}, "devDependencies": { + "@microsoft.azure/autorest.testserver": "2.3.1", + "autorest": "^2.0.4201", "coffee-script": "^1.11.1", "dotnet-sdk-2.0.0": "^1.4.4", "gulp": "^3.9.1", @@ -197,94 +282,72 @@ "bundleDependencies": false, "peerDependencies": {}, "deprecated": false, - "_resolved": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", - "_shasum": "ca425289fa38a210d279729048a4a91673f09c67", + "_resolved": "/root/.autorest/@microsoft.azure_autorest.modeler@2.3.38/node_modules/@microsoft.azure/autorest.modeler", + "_shasum": "903bb77932e4ed1b8bc3b25cc39b167143494f6c", "_shrinkwrap": null, "bin": null, - "_id": "@microsoft.azure/autorest.modeler@2.1.22", - "_from": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", + "_id": "@microsoft.azure/autorest.modeler@2.3.38", + "_from": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.3.38/node_modules/@microsoft.azure/autorest.modeler", "_requested": { "type": "directory", - "where": "D:\\VSProjects\\swagger-to-sdk", - "raw": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.1.22\\node_modules\\@microsoft.azure\\autorest.modeler", - "rawSpec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.1.22\\node_modules\\@microsoft.azure\\autorest.modeler", - "saveSpec": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler", - "fetchSpec": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.modeler@2.1.22/node_modules/@microsoft.azure/autorest.modeler" + "where": "/git-restapi", + "raw": "/root/.autorest/@microsoft.azure_autorest.modeler@2.3.38/node_modules/@microsoft.azure/autorest.modeler", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.3.38/node_modules/@microsoft.azure/autorest.modeler", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.modeler@2.3.38/node_modules/@microsoft.azure/autorest.modeler", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.3.38/node_modules/@microsoft.azure/autorest.modeler" }, - "_spec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.1.22\\node_modules\\@microsoft.azure\\autorest.modeler", - "_where": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.modeler@2.1.22\\node_modules\\@microsoft.azure\\autorest.modeler" + "_spec": "/root/.autorest/@microsoft.azure_autorest.modeler@2.3.38/node_modules/@microsoft.azure/autorest.modeler", + "_where": "/root/.autorest/@microsoft.azure_autorest.modeler@2.3.38/node_modules/@microsoft.azure/autorest.modeler" }, "extensionManager": { - "installationPath": "C:\\Users\\lmazuel\\.autorest", - "dotnetPath": "C:\\Users\\lmazuel\\.dotnet" - }, - "installationPath": "C:\\Users\\lmazuel\\.autorest" - }, - { - "resolvedInfo": null, - "packageMetadata": { - "name": "@microsoft.azure/autorest.python", - "version": "2.0.13", - "dependencies": { - "dotnet-2.0.0": "^1.1.0" + "installationPath": "/root/.autorest", + "sharedLock": { + "name": "/root/.autorest", + "exclusiveLock": { + "name": "_root_.autorest.exclusive-lock", + "options": { + "port": 45234, + "host": "2130706813", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.exclusive-lock:45234" + }, + "busyLock": { + "name": "_root_.autorest.busy-lock", + "options": { + "port": 37199, + "host": "2130756895", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" + }, + "personalLock": { + "name": "_root_.autorest.6187.795759985377.personal-lock", + "options": { + "port": 46512, + "host": "2130770751", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.6187.795759985377.personal-lock:46512" + }, + "file": "/tmp/_root_.autorest.lock" }, - "optionalDependencies": {}, - "devDependencies": { - "@microsoft.azure/autorest.testserver": "^1.9.0", - "autorest": "^2.0.0", - "coffee-script": "^1.11.1", - "dotnet-sdk-2.0.0": "^1.1.1", - "gulp": "^3.9.1", - "gulp-filter": "^5.0.0", - "gulp-line-ending-corrector": "^1.0.1", - "iced-coffee-script": "^108.0.11", - "marked": "^0.3.6", - "marked-terminal": "^2.0.0", - "moment": "^2.17.1", - "run-sequence": "*", - "shx": "^0.2.2", - "through2-parallel": "^0.1.3", - "yargs": "^8.0.2", - "yarn": "^1.0.2" - }, - "bundleDependencies": false, - "peerDependencies": {}, - "deprecated": false, - "_resolved": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.0.13/node_modules/@microsoft.azure/autorest.python", - "_shasum": "ddbbf3e3f1f90ae4132b687cfa8450425ab4ffcd", - "_shrinkwrap": null, - "bin": null, - "_id": "@microsoft.azure/autorest.python@2.0.13", - "_from": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.0.13/node_modules/@microsoft.azure/autorest.python", - "_requested": { - "type": "directory", - "where": "D:\\VSProjects\\swagger-to-sdk", - "raw": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.0.13\\node_modules\\@microsoft.azure\\autorest.python", - "rawSpec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.0.13\\node_modules\\@microsoft.azure\\autorest.python", - "saveSpec": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.0.13/node_modules/@microsoft.azure/autorest.python", - "fetchSpec": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.0.13/node_modules/@microsoft.azure/autorest.python" - }, - "_spec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.0.13\\node_modules\\@microsoft.azure\\autorest.python", - "_where": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.0.13\\node_modules\\@microsoft.azure\\autorest.python" + "dotnetPath": "/root/.dotnet" }, - "extensionManager": { - "installationPath": "C:\\Users\\lmazuel\\.autorest", - "dotnetPath": "C:\\Users\\lmazuel\\.dotnet" - }, - "installationPath": "C:\\Users\\lmazuel\\.autorest" + "installationPath": "/root/.autorest" }, { "resolvedInfo": null, "packageMetadata": { "name": "@microsoft.azure/autorest.python", - "version": "2.0.19", + "version": "2.1.34", "dependencies": { "dotnet-2.0.0": "^1.4.4" }, "optionalDependencies": {}, "devDependencies": { - "@microsoft.azure/autorest.testserver": "^1.9.0", - "autorest": "^2.0.0", + "@microsoft.azure/autorest.testserver": "^2.3.13", + "autorest": "^2.0.4203", "coffee-script": "^1.11.1", "dotnet-sdk-2.0.0": "^1.4.4", "gulp": "^3.9.1", @@ -303,37 +366,60 @@ "bundleDependencies": false, "peerDependencies": {}, "deprecated": false, - "_resolved": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python", - "_shasum": "e069166c16fd903c8e1fdf9395b433f3043cb6e3", + "_resolved": "/root/.autorest/@microsoft.azure_autorest.python@2.1.34/node_modules/@microsoft.azure/autorest.python", + "_shasum": "b58d7e0542e081cf410fdbcdf8c14acf9cee16a7", "_shrinkwrap": null, "bin": null, - "_id": "@microsoft.azure/autorest.python@2.0.19", - "_from": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python", + "_id": "@microsoft.azure/autorest.python@2.1.34", + "_from": "file:/root/.autorest/@microsoft.azure_autorest.python@2.1.34/node_modules/@microsoft.azure/autorest.python", "_requested": { "type": "directory", - "where": "D:\\VSProjects\\swagger-to-sdk", - "raw": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.0.19\\node_modules\\@microsoft.azure\\autorest.python", - "rawSpec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.0.19\\node_modules\\@microsoft.azure\\autorest.python", - "saveSpec": "file:C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python", - "fetchSpec": "C:/Users/lmazuel/.autorest/@microsoft.azure_autorest.python@2.0.19/node_modules/@microsoft.azure/autorest.python" + "where": "/git-restapi", + "raw": "/root/.autorest/@microsoft.azure_autorest.python@2.1.34/node_modules/@microsoft.azure/autorest.python", + "rawSpec": "/root/.autorest/@microsoft.azure_autorest.python@2.1.34/node_modules/@microsoft.azure/autorest.python", + "saveSpec": "file:/root/.autorest/@microsoft.azure_autorest.python@2.1.34/node_modules/@microsoft.azure/autorest.python", + "fetchSpec": "/root/.autorest/@microsoft.azure_autorest.python@2.1.34/node_modules/@microsoft.azure/autorest.python" }, - "_spec": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.0.19\\node_modules\\@microsoft.azure\\autorest.python", - "_where": "C:\\Users\\lmazuel\\.autorest\\@microsoft.azure_autorest.python@2.0.19\\node_modules\\@microsoft.azure\\autorest.python" + "_spec": "/root/.autorest/@microsoft.azure_autorest.python@2.1.34/node_modules/@microsoft.azure/autorest.python", + "_where": "/root/.autorest/@microsoft.azure_autorest.python@2.1.34/node_modules/@microsoft.azure/autorest.python" }, "extensionManager": { - "installationPath": "C:\\Users\\lmazuel\\.autorest", - "dotnetPath": "C:\\Users\\lmazuel\\.dotnet" + "installationPath": "/root/.autorest", + "sharedLock": { + "name": "/root/.autorest", + "exclusiveLock": { + "name": "_root_.autorest.exclusive-lock", + "options": { + "port": 45234, + "host": "2130706813", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.exclusive-lock:45234" + }, + "busyLock": { + "name": "_root_.autorest.busy-lock", + "options": { + "port": 37199, + "host": "2130756895", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.busy-lock:37199" + }, + "personalLock": { + "name": "_root_.autorest.6187.795759985377.personal-lock", + "options": { + "port": 46512, + "host": "2130770751", + "exclusive": true + }, + "pipe": "/tmp/pipe__root_.autorest.6187.795759985377.personal-lock:46512" + }, + "file": "/tmp/_root_.autorest.lock" + }, + "dotnetPath": "/root/.dotnet" }, - "installationPath": "C:\\Users\\lmazuel\\.autorest" + "installationPath": "/root/.autorest" } ], - "autorest_bootstrap": { - "dependencies": { - "autorest": { - "version": "2.0.4166", - "from": "autorest@latest", - "resolved": "https://registry.npmjs.org/autorest/-/autorest-2.0.4166.tgz" - } - } - } + "autorest_bootstrap": {} } \ No newline at end of file