Encapsulate ci_type and data into methods.

This commit is contained in:
uggla 2015-07-10 11:37:37 +02:00
parent 3a27498841
commit 370cff7c6b
1 changed files with 19 additions and 2 deletions

View File

@ -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