github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/drs/v2/replicationconsistencygroups/urls.go (about) 1 package replicationconsistencygroups 2 3 import "github.com/huaweicloud/golangsdk" 4 5 // endpoint/os-vendor-replication-consistency-groups 6 const resourcePath = "os-vendor-replication-consistency-groups" 7 8 // createURL will build the rest query url of creation 9 func createURL(client *golangsdk.ServiceClient) string { 10 return client.ServiceURL(resourcePath) 11 } 12 13 // deleteURL will build the url of deletion 14 func deleteURL(client *golangsdk.ServiceClient, id string) string { 15 return client.ServiceURL(resourcePath, id) 16 } 17 18 // getURL will build the get url of get function 19 func getURL(client *golangsdk.ServiceClient, id string) string { 20 return client.ServiceURL(resourcePath, id) 21 } 22 23 // listURL will build the list url of list function 24 func listURL(client *golangsdk.ServiceClient) string { 25 return client.ServiceURL(resourcePath) 26 } 27 28 // updateURL will build the url of update 29 func updateURL(c *golangsdk.ServiceClient, id string) string { 30 return c.ServiceURL(resourcePath, id) 31 } 32 33 // actionURL will build the url of action 34 func actionURL(c *golangsdk.ServiceClient, id string) string { 35 return c.ServiceURL(resourcePath, id, "action") 36 }