/usr/lib/python2.6/site-packages/openstack
NameSizeModeActions
block_store/-0755rm
cluster/-0755rm
compute/-0755rm
database/-0755rm
identity/-0755rm
image/-0755rm
key_manager/-0755rm
message/-0755rm
metric/-0755rm
network/-0755rm
object_store/-0755rm
orchestration/-0755rm
telemetry/-0755rm
tests/-0755rm
connection.py113370644editdlrm
connection.pyc106290644editdlrm
exceptions.py31140644editdlrm
exceptions.pyc47190644editdlrm
format.py46130644editdlrm
format.pyc41750644editdlrm
module_loader.py9890644editdlrm
module_loader.pyc7290644editdlrm
profile.py70080644editdlrm
profile.pyc79800644editdlrm
proxy.py136030644editdlrm
proxy.pyc129350644editdlrm
proxy2.py144540644editdlrm
proxy2.pyc141080644editdlrm
resource.py391070644editdlrm
resource.pyc382400644editdlrm
resource2.py297640644editdlrm
service_filter.py53330644editdlrm
service_filter.pyc69030644editdlrm
session.py41990644editdlrm
session.pyc42960644editdlrm
utils.py28640644editdlrm
utils.pyc28080644editdlrm
__init__.py6630644editdlrm
__init__.pyc2900644editdlrm
Edit: /usr/lib/python2.6/site-packages/openstack/proxy.pyc (12935B)
Ñò 5 Wc@sFddklZddklZed„Zdefd„ƒYZdS(iÿÿÿÿ(t exceptions(tresourcecs‡fd†}|S(Ncsd‡‡fd†}|S(Ncsœˆo8|dj o+t|tiƒ otd|iƒ‚nHt|tiƒo4t||ƒ o#td|i|iifƒ‚nˆ|||||ŽS(NsA %s must be passedsExpected %s but received %s(tNonet isinstanceRtResourcet ValueErrort__name__t __class__(tselftexpectedtactualtargstkwargs(tmethodtstrict(s5/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy.pytchecks(R(R R(R(R s5/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy.pytwraps ((RR((Rs5/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy.pyt_check_resources t BaseProxycBsÔeZd„Zdd„Zded„Zedeƒded„ƒZ edeƒdd„ƒZ dd„Z edeƒdddd„ƒZ dedd„Z ddd „Zgd d d „Zd d d „ZRS(cCs ||_dS(N(tsession(RR((s5/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy.pyt__init__+scCs‡|djo |ƒ}nFt||ƒp/htii|ƒ|i6}|i|}n|}|dj o|idt|n|S(s\Get a resource object to work on :param resource_type: The type of resource to operate on. This should be a subclass of :class:`~openstack.resource.Resource` with a ``from_id`` method. :param value: The ID of a resource or an object of ``resource_type`` class if using an existing instance, or None to create a new instance. :param path_args: A dict containing arguments for forming the request URL, if needed. t ignore_noneN( RRRRtget_idt id_attributetexistingt update_attrstTrue(Rt resource_typetvaluet path_argstresR ((s5/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy.pyt _get_resource.s   cCs|i|i|d|d|ƒS(sÝFind a resource :param name_or_id: The name or ID of a resource to find. :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the resource does not exist. When set to ``True``, None will be returned when attempting to find a nonexistent resource. :returns: An instance of ``resource_type`` or None Rtignore_missing(tfindR(RRt name_or_idRR ((s5/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy.pyt_findMs RcCs´|i|||ƒ}y|i|iƒ}Wn‚tij os}|od Stidd|i|fd|id|i d|i d|i d|i d|i d |iƒ‚nX|S( sóDelete a resource :param resource_type: The type of resource to delete. This should be a :class:`~openstack.resource.Resource` subclass with a ``from_id`` method. :param value: The value to delete. Can be either the ID of a resource or a :class:`~openstack.resource.Resource` subclass. :param path_args: A dict containing arguments for forming the request URL, if needed. :param bool ignore_missing: When set to ``False`` :class:`~openstack.exceptions.ResourceNotFound` will be raised when the resource does not exist. When set to ``True``, no exception will be set when attempting to delete a nonexistent resource. :returns: The result of the ``delete`` :raises: ``ValueError`` if ``value`` is a :class:`~openstack.resource.Resource` that doesn't match the ``resource_type``. :class:`~openstack.exceptions.ResourceNotFound` when ignore_missing if ``False`` and a nonexistent resource is attempted to be deleted. tmessagesNo %s found for %stdetailstresponset request_idturlR t http_statustcauseN(RtdeleteRRtNotFoundExceptionRtResourceNotFoundRR%R&R'R(R R)R*(RRRRR Rtrvte((s5/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy.pyt_delete^s cKs2|i|||ƒ}|i|ƒ|i|iƒS(sñUpdate a resource :param resource_type: The type of resource to update. :type resource_type: :class:`~openstack.resource.Resource` :param value: The resource to update. This must either be a :class:`~openstack.resource.Resource` or an id that corresponds to a resource. :param path_args: A dict containing arguments for forming the request URL, if needed. :param **attrs: Attributes to update on a Resource object. These attributes will be used in conjunction with ``resource_type``. :returns: The result of the ``update`` :rtype: :class:`~openstack.resource.Resource` (RRtupdateR(RRRRtattrsR((s5/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy.pyt_updateŒs cKs=|i|}|dj o|i|ƒn|i|iƒS(sJCreate a resource from attributes :param resource_type: The type of resource to create. :type resource_type: :class:`~openstack.resource.Resource` :param path_args: A dict containing arguments for forming the request URL, if needed. :param **attrs: Attributes from which to create a Resource object. These attributes will be used in conjunction with ``resource_type``. :returns: The result of the ``create`` :rtype: :class:`~openstack.resource.Resource` N(tnewRRtcreateR(RRRR2R((s5/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy.pyt_create¢s cCs¬|i|||ƒ}y|i|id|ƒSWnvtij og}tidd|i|fd|id|id|i d|i d|i d |i d |i ƒ‚nXd S( s¬Get a resource :param resource_type: The type of resource to get. :type resource_type: :class:`~openstack.resource.Resource` :param value: The value to get. Can be either the ID of a resource or a :class:`~openstack.resource.Resource` subclass. :param path_args: A dict containing arguments for forming the request URL, if needed. :param args: A optional dict containing arguments that will be translated into query strings when forming the request URL. :returns: The result of the ``get`` :rtype: :class:`~openstack.resource.Resource` R R$sNo %s found for %sR%R&R'R(R R)R*N(RtgetRRR,R-RR%R&R'R(R R)R*(RRRRR RR/((s5/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy.pyt_getµs cKsF|i|||ƒ}|i|ƒ}|i|id|d|d|ƒS(s(List a resource :param resource_type: The type of resource to delete. This should be a :class:`~openstack.resource.Resource` subclass with a ``from_id`` method. :param value: The resource to list. It can be the ID of a resource, or a :class:`~openstack.resource.Resource` object. When set to None, a new bare resource is created. :param bool paginated: When set to ``False``, expect all of the data to be returned in one response. When set to ``True``, the resource supports data being returned across multiple pages. :param path_args: A dictionary containing arguments for use when forming the request URL for resource retrieval. :param kwargs **query: Keyword arguments that are sent to the list method, which are then attached as query parameters on the request URL. :returns: A generator of Resource objects. :raises: ``ValueError`` if ``value`` is a :class:`~openstack.resource.Resource` that doesn't match the ``resource_type``. Rt paginatedtparams(Rt convert_idstlistR(RRRR9RtqueryR((s5/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy.pyt_listÒscCs%|i|||ƒ}|i|iƒS(sRetrieve a resource's header :param resource_type: The type of resource to retrieve. :type resource_type: :class:`~openstack.resource.Resource` :param value: The value of a specific resource to retreive headers for. Can be either the ID of a resource, a :class:`~openstack.resource.Resource` subclass, or ``None``. :param path_args: A dict containing arguments for forming the request URL, if needed. :returns: The result of the ``head`` call :rtype: :class:`~openstack.resource.Resource` (RtheadR(RRRRR((s5/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy.pyt_headñsiixcCsti|i|||||ƒS(séWait for a resource to be in a particular status. :param value: The resource to wait on to reach the status. The resource must have a status attribute. :type value: :class:`~openstack.resource.Resource` :param status: Desired status of the resource. :param list failures: Statuses that would indicate the transition failed such as 'ERROR'. :param interval: Number of seconds to wait between checks. :param wait: Maximum number of seconds to wait for the change. :return: Method returns resource on success. :raises: :class:`~openstack.exceptions.ResourceTimeout` transition to status failed to occur in wait seconds. :raises: :class:`~openstack.exceptions.ResourceFailure` resource transitioned to one of the failure states. :raises: :class:`~AttributeError` if the resource does not have a status attribute (Rtwait_for_statusR(RRtstatustfailurestintervaltwait((s5/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy.pyRAscCsti|i|||ƒS(síWait for the resource to be deleted. :param value: The resource to wait on to be deleted. :type value: :class:`~openstack.resource.Resource` :param interval: Number of seconds to wait between checks. :param wait: Maximum number of seconds to wait for the delete. :return: Method returns resource on success. :raises: :class:`~openstack.exceptions.ResourceTimeout` transition to delete failed to occur in wait seconds. (Rtwait_for_deleteR(RRRDRE((s5/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy.pyRFs N(Rt __module__RRRRR#RtFalseR0R3R6R8R>R@RARF(((s5/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy.pyR)s$    ,     N(t openstackRRRHRtobjectR(((s5/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy.pyt s