code: def apply_inheritance(self):
          
          # inheritance properties by template
          self.hosts.apply_inheritance()
          self.contacts.apply_inheritance()
          self.services.apply_inheritance()
          self.servicedependencies.apply_inheritance()
          self.hostdependencies.apply_inheritance()
          # Also timeperiods
          self.timeperiods.apply_inheritance()
          # Also "Hostextinfo"
          self.hostsextinfo.apply_inheritance()
          # Also "Serviceextinfo"
          self.servicesextinfo.apply_inheritance()
  
          # Now escalations too
          self.serviceescalations.apply_inheritance()
          self.hostescalations.apply_inheritance()
          self.escalations.apply_inheritance()
docs: Apply inheritance over templates
          Template can be used in the following objects::
  
          * hosts
          * contacts
          * services
          * servicedependencies
          * hostdependencies
          * timeperiods
          * hostsextinfo
          * servicesextinfo
          * serviceescalations
          * hostescalations
          * escalations
  
          :return: None