barbican_ui.api package

Submodules

barbican_ui.api.client module

class barbican_ui.api.client.StubResponse(info)[source]

Bases: object

to_dict()[source]
barbican_ui.api.client.apiclient(*args, **kwargs)[source]
barbican_ui.api.client.secret_create(request, **kwargs)[source]
barbican_ui.api.client.secret_delete(request, id)[source]
barbican_ui.api.client.secret_list(request, limit=None, marker=None, sort_key=None, sort_dir=None, detail=True)[source]
barbican_ui.api.client.secret_show(request, id)[source]
barbican_ui.api.client.secret_update(request, id, **kwargs)[source]

barbican_ui.api.rest_api module

class barbican_ui.api.rest_api.Secret(**kwargs)[source]

Bases: django.views.generic.base.View

API for retrieving a single Secret

get(request, *args, **kw)[source]

Get a specific secret

post(request, *args, **kw)[source]

Update a Secret.

Returns the updated Secret object on success.

url_regex = 'barbican/secrets/(?P<id>[^/]+)$'
class barbican_ui.api.rest_api.Secrets(**kwargs)[source]

Bases: django.views.generic.base.View

API for Secrets

delete(request, *args, **kw)[source]

Delete one or more Secrets by id.

Returns HTTP 204 (no content) on successful deletion.

get(request, *args, **kw)[source]

Get a list of the Secrets for a project.

The returned result is an object with property ‘items’ and each item under this is a Secret.

put(request, *args, **kw)[source]

Create a new Secret.

Returns the new Secret object on success.

url_regex = 'barbican/secrets/$'
barbican_ui.api.rest_api.change_to_id(obj)[source]

Change key named ‘uuid’ to ‘id’

API returns objects with a field called ‘uuid’ many of Horizons directives however expect objects to have a field called ‘id’.

Module contents