/usr/lib/python2.6/site-packages/openstack/block_store/v2
Edit: /usr/lib/python2.6/site-packages/openstack/block_store/v2/_proxy.pyc (6512B)
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 snapshot( t type( t volume( t proxyt Proxyc B sb e Z d Z d Z e d Z d Z d Z e d Z d Z d Z
e d Z RS( c C s | i t i | S( s Get a single snapshot
:param snapshot: The value can be the ID of a snapshot or a
:class:`~openstack.volume.v2.snapshot.Snapshot`
instance.
:returns: One :class:`~openstack.volume.v2.snapshot.Snapshot`
:raises: :class:`~openstack.exceptions.ResourceNotFound`
when no resource can be found.
( t _gett _snapshott Snapshot( t selfR ( ( sE /tmp/pip-build-wCUybK/openstacksdk/openstack/block_store/v2/_proxy.pyt get_snapshot s c K s | i t i | S( s Create a new snapshot from attributes
:param dict attrs: Keyword arguments which will be used to create
a :class:`~openstack.volume.v2.snapshot.Snapshot`,
comprised of the properties on the Snapshot class.
:returns: The results of snapshot creation
:rtype: :class:`~openstack.volume.v2.snapshot.Snapshot`
( t _createR R ( R t attrs( ( sE /tmp/pip-build-wCUybK/openstacksdk/openstack/block_store/v2/_proxy.pyt create_snapshot" s
c C s | i t i | d | d S( s: Delete a snapshot
:param snapshot: The value can be either the ID of a snapshot or a
:class:`~openstack.volume.v2.snapshot.Snapshot`
instance.
:param bool ignore_missing: When set to ``False``
:class:`~openstack.exceptions.ResourceNotFound` will be
raised when the snapshot does not exist.
When set to ``True``, no exception will be set when
attempting to delete a nonexistent snapshot.
:returns: ``None``
t ignore_missingN( t _deleteR R ( R R R
( ( sE /tmp/pip-build-wCUybK/openstacksdk/openstack/block_store/v2/_proxy.pyt delete_snapshot. s c C s | i t i | S( sN Get a single type
:param type: The value can be the ID of a type or a
:class:`~openstack.volume.v2.type.Type` instance.
:returns: One :class:`~openstack.volume.v2.type.Type`
:raises: :class:`~openstack.exceptions.ResourceNotFound`
when no resource can be found.
( R t _typet Type( R R ( ( sE /tmp/pip-build-wCUybK/openstacksdk/openstack/block_store/v2/_proxy.pyt get_type? s
c K s | i t i | S( sm Create a new type from attributes
:param dict attrs: Keyword arguments which will be used to create
a :class:`~openstack.volume.v2.type.Type`,
comprised of the properties on the Type class.
:returns: The results of type creation
:rtype: :class:`~openstack.volume.v2.type.Type`
( R
R R ( R R ( ( sE /tmp/pip-build-wCUybK/openstacksdk/openstack/block_store/v2/_proxy.pyt create_typeK s
c C s | i t i | d | d S( s Delete a type
:param type: The value can be either the ID of a type or a
:class:`~openstack.volume.v2.type.Type` instance.
:param bool ignore_missing: When set to ``False``
:class:`~openstack.exceptions.ResourceNotFound` will be
raised when the type does not exist.
When set to ``True``, no exception will be set when
attempting to delete a nonexistent type.
:returns: ``None``
R
N( R R R ( R R R
( ( sE /tmp/pip-build-wCUybK/openstacksdk/openstack/block_store/v2/_proxy.pyt delete_typeW s
c C s | i t i | S( s^ Get a single volume
:param volume: The value can be the ID of a volume or a
:class:`~openstack.volume.v2.volume.Volume` instance.
:returns: One :class:`~openstack.volume.v2.volume.Volume`
:raises: :class:`~openstack.exceptions.ResourceNotFound`
when no resource can be found.
( R t _volumet Volume( R R ( ( sE /tmp/pip-build-wCUybK/openstacksdk/openstack/block_store/v2/_proxy.pyt
get_volumef s
c K s | i t i | S( s{ Create a new volume from attributes
:param dict attrs: Keyword arguments which will be used to create
a :class:`~openstack.volume.v2.volume.Volume`,
comprised of the properties on the Volume class.
:returns: The results of volume creation
:rtype: :class:`~openstack.volume.v2.volume.Volume`
( R
R R ( R R ( ( sE /tmp/pip-build-wCUybK/openstacksdk/openstack/block_store/v2/_proxy.pyt
create_volumer s
c C s | i t i | d | d S( s Delete a volume
:param volume: The value can be either the ID of a volume or a
:class:`~openstack.volume.v2.volume.Volume` instance.
:param bool ignore_missing: When set to ``False``
:class:`~openstack.exceptions.ResourceNotFound` will be
raised when the volume does not exist.
When set to ``True``, no exception will be set when
attempting to delete a nonexistent volume.
:returns: ``None``
R
N( R R R ( R R R
( ( sE /tmp/pip-build-wCUybK/openstacksdk/openstack/block_store/v2/_proxy.pyt
delete_volume~ s
( t __name__t
__module__R R t TrueR R R R R R R ( ( ( sE /tmp/pip-build-wCUybK/openstacksdk/openstack/block_store/v2/_proxy.pyR s
N( t openstack.block_store.v2R R R R R R t openstackR t BaseProxyR ( ( ( sE /tmp/pip-build-wCUybK/openstacksdk/openstack/block_store/v2/_proxy.pyt
s