github.com/huaweicloud/golangsdk@v0.0.0-20210831081626-d823fe11ceba/openstack/geminidb/v3/instances/urls.go (about) 1 package instances 2 3 import "github.com/huaweicloud/golangsdk" 4 5 func createURL(c *golangsdk.ServiceClient) string { 6 return c.ServiceURL("instances") 7 } 8 9 func deleteURL(c *golangsdk.ServiceClient, instanceID string) string { 10 return c.ServiceURL("instances", instanceID) 11 } 12 13 func extendURL(c *golangsdk.ServiceClient, instanceID string) string { 14 return c.ServiceURL("instances", instanceID, "extend-volume") 15 } 16 17 func enlargeNodeURL(c *golangsdk.ServiceClient, instanceID string) string { 18 return c.ServiceURL("instances", instanceID, "enlarge-node") 19 } 20 21 func reduceNodeURL(c *golangsdk.ServiceClient, instanceID string) string { 22 return c.ServiceURL("instances", instanceID, "reduce-node") 23 } 24 25 func updateNameURL(c *golangsdk.ServiceClient, instanceID string) string { 26 return c.ServiceURL("instances", instanceID, "name") 27 } 28 29 func updatePassURL(c *golangsdk.ServiceClient, instanceID string) string { 30 return c.ServiceURL("instances", instanceID, "password") 31 } 32 33 func resizeURL(c *golangsdk.ServiceClient, instanceID string) string { 34 return c.ServiceURL("instances", instanceID, "resize") 35 } 36 37 func updateSgURL(c *golangsdk.ServiceClient, instanceID string) string { 38 return c.ServiceURL("instances", instanceID, "security-group") 39 } 40 41 func listURL(c *golangsdk.ServiceClient) string { 42 return c.ServiceURL("instances") 43 } 44 45 func listDehURL(c *golangsdk.ServiceClient) string { 46 return c.ServiceURL("dedicated-resources") 47 }