glance.api.glare.v0_1 package

Submodules

glance.api.glare.v0_1.glare module

class glance.api.glare.v0_1.glare.ArtifactsController(db_api=None, store_api=None, plugins=None)[source]

Bases: object

create(req, *args, **kwargs)[source]
delete(req, *args, **kwargs)[source]
download(req, id, type_name, type_version, attr, index, **kwargs)[source]
list(req, type_name, type_version, state, **kwargs)[source]

Retrieves a list of artifacts that match some params

list_artifact_types(req)[source]
publish(req, *args, **kwargs)[source]
show(req, type_name, type_version, show_level=3, **kwargs)[source]

Retrieves one artifact by id with its dependencies

update(req, *args, **kwargs)[source]

Performs an update via json patch request

update_property(req, *args, **kwargs)[source]

Updates a single property specified by request url.

upload(req, *args, **kwargs)[source]
class glance.api.glare.v0_1.glare.RequestDeserializer(schema=None, plugins=None)[source]

Bases: glance.common.wsgi.JSONRequestDeserializer, glance.common.jsonpatchvalidator.JsonPatchValidatorMixin

create(req)[source]
default(request)[source]
download(req)[source]
list(req)[source]
list_artifact_types(req)[source]
show(req)[source]
update(req)[source]
update_property(req)[source]
upload(req)[source]
validate_body(request)[source]
class glance.api.glare.v0_1.glare.ResponseSerializer(schema=None)[source]

Bases: glance.common.wsgi.JSONResponseSerializer

ARTIFACTS_ENDPOINT = '/v0.1/artifacts'
create(response, artifact)[source]
default(response, res)[source]
delete(response, result)[source]
download(response, blob)[source]
fields = ['id', 'name', 'version', 'type_name', 'type_version', 'visibility', 'state', 'owner', 'scope', 'created_at', 'updated_at', 'tags', 'dependencies', 'blobs', 'properties']
list(response, res)[source]
list_artifact_types(response, res)[source]
glance.api.glare.v0_1.glare.create_resource()[source]

Images resource factory method

glance.api.glare.v0_1.router module

class glance.api.glare.v0_1.router.API(mapper)[source]

Bases: glance.common.wsgi.Router

Module contents