Package comodit_client :: Package api :: Module platform :: Class Image

Class Image


Platform image representation. An image can be created from an Instance with some driver types. The image can later be re-used to duplicate the instance.


See Also:
Platform, Instance
Instance Methods
 
show(self, indent=0)
Prints image's representation to standard output in a user-friendly way.

Inherited from util.json_wrapper.JsonWrapper: __init__, dump_json, get_json, get_real_json, load_json, print_json, set_json

Inherited from object: __long__, __native__, __nonzero__, __unicode__, next

Inherited from object: __delattr__, __format__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __sizeof__, __str__, __subclasshook__

Properties
string image_id
Image's ID.
string name
Image's name.
string create_distribution
Image's "create distribution" flag (telling if a Distribution was created alongside the image).
  settings
Lists the settings of this image.

Inherited from object: __class__

Method Details

show(self, indent=0)

 

Prints image's representation to standard output in a user-friendly way.

Parameters:
  • indent (int) - The number of spaces to put in front of each displayed line.

Property Details

image_id

Image's ID.

Get Method:
unreachable.image_id(self) - Image's ID.
Type:
string

name

Image's name.

Get Method:
unreachable.name(self) - Image's name.
Type:
string

create_distribution

Image's "create distribution" flag (telling if a Distribution was created alongside the image).

Get Method:
unreachable.create_distribution(self) - Image's "create distribution" flag (telling if a Distribution was created alongside the image).
Set Method:
unreachable.create_distribution(self, create_distribution) - Sets "create distribution" flag.
Type:
string

settings

Lists the settings of this image. Note that this list is only defined when creating an image. When reading the image later, settings are not available anymore.

@rtype list of unconnected Settings

Get Method:
unreachable.settings(self) - Lists the settings of this image.
Set Method:
unreachable.settings(self, settings) - Sets the list of settings required when creating an image.