github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/networking/v2/peerings/urls.go (about) 1 package peerings 2 3 import "github.com/huaweicloud/golangsdk" 4 5 const ( 6 resourcePath = "peerings" 7 rootpath = "vpc" 8 ) 9 10 func rootURL(c *golangsdk.ServiceClient) string { 11 return c.ServiceURL(rootpath, resourcePath) 12 } 13 14 func resourceURL(c *golangsdk.ServiceClient, id string) string { 15 return c.ServiceURL(rootpath, resourcePath, id) 16 } 17 18 func acceptURL(c *golangsdk.ServiceClient, id string) string { 19 return c.ServiceURL(rootpath, resourcePath, id, "accept") 20 } 21 22 func rejectURL(c *golangsdk.ServiceClient, id string) string { 23 return c.ServiceURL(rootpath, resourcePath, id, "reject") 24 }