comment types; remove ok codes
diff --git a/openstack/storage/v1/accounts/accounts.go b/openstack/storage/v1/accounts/accounts.go
index ae8ba19..c460e45 100644
--- a/openstack/storage/v1/accounts/accounts.go
+++ b/openstack/storage/v1/accounts/accounts.go
@@ -4,11 +4,14 @@
"strings"
)
+// UpdateOpts is a structure that contains parameters for updating, creating, or deleting an
+// account's metadata.
type UpdateOpts struct {
Metadata map[string]string
Headers map[string]string
}
+// GetOpts is a structure that contains parameters for getting an account's metadata.
type GetOpts struct {
Headers map[string]string
}
diff --git a/openstack/storage/v1/accounts/requests.go b/openstack/storage/v1/accounts/requests.go
index d5afbcd..7b84497 100644
--- a/openstack/storage/v1/accounts/requests.go
+++ b/openstack/storage/v1/accounts/requests.go
@@ -6,6 +6,7 @@
"net/http"
)
+// GetResult is a *http.Response that is returned from a call to the Get function.
type GetResult *http.Response
// Update is a function that creates, updates, or deletes an account's metadata.
@@ -25,7 +26,6 @@
url := c.GetAccountURL()
_, err = perigee.Request("POST", url, perigee.Options{
MoreHeaders: h,
- OkCodes: []int{204},
})
return err
}
@@ -45,7 +45,6 @@
url := c.GetAccountURL()
resp, err := perigee.Request("HEAD", url, perigee.Options{
MoreHeaders: h,
- OkCodes: []int{204},
})
return &resp.HttpResponse, err
}