github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/networking/v2/extensions/networkipavailabilities/urls.go (about) 1 package networkipavailabilities 2 3 import "github.com/huaweicloud/golangsdk" 4 5 const resourcePath = "network-ip-availabilities" 6 7 func rootURL(c *golangsdk.ServiceClient) string { 8 return c.ServiceURL(resourcePath) 9 } 10 11 func resourceURL(c *golangsdk.ServiceClient, networkIPAvailabilityID string) string { 12 return c.ServiceURL(resourcePath, networkIPAvailabilityID) 13 } 14 15 func listURL(c *golangsdk.ServiceClient) string { 16 return rootURL(c) 17 } 18 19 func getURL(c *golangsdk.ServiceClient, networkIPAvailabilityID string) string { 20 return resourceURL(c, networkIPAvailabilityID) 21 }