github.com/gophercloud/gophercloud@v1.11.0/openstack/sharedfilesystems/v2/sharenetworks/urls.go (about)

     1  package sharenetworks
     2  
     3  import "github.com/gophercloud/gophercloud"
     4  
     5  func createURL(c *gophercloud.ServiceClient) string {
     6  	return c.ServiceURL("share-networks")
     7  }
     8  
     9  func deleteURL(c *gophercloud.ServiceClient, id string) string {
    10  	return c.ServiceURL("share-networks", id)
    11  }
    12  
    13  func listDetailURL(c *gophercloud.ServiceClient) string {
    14  	return c.ServiceURL("share-networks", "detail")
    15  }
    16  
    17  func getURL(c *gophercloud.ServiceClient, id string) string {
    18  	return deleteURL(c, id)
    19  }
    20  
    21  func updateURL(c *gophercloud.ServiceClient, id string) string {
    22  	return deleteURL(c, id)
    23  }
    24  
    25  func addSecurityServiceURL(c *gophercloud.ServiceClient, id string) string {
    26  	return c.ServiceURL("share-networks", id, "action")
    27  }
    28  
    29  func removeSecurityServiceURL(c *gophercloud.ServiceClient, id string) string {
    30  	return c.ServiceURL("share-networks", id, "action")
    31  }