def create(self): name = self.name values = json.dumps(self.values) description = self.description datastore = self.datastore datastore_version = self.datastore_version config = utils.configuration_create_byclient(name, values, description, datastore, datastore_version) self.config = config self.__check_config_is_right()
def create_new(self): # rules = configurations.get_validation_rules( # datastore_manager=self.datastore) self.values = {} values = json.dumps(self.values) name = self.name description = self.description datastore = self.datastore datastore_version = self.datastore_version config = utils.configuration_create_byclient(name, values, description, datastore, datastore_version) self.config = config self.__check_config_is_right()