github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/cdn/v1/domains/urls.go (about) 1 package domains 2 3 import "github.com/huaweicloud/golangsdk" 4 5 const ( 6 rootPath = "cdn/domains" 7 ) 8 9 func createURL(sc *golangsdk.ServiceClient) string { 10 return sc.ServiceURL(rootPath) 11 } 12 13 func deleteURL(sc *golangsdk.ServiceClient, domainId string) string { 14 return sc.ServiceURL(rootPath, domainId) 15 } 16 17 func getURL(sc *golangsdk.ServiceClient, domainId string) string { 18 return sc.ServiceURL(rootPath, domainId, "detail") 19 } 20 21 func enableURL(sc *golangsdk.ServiceClient, domainId string) string { 22 return sc.ServiceURL(rootPath, domainId, "enable") 23 } 24 25 func disableURL(sc *golangsdk.ServiceClient, domainId string) string { 26 return sc.ServiceURL(rootPath, domainId, "disable") 27 } 28 29 func originURL(sc *golangsdk.ServiceClient, domainId string) string { 30 return sc.ServiceURL(rootPath, domainId, "origin") 31 }