/usr/lib/python2.6/site-packages/cinderclient/v2
Edit: /usr/lib/python2.6/site-packages/cinderclient/v2/volumes.pyc (28553B)
Ñò
=vVc
@ s« d Z d d k Z y d d k l Z Wn# e j
o d d k l Z n Xd d k l Z d Z d Z h d d 6Z
d e i f d „ ƒ YZ d e i
f d „ ƒ YZ d S( s Volume interface (v2 extension).iÿÿÿÿN( t urlencode( t baset asct desct idt statust sizet availability_zonet namet bootablet
created_att display_namet Volumec B s e Z d Z d „ Z d „ Z d „ Z d d d „ Z d „ Z d „ Z d „ Z
d „ Z d
„ Z d „ Z
d „ Z d
„ Z d „ Z d „ Z d „ Z d „ Z d d d „ Z d „ Z d „ Z d „ Z d „ Z d „ Z d d d d d e d „ Z d „ Z d „ Z d „ Z d „ Z RS( sD A volume is an extra block level storage to the OpenStack instances.c C s d | i S( Ns
( R ( t self( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyt __repr__% s c C s | i i | ƒ d S( s Delete this volume.N( t managert delete( R
( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyR ( s c K s | i i | | d S( s/ Update the name or description for this volume.N( R t update( R
t kwargs( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyR , s t rwc C s | i i | | | | | ƒ S( s Set attachment metadata.
:param instance_uuid: uuid of the attaching instance.
:param mountpoint: mountpoint on the attaching instance or host.
:param mode: the access mode.
:param host_name: name of the attaching host.
( R t attach( R
t
instance_uuidt
mountpointt modet host_name( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyR 0 s c C s | i i | ƒ S( s Clear attachment metadata.( R t detach( R
( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyR ; s c C s | i i | ƒ S( s Reserve this volume.( R t reserve( R
t volume( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyR ? s c C s | i i | ƒ S( s Unreserve this volume.( R t unreserve( R
R ( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyR C s c C s | i i | ƒ S( s Begin detaching volume.( R t begin_detaching( R
R ( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyR G s c C s | i i | ƒ S( s Roll detaching volume.( R t roll_detaching( R
R ( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyR K s c C s | i i | | ƒ S( s] Initialize a volume connection.
:param connector: connector dict from nova.
( R t initialize_connection( R
R t connector( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyR O s c C s | i i | | ƒ S( s\ Terminate a volume connection.
:param connector: connector dict from nova.
( R t terminate_connection( R
R R ( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyR! V s c C s | i i | | ƒ S( s§ Set or Append metadata to a volume.
:param volume : The :class: `Volume` to set metadata on
:param metadata: A dict of key/value pairs to set
( R t set_metadata( R
R t metadata( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyR" ] s c C s | i i | | | ƒ S( s¢ Set a volume's image metadata.
:param volume : The :class: `Volume` to set metadata on
:param metadata: A dict of key/value pairs to set
( R t set_image_metadata( R
R R# ( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyR$ e s c C s | i i | | | ƒ S( sœ Delete specified keys from volume's image metadata.
:param volume: The :class:`Volume`.
:param keys: A list of keys to be removed.
( R t delete_image_metadata( R
R t keys( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyR% m s c C s | i i | | | | | ƒ S( s- Upload a volume to image service as an image.( R t upload_to_image( R
t forcet
image_namet container_formatt disk_format( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyR' u s c C s | i i | ƒ d S( s€ Delete the specified volume ignoring its current state.
:param volume: The UUID of the volume to force-delete.
N( R t force_delete( R
( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyR, { s c C s | i i | | | | ƒ d S( s‰ Update the volume with the provided state.
:param state: The state of the volume to set.
:param attach_status: The attach_status of the volume to be set,
or None to keep the current status.
:param migration_status: The migration_status of the volume to be set,
or None to keep the current status.
N( R t reset_state( R
t statet
attach_statust migration_status( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyR- ‚ s c C s | i i | | ƒ d S( s© Extend the size of the specified volume.
:param volume: The UUID of the volume to extend
:param new_size: The desired size to extend volume to.
N( R t extend( R
R t new_size( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyR1 s c C s | i i | | | | ƒ d S( s! Migrate the volume to a new host.N( R t migrate_volume( R
t hostt force_host_copyt lock_volume( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyR3 • s c C s | i i | | | ƒ d S( s Change a volume's type.N( R t retype( R
t volume_typet policy( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyR7 ™ s c C s | i i | | ƒ S( s# Update all metadata of this volume.( R t update_all_metadata( R
R# ( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyR: s c C s | i i | | ƒ d S( sð Update the read-only access mode flag of the specified volume.
:param volume: The UUID of the volume to update.
:param read_only: The value to indicate whether to update volume to
read-only access mode.
N( R t update_readonly_flag( R
R t read_only( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyR; ¡ s c C sA | i i d | d | d | d | d | d | d | d | ƒ d S(
s Manage an existing volume.R4 t refR t descriptionR8 R R# R N( R t manage( R
R4 R= R R> R8 R R# R ( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyR? ª s c C s | i i | ƒ d S( s Unmanage a volume.N( R t unmanage( R
R ( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyR@ ³ s c C s | i i | ƒ d S( s0 Promote secondary to be primary in relationship.N( R t promote( R
R ( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyRA · s c C s | i i | ƒ d S( s: Sync the secondary volume with primary for a relationship.N( R t reenable( R
R ( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyRB » s c C s | i i | ƒ d S( s# Show pool information for backends.N( R t get_pools( R
t detail( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyRC ¿ s N( t __name__t
__module__t __doc__R R R t NoneR R R R R R R R! R" R$ R% R' R, R- R1 R3 R7 R: R; t FalseR? R@ RA RB RC ( ( ( sD /tmp/pip-build-cD3xZi/python-cinderclient/cinderclient/v2/volumes.pyR # s<