1# coding: utf-8 2# Copyright (c) 2016, 2021, Oracle and/or its affiliates. All rights reserved. 3# This software is dual-licensed to you under the Universal Permissive License (UPL) 1.0 as shown at https://oss.oracle.com/licenses/upl or Apache License 2.0 as shown at http://www.apache.org/licenses/LICENSE-2.0. You may choose either license. 4 5 6from oci.util import formatted_flat_dict, NONE_SENTINEL, value_allowed_none_or_none_sentinel # noqa: F401 7from oci.decorators import init_model_state_from_kwargs 8 9 10@init_model_state_from_kwargs 11class LabelPriority(object): 12 """ 13 The label priority. 14 """ 15 16 #: A constant which can be used with the priority property of a LabelPriority. 17 #: This constant has a value of "NONE" 18 PRIORITY_NONE = "NONE" 19 20 #: A constant which can be used with the priority property of a LabelPriority. 21 #: This constant has a value of "LOW" 22 PRIORITY_LOW = "LOW" 23 24 #: A constant which can be used with the priority property of a LabelPriority. 25 #: This constant has a value of "MEDIUM" 26 PRIORITY_MEDIUM = "MEDIUM" 27 28 #: A constant which can be used with the priority property of a LabelPriority. 29 #: This constant has a value of "HIGH" 30 PRIORITY_HIGH = "HIGH" 31 32 def __init__(self, **kwargs): 33 """ 34 Initializes a new LabelPriority object with values from keyword arguments. 35 The following keyword arguments are supported (corresponding to the getters/setters of this class): 36 37 :param priority: 38 The value to assign to the priority property of this LabelPriority. 39 Allowed values for this property are: "NONE", "LOW", "MEDIUM", "HIGH", 'UNKNOWN_ENUM_VALUE'. 40 Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. 41 :type priority: str 42 43 """ 44 self.swagger_types = { 45 'priority': 'str' 46 } 47 48 self.attribute_map = { 49 'priority': 'priority' 50 } 51 52 self._priority = None 53 54 @property 55 def priority(self): 56 """ 57 Gets the priority of this LabelPriority. 58 The label priority. Default value is NONE. 59 60 Allowed values for this property are: "NONE", "LOW", "MEDIUM", "HIGH", 'UNKNOWN_ENUM_VALUE'. 61 Any unrecognized values returned by a service will be mapped to 'UNKNOWN_ENUM_VALUE'. 62 63 64 :return: The priority of this LabelPriority. 65 :rtype: str 66 """ 67 return self._priority 68 69 @priority.setter 70 def priority(self, priority): 71 """ 72 Sets the priority of this LabelPriority. 73 The label priority. Default value is NONE. 74 75 76 :param priority: The priority of this LabelPriority. 77 :type: str 78 """ 79 allowed_values = ["NONE", "LOW", "MEDIUM", "HIGH"] 80 if not value_allowed_none_or_none_sentinel(priority, allowed_values): 81 priority = 'UNKNOWN_ENUM_VALUE' 82 self._priority = priority 83 84 def __repr__(self): 85 return formatted_flat_dict(self) 86 87 def __eq__(self, other): 88 if other is None: 89 return False 90 91 return self.__dict__ == other.__dict__ 92 93 def __ne__(self, other): 94 return not self == other 95