github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/cbr/v3/vaults/urls.go (about)

     1  package vaults
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  const resourcePath = "vaults"
     6  
     7  func rootURL(client *golangsdk.ServiceClient) string {
     8  	return client.ServiceURL(resourcePath)
     9  }
    10  
    11  func resourceURL(client *golangsdk.ServiceClient, id string) string {
    12  	return client.ServiceURL(resourcePath, id)
    13  }
    14  
    15  func addResourcesURL(client *golangsdk.ServiceClient, id string) string {
    16  	return client.ServiceURL(resourcePath, id, "addresources")
    17  }
    18  
    19  func removeResourcesURL(client *golangsdk.ServiceClient, id string) string {
    20  	return client.ServiceURL(resourcePath, id, "removeresources")
    21  }
    22  
    23  func migrateResourcesURL(client *golangsdk.ServiceClient, id string) string {
    24  	return client.ServiceURL(resourcePath, id, "migrateresources")
    25  }
    26  
    27  func bindPolicyURL(client *golangsdk.ServiceClient, id string) string {
    28  	return client.ServiceURL(resourcePath, id, "associatepolicy")
    29  }
    30  
    31  func unbindPolicyURL(client *golangsdk.ServiceClient, id string) string {
    32  	return client.ServiceURL(resourcePath, id, "dissociatepolicy")
    33  }