github.com/gophercloud/gophercloud@v1.11.0/openstack/compute/v2/extensions/aggregates/urls.go (about) 1 package aggregates 2 3 import "github.com/gophercloud/gophercloud" 4 5 func aggregatesListURL(c *gophercloud.ServiceClient) string { 6 return c.ServiceURL("os-aggregates") 7 } 8 9 func aggregatesCreateURL(c *gophercloud.ServiceClient) string { 10 return c.ServiceURL("os-aggregates") 11 } 12 13 func aggregatesDeleteURL(c *gophercloud.ServiceClient, aggregateID string) string { 14 return c.ServiceURL("os-aggregates", aggregateID) 15 } 16 17 func aggregatesGetURL(c *gophercloud.ServiceClient, aggregateID string) string { 18 return c.ServiceURL("os-aggregates", aggregateID) 19 } 20 21 func aggregatesUpdateURL(c *gophercloud.ServiceClient, aggregateID string) string { 22 return c.ServiceURL("os-aggregates", aggregateID) 23 } 24 25 func aggregatesAddHostURL(c *gophercloud.ServiceClient, aggregateID string) string { 26 return c.ServiceURL("os-aggregates", aggregateID, "action") 27 } 28 29 func aggregatesRemoveHostURL(c *gophercloud.ServiceClient, aggregateID string) string { 30 return c.ServiceURL("os-aggregates", aggregateID, "action") 31 } 32 33 func aggregatesSetMetadataURL(c *gophercloud.ServiceClient, aggregateID string) string { 34 return c.ServiceURL("os-aggregates", aggregateID, "action") 35 }