Add Identity HTTP operations
diff --git a/openstack/identity/v3/services/requests.go b/openstack/identity/v3/services/requests.go
index a93cfe7..3ee924f 100644
--- a/openstack/identity/v3/services/requests.go
+++ b/openstack/identity/v3/services/requests.go
@@ -18,10 +18,7 @@
req := request{Type: serviceType}
var result CreateResult
- _, result.Err = client.Request("POST", listURL(client), gophercloud.RequestOpts{
- JSONBody: &req,
- JSONResponse: &result.Body,
- })
+ _, result.Err = client.Post(listURL(client), req, &result.Body, nil)
return result
}
@@ -50,9 +47,7 @@
// Get returns additional information about a service, given its ID.
func Get(client *gophercloud.ServiceClient, serviceID string) GetResult {
var result GetResult
- _, result.Err = client.Request("GET", serviceURL(client, serviceID), gophercloud.RequestOpts{
- JSONResponse: &result.Body,
- })
+ _, result.Err = client.Get(serviceURL(client, serviceID), &result.Body, nil)
return result
}
@@ -77,6 +72,6 @@
// It either deletes all associated endpoints, or fails until all endpoints are deleted.
func Delete(client *gophercloud.ServiceClient, serviceID string) DeleteResult {
var res DeleteResult
- _, res.Err = client.Request("DELETE", serviceURL(client, serviceID), gophercloud.RequestOpts{})
+ _, res.Err = client.Delete(serviceURL(client, serviceID), nil)
return res
}