Rackspace Auto Scale: Add webhooks Delete()
diff --git a/rackspace/autoscale/v1/webhooks/requests.go b/rackspace/autoscale/v1/webhooks/requests.go
index 893ad57..2a07357 100644
--- a/rackspace/autoscale/v1/webhooks/requests.go
+++ b/rackspace/autoscale/v1/webhooks/requests.go
@@ -153,3 +153,15 @@
return result
}
+
+// Delete requests the given webhook be permanently deleted.
+func Delete(client *gophercloud.ServiceClient, groupID, policyID, webhookID string) DeleteResult {
+ var result DeleteResult
+
+ url := deleteURL(client, groupID, policyID, webhookID)
+ _, result.Err = client.Delete(url, &gophercloud.RequestOpts{
+ OkCodes: []int{204},
+ })
+
+ return result
+}