From 41b6933d5bc8cccd53ef2d7a79cd2c064224af18 Mon Sep 17 00:00:00 2001 From: Xiang Yan Date: Tue, 13 Oct 2020 15:53:18 -0700 Subject: [PATCH] remove validations --- .../azure/ai/metricsadvisor/models/_models.py | 68 ------------------- 1 file changed, 68 deletions(-) diff --git a/sdk/metricsadvisor/azure-ai-metricsadvisor/azure/ai/metricsadvisor/models/_models.py b/sdk/metricsadvisor/azure-ai-metricsadvisor/azure/ai/metricsadvisor/models/_models.py index a9098ab8c8d..bb66b771850 100644 --- a/sdk/metricsadvisor/azure-ai-metricsadvisor/azure/ai/metricsadvisor/models/_models.py +++ b/sdk/metricsadvisor/azure-ai-metricsadvisor/azure/ai/metricsadvisor/models/_models.py @@ -1862,15 +1862,6 @@ class Anomaly(msrest.serialization.Model): :vartype status: str """ - _validation = { - 'metric_id': {'readonly': True}, - 'detection_configuration_id': {'readonly': True}, - 'timestamp': {'readonly': True}, - 'created_on': {'readonly': True}, - 'modified_time': {'readonly': True}, - 'dimension': {'readonly': True}, - } - _attribute_map = { 'metric_id': {'key': 'metricId', 'type': 'str'}, 'detection_configuration_id': {'key': 'detectionConfigurationId', 'type': 'str'}, @@ -1945,14 +1936,6 @@ class Incident(msrest.serialization.Model): :vartype status: str or ~azure.ai.metricsadvisor.models.IncidentPropertyIncidentStatus """ - _validation = { - 'metric_id': {'readonly': True}, - 'detection_configuration_id': {'readonly': True}, - 'id': {'readonly': True}, - 'start_time': {'readonly': True}, - 'last_time': {'readonly': True}, - } - _attribute_map = { 'metric_id': {'key': 'metricId', 'type': 'str'}, 'detection_configuration_id': {'key': 'detectionConfigurationId', 'type': 'str'}, @@ -2015,12 +1998,6 @@ class IncidentRootCause(msrest.serialization.Model): :vartype description: str """ - _validation = { - 'path': {'readonly': True}, - 'score': {'readonly': True}, - 'description': {'readonly': True}, - } - _attribute_map = { 'dimension_key': {'key': 'dimensionKey', 'type': '{str}'}, 'path': {'key': 'path', 'type': '[str]'}, @@ -2086,18 +2063,6 @@ class AnomalyFeedback(msrest.serialization.Model): # pylint:disable=too-many-in ~azure.ai.metricsadvisor.models.AnomalyDetectionConfiguration """ - _validation = { - 'feedback_type': {'required': True}, - 'id': {'readonly': True}, - 'created_time': {'readonly': True}, - 'user_principal': {'readonly': True}, - 'metric_id': {'required': True}, - 'dimension_key': {'required': True}, - 'start_time': {'required': True}, - 'end_time': {'required': True}, - 'value': {'required': True}, - } - _attribute_map = { 'feedback_type': {'key': 'feedbackType', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, @@ -2201,18 +2166,6 @@ class ChangePointFeedback(msrest.serialization.Model): :type value: str or ~azure.ai.metricsadvisor.models.ChangePointValue """ - _validation = { - 'feedback_type': {'required': True}, - 'id': {'readonly': True}, - 'created_time': {'readonly': True}, - 'user_principal': {'readonly': True}, - 'metric_id': {'required': True}, - 'dimension_key': {'required': True}, - 'start_time': {'required': True}, - 'end_time': {'required': True}, - 'value': {'required': True}, - } - _attribute_map = { 'feedback_type': {'key': 'feedbackType', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, @@ -2307,16 +2260,6 @@ class CommentFeedback(msrest.serialization.Model): :type value: str """ - _validation = { - 'feedback_type': {'required': True}, - 'id': {'readonly': True}, - 'created_time': {'readonly': True}, - 'user_principal': {'readonly': True}, - 'metric_id': {'required': True}, - 'dimension_key': {'required': True}, - 'value': {'required': True}, - } - _attribute_map = { 'feedback_type': {'key': 'feedbackType', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'}, @@ -2409,17 +2352,6 @@ class PeriodFeedback(msrest.serialization.Model): :type period_type: str or ~azure.ai.metricsadvisor.models.PeriodType """ - _validation = { - 'feedback_type': {'required': True}, - 'id': {'readonly': True}, - 'created_time': {'readonly': True}, - 'user_principal': {'readonly': True}, - 'metric_id': {'required': True}, - 'dimension_key': {'required': True}, - 'value': {'required': True}, - 'period_type': {'required': True}, - } - _attribute_map = { 'feedback_type': {'key': 'feedbackType', 'type': 'str'}, 'id': {'key': 'id', 'type': 'str'},