glance.api.v2.metadef_objects module

class glance.api.v2.metadef_objects.MetadefObjectsController(db_api=None, policy_enforcer=None, notifier=None)[source]

Bases: object

create(req, metadata_object, namespace)[source]
delete(req, namespace, object_name)[source]
index(req, namespace, marker=None, limit=None, sort_key='created_at', sort_dir='desc', filters=None)[source]
show(req, namespace, object_name)[source]
update(req, metadata_object, namespace, object_name)[source]
class glance.api.v2.metadef_objects.RequestDeserializer(schema=None)[source]

Bases: glance.common.wsgi.JSONRequestDeserializer

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

Bases: glance.common.wsgi.JSONResponseSerializer

create(response, metadata_object)[source]
delete(response, result)[source]
index(response, result)[source]
show(response, metadata_object)[source]
update(response, metadata_object)[source]
glance.api.v2.metadef_objects.create_resource()[source]

Metadef objects resource factory method

glance.api.v2.metadef_objects.get_collection_schema()[source]
glance.api.v2.metadef_objects.get_object_href(namespace_name, metadef_object)[source]
glance.api.v2.metadef_objects.get_schema()[source]