Esempio n. 1
0
    def update(self, image, **kwargs):
        """
        Update image data.

        Supported arguments include ``name`` and ``is_public``.
        """
        params = {"image": kwargs}
        params['image']['id'] = base.getid(image)
        url = "/images/%s" % base.getid(image)
        return self._update(url, params, "image")
Esempio n. 2
0
 def list_members(self, image):
     return self.api.members.members_for_image(base.getid(image))
Esempio n. 3
0
 def delete(self, image):
     """
     Delete a image.
     """
     return self._delete("/images/%s" % base.getid(image))
Esempio n. 4
0
 def get(self, image):
     return self._get("/images/%s" % base.getid(image), "image")
Esempio n. 5
0
 def list_roles(self, tenant=None):
     return self.manager.list_roles(self.id, base.getid(tenant))