The zaqar_ui.api.rest.zaqar Module

class zaqar_ui.api.rest.zaqar.Flavor(**kwargs)[source]

Bases: django.views.generic.base.View

API for retrieving a single flavor

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

Get a specific flavor

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

Update a flavor.

Returns the updated flavor object on success.

url_regex = ‘zaqar/flavors/(?P<flavor_name>[^/]+)$’
class zaqar_ui.api.rest.zaqar.Flavors(**kwargs)[source]

Bases: django.views.generic.base.View

API for flavors

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

Delete one or more flavor by name.

Returns HTTP 204 (no content) on successful deletion.

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

Get a list of the Flavors for admin.

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

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

Create a new flavor.

Returns the new flavor object on success.

url_regex = ‘zaqar/flavors/$’
class zaqar_ui.api.rest.zaqar.Messages(**kwargs)[source]

Bases: django.views.generic.base.View

API for messages

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

Get a list of messages

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

Create new messages

url_regex = ‘zaqar/queues/(?P<queue_name>[^/]+)/messages/$’
class zaqar_ui.api.rest.zaqar.Pool(**kwargs)[source]

Bases: django.views.generic.base.View

API for retrieving a single pool

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

Get a specific pool

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

Update a pool.

Returns the updated pool object on success.

url_regex = ‘zaqar/pools/(?P<pool_name>[^/]+)$’
class zaqar_ui.api.rest.zaqar.Pools(**kwargs)[source]

Bases: django.views.generic.base.View

API for pools

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

Delete one or more pool by name.

Returns HTTP 204 (no content) on successful deletion.

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

Get a list of the Pools for admin.

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

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

Create a new pool.

Returns the new pool object on success.

url_regex = ‘zaqar/pools/$’
class zaqar_ui.api.rest.zaqar.Queue(**kwargs)[source]

Bases: django.views.generic.base.View

API for retrieving a single queue

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

Get a specific queue

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

Update a queue.

Returns the updated queue object on success.

url_regex = ‘zaqar/queues/(?P<queue_name>[^/]+)$’
class zaqar_ui.api.rest.zaqar.QueueActions(**kwargs)[source]

Bases: django.views.generic.base.View

API for actions on a single queue

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

Actions for a queue

url_regex = ‘zaqar/queues/(?P<queue_name>[^/]+)/(?P<action>[^/]+)$’
class zaqar_ui.api.rest.zaqar.Queues(**kwargs)[source]

Bases: django.views.generic.base.View

API for queues

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

Delete one or more queue by name.

Returns HTTP 204 (no content) on successful deletion.

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

Get a list of the Queues for a project.

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

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

Create a new queue.

Returns the new queue object on success.

url_regex = ‘zaqar/queues/$’
class zaqar_ui.api.rest.zaqar.Subscription(**kwargs)[source]

Bases: django.views.generic.base.View

API for retrieving a single subscription

post(request, *args, **kw)[source]
url_regex = ‘zaqar/queues/(?P<queue_name>[^/]+)/subscription/(?P<subscriber>[^/]+)/$’
class zaqar_ui.api.rest.zaqar.Subscriptions(**kwargs)[source]

Bases: django.views.generic.base.View

API for Subscriptions

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

Delete one or more queue by name.

Returns HTTP 204 (no content) on successful deletion.

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

Get a list of the Subscriptions for a queue.

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

Create a new subscription.

Returns the new queue object on success.

url_regex = ‘zaqar/queues/(?P<queue_name>[^/]+)/subscriptions/$’
Creative Commons Attribution 3.0 License

Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.