github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/sfs_turbo/v1/shares/urls.go (about) 1 package shares 2 3 import "github.com/huaweicloud/golangsdk" 4 5 // createURL used to assemble the URI of creating API 6 func createURL(c *golangsdk.ServiceClient) string { 7 return c.ServiceURL("sfs-turbo/shares") 8 } 9 10 // resourceURL used to assemble the URI of deleting API or querying details API 11 func resourceURL(c *golangsdk.ServiceClient, id string) string { 12 return c.ServiceURL("sfs-turbo/shares", id) 13 } 14 15 // listURL used to assemble the URI of querying all file system details API 16 func listURL(c *golangsdk.ServiceClient) string { 17 return c.ServiceURL("sfs-turbo/shares", "detail") 18 } 19 20 // For mamage the specified file system, e.g.: extend 21 func actionURL(c *golangsdk.ServiceClient, id string) string { 22 return c.ServiceURL("sfs-turbo/shares", id, "action") 23 }