5 // Created by Mike Mayo on 10/1/10.
6 // The OpenStack project is provided under the Apache 2.0 license.
9 #import "ComputeModel.h"
11 #define kCustomImage @"custom"
12 #define kCloudServersIcon @"cloud-servers-icon.png"
14 @interface Image : ComputeModel <NSCoding, NSCopying> {
19 // images from GET /images can be used to make new servers, but the API
20 // doesn't provide any sort of flag for this, so we'll store it ourselves
24 @property (nonatomic, retain) NSString *status;
25 @property (nonatomic, retain) NSDate *created;
26 @property (nonatomic, retain) NSDate *updated;
27 @property (nonatomic, assign) BOOL canBeLaunched;
29 + (Image *)fromJSON:(NSDictionary *)dict;
31 // returns part of the name of the logo (ex: "ubuntu")
32 // used to look up images for views
33 - (NSString *)logoPrefix;