1# coding=utf-8
2# --------------------------------------------------------------------------
3# Copyright (c) Microsoft Corporation. All rights reserved.
4# Licensed under the MIT License. See License.txt in the project root for license information.
5# Code generated by Microsoft (R) AutoRest Code Generator.
6# Changes may cause incorrect behavior and will be lost if the code is regenerated.
7# --------------------------------------------------------------------------
8
9from enum import Enum, EnumMeta
10from six import with_metaclass
11
12class _CaseInsensitiveEnumMeta(EnumMeta):
13    def __getitem__(self, name):
14        return super().__getitem__(name.upper())
15
16    def __getattr__(cls, name):
17        """Return the enum member matching `name`
18        We use __getattr__ instead of descriptors or inserting into the enum
19        class' __dict__ in order to support `name` and `value` being both
20        properties for enum members (which live in the class' __dict__) and
21        enum members themselves.
22        """
23        try:
24            return cls._member_map_[name.upper()]
25        except KeyError:
26            raise AttributeError(name)
27
28
29class Category(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
30
31    HIGH_AVAILABILITY = "HighAvailability"
32    SECURITY = "Security"
33    PERFORMANCE = "Performance"
34    COST = "Cost"
35    OPERATIONAL_EXCELLENCE = "OperationalExcellence"
36
37class ConfigurationName(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
38
39    DEFAULT = "default"
40
41class CpuThreshold(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
42    """Minimum percentage threshold for Advisor low CPU utilization evaluation. Valid only for
43    subscriptions. Valid values: 5 (default), 10, 15 or 20.
44    """
45
46    FIVE = "5"
47    TEN = "10"
48    FIFTEEN = "15"
49    TWENTY = "20"
50
51class DigestConfigState(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
52    """State of digest configuration.
53    """
54
55    ACTIVE = "Active"
56    DISABLED = "Disabled"
57
58class Impact(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
59    """The business impact of the recommendation.
60    """
61
62    HIGH = "High"
63    MEDIUM = "Medium"
64    LOW = "Low"
65
66class Risk(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
67    """The potential risk of not implementing the recommendation.
68    """
69
70    ERROR = "Error"
71    WARNING = "Warning"
72    NONE = "None"
73
74class Scenario(with_metaclass(_CaseInsensitiveEnumMeta, str, Enum)):
75
76    ALERTS = "Alerts"
77