func (c context) resizeInstance() { id := c.instanceID err := instances.Resize(c.client, id, "3").ExtractErr() c.AssertNoErr(err) c.Logf("Resizing %s. Waiting...", id) c.WaitUntilActive(id) c.Logf("Resized %s with flavorRef %s", id, "2") }
// Resize changes the memory size of the instance, assuming a valid // flavorRef is provided. It will also restart the MySQL service. func Resize(client *gophercloud.ServiceClient, id, flavorRef string) os.ActionResult { return os.Resize(client, id, flavorRef) }