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 AvailablePluginSummary(object):
12    """
13    Describes where the plugin is supported
14    """
15
16    def __init__(self, **kwargs):
17        """
18        Initializes a new AvailablePluginSummary object with values from keyword arguments.
19        The following keyword arguments are supported (corresponding to the getters/setters of this class):
20
21        :param name:
22            The value to assign to the name property of this AvailablePluginSummary.
23        :type name: str
24
25        :param summary:
26            The value to assign to the summary property of this AvailablePluginSummary.
27        :type summary: str
28
29        :param is_supported:
30            The value to assign to the is_supported property of this AvailablePluginSummary.
31        :type is_supported: bool
32
33        :param is_enabled_by_default:
34            The value to assign to the is_enabled_by_default property of this AvailablePluginSummary.
35        :type is_enabled_by_default: bool
36
37        """
38        self.swagger_types = {
39            'name': 'str',
40            'summary': 'str',
41            'is_supported': 'bool',
42            'is_enabled_by_default': 'bool'
43        }
44
45        self.attribute_map = {
46            'name': 'name',
47            'summary': 'summary',
48            'is_supported': 'isSupported',
49            'is_enabled_by_default': 'isEnabledByDefault'
50        }
51
52        self._name = None
53        self._summary = None
54        self._is_supported = None
55        self._is_enabled_by_default = None
56
57    @property
58    def name(self):
59        """
60        **[Required]** Gets the name of this AvailablePluginSummary.
61        The plugin name
62
63
64        :return: The name of this AvailablePluginSummary.
65        :rtype: str
66        """
67        return self._name
68
69    @name.setter
70    def name(self, name):
71        """
72        Sets the name of this AvailablePluginSummary.
73        The plugin name
74
75
76        :param name: The name of this AvailablePluginSummary.
77        :type: str
78        """
79        self._name = name
80
81    @property
82    def summary(self):
83        """
84        Gets the summary of this AvailablePluginSummary.
85        A brief description of the plugin functionality
86
87
88        :return: The summary of this AvailablePluginSummary.
89        :rtype: str
90        """
91        return self._summary
92
93    @summary.setter
94    def summary(self, summary):
95        """
96        Sets the summary of this AvailablePluginSummary.
97        A brief description of the plugin functionality
98
99
100        :param summary: The summary of this AvailablePluginSummary.
101        :type: str
102        """
103        self._summary = summary
104
105    @property
106    def is_supported(self):
107        """
108        **[Required]** Gets the is_supported of this AvailablePluginSummary.
109        Is the plugin supported or not
110
111
112        :return: The is_supported of this AvailablePluginSummary.
113        :rtype: bool
114        """
115        return self._is_supported
116
117    @is_supported.setter
118    def is_supported(self, is_supported):
119        """
120        Sets the is_supported of this AvailablePluginSummary.
121        Is the plugin supported or not
122
123
124        :param is_supported: The is_supported of this AvailablePluginSummary.
125        :type: bool
126        """
127        self._is_supported = is_supported
128
129    @property
130    def is_enabled_by_default(self):
131        """
132        **[Required]** Gets the is_enabled_by_default of this AvailablePluginSummary.
133        Is the plugin enabled or disabled by default
134
135
136        :return: The is_enabled_by_default of this AvailablePluginSummary.
137        :rtype: bool
138        """
139        return self._is_enabled_by_default
140
141    @is_enabled_by_default.setter
142    def is_enabled_by_default(self, is_enabled_by_default):
143        """
144        Sets the is_enabled_by_default of this AvailablePluginSummary.
145        Is the plugin enabled or disabled by default
146
147
148        :param is_enabled_by_default: The is_enabled_by_default of this AvailablePluginSummary.
149        :type: bool
150        """
151        self._is_enabled_by_default = is_enabled_by_default
152
153    def __repr__(self):
154        return formatted_flat_dict(self)
155
156    def __eq__(self, other):
157        if other is None:
158            return False
159
160        return self.__dict__ == other.__dict__
161
162    def __ne__(self, other):
163        return not self == other
164