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

     1  package sharetypes
     2  
     3  import "github.com/gophercloud/gophercloud"
     4  
     5  func createURL(c *gophercloud.ServiceClient) string {
     6  	return c.ServiceURL("types")
     7  }
     8  
     9  func deleteURL(c *gophercloud.ServiceClient, id string) string {
    10  	return c.ServiceURL("types", id)
    11  }
    12  
    13  func listURL(c *gophercloud.ServiceClient) string {
    14  	return createURL(c)
    15  }
    16  
    17  func getDefaultURL(c *gophercloud.ServiceClient) string {
    18  	return c.ServiceURL("types", "default")
    19  }
    20  
    21  func getExtraSpecsURL(c *gophercloud.ServiceClient, id string) string {
    22  	return c.ServiceURL("types", id, "extra_specs")
    23  }
    24  
    25  func setExtraSpecsURL(c *gophercloud.ServiceClient, id string) string {
    26  	return getExtraSpecsURL(c, id)
    27  }
    28  
    29  func unsetExtraSpecsURL(c *gophercloud.ServiceClient, id string, key string) string {
    30  	return c.ServiceURL("types", id, "extra_specs", key)
    31  }
    32  
    33  func showAccessURL(c *gophercloud.ServiceClient, id string) string {
    34  	return c.ServiceURL("types", id, "share_type_access")
    35  }
    36  
    37  func addAccessURL(c *gophercloud.ServiceClient, id string) string {
    38  	return c.ServiceURL("types", id, "action")
    39  }
    40  
    41  func removeAccessURL(c *gophercloud.ServiceClient, id string) string {
    42  	return addAccessURL(c, id)
    43  }