glance.api.v2 package¶
Subpackages¶
- glance.api.v2.model package
- Submodules
- glance.api.v2.model.metadef_namespace module
- glance.api.v2.model.metadef_object module
- glance.api.v2.model.metadef_property_item_type module
- glance.api.v2.model.metadef_property_type module
- glance.api.v2.model.metadef_resource_type module
- glance.api.v2.model.metadef_tag module
- Module contents
Submodules¶
glance.api.v2.image_actions module¶
-
class
glance.api.v2.image_actions.
ImageActionsController
(db_api=None, policy_enforcer=None, notifier=None, store_api=None)[source]¶ Bases:
object
glance.api.v2.image_data module¶
-
class
glance.api.v2.image_data.
ImageDataController
(db_api=None, store_api=None, policy_enforcer=None, notifier=None, gateway=None)[source]¶ Bases:
object
glance.api.v2.image_members module¶
-
class
glance.api.v2.image_members.
ImageMembersController
(db_api=None, policy_enforcer=None, notifier=None, store_api=None)[source]¶ Bases:
object
-
create
(req, *args, **kwargs)[source]¶ Adds a membership to the image. :param req: the Request object coming from the wsgi layer :param image_id: the image identifier :param member_id: the member identifier :returns: The response body is a mapping of the following form
{'member_id': <MEMBER>, 'image_id': <IMAGE>, 'status': <MEMBER_STATUS> 'created_at': .., 'updated_at': ..}
-
index
(req, image_id)[source]¶ Return a list of dictionaries indicating the members of the image, i.e., those tenants the image is shared with.
Parameters: - req – the Request object coming from the wsgi layer
- image_id – The image identifier
Returns: The response body is a mapping of the following form
{'members': [ {'member_id': <MEMBER>, 'image_id': <IMAGE>, 'status': <MEMBER_STATUS>, 'created_at': .., 'updated_at': ..}, .. ]}
-
show
(req, image_id, member_id)[source]¶ Returns the membership of the tenant wrt to the image_id specified.
Parameters: - req – the Request object coming from the wsgi layer
- image_id – The image identifier
Returns: The response body is a mapping of the following form
{'member_id': <MEMBER>, 'image_id': <IMAGE>, 'status': <MEMBER_STATUS> 'created_at': .., 'updated_at': ..}
-
update
(req, *args, **kwargs)[source]¶ Adds a membership to the image. :param req: the Request object coming from the wsgi layer :param image_id: the image identifier :param member_id: the member identifier :returns: The response body is a mapping of the following form
{'member_id': <MEMBER>, 'image_id': <IMAGE>, 'status': <MEMBER_STATUS>, 'created_at': .., 'updated_at': ..}
-
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
glance.api.v2.metadef_namespaces module¶
-
class
glance.api.v2.metadef_namespaces.
NamespaceController
(db_api=None, policy_enforcer=None, notifier=None)[source]¶ Bases:
object
glance.api.v2.metadef_objects module¶
-
class
glance.api.v2.metadef_objects.
MetadefObjectsController
(db_api=None, policy_enforcer=None, notifier=None)[source]¶ Bases:
object
glance.api.v2.metadef_properties module¶
-
class
glance.api.v2.metadef_properties.
NamespacePropertiesController
(db_api=None, policy_enforcer=None, notifier=None)[source]¶ Bases:
object
glance.api.v2.metadef_resource_types module¶
-
class
glance.api.v2.metadef_resource_types.
ResourceTypeController
(db_api=None, policy_enforcer=None, notifier=None)[source]¶ Bases:
object
glance.api.v2.router module¶
-
class
glance.api.v2.router.
API
(mapper)[source]¶ Bases:
glance.common.wsgi.Router
WSGI router for Glance v2 API requests.