github.com/gophercloud/gophercloud@v1.11.0/openstack/clustering/v1/policies/urls.go (about)

     1  package policies
     2  
     3  import "github.com/gophercloud/gophercloud"
     4  
     5  const (
     6  	apiVersion = "v1"
     7  	apiName    = "policies"
     8  )
     9  
    10  func policyListURL(client *gophercloud.ServiceClient) string {
    11  	return client.ServiceURL(apiVersion, apiName)
    12  }
    13  
    14  func policyCreateURL(client *gophercloud.ServiceClient) string {
    15  	return client.ServiceURL(apiVersion, apiName)
    16  }
    17  
    18  func policyDeleteURL(client *gophercloud.ServiceClient, policyID string) string {
    19  	return client.ServiceURL(apiVersion, apiName, policyID)
    20  }
    21  
    22  func policyGetURL(client *gophercloud.ServiceClient, policyID string) string {
    23  	return client.ServiceURL(apiVersion, apiName, policyID)
    24  }
    25  
    26  func updateURL(client *gophercloud.ServiceClient, policyID string) string {
    27  	return client.ServiceURL(apiVersion, apiName, policyID)
    28  }
    29  
    30  func validateURL(client *gophercloud.ServiceClient) string {
    31  	return client.ServiceURL(apiVersion, apiName, "validate")
    32  }