pyrax
Python Bindings for the Rackspace Cloud
 All Classes Namespaces Files Functions Variables Properties
Public Member Functions
Image Class Reference

This class represents an Image. More...

Inheritance diagram for Image:
BaseResource FakeImage

List of all members.

Public Member Functions

def __init__
def update
 Accepts a and dictionary of key/value pairs, where the key is an attribute of the image, and the value is the desired new value for that image.
def change_name
 Image name can be changed via the update() method.
def list_members
 Returns a list of all Members for this image.
def get_member
 Returns the ImageMember object representing the specified member.
def add_member
 Adds the project (tenant) represented by the project_id as a member of this image.
def delete_member
 Removes the project (tenant) represented by the project_id as a member of this image.
def add_tag
 Adds the tag to this image.
def delete_tag
 Deletes the tag from this image.

Detailed Description

This class represents an Image.


Constructor & Destructor Documentation

def __init__ (   self,
  manager,
  info,
  key = None,
  loaded = False,
  member_manager_class = None,
  tag_manager_class = None 
)

Member Function Documentation

def add_member (   self,
  project_id 
)

Adds the project (tenant) represented by the project_id as a member of this image.

def add_tag (   self,
  tag 
)

Adds the tag to this image.

def change_name (   self,
  newname 
)

Image name can be changed via the update() method.

This is simply a convenience method.

def delete_member (   self,
  project_id 
)

Removes the project (tenant) represented by the project_id as a member of this image.

def delete_tag (   self,
  tag 
)

Deletes the tag from this image.

def get_member (   self,
  member 
)

Returns the ImageMember object representing the specified member.

def list_members (   self)

Returns a list of all Members for this image.

def update (   self,
  value_dict 
)

Accepts a and dictionary of key/value pairs, where the key is an attribute of the image, and the value is the desired new value for that image.


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Properties