@@ -20,25 +20,25 @@ func Check(client *gophercloud.ServiceClient, serverID, tag string) (r CheckResu
2020 return
2121}
2222
23- // ReplaceOptsBuilder allows to add additional parameters to the Replace request.
24- type ReplaceOptsBuilder interface {
25- ToTagsReplaceMap () (map [string ]interface {}, error )
23+ // ReplaceAllOptsBuilder allows to add additional parameters to the ReplaceAll request.
24+ type ReplaceAllOptsBuilder interface {
25+ ToTagsReplaceAllMap () (map [string ]interface {}, error )
2626}
2727
28- // ReplaceOpts provides options used to replace Tags on a server.
29- type ReplaceOpts struct {
28+ // ReplaceAllOpts provides options used to replace Tags on a server.
29+ type ReplaceAllOpts struct {
3030 Tags []string `json:"tags" required:"true"`
3131}
3232
33- // ToTagsReplaceMap formats a ReplaceOpts into the body of the replace request.
34- func (opts ReplaceOpts ) ToTagsReplaceMap () (map [string ]interface {}, error ) {
33+ // ToTagsReplaceAllMap formats a ReplaceALlOpts into the body of the ReplaceAll request.
34+ func (opts ReplaceAllOpts ) ToTagsReplaceAllMap () (map [string ]interface {}, error ) {
3535 return gophercloud .BuildRequestBody (opts , "" )
3636}
3737
38- // Replace replaces all tags on a server.
39- func Replace (client * gophercloud.ServiceClient , serverID string , opts ReplaceOptsBuilder ) (r ReplaceResult ) {
40- b , err := opts .ToTagsReplaceMap ()
41- url := replaceURL (client , serverID )
38+ // ReplaceAll replaces all tags on a server.
39+ func ReplaceAll (client * gophercloud.ServiceClient , serverID string , opts ReplaceAllOptsBuilder ) (r ReplaceAllResult ) {
40+ b , err := opts .ToTagsReplaceAllMap ()
41+ url := replaceAllURL (client , serverID )
4242 if err != nil {
4343 r .Err = err
4444 return
0 commit comments