/usr/lib/python2.6/site-packages/openstack/object_store/v1
Edit: /usr/lib/python2.6/site-packages/openstack/object_store/v1/_proxy.pyc (14925B)
Ńņ
5
Wc @ s] d d k l Z d d k l Z d d k l Z d d k l Z d e i f d YZ
d S( i’’’’( t account( t container( t obj( t proxyt Proxyc B sŃ e Z d Z d Z d Z d Z d Z e d Z d Z d Z
d Z d Z d
Z
d d Z d d d Z d
Z d Z e d d Z d d Z d d Z d d d Z RS( c C s | i t i S( sx Get metadata for this account.
:rtype:
:class:`~openstack.object_store.v1.account.Account`
( t _headt _accountt Account( t self( ( sF /tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pyt get_account_metadata s c K s, | i t i d } | i | i | d S( s6 Set metadata for this account.
:param kwargs metadata: Key/value pairs to be set as metadata
on the container. Custom metadata can be set.
Custom metadata are keys and values defined
by the user.
N( t
_get_resourceR R t Nonet set_metadatat session( R t metadataR ( ( sF /tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pyt set_account_metadata s c C s, | i t i d } | i | i | d S( si Delete metadata for this account.
:param list keys: The keys of metadata to be deleted.
N( R
R R R t delete_metadataR
( R t keysR ( ( sF /tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pyt delete_account_metadata( s c K s t i i | i | S( s+ Obtain Container objects for this account.
:param kwargs query: Optional query parameters to be sent to limit
the resources being returned.
:rtype: A generator of
:class:`~openstack.object_store.v1.container.Container` objects.
( t
_containert Containert listR
( R t query( ( sF /tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pyt
containers0 s c K s | i t i | S( s Create a new container from attributes
:param dict attrs: Keyword arguments which will be used to create
a :class:`~openstack.object_store.v1.container.Container`,
comprised of the properties on the Container class.
:returns: The results of container creation
:rtype: :class:`~openstack.object_store.v1.container.Container`
( t _createR R ( R t attrs( ( sF /tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pyt create_container; s
c C s | i t i | d | d S( s@ Delete a container
:param container: The value can be either the name of a container or a
:class:`~openstack.object_store.v1.container.Container`
instance.
:param bool ignore_missing: When set to ``False``
:class:`~openstack.exceptions.ResourceNotFound` will be
raised when the container does not exist.
When set to ``True``, no exception will be set when
attempting to delete a nonexistent server.
:returns: ``None``
t ignore_missingN( t _deleteR R ( R R R ( ( sF /tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pyt delete_containerG s c C s | i t i | S( s Get metadata for a container
:param container: The value can be the name of a container or a
:class:`~openstack.object_store.v1.container.Container`
instance.
:returns: One :class:`~openstack.object_store.v1.container.Container`
:raises: :class:`~openstack.exceptions.ResourceNotFound`
when no resource can be found.
( R R R ( R R ( ( sF /tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pyt get_container_metadataX s c K s, | i t i | } | i | i | d S( s Set metadata for a container.
:param container: The value can be the name of a container or a
:class:`~openstack.object_store.v1.container.Container`
instance.
:param kwargs metadata: Key/value pairs to be set as metadata
on the container. Both custom and system
metadata can be set. Custom metadata are keys
and values defined by the user. System
metadata are keys defined by the Object Store
and values defined by the user. The system
metadata keys are:
- `content_type`
- `is_content_type_detected`
- `versions_location`
- `read_ACL`
- `write_ACL`
- `sync_to`
- `sync_key`
N( R
R R R R
( R R R t res( ( sF /tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pyt set_container_metadatae s c C s, | i t i | } | i | i | d S( s Delete metadata for a container.
:param container: The value can be the ID of a container or a
:class:`~openstack.object_store.v1.container.Container`
instance.
:param list keys: The keys of metadata to be deleted.
N( R
R R R R
( R R R R ( ( sF /tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pyt delete_container_metadata~ s c k s` t i i | } t i i | i d h | i d 6| } x | D] } | i | _ | VqA Wd S( s Return a generator that yields the Container's objects.
:param container: A container object or the name of a container
that you want to retrieve objects from.
:type container:
:class:`~openstack.object_store.v1.container.Container`
:param kwargs \*\*query: Optional query parameters to be sent to limit
the resources being returned.
:rtype: A generator of
:class:`~openstack.object_store.v1.obj.Object` objects.
t path_argsR N( R R t from_idt _objt ObjectR R
t nameR ( R R R t objsR ( ( sF /tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pyt objects s
c C sf t | t i o | i d j o | i Sn | d j o t i i | } | i St d d S( Ns container must be specified(
t
isinstanceR$ R% R R R R R# R&