github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/compute/v2/flavors/urls.go (about)

     1  package flavors
     2  
     3  import (
     4  	"github.com/huaweicloud/golangsdk"
     5  )
     6  
     7  func getURL(client *golangsdk.ServiceClient, id string) string {
     8  	return client.ServiceURL("flavors", id)
     9  }
    10  
    11  func listURL(client *golangsdk.ServiceClient) string {
    12  	return client.ServiceURL("flavors", "detail")
    13  }
    14  
    15  func createURL(client *golangsdk.ServiceClient) string {
    16  	return client.ServiceURL("flavors")
    17  }
    18  
    19  func deleteURL(client *golangsdk.ServiceClient, id string) string {
    20  	return client.ServiceURL("flavors", id)
    21  }
    22  
    23  func accessURL(client *golangsdk.ServiceClient, id string) string {
    24  	return client.ServiceURL("flavors", id, "os-flavor-access")
    25  }
    26  
    27  func accessActionURL(client *golangsdk.ServiceClient, id string) string {
    28  	return client.ServiceURL("flavors", id, "action")
    29  }
    30  
    31  func extraSpecsListURL(client *golangsdk.ServiceClient, id string) string {
    32  	return client.ServiceURL("flavors", id, "os-extra_specs")
    33  }
    34  
    35  func extraSpecsGetURL(client *golangsdk.ServiceClient, id, key string) string {
    36  	return client.ServiceURL("flavors", id, "os-extra_specs", key)
    37  }
    38  
    39  func extraSpecsCreateURL(client *golangsdk.ServiceClient, id string) string {
    40  	return client.ServiceURL("flavors", id, "os-extra_specs")
    41  }
    42  
    43  func extraSpecUpdateURL(client *golangsdk.ServiceClient, id, key string) string {
    44  	return client.ServiceURL("flavors", id, "os-extra_specs", key)
    45  }
    46  
    47  func extraSpecDeleteURL(client *golangsdk.ServiceClient, id, key string) string {
    48  	return client.ServiceURL("flavors", id, "os-extra_specs", key)
    49  }