Example #1
0
    def post(self, data):
        """Create a new business impact modulation.

        :param data: a business impact modulation within the request body.
        """
        handler = bh.BusinessImpactModulationHandler(pecan.request)
        handler.create(data)
Example #2
0
 def put(self, modulaion_name, modulation):
     """Update a specific business impact modulation."""
     handler = bh.BusinessImpactModulationHandler(pecan.request)
     handler.update(modulaion_name, modulation)
Example #3
0
 def delete(self, modulation_name):
     """Returns a specific business impact modulation."""
     handler = bh.BusinessImpactModulationHandler(pecan.request)
     handler.delete(modulation_name)
Example #4
0
 def get_one(self, modulation_name):
     """Returns a specific business impact modulation."""
     handler = bh.BusinessImpactModulationHandler(pecan.request)
     modulation = handler.get(modulation_name)
     return modulation
Example #5
0
 def get_all(self):
     """Returns all business impact modulations."""
     handler = bh.BusinessImpactModulationHandler(pecan.request)
     modulations = handler.get_all()
     return modulations
 def delete(self):
     """Delete this business impact modulation."""
     handler = bh.BusinessImpactModulationHandler(pecan.request)
     handler.delete({"business_impact_modulation_name": self._id})
 def get(self):
     """Returns a specific business impact modulation."""
     handler = bh.BusinessImpactModulationHandler(pecan.request)
     modulation = handler.get({"business_impact_modulation_name": self._id})
     return modulation