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

     1  package services
     2  
     3  import "github.com/huaweicloud/golangsdk"
     4  
     5  const (
     6  	rootPath = "vpc-endpoint-services"
     7  )
     8  
     9  func rootURL(c *golangsdk.ServiceClient) string {
    10  	return c.ServiceURL(rootPath)
    11  }
    12  
    13  func resourceURL(c *golangsdk.ServiceClient, serviceID string) string {
    14  	return c.ServiceURL(rootPath, serviceID)
    15  }
    16  
    17  func publicResourceURL(c *golangsdk.ServiceClient) string {
    18  	return c.ServiceURL(rootPath, "public")
    19  }
    20  
    21  func connectionsURL(c *golangsdk.ServiceClient, serviceID string) string {
    22  	return c.ServiceURL(rootPath, serviceID, "connections")
    23  }
    24  
    25  func connectionsActionURL(c *golangsdk.ServiceClient, serviceID string) string {
    26  	return c.ServiceURL(rootPath, serviceID, "connections/action")
    27  }
    28  
    29  func permissionsURL(c *golangsdk.ServiceClient, serviceID string) string {
    30  	return c.ServiceURL(rootPath, serviceID, "permissions")
    31  }
    32  
    33  func permissionsActionURL(c *golangsdk.ServiceClient, serviceID string) string {
    34  	return c.ServiceURL(rootPath, serviceID, "permissions/action")
    35  }