Source code for azure.mgmt.advisor.models.resource_recommendation_base_py3

# 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 .resource_py3 import Resource


[docs]class ResourceRecommendationBase(Resource): """Advisor Recommendation. Variables are only populated by the server, and will be ignored when sending a request. :ivar id: The resource ID. :vartype id: str :ivar name: The name of the resource. :vartype name: str :ivar type: The type of the resource. :vartype type: str :param category: The category of the recommendation. Possible values include: 'HighAvailability', 'Security', 'Performance', 'Cost' :type category: str or ~azure.mgmt.advisor.models.Category :param impact: The business impact of the recommendation. Possible values include: 'High', 'Medium', 'Low' :type impact: str or ~azure.mgmt.advisor.models.Impact :param impacted_field: The resource type identified by Advisor. :type impacted_field: str :param impacted_value: The resource identified by Advisor. :type impacted_value: str :param last_updated: The most recent time that Advisor checked the validity of the recommendation. :type last_updated: datetime :param metadata: The recommendation metadata. :type metadata: dict[str, object] :param recommendation_type_id: The recommendation-type GUID. :type recommendation_type_id: str :param risk: The potential risk of not implementing the recommendation. Possible values include: 'Error', 'Warning', 'None' :type risk: str or ~azure.mgmt.advisor.models.Risk :param short_description: A summary of the recommendation. :type short_description: ~azure.mgmt.advisor.models.ShortDescription :param suppression_ids: The list of snoozed and dismissed rules for the recommendation. :type suppression_ids: list[str] :param extended_properties: Extended properties :type extended_properties: dict[str, str] """ _validation = { 'id': {'readonly': True}, 'name': {'readonly': True}, 'type': {'readonly': True}, } _attribute_map = { 'id': {'key': 'id', 'type': 'str'}, 'name': {'key': 'name', 'type': 'str'}, 'type': {'key': 'type', 'type': 'str'}, 'category': {'key': 'properties.category', 'type': 'str'}, 'impact': {'key': 'properties.impact', 'type': 'str'}, 'impacted_field': {'key': 'properties.impactedField', 'type': 'str'}, 'impacted_value': {'key': 'properties.impactedValue', 'type': 'str'}, 'last_updated': {'key': 'properties.lastUpdated', 'type': 'iso-8601'}, 'metadata': {'key': 'properties.metadata', 'type': '{object}'}, 'recommendation_type_id': {'key': 'properties.recommendationTypeId', 'type': 'str'}, 'risk': {'key': 'properties.risk', 'type': 'str'}, 'short_description': {'key': 'properties.shortDescription', 'type': 'ShortDescription'}, 'suppression_ids': {'key': 'properties.suppressionIds', 'type': '[str]'}, 'extended_properties': {'key': 'properties.extendedProperties', 'type': '{str}'}, } def __init__(self, *, category=None, impact=None, impacted_field: str=None, impacted_value: str=None, last_updated=None, metadata=None, recommendation_type_id: str=None, risk=None, short_description=None, suppression_ids=None, extended_properties=None, **kwargs) -> None: super(ResourceRecommendationBase, self).__init__(**kwargs) self.category = category self.impact = impact self.impacted_field = impacted_field self.impacted_value = impacted_value self.last_updated = last_updated self.metadata = metadata self.recommendation_type_id = recommendation_type_id self.risk = risk self.short_description = short_description self.suppression_ids = suppression_ids self.extended_properties = extended_properties