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