github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/lts/huawei/loggroups/urls.go (about)

     1  package loggroups
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  const rootPath = "groups"
     6  
     7  // createURL will build the url of creation
     8  func createURL(client *golangsdk.ServiceClient) string {
     9  	return client.ServiceURL(rootPath)
    10  }
    11  
    12  // updateURL will build the url of updation
    13  func updateURL(client *golangsdk.ServiceClient, id string) string {
    14  	return client.ServiceURL(rootPath, id)
    15  }
    16  
    17  // deleteURL will build the url of deletion
    18  func deleteURL(client *golangsdk.ServiceClient, id string) string {
    19  	return client.ServiceURL(rootPath, id)
    20  }
    21  
    22  // listURL will build the get url of get list function
    23  func listURL(client *golangsdk.ServiceClient) string {
    24  	return client.ServiceURL(rootPath)
    25  }