create server helper fields
diff --git a/rackspace/compute/v2/servers/requests.go b/rackspace/compute/v2/servers/requests.go
index 1ebb897..3b5447b 100644
--- a/rackspace/compute/v2/servers/requests.go
+++ b/rackspace/compute/v2/servers/requests.go
@@ -12,13 +12,24 @@
// Name [required] is the name to assign to the newly launched server.
Name string
- // ImageRef [required] is the ID or full URL to the image that contains the server's OS and initial state.
- // Optional if using the boot-from-volume extension.
+ // ImageRef [optional; required if ImageName is not provided] is the ID or full
+ // URL to the image that contains the server's OS and initial state.
+ // Also optional if using the boot-from-volume extension.
ImageRef string
- // FlavorRef [required] is the ID or full URL to the flavor that describes the server's specs.
+ // ImageName [optional; required if ImageRef is not provided] is the name of the
+ // image that contains the server's OS and initial state.
+ // Also optional if using the boot-from-volume extension.
+ ImageName string
+
+ // FlavorRef [optional; required if FlavorName is not provided] is the ID or
+ // full URL to the flavor that describes the server's specs.
FlavorRef string
+ // FlavorName [optional; required if FlavorRef is not provided] is the name of
+ // the flavor that describes the server's specs.
+ FlavorName string
+
// SecurityGroups [optional] lists the names of the security groups to which this server should belong.
SecurityGroups []string
@@ -68,7 +79,9 @@
base := os.CreateOpts{
Name: opts.Name,
ImageRef: opts.ImageRef,
+ ImageName: opts.ImageName,
FlavorRef: opts.FlavorRef,
+ FlavorName: opts.FlavorName,
SecurityGroups: opts.SecurityGroups,
UserData: opts.UserData,
AvailabilityZone: opts.AvailabilityZone,