Rackspace Auto Scale: Add webhooks Update()
diff --git a/rackspace/autoscale/v1/webhooks/results.go b/rackspace/autoscale/v1/webhooks/results.go
index 0fa550e..9628724 100644
--- a/rackspace/autoscale/v1/webhooks/results.go
+++ b/rackspace/autoscale/v1/webhooks/results.go
@@ -34,11 +34,6 @@
pagination.SinglePageBase
}
-// GetResult temporarily contains the response from a Get call.
-type GetResult struct {
- webhookResult
-}
-
// ExtractWebhooks extracts a slice of Webhooks from a CreateResult.
func (res CreateResult) ExtractWebhooks() ([]Webhook, error) {
if res.Err != nil {
@@ -48,6 +43,16 @@
return commonExtractWebhooks(res.Body)
}
+// GetResult temporarily contains the response from a Get call.
+type GetResult struct {
+ webhookResult
+}
+
+// UpdateResult represents the result of an update operation.
+type UpdateResult struct {
+ gophercloud.ErrResult
+}
+
// Webhook represents a webhook associted with a scaling policy.
type Webhook struct {
// UUID for the webhook.