def delete_floatingip(self, floatingip_id): floatingip_url = self._floating_ip_url.format( floatingip_id=floatingip_id) return delete_request(floatingip_url, self.openstack_user_token)
def delete_security_group_rule(self, security_group_rule_id): security_group_rule_url = self._security_group_rule_url.format( security_group_rule_id=security_group_rule_id) return delete_request(security_group_rule_url, self.openstack_user_token)
def delete_instance(self, instance_id): instance_url = self._instance_url.format(instance_id=instance_id) return delete_request(instance_url, self.openstack_user_token)
def delete_image(self, image_id): image_url = self._image_url.format(image_id=image_id) return delete_request(image_url, self.openstack_user_token)
def delete_flavor(self, flavor_id): flavor_url = self._flavor_url.format(flavor_id=flavor_id) return delete_request(flavor_url, self.openstack_user_token)
def delete_snapshot(self, snapshot_id): snapshot_url = self._snapshot_url.format(snapshot_id=snapshot_id) return delete_request(snapshot_url, self.openstack_user_token)
def delete_volume(self, volume_id): volume_url = self._volumes_url.format(volume_id=volume_id) return delete_request(volume_url, self.openstack_user_token)