/usr/lib/python2.6/site-packages/openstack/object_store/v1
NameSizeModeActions
account.py18310644editdlrm
account.pyc12080644editdlrm
container.py53360644editdlrm
container.pyc33050644editdlrm
obj.py108110644editdlrm
_base.py32830644editdlrm
_proxy.py135510644editdlrm
_proxy.pyc149250644editdlrm
__init__.py00644editdlrm
__init__.pyc1590644editdlrm
Edit: /usr/lib/python2.6/site-packages/openstack/object_store/v1/_proxy.pyc (14925B)
Ńņ 5 Wc@s]ddklZddklZddklZddklZdei fd„ƒYZ dS(i’’’’(taccount(t container(tobj(tproxytProxycBsŃeZd„Zd„Zd„Zd„Zd„Zed„Zd„Z d„Z d„Z d „Z d „Z dd „Zddd „Zd „Zd„Zedd„Zdd„Zdd„Zddd„ZRS(cCs|itiƒS(sxGet metadata for this account. :rtype: :class:`~openstack.object_store.v1.account.Account` (t_headt_accounttAccount(tself((sF/tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pytget_account_metadatascKs,|itidƒ}|i|i|ƒdS(s6Set 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_resourceRRtNonet set_metadatatsession(RtmetadataR((sF/tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pytset_account_metadatascCs,|itidƒ}|i|i|ƒdS(siDelete metadata for this account. :param list keys: The keys of metadata to be deleted. N(R RRR tdelete_metadataR (RtkeysR((sF/tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pytdelete_account_metadata(scKstii|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 ContainertlistR (Rtquery((sF/tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pyt containers0s cKs|iti|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_createRR(Rtattrs((sF/tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pytcreate_container;s cCs|iti|d|ƒdS(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`` tignore_missingN(t_deleteRR(RRR((sF/tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pytdelete_containerGscCs|iti|ƒ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. (RRR(RR((sF/tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pytget_container_metadataXs cKs,|iti|ƒ}|i|i|ƒdS(sSet 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 RRR R (RRRtres((sF/tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pytset_container_metadataescCs,|iti|ƒ}|i|i|ƒdS(sDelete 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 RRRR (RRRR((sF/tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pytdelete_container_metadata~scks`tii|ƒ}tii|idh|id6|}x|D]}|i|_|VqAWdS(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_argsRN( RRtfrom_idt_objtObjectRR tnameR(RRRtobjsR((sF/tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pytobjects‰s    cCsft|tiƒo|idj o|iSn|dj otii|ƒ}|iSt dƒ‚dS(Nscontainer must be specified( t isinstanceR$R%RR RRR#R&t ValueError(RRR((sF/tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pyt_get_container_nameŸs  cCs2|i||ƒ}|iti|dh|d6ƒS(syGet the data associated with an object :param obj: The value can be the name of an object or a :class:`~openstack.object_store.v1.obj.Object` instance. :param container: The value can be the name of a container or a :class:`~openstack.object_store.v1.container.Container` instance. :returns: The contents of the object. Use the :func:`~get_object_metadata` method if you want an object resource. :raises: :class:`~openstack.exceptions.ResourceNotFound` when no resource can be found. R"R(R+t_getR$R%(RRRtcontainer_name((sF/tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pyt get_object©scCsIt|dƒiiƒ}z&|~}|i|i||ƒƒWdQXdS(s)Download the data contained inside an object to disk. :param obj: The value can be the name of an object or a :class:`~openstack.object_store.v1.obj.Object` instance. :param container: The value can be the name of a container or a :class:`~openstack.object_store.v1.container.Container` instance. :param path str: Location to write the object contents. :raises: :class:`~openstack.exceptions.ResourceNotFound` when no resource can be found. twN(topent__exit__t __enter__twriteR.(RRRtpatht_[1]tout((sF/tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pytdownload_object½s &cKsD|iddƒ}|id|ƒ}|itidh|d6|S(sSUpload a new object from attributes :param dict attrs: Keyword arguments which will be used to create a :class:`~openstack.object_store.v1.obj.Object`, comprised of the properties on the Object class. **Required**: A `container` argument must be specified, which is either the ID of a container or a :class:`~openstack.object_store.v1.container.Container` instance. :returns: The results of object creation :rtype: :class:`~openstack.object_store.v1.container.Container` RR"N(tpopR R+RR$R%(RRRR-((sF/tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pyt upload_objectĶscCs t‚dS(sCopy an object.N(tNotImplementedError(R((sF/tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pyt copy_objectįsc Cs<|i||ƒ}|iti|d|dh|d6ƒdS(sŪDelete an object :param obj: The value can be either the name of an object or a :class:`~openstack.object_store.v1.container.Container` instance. :param container: The value can be the ID 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 object does not exist. When set to ``True``, no exception will be set when attempting to delete a nonexistent server. :returns: ``None`` RR"RN(R+RR$R%(RRRRR-((sF/tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pyt delete_objectåscCs2|i||ƒ}|iti|dh|d6ƒS(sGet metadata for an object. :param obj: The value can be the name of an object or a :class:`~openstack.object_store.v1.obj.Object` instance. :param container: The value can be the ID of a container or a :class:`~openstack.object_store.v1.container.Container` instance. :returns: One :class:`~openstack.object_store.v1.obj.Object` :raises: :class:`~openstack.exceptions.ResourceNotFound` when no resource can be found. R"R(R+RR$R%(RRRR-((sF/tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pytget_object_metadataūs cKsK|i||ƒ}|iti|dh|d6ƒ}|i|i|ƒdS(s¼Set metadata for an object. Note: This method will do an extra HEAD call. :param obj: The value can be the name of an object or a :class:`~openstack.object_store.v1.obj.Object` instance. :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` - `content_encoding` - `content_disposition` - `delete_after` - `delete_at` - `is_content_type_detected` R"RN(R+R R$R%R R (RRRRR-R((sF/tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pytset_object_metadata scCsK|i||ƒ}|iti|dh|d6ƒ}|i|i|ƒdS(s™Delete metadata for an object. :param obj: The value can be the name of an object or a :class:`~openstack.object_store.v1.obj.Object` instance. :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. R"RN(R+R R$R%RR (RRRRR-R((sF/tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pytdelete_object_metadata+s N(t__name__t __module__R RRRRtTrueRRR R!R(R+R R.R7R9R;R<R=R>R?(((sF/tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pyRs&          N( topenstack.object_store.v1RRRRRR$t openstackRt BaseProxyR(((sF/tmp/pip-build-wCUybK/openstacksdk/openstack/object_store/v1/_proxy.pyt s