package bgpvpns

import "github.com/gophercloud/gophercloud"

const urlBase = "bgpvpn/bgpvpns"

// return /v2.0/bgpvpn/bgpvpns/{bgpvpn-id}
func resourceURL(c *gophercloud.ServiceClient, id string) string {
	return c.ServiceURL(urlBase, id)
}

// return /v2.0/bgpvpn/bgpvpns
func rootURL(c *gophercloud.ServiceClient) string {
	return c.ServiceURL(urlBase)
}

// return /v2.0/bgpvpn/bgpvpns/{bgpvpn-id}
func getURL(c *gophercloud.ServiceClient, id string) string {
	return resourceURL(c, id)
}

// return /v2.0/bgpvpn/bgpvpns
func listURL(c *gophercloud.ServiceClient) string {
	return rootURL(c)
}

// return /v2.0/bgpvpn/bgpvpns
func createURL(c *gophercloud.ServiceClient) string {
	return rootURL(c)
}

// return /v2.0/bgpvpn/bgpvpns/{bgpvpn-id}
func deleteURL(c *gophercloud.ServiceClient, id string) string {
	return resourceURL(c, id)
}

// return /v2.0/bgpvpn/bgpvpns/{bgpvpn-id}
func updateURL(c *gophercloud.ServiceClient, id string) string {
	return resourceURL(c, id)
}

// return /v2.0/bgpvpn/bgpvpns/{bgpvpn-id}/network_associations
func networkAssociationsURL(c *gophercloud.ServiceClient, bgpVpnID string) string {
	return c.ServiceURL(urlBase, bgpVpnID, "network_associations")
}

// return /v2.0/bgpvpn/bgpvpns/{bgpvpn-id}/network_associations/{network-association-id}
func networkAssociationResourceURL(c *gophercloud.ServiceClient, bgpVpnID string, id string) string {
	return c.ServiceURL(urlBase, bgpVpnID, "network_associations", id)
}

// return /v2.0/bgpvpn/bgpvpns/{bgpvpn-id}/network_associations
func listNetworkAssociationsURL(c *gophercloud.ServiceClient, bgpVpnID string) string {
	return networkAssociationsURL(c, bgpVpnID)
}

// return /v2.0/bgpvpn/bgpvpns/{bgpvpn-id}/network_associations
func createNetworkAssociationURL(c *gophercloud.ServiceClient, bgpVpnID string) string {
	return networkAssociationsURL(c, bgpVpnID)
}

// return /v2.0/bgpvpn/bgpvpns/{bgpvpn-id}/network_associations/{network-association-id}
func getNetworkAssociationURL(c *gophercloud.ServiceClient, bgpVpnID string, id string) string {
	return networkAssociationResourceURL(c, bgpVpnID, id)
}

// return /v2.0/bgpvpn/bgpvpns/{bgpvpn-id}/network_associations/{network-association-id}
func deleteNetworkAssociationURL(c *gophercloud.ServiceClient, bgpVpnID string, id string) string {
	return networkAssociationResourceURL(c, bgpVpnID, id)
}

// return /v2.0/bgpvpn/bgpvpns/{bgpvpn-id}/router_associations
func routerAssociationsURL(c *gophercloud.ServiceClient, bgpVpnID string) string {
	return c.ServiceURL(urlBase, bgpVpnID, "router_associations")
}

// return /v2.0/bgpvpn/bgpvpns/{bgpvpn-id}/router_associations/{router-association-id}
func routerAssociationResourceURL(c *gophercloud.ServiceClient, bgpVpnID string, id string) string {
	return c.ServiceURL(urlBase, bgpVpnID, "router_associations", id)
}

// return /v2.0/bgpvpn/bgpvpns/{bgpvpn-id}/router_associations
func listRouterAssociationsURL(c *gophercloud.ServiceClient, bgpVpnID string) string {
	return routerAssociationsURL(c, bgpVpnID)
}

// return /v2.0/bgpvpn/bgpvpns/{bgpvpn-id}/router_associations
func createRouterAssociationURL(c *gophercloud.ServiceClient, bgpVpnID string) string {
	return routerAssociationsURL(c, bgpVpnID)
}

// return /v2.0/bgpvpn/bgpvpns/{bgpvpn-id}/router_associations/{router-association-id}
func getRouterAssociationURL(c *gophercloud.ServiceClient, bgpVpnID string, id string) string {
	return routerAssociationResourceURL(c, bgpVpnID, id)
}

// return /v2.0/bgpvpn/bgpvpns/{bgpvpn-id}/router_associations/{router-association-id}
func updateRouterAssociationURL(c *gophercloud.ServiceClient, bgpVpnID string, id string) string {
	return routerAssociationResourceURL(c, bgpVpnID, id)
}

// return /v2.0/bgpvpn/bgpvpns/{bgpvpn-id}/router_associations/{router-association-id}
func deleteRouterAssociationURL(c *gophercloud.ServiceClient, bgpVpnID string, id string) string {
	return routerAssociationResourceURL(c, bgpVpnID, id)
}

// return /v2.0/bgpvpn/bgpvpns/{bgpvpn-id}/port_associations
func portAssociationsURL(c *gophercloud.ServiceClient, bgpVpnID string) string {
	return c.ServiceURL(urlBase, bgpVpnID, "port_associations")
}

// return /v2.0/bgpvpn/bgpvpns/{bgpvpn-id}/port_associations/{port-association-id}
func portAssociationResourceURL(c *gophercloud.ServiceClient, bgpVpnID string, id string) string {
	return c.ServiceURL(urlBase, bgpVpnID, "port_associations", id)
}

// return /v2.0/bgpvpn/bgpvpns/{bgpvpn-id}/port_associations
func listPortAssociationsURL(c *gophercloud.ServiceClient, bgpVpnID string) string {
	return portAssociationsURL(c, bgpVpnID)
}

// return /v2.0/bgpvpn/bgpvpns/{bgpvpn-id}/port_associations
func createPortAssociationURL(c *gophercloud.ServiceClient, bgpVpnID string) string {
	return portAssociationsURL(c, bgpVpnID)
}

// return /v2.0/bgpvpn/bgpvpns/{bgpvpn-id}/port_associations/{port-association-id}
func getPortAssociationURL(c *gophercloud.ServiceClient, bgpVpnID string, id string) string {
	return portAssociationResourceURL(c, bgpVpnID, id)
}

// return /v2.0/bgpvpn/bgpvpns/{bgpvpn-id}/port_associations/{port-association-id}
func updatePortAssociationURL(c *gophercloud.ServiceClient, bgpVpnID string, id string) string {
	return portAssociationResourceURL(c, bgpVpnID, id)
}

// return /v2.0/bgpvpn/bgpvpns/{bgpvpn-id}/port_associations/{port-association-id}
func deletePortAssociationURL(c *gophercloud.ServiceClient, bgpVpnID string, id string) string {
	return portAssociationResourceURL(c, bgpVpnID, id)
}
