The openstack_dashboard.api.rest.swift Module
API for the swift service.
-
class openstack_dashboard.api.rest.swift.Container(**kwargs)[source]
Bases: django.views.generic.base.View
API for swift container level information
-
delete(request, *args, **kw)[source]
-
get(request, *args, **kw)[source]
Get the container details
-
post(request, *args, **kw)[source]
-
put(request, *args, **kw)[source]
-
url_regex = 'swift/containers/(?P<container>[^/]+)/metadata/$'
-
class openstack_dashboard.api.rest.swift.Containers(**kwargs)[source]
Bases: django.views.generic.base.View
API for swift container listing for an account
-
get(request, *args, **kw)[source]
Get the list of containers for this account
TODO(neillc): Add pagination
-
url_regex = 'swift/containers/$'
-
class openstack_dashboard.api.rest.swift.Info(**kwargs)[source]
Bases: django.views.generic.base.View
API for information about the Swift installation.
-
get(request, *args, **kw)[source]
Get information about the Swift installation.
-
url_regex = 'swift/info/$'
-
class openstack_dashboard.api.rest.swift.Object(**kwargs)[source]
Bases: django.views.generic.base.View
API for a single swift object or pseudo-folder
-
delete(request, *args, **kw)[source]
-
get(request, container, object_name)[source]
Get the object contents.
-
post(*args, **kwargs)[source]
Create or replace an object or pseudo-folder
Parameters: |
- request –
- container –
- object_name –
|
If the object_name (ie. POST path) ends in a ‘/’ then a folder is
created, rather than an object. Any file content passed along with
the request will be ignored in that case.
POST parameter:
Parameters: | file – the file data for the upload. |
Returns: | |
-
url_regex = 'swift/containers/(?P<container>[^/]+)/object/(?P<object_name>.+)$'
-
class openstack_dashboard.api.rest.swift.ObjectCopy(**kwargs)[source]
Bases: django.views.generic.base.View
API to copy a swift object
-
post(request, *args, **kw)[source]
-
url_regex = 'swift/containers/(?P<container>[^/]+)/copy/(?P<object_name>.+)$'
-
class openstack_dashboard.api.rest.swift.ObjectMetadata(**kwargs)[source]
Bases: django.views.generic.base.View
API for a single swift object
-
get(request, *args, **kw)[source]
-
url_regex = 'swift/containers/(?P<container>[^/]+)/metadata/(?P<object_name>.+)$'
-
class openstack_dashboard.api.rest.swift.Objects(**kwargs)[source]
Bases: django.views.generic.base.View
API for a list of swift objects
-
get(request, *args, **kw)[source]
Get object information.
-
url_regex = 'swift/containers/(?P<container>[^/]+)/objects/$'
-
class openstack_dashboard.api.rest.swift.UploadObjectForm(data=None, files=None, auto_id=u'id_%s', prefix=None, initial=None, error_class=<class 'django.forms.utils.ErrorList'>, label_suffix=None, empty_permitted=False)[source]
Bases: django.forms.forms.Form
-
base_fields = OrderedDict([('file', <django.forms.fields.FileField object at 0x7f10357a4350>)])
-
declared_fields = OrderedDict([('file', <django.forms.fields.FileField object at 0x7f10357a4350>)])
-
media