class Azure::Advisor::Mgmt::V2016_07_12_preview::Models::ResourceRecommendationBase

Advisor Recommendation.

Attributes

category[RW]

@return [Category] The category of the recommendation. Possible values include: 'HighAvailability', 'Security', 'Performance', 'Cost'

id[RW]

@return [String] The fully qualified recommendation ID, for example /subscriptions/subscriptionId/resourceGroups/resourceGroup1/providers/Microsoft.ClassicCompute/virtualMachines/vm1/providers/Microsoft.Advisor/recommendations/recommendationGUID.

impact[RW]

@return [Impact] The business impact of the recommendation. Possible values include: 'High', 'Medium', 'Low'

impacted_field[RW]

@return [String] The resource type identified by Advisor.

impacted_value[RW]

@return [String] The resource identified by Advisor.

last_updated[RW]

@return [DateTime] The most recent time that Advisor checked the validity of the recommendation.

metadata[RW]

@return The recommendation metadata.

name[RW]

@return [String] The name of recommendation.

recommendation_type_id[RW]

@return [String] The recommendation-type GUID.

risk[RW]

@return [Risk] The potential risk of not implementing the recommendation. Possible values include: 'Error', 'Warning', 'None'

short_description[RW]

@return [ShortDescription] A summary of the recommendation.

suppression_ids[RW]

@return The list of snoozed and dismissed rules for the recommendation.

type[RW]

@return [String] The recommendation type: Microsoft.Advisor/recommendations.

Public Class Methods

mapper() click to toggle source

Mapper for ResourceRecommendationBase class as Ruby Hash. This will be used for serialization/deserialization.

# File lib/2016-07-12-preview/generated/azure_mgmt_advisor/models/resource_recommendation_base.rb, line 65
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'ResourceRecommendationBase',
    type: {
      name: 'Composite',
      class_name: 'ResourceRecommendationBase',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        category: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.category',
          type: {
            name: 'String'
          }
        },
        impact: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.impact',
          type: {
            name: 'String'
          }
        },
        impacted_field: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.impactedField',
          type: {
            name: 'String'
          }
        },
        impacted_value: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.impactedValue',
          type: {
            name: 'String'
          }
        },
        last_updated: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.lastUpdated',
          type: {
            name: 'DateTime'
          }
        },
        metadata: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.metadata',
          type: {
            name: 'Dictionary',
            value: {
                client_side_validation: true,
                required: false,
                serialized_name: 'ObjectElementType',
                type: {
                  name: 'Object'
                }
            }
          }
        },
        recommendation_type_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.recommendationTypeId',
          type: {
            name: 'String'
          }
        },
        risk: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.risk',
          type: {
            name: 'String'
          }
        },
        short_description: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.shortDescription',
          type: {
            name: 'Composite',
            class_name: 'ShortDescription'
          }
        },
        suppression_ids: {
          client_side_validation: true,
          required: false,
          serialized_name: 'suppressionIds',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'UuidElementType',
                type: {
                  name: 'String'
                }
            }
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end