openstack.compute.v2.image¶
The Image Class¶
The Image class inherits from Resource.
-
class
openstack.compute.v2.image.Image(attrs=None, loaded=False)¶ Construct a Resource to interact with a service’s REST API.
The Resource class offers two class methods to construct resource objects, which are preferrable to entering through this initializer. See
Resource.new()andResource.existing().Parameters: - attrs (dict) – The attributes to set when constructing this Resource.
- loaded (bool) –
Trueif this Resource exists on the server,Falseif it does not.
-
links= None¶ Links pertaining to this image. This is a list of dictionaries, each including keys
hrefandrel, and optionallytype.
-
name= None¶ The name of this image.
-
created_at= None¶ Timestamp when the image was created.
-
metadata= None¶ Metadata pertaining to this image. Type: dict
-
min_disk= None¶ The mimimum disk size. Type: int
-
min_ram= None¶ The minimum RAM size. Type: int
-
progress= None¶ If this image is still building, its progress is represented here. Once an image is created, progres will be 100. Type: int
-
status= None¶ The status of this image.
-
updated_at= None¶ Timestamp when the image was updated.
-
size= None¶ Size of the image in bytes. Type: int
The ImageDetail Class¶
The ImageDetail class inherits from
Image.
-
class
openstack.compute.v2.image.ImageDetail(attrs=None, loaded=False)¶ Construct a Resource to interact with a service’s REST API.
The Resource class offers two class methods to construct resource objects, which are preferrable to entering through this initializer. See
Resource.new()andResource.existing().Parameters: - attrs (dict) – The attributes to set when constructing this Resource.
- loaded (bool) –
Trueif this Resource exists on the server,Falseif it does not.