github.com/gophercloud/gophercloud@v1.11.0/openstack/clustering/v1/profiletypes/urls.go (about) 1 package profiletypes 2 3 import "github.com/gophercloud/gophercloud" 4 5 const ( 6 apiVersion = "v1" 7 apiName = "profile-types" 8 ) 9 10 func commonURL(client *gophercloud.ServiceClient) string { 11 return client.ServiceURL(apiVersion, apiName) 12 } 13 14 func profileTypeURL(client *gophercloud.ServiceClient, id string) string { 15 return client.ServiceURL(apiVersion, apiName, id) 16 } 17 18 func getURL(client *gophercloud.ServiceClient, id string) string { 19 return profileTypeURL(client, id) 20 } 21 22 func listURL(client *gophercloud.ServiceClient) string { 23 return commonURL(client) 24 } 25 26 func listOpsURL(client *gophercloud.ServiceClient, id string) string { 27 return client.ServiceURL(apiVersion, apiName, id, "ops") 28 }