github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/db/v1/configurations/urls.go (about)

     1  package configurations
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  func baseURL(c *golangsdk.ServiceClient) string {
     6  	return c.ServiceURL("configurations")
     7  }
     8  
     9  func resourceURL(c *golangsdk.ServiceClient, configID string) string {
    10  	return c.ServiceURL("configurations", configID)
    11  }
    12  
    13  func instancesURL(c *golangsdk.ServiceClient, configID string) string {
    14  	return c.ServiceURL("configurations", configID, "instances")
    15  }
    16  
    17  func listDSParamsURL(c *golangsdk.ServiceClient, datastoreID, versionID string) string {
    18  	return c.ServiceURL("datastores", datastoreID, "versions", versionID, "parameters")
    19  }
    20  
    21  func getDSParamURL(c *golangsdk.ServiceClient, datastoreID, versionID, paramID string) string {
    22  	return c.ServiceURL("datastores", datastoreID, "versions", versionID, "parameters", paramID)
    23  }
    24  
    25  func listGlobalParamsURL(c *golangsdk.ServiceClient, versionID string) string {
    26  	return c.ServiceURL("datastores", "versions", versionID, "parameters")
    27  }
    28  
    29  func getGlobalParamURL(c *golangsdk.ServiceClient, versionID, paramID string) string {
    30  	return c.ServiceURL("datastores", "versions", versionID, "parameters", paramID)
    31  }