RS doesn't have a "changedSince" List option.
diff --git a/acceptance/rackspace/compute/v2/flavors_test.go b/acceptance/rackspace/compute/v2/flavors_test.go
index ff60f25..248ab91 100644
--- a/acceptance/rackspace/compute/v2/flavors_test.go
+++ b/acceptance/rackspace/compute/v2/flavors_test.go
@@ -50,6 +50,7 @@
flavor, err := flavors.Get(client, options.flavorID).Extract()
th.AssertNoErr(t, err)
+ t.Logf("Requested flavor:")
t.Logf(" id=[%s]", flavor.ID)
t.Logf(" name=[%s]", flavor.Name)
t.Logf(" disk=[%d]", flavor.Disk)
diff --git a/rackspace/compute/v2/flavors/delegate.go b/rackspace/compute/v2/flavors/delegate.go
index 8ef6f59..2cf31b5 100644
--- a/rackspace/compute/v2/flavors/delegate.go
+++ b/rackspace/compute/v2/flavors/delegate.go
@@ -6,6 +6,30 @@
"github.com/rackspace/gophercloud/pagination"
)
+// ListOpts helps control the results returned by the List() function. For example, a flavor with a
+// minDisk field of 10 will not be returned if you specify MinDisk set to 20.
+type ListOpts struct {
+
+ // MinDisk and MinRAM, if provided, elide flavors that do not meet your criteria.
+ MinDisk int `q:"minDisk"`
+ MinRAM int `q:"minRam"`
+
+ // Marker specifies the ID of the last flavor in the previous page.
+ Marker string `q:"marker"`
+
+ // Limit instructs List to refrain from sending excessively large lists of flavors.
+ Limit int `q:"limit"`
+}
+
+// ToFlavorListQuery formats a ListOpts into a query string.
+func (opts ListOpts) ToFlavorListQuery() (string, error) {
+ q, err := gophercloud.BuildQueryString(opts)
+ if err != nil {
+ return "", err
+ }
+ return q.String(), nil
+}
+
// List enumerates the server images available to your account.
func List(client *gophercloud.ServiceClient, opts os.ListOptsBuilder) pagination.Pager {
return os.List(client, opts)