/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/proxy2.pyc (14108B)
Ñò 5 Wc@sFddklZddklZed„Zdefd„ƒYZdS(iÿÿÿÿ(t exceptions(t resource2cs‡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(s6/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy2.pytchecks(R(R R(R(R s6/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy2.pytwraps ((RR((Rs6/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy2.pyt_check_resources t BaseProxycBsÂeZd„Zd„Zd„Zed„Zedeƒed„ƒZ edeƒd„ƒZ d„Z edeƒdd„ƒZ ded „Zdd „Zgd d d „Zd d d„ZRS(cCs ||_dS(N(tsession(RR((s6/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy2.pyt__init__+scKs`|djo|i|}n=t||ƒp|id||}n|}|i||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.resource2.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. tidN(RtnewRt_update(Rt resource_typetvaluetattrstres((s6/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy2.pyt _get_resource.s  cCs6|djot||ƒ}ntii|ƒ}|S(s•Get a value to be associated with a URI attribute `child` will not be None here as it's a required argument on the proxy method. `parent` is allowed to be None if `child` is an actual resource, but when an ID is given for the child one must also be provided for the parent. An example of this is that a parent is a Server and a child is a ServerInterface. N(RtgetattrRRt_get_id(RtchildtparenttnameR((s6/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy2.pyt_get_uri_attributeHs cKs|i|i|d||S(sFind 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 resource2. :param dict attrs: Attributes to be passed onto the :meth:`~openstack.resource2.Resource.find` method, such as query parameters. :returns: An instance of ``resource_type`` or None tignore_missing(tfindR(RRt name_or_idR#R((s6/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy2.pyt_findWsRcKs´|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( sKDelete a resource :param resource_type: The type of resource to delete. This should be a :class:`~openstack.resource2.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.resource2.Resource` subclass. :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 resource2. :param dict attrs: Attributes to be passed onto the :meth:`~openstack.resource2.Resource.delete` method, such as the ID of a parent resource. :returns: The result of the ``delete`` :raises: ``ValueError`` if ``value`` is a :class:`~openstack.resource2.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-(RRRR#RRtrvte((s6/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy2.pyt_deleteks cKs%|i|||}|i|iƒS(sQUpdate a resource :param resource_type: The type of resource to update. :type resource_type: :class:`~openstack.resource2.Resource` :param value: The resource to update. This must either be a :class:`~openstack.resource2.Resource` or an id that corresponds to a resource2. :param dict attrs: Attributes to be passed onto the :meth:`~openstack.resource2.Resource.update` method to be updated. These should correspond to either :class:`~openstack.resource2.Body` or :class:`~openstack.resource2.Header` values on this resource. :returns: The result of the ``update`` :rtype: :class:`~openstack.resource2.Resource` (RtupdateR(RRRRR((s6/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy2.pyR™scKs|i|}|i|iƒS(sCreate a resource from attributes :param resource_type: The type of resource to create. :type resource_type: :class:`~openstack.resource2.Resource` :param path_args: A dict containing arguments for forming the request URL, if needed. :param dict attrs: Attributes to be passed onto the :meth:`~openstack.resource2.Resource.create` method to be created. These should correspond to either :class:`~openstack.resource2.Body` or :class:`~openstack.resource2.Header` values on this resource. :returns: The result of the ``create`` :rtype: :class:`~openstack.resource2.Resource` (RtcreateR(RRRR((s6/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy2.pyt_create¯scKs¦|i|||}y|i|iƒ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.resource2.Resource` :param value: The value to get. Can be either the ID of a resource or a :class:`~openstack.resource2.Resource` subclass. :param dict attrs: Attributes to be passed onto the :meth:`~openstack.resource2.Resource.get` method. These should correspond to either :class:`~openstack.resource2.Body` or :class:`~openstack.resource2.Header` values on this resource. :returns: The result of the ``get`` :rtype: :class:`~openstack.resource2.Resource` R'sNo %s found for %sR(R)R*R+R R,R-N(RtgetRRR/R0RR(R)R*R+R R,R-(RRRRRR2((s6/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy2.pyt_getÃs cKs.|i|||}|i|id||S(sèList a resource :param resource_type: The type of resource to delete. This should be a :class:`~openstack.resource2.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.resource2.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 dict attrs: Attributes to be passed onto the :meth:`~openstack.resource2.Resource.list` method. These should correspond to either :class:`~openstack.resource2.URI` values or appear in :data:`~openstack.resource2.Resource._query_mapping`. :returns: A generator of Resource objects. :raises: ``ValueError`` if ``value`` is a :class:`~openstack.resource2.Resource` that doesn't match the ``resource_type``. t paginated(RtlistR(RRRR9RR((s6/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy2.pyt_listâscKs%|i|||}|i|iƒS(sRetrieve a resource's header :param resource_type: The type of resource to retrieve. :type resource_type: :class:`~openstack.resource2.Resource` :param value: The value of a specific resource to retreive headers for. Can be either the ID of a resource, a :class:`~openstack.resource2.Resource` subclass, or ``None``. :param dict attrs: Attributes to be passed onto the :meth:`~openstack.resource2.Resource.head` method. These should correspond to :class:`~openstack.resource2.URI` values. :returns: The result of the ``head`` call :rtype: :class:`~openstack.resource2.Resource` (RtheadR(RRRRR((s6/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy2.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.resource2.Resource` :param status: Desired status of the resource2. :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((s6/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy2.pyR>scCsti|i|||ƒS(sîWait for the resource to be deleted. :param value: The resource to wait on to be deleted. :type value: :class:`~openstack.resource2.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(RRRARB((s6/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy2.pyRC(s N(Rt __module__RRR"tTrueR&RtFalseR3RR6RR8R;R=R>RC(((s6/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy2.pyR)s     -    N(t openstackRRRFRtobjectR(((s6/tmp/pip-build-wCUybK/openstacksdk/openstack/proxy2.pyt s