pyrax
Python Bindings for the Rackspace Cloud
|
This class represents an Image. More...
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. |
This class represents an Image.
def __init__ | ( | self, | |
manager, | |||
info, | |||
key = None , |
|||
loaded = False , |
|||
member_manager_class = None , |
|||
tag_manager_class = None |
|||
) |
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 | |||
) |
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.