/usr/lib/python2.6/site-packages/openstack/image/v2
Edit: /usr/lib/python2.6/site-packages/openstack/image/v2/_proxy.pyc (11611B)
5
Wc @ sm d d k l Z 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 image( t member( t tag( t proxy( t resourcet Proxyc B s e Z d Z e d Z e d Z d Z d Z d Z d Z d e d Z e d Z d d Z
d
Z d d Z d Z e d
Z RS( c K sA | i d } | i t i | } | | _ | i | i | S( sr Upload a new image from attributes
:param dict attrs: Keyword arguments which will be used to create
a :class:`~openstack.image.v2.image.Image`,
comprised of the properties on the Image class.
:returns: The results of image creation
:rtype: :class:`~openstack.image.v2.image.Image`
t data( t popt _createt _imaget ImageR t upload_imaget session( t selft attrsR t img( ( s? /tmp/pip-build-wCUybK/openstacksdk/openstack/image/v2/_proxy.pyR s
c C s | i t i | d | d S( s
Delete an image
:param image: The value can be either the ID of an image or a
:class:`~openstack.image.v2.image.Image` instance.
:param bool ignore_missing: When set to ``False``
:class:`~openstack.exceptions.ResourceNotFound` will be
raised when the image does not exist.
When set to ``True``, no exception will be set when
attempting to delete a nonexistent image.
:returns: ``None``
t ignore_missingN( t _deleteR R
( R
R R ( ( s? /tmp/pip-build-wCUybK/openstacksdk/openstack/image/v2/_proxy.pyt delete_image) s
c C s | i t i | d | S( s Find a single image
:param name_or_id: The name or ID of a image.
: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: One :class:`~openstack.image.v2.image.Image` or None
R ( t _findR R
( R
t
name_or_idR ( ( s? /tmp/pip-build-wCUybK/openstacksdk/openstack/image/v2/_proxy.pyt
find_image8 s c C s | i t i | S( sT Get a single image
:param image: The value can be the ID of a image or a
:class:`~openstack.image.v2.image.Image` instance.
:returns: One :class:`~openstack.image.v2.image.Image`
:raises: :class:`~openstack.exceptions.ResourceNotFound`
when no resource can be found.
( t _getR R
( R
R ( ( s? /tmp/pip-build-wCUybK/openstacksdk/openstack/image/v2/_proxy.pyt get_imageF s
c K s | i t i d t | S( s Return a generator of images
:param kwargs \*\*query: Optional query parameters to be sent to limit
the resources being returned.
:returns: A generator of image objects
:rtype: :class:`~openstack.image.v2.image.Image`
t paginated( t _listR R
t True( R
t query( ( s? /tmp/pip-build-wCUybK/openstacksdk/openstack/image/v2/_proxy.pyt imagesR s c K s | i t i | | S( sa Update a image
:param image: Either the ID of a image or a
:class:`~openstack.image.v2.image.Image` instance.
:attrs kwargs: The attributes to update on the image represented
by ``value``.
:returns: The updated image
:rtype: :class:`~openstack.image.v2.image.Image`
( t _updateR R
( R
R R ( ( s? /tmp/pip-build-wCUybK/openstacksdk/openstack/image/v2/_proxy.pyt update_image] s c K s2 t i i | } | i t i d h | d 6| S( s: Create a new member from attributes
:param image: The value can be the ID of a image or a
:class:`~openstack.image.v2.image.Image` instance
that the member will be created for.
:param dict attrs: Keyword arguments which will be used to create
a :class:`~openstack.image.v2.member.Member`,
comprised of the properties on the Member class.
:returns: The results of member creation
:rtype: :class:`~openstack.image.v2.member.Member`
t path_argst image_id( R t Resourcet get_idR t _membert Member( R
R R R ( ( s? /tmp/pip-build-wCUybK/openstacksdk/openstack/image/v2/_proxy.pyt
create_memberj s
c C s\ t | t i o
| i } n t i i | } | i t i | d h | d 6d | d S( s7 Delete a member
:param member: The value can be either the ID of a member or a
:class:`~openstack.image.v2.member.Member` instance.
:param image: This is the image that the member belongs to,
this parameter need to be specified when member ID is
given as value. The value can be the ID of a image or a
:class:`~openstack.image.v2.image.Image` instance.
:param bool ignore_missing: When set to ``False``
:class:`~openstack.exceptions.ResourceNotFound` will be
raised when the member does not exist.
When set to ``True``, no exception will be set when
attempting to delete a nonexistent member.
:returns: ``None``
R R R N( t
isinstanceR# R$ R R R! R" R ( R
R R R R ( ( s? /tmp/pip-build-wCUybK/openstacksdk/openstack/image/v2/_proxy.pyt
delete_member{ s
c C s8 t i i | } | i t i | d h | d 6d | S( s Find a single member
:param name_or_id: The name or ID of a member.
:param image: This is the image that the member belongs to,
the value can be the ID of a image or a
:class:`~openstack.image.v2.image.Image` instance.
: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: One :class:`~openstack.image.v2.member.Member` or None
R R R ( R R! R" R R# R$ ( R
R R R R ( ( s? /tmp/pip-build-wCUybK/openstacksdk/openstack/image/v2/_proxy.pyt find_member s
c C sR t | t i o
| i } n t i i | } | i t i | d h | d 6S( s Get a single member
:param member: The value can be the ID of a member or a
:class:`~openstack.image.v2.member.Member` instance.
:param image: This is the image that the member belongs to,
this parameter need to be specified when member ID is
given as value. The value can be the ID of a image or a
:class:`~openstack.image.v2.image.Image` instance.
:returns: One :class:`~openstack.image.v2.member.Member`
:raises: :class:`~openstack.exceptions.ResourceNotFound`
when no resource can be found.
R R ( R&