Encapsulate ci_type and data into methods.
This commit is contained in:
parent
3a27498841
commit
370cff7c6b
|
@ -10,8 +10,25 @@ class ConfigurationItem(object):
|
|||
self.ip_mgmt = ip_mgmt
|
||||
self.login = login
|
||||
self.password = password
|
||||
|
||||
self.ci_parents = [] # List to store parents ci
|
||||
self.ci_children = [] # List to store children ci
|
||||
|
||||
self.ci_type = None
|
||||
self.__data = None
|
||||
@property
|
||||
def ci_type(self):
|
||||
return self.__ci_type
|
||||
|
||||
@ci_type.setter
|
||||
def ci_type(self, ci_type):
|
||||
self.__ci_type = ci_type
|
||||
|
||||
@property
|
||||
def data(self):
|
||||
return self.__data
|
||||
|
||||
@data.setter
|
||||
def data(self, data):
|
||||
self.__data = data
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Reference in New Issue