'To*String' -> 'To*Query'
diff --git a/openstack/objectstorage/v1/objects/requests.go b/openstack/objectstorage/v1/objects/requests.go
index f6e355d..3274e04 100644
--- a/openstack/objectstorage/v1/objects/requests.go
+++ b/openstack/objectstorage/v1/objects/requests.go
@@ -277,7 +277,7 @@
// DeleteOptsBuilder allows extensions to add additional parameters to the
// Delete request.
type DeleteOptsBuilder interface {
- ToObjectDeleteString() (string, error)
+ ToObjectDeleteQuery() (string, error)
}
// DeleteOpts is a structure that holds parameters for deleting an object.
@@ -285,8 +285,8 @@
MultipartManifest string `q:"multipart-manifest"`
}
-// ToObjectDeleteString formats a DeleteOpts into a query string.
-func (opts DeleteOpts) ToObjectDeleteString() (string, error) {
+// ToObjectDeleteQuery formats a DeleteOpts into a query string.
+func (opts DeleteOpts) ToObjectDeleteQuery() (string, error) {
q, err := gophercloud.BuildQueryString(opts)
if err != nil {
return "", err
@@ -300,7 +300,7 @@
url := deleteURL(c, containerName, objectName)
if opts != nil {
- query, err := opts.ToObjectDeleteString()
+ query, err := opts.ToObjectDeleteQuery()
if err != nil {
res.Err = err
return res
@@ -320,7 +320,7 @@
// GetOptsBuilder allows extensions to add additional parameters to the
// Get request.
type GetOptsBuilder interface {
- ToObjectGetString() (string, error)
+ ToObjectGetQuery() (string, error)
}
// GetOpts is a structure that holds parameters for getting an object's metadata.
@@ -329,8 +329,8 @@
Signature string `q:"signature"`
}
-// ToObjectGetString formats a GetOpts into a query string.
-func (opts GetOpts) ToObjectGetString() (string, error) {
+// ToObjectGetQuery formats a GetOpts into a query string.
+func (opts GetOpts) ToObjectGetQuery() (string, error) {
q, err := gophercloud.BuildQueryString(opts)
if err != nil {
return "", err
@@ -345,7 +345,7 @@
url := getURL(c, containerName, objectName)
if opts != nil {
- query, err := opts.ToObjectGetString()
+ query, err := opts.ToObjectGetQuery()
if err != nil {
res.Err = err
return res