Esempio n. 1
0
    def delete(self, scenario_id):
        """Attempts to delete a scenario.

        Args:
            scenario_id (int): The identifier of the scenario to delete.

        Returns:
            HTTP Response: An HTTP status message indicating success.
        """
        return RestService.delete(self, '{}/{}'.format(self.end_point,
                                                       scenario_id))
Esempio n. 2
0
    def delete_tree(self, gridset_id):
        """Attempts to delete a gridset's tree.

        Args:
            gridset_id (int): The identifier of the tree to delete.

        Returns:
            HTTP Response: An indication from the server if the delete was successful.
        """
        return RestService.delete(
            self, '{}/{}/tree'.format(self.end_point, gridset_id))
Esempio n. 3
0
    def delete(self, shapegrid_id):
        """Attempts to delete a shapegrid.

        Args:
            shapegrid_id (int): The database identifier of the shapegrid to delete.

        Returns:
            HTTP Response: HTTP status indicating success.
        """
        return RestService.delete(self, '{}/{}'.format(self.end_point,
                                                       shapegrid_id))
Esempio n. 4
0
    def delete(self, sdmproject_id):
        """Attempts to delete a projection.

        Args:
            sdmproject_id (int): The identifier of the projection to delete.

        Returns:
            HTTP Response: An HTTP response indicating success.
        """
        return RestService.delete(
            self, '{}/{}'.format(self.end_point, sdmproject_id))
Esempio n. 5
0
    def delete(self, tree_id):
        """Attempts to delete the tree specified by tree_id.

        Args:
            tree_id (int): The identifier of the tree to delete.

        Returns:
            HTTP Response: Indication of deletion success.
        """
        return RestService.delete(self, '{}/{}'.format(self.end_point,
                                                       tree_id))
Esempio n. 6
0
    def delete(self, gridset_id):
        """Attempts to delete a gridset.

        Args:
            gridset_id (int): The identifier for the gridset to delete.

        Returns:
            HTTP Response: Confirmation or failure response associated with the delete
                request.
        """
        return RestService.delete(self, '{}/{}'.format(self.end_point,
                                                       gridset_id))
Esempio n. 7
0
    def delete(self, occurrence_id):
        """Attempts to delete the occurrence set specified by occurrence_id.

        Args:
            occurrence_id (int): The identifier of the occurrence set to delete.

        Returns:
            HTTP Response: A response from the server with the HTTP status indicating
                success of the delete request.
        """
        return RestService.delete(
            self, '{}/{}'.format(self.end_point, occurrence_id))