glance.api.v2.images module

class glance.api.v2.images.ImagesController(db_api=None, policy_enforcer=None, notifier=None, store_api=None)[source]

Bases: object

create(req, image, extra_properties, tags)[source]
delete(req, image_id)[source]
import_image(req, image_id, body)[source]
index(req, marker=None, limit=None, sort_key=None, sort_dir=None, filters=None, member_status='accepted')[source]
show(req, image_id)[source]
update(req, image_id, changes)[source]
class glance.api.v2.images.RequestDeserializer(schema=None)[source]

Bases: glance.common.wsgi.JSONRequestDeserializer

create(request)[source]
import_image(request)[source]
index(request)[source]
update(request)[source]
class glance.api.v2.images.ResponseSerializer(schema=None)[source]

Bases: glance.common.wsgi.JSONResponseSerializer

create(response, image)[source]
delete(response, result)[source]
import_image(response, result)[source]
index(response, result)[source]
show(response, image)[source]
update(response, image)[source]
glance.api.v2.images.create_resource(custom_properties=None)[source]

Images resource factory method

glance.api.v2.images.get_base_properties()[source]
glance.api.v2.images.get_collection_schema(custom_properties=None)[source]
glance.api.v2.images.get_schema(custom_properties=None)[source]
glance.api.v2.images.load_custom_properties()[source]

Find the schema properties files and load them into a dict.