def enhance(self): """ Function enhance Enhance the object with new item or enhanced items """ self.update({ 'os_default_templates': SubDict(self.api, self.objName, self.payloadObj, self.key, SubItemOsDefaultTemplate) }) self.update({ 'config_templates': SubDict(self.api, self.objName, self.payloadObj, self.key, SubItemConfigTemplate) }) self.update({ 'ptables': SubDict(self.api, self.objName, self.payloadObj, self.key, SubItemPTable) }) self.update({ 'media': SubDict(self.api, self.objName, self.payloadObj, self.key, SubItemMedia) }) self.update({ 'architectures': SubDict(self.api, self.objName, self.payloadObj, self.key, SubItemArchitecture) })
def enhance(self): """ Function enhance Enhance the object with new item or enhanced items """ self.update({ 'os_default_templates': SubDict(self.api, self.objName, self.payloadObj, self.key, SubItemOsDefaultTemplate) }) self.update({ 'operatingsystems': SubDict(self.api, self.objName, self.payloadObj, self.key, SubItemOperatingSystem) })
def enhance(self): """ Function enhance Enhance the object with new item or enhanced items """ self.update({'parameters': SubDict(self.api, self.objName, self.payloadObj, self.key, SubItemParameter)}) self.update({'interfaces': SubDict(self.api, self.objName, self.payloadObj, self.key, SubItemInterface)}) self.update({'subnets': SubDict(self.api, self.objName, self.payloadObj, self.key, SubItemSubnet)})
def enhance(self): """ Function enhance Enhance the object with new item or enhanced items """ self.update({ 'override_values': SubDict(self.api, self.objName, self.payloadObj, self.key, SubItemOverrideValues) })
def enhance(self): """ Function enhance Enhance the object with new item or enhanced items """ self.update({ 'puppetclasses': SubDict(self.api, self.objName, self.payloadObj, self.key, SubItemPuppetClasses) }) self.update({ 'parameters': SubDict(self.api, self.objName, self.payloadObj, self.key, SubItemParameter) }) self.update({ 'smart_class_parameters': SubDict(self.api, self.objName, self.payloadObj, self.key, ItemSmartClassParameter) })
def enhance(self): """ Function enhance Enhance the object with new item or enhanced items """ if self.objName in ['hosts', 'hostgroups', 'puppet_classes']: from foreman.itemSmartClassParameter\ import ItemSmartClassParameter self.update({ 'smart_class_parameters': SubDict(self.api, self.objName, self.payloadObj, self.key, ItemSmartClassParameter) })